:root {
  --ocean-deep: #031525;
  --ocean-mid: #0a3a5c;
  --ocean-light: #127a9e;
  --sand: #c9a227;
  --gold: #ffd54a;
  --gold-hot: #fff0a3;
  --neon-pink: #ff3dac;
  --neon-cyan: #4dfff3;
  --glass: rgba(8, 28, 48, 0.72);
  --glass-edge: rgba(255, 213, 74, 0.35);
  --text: #f0f7ff;
  --muted: rgba(240, 247, 255, 0.7);
  --radius: 14px;
  --shadow-glow: 0 0 24px rgba(255, 213, 74, 0.25);
  --font-brand: "Lilita One", "Bebas Neue", cursive;
  --brand-fill: linear-gradient(180deg, #fff, var(--gold));
  --gem-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2036%22%3E%3Cpolygon%20points%3D%228%201.2%2024%201.2%2030.8%2013.2%2016%2034.8%201.2%2013.2%22%20fill%3D%22%232e1065%22%2F%3E%3Cpolygon%20points%3D%228.5%202.4%2023.5%202.4%2029.4%2013%2016%2033%202.6%2013%22%20fill%3D%22%234c1d95%22%2F%3E%3Cpolygon%20points%3D%228.5%202.4%2023.5%202.4%2016%2013%22%20fill%3D%22%23f8fafc%22%2F%3E%3Cpolygon%20points%3D%228.5%202.4%202.6%2013%2016%2013%22%20fill%3D%22%23a5f3fc%22%2F%3E%3Cpolygon%20points%3D%2223.5%202.4%2029.4%2013%2016%2013%22%20fill%3D%22%23c4b5fd%22%2F%3E%3Cpolygon%20points%3D%222.6%2013%2016%2013%2016%2033%22%20fill%3D%22%2322d3ee%22%2F%3E%3Cpolygon%20points%3D%2229.4%2013%2016%2013%2016%2033%22%20fill%3D%22%237c3aed%22%2F%3E%3Cpolygon%20points%3D%222.6%2013%209.8%2013%2016%2033%22%20fill%3D%22%2367e8f9%22%20opacity%3D%22.42%22%2F%3E%3Cpolygon%20points%3D%2210%203.1%2015.2%203.1%2013.6%208.6%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M2.6%2013h26.8%22%20stroke%3D%22%23ede9fe%22%20stroke-width%3D%22.85%22%20opacity%3D%22.85%22%2F%3E%3C%2Fsvg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Safari does not use !important on [hidden], so display:flex overlays leak onto play. */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--ocean-deep);
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
  position: relative;
}

/* World Adventures blue behind tab menus — never the play reef canvas. */
#app.app--show-tabs:not(.app--playing):not(.app--matchup) {
  background-color: var(--ocean-deep);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 213, 74, 0.18), transparent 46%),
    radial-gradient(ellipse at 18% 85%, rgba(77, 255, 243, 0.1), transparent 42%),
    linear-gradient(180deg, #0c5a78 0%, var(--ocean-mid) 48%, var(--ocean-deep) 100%);
}

#app.app--show-tabs:not(.app--playing):not(.app--matchup) .hud,
#app.app--show-tabs:not(.app--playing):not(.app--matchup) .hint {
  display: none !important;
}

.hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(3, 21, 37, 0.95), rgba(3, 21, 37, 0.65));
  border-bottom: 1px solid var(--glass-edge);
  flex-shrink: 0;
  z-index: 3;
}

.hud__trail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.adventure-play-theme {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(4, 18, 32, 0.72);
  border: 1px solid rgba(255, 213, 74, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.adventure-play-theme[hidden] {
  display: none;
}

.adventure-play-theme__scene {
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  border-radius: 6px;
  overflow: visible;
  border: 1.5px solid rgba(255, 252, 245, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.adventure-play-theme__scene .adventure-map-node__scene {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  overflow: hidden;
}

.adventure-play-theme__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.adventure-play-theme__name {
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--gold-hot);
  line-height: 1.1;
}

.adventure-play-theme__goal {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: 0.04em;
}

.adventure-play-theme__goal[hidden] {
  display: none;
}

.adventure-play-theme--skull-shoals {
  border-color: rgba(120, 40, 50, 0.55);
  background: rgba(12, 6, 14, 0.88);
  box-shadow: 0 0 16px rgba(80, 20, 30, 0.35);
}

.adventure-play-theme--skull-shoals .adventure-play-theme__name {
  color: #f87171;
}

.adventure-play-theme--skull-shoals .adventure-play-theme__goal {
  color: #fca5a5;
}

.adventure-play-theme--skull-shoals .adventure-play-theme__scene {
  border-color: rgba(100, 40, 50, 0.65);
  box-shadow: 0 0 10px rgba(80, 20, 30, 0.4);
}

.adventure-play-theme--serpent-strait {
  border-color: rgba(45, 110, 90, 0.5);
  background: rgba(8, 28, 26, 0.82);
}

.adventure-play-theme--serpent-strait .adventure-play-theme__name {
  color: #6ee7b7;
}

.adventure-play-theme--doubloon-bay {
  border-color: rgba(255, 210, 90, 0.5);
  background: rgba(20, 48, 62, 0.75);
  box-shadow: 0 0 18px rgba(200, 230, 255, 0.15);
}

.adventure-play-theme--doubloon-bay .adventure-play-theme__name {
  color: #fde68a;
}

.adventure-play-theme--doubloon-bay .adventure-play-theme__goal {
  color: #a5f3fc;
}

.adventure-play-theme--emerald-lagoon .adventure-play-theme__name {
  color: #6ee7b7;
}

.adventure-play-theme--krakens-teeth .adventure-play-theme__name {
  color: #f9a8d4;
}

.adventure-play-theme--leviathan-deep .adventure-play-theme__name {
  color: #93c5fd;
}

.adventure-play-theme--treasure-cove {
  border-color: rgba(200, 160, 60, 0.45);
  background: rgba(12, 22, 32, 0.88);
  box-shadow: 0 0 18px rgba(255, 190, 70, 0.18);
}

.adventure-play-theme--treasure-cove .adventure-play-theme__scene {
  animation: adventureMapTreasureCoveGlow 2.8s ease-in-out infinite;
}

#app.app--adventure-play .canvas-wrap {
  box-shadow: inset 0 0 0 2px rgba(255, 213, 74, 0.2);
}

#app.app--adventure-theme-skull-shoals .canvas-wrap {
  box-shadow:
    inset 0 0 0 2px rgba(100, 30, 40, 0.45),
    inset 0 0 50px rgba(40, 8, 12, 0.25);
}

#app.app--adventure-theme-treasure-cove .canvas-wrap {
  box-shadow:
    inset 0 0 0 2px rgba(180, 140, 50, 0.35),
    inset 0 0 64px rgba(0, 24, 36, 0.35);
}

#app.app--adventure-theme-frost-fjord .canvas-wrap,
#app.app--adventure-theme-iceberg-drift .canvas-wrap,
#app.app--adventure-theme-glacier-maw .canvas-wrap,
#app.app--adventure-theme-polar-narrows .canvas-wrap,
#app.app--adventure-theme-aurora-reach .canvas-wrap {
  box-shadow:
    inset 0 0 0 2px rgba(160, 210, 240, 0.45),
    inset 0 0 48px rgba(80, 140, 180, 0.18);
}

#app.app--adventure-theme-sunken-gate .canvas-wrap,
#app.app--adventure-theme-coral-colonnade .canvas-wrap,
#app.app--adventure-theme-poseidons-plaza .canvas-wrap,
#app.app--adventure-theme-temple-of-tides .canvas-wrap,
#app.app--adventure-theme-throne-of-atlantis .canvas-wrap {
  box-shadow:
    inset 0 0 0 2px rgba(120, 220, 240, 0.42),
    inset 0 0 52px rgba(255, 200, 100, 0.12);
}

.adventure-play-theme--frost-fjord,
.adventure-play-theme--iceberg-drift,
.adventure-play-theme--glacier-maw,
.adventure-play-theme--polar-narrows,
.adventure-play-theme--aurora-reach {
  border-color: rgba(160, 220, 255, 0.5);
  background: rgba(14, 32, 48, 0.82);
  box-shadow: 0 0 18px rgba(160, 220, 255, 0.22);
}

.adventure-play-theme--sunken-gate,
.adventure-play-theme--coral-colonnade,
.adventure-play-theme--poseidons-plaza,
.adventure-play-theme--temple-of-tides,
.adventure-play-theme--throne-of-atlantis {
  border-color: rgba(120, 220, 240, 0.52);
  background: rgba(10, 36, 52, 0.86);
  box-shadow: 0 0 20px rgba(255, 210, 120, 0.18);
}

.adventure-play-theme--frost-fjord .adventure-play-theme__name,
.adventure-play-theme--iceberg-drift .adventure-play-theme__name,
.adventure-play-theme--glacier-maw .adventure-play-theme__name,
.adventure-play-theme--polar-narrows .adventure-play-theme__name,
.adventure-play-theme--aurora-reach .adventure-play-theme__name {
  color: #b8e8ff;
}

.adventure-play-theme--sunken-gate .adventure-play-theme__name,
.adventure-play-theme--coral-colonnade .adventure-play-theme__name,
.adventure-play-theme--poseidons-plaza .adventure-play-theme__name,
.adventure-play-theme--temple-of-tides .adventure-play-theme__name,
.adventure-play-theme--throne-of-atlantis .adventure-play-theme__name {
  color: #7ee8ff;
}

#app.app--adventure-theme-stormbreak-isle .canvas-wrap {
  box-shadow:
    inset 0 0 0 2px rgba(140, 170, 220, 0.45),
    inset 0 0 36px rgba(180, 200, 255, 0.1);
}

#app.app--adventure-theme-leviathan-deep .canvas-wrap {
  box-shadow: inset 0 0 0 2px rgba(20, 40, 80, 0.5);
}

#app.app--adventure-theme-emerald-lagoon .canvas-wrap {
  box-shadow: inset 0 0 0 2px rgba(50, 180, 100, 0.35);
}

#app.app--adventure-theme-golden-atoll .canvas-wrap {
  box-shadow:
    inset 0 0 0 2px rgba(255, 200, 50, 0.4),
    inset 0 0 36px rgba(255, 190, 60, 0.1);
}

#app.app--adventure-theme-doubloon-bay .canvas-wrap {
  box-shadow:
    inset 0 0 0 2px rgba(255, 220, 120, 0.35),
    inset 0 0 48px rgba(180, 220, 245, 0.18);
}

#app.app--adventure-theme-compass-cay .canvas-wrap {
  box-shadow: inset 0 0 0 2px rgba(180, 150, 100, 0.35);
}

#app.app--adventure-theme-palmwood-harbor .canvas-wrap {
  box-shadow:
    inset 0 0 0 2px rgba(80, 160, 120, 0.35),
    inset 0 0 32px rgba(120, 200, 220, 0.1);
}

#app.app--adventure-theme-treasurehorn-peak .canvas-wrap {
  box-shadow: inset 0 0 0 2px rgba(160, 150, 140, 0.35);
}

#app.app--adventure-theme-mariners-rest .canvas-wrap {
  box-shadow: inset 0 0 0 2px rgba(140, 160, 200, 0.35);
}

#app.app--adventure-theme-serpent-strait .canvas-wrap {
  box-shadow: inset 0 0 0 2px rgba(40, 100, 85, 0.35);
}

#app.app--adventure-theme-krakens-teeth .canvas-wrap {
  box-shadow: inset 0 0 0 2px rgba(120, 40, 60, 0.4);
}

#app.app--adventure-theme-lava-falls .canvas-wrap {
  box-shadow:
    inset 0 0 0 2px rgba(255, 160, 70, 0.35),
    inset 0 0 64px rgba(255, 140, 60, 0.14);
}

.adventure-play-theme--lava-falls {
  border-color: rgba(255, 150, 60, 0.45);
  background: rgba(24, 20, 18, 0.82);
  box-shadow: 0 0 18px rgba(255, 160, 70, 0.2);
}

.adventure-play-theme--lava-falls .adventure-play-theme__name {
  color: #fb923c;
}

.adventure-play-theme--lava-falls .adventure-play-theme__goal {
  color: #fdba74;
}

#app.app--adventure-theme-captains-landing .canvas-wrap {
  box-shadow: inset 0 0 0 2px rgba(180, 140, 80, 0.35);
}

.adventure-result-theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto 16px;
  padding: 10px 14px;
  max-width: 200px;
  border-radius: 12px;
  background: rgba(244, 232, 200, 0.15);
  border: 2px solid rgba(255, 213, 74, 0.4);
}

.adventure-result-theme[hidden] {
  display: none;
}

.adventure-result-theme .adventure-map-node__scene {
  display: block;
  width: 88px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid #2e2418;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.adventure-result-theme__name {
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--gold-hot);
}

.adventure-result-theme--treasure-cove .adventure-map-node__scene {
  animation: adventureMapTreasureCoveGlow 2.8s ease-in-out infinite;
}

.hud__brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hud__title {
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.03em;
  background: var(--brand-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 213, 74, 0.45));
}

.hud__subtitle {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: -2px;
}

.stat--coins .stat__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #f5d78e;
}

.stat--gems .stat__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #ddd6fe;
}

.stat--coins .stat__value::before,
.start-toolbar__coins .start-toolbar__value::before {
  content: "$";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.42em;
  height: 1.42em;
  margin-right: 0.34em;
  border-radius: 50%;
  flex: 0 0 auto;
  vertical-align: middle;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 245, 1) 0 11%, transparent 12%),
    radial-gradient(circle at 68% 72%, rgba(146, 64, 14, 0.35) 0 18%, transparent 40%),
    radial-gradient(circle at 50% 48%, #fff8c8 0 22%, #ffe08a 40%, #f5c542 58%, #eab308 76%, #b45309 100%);
  border: 0.12em solid #7c2d12;
  box-shadow:
    inset 0 0 0 0.11em rgba(255, 248, 200, 0.95),
    inset 0 0 0 0.2em rgba(180, 83, 9, 0.4),
    inset -0.1em -0.12em 0.08em rgba(120, 53, 15, 0.28),
    0 0 0.55em rgba(255, 213, 74, 0.55),
    0 2px 5px rgba(0, 0, 0, 0.4);
  color: #7c2d12;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 0.78em;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0.04em 0.04em 0 rgba(255, 245, 157, 0.8);
}

.stat--gems .stat__value::before,
.start-toolbar__gems .start-toolbar__value::before {
  content: "";
  display: inline-block;
  width: 1.12em;
  height: 1.32em;
  margin-right: 0.34em;
  flex: 0 0 auto;
  vertical-align: middle;
  background: var(--gem-icon) center / contain no-repeat;
  filter: drop-shadow(0 0 0.35em rgba(167, 139, 250, 0.75));
}

.panel__lede--shop {
  max-width: 420px;
}

/* --- Fishing shop (mobile casual / Pocket Champs vibe) --- */
.panel.panel--shop {
  position: absolute;
  inset: 0;
  z-index: 41;
  min-height: 100%;
  padding-top: max(18px, env(safe-area-inset-top, 0px));
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px) + 18px);
  background-color: var(--ocean-deep) !important;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 213, 74, 0.18), transparent 46%),
    radial-gradient(ellipse at 18% 85%, rgba(77, 255, 243, 0.1), transparent 42%),
    linear-gradient(180deg, #0c5a78 0%, var(--ocean-mid) 48%, var(--ocean-deep) 100%) !important;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: local;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate;
  overflow-x: hidden;
}

.panel--shop > * {
  position: relative;
  z-index: 1;
}

.shop-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shop-decor__coin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 230, 0.95) 0 10%, transparent 11%),
    radial-gradient(circle at 42% 38%, #fff3a3 0 20%, #ffd54a 36%, #f59e0b 68%, #b45309 100%);
  border: 2px solid #7c2d12;
  box-shadow:
    inset 0 0 0 2px rgba(255, 245, 157, 0.85),
    0 4px 10px rgba(0, 0, 0, 0.35);
  opacity: 0.72;
  will-change: transform;
  animation: shopCoinFloat 3.6s ease-in-out infinite;
}

.shop-decor__coin::after {
  content: "$";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c2d12;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
}

.shop-decor__coin--a { top: 12%; left: 6%; animation-delay: 0s; }
.shop-decor__coin--b { top: 22%; right: 8%; width: 22px; height: 22px; animation-delay: -0.6s; animation-duration: 4.1s; }
.shop-decor__coin--c { top: 58%; left: 4%; width: 20px; height: 20px; animation-delay: -1.2s; animation-duration: 3.4s; }
.shop-decor__coin--d { top: 70%; right: 5%; animation-delay: -1.8s; animation-duration: 4.4s; }
.shop-decor__coin--e { top: 38%; left: 10%; width: 16px; height: 16px; opacity: 0.5; animation-delay: -2.2s; animation-duration: 3.2s; }
.shop-decor__coin--f { top: 48%; right: 12%; width: 18px; height: 18px; opacity: 0.55; animation-delay: -0.9s; animation-duration: 3.8s; }
.shop-decor__coin--g { top: 14%; left: 42%; width: 14px; height: 14px; opacity: 0.42; animation-delay: -1.5s; animation-duration: 4.6s; }

.shop-decor__sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff7c2;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  opacity: 0.7;
  animation: shopSparkle 2.8s ease-in-out infinite;
}

.shop-decor__sparkle--1 { top: 18%; left: 28%; }
.shop-decor__sparkle--2 { top: 30%; right: 22%; animation-delay: -0.9s; }
.shop-decor__sparkle--3 { top: 64%; left: 18%; animation-delay: -1.7s; }

.shop-decor__pile {
  position: absolute;
  bottom: max(70px, env(safe-area-inset-bottom, 0px) + 52px);
  display: flex;
  align-items: flex-end;
  gap: 0;
  opacity: 0.85;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
  animation: shopPileBob 3.2s ease-in-out infinite;
}

.shop-decor__pile--left { left: 8px; }
.shop-decor__pile--right {
  right: 8px;
  animation-name: shopPileBobFlip;
  animation-delay: -1.1s;
}

.shop-decor__pile .shop-coin--float:nth-child(1) { animation-delay: 0s; }
.shop-decor__pile .shop-coin--float:nth-child(2) { animation-delay: -0.35s; animation-duration: 2.6s; }
.shop-decor__pile .shop-coin--float:nth-child(3) { animation-delay: -0.7s; animation-duration: 2.9s; }

.shop-coin {
  position: relative;
  display: inline-flex;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  flex: 0 0 auto;
  vertical-align: middle;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 245, 1) 0 11%, transparent 12%),
    radial-gradient(circle at 68% 72%, rgba(146, 64, 14, 0.35) 0 18%, transparent 40%),
    radial-gradient(circle at 50% 48%, #fff8c8 0 22%, #ffe08a 40%, #f5c542 58%, #eab308 76%, #b45309 100%);
  border: 0.1em solid #7c2d12;
  box-shadow:
    inset 0 0 0 0.1em rgba(255, 248, 200, 0.95),
    inset 0 0 0 0.18em rgba(180, 83, 9, 0.4),
    inset -0.1em -0.12em 0.08em rgba(120, 53, 15, 0.28),
    0 0 0.4em rgba(255, 213, 74, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.35);
}

.shop-coin--float {
  will-change: transform;
  animation: shopCoinFloat 2.8s ease-in-out infinite;
}

.shop-wallet .shop-coin--float {
  animation-name: shopCoinFloatSoft;
  animation-duration: 2.4s;
}

.shop-coin::after {
  content: "$";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c2d12;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 0.66em;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0.04em 0.04em 0 rgba(255, 245, 157, 0.8);
}

.shop-coin--lg {
  width: 2.15rem;
  height: 2.15rem;
  border-width: 2px;
}

.shop-coin--lg::after {
  font-size: 0.95rem;
}

.shop-coin--pile {
  width: 34px;
  height: 34px;
  margin-left: -10px;
  border-width: 2px;
}

.shop-coin--pile::after {
  font-size: 0.85rem;
}

.shop-coin--pile-2 {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  z-index: 1;
}

.shop-coin--pile-3 {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  z-index: 2;
}

.shop-gem {
  position: relative;
  display: inline-block;
  width: 1.12em;
  height: 1.32em;
  flex: 0 0 auto;
  vertical-align: middle;
  background: var(--gem-icon) center / contain no-repeat;
  filter: drop-shadow(0 0 0.28em rgba(167, 139, 250, 0.65));
}

.shop-gem--float {
  will-change: transform;
  animation: shopCoinFloatSoft 2.4s ease-in-out infinite;
}

.shop-gem--lg {
  width: 1.7rem;
  height: 2.05rem;
}

.shop-wallets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.shop-wallet--gems {
  border-color: rgba(167, 139, 250, 0.75);
  background: linear-gradient(180deg, #3b2766 0%, #1e1b4b 100%);
}

.shop-wallet--gems .shop-wallet__label {
  color: rgba(221, 214, 254, 0.85);
}

.shop-wallet--gems .shop-wallet__amount {
  color: #ede9fe;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.45);
}

.shop-coin-vault {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
}

.shop-coin-vault .shop-coin {
  width: 18px;
  height: 18px;
  margin-left: -6px;
}

.shop-coin-vault .shop-coin:first-child {
  margin-left: 0;
  width: 16px;
  height: 16px;
  margin-bottom: 4px;
}

.shop-coin-vault .shop-coin:last-child {
  width: 14px;
  height: 14px;
  margin-bottom: 7px;
}

.shop-topbar,
.shop-tagline,
.shop-shelf,
.shop-wallets {
  position: relative;
  z-index: 1;
}

.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: min(520px, 94vw);
  margin: 0 auto 10px;
  padding: 4px 2px;
}

.shop-topbar__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 224, 138, 0.85);
}

.shop-topbar__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.shop-topbar__title {
  margin: 2px 0 0;
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  letter-spacing: 0.03em;
  line-height: 1;
  color: #fff8dc;
  text-shadow:
    0 2px 0 #8a5a12,
    0 0 18px rgba(255, 213, 74, 0.35);
}

.shop-wallet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a5f78 0%, #0d3d52 100%);
  border: 2px solid rgba(255, 213, 74, 0.65);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.shop-wallet__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.shop-wallet__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 224, 138, 0.8);
}

.shop-wallet__amount {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: #ffe08a;
  text-shadow: 0 0 10px rgba(255, 213, 74, 0.35);
}

.shop-tagline {
  width: 100%;
  max-width: min(520px, 94vw);
  margin: 0 auto 16px;
  font-size: 0.88rem;
  color: rgba(226, 242, 255, 0.78);
  text-align: center;
}

.shop-shelf {
  width: 100%;
  max-width: min(520px, 94vw);
  margin: 0 auto 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shop-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 8px;
}

.shop-section__title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #e8f7ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.shop-section__badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #422006;
  background: linear-gradient(180deg, #ffe08a, #f59e0b);
  border: 1px solid #b45309;
  box-shadow: 0 3px 0 #92400e;
}

.shop-section__badge--gems {
  color: #2e1065;
  background: linear-gradient(180deg, #ddd6fe, #8b5cf6);
  border-color: #5b21b6;
  box-shadow: 0 3px 0 #4c1d95;
}

.shop-section__note {
  margin: 0 2px 10px;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.78);
}

.shop-item__icon--clothes {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 1px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(186, 230, 253, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 55%),
    rgba(8, 47, 73, 0.9);
}

.shop-item__clothes-art {
  width: 100%;
  height: 100%;
  display: block;
}

.shop-item__icon--frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 4px;
  overflow: visible;
  border-radius: 50%;
  background: rgba(8, 47, 73, 0.45);
}

.shop-item__frame-swatch,
.avatar-frame-swatch,
.wardrobe-tile__frame-swatch {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-sizing: border-box;
  overflow: hidden;
}

.shop-item__frame-swatch {
  width: 58px;
  height: 58px;
}

.wardrobe-tile__frame-swatch {
  width: 72px;
  height: 72px;
  margin: 0 auto 4px;
  flex-shrink: 0;
  overflow: hidden;
}

.wardrobe-tile--frame {
  overflow: hidden;
}

.wardrobe-tile--frame .avatar-frame-ring {
  inset: 0;
}

.wardrobe-tile--frame .wardrobe-tile__art {
  display: none;
}

.wardrobe-tile__kind--solid {
  color: #bbf7d0;
  background: rgba(21, 128, 61, 0.35);
}

.wardrobe-tile__kind--gradient {
  color: #bae6fd;
  background: rgba(2, 132, 199, 0.35);
}

.wardrobe-tile__kind--pattern {
  color: #fde68a;
  background: rgba(217, 119, 6, 0.35);
}

.wardrobe-grid--frames {
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
}

