/* Be a Fish Bait — chunky cartoon UI over a bright 3D world. */
:root {
  --navy: #0b1a33;
  --navy-2: #12294a;
  --navy-3: #1b3a63;
  --cream: #fff6e0;
  --sun: #ffd34d;
  --sun-2: #ffb300;
  --coral: #ff6b7a;
  --coral-2: #e63950;
  --sky: #58c8ff;
  --mint: #5ee6a8;
  --purple: #b07bff;
  --ink: #06101e;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(10, 24, 45, 0.82);
  --shadow: 0 18px 50px rgba(3, 10, 24, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%; overflow: hidden;
  background: #0b1a33; color: var(--cream);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}
body { height: 100dvh; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font-family: inherit; cursor: pointer; border: 0; color: inherit; background: none; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
img { -webkit-user-drag: none; user-select: none; }
.hidden { display: none !important; }

/* ------------------------------------------------ boot */
.boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center;
  gap: 12px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #1d4c85 0%, #0b1a33 55%, #050d18 100%);
  transition: opacity .5s ease, visibility .5s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-fish { font-size: 74px; animation: bootBob 1.1s ease-in-out infinite; filter: drop-shadow(0 10px 22px rgba(0,0,0,.4)); }
.boot h1 { margin: 0; font-size: clamp(24px, 5vw, 42px); letter-spacing: 3px; font-weight: 900; color: #fff; text-shadow: 0 4px 0 #0a3763; }
.boot-bar { width: min(260px, 60vw); height: 14px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; border: 2px solid rgba(255,255,255,.18); }
.boot-bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, var(--sun), var(--coral)); animation: bootFill 1.4s ease-in-out infinite; }
.boot p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }
@keyframes bootBob { 0%,100% { transform: translateY(0) rotate(-6deg);} 50% { transform: translateY(-14px) rotate(6deg);} }
@keyframes bootFill { 0% { transform: translateX(-110%); width: 40%; } 50% { width: 70%; } 100% { transform: translateX(260%); width: 40%; } }

/* ------------------------------------------------ HUD */
.hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.hud > * { pointer-events: none; }
.hud button, .hud .pill, .hud .spot-chip, .hud .fish-btn, .hud .interact, .hud .touch-controls, .hud .toasts { pointer-events: auto; }
.hud-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 10px calc(14px + env(safe-area-inset-left));
}
.hud-left, .hud-right { display: flex; align-items: center; gap: 8px; }
.hud-right { margin-left: auto; }
.hud .icon-btn {
  width: 46px; height: 46px; border-radius: 15px; font-size: 20px; line-height: 1;
  background: linear-gradient(180deg, rgba(30, 60, 100, .92), rgba(12, 27, 50, .92));
  border: 2px solid rgba(255, 255, 255, .18);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.12);
  display: grid; place-items: center; transition: transform .12s;
}
.hud .icon-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.28); }
.pill {
  display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px;
  border-radius: 15px; background: var(--glass); border: 2px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-variant-numeric: tabular-nums; box-shadow: 0 4px 0 rgba(0,0,0,.22);
}
.pill .pill-ico { font-size: 19px; }
.pill b { font-size: 17px; letter-spacing: .5px; color: #fff; }
.coin-pill b { color: var(--sun); }
.str-pill b { color: var(--mint); }
.spot-chip {
  position: absolute; left: 50%; transform: translateX(-50%);
  height: 44px; padding: 0 18px; border-radius: 99px;
  background: var(--glass); border: 2px solid var(--line); backdrop-filter: blur(8px);
  font-size: 15px; font-weight: 800; color: #fff; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 0 rgba(0,0,0,.22); max-width: 42vw; overflow: hidden; text-overflow: ellipsis;
}
.spot-chip span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .hud .icon-btn { width: 42px; height: 42px; border-radius: 13px; font-size: 18px; }
  .pill { height: 42px; padding: 0 10px; border-radius: 13px; }
  .pill b { font-size: 15px; }
  .spot-chip { top: 58px; height: 40px; font-size: 14px; max-width: 70vw; }
}
@media (min-width: 561px) {
  .spot-chip { top: calc(12px + env(safe-area-inset-top)); }
}

.location-banner {
  position: absolute; top: 78px; left: 50%; transform: translate(-50%, -14px);
  display: flex; align-items: center; gap: 12px; padding: 10px 18px;
  border-radius: 18px; background: linear-gradient(180deg, rgba(18,41,74,.94), rgba(9,20,38,.94));
  border: 2px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none;
  min-width: 250px; max-width: min(86vw, 420px);
}
.location-banner.show { opacity: 1; transform: translate(-50%, 0); }
.loc-emoji { font-size: 30px; }
.location-banner b { display: block; font-size: 16px; color: #fff; }
.location-banner small { display: block; font-size: 12px; color: rgba(255,255,255,.66); margin-top: 2px; }
@media (max-width: 560px) {
  .location-banner { top: 108px; }
  .toasts { top: calc(100px + env(safe-area-inset-top)); }
}

.streak-pill {
  position: absolute; top: calc(70px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(126, 74, 210, .95), rgba(74, 38, 138, .95));
  border: 2px solid rgba(227, 197, 255, .55); border-radius: 99px;
  padding: 7px 16px; font-size: 12px; font-weight: 900; letter-spacing: 1.2px; color: #fff;
  box-shadow: 0 0 22px rgba(176,123,255,.55); white-space: nowrap;
}
.streak-pill b { color: #ffe89a; }
@media (max-width: 560px) { .streak-pill { top: auto; bottom: calc(190px + env(safe-area-inset-bottom)); } }

/* ------------------------------------------------ FISH button */
.fish-btn {
  position: absolute; right: calc(26px + env(safe-area-inset-right)); bottom: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  width: 132px; height: 96px; border-radius: 26px;
  background: linear-gradient(180deg, #ffe066 0%, #ffbe2e 48%, #ff9d16 100%);
  color: #3b2200; font-weight: 900; letter-spacing: 1.5px; font-size: 20px;
  border: 3px solid #fff3c4;
  box-shadow: 0 8px 0 #b26700, 0 18px 34px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.5);
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  transition: transform .12s;
  z-index: 3;
}
.fish-btn .fish-btn-ico { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 0 rgba(255,255,255,.35)); animation: fishPulse 2.4s ease-in-out infinite; }
.fish-btn small { font-size: 10px; font-weight: 800; opacity: .72; letter-spacing: .4px; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.fish-btn:active { transform: translateY(4px) scale(.98); box-shadow: 0 4px 0 #b26700, 0 8px 18px rgba(0,0,0,.35); }
@keyframes fishPulse { 0%,100% { transform: scale(1) rotate(-2deg);} 50% { transform: scale(1.045) rotate(2deg);} }
@media (max-width: 760px) {
  .fish-btn { right: calc(18px + env(safe-area-inset-right)); bottom: calc(168px + env(safe-area-inset-bottom)); width: 110px; height: 82px; font-size: 17px; border-radius: 22px; }
  .fish-btn .fish-btn-ico { font-size: 25px; }
}

.interact {
  position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%);
  z-index: 3;
}
.interact button {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px;
  border-radius: 16px; background: linear-gradient(180deg, rgba(24,50,86,.96), rgba(10,23,43,.96));
  border: 2px solid rgba(255,255,255,.22); box-shadow: var(--shadow);
  font-weight: 800; font-size: 15px; color: #fff;
}
.interact kbd {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: #fff; color: #0b1a33; font-family: inherit; font-weight: 900; font-size: 15px;
  box-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.interact span { max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .interact { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .interact kbd { display: none; }
  .interact button { padding: 12px 18px; font-size: 14px; }
}

/* ------------------------------------------------ touch controls */
.touch-controls { display: none; }
body.touch .touch-controls { display: block; }
.joy-base {
  position: absolute; left: calc(22px + env(safe-area-inset-left)); bottom: calc(22px + env(safe-area-inset-bottom));
  width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(45, 82, 128, .42), rgba(10, 23, 43, .5));
  border: 2px solid rgba(255,255,255,.22); touch-action: none;
  backdrop-filter: blur(4px);
}
.joy-ring { position: absolute; inset: 26px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.2); }
.joy-knob {
  position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #bcd9ff 45%, #6b9ad6);
  border: 2px solid rgba(255,255,255,.7); box-shadow: 0 6px 14px rgba(0,0,0,.35);
  transition: transform .05s linear;
}
.round-btn {
  position: absolute; right: calc(26px + env(safe-area-inset-right)); bottom: calc(30px + env(safe-area-inset-bottom));
  width: 74px; height: 74px; border-radius: 50%; font-size: 28px; font-weight: 900;
  background: linear-gradient(180deg, rgba(30,64,108,.95), rgba(12,27,50,.95));
  border: 2px solid rgba(255,255,255,.28); box-shadow: 0 6px 0 rgba(0,0,0,.32);
  display: grid; place-items: center; color: #fff; touch-action: none;
}
.round-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.32); }
.jump-btn { right: calc(24px + env(safe-area-inset-right)); }
.control-hint {
  position: absolute; left: calc(16px + env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom));
  font-size: 11px; font-weight: 700; letter-spacing: .4px; color: rgba(255,255,255,.62);
  background: rgba(8, 18, 34, .55); padding: 6px 10px; border-radius: 8px;
  pointer-events: none;
}
body.touch .control-hint { display: none; }
@media (max-width: 900px) { .control-hint { display: none; } }

