/* ============================================================
   Shane Ellis Fishing Game — HUD & menu styling
   (DOM overlay above WebGL canvas). Brand skin block at bottom.
   ============================================================ */

:root {
  --text: #eaf3fa;
  --dim: #9db1c0;
  --accent: #5fd4ff;
  --gold: #ffc857;
  --ok: #62d98b;
  --danger: #ff5d6c;
  --glass: rgba(9, 16, 25, 0.72);
  --glass-soft: rgba(9, 16, 25, 0.55);
  --stroke: rgba(255, 255, 255, 0.1);
  --r-common: #aebdca;
  --r-uncommon: #62d98b;
  --r-rare: #58a6ff;
  --r-epic: #c08bff;
  --r-legendary: #ffb13d;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #06101a;
  color: var(--text);
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

#app { position: fixed; inset: 0; }

#canvas-wrap { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
#canvas-wrap canvas { display: block; }

#vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(2, 8, 14, 0.42) 100%);
  transition: box-shadow 0.25s ease;
}
#vignette.tension-danger {
  box-shadow: inset 0 0 140px rgba(255, 60, 80, 0.35);
  animation: dangerPulse 0.5s ease-in-out infinite alternate;
}
@keyframes dangerPulse {
  from { box-shadow: inset 0 0 110px rgba(255, 60, 80, 0.22); }
  to   { box-shadow: inset 0 0 170px rgba(255, 60, 80, 0.45); }
}

.hidden { display: none !important; }

/* ---------------- generic widgets ---------------- */

.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.25); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.btn:disabled:hover { background: rgba(255, 255, 255, 0.07); }