.shop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-item {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 12px 12px 12px 10px;
  margin: 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(180deg, #145f78 0%, #0c4458 100%);
  border: 2px solid rgba(255, 213, 74, 0.42);
  box-shadow:
    0 8px 0 rgba(4, 28, 40, 0.55),
    0 12px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.shop-item--featured {
  border-color: #fbbf24;
  background:
    linear-gradient(180deg, rgba(255, 213, 74, 0.18), transparent 45%),
    linear-gradient(180deg, #176b86 0%, #0d4a5e 100%);
}

.shop-item--owned {
  opacity: 0.82;
  border-color: rgba(148, 163, 184, 0.45);
}

.shop-item__ribbon {
  position: absolute;
  top: -8px;
  left: 12px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #422006;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  border: 1px solid #b45309;
  box-shadow: 0 3px 0 #92400e;
}

.shop-item__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0a3344, #062636);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.shop-item__icon--ticket {
  background: linear-gradient(180deg, #7f1d1d, #450a0a);
  border-color: rgba(254, 202, 202, 0.35);
}

.shop-item__icon--chest {
  background: linear-gradient(180deg, #4b5563, #1f2937);
  border-color: rgba(156, 163, 175, 0.45);
  padding: 4px;
}

.shop-item__icon--chest-rare {
  background: linear-gradient(180deg, #334155, #0f172a);
  border-color: rgba(125, 211, 252, 0.45);
}

.shop-item__icon--chest-legendary {
  background: linear-gradient(180deg, #a16207, #431407);
  border-color: rgba(253, 224, 71, 0.55);
  box-shadow: inset 0 0 14px rgba(253, 224, 71, 0.4);
}

.shop-item__icon--chest svg {
  width: 48px;
  height: 43px;
  display: block;
}

.shop-item__icon--coin-vault {
  background: linear-gradient(180deg, #854d0e, #422006);
  border-color: rgba(253, 224, 71, 0.45);
}

.shop-item__icon--bait {
  background: linear-gradient(180deg, #115e59, #134e4a);
  padding: 4px;
}

.shop-item__icon--bait .bait-bucket {
  width: 40px;
  height: 46px;
  display: block;
}

.shop-item__icon--glow_jelly {
  background: linear-gradient(180deg, #5b21b6, #312e81);
  box-shadow: inset 0 0 12px rgba(196, 181, 253, 0.35);
}

.shop-item__icon--squid_ink {
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.shop-item__glyph {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.shop-item__body {
  flex: 1 1 auto;
  min-width: 0;
}

.shop-item__title {
  font-weight: 800;
  font-size: clamp(0.86rem, 3vw, 0.98rem);
  margin: 0 0 3px;
  color: #fff8e7;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
}

.shop-item__desc {
  margin: 0 0 5px;
  font-size: clamp(0.68rem, 2.5vw, 0.74rem);
  color: rgba(214, 236, 248, 0.78);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shop-item__meta {
  font-size: 0.72rem;
  color: #7dd3fc;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.shop-item__stock--owned {
  color: #86efac;
}

.shop-buy {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 78px;
  padding: 8px 12px;
  border: 2px solid #166534;
  border-radius: 14px;
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 55%, #15803d 100%);
  color: #052e16;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 5px 0 #14532d,
    0 8px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.shop-buy:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.shop-buy:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #14532d;
}

.shop-buy:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.shop-buy__label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(5, 46, 22, 0.85);
}

.shop-buy__price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #052e16;
}

.shop-buy__price .shop-coin,
.shop-buy__price .shop-gem {
  width: 1em;
  height: 1em;
  animation: shopCoinFloatSoft 2.2s ease-in-out infinite;
}

.shop-buy__price .shop-gem {
  width: 0.95em;
  height: 1.12em;
}

.shop-buy--gems {
  border-color: #5b21b6;
  background: linear-gradient(180deg, #c4b5fd 0%, #8b5cf6 55%, #6d28d9 100%);
  color: #2e1065;
  box-shadow:
    0 5px 0 #4c1d95,
    0 8px 14px rgba(0, 0, 0, 0.28);
}

.shop-buy--gems:active:not(:disabled) {
  box-shadow: 0 2px 0 #4c1d95;
}

.shop-buy--gems .shop-buy__label {
  color: rgba(46, 16, 101, 0.85);
}

.shop-buy--gems .shop-buy__price {
  color: #2e1065;
}

.shop-buy--owned {
  background: linear-gradient(180deg, #94a3b8, #64748b);
  border-color: #475569;
  box-shadow: 0 4px 0 #334155;
  color: #f8fafc;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-topbar .shop-guide-launch {
  margin-top: 2px;
}

@keyframes shopCoinFloat {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-14px) rotate(10deg); }
}

@keyframes shopCoinFloatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes shopPileBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes shopPileBobFlip {
  0%, 100% { transform: scaleX(-1) translateY(0); }
  50% { transform: scaleX(-1) translateY(-6px); }
}

@keyframes shopSparkle {
  0%, 100% { opacity: 0.25; transform: scale(0.75) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.15) rotate(20deg); }
}

@media (prefers-reduced-motion: reduce) {
  .shop-decor__coin,
  .shop-decor__sparkle,
  .shop-decor__pile,
  .shop-coin--float,
  .shop-gem--float,
  .shop-buy__price .shop-coin,
  .shop-buy__price .shop-gem {
    animation: none !important;
  }
}

@media (max-width: 420px) {
  .shop-wallets {
    width: 100%;
    justify-content: space-between;
  }

  .shop-item {
    flex-wrap: wrap;
  }

  .shop-buy {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    min-width: 0;
  }

  .shop-decor__pile {
    display: none;
  }
}

.start-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  width: 100%;
  max-width: min(420px, 92vw);
  margin: 0 auto 18px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255, 213, 74, 0.22);
}

.panel--start {
  padding-top: max(88px, env(safe-area-inset-top, 0px));
  /* Extra room so Start Game clears the fixed bottom tab bar when scrolled down. */
  padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px));
  gap: 0;
}

@media (prefers-reduced-motion: reduce) {
  .btn--start__shine {
    animation: none !important;
  }
}

/* --- Opening splash: animated coral reef --- */
.app--splash .hud,
.app--splash .hint,
.app--splash .home-launch-dock,
.app--splash .home-launch-stack,
.app--splash .adventure-launch__hint {
  opacity: 0;
  pointer-events: none;
}

.panel--splash {
  z-index: 80;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #05535f;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.panel--splash[hidden] {
  display: none;
}

.splash-reef {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-reef__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.splash-reef__rays {
  transform-origin: 400px 0;
  animation: splashRaySway 9s ease-in-out infinite alternate;
}

.splash-coral--left,
.splash-coral--right,
.splash-coral--mid {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: splashCoralSway 4.8s ease-in-out infinite alternate;
}

.splash-coral--right {
  animation-duration: 5.4s;
  animation-delay: -1.4s;
}

.splash-coral--mid {
  animation-duration: 3.9s;
  animation-delay: -0.7s;
}

.splash-grass--1,
.splash-grass--2 {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: splashGrassSway 3.4s ease-in-out infinite alternate;
}

.splash-grass--2 {
  animation-duration: 4.1s;
  animation-delay: -1s;
}

.splash-bubble {
  animation: splashBubbleRise 6.4s ease-in infinite;
}

.splash-bubble--1 { animation-duration: 5.6s; animation-delay: 0s; }
.splash-bubble--2 { animation-duration: 7.2s; animation-delay: -1.5s; }
.splash-bubble--3 { animation-duration: 6.4s; animation-delay: -0.8s; }
.splash-bubble--4 { animation-duration: 8.2s; animation-delay: -2.4s; }
.splash-bubble--5 { animation-duration: 5.9s; animation-delay: -3.1s; }
.splash-bubble--6 { animation-duration: 7s; animation-delay: -4.2s; }
.splash-bubble--7 { animation-duration: 6.6s; animation-delay: -2s; }

.splash-mote {
  animation: splashMoteDrift 11s ease-in-out infinite;
}

.splash-mote--1 { animation-duration: 10s; animation-delay: 0s; }
.splash-mote--2 { animation-duration: 13s; animation-delay: -2s; }
.splash-mote--3 { animation-duration: 12s; animation-delay: -4s; }
.splash-mote--4 { animation-duration: 14s; animation-delay: -1s; }
.splash-mote--5 { animation-duration: 11s; animation-delay: -6s; }

.splash-jelly--1 {
  animation: splashJellyDrift 15s ease-in-out infinite;
}

.splash-jelly--2 {
  animation: splashJellyDrift2 19s ease-in-out infinite;
}

/* Creatures face right in SVG art. scaleX(1) = swim right, scaleX(-1) = swim left. */
.splash-turtle {
  animation: splashTurtleSwim 24s linear infinite;
}

.splash-turtle__rig {
  animation: splashTurtleBob 1.6s ease-in-out infinite;
  transform-origin: center;
}

.splash-turtle__flipper {
  transform-box: fill-box;
}

.splash-turtle__flipper--front-top {
  transform-origin: 10px -4px;
  animation: splashFlipperFront 0.85s ease-in-out infinite;
}

.splash-turtle__flipper--front-bot {
  transform-origin: 12px 8px;
  animation: splashFlipperFront 0.85s ease-in-out infinite reverse;
}

.splash-turtle__flipper--rear-top {
  transform-origin: -8px -4px;
  animation: splashFlipperRear 0.95s ease-in-out infinite;
}

.splash-turtle__flipper--rear-bot {
  transform-origin: -6px 6px;
  animation: splashFlipperRear 0.95s ease-in-out infinite reverse;
}

.splash-turtle__head {
  animation: splashTurtleHead 2.2s ease-in-out infinite;
  transform-origin: 24px 0;
}

.splash-hero-fish {
  animation: splashHeroSwim 22s linear infinite;
}

.splash-angel {
  animation: splashAngelSwim 28s linear infinite;
}

.splash-clown {
  animation: splashClownSwim 20s linear infinite;
}

.splash-fish-swim {
  animation: splashFishSwim 2.4s ease-in-out infinite;
  transform-origin: center;
}

.splash-fish-tail {
  animation: splashFishTail 1.1s ease-in-out infinite;
  transform-origin: -12px 0;
}

.splash-hero-fish .splash-fish-tail {
  transform-origin: -28px 0;
  animation-duration: 1.2s;
}

.splash-angel .splash-fish-tail {
  transform-origin: -12px 0;
  animation-duration: 1.35s;
}

.splash-clown .splash-fish-tail {
  transform-origin: -16px 0;
  animation-duration: 1.05s;
}

.splash-minnow .splash-fish-tail {
  transform-origin: -8px 0;
  animation-duration: 0.9s;
}

.splash-fish-fin {
  animation: splashFishFin 1.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: bottom center;
}

.splash-fish-fin--bot {
  transform-origin: top center;
  animation-direction: reverse;
}

.splash-angel .splash-fish-swim {
  animation-duration: 2.8s;
}

.splash-clown .splash-fish-swim {
  animation-duration: 2.2s;
}

.splash-minnow .splash-fish-swim {
  animation-duration: 1.8s;
}

.splash-minnow--1 { animation: splashMinnowSwimA 18s linear infinite; }
.splash-minnow--2 { animation: splashMinnowSwimB 18s linear infinite -2s; }
.splash-minnow--3 { animation: splashMinnowSwimC 18s linear infinite -4s; }
.splash-minnow--4 { animation: splashMinnowSwimD 18s linear infinite -6s; }
.splash-minnow--5 { animation: splashMinnowSwimE 18s linear infinite -8s; }

.splash-minnow--2 .splash-fish-swim { animation-delay: -0.3s; }
.splash-minnow--3 .splash-fish-swim { animation-delay: -0.6s; }
.splash-minnow--4 .splash-fish-swim { animation-delay: -0.9s; }
.splash-minnow--5 .splash-fish-swim { animation-delay: -1.2s; }

.splash-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 640px);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.splash-copy__brand {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(3.2rem, 14vw, 6.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
  white-space: nowrap;
  text-align: center;
  background: var(--brand-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 213, 74, 0.45));
}

.splash-copy__title {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 4.2vw, 1.75rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: #f8fafc;
  text-shadow: 0 2px 14px rgba(3, 21, 37, 0.7);
  animation: splashClickPulse 1.8s ease-in-out infinite;
}

.splash-copy__hint {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.95rem;
  white-space: nowrap;
  text-align: center;
  color: rgba(226, 242, 255, 0.78);
  text-shadow: 0 1px 10px rgba(3, 21, 37, 0.65);
}

@keyframes splashRaySway {
  from { opacity: 0.12; transform: skewX(-2.5deg); }
  to { opacity: 0.22; transform: skewX(2.5deg); }
}

@keyframes splashCoralSway {
  from { transform: rotate(-2.4deg); }
  to { transform: rotate(2.4deg); }
}

@keyframes splashGrassSway {
  from { transform: skewX(-6deg) rotate(-1.5deg); }
  to { transform: skewX(6deg) rotate(1.5deg); }
}

@keyframes splashBubbleRise {
  0% { transform: translate(0, 0) scale(0.7); opacity: 0; }
  10% { opacity: 0.55; }
  100% { transform: translate(10px, -240px) scale(1.15); opacity: 0; }
}

@keyframes splashMoteDrift {
  0%, 100% { transform: translate(0, 0); opacity: 0.15; }
  50% { transform: translate(12px, -18px); opacity: 0.4; }
}

@keyframes splashJellyDrift {
  0% { transform: translate(120px, 290px) scale(1); }
  50% { transform: translate(210px, 150px) scale(1.06); }
  100% { transform: translate(120px, 290px) scale(1); }
}

@keyframes splashJellyDrift2 {
  0% { transform: translate(620px, 210px) scale(1); }
  50% { transform: translate(530px, 115px) scale(1.08); }
  100% { transform: translate(620px, 210px) scale(1); }
}

@keyframes splashTurtleBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-4px) rotate(1.5deg); }
}

@keyframes splashTurtleHead {
  0%, 100% { transform: rotate(-2deg) translateX(0); }
  50% { transform: rotate(3deg) translateX(1px); }
}

@keyframes splashFlipperFront {
  0%, 100% { transform: rotate(-22deg); }
  50% { transform: rotate(28deg); }
}

@keyframes splashFlipperRear {
  0%, 100% { transform: rotate(16deg); }
  50% { transform: rotate(-20deg); }
}

@keyframes splashFishSwim {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-2px) rotate(1deg); }
}

@keyframes splashFishTail {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(6deg); }
}

@keyframes splashFishFin {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(4deg); }
}

@keyframes splashTurtleSwim {
  0% { transform: translate(-90px, 305px) scaleX(1); }
  24% { transform: translate(280px, 285px) scaleX(1); }
  48% { transform: translate(860px, 265px) scaleX(1); }
  50% { transform: translate(860px, 265px) scaleX(-1); }
  74% { transform: translate(380px, 300px) scaleX(-1); }
  98% { transform: translate(-90px, 320px) scaleX(-1); }
  100% { transform: translate(-90px, 305px) scaleX(1); }
}

@keyframes splashHeroSwim {
  0% { transform: translate(-100px, 180px) scaleX(1); }
  46% { transform: translate(870px, 168px) scaleX(1); }
  50% { transform: translate(870px, 168px) scaleX(-1); }
  96% { transform: translate(-100px, 192px) scaleX(-1); }
  100% { transform: translate(-100px, 180px) scaleX(1); }
}

@keyframes splashAngelSwim {
  0% { transform: translate(870px, 220px) scaleX(-1); }
  46% { transform: translate(-90px, 210px) scaleX(-1); }
  50% { transform: translate(-90px, 210px) scaleX(1); }
  96% { transform: translate(870px, 232px) scaleX(1); }
  100% { transform: translate(870px, 220px) scaleX(-1); }
}

@keyframes splashClownSwim {
  0% { transform: translate(-80px, 315px) scaleX(1); }
  46% { transform: translate(890px, 305px) scaleX(1); }
  50% { transform: translate(890px, 305px) scaleX(-1); }
  96% { transform: translate(-80px, 322px) scaleX(-1); }
  100% { transform: translate(-80px, 315px) scaleX(1); }
}

@keyframes splashMinnowSwimA {
  0% { transform: translate(-50px, 148px) scaleX(1); }
  100% { transform: translate(880px, 142px) scaleX(1); }
}

@keyframes splashMinnowSwimB {
  0% { transform: translate(-70px, 165px) scaleX(1); }
  100% { transform: translate(900px, 158px) scaleX(1); }
}

@keyframes splashMinnowSwimC {
  0% { transform: translate(-40px, 140px) scaleX(1); }
  100% { transform: translate(860px, 148px) scaleX(1); }
}

@keyframes splashMinnowSwimD {
  0% { transform: translate(-60px, 156px) scaleX(1); }
  100% { transform: translate(890px, 150px) scaleX(1); }
}

@keyframes splashMinnowSwimE {
  0% { transform: translate(-55px, 152px) scaleX(1); }
  100% { transform: translate(870px, 158px) scaleX(1); }
}

@keyframes splashClickPulse {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-reef__rays,
  .splash-coral--left,
  .splash-coral--right,
  .splash-coral--mid,
  .splash-grass--1,
  .splash-grass--2,
  .splash-bubble,
  .splash-mote,
  .splash-jelly--1,
  .splash-jelly--2,
  .splash-turtle,
  .splash-turtle__rig,
  .splash-turtle__flipper--front-top,
  .splash-turtle__flipper--front-bot,
  .splash-turtle__flipper--rear-top,
  .splash-turtle__flipper--rear-bot,
  .splash-turtle__head,
  .splash-hero-fish,
  .splash-angel,
  .splash-clown,
  .splash-fish-swim,
  .splash-fish-tail,
  .splash-fish-fin,
  .splash-minnow--1,
  .splash-minnow--2,
  .splash-minnow--3,
  .splash-minnow--4,
  .splash-minnow--5,
  .splash-copy__title {
    animation: none !important;
  }
  .splash-hero-fish { transform: translate(280px, 180px); }
  .splash-angel { transform: translate(520px, 210px) scaleX(-1); }
  .splash-clown { transform: translate(180px, 300px); }
  .splash-turtle { transform: translate(400px, 280px); }
  .splash-jelly--1 { transform: translate(140px, 220px); }
  .splash-jelly--2 { transform: translate(580px, 160px); }
  .splash-minnow--1 { transform: translate(200px, 150px); }
  .splash-minnow--2 { transform: translate(240px, 168px); }
  .splash-minnow--3 { transform: translate(280px, 142px); }
  .splash-minnow--4 { transform: translate(320px, 160px); }
  .splash-minnow--5 { transform: translate(360px, 155px); }
  .splash-copy__title { opacity: 1; }
}

.panel--start .home-corner {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(220px, 52vw);
  pointer-events: none;
}

.panel--start .home-corner > * {
  pointer-events: auto;
}

.home-launch-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 46;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding:
    8px 10px
    max(10px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  border-top: 1px solid rgba(255, 213, 74, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 36, 54, 0.92), rgba(3, 16, 28, 0.98));
  box-shadow:
    0 -10px 28px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.home-launch-dock[hidden] {
  display: none !important;
}

.panel--start .start-toolbar {
  position: static;
  top: auto;
  right: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 11px;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 9px;
  text-align: right;
  z-index: auto;
  border-radius: 20px;
  border: 2px solid rgba(255, 213, 74, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(165deg, rgba(22, 92, 112, 0.96), rgba(8, 36, 54, 0.98));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(255, 213, 74, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 213, 74, 0.12);
}

.panel--start .start-toolbar__stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel--start .start-toolbar__coins,
.panel--start .start-toolbar__gems,
.panel--start .start-toolbar__chests {
  text-align: right;
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 55%),
    rgba(3, 21, 37, 0.4);
  border: 1px solid rgba(255, 213, 74, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel--start .start-toolbar__coins {
  border-color: rgba(255, 213, 74, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 224, 138, 0.14), transparent 50%),
    rgba(3, 21, 37, 0.42);
}

.panel--start .start-toolbar__gems {
  border-color: rgba(167, 139, 250, 0.5);
  background:
    linear-gradient(180deg, rgba(167, 139, 250, 0.18), transparent 50%),
    rgba(3, 21, 37, 0.42);
}

.panel--start .start-toolbar__value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.start-settings {
  position: relative;
  display: flex;
  justify-content: flex-end;
  z-index: 3;
}

.start-settings__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 2px solid rgba(255, 213, 74, 0.5);
  color: #ffe08a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(8, 28, 48, 0.55));
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, color 0.12s ease, filter 0.12s ease;
}

.start-settings__toggle:hover,
.start-settings__toggle:focus-visible {
  outline: none;
  color: #fff8dc;
  border-color: rgba(255, 224, 138, 0.85);
  filter: brightness(1.06);
}

.start-settings__toggle[aria-expanded="true"] {
  color: #10200f;
  border-color: rgba(167, 243, 208, 0.85);
  background: linear-gradient(180deg, rgba(167, 243, 208, 0.95), rgba(52, 211, 153, 0.85));
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.28);
}

.start-settings__toggle[aria-expanded="true"] .start-settings__icon {
  transform: rotate(45deg);
}

.start-settings__icon {
  display: block;
  transition: transform 0.2s ease;
}

.start-settings__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: min(200px, 72vw);
  padding: 10px;
  border-radius: 16px;
  border: 2px solid rgba(255, 213, 74, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(14, 64, 84, 0.98), rgba(6, 28, 44, 0.98));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  z-index: 40;
}

.start-settings__menu[hidden] {
  display: none;
}

.panel--start .btn--help,
.panel--start .btn--reset,
.panel--start .btn--shop,
.panel--start .btn--music,
.panel--start .btn--feedback {
  width: 100%;
  padding: 9px 14px;
  font-size: 0.82rem;
  white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(8, 28, 48, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.panel--start .btn--feedback {
  color: #bae6fd;
  border-color: rgba(125, 211, 252, 0.45);
}

.start-settings__admin {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(253, 230, 138, 0.35);
  background: rgba(8, 47, 73, 0.72);
}

.start-settings__admin[hidden] {
  display: none !important;
}

.start-settings__admin-title {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde68a;
}

.start-settings__admin-line {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.35;
}

.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  pointer-events: auto;
}

.feedback-overlay[hidden] {
  display: none !important;
}

.feedback-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(12, 74, 110, 0.55), rgba(2, 6, 23, 0.92));
}

.feedback-overlay__stage {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(90dvh, 640px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: linear-gradient(165deg, #0c4a6e 0%, #0f172a 55%, #082f49 100%);
  text-align: left;
  box-shadow: 0 18px 48px rgba(2, 18, 32, 0.5);
  pointer-events: auto;
}

.feedback-overlay__badge {
  margin: 0 0 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde68a;
}

.feedback-overlay__title {
  margin: 0 0 6px;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #e0f2fe;
}

.feedback-overlay__lede {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.9);
  line-height: 1.35;
}

.feedback-overlay__label {
  display: block;
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(253, 230, 138, 0.9);
}

.feedback-overlay__input {
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(8, 47, 73, 0.7);
  color: #f8fafc;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  resize: vertical;
}

.feedback-overlay__input:focus {
  outline: 2px solid rgba(125, 211, 252, 0.55);
  outline-offset: 1px;
}

.feedback-overlay__shot-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(253, 230, 138, 0.28);
  background: rgba(15, 23, 42, 0.45);
  color: #fef3c7;
}

.feedback-overlay__shot {
  margin: 0 0 14px;
}

.feedback-overlay__file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.feedback-overlay__shot-row {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
}

.feedback-overlay__pick,
.feedback-overlay__clear {
  flex: 1 1 auto;
  min-height: 44px;
  touch-action: manipulation;
}

.feedback-overlay__preview-wrap {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: rgba(8, 47, 73, 0.55);
}

.feedback-overlay__preview-wrap[hidden] {
  display: none !important;
}

.feedback-overlay__preview {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.45);
}

.feedback-overlay__shot-name {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.88);
  word-break: break-word;
}

.feedback-overlay__shot-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.feedback-overlay__shot-copy {
  flex: 1 1 auto;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(254, 243, 199, 0.95);
}

.feedback-overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  bottom: 0;
  padding-top: 4px;
  background: linear-gradient(180deg, transparent, #082f49 28%);
}

.feedback-overlay__status {
  margin: 0 0 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(252, 165, 165, 0.45);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.feedback-overlay__status[hidden] {
  display: none !important;
}

.feedback-overlay__status--info {
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(8, 47, 73, 0.65);
  color: #bae6fd;
}

.feedback-overlay__actions .btn {
  width: 100%;
  min-height: 44px;
  touch-action: manipulation;
}

.panel--start .btn--reset {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.42);
}

.start-toolbar__coins,
.start-toolbar__gems,
.start-toolbar__chests {
  margin: 0;
  flex: 1 1 auto;
  text-align: left;
  min-width: 0;
}

.start-toolbar__value--gems {
  color: #ddd6fe;
}

.start-toolbar__value--chests {
  color: #fbbf24;
}

.start-toolbar__value--chests::before {
  content: "▣";
  display: inline-block;
  margin-right: 0.28em;
  color: #fcd34d;
  font-size: 0.72em;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.55));
}

.start-toolbar__label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 224, 138, 0.78);
  font-weight: 800;
}

.start-toolbar__value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.55rem;
  color: #ffe08a;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(255, 213, 74, 0.3);
}

.btn--shop,
.btn--music {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 0.88rem;
}

.btn--music[aria-pressed="true"] {
  color: #10200f;
  border-color: rgba(167, 243, 208, 0.85);
  background: linear-gradient(180deg, rgba(167, 243, 208, 0.92), rgba(52, 211, 153, 0.82));
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.24);
}

.rod-option--bait-standard {
  border-left: 5px solid #94a3b8;
}

.rod-option--bait-nightcrawler {
  border-left: 5px solid #6b8f71;
}

.rod-option--bait-shrimp {
  border-left: 5px solid #e8a0a0;
}

.rod-option--bait-glow-jelly {
  border-left: 5px solid #67e8f9;
}

.rod-option--bait-squid {
  border-left: 5px solid #6b5b95;
}

.rod-option--bait-golden {
  border-left: 5px solid #d4a017;
}

.rod-option--bait-kraken-spray {
  border-left: 5px solid #7c6bcf;
}

.rod-option--disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.rod-option--locked {
  opacity: 0.72;
}

.rod-option--locked .rod-option__stock {
  color: #f5d78e;
}

.rod-option__stock {
  display: block;
  margin-top: 2px;
  font-size: clamp(0.64rem, 2.4vw, 0.72rem);
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: 0.03em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.panel__coinline {
  margin: -8px 0 16px;
  font-size: 1rem;
  color: var(--muted);
}

.panel__coinline.duel-over__prize--burst {
  animation: duelPrizeCoinBurst 0.9s ease-out;
  color: #ffe08a;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(255, 213, 74, 0.65);
}

@keyframes duelPrizeCoinBurst {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  45% {
    transform: scale(1.18);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.panel__coinline strong {
  color: #f5d78e;
  font-size: 1.15rem;
}

.shop-guide {
  position: fixed;
  inset: max(14px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  z-index: 46;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 42px);
  width: auto;
  max-width: none;
  margin: 0;
  padding: clamp(18px, 4vw, 42px);
  border-radius: calc(var(--radius) + 8px);
  background: radial-gradient(ellipse at 28% 28%, rgba(77, 255, 243, 0.18), rgba(3, 21, 37, 0.94) 62%);
  border: 1px solid rgba(255, 213, 74, 0.35);
  text-align: left;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shop-guide[hidden] {
  display: none;
}

.shop-guide-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 213, 74, 0.42);
  border-radius: 999px;
  background: rgba(8, 28, 48, 0.9);
  color: var(--text);
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}

.shop-guide-launch__face {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fffbeb, transparent 42%),
    linear-gradient(185deg, #fde68a, #d97706);
  border: 2px solid #78350f;
  animation: shopSailorIdle 2.8s ease-in-out infinite;
  overflow: visible;
}

.shop-guide-launch__face::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 26px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #16a34a 58%, #14532d 58%);
  border: 2px solid #052e16;
  box-shadow: inset 0 -5px 0 0 #fbbf24;
}

.shop-guide-launch__face::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #f59e0b;
  animation: shopLaunchTalk 0.45s steps(2, end) infinite;
  background: none;
  border-radius: 0;
}

.shop-guide-launch__text {
  white-space: nowrap;
}

.shop-guide__head {
  transform-origin: 130px 90px;
  animation: shopSailorHeadBob 2.8s ease-in-out infinite;
}

.shop-guide__eye-l,
.shop-guide__eye-r {
  transform-box: fill-box;
  transform-origin: center;
}

.shop-guide__eyelid {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transform: scaleY(0.08);
  animation: shopSailorBlink 4.6s ease-in-out infinite;
}

.shop-guide__beak {
  transform-origin: 130px 84px;
  animation: shopSeagullTalk 0.42s steps(2, end) infinite;
}

