/* Meme Fishing — "poolside glass" UI */
:root {
  --aqua: #35e0d0;
  --aqua-2: #17b3c9;
  --coral: #ff6f61;
  --coral-2: #ff9a6b;
  --sun: #ffd65a;
  --ink: #eafcff;
  --muted: #9cc4cf;
  --glass: rgba(6, 38, 54, 0.6);
  --glass-strong: rgba(5, 28, 41, 0.94);
  --stroke: rgba(255, 255, 255, 0.14);
  --danger: #ff5a6a;
  --r: 16px;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(0, 20, 30, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #041b26; color: var(--ink); font-family: var(--body); font-weight: 700; }
body { user-select: none; -webkit-user-select: none; }
#game { position: fixed; inset: 0; }
#game canvas { display: block; width: 100%; height: 100%; }
.hidden { display: none !important; }

/* ---------- primitives ---------- */
.glass { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); box-shadow: var(--shadow); }

.key {
  display: inline-block; min-width: 24px; padding: 3px 8px; margin: 0 2px;
  background: #fff; color: #0b3442; font-family: var(--body); font-weight: 800; font-size: 12px; line-height: 16px;
  text-align: center; border-radius: 7px; box-shadow: 0 2px 0 #9fd8e0, 0 3px 8px rgba(0, 0, 0, 0.25); vertical-align: middle;
}
.key.sm { font-size: 10px; line-height: 13px; min-width: 18px; padding: 2px 6px; border-radius: 6px; }

.btn {
  font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.3px; color: var(--ink);
  border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.12s, filter 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-coral { background: linear-gradient(135deg, var(--coral), var(--coral-2)); color: #fff; box-shadow: 0 6px 18px rgba(255, 111, 97, 0.45); }
.btn-aqua { background: linear-gradient(135deg, var(--aqua), var(--aqua-2)); color: #04303a; box-shadow: 0 6px 18px rgba(53, 224, 208, 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: var(--stroke); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-danger { background: rgba(255, 90, 106, 0.15); border-color: rgba(255, 90, 106, 0.6); color: #ffd6da; }
.btn-sm { font-size: 12px; padding: 7px 12px; }
.btn.big { font-size: 18px; padding: 13px 30px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--stroke); cursor: pointer; font-size: 18px;
  background: var(--glass); backdrop-filter: blur(10px); box-shadow: var(--shadow); transition: transform 0.12s, opacity 0.15s;
}
.icon-btn:hover { transform: scale(1.08); }
.icon-btn.off { opacity: 0.45; filter: grayscale(1); position: relative; }
.icon-btn.off::after { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: var(--coral); transform: rotate(-35deg); }

.x-logo { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }
.x-link { margin-top: 12px; }
.social-row { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ticker { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
  color: #3a2400; background: linear-gradient(135deg, var(--sun), #ffb347); padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 214, 90, 0.4); user-select: text; -webkit-user-select: text; }
.ticker.sm { font-size: 11px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; box-shadow: none; }
.x-icon { display: grid; place-items: center; color: #fff; text-decoration: none; }
.x-icon .x-logo { width: 16px; height: 16px; }

.chip { display: inline-flex; gap: 5px; align-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--stroke); border-radius: 999px; padding: 4px 10px; font-size: 13px; color: var(--muted); }
.chip b { color: var(--ink); font-weight: 800; }
.chip b.bump { animation: bump 0.5s; display: inline-block; }
@keyframes bump { 0% { color: var(--aqua); transform: scale(1.4); } 100% { transform: scale(1); } }

/* ---------- title ---------- */
.screen { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 16px;
  background: linear-gradient(180deg, rgba(4, 40, 58, 0.25), rgba(3, 24, 36, 0.8)); }
.title-card { width: min(640px, 100%); text-align: center; padding: 30px 28px 24px; border-radius: 28px; background: rgba(5, 32, 46, 0.62);
  border: 1px solid var(--stroke); backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 20, 30, 0.5); }
.title-badge { display: inline-block; font-size: 13px; color: var(--aqua); background: rgba(53, 224, 208, 0.12); border: 1px solid rgba(53, 224, 208, 0.35); padding: 5px 12px; border-radius: 999px; }
.logo { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 9vw, 84px); line-height: 1; margin: 14px 0 0; letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 20%, #a9fff4 60%, var(--aqua) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 14px rgba(0, 60, 80, 0.55)); }
.logo span { background: linear-gradient(180deg, #fff3d6, var(--coral-2) 60%, var(--coral)); -webkit-background-clip: text; background-clip: text; }
.wave { width: 220px; height: 16px; margin: 4px auto 0; display: block; }
.wave path { fill: none; stroke: var(--aqua); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 12 0; animation: waveMove 3s linear infinite; }
@keyframes waveMove { to { transform: translateX(-37.5px); } }
.tagline { font-size: 16px; color: var(--muted); margin: 12px auto 18px; max-width: 480px; line-height: 1.45; font-weight: 600; }
.join-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.name-input { font-family: var(--body); font-weight: 800; font-size: 16px; text-align: center; padding: 13px 18px; width: min(300px, 100%);
  background: rgba(255, 255, 255, 0.1); color: var(--ink); border: 1px solid var(--stroke); border-radius: 999px; outline: none; }
.name-input:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(53, 224, 208, 0.25); }
.name-input::placeholder { color: #7fa9b4; }
.load-status { font-size: 13px; color: var(--muted); min-height: 18px; margin-top: 10px; }
.controls-card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin-top: 16px; padding: 14px 18px; text-align: left;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke); border-radius: var(--r); }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.cc-row em { font-style: normal; color: var(--muted); }
.footer { position: absolute; bottom: 12px; left: 16px; right: 16px; text-align: center; font-size: 12px; color: #7fa9b4; font-weight: 600; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hud button, #hud input, #hud a, #chat-log { pointer-events: auto; }

#hud-topleft { position: absolute; top: 14px; left: 14px; padding: 12px 14px; min-width: 230px; }
.hud-head { display: flex; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 18px; color: #04303a;
  background: linear-gradient(135deg, var(--sun), var(--coral-2)); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.hud-logo { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--aqua); line-height: 1.1; }
.hud-user { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.hud-user .dot { width: 8px; height: 8px; border-radius: 50%; background: #5dff9a; box-shadow: 0 0 8px #5dff9a; }
.hud-stats { display: flex; gap: 6px; margin: 10px 0 10px; flex-wrap: wrap; }
.hud-buttons { display: flex; gap: 6px; }

#hud-topright { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }

#fish-status { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-weight: 600; font-size: 14px;
  background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(10px); padding: 8px 16px; border-radius: 999px; display: flex; gap: 9px; align-items: center; box-shadow: var(--shadow); }
.fs-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(53, 224, 208, 0.8); } 100% { box-shadow: 0 0 0 10px rgba(53, 224, 208, 0); } }

#crosshair { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50%; box-shadow: 0 0 4px rgba(0, 0, 0, 0.5); }
#lock-hint { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font-size: 13px; color: #fff; background: rgba(0, 0, 0, 0.35); padding: 6px 12px; border-radius: 999px; }

#bite-prompt { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); text-align: center; animation: bitePop 0.3s cubic-bezier(.2, 1.6, .4, 1), biteWobble 0.5s 0.3s infinite; }
.bite-ring { position: absolute; left: 50%; top: 42%; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%;
  border: 4px solid rgba(255, 111, 97, 0.8); animation: ring 0.9s infinite; pointer-events: none; }
@keyframes ring { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.bite-title { position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(42px, 7vw, 76px); color: #fff; letter-spacing: 1px;
  text-shadow: 0 4px 0 var(--coral), 0 10px 30px rgba(255, 80, 60, 0.7); }
.bite-sub { position: relative; font-family: var(--display); font-size: clamp(16px, 2.4vw, 24px); color: #fff; margin-top: 6px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.big-key { font-size: clamp(15px, 2vw, 21px) !important; padding: 8px 22px !important; line-height: 1.2 !important; border-radius: 10px !important; animation: keyPulse 0.35s infinite alternate; }
.bite-bar { position: relative; width: 240px; max-width: 70vw; height: 10px; margin: 16px auto 0; background: rgba(0, 0, 0, 0.4); border-radius: 999px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.4); }
#bite-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--coral), var(--sun)); border-radius: 999px; }
@keyframes bitePop { 0% { transform: translate(-50%, -50%) scale(0.3); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes biteWobble { 0%, 100% { rotate: 0deg; } 25% { rotate: -2deg; } 75% { rotate: 2deg; } }
@keyframes keyPulse { to { transform: translateY(-3px) scale(1.05); } }

#ctx-prompt { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); font-family: var(--display); font-weight: 600; font-size: 15px;
  background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(10px); padding: 8px 16px 8px 8px; border-radius: 999px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); }

#toasts { position: absolute; top: 66px; right: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; width: min(380px, 70vw); }
.toast { font-size: 14px; background: var(--glass-strong); border: 1px solid var(--stroke); border-left: 4px solid var(--aqua); padding: 8px 14px; border-radius: 12px;
  animation: toastIn 0.3s cubic-bezier(.2, 1.4, .4, 1); box-shadow: var(--shadow); max-width: 100%; }
.toast.big { font-family: var(--display); font-weight: 600; font-size: 16px; }
.toast.out { opacity: 0; transform: translateX(20px); transition: opacity 0.4s, transform 0.4s; }
@keyframes toastIn { from { transform: translateY(-10px) scale(0.95); opacity: 0; } }

#chat { position: absolute; left: 14px; bottom: 14px; width: min(420px, calc(100vw - 28px)); padding: 10px 12px; }
.chat-head { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.online { color: #5dff9a; font-size: 12px; }
#chat-log { max-height: 170px; overflow-y: auto; font-size: 14px; line-height: 1.35; scrollbar-width: thin; scrollbar-color: var(--aqua) transparent; padding-right: 4px; }
#chat.idle { background: rgba(6, 38, 54, 0.38); }
.chat-line { word-wrap: break-word; padding: 1px 0; color: #dff6fa; font-weight: 600; }
.chat-name { font-weight: 800; }
#chat-input-row { margin-top: 6px; }
#chat-input { width: 100%; font-family: var(--body); font-weight: 700; font-size: 14px; padding: 8px 12px; background: rgba(0, 0, 0, 0.3); color: var(--ink);
  border: 1px solid var(--aqua); border-radius: 10px; outline: none; }
.chat-hint { margin-top: 6px; font-size: 12px; color: var(--muted); }

#controls { position: absolute; right: 14px; bottom: 190px; padding: 10px 14px; font-size: 13px; display: grid; grid-template-columns: auto auto; gap: 5px 12px; align-items: center; }
#controls .k { text-align: right; white-space: nowrap; }
#controls .a { color: var(--muted); }
#controls .a.hi { color: var(--coral-2); }
#minimap { position: absolute; right: 14px; bottom: 14px; width: 160px; height: 160px; border-radius: 24px; border: 2px solid rgba(53, 224, 208, 0.7);
  background: rgba(4, 30, 42, 0.7); box-shadow: var(--shadow); }
#flash, #glitch, #fade { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
#flash.on { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { opacity: 0.75; } 100% { opacity: 0; } }
#glitch { background: repeating-linear-gradient(0deg, rgba(230, 210, 110, 0.85) 0 6px, rgba(40, 30, 0, 0.6) 6px 9px, rgba(255, 255, 255, 0.3) 9px 11px); mix-blend-mode: hard-light; }
#glitch.on { animation: glitch 0.9s steps(9); }
@keyframes glitch { 0% { opacity: 0.9; transform: translateX(-12px); } 30% { opacity: 1; transform: translateX(16px) skewX(8deg); } 60% { opacity: 0.85; transform: translateX(-6px); } 100% { opacity: 0; transform: none; } }
#fade { background: #000; }
#fade.on { animation: fade 0.7s ease-in-out; }
@keyframes fade { 0%, 100% { opacity: 0; } 40%, 60% { opacity: 1; } }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(2, 18, 26, 0.55); backdrop-filter: blur(4px); padding: 16px; }
.modal-card { background: var(--glass-strong); border: 1px solid var(--stroke); border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); padding: 24px;
  max-height: calc(100vh - 32px); overflow: auto; animation: cardIn 0.3s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cardIn { from { transform: translateY(16px) scale(0.94); opacity: 0; } }
.modal-card h2 { font-family: var(--display); font-weight: 700; font-size: 24px; margin: 0; line-height: 1.2; }

.rarity-tag { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 1px; padding: 4px 12px; border-radius: 999px; color: #06212b; background: var(--rc); }
.catch-card { width: min(820px, 100%); --rc: #a7adb8; border-top: 5px solid var(--rc); box-shadow: 0 0 60px color-mix(in srgb, var(--rc) 35%, transparent), 0 30px 80px rgba(0, 0, 0, 0.5); }
.catch-header { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.badge-new { background: linear-gradient(135deg, var(--sun), var(--coral-2)); color: #3a1a00; padding: 3px 10px; border-radius: 999px; animation: badgePulse 0.9s infinite alternate; }
@keyframes badgePulse { to { transform: scale(1.08); box-shadow: 0 0 16px rgba(255, 214, 90, 0.7); } }
.catch-body { display: flex; gap: 24px; align-items: flex-start; }
.catch-img-wrap { flex: 0 0 auto; width: min(380px, 60vw); aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #021219;
  box-shadow: 0 0 0 3px var(--rc), 0 0 30px var(--rc); }
.catch-img-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.catch-info { flex: 1; min-width: 0; }
#catch-name { font-size: 30px; margin-top: 10px; }
#catch-desc { font-size: 16px; line-height: 1.45; color: #cfeaf0; margin: 10px 0; font-weight: 600; }
.catch-count { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.catch-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.catch-card.legendary .catch-img-wrap { animation: glow 1s infinite alternate; }
.catch-card.mythic { animation: cardIn 0.3s cubic-bezier(.2, 1.4, .4, 1), hueBorder 2s linear infinite; }
.catch-card.mythic .catch-img-wrap, .catch-card.mythic .rarity-tag { animation: hue 2s linear infinite; }
@keyframes glow { to { box-shadow: 0 0 0 3px var(--rc), 0 0 70px var(--rc); } }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes hueBorder { 0% { border-top-color: #ff3d5a; } 33% { border-top-color: #ffd65a; } 66% { border-top-color: #35e0d0; } 100% { border-top-color: #ff3d5a; } }

.coll-card { width: min(1080px, 100%); height: min(740px, calc(100vh - 32px)); display: flex; flex-direction: column; gap: 12px; }
.coll-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.coll-stats { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.progress { flex: 1; min-width: 120px; height: 10px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; }
#coll-progress { height: 100%; background: linear-gradient(90deg, var(--aqua), var(--sun)); width: 0; transition: width 0.5s; border-radius: 999px; }
.coll-controls { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { font-family: var(--display); font-weight: 600; font-size: 12px; padding: 6px 12px; background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--stroke); border-radius: 999px; cursor: pointer; }
.filter.on { background: color-mix(in srgb, var(--fc, var(--aqua)) 22%, transparent); border-color: var(--fc, var(--aqua)); color: #fff; }
.sort { font-family: var(--display); font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
select, .settings-grid input[type=text] { font-family: var(--body); font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, 0.08); color: var(--ink);
  border: 1px solid var(--stroke); border-radius: 10px; padding: 7px 10px; outline: none; }
select option { background: #062636; }
.coll-main { flex: 1; display: flex; gap: 16px; min-height: 0; }
.coll-grid { flex: 1.6; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); grid-auto-rows: max-content; gap: 12px; align-content: start; padding: 4px; min-height: 0; }
.coll-item { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; cursor: pointer; position: relative;
  transition: transform 0.12s, box-shadow 0.12s; box-shadow: inset 0 -3px 0 var(--rc, transparent); }
.coll-item:hover { transform: translateY(-3px); box-shadow: inset 0 -3px 0 var(--rc, transparent), 0 8px 20px rgba(0, 0, 0, 0.35); }
.coll-item.sel { outline: 2px solid var(--aqua); outline-offset: 2px; }
.coll-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #021219; }
.coll-item.locked img { filter: grayscale(1) brightness(0.28) blur(7px); transform: scale(1.15); }
.coll-item .q { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; display: grid; place-items: center; font-family: var(--display); font-size: 34px; color: rgba(255, 255, 255, 0.35); }
.coll-item .nm { font-size: 13px; line-height: 1.2; padding: 7px 8px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coll-item.locked .nm { color: var(--muted); }
.coll-item .ct { position: absolute; top: 6px; right: 6px; font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, 0.6); padding: 2px 7px; border-radius: 999px; }
.coll-item .sec { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 800; background: var(--sun); color: #3a2400; padding: 2px 7px; border-radius: 999px; }
.coll-detail { flex: 1; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke); border-radius: 18px; padding: 16px; overflow-y: auto; min-width: 0; }
.detail-empty { color: var(--muted); font-size: 15px; text-align: center; margin-top: 40px; }
.coll-detail .dimg { width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #021219; margin-bottom: 12px; box-shadow: 0 0 0 2px var(--rc); }
.coll-detail .dimg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.coll-detail .dimg.locked img { object-fit: cover; filter: grayscale(1) brightness(0.28) blur(10px); transform: scale(1.15); }
.coll-detail h3 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 10px 0 6px; }
.coll-detail p { font-size: 15px; line-height: 1.45; margin: 8px 0; color: #cfeaf0; font-weight: 600; }
.coll-detail .meta { color: var(--muted); font-size: 13px; }
.pending { font-size: 12px; color: var(--muted); }

.settings-card { width: min(600px, 100%); }
.settings-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.settings-grid label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }
.settings-grid input[type=range] { width: 52%; accent-color: var(--aqua); }
.settings-grid input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--aqua); }
.set-section { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--aqua); margin-top: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--stroke); }
.set-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }

.pause-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
.pause-title { font-size: 34px !important; }
.pause-sub { font-size: 15px; color: var(--muted); margin: 0 0 6px; }
.pause-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; text-align: left; margin-top: 12px; color: var(--muted); }

#fatal { position: fixed; inset: 0; z-index: 100; background: #041b26; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; padding: 30px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  #controls { display: none; }
  #fish-status { top: 170px; }
  .catch-body { flex-direction: column; align-items: center; }
  .catch-img-wrap { width: 100%; }
  .coll-main { flex-direction: column; }
  .coll-detail { flex: 0 0 auto; max-height: 42%; }
}
@media (max-width: 600px) {
  #minimap { width: 110px; height: 110px; border-radius: 18px; }
  #hud-topright { top: auto; bottom: 134px; right: 14px; flex-direction: column; }
  #chat { width: calc(100vw - 150px); }
  #chat-log { max-height: 110px; font-size: 13px; }
  #hud-topleft { min-width: 0; }
  .controls-card { grid-template-columns: 1fr; }
}
@media (max-height: 680px) {
  .controls-card, .tagline { display: none; }
}
