@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@600;700;800&display=swap');

:root {
  --sand: #FFF6E9;
  --sand-deep: #F5E3C2;
  --ocean: #2FA8C7;
  --ocean-deep: #1B7A96;
  --coral: #E86A5E;
  --gold: #F2C75B;
  --gold-deep: #D9A93C;
  --leaf: #6FBF73;
  --ink: #35404B;
  --purple: #B9A7E0;
  --shadow-warm: 0 10px 30px rgba(27, 122, 150, 0.25), 0 3px 8px rgba(27, 122, 150, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }

html, body { width: 100%; height: 100%; overflow: hidden; background: #0e3d4d; font-family: 'Nunito', sans-serif; }

#stage { position: fixed; inset: 0; overflow: hidden; }

#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 20; }
.hidden { display: none !important; }

.screen-title {
  font-family: 'Baloo 2', cursive; font-size: clamp(28px, 5vw, 46px); color: #fff;
  text-shadow: 0 3px 0 rgba(27,122,150,.45), 0 8px 24px rgba(0,0,0,.25);
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.screen-title.small { font-size: clamp(22px, 3.6vw, 34px); margin-bottom: 0; }

/* ============ TITLE ============ */
#title-screen { z-index: 40; }
.title-art {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #8FD8EA 0%, #C9EDF5 45%, #FCEBC9 70%, #F5D9A0 100%);
  background-size: cover; background-position: center;
}
.title-logo { position: relative; text-align: center; margin-top: -6vh; animation: logo-in 1.2s cubic-bezier(.2,1.4,.4,1) both; }
.logo-line1 {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(40px, 9vw, 92px);
  color: #fff; letter-spacing: -0.03em; line-height: .95;
  text-shadow: 0 4px 0 var(--ocean-deep), 0 10px 0 rgba(27,122,150,.25), 0 18px 40px rgba(0,0,0,.3);
}
.logo-line2 {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(30px, 6.5vw, 66px);
  color: var(--gold); letter-spacing: -0.02em;
  text-shadow: 0 3px 0 var(--gold-deep), 0 8px 0 rgba(180,150,90,.3), 0 14px 30px rgba(0,0,0,.3);
  animation: bob 3s ease-in-out infinite;
}
.logo-mia { color: #fff; text-shadow: 0 3px 0 var(--coral), 0 8px 0 rgba(200,80,70,.35), 0 14px 30px rgba(0,0,0,.3); }
.logo-shell { font-size: clamp(28px, 5vw, 54px); margin-top: 8px; animation: bob 3s ease-in-out .4s infinite; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
@keyframes logo-in { 0% { transform: translateY(-60px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ BUTTONS ============ */
.big-btn {
  border: none; cursor: pointer; margin-top: 5vh;
  width: 108px; height: 108px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFDE8C, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 6px 0 var(--gold-deep), var(--shadow-warm);
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease;
  position: relative;
}
.big-btn:hover { transform: translateY(-3px) scale(1.04); }
.big-btn:active { transform: translateY(3px) scale(.96); box-shadow: 0 2px 0 var(--gold-deep), 0 6px 14px rgba(27,122,150,.3); }
.big-btn:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.pulse::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.75); animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

.round-btn {
  border: none; cursor: pointer; width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #5FC3DC, var(--ocean) 60%, var(--ocean-deep));
  box-shadow: 0 5px 0 var(--ocean-deep), 0 8px 18px rgba(27,122,150,.3);
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease;
}
.round-btn:hover { transform: translateY(-2px) scale(1.05); }
.round-btn:active { transform: translateY(2px) scale(.95); }
.round-btn:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.round-btn.gold { background: radial-gradient(circle at 32% 28%, #FFDE8C, var(--gold) 55%, var(--gold-deep)); box-shadow: 0 5px 0 var(--gold-deep), 0 8px 18px rgba(180,150,90,.35); }

/* ============ PROFILE ============ */
#profile-screen { background: linear-gradient(180deg, #6FC8DE 0%, #A8E4EF 55%, #FCEBC9 100%); }
.profile-cards { display: flex; gap: clamp(20px, 5vw, 60px); }
.profile-card {
  border: none; cursor: pointer; padding: 20px 26px 22px; border-radius: 30px;
  background: linear-gradient(180deg, #FFFDF7, var(--sand));
  box-shadow: var(--shadow-warm), inset 0 -5px 0 var(--sand-deep);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .15s cubic-bezier(.2,1.4,.4,1);
}
.profile-card:hover { transform: translateY(-6px) scale(1.04) rotate(-1deg); }
.profile-card:active { transform: scale(.96); }
.profile-card:focus-visible { outline: 5px solid var(--gold); outline-offset: 4px; }
.profile-portrait {
  width: clamp(150px, 24vw, 240px); height: clamp(200px, 32vw, 320px);
  border-radius: 22px; background-color: var(--sand);
  background-size: cover; background-position: center top;
  box-shadow: inset 0 0 0 5px rgba(180,150,90,.25);
}
.profile-name { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(26px, 4vw, 40px); color: var(--ink); }
.profile-progress { font-weight: 800; font-size: 16px; color: var(--ocean-deep); min-height: 20px; }

/* ============ HUD ============ */
#hud { position: absolute; inset: 0; z-index: 15; pointer-events: none; }
#hud-left { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 16px; display: flex; gap: 12px; pointer-events: auto; }
.hud-btn {
  border: none; cursor: pointer; width: 60px; height: 60px; border-radius: 20px;
  background: rgba(27, 122, 150, .78); backdrop-filter: blur(4px);
  box-shadow: 0 4px 0 rgba(14,61,77,.55), 0 6px 14px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease;
}
.hud-btn:hover { transform: translateY(-2px); }
.hud-btn:active { transform: translateY(2px) scale(.94); }
.hud-btn:focus-visible { outline: 4px solid #fff; outline-offset: 2px; }
#hud-right { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
#shell-counter, #treasure-counter {
  background: rgba(255, 253, 247, .92); border-radius: 999px; padding: 8px 18px 8px 12px;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 24px; color: var(--ink);
  box-shadow: 0 3px 0 var(--sand-deep), 0 5px 12px rgba(0,0,0,.15);
  display: flex; align-items: center; gap: 8px;
}
#treasure-counter { font-size: 19px; padding: 5px 15px 5px 10px; }
.counter-icon { font-size: 1.1em; }

#area-banner {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(28px, 5vw, 48px);
  color: #fff; text-shadow: 0 3px 0 rgba(27,122,150,.5), 0 10px 26px rgba(0,0,0,.35);
  animation: banner 3.2s ease both; pointer-events: none; white-space: nowrap;
}
@keyframes banner { 0% { opacity: 0; transform: translateX(-50%) translateY(-24px) scale(.8); } 12% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.05); } 18% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-10px); } }

#btn-action {
  position: absolute; right: 5%; bottom: 12%;
  width: 118px; height: 118px; border-radius: 50%; border: none; cursor: pointer;
  background: radial-gradient(circle at 32% 28%, #FFDE8C, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 6px 0 var(--gold-deep), 0 12px 26px rgba(0,0,0,.3);
  font-size: 52px; pointer-events: auto;
  animation: action-pop .3s cubic-bezier(.2,1.6,.4,1) both, action-bounce 1.2s ease-in-out .3s infinite;
}
#btn-action:active { transform: scale(.92); }
@keyframes action-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes action-bounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.09); } }

#touch-stick {
  position: absolute; width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 3px solid rgba(255,255,255,.4);
  pointer-events: none; z-index: 16;
}
#stick-knob {
  position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,255,255,.75); box-shadow: 0 4px 10px rgba(0,0,0,.25);
  transform: translate(-50%, -50%);
}