.shop-guide__wing-l,
.shop-guide__wing-r {
  transform-box: view-box;
}

.shop-guide__wing-l {
  transform-origin: 100px 120px;
  animation: shopSeagullWingL 0.92s cubic-bezier(0.33, 0.08, 0.28, 1) infinite;
}

.shop-guide__wing-r {
  transform-origin: 160px 120px;
  animation: shopSeagullWingR 0.92s cubic-bezier(0.33, 0.08, 0.28, 1) infinite;
}

.shop-guide__wing-l-sec,
.shop-guide__wing-r-sec {
  transform-box: view-box;
}

.shop-guide__wing-l-sec {
  transform-origin: 98px 118px;
  animation: shopSeagullWingSecL 0.92s cubic-bezier(0.33, 0.08, 0.28, 1) infinite;
}

.shop-guide__wing-r-sec {
  transform-origin: 162px 118px;
  animation: shopSeagullWingSecR 0.92s cubic-bezier(0.33, 0.08, 0.28, 1) infinite;
}

.shop-guide__legs {
  transform-origin: 130px 160px;
  animation: shopSeagullLegs 0.92s cubic-bezier(0.33, 0.08, 0.28, 1) infinite;
}

.shop-guide__sailor {
  position: relative;
  flex: 0 0 min(48vw, 380px);
  width: min(48vw, 380px);
  height: min(70vh, 520px);
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.42));
  transform-origin: 50% 55%;
  animation: shopSeagullFly 0.92s cubic-bezier(0.33, 0.08, 0.28, 1) infinite;
}

.shop-guide__art {
  width: min(100%, 360px);
  height: auto;
  max-height: 100%;
  display: block;
  overflow: visible;
}

@keyframes shopSeagullFly {
  0%,
  100% {
    transform: translateY(3px) rotate(-1deg);
  }
  28% {
    transform: translateY(-11px) rotate(1.2deg);
  }
  52% {
    transform: translateY(-2px) rotate(-0.4deg);
  }
  78% {
    transform: translateY(-6px) rotate(0.6deg);
  }
}

@keyframes shopSailorIdle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes shopSailorHeadBob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(1.2px) rotate(0.6deg);
  }
}

@keyframes shopSeagullTalk {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.16);
  }
}

/* Natural flap: quick power downstroke, slower recovery, slight foreshortening */
@keyframes shopSeagullWingL {
  0% {
    transform: rotate(22deg) scaleY(0.9);
  }
  26% {
    transform: rotate(-36deg) scaleY(1.05);
  }
  55% {
    transform: rotate(-8deg) scaleY(0.98);
  }
  100% {
    transform: rotate(22deg) scaleY(0.9);
  }
}

@keyframes shopSeagullWingR {
  0% {
    transform: rotate(-22deg) scaleY(0.9);
  }
  26% {
    transform: rotate(36deg) scaleY(1.05);
  }
  55% {
    transform: rotate(8deg) scaleY(0.98);
  }
  100% {
    transform: rotate(-22deg) scaleY(0.9);
  }
}

@keyframes shopSeagullWingSecL {
  0% {
    transform: rotate(8deg);
  }
  26% {
    transform: rotate(-14deg);
  }
  55% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(8deg);
  }
}

@keyframes shopSeagullWingSecR {
  0% {
    transform: rotate(-8deg);
  }
  26% {
    transform: rotate(14deg);
  }
  55% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(-8deg);
  }
}

@keyframes shopSeagullLegs {
  0%,
  100% {
    transform: translateY(0);
  }
  26% {
    transform: translateY(4px);
  }
  55% {
    transform: translateY(1px);
  }
}

@keyframes shopSailorBlink {
  0%,
  88%,
  100% {
    transform: scaleY(0.08);
  }
  90% {
    transform: scaleY(1);
  }
  92% {
    transform: scaleY(0.08);
  }
}

@keyframes shopLaunchTalk {
  0%,
  100% {
    transform: translateX(-50%) scaleY(1);
  }
  50% {
    transform: translateX(-50%) scaleY(1.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-guide__sailor,
  .shop-guide__head,
  .shop-guide__eyelid,
  .shop-guide__beak,
  .shop-guide__wing-l,
  .shop-guide__wing-r,
  .shop-guide__wing-l-sec,
  .shop-guide__wing-r-sec,
  .shop-guide__legs,
  .shop-guide-launch__face,
  .shop-guide-launch__face::after {
    animation: none !important;
  }

  .shop-guide__eyelid {
    transform: scaleY(0.08);
  }
}

.shop-guide__bubble {
  position: relative;
  flex: 0 1 min(48vw, 520px);
  min-width: 0;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 24px;
  background: rgba(255, 253, 235, 0.95);
  border: 3px solid rgba(15, 23, 42, 0.7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: rgba(240, 247, 255, 0.86);
}

.shop-guide__bubble::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 46%;
  width: 36px;
  height: 36px;
  background: rgba(255, 253, 235, 0.95);
  border-left: 3px solid rgba(15, 23, 42, 0.7);
  border-bottom: 3px solid rgba(15, 23, 42, 0.7);
  transform: rotate(45deg);
}

.shop-guide__bubble strong {
  display: block;
  color: #0f172a;
  margin-bottom: 8px;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
}

.shop-guide__bubble p {
  margin: 0 0 14px;
  color: #1e293b;
  font-size: clamp(0.95rem, 2.1vw, 1.15rem);
  line-height: 1.45;
}

.shop-guide__btn {
  padding: 10px 16px;
  font-size: 0.86rem;
}

@media (max-width: 680px) {
  .shop-guide {
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .shop-guide__sailor {
    flex-basis: min(42vh, 320px);
    width: min(78vw, 300px);
    height: min(42vh, 320px);
  }

  .shop-guide__bubble {
    flex: 0 0 auto;
    width: min(560px, 92vw);
  }

  .shop-guide__bubble::before {
    left: 50%;
    top: -19px;
    transform: translateX(-50%) rotate(135deg);
  }
}

.start-more-options {
  display: none !important;
}

@media (max-width: 560px) {
  .panel--start .home-corner {
    display: contents;
    position: static;
    width: auto;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    pointer-events: none;
  }

  .panel--start .start-toolbar {
    position: static;
    order: -1;
    z-index: 2;
    width: min(420px, 92vw);
    margin: 0 auto 10px;
    pointer-events: auto;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 14px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .panel--start .start-toolbar__stats {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .panel--start .start-toolbar__coins,
  .panel--start .start-toolbar__gems,
  .panel--start .start-toolbar__chests {
    flex: 1 1 0;
    text-align: left;
    padding: 4px 8px;
    border-radius: 9px;
  }

  .panel--start .start-toolbar__value {
    justify-content: flex-start;
    font-size: 1.05rem;
  }

  .panel--start .start-toolbar__label {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }

  .panel--start .start-settings {
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  .start-settings__toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .start-settings__icon {
    width: 18px;
    height: 18px;
  }

  .start-settings__menu {
    min-width: min(180px, 70vw);
    padding: 8px;
  }

  .panel--start .btn--help,
  .panel--start .btn--reset,
  .panel--start .btn--shop,
  .panel--start .btn--music {
    padding: 7px 10px;
    font-size: 0.72rem;
    border-radius: 999px;
    min-height: 0;
  }

  .panel--start .home-launch-dock {
    order: unset;
    width: 100%;
    margin: 0;
    gap: 6px;
    pointer-events: none;
  }

  .panel--start .start-game-wrap {
    order: 30;
    width: min(420px, 92vw);
  }

  .panel--start .rods {
    order: 20;
  }

  .panel--start {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-bottom: calc(240px + env(safe-area-inset-bottom, 0px));
  }

  .panel--start .panel__headline--brand {
    order: 0;
    font-size: clamp(2.2rem, 9vw, 2.8rem);
    padding-right: 0;
    text-align: center;
    align-self: center;
    width: 100%;
    margin-top: 4px;
  }
}

.hud__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.seagull-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(160deg, #0e7490, #0c4a6e 55%, #082f49);
  border: 2px solid rgba(255, 213, 74, 0.7);
  box-shadow:
    0 0 0 2px rgba(8, 28, 48, 0.85),
    0 6px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.avatar-frame-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.avatar-frame-ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

.seagull-avatar .companion-avatar__art,
.online-matchup__avatar .online-matchup__art {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
}

.seagull-avatar.companion-host--manta,
.online-matchup__avatar.companion-host--manta {
  overflow: visible;
}

.seagull-avatar .companion-avatar__tail,
.online-matchup__avatar .companion-avatar__tail {
  grid-area: 1 / 1;
  place-self: center;
  display: block;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

.seagull-avatar .companion-avatar__tail {
  width: 108%;
  height: 108%;
}

.online-matchup__avatar .companion-avatar__tail {
  width: 112%;
  height: 112%;
}

.seagull-avatar--profile {
  width: 132px;
  height: 132px;
}

.seagull-avatar--profile .companion-avatar__art {
  animation: collectablesSeagullIdle 3.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}

button.seagull-avatar {
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

button.seagull-avatar:hover,
button.seagull-avatar:focus-visible {
  filter: brightness(1.06);
  transform: scale(1.05);
  box-shadow:
    0 0 0 2px rgba(8, 28, 48, 0.85),
    0 8px 18px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(255, 213, 74, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

button.seagull-avatar:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.85);
  outline-offset: 3px;
}

button.seagull-avatar:active {
  transform: scale(0.97);
}

.seagull-avatar__art,
.companion-avatar__art {
  display: block;
  width: 108%;
  height: 108%;
  overflow: visible;
}

.seagull-avatar__ring {
  stroke: rgba(255, 224, 138, 0.85);
  stroke-width: 3.2;
}

.seagull-avatar--hud {
  width: 48px;
  height: 48px;
}

#app:not(.app--playing) .seagull-avatar--hud {
  display: none;
}

.seagull-avatar--start {
  width: 52px;
  height: 52px;
  align-self: flex-end;
}

.panel--start .start-toolbar .seagull-avatar--start {
  margin: 2px 0;
}

@media (max-width: 560px) {
  .seagull-avatar--hud {
    width: 42px;
    height: 42px;
  }

  .seagull-avatar--start {
    width: 44px;
    height: 44px;
    align-self: center;
  }

  .panel--start .start-toolbar .seagull-avatar--start {
    margin: 0;
  }
}


.stat {
  min-width: 76px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.stat__label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.stat__value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--gold-hot);
}

.stat--time .stat__value {
  color: var(--neon-cyan);
}

.stat--time--urgent .stat__value,
.stat__value--urgent {
  color: #f87171 !important;
  animation: urgentTimerPulse 0.55s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.65);
}

@keyframes urgentTimerPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.app--playing .stat--score {
  min-width: 122px;
  padding: 8px 16px;
  border-color: rgba(255, 213, 74, 0.65);
  box-shadow: 0 0 22px rgba(255, 213, 74, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app--playing .stat--score .stat__label {
  font-size: 0.72rem;
}

.app--playing .stat--score .stat__value {
  font-size: clamp(2.15rem, 6vw, 3rem);
  line-height: 0.95;
}

.canvas-wrap {
  flex: 1 1 auto;
  min-height: 180px;
  position: relative;
  width: 100%;
  z-index: 1;
  /* Let taps reach the start / game-over panels when they sit above this layer. */
  pointer-events: none;
  background:
    linear-gradient(180deg, #0a4a66 0%, #0a3a5c 42%, #031525 100%);
}

.app--playing .canvas-wrap {
  pointer-events: auto;
}

.app--matchup .canvas-wrap {
  pointer-events: auto;
}

/* Keep the play reef fully off-screen under menus (shop, home, events, etc.). */
#app:not(.app--playing):not(.app--matchup):not(.app--crab-trap) .canvas-wrap,
#app.app--show-tabs:not(.app--playing):not(.app--matchup):not(.app--crab-trap) .canvas-wrap {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.app--crab-trap .canvas-wrap {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.app--crab-trap #gameCanvas {
  visibility: hidden;
  pointer-events: none;
}

.online-matchup {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 18%, rgba(56, 189, 248, 0.16), transparent 52%),
    rgba(6, 16, 32, 0.78);
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.online-matchup[hidden] {
  display: none !important;
}

.online-matchup__card {
  width: min(100%, 520px);
  padding: 22px 20px 18px;
  border-radius: 22px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.92));
  box-shadow:
    0 18px 48px rgba(2, 8, 23, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.online-matchup--coop .online-matchup__card {
  border-color: rgba(74, 222, 128, 0.38);
  background:
    linear-gradient(165deg, rgba(15, 32, 24, 0.96), rgba(6, 44, 34, 0.92));
}

.online-matchup--duel .online-matchup__card {
  border-color: rgba(248, 113, 113, 0.38);
  background:
    linear-gradient(165deg, rgba(32, 15, 20, 0.96), rgba(55, 8, 22, 0.92));
}

.online-matchup__headline {
  margin: 0 0 16px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.55rem, 4.8vw, 2rem);
  letter-spacing: 0.08em;
  color: #e0f2fe;
}

.online-matchup--coop .online-matchup__headline {
  color: #dcfce7;
}

.online-matchup--duel .online-matchup__headline {
  color: #fecaca;
}

.online-matchup__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.online-matchup__player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.online-matchup__avatar {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 58%),
    rgba(15, 23, 42, 0.72);
  border: 2px solid rgba(186, 230, 253, 0.55);
  box-shadow:
    0 8px 22px rgba(2, 8, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.online-matchup--coop .online-matchup__avatar {
  border-color: rgba(134, 239, 172, 0.62);
}

.online-matchup--duel .online-matchup__player--rival .online-matchup__avatar {
  border-color: rgba(252, 165, 165, 0.68);
}

.online-matchup__art {
  display: block;
  width: 112%;
  height: 112%;
}

.online-matchup__name {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f8fafc;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-matchup__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
}

.online-matchup__countdown {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1;
  color: #fef08a;
  text-shadow: 0 2px 12px rgba(250, 204, 21, 0.35);
}

.online-matchup__countdown-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.82);
}

.online-matchup__reef {
  margin: 14px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.88);
}

.online-matchup__party {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(8, 47, 73, 0.55);
}

.online-matchup__party[hidden] {
  display: none !important;
}

.online-matchup__party-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.9);
}

.online-matchup__party-code {
  margin: 8px 0 6px;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  letter-spacing: 0.18em;
  line-height: 1;
  color: #fef9c3;
  text-shadow: 0 2px 0 rgba(15, 23, 42, 0.45);
}

.online-matchup__party-hint {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.78);
}

.online-matchup__cancel {
  margin-top: 14px;
}

.party-join-form {
  display: grid;
  gap: 8px;
  margin: 8px 16px 0;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.party-join-form__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.85);
}

.party-join-form__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.party-join-form__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(8, 47, 73, 0.65);
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.party-join-form__input::placeholder {
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.85);
}

.party-join-form__btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.friend-picker--party {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  justify-items: stretch;
  box-sizing: border-box;
}

.friend-picker__mode {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.friend-picker__mode[aria-pressed="true"] {
  border-color: rgba(125, 211, 252, 0.65);
  background: rgba(14, 116, 144, 0.45);
  color: #ecfeff;
}

.event-card--party-join {
  border-color: rgba(125, 211, 252, 0.28);
  box-sizing: border-box;
  max-width: min(420px, 100%);
  width: 100%;
  overflow-x: hidden;
}

.online-matchup--coop .online-matchup__reef {
  color: rgba(187, 247, 208, 0.9);
}

@media (max-width: 560px) {
  .panel--events__inner {
    max-width: 100%;
    padding-inline: max(10px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  .panel--events .event-card,
  .event-card--party-join {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
  }

  .panel--events .event-card__head,
  .panel--events .event-card__title-row {
    overflow: visible;
  }

  .panel--events .event-card__info {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .panel--events .event-card__blurb {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }

  .panel--events .event-card__head {
    margin-left: 12px;
    margin-right: 12px;
  }

  .adventure-play-theme {
    gap: 8px;
    padding: 6px 8px;
  }

  .adventure-play-theme__scene {
    width: 64px;
    height: 46px;
  }

  .event-card--party-join .event-card__head,
  .event-card--party-join .event-card__hint {
    margin-left: 12px;
    margin-right: 12px;
  }

  .event-card--party-join .event-card__title {
    font-size: 1.28rem;
  }

  .event-card--party-join .event-card__hint {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .party-join-form {
    margin: 8px 12px 4px;
  }

  .party-join-form__row {
    flex-direction: column;
    gap: 10px;
  }

  .party-join-form__input {
    font-size: 1rem;
    letter-spacing: 0.1em;
    padding: 12px 14px;
    text-align: center;
  }

  .party-join-form__btn {
    width: 100%;
    justify-content: center;
  }

  .online-matchup {
    padding: 10px;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .online-matchup__card {
    width: 100%;
    max-width: 100%;
    padding: 16px 12px 14px;
    box-sizing: border-box;
  }

  .online-matchup__party {
    margin: 0 0 12px;
    padding: 10px;
  }

  .online-matchup__party-code {
    font-size: clamp(1.8rem, 11vw, 2.6rem);
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .online-matchup__party-hint {
    font-size: 0.72rem;
  }
}

@media (max-width: 420px) {
  .online-matchup__avatar {
    width: 64px;
    height: 64px;
  }

  .online-matchup__name {
    font-size: 0.82rem;
  }
}

#gameCanvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  /* Menu sits above; before play, ignore canvas so taps always hit UI (some mobile stacks). */
  pointer-events: none;
  background: transparent;
}

.app--playing #gameCanvas {
  pointer-events: auto;
}

.app--matchup #gameCanvas {
  pointer-events: auto;
}

.hint {
  margin: 0;
  padding: 6px 14px 10px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  flex-shrink: 0;
  z-index: 2;
}

.toast {
  position: fixed;
  left: 50%;
  top: max(18%, env(safe-area-inset-top, 0px) + 72px);
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 61, 172, 0.95), rgba(77, 255, 243, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 800;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: toastPop 0.35s ease-out;
  z-index: 1600;
  white-space: normal;
  text-align: center;
  max-width: min(92vw, 420px);
  line-height: 1.3;
}

.toast[hidden] {
  display: none !important;
}

@keyframes toastPop {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

.panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: max(20px, env(safe-area-inset-top, 0px)) 20px 24px;
  background: radial-gradient(ellipse at 50% 30%, rgba(18, 122, 158, 0.35), rgba(3, 21, 37, 0.92));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 30;
  isolation: isolate;
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
  touch-action: pan-y;
  scroll-padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.panel--start {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 213, 74, 0.18), transparent 46%),
    radial-gradient(ellipse at 18% 85%, rgba(77, 255, 243, 0.1), transparent 42%),
    linear-gradient(180deg, #0c5a78 0%, var(--ocean-mid) 48%, var(--ocean-deep) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.panel.panel--shop,
.panel.panel--start,
.panel.panel--events,
.panel.panel--collectables,
.panel.panel--profile,
.panel.panel--adventure,
.panel.panel--adventure-prep,
.panel.panel--intro,
.panel.panel--crab-reward,
.panel.panel--over,
.panel.panel--duel-over {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.panel[hidden],
.panel.panel--shop[hidden],
.panel.panel--events[hidden],
.panel.panel--collectables[hidden],
.panel.panel--profile[hidden],
.panel.panel--start[hidden],
.panel.panel--adventure[hidden],
.panel.panel--adventure-result[hidden],
.panel.panel--adventure-prep[hidden] {
  display: none !important;
}

.panel__headline {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  background: var(--brand-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 213, 74, 0.45));
  flex-shrink: 0;
}

.panel__headline--brand {
  font-family: var(--font-brand);
  letter-spacing: 0.03em;
}

.panel__lede {
  max-width: 360px;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.panel__lede--intro {
  max-width: min(560px, 92vw);
  color: rgba(240, 247, 255, 0.86);
}

.panel--intro {
  z-index: 42;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 20%, rgba(77, 255, 243, 0.2), rgba(3, 21, 37, 0.96));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.panel--over,
.panel--duel-over {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 213, 74, 0.16), transparent 46%),
    radial-gradient(ellipse at 18% 85%, rgba(77, 255, 243, 0.08), transparent 42%),
    linear-gradient(180deg, #0c5a78 0%, var(--ocean-mid) 48%, var(--ocean-deep) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.intro-card {
  width: 100%;
  max-width: min(560px, 92vw);
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(8, 28, 48, 0.82);
  border: 1px solid rgba(255, 213, 74, 0.28);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 28px rgba(77, 255, 243, 0.12);
}

.intro-card h3 {
  margin: 14px 0 8px;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-card h3:first-child {
  margin-top: 0;
}

.intro-rarity--safety {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(167, 243, 208, 0.35);
  background: rgba(6, 78, 59, 0.28);
  color: #bbf7d0;
  font-weight: 700;
  line-height: 1.4;
}

.intro-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: rgba(240, 247, 255, 0.82);
  line-height: 1.45;
  font-size: 0.9rem;
}

.intro-rarity {
  margin: 0;
  color: rgba(240, 247, 255, 0.82);
  line-height: 1.45;
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.leaderboard-block {
  width: 100%;
  max-width: min(420px, 92vw);
  margin: 0 auto 18px;
  text-align: left;
  flex-shrink: 0;
}

.leaderboard-block--compact {
  margin-top: 8px;
  margin-bottom: 16px;
}

.leaderboard-block__title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.leaderboard {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255, 213, 74, 0.2);
  max-height: none;
  overflow: visible;
}

.leaderboard__row {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1.4fr) auto minmax(0, 0.9fr);
  gap: 6px 8px;
  align-items: center;
  padding: 6px 4px;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.leaderboard__row:last-child {
  border-bottom: none;
}

.leaderboard__rank {
  font-family: "Bebas Neue", sans-serif;
  color: var(--neon-cyan);
  font-size: 1rem;
}

.leaderboard__ini {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gold-hot);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.leaderboard__pts {
  font-weight: 800;
  text-align: right;
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.leaderboard__reef {
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard__empty {
  padding: 12px 8px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.initials-panel {
  width: 100%;
  max-width: min(420px, 92vw);
  margin: 0 auto 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 61, 172, 0.12);
  border: 1px solid rgba(255, 61, 172, 0.35);
  text-align: left;
}

.initials-panel--daily {
  background: rgba(56, 214, 255, 0.1);
  border-color: rgba(56, 214, 255, 0.38);
}

.initials-panel__status {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(196, 240, 255, 0.92);
}

.initials-panel__msg {
  margin: 0 0 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
}

.initials-panel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.initials-input {
  width: 5.5rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid rgba(255, 213, 74, 0.45);
  background: rgba(3, 21, 37, 0.85);
  color: var(--gold-hot);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.initials-input--name {
  width: min(100%, 12rem);
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
  text-transform: none;
  color: #f8fafc;
}

.initials-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgba(77, 255, 243, 0.25);
}

.initials-hint {
  font-size: 0.7rem;
  color: var(--muted);
  flex: 1 1 auto;
}

.btn--secondary {
  background: rgba(8, 28, 48, 0.9);
  color: var(--gold-hot);
  border: 2px solid rgba(255, 213, 74, 0.45);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
}

.btn--secondary:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.panel__scoreline {
  font-size: 1.1rem;
  margin: 0 0 16px;
}

.panel__scoreline strong {
  color: var(--gold-hot);
  font-size: 1.35rem;
}

.rods {
  border: none;
  margin: 0 0 18px;
  padding: 0;
  max-width: 420px;
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.rods--card {
  padding: 16px 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 38%),
    linear-gradient(165deg, rgba(14, 72, 94, 0.88), rgba(6, 32, 48, 0.94));
  border: 1px solid rgba(255, 213, 74, 0.34);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.rods--with-map {
  max-width: min(520px, 94vw);
  overflow: visible;
}

.reef-picker,
.reef-picker--map-first {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.reef-map-panel {
  position: relative;
  width: 100%;
  overflow: visible;
}

.reef-map-panel__title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ae6ff;
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.start-game-wrap {
  position: relative;
  width: 100%;
  max-width: min(440px, 94vw);
  margin-top: 8px;
  margin-bottom: 6px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.map-seagull {
  position: absolute;
  left: 50%;
  /* Bottom of bird (toes) sits 26px onto the Start Game button face */
  top: auto;
  bottom: calc(100% - 44px);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(320px, 94%);
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.38));
}

.map-seagull[hidden] {
  display: none;
}

.map-seagull__perch {
  position: relative;
  display: block;
  width: min(156px, 44vw);
  z-index: 3;
}

.map-seagull__bird {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform-origin: 50% 90%;
  animation: mapSeagullPerch 2.8s ease-in-out infinite;
  pointer-events: none;
}

.map-seagull__legs {
  transform-origin: 70px 120px;
  animation: mapSeagullGrip 2.8s ease-in-out infinite;
}

.map-seagull__head {
  transform-origin: 70px 42px;
  animation: mapSeagullHeadBob 2.8s ease-in-out infinite;
}

.map-seagull__eye-l,
.map-seagull__eye-r {
  transform-box: fill-box;
  transform-origin: center;
  animation: mapSeagullBlink 4.5s ease-in-out infinite;
}

.map-seagull__eye-r {
  animation-delay: 0.06s;
}

.map-seagull__beak {
  transform-origin: 70px 48px;
  animation: mapSeagullTalk 0.38s steps(2, end) infinite;
}

.map-seagull__wing-l,
.map-seagull__wing-r {
  transform-box: fill-box;
  transform-origin: center top;
}

.map-seagull__wing-l {
  animation: mapSeagullWingL 1.8s ease-in-out infinite;
}

.map-seagull__wing-r {
  animation: mapSeagullWingR 1.8s ease-in-out infinite;
}

.map-seagull__bubble {
  pointer-events: auto;
  max-width: min(300px, 86vw);
  padding: 12px 14px 12px;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98), rgba(232, 242, 250, 0.96));
  border: 1.5px solid rgba(14, 116, 144, 0.35);
  color: #0f172a;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  animation: mapSeagullBubbleIn 0.45s ease-out;
  text-align: left;
  margin-bottom: 2px;
}

.map-seagull__title {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #0e7490;
  margin-bottom: 4px;
}

.map-seagull__text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #1e293b;
}

.map-seagull__text ul {
  margin: 6px 0 0;
  padding-left: 1.1em;
}

.map-seagull__text li {
  margin: 0.2em 0;
}

.map-seagull__btn {
  margin-top: 10px;
  width: 100%;
}

.map-seagull--howto .map-seagull__bird {
  animation: mapSeagullPerch 2.8s ease-in-out infinite, mapSeagullArrive 0.7s ease-out;
}

.map-seagull--shop .map-seagull__bird {
  animation: mapSeagullPerch 2.8s ease-in-out infinite, mapSeagullArrive 0.65s ease-out;
}

.map-seagull--fly-away {
  pointer-events: none;
  overflow: visible;
}

.map-seagull--fly-away .map-seagull__perch--flying {
  position: fixed;
  left: var(--fly-left, 50%);
  top: var(--fly-top, 40%);
  width: var(--fly-width, 156px);
  z-index: 220;
  margin: 0;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
}

.map-seagull--fly-away .map-seagull__bubble {
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-seagull--fly-away .map-seagull__legs,
.map-seagull--fly-away .map-seagull__grip-shadow {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.map-seagull--fly-away .map-seagull__bird {
  animation: mapSeagullFlyAway 2.05s cubic-bezier(0.33, 0.02, 0.55, 1) forwards;
}

.map-seagull--fly-away .map-seagull__wing-l,
.map-seagull--fly-away .map-seagull__wing-r {
  transform-box: fill-box;
  animation-duration: 0.16s;
  animation-timing-function: cubic-bezier(0.37, 0.02, 0.28, 1);
  animation-iteration-count: infinite;
  animation-delay: 0s;
}

.map-seagull--fly-away .map-seagull__wing-l {
  transform-origin: 90% 35%;
  animation-name: mapSeagullWingFlapL;
}

.map-seagull--fly-away .map-seagull__wing-r {
  transform-origin: 10% 35%;
  animation-name: mapSeagullWingFlapR;
}

.map-seagull--fly-away .map-seagull__head {
  animation: mapSeagullHeadFly 2.05s ease-out forwards;
}

@keyframes mapSeagullPerch {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.5px);
  }
}

@keyframes mapSeagullGrip {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.97);
  }
}

@keyframes mapSeagullArrive {
  0% {
    transform: translate(0, -40px) scale(0.7);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes mapSeagullFlyAway {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  10% {
    transform: translate(6px, -22px) scale(1.08) rotate(-6deg);
    opacity: 1;
  }
  28% {
    transform: translate(28px, -70px) scale(1.12) rotate(4deg);
    opacity: 1;
  }
  55% {
    transform: translate(42vw, -38vh) scale(0.95) rotate(14deg);
    opacity: 1;
  }
  78% {
    transform: translate(78vw, -62vh) scale(0.72) rotate(22deg);
    opacity: 0.85;
  }
  100% {
    transform: translate(115vw, -95vh) scale(0.4) rotate(28deg);
    opacity: 0;
  }
}

@keyframes mapSeagullHeadFly {
  0%,
  18% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-2px) rotate(-8deg);
  }
}

@keyframes mapSeagullWingL {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-4deg);
  }
}

@keyframes mapSeagullWingR {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes mapSeagullWingFlapL {
  0% {
    transform: rotate(22deg) scale(1.08, 0.92);
  }
  32% {
    transform: rotate(-55deg) scale(1.32, 1.2);
  }
  100% {
    transform: rotate(22deg) scale(1.08, 0.92);
  }
}

@keyframes mapSeagullWingFlapR {
  0% {
    transform: rotate(-22deg) scale(1.08, 0.92);
  }
  32% {
    transform: rotate(55deg) scale(1.32, 1.2);
  }
  100% {
    transform: rotate(-22deg) scale(1.08, 0.92);
  }
}

@keyframes mapSeagullWingFlap {
  0%,
  100% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(22deg);
  }
}

@keyframes mapSeagullHeadBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(1.5px);
  }
}

