/* Bobber Bay HUD: rounded, readable at 360 px, touch targets >= 44 px. Only buttons take pointers. */
:root {
  --ink: #0e3446;
  --glass: rgba(9, 52, 70, 0.58);
  --glass-hi: rgba(255, 255, 255, 0.16);
  --cream: #fff8ec;
  --coin: #ffc94a;
  --coin-dark: #d99a12;
  --red: #e5402a;
  --green: #3ccf7a;
  --orange: #ffa133;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
#app, #app canvas { touch-action: none; }
#ui { position: fixed; inset: 0; pointer-events: none; font-family: var(--font); color: #fff; z-index: 2; }
.hud { position: absolute; inset: 0; }

/* top: coins and kept */
.hud-top { position: absolute; top: calc(12px + var(--safe-t)); left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 999px;
  background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-hi), 0 4px 14px rgba(0, 30, 45, 0.25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 800; font-size: 18px; letter-spacing: 0.01em; }
.pill-n { min-width: 1ch; font-variant-numeric: tabular-nums; }
.pill.bump { animation: bump 0.45s cubic-bezier(.22, 1, .36, 1); }   /* smooth ease-out: the keyframes give the pop */
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.coin { display: inline-block; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff3bf 0 18%, var(--coin) 19% 62%, var(--coin-dark) 63%);
  box-shadow: inset 0 0 0 2px rgba(150, 95, 0, 0.35); }
.net { display: inline-block; width: 24px; height: 24px; flex: none; border-radius: 6px 6px 12px 12px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.85) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(255,255,255,.85) 0 2px, transparent 2px 6px);
  border-top: 3px solid #c98b4b; }