.toasts {
  position: absolute; top: calc(76px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(92vw, 460px);
  pointer-events: none;
}
.toast {
  padding: 10px 16px; border-radius: 14px; background: rgba(9, 22, 42, .94);
  border: 2px solid rgba(255,255,255,.2); box-shadow: 0 10px 26px rgba(0,0,0,.35);
  font-size: 13.5px; font-weight: 700; line-height: 1.35; text-align: center; color: #fff;
  animation: toastIn .28s cubic-bezier(.2,1.4,.5,1);
  backdrop-filter: blur(8px); max-width: 100%;
}
.toast.gold { border-color: rgba(255,211,77,.7); background: linear-gradient(180deg, rgba(74, 53, 6, .96), rgba(40, 28, 3, .96)); color: #ffe9a8; }
.toast.purple { border-color: rgba(201, 160, 255, .65); background: linear-gradient(180deg, rgba(56, 33, 96, .96), rgba(30, 16, 58, .96)); color: #efdcff; }
.toast.green { border-color: rgba(94, 230, 168, .55); background: linear-gradient(180deg, rgba(10, 58, 44, .96), rgba(6, 33, 26, .96)); color: #c9ffe6; }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.94);} to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

.save-dot {
  position: absolute; left: calc(16px + env(safe-area-inset-left)); top: calc(66px + env(safe-area-inset-top));
  font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: rgba(180, 255, 214, .9); background: rgba(6, 33, 26, .72);
  padding: 5px 9px; border-radius: 7px; opacity: 0; transition: opacity .3s;
}
.save-dot.show { opacity: 1; }
@media (max-width: 560px) { .save-dot { top: auto; bottom: calc(166px + env(safe-area-inset-bottom)); } }

/* ------------------------------------------------ main menu */
.main-menu {
  position: fixed; inset: 0; z-index: 30; overflow-y: auto; overscroll-behavior: contain;
  display: flex; align-items: flex-start; justify-content: center;
  padding: calc(20px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(8, 20, 40, .1), rgba(5, 12, 24, .72) 75%),
    linear-gradient(180deg, rgba(6, 16, 32, .16), rgba(4, 10, 20, .55));
  backdrop-filter: blur(2px);
  transition: opacity .35s, visibility .35s;
}
.main-menu.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.menu-vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(90% 70% at 50% 40%, transparent 40%, rgba(2, 8, 18, .55)); }
.menu-card {
  position: relative; width: min(920px, 100%); margin-block: auto;
  background: linear-gradient(180deg, rgba(16, 38, 68, .92), rgba(7, 17, 33, .95));
  border: 2px solid rgba(255, 255, 255, .2); border-radius: 30px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
  padding: 26px 26px 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.menu-brand { display: flex; align-items: center; gap: 18px; }
.menu-fish { font-size: 58px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); animation: fishPulse 3.4s ease-in-out infinite; }
.menu-hook { margin-left: auto; font-size: 46px; transform: rotate(12deg); opacity: .92; }
.menu-brand h1 {
  margin: 0; font-size: clamp(28px, 5vw, 48px); line-height: .95; font-weight: 900; letter-spacing: 1px;
  color: #fff; text-shadow: 0 3px 0 #0a3f6b, 0 0 24px rgba(88, 200, 255, .35);
}
.menu-tag { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.68); letter-spacing: .3px; }
.menu-stats {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px;
}
.menu-stats span {
  padding: 8px 12px; border-radius: 11px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 700; color: rgba(255,255,255,.86);
}
.menu-stats b { color: #fff; font-variant-numeric: tabular-nums; }
.menu-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.menu-item {
  position: relative; text-align: left; padding: 14px 14px 12px;
  border-radius: 16px; background: linear-gradient(180deg, rgba(38, 74, 118, .75), rgba(16, 36, 63, .85));
  border: 1.5px solid rgba(255,255,255,.14);
  box-shadow: 0 4px 0 rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 2px; min-height: 88px;
  transition: transform .12s, background .2s, border-color .2s;
}
.menu-item span { font-size: 24px; line-height: 1; }
.menu-item b { font-size: 14px; letter-spacing: .7px; color: #fff; font-weight: 900; }
.menu-item small { font-size: 10.5px; color: rgba(255,255,255,.58); font-weight: 600; letter-spacing: .2px; }
.menu-item:hover { background: linear-gradient(180deg, rgba(52, 98, 150, .85), rgba(22, 47, 82, .9)); border-color: rgba(255,255,255,.28); transform: translateY(-2px); }
.menu-item:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.28); }
.menu-item.play {
  grid-column: span 2; grid-row: span 2; justify-content: flex-end;
  background: linear-gradient(165deg, #ffdf6b 0%, #ffb62c 45%, #ff8a3d 100%);
  border-color: #fff0bd; color: #4a2a00;
  box-shadow: 0 7px 0 #b46500, 0 18px 40px rgba(255, 171, 30, .22), inset 0 2px 0 rgba(255,255,255,.6);
  min-height: 186px; padding: 18px;
}
.menu-item.play span { font-size: 30px; }
.menu-item.play b { font-size: clamp(26px, 4vw, 40px); color: #4a2a00; letter-spacing: 1.5px; text-shadow: 0 2px 0 rgba(255,255,255,.4); }
.menu-item.play small { font-size: 12px; color: rgba(74, 42, 0, .7); font-weight: 700; }
.menu-item.play:hover { background: linear-gradient(165deg, #ffe98f 0%, #ffc44a 45%, #ff9a52 100%); }
.menu-foot {
  margin-top: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; color: rgba(255,255,255,.5);
}
@media (max-width: 760px) {
  .menu-card { padding: 18px 16px 14px; border-radius: 24px; }
  .menu-brand { gap: 12px; }
  .menu-fish { font-size: 40px; }
  .menu-hook { font-size: 32px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .menu-item { min-height: 76px; padding: 11px 12px; border-radius: 14px; }
  .menu-item span { font-size: 20px; }
  .menu-item b { font-size: 12.5px; }
  .menu-item small { font-size: 9.5px; }
  .menu-item.play { min-height: 152px; }
  .menu-item.play b { font-size: 28px; }
  .menu-stats span { font-size: 12px; padding: 6px 10px; }
  .menu-tag { font-size: 11.5px; }
}
@media (max-height: 700px) {
  .menu-item { min-height: 66px; padding: 9px 11px; }
  .menu-item.play { min-height: 132px; }
  .menu-brand h1 { font-size: clamp(24px, 4vw, 34px); }
  .menu-stats { margin: 10px 0 10px; }
}

/* ------------------------------------------------ panel sheet */
.panel-back {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(3, 9, 19, .6); backdrop-filter: blur(6px);
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.panel {
  width: min(760px, 100%); max-height: min(86vh, 820px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(17, 38, 67, .98), rgba(7, 17, 32, .99));
  border: 2px solid rgba(255,255,255,.18); border-radius: 26px; box-shadow: 0 30px 90px rgba(0,0,0,.6);
  overflow: hidden; animation: panelIn .26s cubic-bezier(.2,1.2,.4,1);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(.98);} to { opacity: 1; transform: none; } }
.panel-head {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.panel-icon { font-size: 32px; }
.panel-head h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: .6px; color: #fff; }
.panel-head p { margin: 3px 0 0; font-size: 12px; color: rgba(255,255,255,.58); font-weight: 600; }
.close-btn {
  margin-left: auto; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.16);
  color: #fff; font-size: 17px; font-weight: 900; display: grid; place-items: center;
}
.close-btn:hover { background: rgba(255,255,255,.15); }
.panel-body { padding: 16px 20px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.panel-foot {
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.panel-foot:empty { display: none; }
@media (max-width: 640px) {
  .panel-back { padding: 0; align-items: flex-end; }
  .panel { max-height: 92dvh; width: 100%; border-radius: 24px 24px 0 0; border-bottom: 0; }
  .panel-head { padding: 16px 16px 12px; }
  .panel-head h2 { font-size: 19px; }
  .panel-head p { font-size: 11px; }
  .panel-body { padding: 14px 14px 18px; }
  .panel-foot { padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------ shared buttons */
.gold-btn, .ghost-btn, .chip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 16px; border-radius: 12px;
  font-size: 13px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase;
  transition: transform .1s, filter .2s;
}
.gold-btn {
  background: linear-gradient(180deg, #ffe066, #ffb300); color: #402400;
  border: 2px solid #fff3c4; box-shadow: 0 4px 0 #a96500;
}
.gold-btn:hover { filter: brightness(1.06); }
.gold-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #a96500; }
.gold-btn:disabled, .ghost-btn:disabled {
  cursor: default; background: rgba(255,255,255,.08); color: rgba(255,255,255,.58);
  border: 2px solid rgba(255,255,255,.16); box-shadow: none; filter: none;
}
.ghost-btn {
  background: rgba(255,255,255,.07); color: #fff; border: 1.5px solid rgba(255,255,255,.2);
}
.ghost-btn:hover { background: rgba(255,255,255,.13); }
.chip-btn {
  min-height: 40px; padding: 0 13px; border-radius: 11px; text-transform: none; letter-spacing: .2px;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); color: #fff;
  font-size: 12.5px; backdrop-filter: blur(6px);
}
.chip-btn.gold { background: linear-gradient(180deg, #ffe066, #ffb300); color: #3f2400; border-color: #fff3c4; font-weight: 900; }
.chip-btn.blue { background: linear-gradient(180deg, #6fd2ff, #2b9be0); border-color: #bdeaff; color: #04263c; font-weight: 900; }
.chip-btn.red { background: linear-gradient(180deg, #ff8a95, #e63950); border-color: #ffc4ca; color: #3b0010; font-weight: 900; }

/* ------------------------------------------------ shop / inventory cards */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.shop-item {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 13px; border-radius: 16px; background: rgba(255,255,255,.055);
  border: 1.5px solid rgba(255,255,255,.12);
}
.shop-item.owned { border-color: rgba(94, 230, 168, .4); background: rgba(24, 93, 71, .18); }
.shop-item.equipped { border-color: rgba(255, 211, 77, .7); box-shadow: 0 0 0 2px rgba(255,211,77,.18) inset; }
.shop-item-top { display: flex; align-items: center; gap: 10px; }
.shop-emoji { font-size: 26px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.shop-name { font-size: 14px; font-weight: 900; color: #fff; line-height: 1.15; }
.shop-sub { font-size: 10.5px; color: rgba(255,255,255,.55); font-weight: 600; }
.shop-stats { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.stat-line { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; color: rgba(255,255,255,.7); }
.stat-line .sname { width: 46px; letter-spacing: .4px; text-transform: uppercase; font-size: 9px; color: rgba(255,255,255,.48); }
.stat-track { flex: 1; height: 7px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.stat-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #58c8ff, #5ee6a8); }
.stat-track.gold i { background: linear-gradient(90deg, #ffd34d, #ff8a3d); }
.stat-track.purple i { background: linear-gradient(90deg, #b07bff, #ff6bd6); }
.shop-buy { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.price-tag { font-size: 13px; font-weight: 900; color: var(--sun); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 4px; }
.price-tag.cant { color: #ff9aa4; }
.shop-buy button { flex: 1; min-height: 38px; border-radius: 10px; font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
.badge-own { position: absolute; top: 10px; right: 10px; font-size: 9px; font-weight: 900; letter-spacing: .7px; color: #073f2c; background: #5ee6a8; padding: 3px 7px; border-radius: 6px; }
.badge-eq { position: absolute; top: 10px; right: 10px; font-size: 9px; font-weight: 900; letter-spacing: .7px; color: #402400; background: var(--sun); padding: 3px 7px; border-radius: 6px; }

.fish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 9px; }
.fish-row {
  display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 13px;
  background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.11);
}
.fish-row img { width: 52px; height: 52px; border-radius: 10px; flex: 0 0 auto; background: rgba(0,0,0,.18); }
.fish-meta { min-width: 0; flex: 1; }
.fish-meta b { display: block; font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fish-meta span { font-size: 10px; color: rgba(255,255,255,.55); font-weight: 700; }
.fish-meta .mut { color: #ffd76b; }
.fish-actions { display: flex; flex-direction: column; gap: 5px; flex: 0 0 auto; }
.fish-actions button {
  min-height: 26px; padding: 0 9px; border-radius: 7px; font-size: 9.5px; font-weight: 900;
  letter-spacing: .4px; text-transform: uppercase;
  background: linear-gradient(180deg, #ffe066, #ffb300); color: #402400; border: 1px solid #ffeaa6;
}
.fish-actions button.blue { background: linear-gradient(180deg, #6fd2ff, #2b9be0); color: #04263c; border-color: #bdeaff; }
.fish-actions button.ghost { background: rgba(255,255,255,.08); color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.16); }
.fish-actions button:disabled { opacity: .4; cursor: default; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 9px; font-size: 12px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.section-title:first-child { margin-top: 0; }
.section-title::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.empty-note { padding: 26px 16px; text-align: center; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.58); line-height: 1.6; }

/* index */
.index-filters { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.index-filters::-webkit-scrollbar { display: none; }
.index-chip {
  flex: 0 0 auto; padding: 7px 11px; border-radius: 99px; font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.14); color: rgba(255,255,255,.72);
}
.index-chip.active { background: var(--sun); color: #3f2400; border-color: #fff3c4; }
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.index-cell {
  padding: 8px; border-radius: 12px; background: rgba(255,255,255,.045);
  border: 1.5px solid rgba(255,255,255,.1); text-align: center; position: relative;
}
.index-cell img { width: 100%; aspect-ratio: 1; border-radius: 9px; background: rgba(0,0,0,.16); }
.index-cell img.unknown { filter: brightness(0) opacity(.45); background: rgba(255,255,255,.05); }
.index-cell b { display: block; font-size: 10.5px; color: #fff; margin-top: 5px; line-height: 1.2; }
.index-cell small { font-size: 9px; color: rgba(255,255,255,.45); font-weight: 700; }
.index-cell .cnt { position: absolute; top: 4px; right: 7px; font-size: 9px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px #000; }
.index-cell.boss { border-color: rgba(255, 211, 77, .42); background: rgba(255, 190, 46, .09); }
.spot-progress { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.prog-pill { font-size: 11px; font-weight: 800; padding: 6px 10px; border-radius: 9px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.75); }
.prog-pill b { color: var(--sun); }

/* settings */
.setting-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.setting-row:last-child { border-bottom: 0; }
.setting-row .s-ico { font-size: 22px; width: 32px; text-align: center; }
.setting-row .s-txt b { display: block; font-size: 13.5px; color: #fff; }
.setting-row .s-txt small { display: block; font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; line-height: 1.4; }
.setting-row .s-ctl { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.switch { width: 52px; height: 30px; border-radius: 99px; background: rgba(255,255,255,.16); position: relative; transition: background .2s; border: 1.5px solid rgba(255,255,255,.2); }
.switch::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.switch.on { background: #2fae7a; border-color: #8bffce; }
.switch.on::after { transform: translateX(21px); }
.name-input {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 11px;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.2);
  color: #fff; font-family: inherit; font-size: 14px; font-weight: 700;
}
.name-input::placeholder { color: rgba(255,255,255,.4); }

/* map */
.map-wrap { display: flex; flex-direction: column; gap: 10px; }
.map-strip {
  position: relative; height: 72px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(90deg, #1a7fb8, #0e4a75); border: 1.5px solid rgba(255,255,255,.15);
  flex: 0 0 auto;
}
.map-strip .island { position: absolute; left: 8px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(180deg, #8fe07a, #e5d293); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.map-strip .pierline { position: absolute; left: 44px; right: 14px; top: 35px; height: 4px; border-radius: 2px; background: #c08a52; }
.map-strip .mdot { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); border: 1.5px solid rgba(255,255,255,.8); }
.map-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 8px; }
.map-spot {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.1);
}
.map-spot.locked { opacity: .78; }
.map-spot.here { border-color: var(--sun); background: rgba(255,211,77,.09); }
.map-spot .ms-emoji { font-size: 20px; }
.map-spot .ms-txt { flex: 1; min-width: 0; }
.map-spot .ms-txt b { display: block; font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-spot .ms-txt small { display: block; font-size: 9.5px; color: rgba(255,255,255,.5); font-weight: 700; }
.map-spot button { min-height: 30px; padding: 0 10px; border-radius: 8px; font-size: 9.5px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; background: linear-gradient(180deg, #ffe066, #ffb300); color: #402400; }
.map-spot button:disabled { background: rgba(255,255,255,.1); color: rgba(255,255,255,.62); }
.dev-note { margin-top: 6px; font-size: 11px; color: rgba(207,172,255,.8); font-weight: 700; text-align: center; padding: 8px; border-radius: 9px; border: 1px dashed rgba(176,123,255,.4); }

/* ------------------------------------------------ fishing */
.fishing {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: 16px; pointer-events: auto;
}
.fishing-vignette { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 45%, rgba(4,14,28,.15), rgba(2,7,16,.76)); backdrop-filter: blur(1.5px); }
.fish-card {
  position: relative; width: min(430px, 100%); max-height: 92dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 20px 18px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 42, 72, .97), rgba(7, 17, 32, .98));
  border: 2px solid rgba(255,255,255,.2); box-shadow: 0 30px 80px rgba(0,0,0,.65);
  animation: panelIn .3s cubic-bezier(.2,1.2,.4,1);
}
.fish-card-top { width: 100%; display: flex; align-items: center; gap: 8px; }
.fish-spot { font-size: 14px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 7px; min-width: 0; }
.fish-spot b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fish-spot span { font-size: 18px; }
.boss-badge { font-size: 10px; font-weight: 900; letter-spacing: 1px; padding: 4px 8px; border-radius: 6px; background: linear-gradient(180deg,#ffe066,#ff9d16); color: #3c2000; }
.fish-quit { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.85); font-size: 14px; font-weight: 900; flex: 0 0 auto; }
.boss-bar { width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; font-weight: 800; color: #ffd2d6; }
.boss-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.boss-track { flex: 1; height: 12px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; border: 1px solid rgba(255,100,120,.25); }
.boss-track i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #ff4d6a, #ff9d16); transition: width .5s cubic-bezier(.2,1,.3,1); }
.boss-bar b { font-variant-numeric: tabular-nums; color: #ffd2d6; }
.bar-stage { display: flex; align-items: stretch; gap: 10px; margin: 16px 0 10px; height: min(42dvh, 360px); }
.rainbow-bar {
  position: relative; width: 56px; border-radius: 999px; overflow: visible;
  border: 3px solid rgba(255,255,255,.9); box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.45), inset 0 0 20px rgba(0,0,0,.3);
  background: #222;
}
.bands { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 999px; overflow: hidden; }
.band { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; }
.band-red { background: linear-gradient(180deg, #ff3b4f, #e0203a); }
.band-orange { background: linear-gradient(180deg, #ff8a2a, #f06a12); }
.band-yellow { background: linear-gradient(180deg, #ffd83d, #edc016); }
.band-green { background: linear-gradient(180deg, #57d96b, #2eb54c); }
.band-blue { background: linear-gradient(180deg, #3fa9ff, #1d7fe0); }
.band-purple { background: linear-gradient(180deg, #b06bff, #7c3aed); }
.band.purple-zone::after {
  content: ""; position: absolute; inset: 3px 4px; border-radius: 6px;
  border: 1.5px dashed rgba(255,255,255,.55); animation: purpleGlow 1.2s ease-in-out infinite;
}
@keyframes purpleGlow { 0%,100% { box-shadow: 0 0 4px rgba(255,255,255,.2); } 50% { box-shadow: 0 0 14px rgba(255,255,255,.55); } }
.bar-indicator {
  position: absolute; left: -6px; right: -6px; height: 18px; top: 0;
  transform: translateY(-50%); z-index: 2; pointer-events: none;
  transition: none; will-change: top;
}
.bar-indicator i {
  position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px;
  background: #fff; border-radius: 3px;
  box-shadow: 0 0 0 2px rgba(8,20,38,.6), 0 0 12px #fff, 0 0 24px rgba(255,255,255,.8);
}
.bar-indicator::before, .bar-indicator::after {
  content: ""; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%);
  filter: drop-shadow(0 0 6px rgba(255,255,255,.9));
}
.bar-indicator::before { left: -12px; }
.bar-indicator::after { right: -12px; transform: scaleX(-1); }
.bar-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .12s; }
.bar-flash.on { opacity: .75; }
.bar-marks { display: flex; flex-direction: column; justify-content: space-between; padding: 1px 0; width: 130px; }
.bar-mark { display: flex; flex-direction: column; gap: 1px; font-size: 10px; font-weight: 800; color: rgba(255,255,255,.7); line-height: 1.1; }
.bar-mark b { font-size: 11.5px; letter-spacing: .5px; color: #fff; }
.bar-mark small { font-size: 9px; color: rgba(255,255,255,.58); font-weight: 700; }
.fish-prompt { min-height: 20px; font-size: 12.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.65); text-align: center; }
.fish-result {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.7);
  display: flex; flex-direction: column; align-items: center; gap: 3px; opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .3s cubic-bezier(.2,1.6,.4,1); text-align: center; width: 100%;
}
.fish-result.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.fish-result b { font-size: clamp(34px, 8vw, 52px); font-weight: 900; letter-spacing: 1px; line-height: 1; text-shadow: 0 4px 0 rgba(0,0,0,.4), 0 0 30px currentColor; }
.fish-result span { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.8); letter-spacing: .5px; }
.fish-result.perfect b { color: #d9b3ff; }
.fish-result.good b { color: #7ed0ff; }
.fish-result.okay b { color: #9dffb0; }
.fish-result.bad b { color: #ff7d89; }
#fishing .fish-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.stop-btn {
  width: 100%; height: 62px; border-radius: 18px; font-size: 24px; font-weight: 900; letter-spacing: 3px;
  background: linear-gradient(180deg, #ffe066, #ffb300); color: #3b2200; border: 3px solid #fff3c4;
  box-shadow: 0 6px 0 #a96500, 0 14px 30px rgba(0,0,0,.3); transition: transform .08s, box-shadow .08s;
}
.stop-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #a96500; }
.stop-btn:disabled { opacity: .45; filter: grayscale(.5); }
.cast-again {
  width: 100%; height: 54px; border-radius: 16px; font-size: 17px; font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(180deg, #6fd2ff, #2b9be0); color: #04263c; border: 2px solid #bdeaff;
  box-shadow: 0 5px 0 #0e5c8d;
}
.round-dots { display: flex; gap: 6px; margin-top: 12px; height: 8px; }
.round-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
.round-dots i.used { background: #ff5b6e; }
.round-dots i.live { background: var(--sun); box-shadow: 0 0 8px var(--sun); }
@media (max-width: 460px) {
  .fish-card { padding: 13px 13px 15px; border-radius: 22px; }
  .bar-stage { height: min(38dvh, 290px); gap: 7px; }
  .rainbow-bar { width: 46px; }
  .bar-marks { width: 102px; }
  .bar-mark b { font-size: 10.5px; }
  .bar-mark small { display: none; }
  .stop-btn { height: 56px; font-size: 21px; }
}

/* ------------------------------------------------ aquarium */
.aquarium { position: fixed; inset: 0; z-index: 45; pointer-events: none; display: flex; flex-direction: column; }
.aquarium > * { pointer-events: auto; }
.aq-head {
  display: flex; align-items: center; gap: 9px;
  padding: calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 10px calc(14px + env(safe-area-inset-left));
}
.aq-title {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 13px; font-weight: 900; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.aq-title b { font-size: 11px; color: var(--sky); letter-spacing: .5px; }
.aq-bar {
  margin-top: auto; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  padding: 12px calc(14px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  background: linear-gradient(180deg, transparent, rgba(2,10,22,.6));
}
.aq-btn {
  min-height: 48px; padding: 0 16px; border-radius: 14px; font-size: 12px; font-weight: 900; letter-spacing: .6px;
  background: linear-gradient(180deg, rgba(30,64,108,.96), rgba(12,27,50,.96));
  border: 2px solid rgba(255,255,255,.22); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.3);
  backdrop-filter: blur(6px);
}
.aq-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.aq-empty {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; font-size: 15px; font-weight: 700; color: rgba(255,255,255,.55);
  line-height: 1.7; text-shadow: 0 2px 10px rgba(0,0,0,.6); pointer-events: none; width: 80%;
}
.aq-mode {
  position: absolute; top: 74px; left: 50%; transform: translateX(-50%);
  background: rgba(18, 41, 74, .95); border: 2px solid rgba(255,211,77,.5); border-radius: 22px;
  padding: 8px 16px; font-size: 12px; font-weight: 800; color: #ffe9a8;
  text-align: center; line-height: 1.35; max-width: calc(100vw - 20px); width: max-content;
  box-shadow: var(--shadow);
}
.aq-picker {
  position: absolute; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(880px, calc(100vw - 24px)); max-height: 54dvh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(16,38,68,.98), rgba(7,17,32,.99));
  border: 2px solid rgba(255,255,255,.2); border-radius: 22px; box-shadow: var(--shadow);
  overflow: hidden;
}
.aq-picker-head { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13px; font-weight: 900; letter-spacing: .6px; }
.aq-picker-head button { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; font-weight: 900; }
.aq-picker-body { padding: 12px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.aq-picker .fish-row { cursor: pointer; }
.aq-picker .fish-meta b { white-space: normal; overflow: visible; line-height: 1.2; }
.aq-picker .fish-row:hover { background: rgba(255,255,255,.11); }
.aq-picker .fish-row.sel { border-color: var(--sun); background: rgba(255,211,77,.12); }
@media (max-width: 560px) {
  .aq-head { flex-wrap: wrap; }
  .aq-title { order: -1; flex: 1 0 100%; flex-direction: row; justify-content: center; gap: 8px; padding-bottom: 4px; }
  .aq-bar { gap: 6px; }
  .aq-btn { min-height: 44px; padding: 0 11px; font-size: 10.5px; }
  .aq-mode { top: 96px; }
  .aq-picker { bottom: calc(78px + env(safe-area-inset-bottom)); max-height: 48dvh; }
}

/* ------------------------------------------------ avatar editor */
.avatar-editor { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; pointer-events: none; }
.avatar-editor > * { pointer-events: auto; }
.ed-head {
  display: flex; align-items: center; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 10px calc(14px + env(safe-area-inset-left));
}
#edName {
  flex: 1; max-width: 300px; margin: 0 auto; height: 42px; padding: 0 14px; border-radius: 12px;
  background: rgba(9, 22, 42, .82); border: 1.5px solid rgba(255,255,255,.24); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 800; text-align: center; backdrop-filter: blur(6px);
}
.ed-dock {
  margin-top: auto; display: flex; flex-direction: column; gap: 10px;
  padding: 14px calc(14px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  background: linear-gradient(180deg, transparent, rgba(3,11,23,.82) 30%);
}
.ed-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; justify-content: flex-start; }
.ed-tabs::-webkit-scrollbar { display: none; }
.ed-tab {
  flex: 0 0 auto; min-height: 38px; padding: 0 12px; border-radius: 10px; font-size: 11px; font-weight: 900; letter-spacing: .4px;
  background: rgba(9, 22, 42, .8); border: 1.5px solid rgba(255,255,255,.18); color: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
}
.ed-tab.active { background: linear-gradient(180deg, #ffe066, #ffb300); color: #402400; border-color: #fff3c4; }
.ed-options {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 6px; min-height: 76px; align-items: center;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.ed-opt {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 14px; font-size: 26px;
  background: rgba(9, 22, 42, .85); border: 2px solid rgba(255,255,255,.16); color: #fff;
  display: grid; place-items: center; position: relative; backdrop-filter: blur(6px);
}
.ed-opt.active { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255,211,77,.25); }
.ed-opt.swatch { font-size: 0; }
.ed-opt.swatch i { width: 40px; height: 40px; border-radius: 10px; display: block; border: 2px solid rgba(255,255,255,.35); }
.ed-opt small { position: absolute; bottom: 3px; left: 0; right: 0; font-size: 7.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: rgba(255,255,255,.6); }
#edRandom { align-self: center; }
@media (min-width: 900px) {
  .ed-tabs, .ed-options { justify-content: center; }
}
@media (max-width: 560px) {
  .ed-dock { padding: 10px 10px calc(12px + env(safe-area-inset-bottom)); gap: 6px; }
  .ed-options { min-height: 68px; }
  .ed-opt { width: 56px; height: 56px; font-size: 22px; border-radius: 12px; }
  .ed-opt.swatch i { width: 34px; height: 34px; }
  .ed-opt small { font-size: 7px; }
  .ed-tab { min-height: 34px; padding: 0 10px; font-size: 10px; }
}

/* ------------------------------------------------ confirm */
.confirm-back {
  position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(2, 8, 17, .72); backdrop-filter: blur(5px); animation: fadeIn .15s;
}
.confirm-card {
  width: min(380px, 100%); padding: 22px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, rgba(21, 46, 80, .99), rgba(8, 19, 35, .99));
  border: 2px solid rgba(255,255,255,.2); box-shadow: var(--shadow);
  animation: panelIn .22s cubic-bezier(.2,1.2,.4,1);
}
.confirm-icon { font-size: 42px; margin-bottom: 6px; }
.confirm-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 900; color: #fff; }
.confirm-card p { margin: 0 0 18px; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.62); font-weight: 600; }
.confirm-actions { display: flex; gap: 9px; }
.confirm-actions button { flex: 1; min-height: 46px; }

/* ------------------------------------------------ big banner */
.big-banner {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; pointer-events: none;
  background: radial-gradient(70% 50% at 50% 50%, rgba(60, 8, 20, .52), transparent 70%);
  animation: bigIn .4s ease both;
}
.big-banner.out { animation: bigOut .5s ease forwards; }
.big-sub { font-size: 13px; font-weight: 900; letter-spacing: 5px; color: #ffd2a1; text-transform: uppercase; text-shadow: 0 2px 8px #000; }
.big-title {
  font-size: clamp(36px, 9vw, 84px); font-weight: 900; letter-spacing: 2px; line-height: .95;
  color: #fff; text-align: center; padding: 0 16px;
  text-shadow: 0 5px 0 #7a0d22, 0 0 42px rgba(255, 60, 90, .8);
}
.big-desc { font-size: 14px; font-weight: 800; color: #ffdf9e; letter-spacing: 1px; text-align: center; padding: 0 20px; }
@keyframes bigIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
@keyframes bigOut { to { opacity: 0; transform: scale(.96); } }

/* ------------------------------------------------ misc */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------ catch reveal */
.catch-reveal {
  position: fixed; inset: 0; z-index: 65; display: flex; align-items: center; justify-content: center;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
  background: radial-gradient(85% 80% at 50% 45%, rgba(4, 16, 32, .5), rgba(2, 8, 18, .82));
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  animation: catchFade .3s ease both;
}
.catch-card {
  --rc: #ffd34d;
  position: relative; width: min(420px, calc(100vw - 26px)); overflow: hidden;
  padding: 20px 20px 18px; border-radius: 28px; text-align: center;
  background: linear-gradient(180deg, rgba(20, 46, 84, .99), rgba(7, 17, 32, .995));
  border: 3px solid var(--rc);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .07), 0 26px 70px rgba(0, 0, 0, .6);
  animation: catchPop .5s cubic-bezier(.18, 1.35, .4, 1) both;
}
.catch-card::before {
  content: ""; position: absolute; inset: -60% -20% auto; height: 75%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 34%, transparent), transparent);
  pointer-events: none;
}
.catch-kicker {
  position: relative; font-size: 10.5px; font-weight: 900; letter-spacing: 2px;
  color: var(--rc); text-transform: uppercase;
}
.catch-figure { position: relative; width: 186px; height: 186px; margin: 4px auto 0; display: grid; place-items: center; }
.catch-figure img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .5));
  animation: catchFloat 2.6s ease-in-out infinite;
}
.catch-rays {
  position: absolute; inset: -26px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .16) 0deg 7deg, transparent 7deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 24%, transparent 70%);
  mask-image: radial-gradient(circle, #000 24%, transparent 70%);
  animation: catchSpin 18s linear infinite;
}
.catch-name { position: relative; font-size: 25px; font-weight: 900; letter-spacing: .2px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.catch-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 7px 0 3px; }
.catch-tag {
  font-size: 10px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 99px; border: 1.5px solid currentColor;
  background: rgba(255, 255, 255, .055);
}
.catch-tag.mut { color: #e6c8ff; border-color: rgba(176, 123, 255, .8); background: rgba(176, 123, 255, .16); }
.catch-value { position: relative; font-size: 21px; font-weight: 900; color: var(--sun); margin: 2px 0 13px; font-variant-numeric: tabular-nums; }
.catch-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.catch-tank {
  min-height: 46px; padding: 0 17px; border-radius: 14px; font-size: 12.5px; font-weight: 900; letter-spacing: .5px;
  color: #062033; background: linear-gradient(180deg, #c4f4ff, #62ccf5);
  border: 2px solid #ecfeff; box-shadow: 0 5px 0 #2c8fb5;
}
.catch-tank:active { transform: translateY(2px); box-shadow: 0 3px 0 #2c8fb5; }
.catch-card.boss {
  border-color: #ffe14d;
  box-shadow: 0 0 0 5px rgba(255, 225, 77, .16), 0 0 80px rgba(255, 176, 40, .38), 0 26px 70px rgba(0, 0, 0, .62);
}
.catch-card.boss .catch-name { color: #ffe89a; text-shadow: 0 2px 0 #7a4a00, 0 0 22px rgba(255, 210, 60, .6); }
@keyframes catchFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes catchPop { 0% { transform: scale(.7) translateY(26px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes catchFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes catchSpin { to { transform: rotate(360deg); } }
@media (max-width: 400px) {
  .catch-figure { width: 150px; height: 150px; }
  .catch-name { font-size: 21px; }
  .catch-card { padding: 16px 14px 15px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .catch-card, .catch-figure img, .catch-rays { animation: none !important; }
}

/* ================================================= ARCHIPELAGO / BOATS / INCOME */
/* keep the bottom-right clear of the platform's own floating buttons */
.fish-btn { right: calc(100px + env(safe-area-inset-right)); }
.round-btn { right: calc(96px + env(safe-area-inset-right)); }
.jump-btn { right: calc(96px + env(safe-area-inset-right)); }

.inc-pill { padding: 0 11px; }
.inc-pill b { color: #8fe6ff; font-size: 15px; }
.inc-pill .pill-ico { font-size: 17px; }

.boat-btn {
  position: absolute; right: calc(100px + env(safe-area-inset-right)); bottom: 228px;
  width: 132px; min-height: 58px; padding: 8px 12px; border-radius: 18px;
  display: grid; grid-template-columns: auto auto; grid-template-areas: "ico lbl" "ico name";
  column-gap: 9px; align-items: center; text-align: left;
  background: linear-gradient(180deg, rgba(34, 84, 128, .96), rgba(10, 38, 66, .96));
  border: 2px solid rgba(143, 230, 255, .5); color: #e8fbff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .3), 0 12px 26px rgba(0, 0, 0, .3);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  transition: transform .12s;
  z-index: 3;
}
.boat-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.boat-btn-ico { grid-area: ico; font-size: 23px; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,.3)); }
.boat-btn b { grid-area: lbl; font-size: 13px; font-weight: 900; letter-spacing: 1.1px; }
.boat-btn small { grid-area: name; font-size: 9.5px; font-weight: 800; opacity: .72; letter-spacing: .3px; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boat-btn.on {
  background: linear-gradient(180deg, #ffe066, #ffb300); color: #3b2200;
  border-color: #fff3c4; box-shadow: 0 5px 0 #b26700, 0 12px 26px rgba(0,0,0,.3);
}
.boat-btn.on small { opacity: .8; }

.swim-bar {
  position: absolute; left: 50%; bottom: 132px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px; width: min(310px, 78vw);
  padding: 9px 13px; border-radius: 99px;
  background: rgba(6, 24, 42, .86); border: 2px solid rgba(143, 230, 255, .45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); backdrop-filter: blur(8px);
  z-index: 3;
}
.swim-ico { font-size: 16px; }
.swim-track { flex: 1; height: 10px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; }
.swim-track i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #63e6ff, #a8ffe0); transition: width .12s linear; }
.swim-track i.low { background: linear-gradient(90deg, #ff8a5c, #ff4d6d); }
.swim-bar b { font-size: 10.5px; font-weight: 900; color: #dffaff; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.swim-bar.low-count { border-color: rgba(255, 120, 120, .8); }

/* ---- boats panel ---- */
.shop-item.locked { opacity: .86; }
.rod-req { font-size: 10px; font-weight: 900; color: #ff9d8a; white-space: nowrap; }
.rod-req.ok { color: var(--mint); }
.lock-note { font-size: 10.5px; font-weight: 900; color: #ffb0a0; letter-spacing: .2px; }
.income-note {
  font-size: 11.5px; font-weight: 700; line-height: 1.5; color: #c9f2ff;
  background: rgba(70, 180, 230, .1); border: 1.5px solid rgba(120, 210, 255, .28);
  border-radius: 12px; padding: 9px 12px; margin-bottom: 10px;
}
.income-note b { color: var(--sun); }
.fish-meta .inc { color: #8fe6ff; }

/* ---- archipelago chart ---- */
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; font-weight: 800; color: rgba(224, 246, 255, .82); }
.chart-legend span { padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .12); }
.chart {
  width: 100%; height: clamp(220px, 46vh, 360px); display: block;
  background: radial-gradient(circle at 50% 50%, #0d3550 0%, #071e30 62%, #04131f 100%);
  border-radius: 18px; border: 1.5px solid rgba(120, 210, 255, .26);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .45);
}
.chart-ring { fill: none; stroke: rgba(143, 230, 255, .16); stroke-width: 3; stroke-dasharray: 10 16; }
.chart-isl circle { transition: opacity .2s; }
.chart-isl.locked { opacity: .5; }
.chart-isl.here circle:not(.chart-halo) { stroke: var(--sun); stroke-width: 5; }
.chart-halo { fill: none; stroke: var(--sun); stroke-width: 4; stroke-dasharray: 10 10; opacity: .85; transform-box: fill-box; transform-origin: center; animation: chartSpin 10s linear infinite; }
.chart-you circle { fill: var(--sun); stroke: #fff; stroke-width: 3; }
.chart-you .chart-you-ping { fill: none; stroke: #fff; stroke-width: 2.5; opacity: .8; transform-box: fill-box; transform-origin: center; animation: chartPing 2.4s ease-out infinite; }
.chart-key { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; color: rgba(255, 255, 255, .7); }
.chart-key .key-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chart-key .key-dot.open { background: #5ee6a8; }
.chart-key .key-dot.locked { background: #46546a; margin-left: 10px; }
.map-status { font-size: 10px; font-weight: 900; letter-spacing: .6px; color: rgba(255, 255, 255, .68); white-space: nowrap; text-align: right; }
.map-spot.here .map-status { color: var(--sun); }
.sail-note { margin-top: 0; color: rgba(160, 220, 255, .82); border-color: rgba(120, 210, 255, .3); }
@keyframes chartSpin { to { transform: rotate(360deg); } }
@keyframes chartPing { 0% { transform: scale(1); opacity: .85; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---- aquarium coin labels ---- */
.aq-labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.aq-labels * { pointer-events: none; }
.aq-inc {
  position: absolute; left: 0; top: 0; padding: 3px 8px; border-radius: 99px;
  background: rgba(4, 20, 36, .86); border: 1.5px solid rgba(143, 230, 255, .6);
  color: #c8f4ff; font-size: 11px; font-weight: 900; letter-spacing: .3px;
  white-space: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
}
.aq-rate { color: var(--sun) !important; font-size: 12px !important; }

@media (max-width: 760px) {
  .fish-btn { right: calc(92px + env(safe-area-inset-right)); bottom: calc(166px + env(safe-area-inset-bottom)); }
  .boat-btn {
    right: calc(92px + env(safe-area-inset-right)); bottom: calc(260px + env(safe-area-inset-bottom));
    width: 110px; min-height: 54px; padding: 7px 10px; border-radius: 16px;
  }
  .boat-btn b { font-size: 12px; }
  .boat-btn small { max-width: 74px; font-size: 9px; }
  .boat-btn-ico { font-size: 19px; }
  .round-btn, .jump-btn { right: calc(86px + env(safe-area-inset-right)); bottom: calc(26px + env(safe-area-inset-bottom)); width: 64px; height: 64px; font-size: 24px; }
  .swim-bar { bottom: 104px; width: min(280px, 74vw); }
}
@media (max-width: 560px) {
  .inc-pill { padding: 0 9px; }
  .inc-pill b { font-size: 13px; }
  .inc-pill .pill-ico { font-size: 15px; }
  .hud-left .str-pill { display: none; }
  .aq-inc { font-size: 10px; padding: 2px 7px; }
}
@media (max-width: 420px) {
  .boat-btn { bottom: calc(260px + env(safe-area-inset-bottom)); }
}
/* a narrow phone can't hold the income pill beside the dive button */
@media (max-width: 380px) {
  .hud-left .inc-pill { display: none; }
}

/* ============================ TACO TUESDAY ========================== */
.hud .taco-btn {
  background: linear-gradient(180deg, #ffe98a, #ffc21f 55%, #f59e0b);
  border-color: #fff4bd;
  color: #4a2a00;
  box-shadow: 0 5px 0 #a96500, 0 8px 18px rgba(0, 0, 0, .35);
  animation: tacoPulse 2.4s ease-in-out infinite;
}
.hud .taco-btn.claimed {
  animation: none;
  background: linear-gradient(180deg, #fff6c8, #ffd34d 55%, #ff9a2e);
  box-shadow: 0 5px 0 #a96500, 0 0 22px rgba(255, 210, 80, .7);
}
@keyframes tacoPulse {
  50% { transform: translateY(-2px) scale(1.07) rotate(-3deg); }
}

.menu-taco {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  width: 100%; margin: 0 0 12px; padding: 11px 15px; text-align: left;
  border-radius: 14px; cursor: pointer;
  background: linear-gradient(100deg, rgba(255, 195, 40, .28), rgba(255, 110, 60, .18));
  border: 1.5px solid rgba(255, 216, 100, .65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 20px rgba(0, 0, 0, .25);
  color: #fff2c8; font-size: 12.5px; font-weight: 700; letter-spacing: .2px;
}
.menu-taco b { color: #ffe066; font-size: 13.5px; letter-spacing: .9px; }
.menu-taco span { color: rgba(255, 243, 210, .78); font-size: 11.5px; }
.menu-taco:hover { border-color: #ffe066; background: linear-gradient(100deg, rgba(255, 195, 40, .38), rgba(255, 110, 60, .25)); }
.menu-taco:active { transform: translateY(1px); }

.admin-hero {
  position: relative; overflow: hidden;
  padding: 16px 18px; border-radius: 18px; margin-bottom: 14px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 213, 80, .28), transparent 60%),
    linear-gradient(160deg, rgba(124, 58, 30, .55), rgba(44, 17, 60, .6));
  border: 1.5px solid rgba(255, 214, 90, .45);
}
.admin-hero h3 { margin: 0 0 5px; font-size: 20px; font-weight: 900; color: #ffe27a; letter-spacing: .4px; }
.admin-hero p { margin: 0; font-size: 12px; font-weight: 650; color: rgba(255, 247, 220, .8); line-height: 1.5; }
.admin-hero .admin-day { display: inline-block; margin-top: 9px; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 216, 100, .4); font-size: 11px; font-weight: 800; color: #ffe79a; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.admin-cmd {
  display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  padding: 12px 13px; border-radius: 14px; min-height: 62px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  border: 1.5px solid rgba(255, 255, 255, .16); color: #fff;
}
.admin-cmd:hover { border-color: rgba(255, 213, 80, .7); background: rgba(255, 213, 80, .12); }
.admin-cmd:active { transform: translateY(1px); }
.admin-cmd .ac-ico { font-size: 23px; line-height: 1; }
.admin-cmd b { display: block; font-size: 12.5px; letter-spacing: .4px; }
.admin-cmd small { display: block; margin-top: 2px; font-size: 10.5px; color: rgba(255, 255, 255, .55); font-weight: 600; line-height: 1.35; }
.admin-cmd.on { border-color: #6ee76e; background: rgba(110, 231, 110, .14); }
.admin-cmd.on b::after { content: " ✓"; color: #8fffa0; }
.admin-go-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
.admin-go {
  cursor: pointer; padding: 9px 6px; border-radius: 11px; text-align: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-go:hover { border-color: #ffd34d; background: rgba(255, 211, 77, .16); }
.admin-go.taco { border-color: rgba(255, 211, 77, .65); color: #ffe27a; }
.admin-go.here { opacity: .45; pointer-events: none; }
.admin-section { margin: 4px 0 8px; font-size: 11px; font-weight: 900; letter-spacing: 1.1px; color: rgba(255, 255, 255, .55); text-transform: uppercase; }
@media (max-width: 560px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-go-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-taco span { flex-basis: 100%; }
}

/* ========================== WORLD 2 — CORAL DEEP ==================== */
/* The HUD coral button sits with the other round buttons. */
.hud .icon-btn.coral-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  background: linear-gradient(180deg, rgba(30, 128, 148, .96), rgba(6, 54, 82, .96));
  border-color: rgba(127, 230, 208, .55);
  color: #dffcff;
}
.coral-btn small { font-size: 8px; font-weight: 900; letter-spacing: .5px; margin-top: -1px; opacity: 1; }
.hud .icon-btn.coral-btn.on {
  /* bright enough at the bottom that the dark DIVE MAP label still reads */
  background: linear-gradient(180deg, #57f0da, #1aa7c0);
  border-color: #d9fffa;
  color: #04222e;
  box-shadow: 0 4px 0 #054b5f, 0 0 20px rgba(80, 240, 220, .55);
}
.hud .icon-btn.coral-btn.on small { color: #03232e; }

/* scuba tank + depth readout */
.dive-stats {
  position: absolute; left: 50%; bottom: 132px; transform: translateX(-50%);
  width: min(340px, 86vw); padding: 9px 13px 8px; border-radius: 16px;
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, rgba(4, 38, 58, .92), rgba(3, 18, 34, .94));
  border: 2px solid rgba(110, 232, 222, .45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4), inset 0 0 24px rgba(60, 210, 220, .08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 3;
}
.dive-air { display: flex; align-items: center; gap: 9px; }
.dive-ico { font-size: 16px; }
.dive-track { flex: 1; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.dive-track i {
  display: block; height: 100%; width: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #46f0d4, #9dfff0);
  transition: width .12s linear;
  box-shadow: 0 0 10px rgba(90, 255, 230, .55);
}
.dive-track i.low { background: linear-gradient(90deg, #ff8a5c, #ff4d6d); box-shadow: 0 0 12px rgba(255, 90, 90, .65); }
.dive-stats b#diveOxyPct { font-size: 10.5px; font-weight: 900; color: #d8fffb; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.dive-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .3px; color: rgba(200, 250, 255, .78);
}
.dive-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dive-meta span:first-child { color: #8fffe6; font-variant-numeric: tabular-nums; }

/* GRAB button, shaped like the FISH button but wet */
.grab-btn {
  position: absolute; right: calc(100px + env(safe-area-inset-right)); bottom: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 132px; height: 96px; border-radius: 26px;
  background: linear-gradient(180deg, #5ff0dc 0%, #23c7c0 48%, #0c9aa8 100%);
  color: #032630; font-weight: 900; letter-spacing: 1.5px; font-size: 20px;
  border: 3px solid #d9fffb;
  box-shadow: 0 8px 0 #055e6b, 0 18px 34px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .12s; z-index: 3;
}
.grab-btn .grab-btn-ico { font-size: 28px; line-height: 1; animation: fishPulse 2.2s ease-in-out infinite; }
.grab-btn small { font-size: 10px; font-weight: 800; opacity: .78; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.grab-btn em { font-style: normal; font-size: 8.5px; font-weight: 800; opacity: .6; letter-spacing: .3px; }
.grab-btn:active { transform: translateY(4px) scale(.98); box-shadow: 0 4px 0 #055e6b, 0 8px 18px rgba(0, 0, 0, .35); }

/* the second round button is only there underwater */
.down-btn {
  right: calc(24px + env(safe-area-inset-right)); bottom: calc(114px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; font-size: 22px;
  background: linear-gradient(180deg, rgba(18, 96, 118, .95), rgba(5, 38, 62, .95));
  border-color: rgba(120, 240, 232, .5);
}

@media (max-width: 760px) {
  /* clear of the joystick, ascend and swim-down buttons on a phone */
  .dive-stats { bottom: calc(196px + env(safe-area-inset-bottom)); width: min(300px, 80vw); }
  .grab-btn { right: calc(92px + env(safe-area-inset-right)); bottom: calc(276px + env(safe-area-inset-bottom)); width: 110px; height: 82px; font-size: 17px; border-radius: 22px; }
  .grab-btn .grab-btn-ico { font-size: 24px; }
  .grab-btn small { max-width: 94px; font-size: 9px; }
  .down-btn { right: calc(86px + env(safe-area-inset-right)); bottom: calc(98px + env(safe-area-inset-bottom)); width: 58px; height: 58px; }
}
@media (max-width: 560px) {
  .coral-btn small { display: none; }
  .dive-meta { font-size: 9px; }
  .dive-stats { width: min(300px, 84vw); }
}

/* ---- Coral Deep chart panel ---- */
.coral-hero {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin-bottom: 10px;
  border-radius: 14px; background: linear-gradient(135deg, rgba(18, 110, 132, .28), rgba(8, 40, 70, .35));
  border: 1.5px solid rgba(110, 232, 222, .34);
}
.coral-hero-ico { font-size: 26px; }
.coral-hero b { display: block; font-size: 13.5px; color: #e8fffd; }
.coral-hero small { font-size: 10.5px; font-weight: 700; color: rgba(190, 245, 250, .68); }
.coral-hero .chip-btn { margin-left: auto; }
.coral-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; }
.coral-zone {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 13px 12px 11px; border-radius: 16px;
  background: linear-gradient(165deg, rgba(16, 56, 84, .92), rgba(7, 24, 42, .94));
  border: 1.5px solid rgba(255, 255, 255, .12);
  border-left: 4px solid var(--zc, #7fe6d0);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .28);
}
.coral-zone .badge-eq, .coral-zone .badge-own { top: 8px; right: 8px; font-size: 8px; }
.coral-zone.locked { opacity: .78; filter: saturate(.6); }
.coral-zone.here { border-color: rgba(255, 221, 110, .8); box-shadow: 0 0 0 2px rgba(255, 221, 110, .18), 0 8px 22px rgba(0, 0, 0, .32); }
.coral-zone-top { display: flex; align-items: center; gap: 9px; padding-right: 80px; }
.coral-emoji { font-size: 25px; line-height: 1; }
.coral-zone .shop-sub { max-width: 100%; line-height: 1.35; }
.coral-stats { display: flex; flex-wrap: wrap; gap: 5px; font-size: 9px; font-weight: 800; color: rgba(210, 245, 255, .72); }
.coral-stats span { padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.coral-zone .gold-btn { min-height: 36px; font-size: 11px; letter-spacing: .6px; }
.coral-lock { font-size: 10px; font-weight: 900; color: #ffb0a0; padding: 7px 0 3px; }