@keyframes mapSeagullTalk {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.18);
  }
}

@keyframes mapSeagullBlink {
  0%,
  90%,
  100% {
    transform: scaleY(1);
  }
  93% {
    transform: scaleY(0.1);
  }
}

@keyframes mapSeagullBubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-seagull__bird,
  .map-seagull__legs,
  .map-seagull__wing-l,
  .map-seagull__wing-r,
  .map-seagull__head,
  .map-seagull__beak,
  .map-seagull__eye-l,
  .map-seagull__eye-r,
  .map-seagull__bubble,
  .map-seagull--fly-away .map-seagull__bird,
  .map-seagull--fly-away .map-seagull__wing-l,
  .map-seagull--fly-away .map-seagull__wing-r,
  .map-seagull--fly-away .map-seagull__head {
    animation: none !important;
  }

  .map-seagull--fly-away .map-seagull__bird {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
}

.reef-map {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 213, 74, 0.5);
  background: #031525;
  box-shadow:
    inset 0 0 36px rgba(0, 0, 0, 0.4),
    0 12px 28px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(255, 213, 74, 0.12);
}

.reef-map__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  filter: saturate(1.05) contrast(1.02);
}

.reef-map__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 52%, rgba(3, 21, 37, 0.28) 100%),
    linear-gradient(180deg, rgba(18, 122, 158, 0.1), transparent 28%, transparent 72%, rgba(3, 21, 37, 0.22)),
    linear-gradient(90deg, rgba(255, 213, 74, 0.04), transparent 18%, transparent 82%, rgba(77, 255, 243, 0.05));
  box-shadow:
    inset 0 0 0 1px rgba(255, 213, 74, 0.18),
    inset 0 0 24px rgba(3, 21, 37, 0.22);
}

.reef-map__ocean {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
}

.reef-map__pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reef-map__pin {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  border: none;
  background: transparent;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.15s ease, filter 0.15s ease;
}

.reef-map__pin:hover,
.reef-map__pin:focus-visible {
  transform: translate(-50%, -108%) scale(1.12);
  outline: none;
  filter: drop-shadow(0 0 8px rgba(94, 234, 212, 0.7));
  z-index: 4;
}

.reef-map__pin--selected {
  z-index: 3;
  filter: drop-shadow(0 0 10px rgba(255, 213, 74, 0.85));
}

.reef-map__pin-dot {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #ffe082, #f59e0b);
  border: 2px solid #fff8e7;
  box-shadow: inset 0 0 0 2px rgba(120, 53, 15, 0.35);
}

.reef-map__pin--selected .reef-map__pin-dot {
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  border-color: #ecfeff;
}

.reef-map__pin--diff-easy .reef-map__pin-dot {
  background: linear-gradient(135deg, #86efac, #16a34a);
}
.reef-map__pin--diff-medium .reef-map__pin-dot {
  background: linear-gradient(135deg, #7dd3fc, #0284c7);
}
.reef-map__pin--diff-hard .reef-map__pin-dot {
  background: linear-gradient(135deg, #fde68a, #d97706);
}
.reef-map__pin--diff-very-hard .reef-map__pin-dot {
  background: linear-gradient(135deg, #fdba74, #ea580c);
}
.reef-map__pin--diff-expert .reef-map__pin-dot {
  background: linear-gradient(135deg, #f9a8d4, #db2777);
}

.reef-map__boat {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  margin-top: -16px;
  pointer-events: none;
  z-index: 5;
  transition: left 0.22s ease-out, top 0.22s ease-out;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
}

.reef-map-panel__caption {
  margin: 10px 0 0;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: rgba(226, 242, 255, 0.88);
  line-height: 1.4;
  min-height: 2.8em;
  text-align: left;
  font-weight: 700;
  border-radius: 12px;
  background: rgba(3, 21, 37, 0.35);
  border: 1px solid rgba(125, 211, 252, 0.18);
}

.event-card--global {
  border-color: rgba(94, 234, 212, 0.5);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.14), transparent 28%),
    linear-gradient(165deg, rgba(18, 40, 58, 0.96), rgba(10, 22, 36, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(45, 212, 191, 0.12);
}

.event-card--global .event-card__title {
  color: #5eead4;
  text-shadow: 0 0 14px rgba(45, 212, 191, 0.35);
}

.event-card--daily {
  border-color: rgba(251, 191, 36, 0.5);
  background:
    linear-gradient(180deg, rgba(251, 191, 36, 0.14), transparent 28%),
    linear-gradient(165deg, rgba(48, 32, 18, 0.96), rgba(18, 22, 34, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(251, 191, 36, 0.12);
}

.event-card--daily .event-card__title {
  color: #fbbf24;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.3);
}

.event-card--tourney {
  border-color: rgba(167, 139, 250, 0.5);
  background:
    linear-gradient(180deg, rgba(167, 139, 250, 0.16), transparent 28%),
    linear-gradient(165deg, rgba(30, 27, 75, 0.96), rgba(12, 30, 54, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(167, 139, 250, 0.14);
}

.event-card--tourney .event-card__title {
  color: #c4b5fd;
  text-shadow: 0 0 14px rgba(167, 139, 250, 0.35);
}

.tourney-quick-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(167, 139, 250, 0.55);
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.22), rgba(12, 74, 110, 0.35)),
    rgba(15, 23, 42, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.tourney-quick-join__title {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  color: #ede9fe;
}

.tourney-quick-join__line {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: rgba(237, 233, 254, 0.78);
}

.tourney-quick-join__btn {
  flex-shrink: 0;
  min-width: 7.5rem;
  font-weight: 800;
}

.event-card__actions--tourney {
  margin-top: 4px;
  margin-bottom: 10px;
}

.tourney-join-btn {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tourney-card-copy {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: rgba(15, 23, 42, 0.42);
}

.event-card__about .tourney-card-copy {
  /* Keep the shared info-popover box from .event-card__blurb — don't strip it. */
  margin: 0;
}

.tourney-card-copy__live {
  margin: 0 0 6px;
  font-family: "Nunito", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fde68a;
}

.tourney-card-copy__live:last-of-type {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.22);
}

.tourney-card-copy__lead {
  margin: 0 0 8px;
  font-family: "Nunito", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(237, 233, 254, 0.92);
}

.event-card__about .tourney-card-copy__lead {
  margin: 0 0 8px;
  font-size: inherit;
  color: inherit;
}

.tourney-card-copy__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 5px;
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.82);
}

.event-card__about .tourney-card-copy__list {
  font-size: inherit;
  color: inherit;
}

.tourney-card-copy__list strong {
  color: #fde68a;
  font-weight: 800;
}

.tourney-vote-block {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: linear-gradient(160deg, rgba(14, 116, 144, 0.28), rgba(15, 23, 42, 0.55));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.tourney-vote-block__title {
  margin: 0 0 4px;
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #e0f2fe;
}

.tourney-vote-block__hint {
  margin: 0 0 8px;
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.88);
}

.tourney-vote-block__yours {
  margin: 0 0 10px;
  font-family: "Nunito", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fde68a;
}

.tourney-vote-btn--mine {
  border-color: #fde68a !important;
  box-shadow: 0 0 0 1px rgba(253, 230, 138, 0.45);
}

.tourney-vote-reveal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.tourney-vote-reveal[hidden] {
  display: none !important;
}

.tourney-vote-reveal__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(76, 29, 149, 0.55), rgba(2, 6, 23, 0.92));
  opacity: 0;
  transition: opacity 0.45s ease;
}

.tourney-vote-reveal__stage {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px 22px 22px;
  border-radius: 22px;
  border: 1px solid rgba(253, 230, 138, 0.4);
  background: linear-gradient(165deg, #1e1b4b 0%, #0f172a 55%, #082f49 100%);
  text-align: center;
  transform: translateY(18px) scale(0.94);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.tourney-vote-reveal--active .tourney-vote-reveal__backdrop {
  opacity: 1;
}

.tourney-vote-reveal--active .tourney-vote-reveal__stage {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.tourney-vote-reveal__badge {
  margin: 0 0 10px;
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde68a;
}

.tourney-vote-reveal__title {
  margin: 0 0 12px;
  font-family: "Bebas Neue", "Nunito", sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  letter-spacing: 0.04em;
  color: #f8fafc;
}

.tourney-vote-reveal__event {
  margin: 0 0 12px;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 900;
  color: #7dd3fc;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
  animation: tourneyVotePulse 1.4s ease-in-out infinite;
}

.tourney-vote-reveal__detail {
  margin: 0 0 18px;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.88);
}

.tourney-vote-reveal__btn {
  min-width: 140px;
}

.tourney-heat-reveal .tourney-vote-reveal__event {
  color: #fde68a;
  text-shadow: 0 0 24px rgba(253, 230, 138, 0.4);
}

.tourney-heat-reveal .tourney-vote-reveal__btn[hidden] {
  display: none !important;
}

@keyframes tourneyVotePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tourney-vote-reveal__backdrop,
  .tourney-vote-reveal__stage,
  .tourney-vote-reveal__event {
    transition: none;
    animation: none;
  }
  .tourney-vote-reveal--active .tourney-vote-reveal__stage {
    transform: none;
  }
}

.tourney-vote-details {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: rgba(15, 23, 42, 0.45);
}

.tourney-vote-details__summary {
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(237, 233, 254, 0.88);
  list-style: none;
}

.tourney-vote-details__summary::-webkit-details-marker {
  display: none;
}

.tourney-vote-details[open] .tourney-vote-details__summary {
  margin-bottom: 8px;
}


.tourney-bracket-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.tourney-bracket-overlay[hidden] {
  display: none !important;
}

.tourney-bracket-overlay__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 213, 74, 0.18), transparent 46%),
    radial-gradient(ellipse at 18% 85%, rgba(77, 255, 243, 0.12), transparent 42%),
    linear-gradient(180deg, #0c5a78 0%, var(--ocean-mid) 48%, var(--ocean-deep) 100%);
  overflow: hidden;
}

.tourney-bracket-overlay__stage {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: 100%;
  overflow: auto;
  margin: auto;
  padding: 16px 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    rgba(8, 47, 73, 0.72);
  box-shadow: 0 18px 48px rgba(2, 18, 32, 0.45);
  -webkit-overflow-scrolling: touch;
}

.tourney-bracket-overlay__badge {
  margin: 0 0 4px;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fde68a;
}

.tourney-bracket-overlay__title {
  margin: 0 0 6px;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #e0f2fe;
}

.tourney-bracket-overlay__schedule,
.tourney-bracket-overlay__line {
  margin: 0 0 6px;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(186, 230, 253, 0.95);
}

.tourney-bracket-overlay__btn {
  display: block;
  width: min(280px, 100%);
  margin: 14px auto 0;
}

.tourney-bracket-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.tourney-bracket-list__row {
  font-family: "Nunito", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.88);
}

.tourney-bracket-list__row--live {
  color: #fde68a;
}

.tourney-bracket-tree-wrap {
  margin-top: 10px;
  overflow: auto;
  max-height: min(52vh, 480px);
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(56, 189, 248, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(45, 212, 191, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(12, 74, 110, 0.92), rgba(7, 40, 64, 0.96));
  -webkit-overflow-scrolling: touch;
}

.tourney-bracket-tree {
  min-width: 920px;
  padding: 14px 16px 18px;
  color: #e0f2fe;
}

.tourney-bracket-tree__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 12px;
  max-width: 420px;
}

.tourney-bracket-tree__banner-line {
  flex: 1;
  height: 2px;
  background: rgba(186, 230, 253, 0.7);
}

.tourney-bracket-tree__banner-title {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #fef9c3;
}

.tourney-bracket-tree__body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}

.tourney-bracket-side {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 0;
  min-height: 420px;
}

.tourney-bracket-side--right {
  direction: rtl;
}

.tourney-bracket-side--right .tourney-bracket-slot,
.tourney-bracket-side--right .tourney-bracket-col__label {
  direction: ltr;
}

.tourney-bracket-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0;
  min-height: 100%;
  padding: 0 2px;
}

.tourney-bracket-col__label {
  margin: 0 0 6px;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.9);
}

.tourney-bracket-pair {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 0;
}

.tourney-bracket-pair::after {
  content: "";
  position: absolute;
  top: 25%;
  bottom: 25%;
  width: 10px;
  border: 2px solid rgba(186, 230, 253, 0.75);
  pointer-events: none;
}

.tourney-bracket-side--left .tourney-bracket-pair::after {
  right: 0;
  border-left: none;
  border-radius: 0 4px 4px 0;
}

.tourney-bracket-side--right .tourney-bracket-pair::after {
  left: 0;
  border-right: none;
  border-radius: 4px 0 0 4px;
}

.tourney-bracket-slot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 22px;
  margin: 3px 10px 3px 0;
  padding: 2px 6px 1px;
  border-bottom: 2px solid rgba(186, 230, 253, 0.8);
  font-family: "Nunito", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  color: #e0f2fe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tourney-bracket-side--right .tourney-bracket-slot {
  margin: 3px 0 3px 10px;
  text-align: right;
  justify-content: flex-end;
}

.tourney-bracket-slot--empty {
  color: transparent;
}

.tourney-bracket-slot--mine {
  color: #fff7ed;
  background: rgba(251, 191, 36, 0.32);
  border-radius: 4px 4px 0 0;
}

.tourney-bracket-slot--winner {
  font-weight: 800;
  color: #fef08a;
}

.tourney-bracket-slot--loser {
  opacity: 0.42;
  text-decoration: line-through;
}

.tourney-bracket-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 132px;
  padding: 8px 6px;
}