/* bottom: hint, loadout, power meter */
.hud-bottom { position: absolute; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translateX(-50%);
  width: min(420px, calc(100% - 24px)); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hint { max-width: 100%; padding: 8px 16px; border-radius: 999px; background: var(--glass); font-weight: 700; font-size: 16px; line-height: 1.25;
  text-align: center; box-shadow: inset 0 1px 0 var(--glass-hi); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity 0.2s; }
.loadout { display: flex; gap: 10px; width: 100%; transition: opacity 0.2s, transform 0.2s; }
.chip { pointer-events: auto; flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 6px 12px;
  border: 0; border-radius: 18px; background: var(--cream); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 3px 0 rgba(10, 50, 70, 0.28), 0 8px 18px rgba(0, 30, 45, 0.2); touch-action: manipulation; }
.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(10, 50, 70, 0.28); }
.chip-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.chip-label { font-size: 12px; font-weight: 700; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.06em; }
.chip-value { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-icon { width: 32px; height: 32px; flex: none; border-radius: 10px; background: #e7f4f2; position: relative; }
.chip-icon::after { content: ""; position: absolute; inset: 0; margin: auto; }
.icon-worm::after { width: 20px; height: 9px; border-radius: 6px; background: #e9768a; box-shadow: inset -4px 0 0 #d65c72; transform: rotate(-20deg); }
.icon-bread::after { width: 20px; height: 15px; border-radius: 8px 8px 3px 3px; background: #e7b86a; box-shadow: inset 0 -4px 0 #f6dfae; }
.icon-spinner::after { width: 11px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: linear-gradient(90deg, #c9d4dc, #fff 45%, #9fb0bc); box-shadow: 0 0 0 2px #7d8f9b; }
.icon-top::after, .icon-mid::after, .icon-bottom::after { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.chip-icon.icon-top, .chip-icon.icon-mid, .chip-icon.icon-bottom { background: linear-gradient(#bfeef0 0 22%, #3ab7c4 22% 100%); }
.icon-top::after { top: 6px; bottom: auto; left: 0; right: 0; }
.icon-mid::after { top: 0; bottom: 0; left: 0; right: 0; }
.icon-bottom::after { top: auto; bottom: 4px; left: 0; right: 0; }
.meter { position: relative; width: 100%; height: 16px; border-radius: 999px; background: var(--glass); overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.35); transition: opacity 0.2s; }
.meter-fill { position: absolute; inset: 2px; border-radius: 999px; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, #7ee8f0, #ffe066 60%, #ff8a3d); }
.meter-sweet { position: absolute; top: 0; bottom: 0; left: 82%; width: 3px; background: rgba(255, 255, 255, 0.85); border-radius: 2px; }

/* the strike prompt */
.tap { position: absolute; left: 50%; top: calc(24% + var(--safe-t)); transform: translate(-50%, -50%) scale(0.6); padding: 14px 34px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: clamp(40px, 12vw, 72px); font-weight: 900; letter-spacing: 0.02em; opacity: 0;
  box-shadow: 0 8px 0 #a92716, 0 16px 40px rgba(120, 20, 0, 0.35); transition: opacity 0.12s, transform 0.12s; }

/* toasts */
.toast { position: absolute; left: 50%; top: calc(76px + var(--safe-t)); transform: translate(-50%, -8px); padding: 10px 20px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-weight: 800; font-size: 18px; white-space: nowrap; opacity: 0; transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 6px 20px rgba(0, 30, 45, 0.3); max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* the tension gauge */
.gauge { position: absolute; left: 50%; bottom: calc(64px + var(--safe-b)); transform: translateX(-50%) scale(0.9); width: 150px; height: 140px;
  opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.gauge svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 10px rgba(0, 30, 45, 0.35)); }
.gauge-bg { fill: none; stroke: rgba(9, 52, 70, 0.6); stroke-width: 16; stroke-linecap: round; }
.gauge-fg { fill: none; stroke: var(--green); stroke-width: 12; stroke-linecap: round; transition: stroke 0.15s; }
.gauge[data-band="orange"] .gauge-fg { stroke: var(--orange); }
.gauge[data-band="red"] .gauge-fg { stroke: var(--red); }
.gauge[data-band="red"] { animation: wobble 0.18s infinite alternate; }
@keyframes wobble { from { translate: -2px 0; } to { translate: 2px 0; } }   /* the translate property: composes with the transform, no layout */
.gauge-dist { position: absolute; left: 0; right: 0; top: 46px; text-align: center; font-weight: 900; text-shadow: 0 2px 6px rgba(0, 30, 45, 0.5); }
.gauge-dist b { font-size: 28px; font-variant-numeric: tabular-nums; }
.gauge-dist small { font-size: 16px; margin-left: 2px; }
.gauge-label { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; text-shadow: 0 1px 4px rgba(0, 30, 45, 0.6); }

/* modes */
.hud[data-mode="charge"] .loadout { opacity: 0.35; }
.hud[data-mode="wait"] .loadout, .hud[data-mode="bite"] .loadout, .hud[data-mode="fight"] .loadout, .hud[data-mode="card"] .loadout { display: none; }
.hud[data-mode="wait"] .meter, .hud[data-mode="bite"] .meter, .hud[data-mode="fight"] .meter, .hud[data-mode="card"] .meter { display: none; }
.hud[data-mode="bite"] .hint, .hud[data-mode="card"] .hint { opacity: 0; }
.tap { white-space: nowrap; }
.tap[data-key="letgoTap"] { font-size: clamp(26px, 7.5vw, 48px); padding: 14px 26px; background: #ff8a1f; box-shadow: 0 8px 0 #b85a00, 0 16px 40px rgba(120, 60, 0, 0.35); }
.hint[data-key="letgo"] { background: #ff8a1f; color: #fff; }
.hud[data-mode="bite"] .tap { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: pulse 0.32s infinite alternate ease-in-out; }
@keyframes pulse { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.1); } }
.hud[data-mode="fight"] .gauge { opacity: 1; transform: translateX(-50%) scale(1); }

/* the dive: a quick wash when the camera crosses the surface */
.dive { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at 50% 40%, rgba(230, 255, 255, 0.85), rgba(60, 200, 210, 0.6) 60%, rgba(10, 90, 115, 0.5)); }
.dive.go { animation: dive 0.35s ease-out; }
@keyframes dive { 0% { opacity: 0.9; } 100% { opacity: 0; } }

/* the catch card */
.card-wrap { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 12px calc(16px + var(--safe-b));
  visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0s 0.2s; }
.card-wrap.open { visibility: visible; opacity: 1; transition: opacity 0.2s; pointer-events: auto;
  background: linear-gradient(to top, rgba(4, 30, 42, 0.45), rgba(4, 30, 42, 0) 55%); }
.card { width: min(380px, 100%); box-sizing: border-box; padding: 18px 18px 16px; border-radius: 26px; background: var(--cream); color: var(--ink);
  box-shadow: 0 6px 0 rgba(10, 50, 70, 0.25), 0 20px 50px rgba(0, 20, 35, 0.4); text-align: center; transform: translateY(30px) scale(0.96);
  transition: transform 0.35s cubic-bezier(.2, 1.4, .4, 1); position: relative; }   /* the one deliberate overshoot: the reward moment */
.card-wrap.open .card { transform: none; }
.card.gold { background: linear-gradient(160deg, #fff6d6, #ffe08a); }
.card-badges { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; min-height: 26px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-new { background: var(--red); color: #fff; animation: bump 0.6s 0.15s cubic-bezier(.22, 1, .36, 1) both; }
.badge-gold { background: var(--coin); color: #6b4300; }
.badge-size { background: #0e3446; color: #fff; }
.badge-trophy { background: #7a4cc2; }
.badge-monster { background: #c2264c; }
.badge-caught { background: #d9efe9; color: var(--ink); }
.card-name { margin: 8px 0 2px; font-size: clamp(24px, 7vw, 30px); font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; }
.card-stars { font-size: 22px; letter-spacing: 3px; color: #f2a516; text-shadow: 0 1px 0 rgba(120, 70, 0, 0.25); }
.card-stats { display: flex; justify-content: center; gap: 10px; margin: 10px 0 14px; }
.stat { min-width: 96px; padding: 8px 12px; border-radius: 16px; background: #eaf5f2; }
.stat b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat small { margin-left: 4px; font-size: 15px; font-weight: 800; opacity: 0.6; }
.card-buttons { display: flex; gap: 10px; }
.btn { flex: 1 1 0; min-height: 56px; border: 0; border-radius: 18px; font: inherit; font-size: 19px; font-weight: 900; cursor: pointer; touch-action: manipulation;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; }
.btn:active { transform: translateY(3px); }
.btn-sell { background: var(--coin); color: #5a3800; box-shadow: 0 4px 0 var(--coin-dark); }
.btn-sell:active { box-shadow: 0 1px 0 var(--coin-dark); }
.btn-value { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); font-size: 16px; }
.btn-value .coin { width: 18px; height: 18px; }
.btn-keep { background: #1d8fa3; color: #fff; box-shadow: 0 4px 0 #0b5f70; }
.btn-keep:active { box-shadow: 0 1px 0 #0b5f70; }

/* short landscape screens: tighter card and HUD */
@media (max-height: 460px) {
  .card { padding: 12px 14px 12px; width: min(420px, 100%); }
  .card-name { margin-top: 4px; font-size: 24px; }
  .card-stats { margin: 6px 0 10px; }
  .stat b { font-size: 22px; }
  .card-wrap { justify-content: flex-end; padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hud-bottom { gap: 8px; bottom: calc(10px + var(--safe-b)); }
  .hint { font-size: 15px; padding: 6px 14px; }
  .gauge { bottom: 44px; width: 128px; height: 120px; }
  .gauge-dist { top: 32px; }
  .tap { top: 30%; }
}

/* --- Fight 2.0 build: aim, tells, praise, banners, shop -------------------------------------------------------------- */
.hud-top { align-items: flex-start; }
.pill-btn { pointer-events: auto; border: 0; color: #fff; font: inherit; font-weight: 900; cursor: pointer; touch-action: manipulation; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 12px; }
.pill-kept { margin-right: auto; }
.pill-sound { font-size: 20px; padding: 0; width: 44px; }
.pill-sound.off { opacity: 0.55; text-decoration: line-through; }
.pill-shop { position: relative; overflow: hidden; padding: 0 16px; }
.pill-shop .shop-fill { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: var(--coin); transform-origin: left center; transform: scaleX(0); transition: transform 0.4s; }
.pill-shop .shop-label { position: relative; }
.pill-shop.ready { background: #e08a00; animation: bump 0.9s infinite alternate ease-in-out; }
.hud[data-mode="aim"] .loadout { opacity: 0.35; }
.hud[data-mode="aim"] .meter, .hud[data-mode="ready"] .meter { display: none; }
.icon-shrimp::after { width: 18px; height: 12px; border-radius: 10px 10px 4px 10px; background: #ff8c6b; box-shadow: inset -3px -2px 0 #e0603f; }

/* the gauge: tension zones, line health rim, hook, stamina */
.gauge-zone { fill: none; stroke: transparent; stroke-width: 0; }
.gauge-line { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 4; stroke-linecap: round; transition: stroke 0.2s; }
.gauge[data-line="mid"] .gauge-line { stroke: var(--orange); }
.gauge[data-line="low"] .gauge-line { stroke: var(--red); animation: blink 0.3s infinite alternate; }
@keyframes blink { from { opacity: 1; } to { opacity: 0.35; } }
.gauge[data-band="orange"] .gauge-fg { stroke: var(--orange); }
.gauge[data-zone="slack"] .gauge-fg, .gauge[data-zone="low"] .gauge-fg { stroke: #9fd8ff; }
.gauge-hook { position: absolute; left: 50%; top: 10px; width: 22px; height: 22px; margin-left: -11px; border: 4px solid #fff; border-top-color: transparent; border-right-color: transparent;
  border-radius: 50%; transform: rotate(-45deg); }
.gauge-hook[data-k="mid"] { border-left-color: var(--orange); border-bottom-color: var(--orange); }
.gauge-hook[data-k="low"] { border-left-color: var(--red); border-bottom-color: var(--red); animation: blink 0.25s infinite alternate; }
.gauge-stam { position: absolute; left: 24px; right: 24px; bottom: -8px; height: 8px; border-radius: 99px; background: rgba(9, 52, 70, 0.6); overflow: hidden; }
.gauge-stam i { position: absolute; inset: 0; background: linear-gradient(90deg, #ffd23f, #ff7a3d); transform-origin: left center; }

/* the tell over the fish */
.tell { position: absolute; left: 0; top: 0; padding: 8px 14px; border-radius: 14px; background: rgba(9, 52, 70, 0.78); font-size: 18px; font-weight: 900; letter-spacing: 0.04em;
  white-space: nowrap; opacity: 0; transition: opacity 0.12s; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.tell.show { opacity: 1; }
.tell.urgent { background: #ff8a1f; font-size: 22px; animation: tellpop 0.22s infinite alternate ease-in-out; }
.tell[data-key="letgoNow"].urgent { background: #e5402a; }
.tell[data-key="pump"] { background: #7a4cc2; }
@keyframes tellpop { from { scale: 1; } to { scale: 1.12; } }

/* praise pops and banners */
.praise { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); font-size: clamp(26px, 8vw, 40px); font-weight: 900; opacity: 0;
  text-shadow: 0 3px 0 rgba(0, 40, 60, 0.45), 0 8px 24px rgba(0, 30, 45, 0.4); white-space: nowrap; }
.praise.show { animation: praise 1.1s ease-out forwards; }
.praise.good, .praise.perfect { color: #9dffb9; }
.praise.bad, .praise.late { color: #ffb4a8; }
.praise.warn { color: #ffd23f; }
@keyframes praise { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 30% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
.banner { position: absolute; left: 50%; top: 20%; transform: translate(-50%, -50%) rotate(-4deg); padding: 10px 26px; border-radius: 18px; font-size: clamp(34px, 11vw, 64px); font-weight: 900;
  letter-spacing: 0.02em; opacity: 0; white-space: nowrap; color: #fff; background: #0e3446; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25), 0 20px 50px rgba(0, 20, 35, 0.45); }
.banner.show { animation: banner 1.9s cubic-bezier(.22, 1, .36, 1) forwards; }
.banner.size-big { background: #1d8fa3; }
.banner.size-trophy { background: #7a4cc2; }
.banner.size-monster { background: #c2264c; font-size: clamp(40px, 13vw, 76px); }
.banner.clean { background: #2fae63; font-size: clamp(26px, 8vw, 44px); top: 28%; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-4deg) scale(2.2); } 18% { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg) scale(0.92); } 28% { transform: translate(-50%, -50%) rotate(-4deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) rotate(-4deg) scale(1); } }
.badge-clean { background: #2fae63; color: #fff; }

/* the aim's interest label */
.interest { position: absolute; left: 0; top: 0; padding: 6px 12px; border-radius: 999px; background: var(--glass); font-weight: 900; font-size: 15px; opacity: 0; white-space: nowrap; }
.interest.show { opacity: 1; }
.interest[data-hot="hot"] { background: #e08a00; }
.interest[data-hot="warm"] { background: #1d8fa3; }

/* the shop */
.shop-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0s 0.2s; }
.shop-wrap.open { visibility: visible; opacity: 1; transition: opacity 0.2s; pointer-events: auto; background: rgba(4, 30, 42, 0.55); }
.shop { width: min(400px, 100%); max-height: calc(100% - 24px); overflow: auto; box-sizing: border-box; padding: 16px; border-radius: 26px; background: var(--cream); color: var(--ink); box-shadow: 0 20px 50px rgba(0, 20, 35, 0.45); }
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.shop-title { margin: 0; font-size: 26px; font-weight: 900; }
.shop-coins { color: #fff; }
.shop-list { display: flex; flex-direction: column; gap: 8px; }
.shop-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 18px; background: #eaf5f2; }
.shop-row.owned { opacity: 0.6; }
.shop-icon { width: 36px; height: 36px; flex: none; border-radius: 12px; background: #cfe9e3; position: relative; }
.shop-icon-rod { background: linear-gradient(135deg, transparent 45%, #2b3a55 46% 54%, transparent 55%), #cfe9e3; }
.shop-icon-line { background: radial-gradient(circle, #fff 0 25%, #1d8fa3 26% 60%, #cfe9e3 61%); }
.shop-icon-bait::after { content: ""; position: absolute; inset: 0; margin: auto; }
.shop-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.shop-txt b { font-size: 17px; }
.shop-txt small { font-size: 13px; opacity: 0.75; line-height: 1.2; }
.shop-buy { flex: none; min-width: 84px; min-height: 48px; font-size: 17px; background: var(--coin); color: #5a3800; box-shadow: 0 4px 0 var(--coin-dark); }
.shop-buy .coin { width: 18px; height: 18px; }
.shop-buy:disabled { background: #d5dfdc; color: #6c7f86; box-shadow: none; cursor: default; }
.shop-close { width: 100%; margin-top: 12px; flex: none; }
.banner { max-width: calc(100vw - 48px); box-sizing: border-box; white-space: normal; text-align: center; line-height: 1.05; }
.banner.clean { font-size: clamp(22px, 6.5vw, 40px); }
@media (max-height: 460px) { .banner { top: 34%; font-size: clamp(28px, 7vh, 44px); } .banner.size-monster { font-size: clamp(32px, 9vh, 52px); } }

/* the "Visser" picker (art pass 1, src/hud/anglerpanel.js); with the meta layer the UI kit (src/ui/styles.js) restyles it
   and moves the button into the goal row */
.pill-angler { pointer-events: auto; position: fixed; left: 12px; top: calc(var(--safe-t) + 64px); z-index: 3; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px;
  background: var(--cream); color: var(--ink); font: 800 15px/1 var(--font); box-shadow: 0 2px 0 rgba(10, 50, 70, 0.28); cursor: pointer; touch-action: manipulation; }
.angler-wrap { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(4, 30, 42, 0.45);
  visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0s 0.2s; }
.angler-wrap.open { visibility: visible; opacity: 1; transition: opacity 0.2s; pointer-events: auto; }
.angler-card { width: min(340px, 100%); max-height: 80vh; overflow: auto; box-sizing: border-box; padding: 14px 14px 12px; border-radius: 18px; background: var(--cream); color: var(--ink);
  font: 700 15px/1.2 var(--font); transform: translateY(16px); transition: transform 0.25s cubic-bezier(.22, 1, .36, 1); }
.angler-wrap.open .angler-card { transform: none; }
.angler-title { font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.angler-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.angler-sub { margin-bottom: 6px; }
.angler-swatches { display: flex; gap: 8px; margin-bottom: 12px; }
.angler-btn { min-height: 44px; border-radius: 12px; border: 2px solid rgba(14, 52, 70, 0.2); background: #fff; color: var(--ink); font: 800 15px/1 var(--font); cursor: pointer; touch-action: manipulation; }
.angler-btn.on { border-color: #C4553A; background: #F3E6CC; }
.angler-swatch { flex: 1 1 0; }
.angler-done { width: 100%; }