/* ============ DISCOVERY ============ */
#discovery { background: radial-gradient(circle at 50% 40%, rgba(27,122,150,.55), rgba(14,61,77,.88)); z-index: 50; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#discovery-card {
  position: relative; text-align: center; padding: 26px 40px 30px; border-radius: 34px;
  background: linear-gradient(180deg, #FFFDF7, var(--sand));
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 -6px 0 var(--sand-deep);
  animation: card-in .55s cubic-bezier(.2,1.5,.4,1) both;
  max-width: min(88vw, 560px);
}
@keyframes card-in { 0% { transform: scale(.3) rotate(-6deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
#discovery-rarity {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 22px; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 10px;
}
#discovery-photo-wrap {
  width: min(58vw, 300px); height: min(58vw, 300px); margin: 0 auto; border-radius: 26px; overflow: hidden;
  background: #fff; box-shadow: 0 10px 26px rgba(27,122,150,.25), inset 0 0 0 6px rgba(242,199,91,.5);
  display: flex; align-items: center; justify-content: center;
  animation: photo-spin .8s cubic-bezier(.2,1.3,.4,1) .15s both;
}
@keyframes photo-spin { 0% { transform: scale(.2) rotate(180deg); } 100% { transform: none; } }
#discovery-photo { width: 100%; height: 100%; object-fit: contain; background: #fff; }
#discovery-name { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(28px, 5vw, 42px); color: var(--ink); margin-top: 14px; line-height: 1.05; }
#discovery-sub { font-style: italic; font-weight: 600; color: #8a94a0; font-size: 16px; margin-top: 2px; }
#discovery-fact { font-weight: 700; font-size: clamp(16px, 2.4vw, 20px); color: var(--ocean-deep); margin-top: 12px; line-height: 1.45; }
.discovery-buttons { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 18px; }
.discovery-buttons .big-btn { margin-top: 0; width: 88px; height: 88px; background: radial-gradient(circle at 32% 28%, #8fe093, var(--leaf) 60%, #4d9a52); box-shadow: 0 5px 0 #3d7c42, var(--shadow-warm); }

/* ============ JOURNAL ============ */
#journal { background: linear-gradient(180deg, #1B7A96, #0e3d4d); justify-content: flex-start; padding: max(16px, env(safe-area-inset-top)) 20px 20px; }
.journal-head { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 1000px; margin-bottom: 10px; }
.back-btn { width: 62px; height: 62px; flex-shrink: 0; }
#journal-pct { margin-left: auto; font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 26px; color: var(--gold); }
#journal-bar-wrap { width: 100%; max-width: 1000px; height: 18px; border-radius: 999px; background: rgba(255,255,255,.18); margin-bottom: 14px; overflow: hidden; }
#journal-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), #FFDE8C); width: 0%; transition: width .8s cubic-bezier(.2,1,.3,1); box-shadow: 0 0 14px rgba(242,199,91,.7); }
#journal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px;
  width: 100%; max-width: 1000px; overflow-y: auto; padding-bottom: 30px; -webkit-overflow-scrolling: touch;
}
.journal-cell {
  border: none; cursor: pointer; aspect-ratio: 1; border-radius: 20px; position: relative;
  background: rgba(255,253,247,.94); box-shadow: 0 3px 0 rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: transform .12s ease;
}
.journal-cell:hover { transform: scale(1.06); }
.journal-cell:active { transform: scale(.95); }
.journal-cell img { width: 86%; height: 86%; object-fit: contain; }
.journal-cell.unknown { background: rgba(255,255,255,.10); }
.journal-cell.unknown img { display: none; }
.journal-cell .cell-q { position: absolute; font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 34px; color: rgba(255,255,255,.5); }
.journal-cell .cell-count {
  position: absolute; bottom: 5px; right: 7px; background: var(--gold); color: #6b5215;
  font-weight: 800; font-size: 13px; border-radius: 999px; padding: 1px 7px;
}
.journal-cell .cell-dot { position: absolute; top: 6px; left: 6px; width: 12px; height: 12px; border-radius: 50%; }

/* ============ SHELL PAGE ============ */
#shell-page { background: linear-gradient(180deg, #2FA8C7, #1B7A96); }
#shell-page .back-btn { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; z-index: 2; }
.shell-page-inner {
  display: flex; gap: clamp(18px, 4vw, 48px); align-items: center; padding: 20px;
  max-width: 980px; width: 100%; justify-content: center; flex-wrap: wrap;
  max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.shell-page-photo-wrap {
  width: min(78vw, 380px); height: min(78vw, 380px); border-radius: 30px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 0 0 8px rgba(242,199,91,.45);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
#shell-page-photo { width: 100%; height: 100%; object-fit: contain; }
.shell-page-info { max-width: 460px; color: #fff; }
#shell-page-rarity { font-family: 'Baloo 2', cursive; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 18px; }
#shell-page-name { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(30px, 5vw, 46px); line-height: 1; margin: 4px 0 2px; text-shadow: 0 3px 0 rgba(14,61,77,.4); }
#shell-page-sci { font-style: italic; opacity: .8; font-weight: 600; }
#shell-page-hawaiian { font-weight: 800; color: var(--gold); margin-top: 4px; font-size: 18px; }
#btn-shell-speak { margin: 14px 0; }
#shell-page-facts { list-style: none; display: flex; flex-direction: column; gap: 10px; }
#shell-page-facts li {
  background: rgba(255,255,255,.14); border-radius: 16px; padding: 10px 16px;
  font-weight: 700; font-size: clamp(15px, 2.2vw, 18px); line-height: 1.4;
}
#shell-page-facts li::before { content: '🐚 '; }
#shell-page-count { margin-top: 12px; font-weight: 800; color: var(--gold); font-size: 17px; }

/* ============ MAP ============ */
#map-screen { background: linear-gradient(180deg, #6FC8DE, #2FA8C7); }
#map-screen .back-btn { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; }
#map-cards { display: flex; gap: clamp(14px, 3vw, 34px); flex-wrap: wrap; justify-content: center; padding: 0 20px; }
.map-card {
  border: none; cursor: pointer; width: clamp(180px, 26vw, 260px); border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, #FFFDF7, var(--sand));
  box-shadow: var(--shadow-warm), inset 0 -5px 0 var(--sand-deep);
  padding-bottom: 16px; transition: transform .15s cubic-bezier(.2,1.4,.4,1);
}
.map-card:hover { transform: translateY(-6px) scale(1.03); }
.map-card:active { transform: scale(.96); }
.map-card:focus-visible { outline: 5px solid var(--gold); outline-offset: 3px; }
.map-card-art { height: clamp(110px, 16vw, 160px); display: flex; align-items: center; justify-content: center; font-size: clamp(48px, 8vw, 72px); }
.map-card-name { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(20px, 3vw, 27px); color: var(--ink); }
.map-card-sub { font-weight: 700; font-size: 14px; color: var(--ocean-deep); margin-top: 3px; min-height: 18px; }
.map-card.locked { filter: saturate(.25) brightness(.82); }
.map-card.locked .map-card-art { filter: grayscale(1); opacity: .6; }
.map-card.here { outline: 5px solid var(--gold); }

/* ============ SHELL HOUSE ============ */
#house-screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,225,160,.25), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, #B8925E 0%, #A07C4A 60%, #8A6A3E 100%);
  justify-content: flex-start; padding-top: max(16px, env(safe-area-inset-top));
}
#house-screen .back-btn { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; }
#wardrobe {
  display: flex; align-items: center; gap: 12px; margin: 2px 0 10px;
  background: rgba(60,42,20,.45); border-radius: 20px; padding: 8px 16px;
  box-shadow: inset 0 0 0 2px rgba(255,246,233,.18);
}
#wardrobe-title { font-size: 26px; }
#wardrobe-items { display: flex; gap: 10px; }
.wardrobe-item {
  border: none; cursor: pointer; width: 62px; height: 62px; border-radius: 14px;
  background: rgba(255,246,233,.14); position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease;
}
.wardrobe-item:hover { transform: scale(1.08); }
.wardrobe-item:active { transform: scale(.92); }
.wardrobe-item img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); }
.wardrobe-item.equipped { background: rgba(242,199,91,.5); box-shadow: 0 0 0 3px var(--gold), 0 0 14px rgba(242,199,91,.6); }
.wardrobe-item.locked img { filter: brightness(.25); }
.wardrobe-lock { position: absolute; bottom: 3px; right: 4px; font-size: 11px; font-weight: 800; color: #FFF6E9; }

#house-shelves { display: flex; flex-direction: column; gap: clamp(14px, 3vh, 30px); margin-top: 10px; width: min(92vw, 860px); }
.house-shelf {
  display: flex; gap: clamp(8px, 1.6vw, 16px); justify-content: center;
  padding: 10px 14px 0;
  border-bottom: 12px solid #6E5230;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 14px 18px -8px rgba(0,0,0,.4);
}
.house-slot {
  border: none; cursor: pointer;
  width: clamp(64px, 11vw, 108px); height: clamp(64px, 11vw, 108px);
  border-radius: 16px;
  background: rgba(255, 246, 233, .12);
  box-shadow: inset 0 0 0 2.5px rgba(255,246,233,.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease;
  position: relative;
}
.house-slot:hover { transform: scale(1.06); background: rgba(255,246,233,.2); }
.house-slot:active { transform: scale(.94); }
.house-slot .slot-plus { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 30px; color: rgba(255,246,233,.4); }
.house-slot img { width: 84%; height: 84%; object-fit: contain; border-radius: 12px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.deco-pearl {
  width: 55%; height: 55%; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFFFFF, #E8E4F0 55%, #C9C2DC);
  box-shadow: 0 4px 8px rgba(0,0,0,.35), inset 0 -2px 4px rgba(150,140,180,.4);
}
.deco-seaglass {
  width: 52%; height: 60%; border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
  background: linear-gradient(150deg, #A8E8C8, #5FBF8F);
  box-shadow: 0 4px 8px rgba(0,0,0,.35), inset 0 2px 5px rgba(255,255,255,.55);
}
#house-hint { margin-top: 16px; font-weight: 800; color: rgba(255,246,233,.85); font-size: clamp(15px, 2.4vw, 19px); }
#house-picker {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  width: min(94vw, 900px); z-index: 30;
  background: linear-gradient(180deg, #FFFDF7, var(--sand));
  border-radius: 26px; padding: 14px 18px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 -5px 0 var(--sand-deep);
  animation: card-in .35s cubic-bezier(.2,1.4,.4,1) both;
}
#picker-title { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 22px; color: var(--ink); margin-bottom: 10px; text-align: center; }
#picker-items { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.picker-item {
  border: none; cursor: pointer; flex-shrink: 0;
  width: 92px; height: 92px; border-radius: 18px;
  background: #fff; box-shadow: 0 3px 0 var(--sand-deep), 0 5px 12px rgba(0,0,0,.15);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform .12s ease; position: relative;
}
.picker-item:hover { transform: translateY(-3px) scale(1.05); }
.picker-item:active { transform: scale(.93); }
.picker-item img { width: 70%; height: 62%; object-fit: contain; }
.picker-item .picker-count {
  position: absolute; top: 4px; right: 6px; background: var(--gold); color: #6b5215;
  font-weight: 800; font-size: 12px; border-radius: 999px; padding: 1px 6px;
}
.picker-item .picker-label { font-weight: 800; font-size: 11px; color: var(--ocean-deep); max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ MERMAID ============ */
#mermaid-screen { background: radial-gradient(circle at 50% 35%, rgba(46,168,199,.9), rgba(10,40,60,.97)); z-index: 60; }
#mermaid-art {
  width: min(70vw, 420px); height: min(88vw, 540px); border-radius: 34px;
  background-size: cover; background-position: center;
  box-shadow: 0 0 80px rgba(140,230,255,.55), 0 30px 80px rgba(0,0,0,.5);
  animation: mermaid-rise 2.2s cubic-bezier(.2,1,.3,1) both;
}
@keyframes mermaid-rise { 0% { transform: translateY(70vh) scale(.6); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; opacity: 1; } }
#mermaid-text {
  margin-top: 20px; font-family: 'Baloo 2', cursive; font-weight: 800;
  font-size: clamp(22px, 4vw, 34px); color: #CFF3FF; text-align: center;
  text-shadow: 0 0 20px rgba(140,230,255,.8); animation: fade-in 1s 1.6s both; padding: 0 24px;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ============ ANNOUNCE ============ */
#announce {
  position: absolute; left: 50%; top: 38%; transform: translateX(-50%); z-index: 55;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(26px, 5vw, 44px);
  color: #fff; background: rgba(27,122,150,.92); padding: 18px 34px; border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4), inset 0 0 0 4px rgba(242,199,91,.8);
  text-align: center; animation: announce-pop 3.4s cubic-bezier(.2,1.4,.4,1) both; pointer-events: none;
  white-space: nowrap;
}
@keyframes announce-pop { 0% { transform: translateX(-50%) scale(0); } 8% { transform: translateX(-50%) scale(1.08); } 12% { transform: translateX(-50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) scale(.9) translateY(-16px); } }

.rarity-common { color: #7f8c99; }
.rarity-uncommon { color: #4d9a52; }
.rarity-rare { color: #2FA8C7; }
.rarity-epic { color: #9b6fd4; }
.rarity-legendary { color: #e09b2d; }
.rarity-mythical { color: #e05e9c; }