.tourney-bracket-final {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tourney-bracket-final .tourney-bracket-slot {
  margin: 0;
  justify-content: center;
  text-align: center;
  border-bottom-width: 2px;
}

.tourney-bracket-champion {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  padding-top: 4px;
}

.tourney-bracket-champion__rules {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 2px solid rgba(253, 224, 71, 0.7);
  border-bottom: 2px solid rgba(253, 224, 71, 0.7);
  padding: 8px 4px;
  text-align: center;
  background: rgba(12, 74, 110, 0.35);
}

.tourney-bracket-champion__copy {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 0;
}

.tourney-bracket-champion__label {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 700;
  font-style: italic;
  color: #fef9c3;
}

.tourney-bracket-champion__name {
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fde68a;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tourney-bracket-medal {
  width: 22px;
  height: 28px;
  flex: 0 0 auto;
}

.tourney-bracket-bronze {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Nunito", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.92);
}

.tourney-bracket-bronze__label {
  font-style: italic;
  font-family: "Georgia", "Times New Roman", serif;
  color: #fde68a;
}

.tourney-bracket-bronze .tourney-bracket-slot {
  min-width: 110px;
  margin: 0;
  justify-content: center;
  text-align: center;
}

.tourney-vote-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 12px;
}

.tourney-vote-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: rgba(30, 27, 75, 0.72);
  color: #ede9fe;
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.tourney-vote-btn--lead {
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.tourney-vote-btn:disabled {
  opacity: 0.72;
  cursor: default;
}

.event-card__actions {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.event-card--duel {
  border-color: rgba(248, 113, 113, 0.48);
  background:
    linear-gradient(180deg, rgba(248, 113, 113, 0.14), transparent 28%),
    linear-gradient(165deg, rgba(48, 20, 28, 0.96), rgba(16, 18, 32, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(248, 113, 113, 0.12);
}

.event-card--duel .event-card__title {
  color: #fca5a5;
  text-shadow: 0 0 14px rgba(248, 113, 113, 0.3);
}

.duel-spectator {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(248, 113, 113, 0.22);
  display: grid;
  gap: 8px;
}

.duel-spectator__title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fecaca;
}

.duel-spectator__loading,
.duel-spectator__empty {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(214, 236, 248, 0.78);
  line-height: 1.4;
}

.duel-spectator__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.duel-spectator__watch {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.duel-spectator__refresh {
  width: 100%;
}

.app--duel-spectator .control-hint {
  color: #fecaca;
}

.rods__legend {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 0 12px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffe08a;
  text-shadow: 0 0 12px rgba(255, 213, 74, 0.25);
  text-align: center;
}

.rods__hint {
  margin: -2px 0 12px;
  font-size: 0.78rem;
  color: rgba(214, 236, 248, 0.78);
  line-height: 1.4;
}

.rods__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rods__grid:not(.rods__grid--reefs) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.rods__grid:not(.rods__grid--reefs) .rod-option {
  width: 100%;
  max-width: none;
  height: 100%;
}

.panel--start .rods__grid:not(.rods__grid--reefs) {
  gap: 10px;
}

.panel--start .rod-option__desc {
  display: none;
}

.panel--start .rod-option {
  padding: 9px 10px;
  gap: 8px;
}

.panel--start .rod-option__art {
  width: 40px;
  height: 58px;
}

.panel--start .rod-option__art--bait {
  width: 40px;
  height: 48px;
}

.panel--start .rod-option__art .bait-bucket {
  width: 36px;
  height: 44px;
}

.panel--start .rod-option__art .rod-art {
  width: 36px;
  height: 56px;
}

.rod-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 213, 74, 0.25);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  pointer-events: auto;
  touch-action: manipulation;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.rod-option__art {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 74px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.rod-option__art--bait {
  width: 48px;
  height: 56px;
}

.rod-option__art .rod-art,
.rod-option__art .bait-bucket {
  display: block;
}

.rod-option__art .bait-bucket {
  width: 44px;
  height: 52px;
}

.rod-option__art .rod-art {
  width: 44px;
  height: 72px;
}

.rod-option__copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rod-option:hover,
.rod-option:focus-visible {
  border-color: var(--gold);
  box-shadow: var(--shadow-glow);
  outline: none;
}

.rod-option--selected {
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px rgba(255, 61, 172, 0.35);
}

.rod-option--rod-bamboo {
  border-left: 5px solid #7c5c3e;
  background: linear-gradient(90deg, rgba(92, 64, 51, 0.35) 0, var(--glass) 48px);
}

.rod-option--rod-chrome {
  border-left: 5px solid #94a3b8;
  background: linear-gradient(90deg, rgba(71, 85, 105, 0.4) 0, var(--glass) 52px);
}

.rod-option--rod-golden {
  border-left: 5px solid #d4a017;
  background: linear-gradient(90deg, rgba(161, 98, 7, 0.38) 0, var(--glass) 52px);
}

.rod-option--rod-light {
  border-left: 5px solid #67e8f9;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.42) 0, var(--glass) 54px);
  box-shadow: inset 0 0 18px rgba(103, 232, 249, 0.12);
}

.rod-option--rod-wide_net {
  border-left: 5px solid #2dd4bf;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.4) 0, var(--glass) 54px);
}

.rod-option--rod-legend {
  border-left: 5px solid #c084fc;
  background: linear-gradient(90deg, rgba(107, 33, 168, 0.4) 0, var(--glass) 54px);
  box-shadow: inset 0 0 18px rgba(192, 132, 252, 0.12);
}

.rod-option--rod-titan {
  border-left: 5px solid #f87171;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.4) 0, var(--glass) 54px);
}

.rod-option--rod-magnet {
  border-left: 5px solid #a78bfa;
  background: linear-gradient(90deg, rgba(76, 29, 149, 0.42) 0, var(--glass) 54px);
  box-shadow: inset 0 0 20px rgba(167, 139, 250, 0.14);
}

.rod-option__stock--prize {
  color: #c4b5fd;
}

.rod-option--rod-bamboo.rod-option--selected {
  border-color: var(--neon-pink);
}

.rod-option--rod-chrome.rod-option--selected {
  border-color: var(--neon-pink);
}

.rod-option--rod-golden.rod-option--selected {
  border-color: var(--neon-pink);
}

.rod-option--rod-light.rod-option--selected {
  border-color: var(--neon-pink);
}

.rod-option--rod-wide_net.rod-option--selected,
.rod-option--rod-legend.rod-option--selected,
.rod-option--rod-titan.rod-option--selected {
  border-color: var(--neon-pink);
}

.rod-option--rod-magnet.rod-option--selected {
  border-color: #a78bfa;
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.42);
}

.rod-option__name {
  font-weight: 800;
  font-size: clamp(0.82rem, 3.1vw, 0.98rem);
  line-height: 1.2;
  display: block;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.rod-option__desc {
  display: block;
  font-size: clamp(0.68rem, 2.5vw, 0.76rem);
  color: var(--muted);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shop-item__art {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 72px;
  margin-right: 2px;
  padding: 4px 2px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0a3344, #062636);
  border: 2px solid rgba(255, 255, 255, 0.1);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.shop-item__art .rod-art {
  display: block;
  width: 42px;
  height: 68px;
}

.shop-item--rod {
  align-items: center;
}

.shop-item--rod .shop-item__desc {
  display: block;
}

.rod-option__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  vertical-align: middle;
}

.rod-option__badge--easy {
  background: rgba(52, 211, 153, 0.28);
  color: #a7f3d0;
}

.rod-option__badge--medium {
  background: rgba(125, 211, 252, 0.25);
  color: #bae6fd;
}

.rod-option__badge--hard {
  background: rgba(251, 191, 36, 0.22);
  color: #fde68a;
}

.rod-option__badge--very-hard {
  background: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

.rod-option__badge--expert {
  background: rgba(168, 85, 247, 0.3);
  color: #e9d5ff;
}

.btn {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.btn--primary {
  background: linear-gradient(180deg, var(--gold-hot), var(--sand));
  color: #1a0f00;
  box-shadow: 0 4px 24px rgba(255, 213, 74, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--start {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: min(440px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 78px;
  margin-top: 4px;
  padding: 20px 32px;
  border-radius: 22px;
  border: 2px solid rgba(255, 248, 220, 0.65);
  background:
    linear-gradient(180deg, #fff6c2 0%, #ffd54a 38%, #f0b429 72%, #d97706 100%);
  color: #3b2208;
  box-shadow:
    0 8px 0 #92400e,
    0 14px 32px rgba(255, 213, 74, 0.35),
    0 0 28px rgba(255, 213, 74, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.65),
    inset 0 -3px 8px rgba(146, 64, 14, 0.25);
  font-size: clamp(1.55rem, 5.5vw, 2.1rem);
  font-family: var(--font-brand);
  letter-spacing: 0.04em;
  line-height: 1.05;
  flex-shrink: 0;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.btn--start__shine {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: startBtnShine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.btn--start__label,
.btn--start .btn__sub {
  position: relative;
  z-index: 1;
}

.btn--start__label {
  display: block;
}

.btn--start:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 10px 0 #92400e,
    0 18px 36px rgba(255, 213, 74, 0.42),
    0 0 34px rgba(255, 213, 74, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.btn--start:active {
  transform: translateY(4px);
  box-shadow:
    0 4px 0 #92400e,
    0 8px 18px rgba(255, 213, 74, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn--start .btn__sub {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: clamp(0.72rem, 2.8vw, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(59, 34, 8, 0.82);
  opacity: 1;
}

@keyframes startBtnShine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

.panel--start .rod-option {
  border-radius: 16px;
  border-color: rgba(125, 211, 252, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(10, 48, 68, 0.92), rgba(5, 26, 40, 0.94));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.panel--start .rod-option:hover,
.panel--start .rod-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 213, 74, 0.55);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(255, 213, 74, 0.14);
}

.panel--start .rod-option--selected {
  border-color: rgba(255, 213, 74, 0.85);
  background:
    linear-gradient(180deg, rgba(255, 224, 138, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(14, 58, 78, 0.95), rgba(6, 30, 46, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 213, 74, 0.4),
    0 10px 26px rgba(255, 213, 74, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.panel--start .panel__headline--brand {
  margin: 4px 0 4px;
  font-size: clamp(2.7rem, 10vw, 3.8rem);
  filter:
    drop-shadow(0 0 16px rgba(255, 213, 74, 0.5))
    drop-shadow(0 4px 0 rgba(120, 53, 15, 0.25));
}

.panel__world-title {
  margin: 0 0 16px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  letter-spacing: 0.12em;
  color: #7dd3fc;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.app--show-tabs .panel--shop,
.app--show-tabs .panel--events,
.app--show-tabs .panel--collectables,
.app--show-tabs .panel--profile,
.app--show-tabs .panel--adventure,
.app--show-tabs .panel--adventure-result,
.app--show-tabs .panel--adventure-prep {
  padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

.app--show-tabs .panel--start {
  padding-bottom: calc(240px + env(safe-area-inset-bottom, 0px));
}

.panel--start .rods {
  margin-bottom: 16px;
}

.panel--start .start-game-wrap {
  margin-top: 8px;
  margin-bottom: 48px;
}

.app--show-tabs .panel--start .start-game-wrap {
  margin-bottom: 64px;
}

.panel--start .start-game-wrap .btn--start {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
}

.btn__sub {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: clamp(0.7rem, 2.8vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.88;
}

.summary {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  max-width: 340px;
  width: 100%;
  max-height: 28vh;
  overflow-y: auto;
  text-align: left;
}

.summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.summary li span:last-child {
  color: var(--gold);
  font-weight: 800;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .reef-picker--map-first {
    flex-direction: column;
  }

  .reef-map-panel {
    width: 100%;
    max-width: none;
  }
}

.adventure-launch__hint {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  top: auto;
  transform: none;
  z-index: auto;
  margin: 0;
  font-size: 0.68rem;
  color: var(--muted);
  max-width: none;
  width: 100%;
  text-align: center;
  pointer-events: none;
  transition: color 0.4s ease, font-size 0.4s ease, text-shadow 0.4s ease;
}

.adventure-launch__hint--celebrate {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-hot);
  text-shadow:
    0 0 12px rgba(255, 213, 74, 0.65),
    0 0 28px rgba(77, 255, 243, 0.35);
}

.adventure-launch__hint--celebrate.adventure-launch__hint--centered {
  font-size: 1.02rem;
  animation: adventureHintCelebrate 1.6s ease-in-out infinite;
}

.adventure-launch__hint--celebrate:not(.adventure-launch__hint--centered) {
  animation: adventureHintCelebrateSide 1.6s ease-in-out infinite;
}

@keyframes adventureHintCelebrateSide {
  0%,
  100% {
    transform: none;
    filter: brightness(1);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.15);
  }
}

.adventure-launch__hint--centered {
  position: fixed;
  bottom: auto;
  right: auto;
  left: 50%;
  top: calc(50% + clamp(52px, 14vw, 84px));
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(360px, 88vw);
  text-align: center;
  transition: top 1.65s cubic-bezier(0.22, 1, 0.36, 1), font-size 0.5s ease;
}

@keyframes adventureHintCelebrate {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateX(-50%) scale(1.04);
    filter: brightness(1.15);
  }
}

.adventure-unlock-banner {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-120%) scale(0.92);
  z-index: 45;
  width: min(92vw, 440px);
  padding: 16px 20px 14px;
  border-radius: 16px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(165deg, rgba(255, 230, 140, 0.97), rgba(255, 200, 60, 0.94));
  border: 2px solid rgba(255, 248, 210, 0.95);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(255, 213, 74, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.adventure-unlock-banner--active {
  animation: adventureUnlockBannerIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    adventureUnlockBannerPulse 2.2s ease-in-out 1.1s infinite;
}

.adventure-unlock-banner__spark {
  margin: 0 0 4px;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: #7a4a08;
  opacity: 0.85;
}

.adventure-unlock-banner__title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.65rem, 6vw, 2.1rem);
  letter-spacing: 0.06em;
  color: #3d2208;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.adventure-unlock-banner__sub {
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5c3d12;
}

@keyframes adventureUnlockBannerIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-120%) scale(0.88);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(8px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes adventureUnlockBannerPulse {
  0%,
  100% {
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.5),
      0 0 36px rgba(255, 213, 74, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }
  50% {
    box-shadow:
      0 14px 48px rgba(0, 0, 0, 0.55),
      0 0 56px rgba(255, 213, 74, 0.85),
      0 0 80px rgba(77, 255, 243, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }
}

.adventure-launch__hint[hidden] {
  display: none;
}

#app:not(.app--show-tabs) .home-launch-dock,
#app:not(.app--show-tabs) .home-launch-stack,
#app:not(.app--show-tabs) .adventure-launch__hint {
  display: none !important;
}

.home-launch-stack {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 5px;
  width: min(620px, 100%);
  margin: 0 auto;
  pointer-events: none;
}

.home-launch-stack > .world-launch,
.home-launch-stack > .shop-launch,
.home-launch-stack > .adventure-launch,
.home-launch-stack > .events-launch,
.home-launch-stack > .collectables-launch {
  position: relative;
  right: auto;
  bottom: auto;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  pointer-events: auto;
  isolation: isolate;
  overflow: hidden;
  min-height: 58px;
  padding: 7px 3px 6px;
  border-radius: 14px;
  flex-direction: column;
  gap: 3px;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.35),
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease, outline-color 0.12s ease;
}

.home-launch-stack > .world-launch { order: 1; }
.home-launch-stack > .shop-launch { order: 2; }
.home-launch-stack > .adventure-launch { order: 3; }
.home-launch-stack > .events-launch { order: 4; }
.home-launch-stack > .collectables-launch { order: 5; }

.home-launch-stack > .world-launch::before,
.home-launch-stack > .shop-launch::before,
.home-launch-stack > .adventure-launch::before,
.home-launch-stack > .events-launch::before,
.home-launch-stack > .collectables-launch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    110deg,
    transparent 28%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 64%
  );
  transform: translateX(-120%);
  animation: homeLaunchShine 3.6s ease-in-out infinite;
  pointer-events: none;
}

.home-launch-stack > .world-launch > *,
.home-launch-stack > .shop-launch > *,
.home-launch-stack > .adventure-launch > *,
.home-launch-stack > .events-launch > *,
.home-launch-stack > .collectables-launch > * {
  position: relative;
  z-index: 1;
}

.home-launch-stack > .is-active {
  filter: brightness(1.14) saturate(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px rgba(255, 224, 138, 0.95),
    0 0 18px rgba(255, 213, 74, 0.55),
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.home-launch-stack > .is-active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffe08a, transparent);
  box-shadow: 0 0 10px rgba(255, 213, 74, 0.8);
  z-index: 2;
  pointer-events: none;
}

.home-launch-stack > button:active {
  filter: brightness(1.2);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.55),
    0 0 22px rgba(125, 211, 252, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes homeLaunchShine {
  0%, 60% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}

.shop-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 4px 6px;
  border-radius: 14px;
  border: 2px solid rgba(94, 234, 212, 0.65);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(180deg, #12907a 0%, #0b5f52 48%, #064038 100%);
  color: #eafff8;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    0 3px 0 #04352e,
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.shop-launch:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.shop-launch:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #04352e,
    0 4px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.shop-launch__glyph,
.adventure-launch__glyph,
.events-launch__glyph,
.collectables-launch__glyph,
.world-launch__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(3, 21, 37, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.shop-launch__glyph svg,
.adventure-launch__glyph svg,
.events-launch__glyph svg,
.collectables-launch__glyph svg,
.world-launch__glyph svg {
  display: block;
  width: 15px;
  height: 15px;
}

.shop-launch__label,
.adventure-launch__label,
.events-launch__label,
.collectables-launch__label,
.world-launch__label {
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.collectables-launch__label {
  white-space: normal;
  line-height: 1.05;
}

.world-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 3px 6px;
  border-radius: 14px;
  border: 2px solid rgba(56, 189, 248, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(180deg, #0284c7 0%, #0369a1 48%, #0c4a6e 100%);
  color: #e0f2fe;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow:
    0 3px 0 #082f49,
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.world-launch:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.world-launch:active {
  transform: translateY(2px);
}

.shop-launch__icon {
  font-size: 1rem;
  color: #ffd54a;
  text-shadow: 0 0 8px rgba(255, 213, 74, 0.55);
}

.events-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 4px 6px;
  border-radius: 14px;
  border: 2px solid rgba(251, 191, 36, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(180deg, #d97706 0%, #b45309 48%, #7c2d12 100%);
  color: #fff8e7;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    0 3px 0 #5c1a08,
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.events-launch:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.events-launch:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #5c1a08,
    0 4px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.collectables-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 4px 6px;
  border-radius: 14px;
  border: 2px solid rgba(253, 224, 71, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(180deg, #0f766e 0%, #115e59 48%, #134e4a 100%);
  color: #fffbeb;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    0 3px 0 #042f2e,
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.collectables-launch:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.collectables-launch:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #042f2e,
    0 4px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* --- Profile (seagull + name) --- */
.panel.panel--profile {
  position: absolute;
  inset: 0;
  isolation: isolate;
  max-width: none;
  max-height: 100%;
  width: auto;
  height: 100%;
  min-height: 0;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 41;
  padding: 18px 14px max(28px, env(safe-area-inset-bottom, 0px) + 18px);
  background-color: var(--ocean-deep);
  background-image:
    radial-gradient(ellipse at 50% -8%, rgba(255, 213, 74, 0.28), transparent 42%),
    radial-gradient(ellipse at 12% 70%, rgba(56, 189, 248, 0.16), transparent 40%),
    radial-gradient(ellipse at 92% 28%, rgba(45, 212, 191, 0.14), transparent 36%),
    linear-gradient(180deg, #0c5a78 0%, var(--ocean-mid) 48%, var(--ocean-deep) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.panel--profile > *:not(.ocean-bubbles) {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  align-self: center;
  max-width: min(540px, 96vw);
  width: 100%;
}

.profile-hero {
  width: 100%;
  text-align: center;
  padding: 4px 4px 2px;
}

.profile-hero__eyebrow {
  margin: 0 0 2px;
  font-family: "Nunito", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.92);
}

.profile-hero__title {
  margin-bottom: 4px;
}

.profile-hero__lede {
  margin: 0 auto;
  max-width: 28ch;
  text-align: center;
  color: rgba(226, 232, 240, 0.9);
}

.panel--profile .collectables-seagull-preview {
  width: auto;
  height: auto;
  margin: 8px auto 18px;
  padding: 20px 24px 22px;
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-name {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 4px 0 0;
  padding: 14px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 213, 74, 0.35);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(8, 48, 72, 0.88), rgba(4, 24, 40, 0.94));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: left;
}

.profile-name__label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: #ffe08a;
}

.profile-name__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(125, 211, 252, 0.45);
  background: rgba(3, 21, 37, 0.72);
  color: #f8fafc;
  font-family: "Nunito", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-name__input::placeholder {
  color: rgba(148, 163, 184, 0.75);
  font-weight: 700;
}

.profile-name__input:focus {
  border-color: rgba(255, 213, 74, 0.7);
  box-shadow:
    0 0 0 3px rgba(255, 213, 74, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel--profile .profile-wardrobe {
  margin-bottom: 12px;
}

.panel--profile .profile-frames {
  margin-bottom: 12px;
}

.panel--collectables > .collectables-stage:last-of-type {
  margin-bottom: 12px;
}

.profile-name__hint {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.85);
  text-align: center;
}

.profile-account,
.profile-friends {
  width: min(100%, 420px);
  margin: 0 auto 14px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(6, 42, 74, 0.55);
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-account__head,
.profile-friends .wardrobe-stage__head {
  margin-bottom: 8px;
}

.profile-account__lede,
.event-prep-friends__hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.88);
  text-align: center;
  line-height: 1.35;
}

.profile-account__buttons {
  display: grid;
  gap: 8px;
}

.btn--auth {
  width: 100%;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.btn--auth-google {
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.btn--auth-apple {
  background: #111827;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--small {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.profile-account__signed-in {
  display: grid;
  gap: 8px;
  text-align: center;
}

.profile-account__email {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fef9c3;
}

.profile-account__code {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.profile-add-friend {
  margin-bottom: 10px;
}

.profile-add-friend__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(186, 230, 253, 0.9);
}

.profile-add-friend__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.profile-add-friend__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(6, 42, 74, 0.72);
  color: #f0f9ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-friends-list,
.friend-picker {
  display: grid;
  gap: 8px;
}

.profile-friend-row,
.friend-picker__option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: rgba(8, 47, 73, 0.55);
}

.friend-picker__option {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.friend-picker__option[aria-selected="true"] {
  border-color: rgba(255, 213, 74, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 213, 74, 0.18);
}

.friend-picker__option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.friend-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
}

.friend-status--online {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.65);
}

.friend-status--offline {
  background: #64748b;
}

.profile-friend-row__name,
.friend-picker__name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f0f9ff;
}

.profile-friend-row__tag,
.friend-picker__tag {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.82);
}

.friend-picker__anyone {
  margin-top: 8px;
  width: 100%;
}

.event-prep-friends {
  margin: 4px auto 0;
  width: min(520px, 100%);
  box-sizing: border-box;
}

.event-prep-friends .adventure-prep__card {
  width: 100%;
  box-sizing: border-box;
}

.event-prep-friends .rods__grid,
.panel--event-prep .rods__grid:not(.rods__grid--reefs) {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 420px) {
  .friend-picker--party {
    grid-template-columns: 1fr;
  }
}

.profile-friends-empty {
  margin: 0;
  padding: 8px 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(186, 230, 253, 0.75);
  text-align: center;
}

/* --- Collectables locker --- */
.panel.panel--collectables {
  position: absolute;
  inset: 0;
  isolation: isolate;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 41;
  padding: 18px 14px max(28px, env(safe-area-inset-bottom, 0px) + 18px);
  background-color: var(--ocean-deep);
  background-image:
    radial-gradient(ellipse at 50% -8%, rgba(255, 213, 74, 0.28), transparent 42%),
    radial-gradient(ellipse at 12% 70%, rgba(56, 189, 248, 0.16), transparent 40%),
    radial-gradient(ellipse at 92% 28%, rgba(45, 212, 191, 0.14), transparent 36%),
    linear-gradient(180deg, #0c5a78 0%, var(--ocean-mid) 48%, var(--ocean-deep) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.collectables-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.collectables-decor__glint {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff7c2;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  opacity: 0.65;
  animation: collectablesGlint 3.2s ease-in-out infinite;
}

.collectables-decor__glint--1 { top: 10%; left: 14%; }
.collectables-decor__glint--2 { top: 16%; right: 12%; animation-delay: -1.1s; }
.collectables-decor__glint--3 { top: 42%; left: 6%; animation-delay: -2s; width: 7px; height: 7px; }

.collectables-decor__ray {
  position: absolute;
  top: -10%;
  width: 120px;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 75%);
  transform: skewX(-18deg);
  opacity: 0.35;
  filter: blur(1px);
  animation: collectablesRay 8s ease-in-out infinite;
}

.collectables-decor__ray--1 { left: 18%; }
.collectables-decor__ray--2 { left: 58%; animation-delay: -3s; width: 90px; opacity: 0.22; }

@keyframes collectablesGlint {
  0%, 100% { transform: scale(0.7) rotate(0deg); opacity: 0.25; }
  45% { transform: scale(1.15) rotate(18deg); opacity: 0.85; }
}

@keyframes collectablesRay {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.38; }
}

@keyframes collectablesWingBob {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(2px); }
}

@keyframes collectablesWingBobR {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(2px); }
}

@keyframes collectablesSeagullIdle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-4px) rotate(-1.1deg); }
  62% { transform: translateY(-1.5px) rotate(0.9deg); }
}

@keyframes collectablesSeagullHead {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  28% { transform: rotate(-2.4deg) translateY(1px); }
  58% { transform: rotate(1.8deg) translateY(0); }
  78% { transform: rotate(-0.6deg) translateY(0.5px); }
}

@keyframes collectablesSeagullBlink {
  0%, 42%, 48%, 100% { transform: scaleY(1); }
  45% { transform: scaleY(0.12); }
}

@keyframes collectablesSeagullShadow {
  0%, 100% { transform: scaleX(1); opacity: 0.28; }
  30% { transform: scaleX(0.88); opacity: 0.18; }
  62% { transform: scaleX(0.95); opacity: 0.22; }
}

.panel--collectables > *:not(.collectables-decor) {
  position: relative;
  z-index: 1;
  max-width: min(540px, 96vw);
  width: 100%;
}

.collectables-hero {
  width: 100%;
  text-align: center;
  padding: 4px 4px 2px;
}

.collectables-hero__eyebrow {
  margin: 0 0 2px;
  font-family: "Nunito", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.92);
}

.collectables-hero__title {
  margin: 0 0 4px;
}

.collectables-hero__lede {
  margin: 0 auto;
  max-width: 28ch;
  text-align: center;
  color: rgba(226, 232, 240, 0.9);
}

.wardrobe-stage,
.collectables-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(8, 54, 78, 0.72), rgba(3, 24, 40, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.profile-wardrobe {
  position: relative;
  overflow: visible;
  border-color: rgba(94, 234, 212, 0.42);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255, 213, 74, 0.16), transparent 42%),
    radial-gradient(ellipse at 88% 12%, rgba(56, 189, 248, 0.14), transparent 38%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(10, 62, 82, 0.88), rgba(4, 24, 40, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(94, 234, 212, 0.12),
    0 16px 34px rgba(0, 0, 0, 0.32);
}

.profile-wardrobe::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.08) 50%, transparent 65%);
  opacity: 0.55;
}

.profile-wardrobe > * {
  position: relative;
  z-index: 1;
}

.collectables-stage--chest {
  background:
    linear-gradient(165deg, rgba(255, 213, 74, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(12, 58, 78, 0.78), rgba(4, 28, 42, 0.82));
}

.collectables-stage--stamps {
  background:
    linear-gradient(165deg, rgba(94, 234, 212, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(8, 52, 72, 0.78), rgba(3, 24, 40, 0.84));
}

.wardrobe-stage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.wardrobe-stage__head .collectables-section__title {
  margin: 0;
}

.collectables-section__mark {
  color: #ffe08a;
  font-size: 1rem;
  opacity: 0.85;
}

.collectables-count-pill,
.collectables-stamp-count {
  margin: 0;
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(3, 24, 40, 0.55);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #bae6fd;
  white-space: nowrap;
}

.collectables-section__title {
  margin: 0;
  width: auto;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: #ffe08a;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.collectables-armed {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(94, 234, 212, 0.5);
  background:
    linear-gradient(90deg, rgba(45, 212, 191, 0.18), transparent 60%),
    rgba(6, 48, 56, 0.82);
  color: #ccfbf1;
  font-size: 0.88rem;
  line-height: 1.35;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.12);
}

.collectables-items {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collectables-seagull-preview {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 16px 10px 12px;
  border-radius: 20px;
  border: 1px solid rgba(186, 230, 253, 0.18);
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.16), transparent 34%),
    radial-gradient(ellipse at 50% 70%, rgba(14, 116, 144, 0.45), transparent 62%),
    linear-gradient(180deg, rgba(12, 90, 120, 0.55), rgba(3, 24, 40, 0.72));
  box-shadow: inset 0 -18px 30px rgba(2, 12, 24, 0.35);
}

.collectables-seagull-figure {
  transform-box: view-box;
  transform-origin: 130px 198px;
  animation: collectablesSeagullIdle 3.6s ease-in-out infinite;
}

.collectables-seagull-head {
  transform-box: view-box;
  transform-origin: 130px 100px;
  animation: collectablesSeagullHead 4.4s ease-in-out infinite;
}

.collectables-seagull-eyes {
  transform-box: view-box;
  transform-origin: 130px 76px;
  animation: collectablesSeagullBlink 5.2s ease-in-out infinite;
}

.collectables-seagull-shadow {
  transform-box: view-box;
  transform-origin: 130px 204px;
  animation: collectablesSeagullShadow 3.6s ease-in-out infinite;
}

.collectables-seagull-wing--l,
.collectables-seagull-wing--r {
  transform-box: view-box;
}

.collectables-seagull-wing--l {
  transform-origin: 100px 122px;
  animation: collectablesWingBob 2.5s ease-in-out infinite;
}

.collectables-seagull-wing--r {
  transform-origin: 160px 122px;
  animation: collectablesWingBobR 2.5s ease-in-out infinite;
  animation-delay: -0.35s;
}

.collectables-items--wardrobe {
  max-height: min(42vh, 360px);
  overflow-y: auto;
  padding-right: 2px;
}

.wardrobe-slot-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.wardrobe-slot-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 24, 40, 0.78);
  color: #e2e8f0;
  font-family: "Nunito", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  min-height: 64px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.wardrobe-slot-tab:hover {
  border-color: rgba(186, 230, 253, 0.4);
  transform: translateY(-1px);
}

.wardrobe-slot-tab__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.wardrobe-slot-tab--active {
  border-color: rgba(253, 224, 71, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 50%),
    rgba(14, 90, 112, 0.98);
  box-shadow:
    0 0 0 1px rgba(253, 224, 71, 0.24),
    0 8px 16px rgba(0, 0, 0, 0.3);
  color: #fffbeb;
}

.wardrobe-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  margin: 0;
  max-height: none;
  overflow: visible;
  padding: 2px 2px 6px;
}

.wardrobe-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 10px 12px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 50% 18%, rgba(186, 230, 253, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%),
    rgba(8, 28, 48, 0.92);
  color: #f8fafc;
  cursor: pointer;
  text-align: center;
  min-height: 140px;
  transition: transform 0.15s ease, border-color 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.wardrobe-tile__kind {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 21, 37, 0.72);
  color: rgba(226, 232, 240, 0.92);
}

.wardrobe-tile__kind--costume {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
  background: rgba(69, 26, 3, 0.72);
}

.wardrobe-tile:hover {
  filter: brightness(1.08);
  border-color: rgba(125, 211, 252, 0.5);
  transform: translateY(-2px);
}

.wardrobe-tile--equipped {
  border-color: rgba(94, 234, 212, 0.9);
  background:
    radial-gradient(circle at 50% 22%, rgba(94, 234, 212, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(45, 212, 191, 0.22), transparent 55%),
    rgba(8, 48, 56, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(94, 234, 212, 0.32),
    0 0 18px rgba(45, 212, 191, 0.22);
}

.wardrobe-tile--equipped::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  border: 1.5px solid rgba(94, 234, 212, 0.35);
  pointer-events: none;
}

.wardrobe-tile__art {
  width: 84px;
  height: 84px;
  display: block;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 30%, rgba(186, 230, 253, 0.28), transparent 55%),
    radial-gradient(circle at 50% 78%, rgba(14, 116, 144, 0.42), transparent 62%),
    rgba(12, 90, 120, 0.45);
  border-radius: 50%;
  padding: 1px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -8px 14px rgba(2, 12, 24, 0.35);
}

.wardrobe-tile__icon {
  font-size: 1.7rem;
  line-height: 1;
}

.wardrobe-tile__name {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.wardrobe-tile__state {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  font-weight: 800;
}

.wardrobe-tile--equipped .wardrobe-tile__state {
  color: #5eead4;
}

.wardrobe-empty,
.wardrobe-hint {
  width: 100%;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.86);
  text-align: center;
}

.wardrobe-empty {
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(4, 18, 32, 0.45);
  text-align: center;
}

.collectables-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 12px 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(120deg, rgba(255, 213, 74, 0.08), transparent 42%),
    rgba(8, 28, 48, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.collectables-item:hover {
  border-color: rgba(253, 224, 71, 0.35);
  transform: translateY(-1px);
}

.collectables-item__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  line-height: 1;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), transparent 50%),
    rgba(12, 74, 110, 0.85);
  border: 1px solid rgba(186, 230, 253, 0.22);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.collectables-item__icon .chest-item-art {
  width: 34px;
  height: 34px;
  display: block;
}

.collectables-item__body {
  min-width: 0;
}

.collectables-item__name {
  margin: 0;
  font-weight: 800;
  color: #fff8e7;
  font-size: 0.98rem;
}

.collectables-item__blurb {
  margin: 3px 0 0;
  font-size: 0.76rem;
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.35;
}

.collectables-item__qty {
  margin: 5px 0 0;
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #e0f2fe;
  background: rgba(14, 116, 144, 0.45);
  border: 1px solid rgba(125, 211, 252, 0.28);
}

.collectables-item__use {
  align-self: center;
  padding: 8px 12px;
  min-height: 0;
  font-size: 0.78rem;
}

.collectables-item__use[hidden] {
  display: none;
}

.collectables-item--empty {
  opacity: 0.55;
}

.collectables-stamp-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(3, 24, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.collectables-stamp-track__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #fbbf24 70%, #ffe08a);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.35);
  transition: width 0.35s ease;
}

.collectables-stamps {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin: 0;
}

.collectables-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 45%),
    rgba(4, 18, 32, 0.78);
  text-align: center;
  min-height: 138px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.collectables-stamp--owned {
  border-color: rgba(253, 224, 71, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    rgba(20, 48, 72, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(253, 224, 71, 0.14),
    0 8px 16px rgba(0, 0, 0, 0.22);
}

.collectables-stamp--owned:hover {
  transform: translateY(-2px);
}

.collectables-stamp__swatch {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: none;
  background: transparent;
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
  box-shadow: none;
}

.collectables-stamp__swatch .catch-stamp-art {
  width: 64px;
  height: 64px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.collectables-stamp--owned .collectables-stamp__swatch {
  box-shadow: none;
}

.collectables-stamp--owned .collectables-stamp__swatch::after {
  display: none;
}

.collectables-stamp--locked .collectables-stamp__swatch {
  filter: grayscale(0.45);
  opacity: 0.88;
}

.collectables-stamp__name {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.25;
  color: #e2e8f0;
}

.collectables-stamp--locked .collectables-stamp__name {
  color: rgba(148, 163, 184, 0.85);
}

.collectables-stamp__rarity {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.collectables-stamp--owned .collectables-stamp__rarity {
  color: #fde68a;
}

@media (prefers-reduced-motion: reduce) {
  .collectables-decor__glint,
  .collectables-decor__ray,
  .collectables-seagull-figure,
  .collectables-seagull-head,
  .collectables-seagull-eyes,
  .collectables-seagull-shadow,
  .collectables-seagull-wing--l,
  .collectables-seagull-wing--r,
  .companion-preview__art {
    animation: none !important;
  }

  .wardrobe-slot-tab,
  .wardrobe-tile,
  .collectables-item,
  .collectables-stamp {
    transition: none;
  }
}

.btn--skip-rope {
  background: linear-gradient(180deg, #0d9488, #0f766e);
  border: 1px solid rgba(94, 234, 212, 0.55);
  color: #ecfeff;
  box-shadow: 0 4px 0 #134e4a, 0 8px 18px rgba(0, 0, 0, 0.35);
}

.btn--skip-rope:hover {
  filter: brightness(1.06);
}

.panel.panel--events {
  position: absolute;
  inset: 0;
  max-width: none;
  width: auto;
  height: auto;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 213, 74, 0.18), transparent 46%),
    radial-gradient(ellipse at 18% 85%, rgba(77, 255, 243, 0.1), transparent 42%),
    linear-gradient(180deg, #0c5a78 0%, var(--ocean-mid) 48%, var(--ocean-deep) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
  overflow-x: hidden;
  z-index: 41;
}

.events-decor,
.ocean-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ocean-bubbles--nested {
  position: absolute;
  inset: 0;
}

.ocean-bubbles__bubble {
  position: absolute;
  bottom: -8%;
  border-radius: 50%;
  border: 1.5px solid rgba(186, 230, 253, 0.42);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.65), rgba(125, 211, 252, 0.14) 52%, transparent 72%);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.2);
  animation: oceanBubbleRise 11s linear infinite;
  opacity: 0.5;
  will-change: transform, opacity;
}

.ocean-bubbles__bubble--1 { width: 14px; height: 14px; left: 6%; animation-duration: 10.5s; animation-delay: 0s; }
.ocean-bubbles__bubble--2 { width: 9px; height: 9px; left: 16%; animation-duration: 8.8s; animation-delay: -2.4s; }
.ocean-bubbles__bubble--3 { width: 18px; height: 18px; left: 28%; animation-duration: 12.2s; animation-delay: -5.1s; }
.ocean-bubbles__bubble--4 { width: 11px; height: 11px; left: 42%; animation-duration: 9.6s; animation-delay: -1.3s; }
.ocean-bubbles__bubble--5 { width: 7px; height: 7px; left: 55%; animation-duration: 7.9s; animation-delay: -3.8s; }
.ocean-bubbles__bubble--6 { width: 16px; height: 16px; left: 68%; animation-duration: 11.4s; animation-delay: -6.2s; }
.ocean-bubbles__bubble--7 { width: 10px; height: 10px; left: 78%; animation-duration: 9.1s; animation-delay: -0.7s; }
.ocean-bubbles__bubble--8 { width: 22px; height: 22px; left: 88%; animation-duration: 13s; animation-delay: -4.4s; }
.ocean-bubbles__bubble--9 { width: 8px; height: 8px; left: 12%; animation-duration: 8.2s; animation-delay: -7.1s; }
.ocean-bubbles__bubble--10 { width: 13px; height: 13px; left: 50%; animation-duration: 10.8s; animation-delay: -8.6s; }

@keyframes oceanBubbleRise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.85);
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  50% {
    transform: translate3d(10px, -55vh, 0) scale(1);
    opacity: 0.48;
  }
  100% {
    transform: translate3d(-8px, -112vh, 0) scale(1.12);
    opacity: 0;
  }
}

.panel--start > *:not(.ocean-bubbles):not(.home-corner) {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ocean-bubbles__bubble {
    animation: none;
    opacity: 0.28;
    bottom: auto;
  }

  .ocean-bubbles__bubble--1 { top: 18%; }
  .ocean-bubbles__bubble--2 { top: 62%; }
  .ocean-bubbles__bubble--3 { top: 34%; }
  .ocean-bubbles__bubble--4 { top: 72%; }
  .ocean-bubbles__bubble--5 { top: 48%; }
  .ocean-bubbles__bubble--6 { top: 22%; }
  .ocean-bubbles__bubble--7 { top: 58%; }
  .ocean-bubbles__bubble--8 { top: 40%; }
  .ocean-bubbles__bubble--9 { top: 78%; }
  .ocean-bubbles__bubble--10 { top: 28%; }
}

/* Keep the old sunset ocean off — Events uses the World Adventures blue backdrop. */
#app.app--events-mode .events-ocean {
  display: none !important;
}

#app.app--events-mode .canvas-wrap {
  z-index: 1;
}

.events-ticket-badge {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: var(--radius);
  background: rgba(8, 28, 48, 0.9);
  border: 1px solid rgba(255, 213, 74, 0.38);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.events-ticket-badge__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #ffd54a;
  filter: drop-shadow(0 0 6px rgba(255, 213, 74, 0.45));
}

.events-ticket-badge__count {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(77, 255, 243, 0.35);
}

.panel--events__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(520px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.events-ocean {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 28% at 50% 62%, rgba(255, 200, 110, 0.55) 0%, rgba(255, 140, 70, 0.22) 45%, transparent 72%),
    linear-gradient(
      180deg,
      #0b1428 0%,
      #1a2a4a 16%,
      #4a4a78 34%,
      #b86858 48%,
      #e88848 60%,
      #f0b060 72%,
      #d89868 84%,
      #1a3048 100%
    );
}

.events-ocean[hidden] {
  display: none;
}

.events-ocean__sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 68%;
  display: block;
  z-index: 0;
}

.events-ocean__clouds {
  animation: events-ocean-cloud-drift 48s ease-in-out infinite alternate;
}

.events-ocean__horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 36%;
  height: 22%;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 220, 150, 0.28) 0%,
    rgba(255, 170, 90, 0.22) 35%,
    rgba(180, 90, 70, 0.12) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.events-ocean__deep {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 32%,
    rgba(60, 70, 100, 0.35) 46%,
    #1e3a52 58%,
    #142838 74%,
    #0a1628 100%
  );
  pointer-events: none;
}

.events-ocean__layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.events-ocean__layer--1 {
  height: 72%;
  z-index: 2;
  animation: events-ocean-swell 10s ease-in-out infinite alternate;
}

.events-ocean__layer--2 {
  height: 58%;
  z-index: 3;
  animation: events-ocean-swell 8s ease-in-out infinite alternate-reverse;
}

.events-ocean__layer--3 {
  height: 46%;
  z-index: 4;
  animation: events-ocean-swell 6.5s ease-in-out infinite alternate;
}

.events-ocean__layer--4 {
  height: 34%;
  z-index: 5;
  animation: events-ocean-swell 5s ease-in-out infinite alternate-reverse;
}

.events-ocean__layer--1 .events-ocean__track {
  height: 62%;
  min-height: 88px;
  animation-duration: 44s;
}

.events-ocean__layer--2 .events-ocean__track {
  height: 54%;
  min-height: 72px;
  animation-duration: 32s;
  animation-direction: reverse;
}

.events-ocean__layer--3 .events-ocean__track {
  height: 48%;
  min-height: 64px;
  animation-duration: 22s;
}

.events-ocean__layer--4 .events-ocean__track {
  height: 100%;
  min-height: 56px;
  animation-duration: 16s;
  animation-direction: reverse;
}

.events-ocean__track {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  width: 200%;
  height: 100%;
  animation: events-ocean-drift 28s linear infinite;
  will-change: transform;
}

.events-ocean__svg {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  display: block;
}

.events-ocean__wave {
  stroke: #061018;
  stroke-width: 2.4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.events-ocean__layer--1 .events-ocean__wave {
  fill: #2a4860;
}

.events-ocean__layer--2 .events-ocean__wave {
  fill: #1e3a52;
}

.events-ocean__layer--3 .events-ocean__wave {
  fill: #152e44;
}

.events-ocean__layer--4 .events-ocean__wave {
  fill: #0e2236;
}

.events-ocean__crest {
  fill: none;
  stroke: rgba(255, 200, 140, 0.35);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.events-ocean__crest--bright {
  stroke: rgba(255, 220, 170, 0.55);
  stroke-width: 3.4;
}

.events-ocean__reflection {
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: 0;
  height: 38%;
  z-index: 6;
  background:
    linear-gradient(
      180deg,
      rgba(255, 210, 130, 0.28) 0%,
      rgba(255, 170, 90, 0.14) 35%,
      rgba(255, 140, 70, 0.06) 70%,
      transparent 100%
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0 7px,
      rgba(255, 230, 180, 0.08) 7px 8px
    );
  clip-path: polygon(42% 0%, 58% 0%, 92% 100%, 8% 100%);
  animation: events-ocean-reflection 7s ease-in-out infinite alternate;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes events-ocean-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes events-ocean-swell {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-12px);
  }
}

@keyframes events-ocean-cloud-drift {
  from {
    transform: translateX(-12px);
  }
  to {
    transform: translateX(14px);
  }
}

@keyframes events-ocean-reflection {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .events-ocean__track,
  .events-ocean__layer,
  .events-ocean__clouds,
  .events-ocean__reflection {
    animation: none;
  }
}

.panel--events .event-card {
  background: linear-gradient(165deg, rgba(8, 28, 48, 0.94), rgba(12, 24, 38, 0.97));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-width: 1.5px;
  overflow: visible;
}

.panel--events .leaderboard-block {
  background: rgba(8, 28, 48, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.panel--events .btn--primary {
  max-width: min(320px, 88vw);
}

.event-card {
  width: 100%;
  max-width: min(420px, 92vw);
  margin: 0 auto 20px;
  padding: 0 0 16px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(28, 48, 72, 0.92), rgba(12, 24, 38, 0.96));
  border: 1px solid rgba(255, 180, 90, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  text-align: left;
  overflow: visible;
  position: relative;
}

.event-card:has(.event-card__about[open]) {
  z-index: 14;
}

.event-card:last-child {
  margin-bottom: 72px;
}

.event-card__art {
  position: relative;
  width: 100%;
  height: 128px;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -18px 28px rgba(0, 0, 0, 0.28);
}

.event-card__art-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.event-card__art-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.14) 48%,
    transparent 62%
  );
  background-size: 220% 100%;
  animation: eventArtShine 5.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

.event-card__art-bob {
  transform-origin: 160px 50px;
  animation: eventArtBob 2.8s ease-in-out infinite;
}

.event-card__art-fish {
  animation: eventArtFish 4.8s ease-in-out infinite;
}

.event-card__art-bubble {
  animation: eventArtBubble 3.6s ease-in-out infinite;
}

.event-card__art-sparkle {
  animation: eventArtSparkle 2.2s ease-in-out infinite;
  transform-origin: 258px 44px;
}

.event-card__art-vs {
  transform-origin: 160px 56px;
  animation: eventArtPulse 1.8s ease-in-out infinite;
}

.event-card__art-duel-left,
.event-card__art-duel-right {
  animation: eventArtSway 3.2s ease-in-out infinite;
}

.event-card__art-duel-left {
  transform-origin: 46px 55px;
}

.event-card__art-duel-right {
  transform-origin: 274px 55px;
  animation-delay: -1.6s;
}

.event-card__art-cage {
  animation: eventArtCageDrop 2.4s ease-in-out infinite;
}

.event-card__art-crab-run {
  animation: eventArtCrabScuttle 3.6s ease-in-out infinite;
}

.event-card__art-roulette-wheel {
  transform-origin: 160px 56px;
  animation: eventArtRouletteSpin 6.5s linear infinite;
}

.event-card__art-roulette-pointer {
  transform-origin: 160px 10px;
  animation: eventArtRouletteTick 1.1s ease-in-out infinite;
}

.event-card__art-roulette-ball {
  transform-origin: 160px 56px;
  animation: eventArtRouletteBall 2.4s linear infinite;
}

.event-card__art-roulette-isle--l {
  animation: eventArtBob 3.4s ease-in-out infinite;
}

.event-card__art-roulette-isle--r {
  animation: eventArtBob 3.8s ease-in-out infinite reverse;
}

.event-card__art-coop-crew {
  transform-origin: 160px 96px;
  animation: eventArtBoatRock 2.8s ease-in-out infinite;
}

.event-card__art-coop-you {
  transform-origin: 112px 68px;
  animation: eventArtSway 3.4s ease-in-out infinite;
}

.event-card__art-coop-pal {
  transform-origin: 208px 68px;
  animation: eventArtSway 3.4s ease-in-out infinite reverse;
}

.event-card__art-coop-wave {
  animation: eventArtBob 3.2s ease-in-out infinite;
}

.event-card__art-coop-fish {
  animation: eventArtCoopFish 2.4s ease-in-out infinite;
}

.event-card__art-kraken {
  transform-origin: 160px 96px;
  animation: eventArtKrakenBob 3.6s ease-in-out infinite;
}

.event-card__art-kraken-eyes {
  animation: eventArtKrakenGlow 1.8s ease-in-out infinite;
}

.event-card__art-kraken-boat {
  transform-origin: 160px 56px;
  animation: eventArtBoatRock 2.2s ease-in-out infinite;
}

.event-card__art-kraken-tent--a {
  transform-origin: 132px 92px;
  animation: eventArtTentWagL 2.6s ease-in-out infinite;
}

.event-card__art-kraken-tent--b {
  transform-origin: 148px 96px;
  animation: eventArtTentWagL 2.2s ease-in-out infinite reverse;
}

.event-card__art-kraken-tent--c {
  transform-origin: 172px 96px;
  animation: eventArtTentWagR 2.3s ease-in-out infinite;
}

.event-card__art-kraken-tent--d {
  transform-origin: 188px 92px;
  animation: eventArtTentWagR 2.7s ease-in-out infinite reverse;
}

.event-card__art-kraken-tent--wrap-l {
  transform-origin: 118px 92px;
  animation: eventArtTentWrap 2.2s ease-in-out infinite;
}

.event-card__art-kraken-tent--wrap-r {
  transform-origin: 202px 92px;
  animation: eventArtTentWrap 2.2s ease-in-out infinite reverse;
}

.event-card__art-kraken-splash {
  animation: eventArtKrakenGlow 1.4s ease-in-out infinite;
}

@keyframes eventArtShine {
  0%,
  100% {
    background-position: 120% 0;
  }
  45%,
  55% {
    background-position: -20% 0;
  }
}

@keyframes eventArtBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes eventArtFish {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

@keyframes eventArtBubble {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@keyframes eventArtSparkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes eventArtPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes eventArtSway {
  0%,
  100% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}

@keyframes eventArtCageDrop {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(8px);
  }
  55% {
    transform: translateY(6px);
  }
}

@keyframes eventArtCrabScuttle {
  0%,
  100% {
    transform: translate(198px, 64px);
  }
  50% {
    transform: translate(218px, 62px);
  }
}

@keyframes eventArtRouletteSpin {
  from {
    transform: translate(160px, 56px) rotate(0deg);
  }
  to {
    transform: translate(160px, 56px) rotate(360deg);
  }
}

@keyframes eventArtRouletteTick {
  0%,
  100% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(-8deg);
  }
  55% {
    transform: rotate(4deg);
  }
}

@keyframes eventArtRouletteBall {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes eventArtCoopFish {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

@keyframes eventArtBoatRock {
  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }
  50% {
    transform: rotate(6deg) translateY(2px);
  }
}

@keyframes eventArtKrakenBob {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.02);
  }
}

@keyframes eventArtKrakenGlow {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(94, 234, 212, 0.7));
  }
}

@keyframes eventArtTentWagL {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

@keyframes eventArtTentWagR {
  0%,
  100% {
    transform: rotate(8deg);
  }
  50% {
    transform: rotate(-10deg);
  }
}

@keyframes eventArtTentWrap {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(7deg);
  }
}

.event-card__head {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 16px 6px;
  overflow: visible;
}

.event-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
  padding-right: 2px;
}