.btn-primary {
  background: linear-gradient(135deg, #1d9dd4, #1565a8);
  border-color: rgba(120, 215, 255, 0.5);
}
.btn-primary:hover { background: linear-gradient(135deg, #27aee6, #1b76bf); }
.btn-big { font-size: 1.15rem; padding: 14px 26px; }
.btn-danger-ghost { color: #ff8d99; border-color: rgba(255, 93, 108, 0.35); }
.btn-danger-ghost:hover { background: rgba(255, 93, 108, 0.12); }
.btn-close { padding: 8px 14px; }
.btn-buy { background: linear-gradient(135deg, #20a45d, #157a44); border-color: rgba(110, 230, 160, 0.45); }
.btn-buy:hover { background: linear-gradient(135deg, #27b96b, #1b8a50); }

kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 7px;
  font-family: inherit;
  font-size: 0.85em;
}

.excl { color: var(--gold); font-weight: 800; }

/* ---------------- HUD ---------------- */

#hud { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
#hud button { pointer-events: auto; }

.hud-corner { position: absolute; display: flex; flex-direction: column; gap: 8px; }
.hud-topleft { top: 16px; left: 16px; }
.hud-topright { top: 16px; right: 16px; align-items: flex-end; }
.hud-bottomleft { bottom: 16px; left: 16px; flex-direction: row; gap: 8px; }
.hud-bottomright { bottom: 16px; right: 16px; }

.hud-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 190px;
}

.money-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(255, 200, 87, 0.25);
  transition: transform 0.15s ease;
}
.money-text.pulse { animation: popPulse 0.4s ease; }
@keyframes popPulse { 30% { transform: scale(1.18); } }

.level-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.level-badge {
  background: linear-gradient(135deg, #2b86c8, #1c5d96);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  white-space: nowrap;
}
.xp-bar {
  flex: 1; height: 8px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.xp-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #46c6ff, #7ee0ff);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.xp-text { font-size: 0.72rem; color: var(--dim); margin-top: 4px; }

.hud-clockcard { text-align: right; }
.clock-row { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.clock-text { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.seg-chip {
  font-size: 0.72rem; font-weight: 700; border-radius: 6px; padding: 2px 8px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.seg-dawn { background: rgba(255, 170, 110, 0.2); color: #ffc49b; }
.seg-day { background: rgba(120, 200, 255, 0.18); color: #a8dcff; }
.seg-dusk { background: rgba(255, 130, 130, 0.18); color: #ffb1a6; }
.seg-night { background: rgba(120, 130, 255, 0.16); color: #b3baff; }
.weather-chip { font-size: 0.72rem; color: var(--dim); border: 1px solid var(--stroke); border-radius: 6px; padding: 2px 8px; }
.loc-text { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-top: 4px; }

.hud-buttons { display: flex; gap: 6px; }
.hud-btn {
  font-family: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text);
  background: var(--glass); border: 1px solid var(--stroke); border-radius: 9px;
  padding: 8px 13px; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease;
}
.hud-btn:hover { background: rgba(80, 150, 200, 0.3); }
.hud-btn:disabled { opacity: 0.35; cursor: default; }

.gear-chip {
  background: var(--glass); border: 1px solid var(--stroke); border-radius: 10px;
  padding: 8px 12px; display: flex; flex-direction: column; gap: 1px;
  backdrop-filter: blur(8px);
}
.gear-label { font-size: 0.62rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.gear-name { font-size: 0.85rem; font-weight: 600; }

.bag-chip {
  font-family: inherit; color: var(--text);
  background: var(--glass); border: 1px solid var(--stroke); border-radius: 10px;
  padding: 10px 14px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease;
}
.bag-chip:hover { background: rgba(80, 150, 200, 0.3); }

.prompt {
  position: absolute; bottom: 86px; left: 50%; transform: translateX(-50%);
  background: var(--glass-soft); border: 1px solid var(--stroke); border-radius: 12px;
  padding: 10px 22px; font-size: 1rem; font-weight: 500; text-align: center;
  backdrop-filter: blur(8px); white-space: nowrap; max-width: 92vw;
}
.prompt b { color: var(--accent); }
.prompt.urgent {
  border-color: var(--gold); color: var(--gold); font-weight: 800; font-size: 1.25rem;
  animation: urgentFlash 0.22s ease-in-out infinite alternate;
}
@keyframes urgentFlash { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.07); } }

.zone-hint {
  position: absolute; bottom: 140px; left: 50%; transform: translateX(-50%);
  font-size: 0.8rem; color: var(--dim); background: var(--glass-soft);
  border-radius: 8px; padding: 4px 12px;
}

/* power meter */
.power-wrap {
  position: absolute; bottom: 170px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.power-track {
  position: relative; width: 260px; height: 18px; border-radius: 9px;
  background: rgba(0, 0, 0, 0.55); border: 1px solid var(--stroke); overflow: hidden;
}
.power-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #3ec97e, #ffd95e 60%, #ff7847 90%);
  border-radius: 9px;
}
.power-sweet {
  position: absolute; left: 78%; width: 17%; top: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}
.power-label { font-size: 0.68rem; letter-spacing: 0.22em; color: var(--dim); font-weight: 700; }

/* reel fight overlay */
.reel-wrap {
  position: absolute; bottom: 130px; left: 50%; transform: translateX(-50%);
  width: min(480px, 92vw);
  background: var(--glass); border: 1px solid var(--stroke); border-radius: 16px;
  padding: 14px 18px; backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 9px;
}
.fight-head { display: flex; justify-content: space-between; align-items: center; }
.fight-name { font-weight: 700; font-size: 0.95rem; }
.fight-stars { color: var(--gold); letter-spacing: 0.15em; font-size: 0.85rem; }
.surge-banner {
  text-align: center; font-weight: 800; font-size: 1.05rem; color: #fff;
  background: linear-gradient(90deg, rgba(255, 70, 90, 0.0), rgba(255, 70, 90, 0.85), rgba(255, 70, 90, 0.0));
  border-radius: 8px; padding: 4px 0;
  animation: surgeFlash 0.3s ease-in-out infinite alternate;
}
.surge-banner.telegraph {
  color: var(--gold);
  background: linear-gradient(90deg, rgba(255, 195, 80, 0), rgba(255, 195, 80, 0.55), rgba(255, 195, 80, 0));
}
@keyframes surgeFlash { from { opacity: 0.75; } to { opacity: 1; } }

.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-tag { width: 64px; text-align: right; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; color: var(--dim); }
.bar {
  flex: 1; height: 16px; border-radius: 8px; overflow: hidden;
  background: rgba(0, 0, 0, 0.5); border: 1px solid var(--stroke);
}
.bar-fill { height: 100%; width: 0%; border-radius: 8px; transition: width 0.08s linear; }
.tension-fill { background: linear-gradient(90deg, #3ec97e, #ffd95e 55%, #ff5d6c 85%); }
.progress-fill { background: linear-gradient(90deg, #46c6ff, #7ee0ff); }

/* bite indicator */
.bite-indicator {
  position: absolute; z-index: 12; pointer-events: none;
  font-size: 2.6rem; font-weight: 800; color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 200, 87, 0.9), 0 2px 4px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -100%);
  animation: biteBounce 0.3s ease-in-out infinite alternate;
}
@keyframes biteBounce { from { margin-top: 0; } to { margin-top: -14px; } }

/* toasts */
#toasts {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 50;
  align-items: center; pointer-events: none;
}
.toast {
  background: var(--glass); border: 1px solid var(--stroke); border-radius: 10px;
  padding: 9px 20px; font-size: 0.92rem; font-weight: 600;
  backdrop-filter: blur(10px); box-shadow: var(--shadow);
  animation: toastIn 0.3s ease, toastOut 0.4s ease 3s forwards;
  max-width: 86vw; text-align: center;
}
.toast-success { border-color: rgba(98, 217, 139, 0.5); color: #9af0ba; }
.toast-warn { border-color: rgba(255, 93, 108, 0.5); color: #ffaab2; }
.toast-gold { border-color: rgba(255, 200, 87, 0.6); color: var(--gold); box-shadow: 0 0 26px rgba(255, 200, 87, 0.2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* screen shake */
#app.shake #canvas-wrap { animation: shakeAnim 0.35s ease; }
@keyframes shakeAnim {
  20% { transform: translate(-7px, 4px); }
  40% { transform: translate(6px, -5px); }
  60% { transform: translate(-4px, 3px); }
  80% { transform: translate(3px, -2px); }
}

/* ---------------- full screens ---------------- */

.screen {
  position: absolute; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 10, 17, 0.55);
  backdrop-filter: blur(4px);
  animation: screenIn 0.22s ease;
}
@keyframes screenIn { from { opacity: 0; } }

#screen-menu { background: linear-gradient(180deg, rgba(4, 10, 18, 0.50) 0%, rgba(4, 10, 18, 0.78) 100%); backdrop-filter: none; }

.menu-box { text-align: center; padding: 30px; }
.game-title {
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  font-weight: 800; letter-spacing: 0.14em;
  background: linear-gradient(180deg, #d9f2ff 20%, #4db9e8 70%, #1b6fa8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 18px 60px rgba(64, 180, 240, 0.35);
}
.game-sub { color: var(--dim); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.85rem; margin: 6px 0 34px; }
.menu-buttons { display: flex; flex-direction: column; gap: 10px; width: 280px; margin: 0 auto; }
.menu-save-info { margin-top: 18px; font-size: 0.8rem; color: var(--dim); }
.menu-credits { margin-top: 26px; font-size: 0.72rem; color: rgba(157, 177, 192, 0.55); }

.panel {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  max-height: 88vh;
  display: flex; flex-direction: column;
  animation: panelIn 0.25s ease;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.panel-narrow { width: min(420px, 92vw); }
.panel-mid { width: min(620px, 94vw); }
.panel-wide { width: min(880px, 95vw); height: min(640px, 88vh); }
.panel-title { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.03em; }
.panel-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.panel-head .panel-title { flex: 1; }

.howto-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.howto-list li { font-size: 0.92rem; color: #cfdde8; line-height: 1.45; }
.howto-list b { color: var(--text); }

.setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}
.setting-row:first-of-type { margin-top: 8px; }
.setting-row input[type="range"] { width: 150px; accent-color: var(--accent); }
.setting-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.setting-row select {
  font-family: inherit; background: rgba(255, 255, 255, 0.08); color: var(--text);
  border: 1px solid var(--stroke); border-radius: 8px; padding: 6px 10px;
}
.setting-danger { border-bottom: none; margin-bottom: 10px; }
#screen-settings .btn-primary, #screen-howto .btn-primary { margin-top: 14px; align-self: center; min-width: 160px; }

/* ---------------- shop ---------------- */

.tab-row { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab-btn {
  font-family: inherit; font-size: 0.88rem; font-weight: 600; color: var(--dim);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke);
  border-radius: 9px; padding: 8px 18px; cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); background: rgba(70, 150, 210, 0.3); border-color: rgba(120, 200, 255, 0.45); }

.shop-content { flex: 1; overflow-y: auto; padding-right: 6px; }
.shop-item {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 9px;
}
.shop-item.equipped { border-color: rgba(120, 200, 255, 0.5); background: rgba(70, 150, 210, 0.1); }
.shop-item.locked { opacity: 0.55; }
.shop-item-info { flex: 1; }
.shop-item-name { font-weight: 700; font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.tier-badge {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; color: #0a141e;
  background: linear-gradient(135deg, #9fd9ff, #5fb6e8); border-radius: 5px; padding: 1px 7px;
}
.shop-item-stats { font-size: 0.8rem; color: var(--dim); margin-top: 3px; }
.stat-up { color: var(--ok); font-weight: 600; }
.shop-item-blurb { font-size: 0.76rem; color: rgba(157, 177, 192, 0.7); margin-top: 2px; font-style: italic; }
.shop-item-action { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 120px; }
.lock-note { font-size: 0.72rem; color: var(--dim); }
.equipped-tag { color: var(--accent); font-weight: 700; font-size: 0.85rem; padding: 8px 4px; }

.sell-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 7px; font-size: 0.9rem;
}
.sell-row .fish-mini { width: 44px; height: 34px; flex-shrink: 0; }
.sell-name { flex: 1; font-weight: 600; }
.sell-meta { color: var(--dim); font-size: 0.8rem; }
.sell-value { color: var(--gold); font-weight: 700; min-width: 64px; text-align: right; }
.sell-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 4px 2px; gap: 12px;
}
.sell-total { font-size: 1rem; font-weight: 700; }
.shop-empty { text-align: center; color: var(--dim); padding: 50px 0; font-size: 0.95rem; }

/* ---------------- journal ---------------- */

.journal-stats { color: var(--dim); font-size: 0.85rem; }
.journal-scroll { flex: 1; overflow-y: auto; padding-right: 6px; }
.rarity-section { margin-bottom: 18px; }
.rarity-head {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 8px; padding-left: 2px;
}
.journal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.journal-card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 12px; text-align: center;
  transition: transform 0.15s ease;
}
.journal-card:hover { transform: translateY(-2px); }
.journal-card .fish-svg { width: 90px; height: 72px; }
.journal-card.locked .fish-svg { filter: grayscale(1) brightness(0.25); }
.jc-name { font-weight: 700; font-size: 0.92rem; margin-top: 4px; }
.jc-meta { font-size: 0.74rem; color: var(--dim); margin-top: 3px; line-height: 1.5; }
.jc-hint { font-size: 0.7rem; color: rgba(157, 177, 192, 0.65); margin-top: 4px; font-style: italic; line-height: 1.45; }
.jc-count { color: var(--accent); font-weight: 600; }

/* ---------------- map ---------------- */

.map-grid {
  flex: 1; overflow-y: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px;
  align-content: start; grid-auto-rows: max-content;   /* cards keep their full height; the grid scrolls */
}
.map-card {
  border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  display: flex; flex-direction: column;
}
.map-thumb { height: 110px; flex: 0 0 110px; position: relative; background-size: cover; background-position: center; }
.map-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(9, 16, 25, 0.9));
}
.map-thumb[data-loc="lake"] { background: linear-gradient(160deg, #7fcab5, #1c5e51 60%, #0d3a33); }
.map-thumb[data-loc="river"] { background: linear-gradient(160deg, #9fd8c8, #2a7d8f 60%, #14454f); }
.map-thumb[data-loc="pier"] { background: linear-gradient(160deg, #ffd9a0, #3e85b8 55%, #1b4565); }
.map-thumb[data-loc="ocean"] { background: linear-gradient(160deg, #6f9fd8, #1d3f78 55%, #0a1e3e); }
.map-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.map-card-name { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.current-tag { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; color: #0a141e; background: var(--accent); border-radius: 5px; padding: 2px 7px; }
.map-card-blurb { font-size: 0.8rem; color: var(--dim); line-height: 1.45; flex: 1; }
.map-card-fish { font-size: 0.75rem; color: var(--accent); }
.map-req { font-size: 0.78rem; color: var(--dim); }
.map-req .ok { color: var(--ok); }
.map-req .bad { color: var(--danger); }

/* ---------------- catch card ---------------- */

.catch-overlay {
  position: absolute; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 8, 14, 0.45);
  animation: screenIn 0.25s ease;
}
.catch-card {
  width: min(400px, 92vw);
  background: linear-gradient(180deg, rgba(16, 27, 40, 0.96), rgba(9, 16, 25, 0.96));
  border: 2px solid var(--rarity, var(--stroke));
  border-radius: 20px; padding: 26px 28px 22px;
  text-align: center; position: relative;
  box-shadow: 0 0 60px color-mix(in srgb, var(--rarity, #fff) 28%, transparent), var(--shadow);
  animation: cardPop 0.45s cubic-bezier(0.18, 1.4, 0.4, 1);
}
@keyframes cardPop { from { opacity: 0; transform: scale(0.7) translateY(30px); } }
.catch-ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em;
  color: #16240e; background: linear-gradient(135deg, #b9f08e, #62d98b);
  border-radius: 8px; padding: 5px 16px; white-space: nowrap;
  box-shadow: 0 4px 18px rgba(98, 217, 139, 0.45);
}
.catch-ribbon.record { color: #2a1c04; background: linear-gradient(135deg, #ffe29b, #ffb13d); box-shadow: 0 4px 18px rgba(255, 177, 61, 0.45); }
.catch-rarity { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rarity, var(--dim)); }
.catch-name { font-size: 1.7rem; font-weight: 800; margin: 2px 0 10px; }
.catch-card .fish-svg { width: 170px; height: 130px; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.5)); }
.catch-stats { display: flex; justify-content: center; gap: 22px; margin: 12px 0 4px; }
.catch-stat { display: flex; flex-direction: column; gap: 2px; }
.catch-stat .cs-label { font-size: 0.62rem; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.catch-stat .cs-value { font-size: 1.05rem; font-weight: 700; }
.catch-value { font-size: 1.25rem; font-weight: 800; color: var(--gold); margin: 8px 0 16px; }
.catch-xp { font-size: 0.8rem; color: var(--accent); margin-top: -12px; margin-bottom: 14px; }

.confetti-bit {
  position: absolute; width: 8px; height: 8px; border-radius: 2px; pointer-events: none;
  animation: confettiFall 1.4s ease-out forwards;
}
@keyframes confettiFall {
  from { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  to { opacity: 0; transform: translate(var(--cx), var(--cy)) rotate(540deg); }
}

/* fish svg shape variants */
.fish-svg { overflow: visible; }
.fish-svg.shape-slim { transform: scaleY(0.78); }
.fish-svg.shape-long { transform: scale(1.15, 0.55); }
.fish-svg.shape-flat { transform: scaleY(1.18); }
.fish-svg.shape-billed { transform: scaleX(1.1); }

/* ---------------- boot loader ---------------- */

#boot-loader {
  position: absolute; inset: 0; z-index: 500;
  background: #06101a;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.boot-spin {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(95, 212, 255, 0.18);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.boot-text { font-weight: 700; letter-spacing: 0.18em; }
.boot-sub { font-size: 0.75rem; color: var(--dim); }
.boot-credit {
  position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  text-align: center; font-size: 0.78rem; line-height: 1.6; color: var(--dim); padding: 0 18px;
}
.boot-credit a { color: #ffc857; text-decoration: none; font-weight: 600; }
.boot-credit a:hover { text-decoration: underline; }
.boot-credit-links { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 4px; font-size: 0.74rem; }
.boot-credit-links i { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); display: block; }

/* ---------------- scrollbars ---------------- */
.shop-content::-webkit-scrollbar, .journal-scroll::-webkit-scrollbar, .map-grid::-webkit-scrollbar { width: 8px; }
.shop-content::-webkit-scrollbar-thumb, .journal-scroll::-webkit-scrollbar-thumb, .map-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14); border-radius: 4px;
}

/* ---------------- responsive ---------------- */
@media (max-width: 760px) {
  :root { font-size: 14px; }
  .hud-card { min-width: 150px; padding: 9px 12px; }
  .hud-buttons { flex-wrap: wrap; justify-content: flex-end; }
  .prompt { bottom: 70px; white-space: normal; width: 92vw; }
  .power-wrap { bottom: 150px; }
  .power-track { width: 200px; }
  .reel-wrap { bottom: 110px; }
  .hud-bottomleft { display: none; }
  .panel { padding: 18px; }
  .panel-wide { height: 92vh; }
}

/* ============================================================
   SHANE ELLIS BRAND SKIN
   ============================================================ */

/* Top-center brand bar shown DURING PLAY. z-index 11 keeps its links above
   the HUD layer (z-10) so they are reliably clickable. It is hidden whenever a
   screen overlay (menu, shop, journal, map, pause...) is open — those would
   otherwise sit above it (z-100) and swallow the click, and the menu already
   has its own clickable "Book a guided trip" link. */
#brandbar {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 11;
  display: flex; align-items: center; gap: 14px;
  pointer-events: none;
}
#brandbar a { pointer-events: auto; }
/* Hide the bar while any full-screen overlay is up. */
#app:has(.screen:not(.hidden)) #brandbar { display: none; }
.brandbar-home img {
  height: 34px; width: auto; display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
  opacity: 0.92; transition: opacity 0.15s ease;
}
.brandbar-home:hover img { opacity: 1; }
.brandbar-cta {
  font-family: inherit; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.01em; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #1f9e5a, #157a44);
  border: 1px solid rgba(120, 255, 180, 0.35);
  border-radius: 999px; padding: 7px 15px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.brandbar-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }
.brandbar-cta:active { transform: translateY(0); }

/* Menu branding */
.menu-logo {
  height: 78px; width: auto; margin: 0 auto 14px; display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}
.game-title {
  font-size: clamp(2.4rem, 7vw, 4.2rem) !important;
  letter-spacing: 0.08em !important;
}
.menu-booklink {
  display: inline-block; margin-top: 20px;
  font-size: 0.9rem; font-weight: 600; color: #4fd28a; text-decoration: none;
  border-bottom: 1px solid rgba(79, 210, 138, 0.4); padding-bottom: 2px;
  transition: color 0.15s ease;
}
.menu-booklink:hover { color: #7ff0ac; }

/* ---------- Fishing With Captain Shane: title treatment ---------- */
.game-title { background: none !important; text-shadow: none !important; display: flex; flex-direction: column; align-items: center; line-height: 1; gap: 6px; }
.gt-small {
  font-size: clamp(0.95rem, 3.4vw, 1.5rem); font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase;
  color: #e9f4fb; -webkit-text-fill-color: #e9f4fb; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.gt-big {
  font-size: clamp(2.3rem, 11vw, 5rem); font-weight: 800; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff1c2 15%, #ffc857 55%, #e08a1e);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}
.btn-primary { background: linear-gradient(135deg, #ffc857, #e08a1e) !important; color: #1a1205 !important; border-color: rgba(255, 230, 160, 0.6) !important; }
.menu-credits a { color: inherit; text-decoration: none; }
.only-touch { display: none; }
@media (pointer: coarse), (hover: none) { .only-touch { display: list-item; } span.only-touch { display: inline; } .only-desk { display: none !important; } }

/* ---------- hamburger + drawer (hidden on desktop) ---------- */
.hud-burger { display: none; }
.hud-drawer { display: contents; }

/* ============================================================
   PHONES: one finger. Aim by sliding, hold to charge/reel, tap to hook.
   Only money/level + the logo + a hamburger stay on screen.
   ============================================================ */
@media (max-width: 760px) {
  .brandbar-cta { display: none; }
  .brandbar-home img { height: 34px; }
  #brandbar { top: calc(env(safe-area-inset-top, 0px) + 10px); }

  .hud-topleft { top: calc(env(safe-area-inset-top, 0px) + 10px); left: 10px; }
  .hud-topright { top: calc(env(safe-area-inset-top, 0px) + 10px); right: 10px; }
  .hud-topleft .hud-card { min-width: 0; padding: 7px 10px; border-radius: 12px; }
  .hud-topleft .money-text { font-size: 1.05rem; }
  .hud-topleft .xp-text { display: none; }
  .hud-topleft .xp-bar { width: 44px; }

  .hud-burger {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
    background: var(--glass); border: 1px solid var(--stroke);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .hud-burger span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: #ffc857; transition: transform 0.2s ease, opacity 0.2s ease; }
  .hud-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .hud-burger.open span:nth-child(2) { opacity: 0; }
  .hud-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hud-drawer {
    display: none; flex-direction: column; gap: 8px; width: 210px; padding: 10px;
    background: rgba(6, 14, 22, 0.88); border: 1px solid var(--stroke); border-radius: 14px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .hud-drawer.open { display: flex; }
  .hud-drawer .hud-card { background: transparent; border: 0; padding: 0 2px 4px; min-width: 0; backdrop-filter: none; }
  .hud-drawer .hud-buttons { flex-direction: column; gap: 8px; }
  .hud-drawer .hud-btn, .hud-drawer .bag-chip { width: 100%; min-height: 46px; font-size: 1rem; text-align: left; padding: 10px 14px; }

  .hud-bottomleft, .hud-bottomright { display: none; }

  .prompt {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); width: 90vw; padding: 10px 16px;
    font-size: 1.05rem; white-space: normal;
  }
  .power-wrap { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
  .power-track { width: min(260px, 72vw); }
  .reel-wrap { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); width: 92vw; }
  .zone-hint { display: none; }

  /* menu: logo pinned top center, everything fits the screen */
  #screen-menu { align-items: flex-start; overflow-y: auto; padding-top: calc(env(safe-area-inset-top, 0px) + 84px); box-sizing: border-box; }
  .menu-box { padding: 12px 16px 24px; width: 100%; box-sizing: border-box; }
  .menu-logo { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; transform: translateX(-50%); height: 60px; margin: 0; }
  .game-sub { letter-spacing: 0.18em; font-size: 0.72rem; margin: 10px 0 20px; }
  .menu-buttons { width: min(300px, 100%); }
  .menu-buttons .btn { min-height: 50px; }
  .menu-booklink { font-size: 0.85rem; margin-top: 14px; }
  .menu-credits { margin-top: 14px; }
}

/* ---------- Desktop: hints sit to the LEFT of the boat, not on top of it ---------- */
@media (min-width: 1000px) and (hover: hover) {
  .prompt {
    left: 16px; right: auto; bottom: 96px; transform: none;
    width: min(300px, calc(50vw - min(31vw, 380px) - 40px)); max-width: none;
    white-space: normal; text-align: left; padding: 12px 16px; line-height: 1.35;
  }
  .prompt.urgent { animation: urgentFlashL 0.22s ease-in-out infinite alternate; }
  .zone-hint { left: 16px; bottom: 168px; transform: none; }
}
@keyframes urgentFlashL { from { transform: scale(1); } to { transform: scale(1.06); } }

/* ---------- real fish photos ---------- */
.fish-photo { display: block; object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.catch-card .fish-photo { width: min(320px, 72vw); height: auto; margin: 6px auto 4px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55)); }
.catch-latin { font-size: 0.78rem; font-style: italic; color: var(--dim); margin-top: -2px; letter-spacing: 0.02em; }
.catch-tip { font-size: 0.8rem; line-height: 1.4; color: var(--dim); max-width: 330px; margin: 6px auto 4px; }
.journal-card .fish-photo { width: 100%; max-width: 150px; height: 64px; margin: 0 auto 4px; }
.journal-card.locked .fish-photo { filter: grayscale(1) brightness(0.2); }
.jc-latin { font-size: 0.7rem; font-style: italic; color: var(--dim); margin-bottom: 3px; }
.sell-row .fish-mini .fish-photo { width: 52px; height: 34px; }

/* ---------- menu credit + short-window safety ---------- */
.menu-devcredit { margin-top: 16px; font-size: 0.74rem; line-height: 1.6; color: var(--dim); }
.menu-devcredit b { color: #e6eef5; font-weight: 600; }
.menu-devcredit a { color: #ffc857; text-decoration: none; font-weight: 600; }
.menu-devcredit a:hover { text-decoration: underline; }
.menu-devcredit .boot-credit-links { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 2px; }
.menu-devcredit .boot-credit-links i { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); display: block; }
/* If the window is shorter than the menu, scroll instead of cutting off the top. */
#screen-menu { overflow-y: auto; }
#screen-menu .menu-box { margin: auto; max-width: 100%; }
.gt-big { max-width: 100%; }

/* ---------- start screen (the loader becomes a "Start Game" screen once everything is ready) ---------- */
#boot-loader { transition: opacity 0.45s ease; }
#boot-loader.leaving { opacity: 0; pointer-events: none; }
.boot-logo, .boot-start, .boot-hint { display: none; }
#boot-loader.ready .boot-logo { display: block; height: 78px; width: auto; margin-bottom: 4px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)); }
#boot-loader.ready .boot-start { display: block; min-width: 220px; margin-top: 8px; }
#boot-loader.ready .boot-hint { display: block; font-size: 0.78rem; color: var(--dim); }
#boot-loader.ready .boot-spin, #boot-loader.ready .boot-sub { display: none; }
#boot-loader.ready .boot-text { font-size: 1.15rem; }
@media (max-width: 760px) { #boot-loader.ready .boot-logo { height: 62px; } }

/* ============================================================
   BASS FISHING UPDATE: lures, rhythm, conditions, livewell, tournament, goals
   ============================================================ */

/* ---------- HUD bits ---------- */
.cond-text { margin-top: 3px; font-size: 0.72rem; color: var(--dim); letter-spacing: 0.01em; }
.tourney-chip {
  margin-top: 8px; padding: 7px 12px; border-radius: 10px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em;
  color: #1a1205; background: linear-gradient(135deg, #ffc857, #e08a1e); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); width: max-content; max-width: 70vw;
}
.gear-click { cursor: pointer; pointer-events: auto; transition: background 0.15s ease; }
.gear-click:hover { background: rgba(80, 150, 200, 0.3); }
.match-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 6px; background: #5b6b78; vertical-align: middle; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12); }
.match-dot.m-hot { background: #ff6a3d; box-shadow: 0 0 10px #ff6a3d; }
.match-dot.m-good { background: #62d98b; box-shadow: 0 0 8px #62d98b; }
.match-dot.m-ok { background: #ffc857; }
.match-dot.m-cold { background: #58a6ff; }
.bag-chip.full { border-color: var(--gold); color: var(--gold); }

/* ---------- rhythm bar (working the lure) ---------- */
.rhythm {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 168px; width: min(340px, 78vw);
  background: var(--glass-soft); border: 1px solid var(--stroke); border-radius: 12px; padding: 9px 12px 11px;
  backdrop-filter: blur(8px); pointer-events: none; transition: border-color 0.12s ease;
}
.rhythm.ready { border-color: #62d98b; box-shadow: 0 0 18px rgba(98, 217, 139, 0.45); }
.rhythm-top { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 700; margin-bottom: 7px; }
.rhythm-label { color: var(--text); }
.rhythm-streak { color: var(--gold); }
.rhythm-track { position: relative; height: 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.rhythm-sweet { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, #62d98b, #2f9e5a); border-radius: 8px; }
.rhythm-mark { position: absolute; top: -2px; bottom: -2px; width: 5px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.8); }
.rhythm.good { animation: rhGood 0.35s ease; }
.rhythm.soon, .rhythm.late { animation: rhBad 0.3s ease; }
@keyframes rhGood { 0% { transform: translateX(-50%) scale(1.07); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes rhBad { 0%, 100% { transform: translateX(-50%); } 25% { transform: translateX(calc(-50% - 5px)); } 75% { transform: translateX(calc(-50% + 5px)); } }
@media (min-width: 1000px) and (hover: hover) {
  .rhythm { left: 16px; transform: none; bottom: 196px; width: 260px; }
  .rhythm.good { animation-name: rhGoodL; }
  .rhythm.soon, .rhythm.late { animation-name: rhBadL; }
  @keyframes rhGoodL { 0% { transform: scale(1.07); } 100% { transform: scale(1); } }
  @keyframes rhBadL { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
}
@media (max-width: 760px) { .rhythm { bottom: calc(env(safe-area-inset-bottom, 0px) + 150px); } }

/* ---------- Captain Shane's tip bubble ---------- */
.guide {
  position: absolute; z-index: 600; left: 50%; top: 8px; transform: translateX(-50%); width: min(460px, 92vw);
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px 12px 10px; cursor: pointer;
  background: rgba(8, 18, 28, 0.92); border: 1px solid rgba(255, 200, 87, 0.5); border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5); animation: guideIn 0.3s ease; pointer-events: auto;
}
.guide.hidden { display: none; }
.guide-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #0a2540; border: 2px solid #ffc857; }
.guide-name { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #ffc857; margin-bottom: 2px; }
.guide-text { font-size: 0.9rem; line-height: 1.35; color: var(--text); }
@keyframes guideIn { from { opacity: 0; } }
@media (max-width: 760px) { .guide { top: 6px; width: 94vw; padding: 8px 10px; } .guide-avatar { width: 34px; height: 34px; } .guide-text { font-size: 0.82rem; } }

/* ---------- lure icons and the shop ---------- */
.lure-icon { width: 64px; height: 34px; flex-shrink: 0; overflow: visible; }
.shop-lure { display: flex; align-items: center; margin-right: 6px; }
.shop-empty-note { font-size: 0.8rem; color: var(--dim); }

/* ---------- tackle box ---------- */
.tackle-hint { font-size: 0.82rem; color: var(--dim); margin: 2px 0 12px; }
.tackle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.tackle-sub { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 16px 0 8px; }
.lure-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 12px; }
.lure-card.equipped { border-color: var(--gold); background: rgba(255, 200, 87, 0.08); }
.lure-card.locked { opacity: 0.55; }
.lure-card-top { display: flex; align-items: center; gap: 10px; }
.lure-card-top > div:nth-child(2) { flex: 1; min-width: 0; }
.lure-name { font-weight: 700; font-size: 0.95rem; }
.lure-kind { font-size: 0.7rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.equipped-tag { font-size: 0.72rem; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
.lure-how { font-size: 0.78rem; color: var(--dim); margin: 6px 0; line-height: 1.35; }
.lure-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.match-chip { font-size: 0.68rem; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--text); }
.match-chip b { margin-left: 3px; }
.match-chip.m-hot { background: rgba(255, 106, 61, 0.28); color: #ffb39b; }
.match-chip.m-good { background: rgba(98, 217, 139, 0.22); color: #9ae8b6; }
.match-chip.m-ok { background: rgba(255, 200, 87, 0.18); color: #ffd98a; }
.match-chip.m-cold { background: rgba(88, 166, 255, 0.18); color: #9cc7ff; }

/* ---------- fishing report ---------- */
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.report-stat { background: rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 8px 10px; text-align: center; }
.report-stat span { display: block; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.report-stat b { font-size: 1.05rem; }
.report-text { font-size: 0.92rem; line-height: 1.45; margin-bottom: 4px; }
.report-lures { display: flex; gap: 10px; flex-wrap: wrap; }
.report-lure { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 6px 10px; font-size: 0.85rem; font-weight: 600; }
.report-cover-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--stroke); font-size: 0.86rem; }
.rc-side { color: var(--dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.rc-pick { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.rc-pick .lure-icon { width: 46px; height: 24px; }
#screen-report .btn-primary { margin-top: 14px; }

/* ---------- the scales and tournament results ---------- */
.results { text-align: center; max-height: 92vh; overflow-y: auto; }
.wi-list, .lb { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.wi-row { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); text-align: left; animation: rowIn 0.4s ease both; }
.wi-row.big { border: 1px solid var(--gold); background: rgba(255, 200, 87, 0.1); }
.wi-fish .fish-photo { width: 66px; height: 34px; object-fit: contain; }
.wi-name { font-weight: 700; font-size: 0.92rem; }
.wi-nick { font-size: 0.66rem; font-weight: 800; color: #1a1205; background: var(--gold); border-radius: 999px; padding: 2px 7px; margin-left: 4px; }
.wi-meta { color: var(--dim); font-size: 0.8rem; }
.wi-weight { font-weight: 800; font-variant-numeric: tabular-nums; }
.wi-total { display: flex; justify-content: space-between; font-size: 1.15rem; padding: 10px 10px 4px; border-top: 1px solid var(--stroke); }
.wi-lines > div { display: flex; justify-content: space-between; padding: 4px 10px; font-size: 0.92rem; }
.wi-lines .bonus { color: var(--ok); }
.wi-lines .grand { font-size: 1.4rem; font-weight: 800; color: var(--gold); padding-top: 8px; }
.lb-row { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); text-align: left; animation: rowIn 0.4s ease both; }
.lb-row.you { border: 1px solid var(--gold); background: rgba(255, 200, 87, 0.12); font-weight: 800; }
.lb-place { font-weight: 800; color: var(--dim); }
.lb-count { color: var(--dim); font-size: 0.82rem; }
.lb-wt { font-weight: 800; font-variant-numeric: tabular-nums; }
.trophy { width: 84px; height: 84px; margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; color: #fff; background: #3a4a5a; border: 3px solid #5d7387; }
.trophy.podium { background: linear-gradient(135deg, #9aa7b3, #5d7387); border-color: #c9d3dc; }
.trophy.gold { background: linear-gradient(135deg, #ffd978, #e08a1e); border-color: #fff1c2; color: #1a1205; animation: pulseGold 1.6s ease infinite; }
@keyframes pulseGold { 50% { box-shadow: 0 0 34px rgba(255, 200, 87, 0.7); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.btn-tourney { border-color: rgba(255, 200, 87, 0.55); color: #ffc857; }

/* ---------- catch card additions ---------- */
.catch-ribbon.nick { background: linear-gradient(135deg, #ff6a3d, #ffb13d); color: #1a0e05; font-size: 1.05rem; letter-spacing: 0.08em; }
.catch-ribbon.sub { top: auto; position: static; display: inline-block; margin-top: 4px; font-size: 0.66rem; }
.catch-how { font-size: 0.82rem; color: var(--dim); margin: 6px 0 2px; }
.catch-how b { color: var(--text); }
.catch-note { font-size: 0.82rem; margin: 6px auto; max-width: 320px; line-height: 1.35; }
.catch-note.ok { color: var(--ok); }
.catch-note.up { color: var(--gold); }
.catch-note.short { color: #ff9c8a; }
.catch-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Angler's Log ---------- */
.goal-list { display: flex; flex-direction: column; gap: 8px; }
.goal { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke); }
.goal.done { border-color: rgba(98, 217, 139, 0.5); background: rgba(98, 217, 139, 0.08); }
.goal-main { flex: 1; min-width: 0; }
.goal-name { font-weight: 800; }
.goal-desc { font-size: 0.8rem; color: var(--dim); margin: 2px 0 6px; }
.goal-bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.goal-bar div { height: 100%; background: linear-gradient(90deg, #5fd4ff, #62d98b); }
.goal.done .goal-bar div { background: #62d98b; }
.goal-side { text-align: right; font-size: 0.78rem; white-space: nowrap; }
.goal-prog { font-weight: 800; font-size: 0.95rem; }
.goal-reward { color: var(--gold); }

/* long panels scroll instead of running off the screen */
#screen-tackle .panel, #screen-report .panel { max-height: 92vh; overflow-y: auto; }

/* phones: the bottom-left gear chips are hidden, so the lure shows under the money card instead */
.lure-mini { display: none; }
@media (max-width: 760px) {
  .lure-mini {
    display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 11px; max-width: 62vw;
    font: inherit; font-size: 0.78rem; font-weight: 700; color: var(--text); text-align: left;
    background: var(--glass); border: 1px solid var(--stroke); border-radius: 10px; pointer-events: auto; cursor: pointer;
    backdrop-filter: blur(8px);
  }
  .lure-mini .match-dot { margin: 0; flex-shrink: 0; }
  .lure-mini span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tourney-chip { font-size: 0.68rem; padding: 6px 9px; }
}

/* toasts sit under the logo bar instead of on top of it */
#toasts { top: 74px; z-index: 95; }
@media (max-width: 760px) { #toasts { top: 70px; max-width: 92vw; } }

/* desktop: stack hint, rhythm bar and prompt on the left without touching each other */
@media (min-width: 1000px) and (hover: hover) {
  .rhythm { bottom: 236px; }
  .zone-hint { bottom: 306px; max-width: 300px; line-height: 1.3; }
}

/* ---------- high scores + initials ---------- */
.menu-scores { margin: 10px auto 12px; width: min(420px, 100%); padding: 8px 10px; border-radius: 12px; background: rgba(8, 18, 28, 0.55); border: 1px solid rgba(255, 200, 87, 0.35); font-size: 0.82rem; }
.hs-title { text-align: center; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.7rem; color: #ffc857; margin-bottom: 4px; }
.hs-empty { text-align: center; opacity: 0.8; padding: 4px 0; }
.hs-row { display: grid; grid-template-columns: 1.4em 3.2em 2.4em 1fr 1.3fr; gap: 6px; padding: 2px 4px; border-radius: 6px; text-align: left; }
.hs-row span:nth-child(n+3) { text-align: right; }
.hs-head { opacity: 0.6; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hs-name { font-weight: 800; letter-spacing: 0.12em; }
.hs-row.me { background: rgba(255, 200, 87, 0.18); }
.name-modal { position: absolute; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; background: rgba(0, 8, 16, 0.78); }
.name-modal.hidden { display: none; }
.name-box { text-align: center; padding: 22px 26px; border-radius: 16px; background: #0b1c2c; border: 1px solid rgba(255, 200, 87, 0.5); width: min(320px, 88vw); }
.name-title { font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #ffc857; margin-bottom: 10px; }
.name-input { width: 6.2em; font: 800 2.4rem/1.2 Outfit, sans-serif; letter-spacing: 0.3em; text-align: center; text-transform: uppercase; padding: 4px 0 4px 0.3em; border-radius: 10px; border: 2px solid #ffc857; background: #06121d; color: #fff; }
.name-err { min-height: 1.3em; margin: 6px 0 10px; font-size: 0.85rem; color: #ff9a8a; }

/* ---------- tournament briefing ---------- */
.tourney-panel { max-width: 760px; max-height: 92vh; overflow-y: auto; }
.tp-lead { margin: 0 0 10px; font-size: 0.98rem; }
.tp-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; text-align: left; }
.tp-h { margin: 8px 0 4px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ffc857; }
.tp-list { margin: 0 0 6px; padding-left: 1.1em; font-size: 0.88rem; line-height: 1.4; }
.tp-list li { margin-bottom: 4px; }
.tp-row { display: grid; grid-template-columns: 2.5em 1fr 1fr; gap: 8px; padding: 4px 6px; border-radius: 6px; font-size: 0.9rem; }
.tp-row:nth-child(odd) { background: rgba(255, 255, 255, 0.05); }
.tp-row span:nth-child(n+2) { text-align: right; }
.tp-head { opacity: 0.6; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; background: none !important; }
.tp-row .ok { color: var(--ok); } .tp-row .bad { color: var(--danger); }
.tp-note { margin: 8px 0 0; font-size: 0.8rem; opacity: 0.8; }
.tp-cash { margin: 12px 0 8px; padding: 8px 10px; border-radius: 10px; font-weight: 700; text-align: center; background: rgba(0, 0, 0, 0.3); }
.tp-cash.ok { color: var(--ok); } .tp-cash.bad { color: #ff9a8a; }
.tourney-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.tourney-actions .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 640px) { .tp-cols { grid-template-columns: 1fr; gap: 6px; } .tp-list { font-size: 0.82rem; } }

/* ---------- phones: no hamburger, the buttons are icons stacked down the right side ---------- */
@media (max-width: 760px) {
  .hud-burger { display: none !important; }
  .hud-drawer {
    display: flex !important; flex-direction: column; align-items: flex-end; gap: 8px;
    width: auto; padding: 0; background: none; border: 0; border-radius: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .hud-drawer .hud-clockcard { padding: 5px 9px; border-radius: 10px; background: var(--glass); border: 1px solid var(--stroke); min-width: 0; }
  .hud-drawer .hud-clockcard .loc-text, .hud-drawer .hud-clockcard .cond-text, .hud-drawer .hud-clockcard .weather-chip { display: none; }
  .hud-drawer .clock-row { gap: 6px; }
  .hud-drawer .clock-text { font-size: 0.95rem; }
  .hud-drawer .hud-buttons { display: flex; flex-direction: column; gap: 8px; }
  .hud-drawer .hud-btn, .hud-drawer .bag-chip {
    width: 46px; min-height: 46px; height: 46px; padding: 0; font-size: 0; line-height: 1;
    display: flex; align-items: center; justify-content: center; border-radius: 12px;
    background: var(--glass); border: 1px solid var(--stroke);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .hud-drawer .hud-btn::before { font-size: 1.35rem; line-height: 1; }
  #btn-map::before { content: "\1F5FA\FE0F"; }
  #btn-shop::before { content: "\1F6D2"; }
  #btn-tackle::before { content: "\1F3A3"; }
  #btn-report::before { content: "\1F4CB"; }
  #btn-journal::before { content: "\1F4D6"; }
  #btn-pause::before { content: "\23F8\FE0F"; }
  .hud-drawer .bag-chip { flex-direction: column; gap: 1px; font-size: 0.6rem; font-weight: 800; color: #ffc857; }
  .hud-drawer .bag-chip::before { content: "\1F41F"; font-size: 1.1rem; }
}

/* phones: icons float with no box; a soft shadow keeps them readable on any photo */
@media (max-width: 760px) {
  .hud-drawer .hud-btn, .hud-drawer .bag-chip {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .hud-drawer .hud-btn::before, .hud-drawer .bag-chip::before { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.6)); }
  .hud-drawer .hud-btn::before { font-size: 1.6rem; }
  .hud-drawer .bag-chip::before { font-size: 1.45rem; }
  .hud-drawer .bag-chip { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.8); }
}

.jc-new { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-top: 2px; }

.journal-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.86rem; line-height: 1.4; background: rgba(255, 200, 87, 0.1); border: 1px solid rgba(255, 200, 87, 0.35); }

/* ---------- rain: gray wash, falling streaks, lightning flash ---------- */
#rain-fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none; }
#rain-gray { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(52, 60, 70, 0.82) 0%, rgba(78, 88, 98, 0.62) 45%, rgba(62, 72, 82, 0.5) 100%); }
#rain-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#rain-flash { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, #f4f8ff, #cfe0ff 70%); opacity: 0; mix-blend-mode: screen; }
#rain-glass { position: absolute; inset: 0; width: 100%; height: 100%; }