.event-card__title {
  margin: 0;
  min-width: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--gold-hot);
}

.event-card__about {
  position: relative;
  flex: 0 0 auto;
  z-index: 12;
}

.event-card__info {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1.5px solid rgba(125, 211, 252, 0.55);
  background: rgba(8, 28, 48, 0.85);
  color: #7dd3fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.event-card__info::-webkit-details-marker {
  display: none;
}

.event-card__info::marker {
  content: "";
}

.event-card__info:hover,
.event-card__about[open] .event-card__info {
  border-color: rgba(255, 213, 74, 0.7);
  color: #ffe08a;
  background: rgba(20, 48, 68, 0.95);
  transform: scale(1.06);
}

.event-card__info-glyph {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-transform: lowercase;
}

.event-card__info-text {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.event-card__blurb {
  position: absolute;
  right: -8px;
  left: auto;
  top: calc(100% + 8px);
  transform: none;
  z-index: 20;
  width: min(320px, calc(100vw - 40px));
  max-width: min(320px, 88vw);
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 18, 32, 0.98);
  border: 1.5px solid rgba(125, 211, 252, 0.5);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(240, 247, 255, 0.96);
  box-sizing: border-box;
}

@media (max-width: 560px) {
  /* Keep (i) help fully on-screen: pin to the card, not past the phone edge. */
  .event-card__about {
    position: static;
  }

  .event-card__blurb {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    top: calc(100% + 6px);
  }
}

.event-card__blurb--stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-card__blurb--stack .event-card__matchup,
.event-card__blurb--stack .event-card__reef-pick {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.event-card__reset {
  margin: 2px 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  white-space: nowrap;
  flex: 0 0 auto;
}

.event-card__tagline {
  margin: 0 16px 12px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  color: rgba(255, 244, 224, 0.88);
}

.event-card__desc {
  margin: 0 16px 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.event-card__prize-row {
  list-style: none;
  margin: 0 16px 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.event-card__chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.event-card__chip--gold span {
  background: linear-gradient(135deg, #ffe082, #ffb300);
  color: #4a3010;
}

.event-card__chip--silver span {
  background: linear-gradient(135deg, #eceff1, #b0bec5);
  color: #263238;
}

.event-card__chip--bronze span {
  background: linear-gradient(135deg, #ffccbc, #bf360c);
  color: #3e2723;
}

.event-card__chip--win span {
  background: linear-gradient(135deg, #86efac, #16a34a);
  color: #052e16;
}

.event-card__chip--ticket span {
  background: linear-gradient(135deg, #fca5a5, #ef4444);
  color: #450a0a;
}

.event-card__prizes {
  list-style: none;
  margin: 0 16px 14px;
  padding: 10px 12px;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 213, 74, 0.08);
  border: 1px solid rgba(255, 213, 74, 0.18);
  display: grid;
  gap: 8px;
}

.event-card__prizes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text);
}

.event-card__medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.event-card__medal--1 {
  background: linear-gradient(135deg, #ffe082, #ffb300);
  color: #4a3010;
}

.event-card__medal--2 {
  background: linear-gradient(135deg, #eceff1, #b0bec5);
  color: #263238;
}

.event-card__medal--3 {
  background: linear-gradient(135deg, #ffccbc, #bf360c);
  color: #3e2723;
}

.event-card__hint {
  margin: 10px 16px 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--neon-cyan);
}

.event-card--duel-unavailable {
  opacity: 0.72;
}

.event-card__desc--tickets {
  margin-top: -4px;
  font-size: 0.8rem;
  color: rgba(255, 213, 74, 0.88);
}

.event-card__tickets {
  margin: 0 16px 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--neon-cyan);
}

.event-card__about .event-card__tickets--info {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.22);
  font-size: inherit;
  color: #fde68a;
}

.event-card__unavailable {
  margin: 0 16px 10px;
  padding: 8px 10px;
  border-radius: calc(var(--radius) - 6px);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
  color: #fecaca;
}

.event-card__matchup,
.event-card__reef-pick,
.event-card__status {
  margin: 0 16px 8px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text);
}

.duel-lobby-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 16px 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(6, 20, 36, 0.55);
  border: 1px solid rgba(94, 234, 212, 0.35);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.12);
}

.duel-lobby-countdown[hidden] {
  display: none;
}

.duel-lobby-countdown__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.duel-lobby-countdown__time {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--neon-cyan);
  text-shadow: 0 0 18px rgba(45, 212, 191, 0.45);
}

.duel-lobby-countdown__unit {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
}

.event-card__status {
  color: var(--neon-cyan);
  animation: eventCardStatusPulse 1.4s ease-in-out infinite;
}

.event-card__status[hidden] {
  display: none;
  animation: none;
}

@keyframes eventCardStatusPulse {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}

.event-card__reef-pick {
  color: var(--neon-cyan);
  margin-bottom: 14px;
}

.event-card__play {
  width: calc(100% - 32px);
  max-width: none;
  margin: 10px 16px 4px;
  min-height: 52px;
  border-radius: 16px;
  border: 2px solid rgba(255, 248, 220, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(180deg, #fff4b0 0%, #ffd54a 42%, #f0a820 100%);
  color: #3b2208;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.28rem;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow:
    0 6px 0 #9a6410,
    0 14px 28px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(255, 213, 74, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(0);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
  animation: eventPlayPulse 2.4s ease-in-out infinite;
}

.event-card__play:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 #9a6410,
    0 18px 32px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(255, 213, 74, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.event-card__play:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 3px 0 #9a6410,
    0 8px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: none;
}

.event-card__play:disabled {
  opacity: 0.55;
  filter: grayscale(0.35);
  animation: none;
  cursor: not-allowed;
}

@keyframes eventPlayPulse {
  0%,
  100% {
    box-shadow:
      0 6px 0 #9a6410,
      0 14px 28px rgba(0, 0, 0, 0.4),
      0 0 18px rgba(255, 213, 74, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
  50% {
    box-shadow:
      0 6px 0 #9a6410,
      0 14px 28px rgba(0, 0, 0, 0.4),
      0 0 30px rgba(255, 213, 74, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
}

.event-card .leaderboard-block--compact {
  margin: 8px 16px 12px;
}

.event-card__medal--win {
  background: linear-gradient(135deg, #f87171, #dc2626);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .event-card__art-bob,
  .event-card__art-vs,
  .event-card__art-duel-left,
  .event-card__art-duel-right,
  .event-card__art-cage,
  .event-card__art-crab-run,
  .event-card__art-fish,
  .event-card__art-bubble,
  .event-card__art-sparkle,
  .event-card__art-shine,
  .event-card__art-roulette-wheel,
  .event-card__art-roulette-pointer,
  .event-card__art-roulette-ball,
  .event-card__art-roulette-isle--l,
  .event-card__art-roulette-isle--r,
  .event-card__art-coop-you,
  .event-card__art-coop-pal,
  .event-card__art-coop-crew,
  .event-card__art-coop-wave,
  .event-card__art-coop-fish,
  .event-card__art-kraken,
  .event-card__art-kraken-eyes,
  .event-card__art-kraken-tent,
  .event-card__art-kraken-boat,
  .event-card__art-kraken-splash,
  .event-card__play {
    animation: none;
  }
}

.panel--duel-over .btn--secondary {
  margin-top: 10px;
}

.duel-hud {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 20, 36, 0.82);
  border: 1px solid rgba(248, 113, 113, 0.42);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.duel-hud__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.duel-hud__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.duel-hud__score {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--gold-hot);
  line-height: 1;
}

.duel-hud__side--rival .duel-hud__score {
  color: #fca5a5;
}

.duel-hud__vs {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.app--duel .canvas-wrap {
  box-shadow: inset 0 0 0 2px rgba(248, 113, 113, 0.25);
}

.app--duel-solo .canvas-wrap {
  box-shadow: inset 0 0 0 2px rgba(94, 234, 212, 0.22);
}

.app--duel .hud {
  row-gap: 8px;
}

.app--duel .duel-hud {
  flex: 1 1 100%;
  justify-content: center;
  margin: 0 auto;
  padding: 8px 18px;
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 6px 22px rgba(248, 113, 113, 0.18);
}

.app--duel .duel-hud__score {
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
}

.app--duel .stat--score .stat__label::after {
  content: " · you";
  font-weight: 700;
  color: rgba(255, 213, 74, 0.75);
}

.leaderboard--daily .leaderboard__row--prize-1,
.leaderboard--daily .leaderboard__row--prize-2,
.leaderboard--daily .leaderboard__row--prize-3 {
  background: rgba(255, 213, 74, 0.06);
}

@media (max-width: 560px) {
  .home-launch-dock {
    padding:
      8px max(8px, env(safe-area-inset-left, 0px))
      max(10px, calc(env(safe-area-inset-bottom, 0px) + 8px))
      max(8px, env(safe-area-inset-right, 0px));
  }

  .home-launch-stack {
    gap: 4px;
    width: 100%;
  }

  .home-launch-stack .events-launch,
  .home-launch-stack .adventure-launch,
  .home-launch-stack .shop-launch,
  .home-launch-stack .collectables-launch,
  .home-launch-stack .world-launch {
    padding: 7px 2px 6px;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    min-height: 56px;
    border-radius: 12px;
  }

  .shop-launch__glyph,
  .adventure-launch__glyph,
  .events-launch__glyph,
  .collectables-launch__glyph,
  .world-launch__glyph {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .shop-launch__glyph svg,
  .adventure-launch__glyph svg,
  .events-launch__glyph svg,
  .collectables-launch__glyph svg,
  .world-launch__glyph svg {
    width: 14px;
    height: 14px;
  }

  .world-launch__label,
  .shop-launch__label,
  .adventure-launch__label,
  .events-launch__label,
  .collectables-launch__label {
    display: block;
    width: 100%;
    padding: 0 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.1;
  }

  .adventure-launch__hint {
    font-size: 0.6rem;
  }
}

#app.app--adventure-unlock-celebrate::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 44;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255, 213, 74, 0.14), transparent 52%),
    rgba(2, 8, 18, 0.82);
  animation: adventureUnlockBackdropIn 0.75s ease forwards;
  opacity: 0;
}

@keyframes adventureUnlockBackdropIn {
  to {
    opacity: 1;
  }
}

.adventure-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 4px 6px;
  border-radius: 14px;
  border: 2px solid rgba(125, 211, 252, 0.65);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(180deg, #1d7eb0 0%, #0e5a86 48%, #073b5c 100%);
  color: var(--text);
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    0 3px 0 #04263d,
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  pointer-events: auto;
}

.home-launch-stack .adventure-launch:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.home-launch-stack .adventure-launch:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #04263d,
    0 4px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.home-launch-stack .adventure-launch {
  padding: 7px 4px 6px;
  font-size: 0.72rem;
  border-radius: 14px;
}

.adventure-launch--locked .adventure-launch__glyph {
  display: none;
}

.adventure-launch__lock:not([hidden]) ~ .adventure-launch__glyph {
  display: none;
}

.adventure-launch--locked {
  border-color: rgba(180, 180, 190, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(55, 64, 78, 0.95), rgba(28, 34, 44, 0.98));
  box-shadow:
    0 6px 0 #1a1f28,
    0 12px 24px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.adventure-launch--rise,
.adventure-launch--centered {
  /* Legacy fly-out classes: keep Adventure in the dock middle slot. */
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 2;
  animation: none !important;
  font-size: inherit;
  padding: inherit;
  gap: inherit;
  max-width: none;
  width: auto;
  flex: 1 1 0 !important;
}

.adventure-launch--celebrate {
  border-color: rgba(255, 213, 74, 0.75);
  background: linear-gradient(180deg, rgba(24, 88, 120, 0.98), rgba(8, 40, 64, 0.99));
  z-index: 2;
  overflow: visible;
}

.home-launch-stack > .adventure-launch.adventure-launch--rise,
.home-launch-stack > .adventure-launch.adventure-launch--centered,
.home-launch-stack > .adventure-launch.adventure-launch--celebrate {
  overflow: visible;
  isolation: auto;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 58px;
  white-space: normal;
}

.home-launch-stack > .adventure-launch.adventure-launch--rise:hover,
.home-launch-stack > .adventure-launch.adventure-launch--rise:active,
.home-launch-stack > .adventure-launch.adventure-launch--centered:hover,
.home-launch-stack > .adventure-launch.adventure-launch--centered:active,
.home-launch-stack > .adventure-launch.adventure-launch--celebrate:hover,
.home-launch-stack > .adventure-launch.adventure-launch--celebrate:active {
  filter: brightness(1.06);
  transform: none;
}

.adventure-launch--centered .adventure-launch__lock {
  width: 16px;
  height: 18px;
}

.adventure-launch--centered .adventure-launch__lock::before {
  width: 11px;
  height: 9px;
  margin-left: -5.5px;
  border-width: 2.5px;
}

.adventure-launch--centered .adventure-launch__lock::after {
  width: 14px;
  height: 11px;
  margin-left: -7px;
}

.adventure-launch--centered.adventure-launch--return {
  animation: none !important;
}

.adventure-launch--flash {
  animation: adventureLaunchFlash 1.85s ease-in-out infinite;
}

.adventure-launch--unlock-ready,
.adventure-launch--centered.adventure-launch--unlock-ready {
  transform: scale(1.03);
  animation: adventureLaunchFlash 1.85s ease-in-out infinite, adventureLaunchUnlockBounce 2.4s ease-in-out infinite;
  outline: 2px solid rgba(255, 213, 74, 0.85);
  outline-offset: 2px;
  box-shadow:
    0 0 18px rgba(255, 213, 74, 0.55),
    0 0 36px rgba(103, 232, 249, 0.28),
    0 3px 0 #04263d,
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@keyframes adventureLaunchUnlockBounce {
  0%,
  100% {
    transform: scale(1.03);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes adventureLaunchFlash {
  0%,
  100% {
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.45),
      0 0 20px rgba(77, 255, 243, 0.25);
    border-color: rgba(255, 213, 74, 0.55);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 12px 42px rgba(0, 0, 0, 0.55),
      0 0 40px rgba(255, 213, 74, 0.9),
      0 0 64px rgba(77, 255, 243, 0.55);
    border-color: rgba(255, 248, 200, 1);
    filter: brightness(1.18);
  }
}

.adventure-launch__lock {
  position: relative;
  width: 20px;
  height: 24px;
  flex-shrink: 0;
}

.adventure-launch__lock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 11px;
  margin-left: -7px;
  border: 3px solid #9ca3af;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.adventure-launch__lock::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 14px;
  margin-left: -9px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d4d4d8 0%, #71717a 45%, #52525b 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.adventure-launch__lock[hidden] {
  display: none;
}

.adventure-launch__lock--unlocking::before {
  animation: adventureLockShackleOpen 1.05s cubic-bezier(0.34, 1.25, 0.64, 1) 0.35s forwards;
  transform-origin: 50% 100%;
}

.adventure-launch__lock--unlocking::after {
  animation: adventureLockBodyPop 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
  transform-origin: 50% 50%;
}

.adventure-launch__lock--unlocking {
  animation: adventureLockFadeOut 0.75s ease 1.55s forwards;
}

@keyframes adventureLockShackleOpen {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    filter: brightness(1);
  }
  40% {
    filter: brightness(1.6);
  }
  100% {
    transform: translateY(-14px) rotate(-38deg);
    opacity: 0;
    filter: brightness(1.2);
  }
}

@keyframes adventureLockBodyPop {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: brightness(1);
  }
  30% {
    transform: scale(1.35);
    filter: brightness(1.65);
  }
  55% {
    transform: scale(1.15);
    filter: brightness(1.4);
  }
  100% {
    transform: scale(0.65);
    opacity: 0;
    filter: brightness(1.15);
  }
}

@keyframes adventureLockFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-launch-stack > .world-launch::before,
  .home-launch-stack > .shop-launch::before,
  .home-launch-stack > .adventure-launch::before,
  .home-launch-stack > .events-launch::before,
  .home-launch-stack > .collectables-launch::before {
    animation: none !important;
  }

  .adventure-launch--flash,
  .adventure-launch--unlock-ready,
  .adventure-launch--centered.adventure-launch--unlock-ready {
    animation: none;
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.45),
      0 0 32px rgba(255, 213, 74, 0.65);
  }

  .adventure-launch--rise,
  .adventure-launch--centered,
  .adventure-launch--centered.adventure-launch--return {
    animation: none !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    font-size: inherit;
    padding: inherit;
  }

  .adventure-launch__hint--celebrate,
  .adventure-launch__hint--celebrate.adventure-launch__hint--centered,
  .adventure-unlock-banner--active,
  #app.app--adventure-unlock-celebrate::before {
    animation: none;
    opacity: 1;
  }

  .adventure-launch__hint--centered {
    top: calc(50% + 72px);
  }

  .adventure-launch__hint--celebrate.adventure-launch__hint--centered {
    transform: translateX(-50%);
  }

  .adventure-launch__lock--unlocking::before,
  .adventure-launch__lock--unlocking::after,
  .adventure-launch__lock--unlocking {
    animation-duration: 0.01ms;
    animation-delay: 0s;
  }
}

/* Adventure atlas: stacked landscape parchment charts */
.panel--adventure {
  padding: 0;
  justify-content: stretch;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(90, 58, 22, 0.45), transparent 52%),
    linear-gradient(180deg, #4a3218 0%, #2e1c0c 48%, #221408 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 50;
}

.adventure-map-scroll {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
  contain: layout style;
  scroll-padding-top: 150px;
  scroll-padding-bottom: 120px;
}

.adventure-map-atlas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
  padding: 132px 10px 150px;
  box-sizing: border-box;
}

.adventure-chart {
  position: relative;
  width: min(96vw, 760px);
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  filter: drop-shadow(0 14px 22px rgba(16, 8, 2, 0.55));
}

.adventure-chart[hidden] {
  display: none !important;
}

.adventure-chart--revealing {
  animation: adventureChartReveal 1.15s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes adventureChartReveal {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.adventure-chart__art,
.adventure-chart__trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.adventure-chart__art {
  z-index: 1;
  filter: sepia(0.1) contrast(1.08) brightness(1.1) saturate(0.9);
}

.adventure-chart__trail {
  z-index: 4;
  pointer-events: none;
}

.adventure-chart__nodes {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.adventure-chart--gold .adventure-map-trail {
  stroke: #c87810;
  filter: drop-shadow(0 1px 0.5px rgba(80, 40, 8, 0.45));
}

.adventure-chart--ice .adventure-map-trail {
  stroke: #4898b8;
  filter: drop-shadow(0 1px 0.5px rgba(20, 50, 70, 0.4));
}

.adventure-chart--lost-city .adventure-map-trail {
  stroke: #48a8c8;
  filter: drop-shadow(0 1px 0.5px rgba(20, 60, 70, 0.4));
}

.adventure-chart--mermaid .adventure-map-trail {
  stroke: #68b8c8;
  filter: drop-shadow(0 1px 0.5px rgba(80, 40, 70, 0.35));
}

.adventure-chart--revealing .adventure-map-node--section-reveal {
  animation: adventureMapNodeSectionReveal 0.75s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.adventure-map-node--section-reveal {
  animation: adventureMapNodeSectionReveal 0.75s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes adventureMapNodeSectionReveal {
  0% {
    opacity: 0;
    transform: scale(0.25) translateY(24px);
  }
  70% {
    opacity: 1;
    transform: scale(1.08) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.adventure-chart__art .adv-map-oceans,
.adventure-chart__art .adv-map-lands {
  pointer-events: none;
}

.adventure-chart__art .adv-map-lands {
  filter: drop-shadow(0 1px 0 rgba(46, 36, 24, 0.12));
}

.adventure-chart__art .adv-map-lands path {
  stroke-linejoin: round;
  stroke-linecap: round;
}

.adventure-map-trail {
  stroke: #dc2626;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 7;
  opacity: 0.95;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 0.5px rgba(80, 10, 8, 0.45));
}

.adventure-map-trail--reveal {
  stroke: #b91c1c;
  stroke-width: 4;
  opacity: 1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(120, 20, 20, 0.55));
  animation: adventureTrailDashMarch 0.55s linear infinite;
}

@keyframes adventureTrailDashMarch {
  to {
    stroke-dashoffset: -14;
  }
}

@media (prefers-reduced-motion: reduce) {
  .adventure-map-trail--reveal {
    animation: none;
  }
}

.adventure-map-header {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(92vw, 420px);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.adventure-map-title {
  margin: 0;
  padding: 10px 22px 12px;
  border-radius: 4px 6px 5px 7px;
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  background:
    linear-gradient(180deg, rgba(255, 244, 214, 0.97), rgba(232, 198, 128, 0.92));
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #3a2008;
  border: 2px solid rgba(70, 35, 10, 0.55);
  box-shadow:
    0 4px 14px rgba(40, 20, 5, 0.35),
    inset 0 1px 0 rgba(255, 245, 210, 0.55),
    inset 0 -2px 0 rgba(90, 45, 10, 0.15);
  filter: none;
  text-align: center;
  transform: rotate(-1.5deg);
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.4);
}

.adventure-map-here {
  margin: -2px 0 0;
  padding: 5px 14px 6px;
  border-radius: 3px 5px 4px 6px;
  background: rgba(255, 244, 214, 0.92);
  border: 1px solid rgba(90, 55, 25, 0.45);
  color: #5a2010;
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 3px 10px rgba(40, 24, 10, 0.18);
  transform: rotate(0.8deg);
}

.adventure-map-here:empty {
  display: none;
}

.adventure-map-banner {
  margin: 0;
  padding: 8px 14px;
  border-radius: 3px 5px 4px 6px;
  background: rgba(244, 230, 190, 0.82);
  border: 1px solid rgba(90, 55, 25, 0.4);
  color: #3d2914;
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 0.78rem;
  box-shadow: 0 3px 10px rgba(40, 24, 10, 0.2);
  transform: rotate(0.6deg);
}

.adventure-map-banner[hidden] {
  display: none;
}

.adventure-map-bonus-banner {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  z-index: 40;
  width: 100%;
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff3b0, #ffd54a 55%, #f0b429);
  border: 2px solid #a87810;
  color: #4a3010;
  font-weight: 800;
  font-size: 0.72rem;
  text-align: center;
  box-shadow:
    0 6px 18px rgba(120, 80, 10, 0.35),
    inset 0 1px 0 rgba(255, 255, 220, 0.65);
  pointer-events: none;
}

.adventure-map-bonus-banner[hidden] {
  display: none;
}

.adventure-map-bonus-banner--reveal {
  animation: adventureBonusBannerPulse 1.8s ease-in-out infinite;
}

@keyframes adventureBonusBannerPulse {
  0%,
  100% {
    box-shadow:
      0 6px 18px rgba(120, 80, 10, 0.35),
      inset 0 1px 0 rgba(255, 255, 220, 0.65);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(255, 200, 60, 0.55),
      inset 0 1px 0 rgba(255, 255, 220, 0.75);
    transform: scale(1.03);
  }
}

.adventure-map-ice-banner {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  z-index: 40;
  width: 100%;
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(245, 252, 255, 0.98), rgba(160, 210, 240, 0.94));
  border: 2px solid #5898b8;
  color: #1a4058;
  font-weight: 800;
  font-size: 0.72rem;
  text-align: center;
  box-shadow:
    0 6px 18px rgba(60, 120, 160, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.adventure-map-ice-banner[hidden] {
  display: none;
}

.adventure-map-ice-banner--reveal {
  animation: adventureIceBannerPulse 1.8s ease-in-out infinite;
}

.adventure-map-lost-city-banner {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  z-index: 40;
  width: 100%;
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 248, 220, 0.98), rgba(120, 200, 220, 0.92));
  border: 2px solid #48a8c8;
  color: #0a3848;
  font-weight: 800;
  font-size: 0.72rem;
  text-align: center;
  box-shadow:
    0 6px 18px rgba(40, 120, 150, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.adventure-map-lost-city-banner[hidden] {
  display: none;
}

.adventure-map-lost-city-banner--reveal {
  animation: adventureLostCityBannerPulse 1.8s ease-in-out infinite;
}

.adventure-map-mermaid-banner {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  z-index: 40;
  width: 100%;
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 240, 248, 0.98), rgba(140, 210, 220, 0.92));
  border: 2px solid #78b8c8;
  color: #1a4050;
  font-weight: 800;
  font-size: 0.72rem;
  text-align: center;
  box-shadow:
    0 6px 18px rgba(100, 60, 90, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.adventure-map-mermaid-banner[hidden] {
  display: none;
}

.adventure-map-mermaid-banner--reveal {
  animation: adventureMermaidBannerPulse 1.8s ease-in-out infinite;
}

@keyframes adventureMermaidBannerPulse {
  0%,
  100% {
    box-shadow:
      0 6px 18px rgba(100, 60, 90, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(255, 180, 210, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transform: scale(1.03);
  }
}

@keyframes adventureLostCityBannerPulse {
  0%,
  100% {
    box-shadow:
      0 6px 18px rgba(40, 120, 150, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(255, 220, 140, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transform: scale(1.03);
  }
}

@keyframes adventureIceBannerPulse {
  0%,
  100% {
    box-shadow:
      0 6px 18px rgba(60, 120, 160, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(160, 220, 255, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: scale(1.03);
  }
}

.adventure-map-back {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  min-width: min(300px, 88vw);
  min-height: 50px;
  padding: 12px 22px !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(180deg, #fff3b0 0%, #ffd54a 48%, #f0b429 100%) !important;
  color: #3b2208 !important;
  border: 2px solid rgba(255, 248, 220, 0.75) !important;
  font-family: var(--font-brand) !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.04em;
  font-weight: 400 !important;
  box-shadow:
    0 6px 0 #92400e,
    0 12px 26px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 213, 74, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.adventure-map-back__label {
  display: block;
}

.adventure-map-back:hover {
  filter: brightness(1.05);
  transform: translateX(-50%) translateY(-2px);
  box-shadow:
    0 8px 0 #92400e,
    0 16px 30px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(255, 213, 74, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.adventure-map-back:active {
  transform: translateX(-50%) translateY(3px);
  box-shadow:
    0 3px 0 #92400e,
    0 8px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.adventure-map-pager {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 36;
  pointer-events: none;
}

.adventure-map-pager__btn {
  pointer-events: auto;
  position: absolute;
  top: 48%;
  width: 42px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(70, 35, 10, 0.5);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 244, 214, 0.96), rgba(232, 198, 128, 0.92));
  color: #3a2008;
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(40, 20, 5, 0.32);
}

.adventure-map-pager__btn:disabled {
  opacity: 0.35;
}

#btnAdventureMapPrev {
  left: max(4px, env(safe-area-inset-left, 0px));
}

#btnAdventureMapNext {
  right: max(4px, env(safe-area-inset-right, 0px));
}

.adventure-map-node {
  position: absolute;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 70px;
  margin-left: -35px;
  margin-top: -16px;
  scroll-margin-top: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: #2c1810;
  font-family: inherit;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease;
}

.adventure-map-node:disabled {
  cursor: not-allowed;
}

.adventure-map-node:not(:disabled):hover {
  transform: scale(1.08);
}

.adventure-map-node:not(:disabled):active {
  transform: scale(0.96);
}

.adventure-map-node__mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.adventure-map-node__scene-wrap,
.adventure-map-node__scene--lite,
.adventure-map-node__scene {
  display: none !important;
}

.adventure-map-node__pin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff6e0, #e2c48a 55%, #b88948);
  border: 2px solid #3a2814;
  box-shadow:
    0 2px 0 #5c3d1e,
    0 4px 8px rgba(40, 24, 10, 0.35),
    inset 0 1px 0 rgba(255, 250, 230, 0.55);
}

.adventure-map-node__pin::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(70, 45, 20, 0.35);
  pointer-events: none;
}

.adventure-map-node__num {
  position: relative;
  z-index: 2;
  min-width: 0;
  height: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: none;
  border: none;
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 0.85rem;
  line-height: 1;
  color: #3a2410;
  box-shadow: none;
  text-shadow: 0 1px 0 rgba(255, 245, 220, 0.35);
}

.adventure-map-node__label {
  font-weight: 700;
  font-size: 0.62rem;
  line-height: 1.15;
  max-width: 76px;
  padding: 0;
  border-radius: 0;
  text-align: center;
  font-family: "IM Fell English", Georgia, serif;
  font-style: italic;
  color: #3d2914;
  letter-spacing: 0.01em;
  background: none;
  border: none;
  box-shadow: none;
  text-shadow:
    0 0 4px rgba(232, 217, 184, 0.9),
    0 1px 0 rgba(255, 248, 230, 0.55);
  transform: rotate(-1.5deg);
}

.adventure-map-node__meta {
  display: none;
}

.adventure-map-node__boat {
  position: absolute;
  top: -28px;
  left: 50%;
  width: 36px;
  height: 32px;
  margin-left: -18px;
  filter: drop-shadow(0 2px 3px rgba(30, 24, 20, 0.45));
  animation: adventureMapBoatBob 1.6s ease-in-out infinite;
  transform-origin: 50% 85%;
}

.adventure-map-node__boat::before {
  display: none;
}

.adventure-map-node__boat-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.adventure-map-node__star {
  position: absolute;
  right: -4px;
  top: -2px;
  width: 12px;
  height: 12px;
  font-size: 0;
  background: #1f6a3a;
  clip-path: polygon(50% 0%, 61% 38%, 100% 38%, 68% 59%, 79% 100%, 50% 76%, 21% 100%, 32% 59%, 0% 38%, 39% 38%);
  opacity: 0.9;
}

.adventure-map-node__lock {
  position: absolute;
  width: 9px;
  height: 7px;
  bottom: 2px;
  right: 2px;
  background: #4a3d2e;
  border-radius: 1px;
  opacity: 0.65;
}

.adventure-map-node__lock::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 100%;
  width: 7px;
  height: 5px;
  border: 2px solid #4a3d2e;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.adventure-map-node--theme-treasure-cove .adventure-map-node__label,
.adventure-map-node--theme-skull-shoals .adventure-map-node__label {
  color: #7a1e12;
}

.adventure-map-node--bonus .adventure-map-node__pin {
  background: radial-gradient(circle at 35% 30%, #fff8d0, #f0c85a 55%, #c89620);
  border-color: #8a6010;
}

.adventure-map-node--ice .adventure-map-node__pin {
  background: radial-gradient(circle at 35% 30%, #f4fbff, #c8e4f4 55%, #88b8d0);
  border-color: #4a7898;
}

.adventure-map-node--lost-city .adventure-map-node__pin {
  background: radial-gradient(circle at 35% 30%, #fff8e0, #d8c898 50%, #78b0c8);
  border-color: #3a6880;
}

.adventure-map-node--mermaid .adventure-map-node__pin {
  background: radial-gradient(circle at 35% 30%, #fff0f6, #e8c0d0 45%, #78c0c8);
  border-color: #5a7890;
}

.adventure-map-node--bonus .adventure-map-node__bonus-lock {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(60, 40, 10, 0.85);
  color: #ffe8a0;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@keyframes adventureMapTreasureCoveGlow {
  0%,
  100% {
    filter: brightness(0.95) saturate(1.05);
  }
  50% {
    filter: brightness(1.05) saturate(1.1);
  }
}

.adventure-map-node--locked .adventure-map-node__pin {
  background: #c9bfb0;
  border-color: #6b6358;
  opacity: 0.82;
}

.adventure-map-node--locked .adventure-map-node__pin .adventure-map-node__num {
  color: #6b6358;
}

.adventure-map-node--cleared .adventure-map-node__pin {
  background: #e0d6c4;
  border-color: #2e5c3a;
  box-shadow:
    0 2px 8px rgba(46, 92, 58, 0.25),
    inset 0 0 0 3px rgba(255, 252, 245, 0.45);
}

.adventure-map-node--current .adventure-map-node__pin {
  animation: adventureMapNodePulse 1.4s ease-in-out infinite;
  border-color: #7a1e12;
  box-shadow:
    0 0 0 3px rgba(122, 30, 18, 0.2),
    0 3px 10px rgba(30, 24, 20, 0.35),
    inset 0 0 0 3px rgba(255, 252, 245, 0.55);
}

.adventure-map-node--finale .adventure-map-node__pin {
  width: 46px;
  height: 46px;
  border-color: #b91c1c;
  box-shadow:
    0 0 0 3px rgba(196, 30, 30, 0.25),
    0 3px 10px rgba(30, 24, 20, 0.3),
    inset 0 0 0 3px rgba(255, 252, 245, 0.5);
}

.adventure-map-node__x {
  position: absolute;
  inset: -4px;
  z-index: 3;
  pointer-events: none;
}

.adventure-map-node__x::before,
.adventure-map-node__x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 3.5px;
  margin-left: -20px;
  margin-top: -1.75px;
  background: #8b1a12;
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(255, 240, 210, 0.25);
  opacity: 0.92;
}

.adventure-map-node__x::before {
  transform: rotate(45deg);
}

.adventure-map-node__x::after {
  transform: rotate(-45deg);
}

.adventure-map-node--finale .adventure-map-node__num {
  opacity: 0.92;
}

@keyframes adventureMapNodePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes adventureMapBoatBob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .adventure-chart,
  .adventure-chart__art {
    transition: none !important;
  }

  .adventure-chart--revealing,
  .adventure-map-node--section-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 560px) {
  .adventure-map-scroll {
    overflow: hidden;
  }

  .adventure-map-atlas {
    min-height: 100%;
    justify-content: center;
    gap: 0;
    padding: 118px 6px 120px;
  }

  .adventure-chart {
    width: min(96vw, 760px);
  }

  .adventure-map-pager:not([hidden]) {
    display: block;
  }

  .adventure-map-node {
    width: 64px;
    margin-left: -32px;
  }

  .adventure-map-node__mark {
    width: 28px;
    height: 28px;
  }

  .adventure-map-node__pin {
    width: 24px;
    height: 24px;
  }

  .adventure-map-node__num {
    font-size: 0.75rem;
  }

  .adventure-map-node__label {
    font-size: 0.6rem;
    max-width: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .adventure-map-node--current .adventure-map-node__scene-wrap,
  .adventure-map-node--current .adventure-map-node__pin,
  .adventure-map-node__boat,
  .adventure-map-node--theme-treasure-cove:not(.adventure-map-node--locked) .adventure-map-node__scene {
    animation: none;
  }
}

.panel--treasure-cove-celebrate .panel__headline {
  background: linear-gradient(180deg, #fef08a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.adventure-win-treasure-celebrate {
  position: relative;
  margin: 0 auto 14px;
  padding: 16px 14px 12px;
  max-width: min(320px, 92vw);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 240, 160, 0.95), rgba(255, 200, 80, 0.88));
  border: 2px solid #c8a020;
  box-shadow:
    0 0 24px rgba(255, 200, 50, 0.45),
    0 8px 24px rgba(60, 40, 10, 0.25);
  text-align: center;
  overflow: hidden;
}

.adventure-win-treasure-celebrate[hidden] {
  display: none;
}

.adventure-win-treasure-celebrate__burst {
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 220, 80, 0.35) 30deg,
    transparent 60deg,
    rgba(255, 200, 50, 0.25) 90deg,
    transparent 120deg
  );
  animation: adventureTreasureCelebrateSpin 4s linear infinite;
  pointer-events: none;
}

@keyframes adventureTreasureCelebrateSpin {
  to {
    transform: rotate(360deg);
  }
}

.adventure-win-treasure-celebrate__crown {
  position: relative;
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  animation: adventureTreasureCrownBounce 0.9s ease-in-out infinite;
}

@keyframes adventureTreasureCrownBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.08);
  }
}

.adventure-win-treasure-celebrate__title {
  position: relative;
  margin: 8px 0 4px;
  font-weight: 900;
  font-size: 1.05rem;
  color: #5c4010;
}

.adventure-win-treasure-celebrate__sub {
  position: relative;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #7a5018;
}

.panel--adventure-result .panel__headline--fail {
  background: linear-gradient(180deg, #fecaca, #f87171);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel--adventure-result {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 213, 74, 0.18), transparent 46%),
    radial-gradient(ellipse at 18% 85%, rgba(77, 255, 243, 0.1), transparent 42%),
    linear-gradient(180deg, #0c5a78 0%, var(--ocean-mid) 48%, var(--ocean-deep) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  gap: 10px;
}

.panel--adventure-prep {
  z-index: 52;
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
  gap: 12px;
  padding: 16px 14px max(18px, env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 213, 74, 0.16), transparent 42%),
    radial-gradient(ellipse at 80% 90%, rgba(77, 255, 243, 0.08), transparent 40%),
    linear-gradient(180deg, #0a4d68 0%, var(--ocean-mid) 50%, var(--ocean-deep) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.adventure-prep__header {
  text-align: center;
  margin: 0 0 4px;
}

.adventure-prep__section {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 248, 220, 0.72);
}

.adventure-prep__title {
  margin: 4px 0 2px;
  font-family: var(--font-brand);
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  letter-spacing: 0.03em;
  color: #fff8dc;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.adventure-prep__goal {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffd54a;
}

.adventure-prep__gear {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(520px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

.adventure-prep__card {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.panel--adventure-prep .rod-option__desc {
  display: none;
}

.panel--adventure-prep .rod-option {
  padding: 8px 10px;
  gap: 8px;
}

.panel--adventure-prep .rod-option__art {
  width: 36px;
  height: 52px;
}

.panel--adventure-prep .rod-option__art--bait {
  width: 36px;
  height: 44px;
}

.panel--adventure-prep .rod-option__art .bait-bucket {
  width: 32px;
  height: 40px;
}

.panel--adventure-prep .rod-option__art .rod-art {
  width: 32px;
  height: 50px;
}

.adventure-prep__boosts .rods__legend,
.adventure-prep__boosts h3.rods__legend {
  margin-bottom: 8px;
}

.adventure-prep__armed {
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 213, 74, 0.14);
  border: 1px solid rgba(255, 213, 74, 0.35);
  color: #fff3c4;
  font-size: 0.82rem;
  font-weight: 600;
}

.adventure-prep__boost-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adventure-prep__boost {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 40, 58, 0.55);
}

.adventure-prep__boost--empty {
  opacity: 0.55;
}

.adventure-prep__boost-icon {
  line-height: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.adventure-prep__boost-icon .chest-item-art {
  width: 36px;
  height: 36px;
  display: block;
}

.adventure-prep__boost-body {
  flex: 1;
  min-width: 0;
}

.adventure-prep__boost-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

.adventure-prep__boost-qty {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.75);
}

.adventure-prep__boost .btn {
  flex-shrink: 0;
  min-width: 72px;
  margin: 0;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.adventure-prep__boost-empty {
  margin: 0;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.85rem;
}

.adventure-prep__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(520px, 100%);
  margin: 6px auto 0;
  box-sizing: border-box;
}

.adventure-prep__actions .btn--start {
  width: 100%;
  max-width: none;
}

.adventure-prep__actions .btn--secondary {
  width: 100%;
  min-width: 0;
}

.panel--adventure-result .panel__headline {
  margin-bottom: 4px;
}

.panel--adventure-result .btn {
  margin-top: 8px;
  min-width: min(280px, 88vw);
}

.panel--adventure-result .btn--primary {
  min-height: 52px;
  border-radius: 16px;
  border: 2px solid rgba(255, 248, 220, 0.7);
  background: linear-gradient(180deg, #fff6c2 0%, #ffd54a 40%, #f0b429 100%);
  color: #3b2208;
  font-family: var(--font-brand);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  box-shadow:
    0 6px 0 #92400e,
    0 12px 26px rgba(255, 213, 74, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.panel--adventure-result .btn--secondary {
  border-radius: 999px;
  border: 2px solid rgba(125, 211, 252, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(8, 28, 48, 0.55));
  color: #e8f7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* --- Treasure map unlock cinematic --- */
.treasure-map-reveal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.treasure-map-reveal:not([hidden]) {
  pointer-events: auto;
}

.treasure-map-reveal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 213, 74, 0.18), transparent 55%),
    radial-gradient(ellipse at 50% 55%, rgba(6, 20, 36, 0.55), rgba(2, 8, 18, 0.94));
  opacity: 0;
}

.treasure-map-reveal__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 520px);
  padding: 12px 14px 18px;
  text-align: center;
}

.treasure-map-reveal__map-wrap {
  position: relative;
  z-index: 2;
  width: min(88vw, 480px);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(48px) scale(0.35) rotate(-6deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

.treasure-map-reveal__map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 3px solid #5c3d1e;
  box-shadow:
    inset 0 0 40px rgba(92, 61, 30, 0.25),
    0 0 0 1px rgba(255, 240, 200, 0.15);
}

.treasure-map-reveal__title,
.treasure-map-reveal__lede,
.treasure-map-reveal__btn,
.treasure-map-reveal__badge {
  opacity: 0;
  transform: translateY(12px);
}

.treasure-map-reveal__badge {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  letter-spacing: 0.14em;
  color: #ffe08a;
  text-shadow:
    0 0 16px rgba(255, 213, 74, 0.75),
    0 0 32px rgba(255, 180, 50, 0.45);
}

.treasure-map-reveal__title {
  margin: 10px 0 4px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.75rem, 6vw, 2.2rem);
  letter-spacing: 0.06em;
  color: var(--gold-hot);
  text-shadow: 0 0 20px rgba(255, 213, 74, 0.35);
}

.treasure-map-reveal__lede {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 36ch;
}

.treasure-map-reveal__btn {
  min-width: min(280px, 88vw);
}

.treasure-map-reveal--active .treasure-map-reveal__backdrop {
  animation: treasureRevealBackdrop 0.85s ease forwards;
}

.treasure-map-reveal--active .treasure-map-reveal__map-wrap {
  animation: treasureRevealMapRise 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards,
    treasureRevealMapGlow 2.8s ease-in-out 2.2s infinite;
}

.treasure-map-reveal--active .treasure-map-reveal__badge {
  animation: treasureRevealTextIn 0.7s ease 2.45s forwards;
}

.treasure-map-reveal--active .treasure-map-reveal__title {
  animation: treasureRevealTextIn 0.65s ease 2.75s forwards;
}

.treasure-map-reveal--active .treasure-map-reveal__lede {
  animation: treasureRevealTextIn 0.65s ease 3.05s forwards;
}

.treasure-map-reveal--active .treasure-map-reveal__btn {
  animation: treasureRevealTextIn 0.65s ease 3.35s forwards;
}

.treasure-map-reveal--map-only .treasure-map-reveal__backdrop {
  animation: treasureRevealBackdrop 0.75s ease forwards;
}

.treasure-map-reveal--map-only .treasure-map-reveal__map-wrap {
  animation: treasureRevealMapRise 2s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards,
    treasureRevealMapGlow 2.8s ease-in-out 2s infinite;
}

.treasure-map-reveal--map-only .treasure-map-reveal__badge {
  animation: treasureRevealTextIn 0.65s ease 1.85s forwards;
}

.treasure-map-reveal--map-only .treasure-map-reveal__title {
  animation: treasureRevealTextIn 0.65s ease 2.2s forwards;
}

.treasure-map-reveal--map-only .treasure-map-reveal__lede {
  animation: treasureRevealTextIn 0.65s ease 2.55s forwards;
}

.treasure-map-reveal--map-only .treasure-map-reveal__btn {
  animation: treasureRevealTextIn 0.65s ease 2.9s forwards;
}

@keyframes treasureRevealMapGlow {
  0%,
  100% {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 18px rgba(255, 213, 74, 0.35));
  }
  50% {
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 36px rgba(255, 213, 74, 0.75));
  }
}

@keyframes treasureRevealBackdrop {
  to {
    opacity: 1;
  }
}

@keyframes treasureRevealMapRise {
  0% {
    opacity: 0;
    transform: translateY(64px) scale(0.22) rotate(-10deg);
  }
  55% {
    opacity: 1;
    transform: translateY(-18px) scale(1.06) rotate(2deg);
  }
  75% {
    transform: translateY(-10px) scale(0.98) rotate(-0.5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(-8px) scale(1) rotate(0deg);
  }
}

@keyframes treasureRevealTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .treasure-map-reveal--active .treasure-map-reveal__backdrop,
  .treasure-map-reveal--map-only .treasure-map-reveal__backdrop,
  .treasure-map-reveal--active .treasure-map-reveal__map-wrap,
  .treasure-map-reveal--map-only .treasure-map-reveal__map-wrap,
  .treasure-map-reveal--active .treasure-map-reveal__badge,
  .treasure-map-reveal--map-only .treasure-map-reveal__badge,
  .treasure-map-reveal--active .treasure-map-reveal__title,
  .treasure-map-reveal--map-only .treasure-map-reveal__title,
  .treasure-map-reveal--active .treasure-map-reveal__lede,
  .treasure-map-reveal--map-only .treasure-map-reveal__lede,
  .treasure-map-reveal--active .treasure-map-reveal__btn,
  .treasure-map-reveal--map-only .treasure-map-reveal__btn {
    animation-duration: 0.01ms;
    animation-delay: 0s;
  }

  .treasure-map-reveal--active .treasure-map-reveal__map-wrap,
  .treasure-map-reveal--map-only .treasure-map-reveal__map-wrap,
  .treasure-map-reveal--active .treasure-map-reveal__badge,
  .treasure-map-reveal--map-only .treasure-map-reveal__badge,
  .treasure-map-reveal--active .treasure-map-reveal__title,
  .treasure-map-reveal--map-only .treasure-map-reveal__title,
  .treasure-map-reveal--active .treasure-map-reveal__lede,
  .treasure-map-reveal--map-only .treasure-map-reveal__lede,
  .treasure-map-reveal--active .treasure-map-reveal__btn,
  .treasure-map-reveal--map-only .treasure-map-reveal__btn {
    opacity: 1;
    transform: none;
  }

  .daily-prize-reveal--active .daily-prize-reveal__badge,
  .daily-prize-reveal--active .daily-prize-reveal__title,
  .daily-prize-reveal--active .daily-prize-reveal__day,
  .daily-prize-reveal--active .daily-prize-reveal__award,
  .daily-prize-reveal--active .daily-prize-reveal__btn,
  .daily-prize-reveal--active .daily-prize-podium__slot,
  .daily-prize-reveal--active .daily-prize-board,
  .daily-prize-reveal--active .daily-prize-chest {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* --- Fisher of the Day promotion (Pocket Champs-style board + chest) --- */
.daily-prize-reveal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: stretch;
  justify-content: center;
  pointer-events: none;
}

.daily-prize-reveal:not([hidden]) {
  pointer-events: auto;
}

.app--playing .daily-prize-reveal {
  display: none !important;
}

.daily-prize-reveal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 213, 74, 0.28), transparent 42%),
    radial-gradient(ellipse at 50% 80%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(180deg, #07111f 0%, #0b2740 48%, #041018 100%);
  opacity: 0;
}

.daily-prize-reveal--active .daily-prize-reveal__backdrop {
  animation: treasureRevealBackdrop 0.45s ease forwards;
}

.daily-prize-reveal__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(94vw, 440px);
  max-height: 100%;
  padding: max(16px, env(safe-area-inset-top, 0px)) 14px max(18px, env(safe-area-inset-bottom, 0px));
  text-align: center;
  overflow: auto;
}

.daily-prize-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.daily-prize-phase[hidden] {
  display: none;
}

.daily-prize-reveal__badge {
  margin: 4px 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffe08a;
  text-shadow: 0 0 16px rgba(255, 213, 74, 0.55);
}

.daily-prize-reveal__title {
  margin: 4px 0 2px;
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 8vw, 2.7rem);
  line-height: 1;
  color: #fff8dc;
  text-shadow: 0 3px 0 #8a5a12, 0 0 22px rgba(255, 213, 74, 0.4);
}

.daily-prize-reveal__day {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.daily-prize-reveal__btn {
  margin-top: 12px;
}

.daily-prize-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 6px 0 12px;
}

.daily-prize-podium__slot {
  flex: 1 1 0;
  max-width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(18px);
}

.daily-prize-reveal--active .daily-prize-podium__slot--2 {
  animation: treasureRevealTextIn 0.5s ease 0.28s forwards;
}

.daily-prize-reveal--active .daily-prize-podium__slot--1 {
  animation: treasureRevealTextIn 0.5s ease 0.18s forwards;
}

.daily-prize-reveal--active .daily-prize-podium__slot--3 {
  animation: treasureRevealTextIn 0.5s ease 0.36s forwards;
}

.daily-prize-podium__medal {
  font-size: 1.45rem;
  line-height: 1;
}

.daily-prize-podium__name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #f0f7ff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-prize-podium__score {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 224, 138, 0.9);
}

.daily-prize-podium__block {
  width: 100%;
  border-radius: 12px 12px 4px 4px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  color: #1a1208;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.daily-prize-podium__slot--1 .daily-prize-podium__block {
  height: 96px;
  background: linear-gradient(180deg, #ffe08a, #f5c542 55%, #d97706);
  border: 2px solid #fde68a;
}

.daily-prize-podium__slot--2 .daily-prize-podium__block {
  height: 74px;
  background: linear-gradient(180deg, #e2e8f0, #94a3b8 55%, #64748b);
  border: 2px solid #cbd5e1;
  color: #0f172a;
}

.daily-prize-podium__slot--3 .daily-prize-podium__block {
  height: 58px;
  background: linear-gradient(180deg, #fdba74, #c2410c 55%, #7c2d12);
  border: 2px solid #fdba74;
  color: #fff7ed;
}

.daily-prize-podium__slot--you .daily-prize-podium__name {
  color: #ffe08a;
  text-shadow: 0 0 10px rgba(255, 213, 74, 0.7);
}

.daily-prize-podium__slot--you .daily-prize-podium__block {
  box-shadow:
    0 0 0 2px #fff8dc,
    0 0 22px rgba(255, 213, 74, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.daily-prize-board {
  list-style: none;
  margin: 0;
  padding: 6px;
  width: 100%;
  max-height: 28vh;
  overflow: auto;
  border-radius: 14px;
  background: rgba(4, 16, 28, 0.72);
  border: 1px solid rgba(255, 213, 74, 0.28);
  opacity: 0;
}

.daily-prize-reveal--active .daily-prize-board:not([hidden]) {
  animation: treasureRevealTextIn 0.45s ease 0.42s forwards;
}

.daily-prize-board[hidden] {
  display: none;
}

.daily-prize-board__row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 9px;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 800;
}

.daily-prize-board__row + .daily-prize-board__row {
  margin-top: 3px;
}

.daily-prize-board__row--you {
  background: linear-gradient(90deg, rgba(255, 213, 74, 0.22), rgba(255, 213, 74, 0.08));
  border: 1px solid rgba(255, 213, 74, 0.55);
  color: #fff8dc;
}

.daily-prize-board__rank {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  color: #ffe08a;
}

.daily-prize-board__score {
  font-variant-numeric: tabular-nums;
  color: #fde68a;
}

.daily-prize-chest {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(78vw, 280px);
  margin: 8px 0 4px;
  padding: 18px 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  opacity: 0;
  transform: translateY(16px) scale(0.92);
}

.daily-prize-reveal--active .daily-prize-chest {
  animation: treasureRevealTextIn 0.5s ease 0.2s forwards;
}

.daily-prize-chest__glow {
  position: absolute;
  inset: 8% 6% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 74, 0.45), rgba(255, 213, 74, 0) 70%);
  animation: dailyPrizeChestGlow 1.8s ease-in-out infinite;
  pointer-events: none;
}

.daily-prize-chest--legendary .daily-prize-chest__glow {
  background: radial-gradient(circle, rgba(253, 224, 71, 0.7), rgba(167, 139, 250, 0.25) 55%, transparent 72%);
}

.daily-prize-chest--rare .daily-prize-chest__glow {
  background: radial-gradient(circle, rgba(125, 211, 252, 0.5), transparent 70%);
}

.daily-prize-chest__sparkles {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 1.6rem;
  color: #fff8dc;
  text-shadow: 0 0 12px rgba(255, 213, 74, 0.9);
  animation: dailyPrizeSparklePulse 1.6s ease-in-out infinite;
  pointer-events: none;
}

.daily-prize-chest__art {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
}

.daily-prize-chest__art svg {
  width: 100%;
  height: auto;
  display: block;
}

.daily-prize-chest__plinth {
  width: 78%;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(253, 230, 138, 0.55), rgba(120, 53, 15, 0.5));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4);
}

.daily-prize-chest--opening .daily-prize-chest__art {
  animation: chestShake 0.42s ease-in-out;
}

.daily-prize-chest--opened {
  cursor: default;
  transform: scale(1.16);
  transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.34, 1);
}

.daily-prize-chest--opened .daily-prize-chest__art {
  animation: none;
}

.daily-prize-chest--burst .daily-prize-chest__glow {
  animation: chestBurstFlash 0.55s ease-out both;
}

.daily-prize-reveal__awards {
  list-style: none;
  margin: 12px 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(92vw, 420px);
}

.daily-prize-reveal__awards[hidden] {
  display: none;
}

@keyframes dailyPrizeChestGlow {
  0%,
  100% { opacity: 0.65; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes dailyPrizeSparklePulse {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 213, 74, 0.45));
    transform: scale(1) rotate(0deg);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 213, 74, 0.9));
    transform: scale(1.12) rotate(12deg);
  }
}

/* --- Daily Catch event --- */
.event-card--daily-catch {
  border-color: rgba(34, 211, 238, 0.5);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.14), transparent 28%),
    linear-gradient(165deg, rgba(12, 40, 58, 0.96), rgba(10, 24, 40, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(34, 211, 238, 0.12);
}

.event-card--daily-catch .event-card__title {
  color: #67e8f9;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
}

.event-card__art--daily-catch {
  background: #04324a;
}

.event-card__goal {
  margin: 0 16px 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ecfeff;
  letter-spacing: 0.01em;
}

.event-card__progress {
  display: grid;
  gap: 6px;
  margin: 0 16px 10px;
}

.event-card__progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(103, 232, 249, 0.3);
  overflow: hidden;
}

.event-card__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0e7490, #22d3ee 55%, #a5f3fc);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
  transition: width 0.35s ease;
}

.event-card__progress-text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #a5f3fc;
}

.event-card--daily-catch .event-card__status {
  color: rgba(226, 232, 240, 0.82);
  margin-left: 16px;
  margin-right: 16px;
}

.event-card--daily-catch .event-card__play:not([hidden]) {
  margin-top: 4px;
}

/* --- Crab Trap event --- */
.event-card--crab {
  border-color: rgba(255, 138, 76, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 138, 76, 0.16), transparent 28%),
    linear-gradient(165deg, rgba(52, 30, 20, 0.96), rgba(24, 14, 20, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 138, 76, 0.14);
}

.event-card--crab .event-card__title {
  color: #ffb454;
  text-shadow: 0 0 14px rgba(255, 180, 84, 0.3);
}

.event-card--roulette {
  border-color: rgba(45, 212, 191, 0.5);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.14), transparent 28%),
    linear-gradient(165deg, rgba(20, 42, 52, 0.96), rgba(14, 24, 36, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(45, 212, 191, 0.12);
}

.event-card--roulette .event-card__title {
  color: #5eead4;
  text-shadow: 0 0 14px rgba(45, 212, 191, 0.3);
}

.event-card--coop {
  border-color: rgba(134, 239, 172, 0.5);
  background:
    linear-gradient(180deg, rgba(74, 222, 128, 0.12), transparent 28%),
    linear-gradient(165deg, rgba(18, 42, 48, 0.96), rgba(12, 28, 40, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(134, 239, 172, 0.12);
}

.event-card--coop .event-card__title {
  color: #86efac;
  text-shadow: 0 0 14px rgba(134, 239, 172, 0.3);
}

.event-card--survivor {
  border-color: rgba(167, 139, 250, 0.55);
  background:
    linear-gradient(180deg, rgba(123, 90, 168, 0.18), transparent 28%),
    linear-gradient(165deg, rgba(28, 18, 48, 0.96), rgba(12, 10, 24, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(94, 234, 212, 0.12);
}

.event-card--survivor .event-card__title {
  color: #c4b5fd;
  text-shadow: 0 0 14px rgba(123, 90, 168, 0.4);
}

.duel-hud--coop .duel-hud__vs {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.crab-trap-stage {
  position: absolute;
  inset: 0;
  z-index: 34;
  pointer-events: auto;
  touch-action: none;
  overflow: hidden;
}

.crab-trap-stage[hidden] {
  display: none;
}

.crab-trap-stage__canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
  background: #b48d54;
}

.crab-trap-stage__canvas--reloading {
  cursor: wait;
}

.crab-trap-stage__hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 14px 10px;
  background: linear-gradient(180deg, rgba(6, 20, 34, 0.72), rgba(6, 20, 34, 0));
  pointer-events: none;
}

.crab-trap-stage__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(6, 20, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.crab-trap-stage__stat-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.crab-trap-stage__stat-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
}

.crab-trap-stage__stat-value--reloading {
  color: #ffb454;
  animation: crabReloadPulse 0.55s ease-in-out infinite;
}

@keyframes crabReloadPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.crab-trap-stage__stat--time .crab-trap-stage__stat-value {
  color: var(--gold-hot);
}

.crab-trap-stage__stat--time.crab-trap-stage__stat--urgent .crab-trap-stage__stat-value {
  color: #ff6b5c;
  animation: crabTimeThrob 0.6s ease-in-out infinite;
}

@keyframes crabTimeThrob {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}

.crab-trap-stage__instruct {
  flex: 1;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  color: rgba(255, 244, 224, 0.94);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.crab-trap-stage__quit {
  pointer-events: auto;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(6, 20, 34, 0.6);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crab-trap-stage__quit:hover {
  background: rgba(220, 70, 70, 0.7);
}

@media (max-width: 560px) {
  .crab-trap-stage__instruct {
    font-size: 0.72rem;
  }
  .crab-trap-stage__stat {
    min-width: 52px;
    padding: 3px 8px;
  }
}

/* --- Crab Trap reward chooser --- */
.panel--crab-reward {
  z-index: 40;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 24%, rgba(255, 150, 70, 0.24), rgba(3, 21, 37, 0.95));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}

.panel--chest-opening .panel__headline,
.panel--chest-opening .panel__scoreline,
.panel--chest-opening .panel__lede,
.panel--chest-opening .crab-reward__prompt {
  opacity: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.panel--chest-opening .crab-reward__chests {
  min-height: min(54vh, 440px);
  align-items: center;
}

.crab-reward__prompt {
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--neon-cyan);
}

.crab-reward__chests {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: min(560px, 94vw);
  margin: 0 auto 8px;
}

.crab-chest {
  position: relative;
  flex: 1 1 140px;
  max-width: 168px;
  min-height: 168px;
  padding: 14px 12px 12px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(165deg, rgba(20, 40, 62, 0.95), rgba(10, 22, 36, 0.98));
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.crab-chest--shop-solo {
  flex: 0 0 auto;
  width: min(220px, 70vw);
  max-width: 220px;
  min-height: 200px;
}

.crab-chest:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.crab-chest:disabled {
  cursor: default;
}

.crab-chest--common {
  border-color: rgba(148, 163, 184, 0.55);
  background: linear-gradient(165deg, rgba(42, 48, 58, 0.96), rgba(16, 20, 28, 0.98));
}

.crab-chest--rare {
  border-color: rgba(125, 211, 252, 0.55);
  background: linear-gradient(165deg, rgba(28, 48, 72, 0.96), rgba(12, 24, 42, 0.98));
}

.crab-chest--legendary {
  border-color: rgba(255, 205, 90, 0.78);
  background: linear-gradient(165deg, rgba(72, 42, 12, 0.96), rgba(32, 16, 8, 0.98));
  box-shadow: 0 0 22px rgba(255, 190, 70, 0.28);
}

.crab-chest__art {
  position: relative;
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  animation: crabChestBob 2.4s ease-in-out infinite;
}

.crab-chest__art svg {
  width: 76px;
  height: 68px;
  display: block;
}

.crab-chest--rare .crab-chest__art {
  filter: drop-shadow(0 4px 8px rgba(56, 189, 248, 0.35));
}

.crab-chest--legendary .crab-chest__art {
  animation: crabChestBob 2.4s ease-in-out infinite, crabChestGlow 1.8s ease-in-out infinite;
}

@keyframes crabChestBob {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-5px) rotate(1.5deg);
  }
}

@keyframes crabChestGlow {
  0%,
  100% {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(255, 205, 90, 0.9));
  }
}

.crab-chest__label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold-hot);
}

.chest-loot {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.chest-loot[hidden] {
  display: none;
}

.chest-loot__pip {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 2px solid rgba(253, 224, 71, 0.6);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.22), transparent 46%),
    linear-gradient(165deg, rgba(30, 58, 90, 0.96), rgba(8, 24, 40, 0.98));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 14px rgba(253, 224, 71, 0.22);
  display: grid;
  place-items: center;
  animation: chestLootPop 0.58s cubic-bezier(0.18, 1.5, 0.32, 1) both;
  animation-delay: calc(var(--i, 0) * 0.12s + 0.06s);
}

.chest-loot__art {
  display: grid;
  place-items: center;
  width: 78%;
  height: 78%;
}

.chest-loot__art .shop-coin,
.chest-loot__art .shop-gem {
  width: 1.7rem;
  height: 1.7rem;
}

.chest-loot__art .shop-gem {
  height: 2rem;
}

.chest-loot__art .bait-bucket,
.chest-loot__art .rod-art {
  width: 42px;
  height: auto;
  max-height: 48px;
  display: block;
}

.chest-loot__stamp {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 -6px 8px rgba(0, 0, 0, 0.25);
}

.chest-loot__art .catch-stamp-art {
  width: 40px;
  height: 40px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.chest-loot__art .chest-item-art {
  width: 36px;
  height: 36px;
  display: block;
}

.chest-loot__qty {
  position: absolute;
  right: -7px;
  bottom: -8px;
  min-width: 1.45em;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe08a, #f59e0b);
  border: 1px solid #b45309;
  color: #422006;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.3;
  box-shadow: 0 2px 0 #92400e;
}

.crab-chest--hero {
  flex: 0 0 auto;
  max-width: min(300px, 82vw);
  min-height: 240px;
  padding: 22px 16px 18px;
  z-index: 2;
  overflow: visible;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: scale(1.28);
  animation: chestHeroGrow 0.4s cubic-bezier(0.2, 1.45, 0.34, 1) both;
}

.crab-chest--hero.crab-chest--opened {
  transform: scale(1.28);
}

.crab-chest--hero .crab-chest__art svg {
  width: 148px;
  height: 132px;
}

.crab-chest--hero .crab-chest__label {
  display: none;
}

.crab-chest--shaking .crab-chest__art {
  animation: chestShake 0.42s ease-in-out;
}

.crab-chest__burst {
  position: absolute;
  inset: 8% 10% 28%;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 200, 0.9), rgba(255, 213, 74, 0.35) 38%, transparent 68%);
  opacity: 0;
}

.crab-chest--burst .crab-chest__burst {
  animation: chestBurstFlash 0.55s ease-out both;
}

.crab-chest--opened {
  transform: none;
  border-color: rgba(94, 234, 212, 0.7);
  box-shadow: 0 0 26px rgba(94, 234, 212, 0.32);
}

.crab-chest--opened .crab-chest__art {
  animation: none;
}

.crab-chest--opened .crab-chest__label {
  color: var(--neon-cyan);
}

.crab-chest--dimmed {
  opacity: 0;
  pointer-events: none;
  width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  flex: 0 0 0;
}

@keyframes chestHeroGrow {
  0% {
    transform: scale(1);
  }
  70% {
    transform: scale(1.42);
  }
  100% {
    transform: scale(1.28);
  }
}

@keyframes chestShake {
  0%,
  100% {
    transform: rotate(0) translateX(0);
  }
  20% {
    transform: rotate(-9deg) translateX(-5px);
  }
  40% {
    transform: rotate(9deg) translateX(5px);
  }
  60% {
    transform: rotate(-7deg) translateX(-3px);
  }
  80% {
    transform: rotate(7deg) translateX(3px);
  }
}

@keyframes chestBurstFlash {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  35% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes chestLootPop {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.18);
  }
  58% {
    opacity: 1;
    transform: translateY(-12px) scale(1.14);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.crab-reward__result {
  margin: 14px auto 4px;
  max-width: min(440px, 92vw);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-hot);
}

.crab-reward__result[hidden] {
  display: none;
}

.crab-reward__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.crab-reward__actions .btn {
  max-width: min(280px, 88vw);
}

@media (prefers-reduced-motion: reduce) {
  .crab-chest__art,
  .crab-chest--legendary .crab-chest__art,
  .crab-chest--hero,
  .crab-chest--shaking .crab-chest__art,
  .crab-chest--burst .crab-chest__burst,
  .chest-loot__pip,
  .daily-prize-chest--opening .daily-prize-chest__art,
  .daily-prize-chest--burst .daily-prize-chest__glow {
    animation: none !important;
  }

  .daily-prize-chest--opened {
    transform: none;
    transition: none;
  }
}
