/* BitKoi design system: Naturalist Glass (DESIGN-BIBLE V-5).
   One stylesheet for every page. The live 3D render is the hero; UI floats on it as frosted glass: translucent white,
   backdrop blur, thin light borders, soft shadows, Manrope, white type, minimal chrome.
   Sections: 1 tokens · 2 base · 3 icons · 4 glass components · 5 navigation · 6 fish cards (G-9) · 7 page shell. */

@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url('assets/manrope.ttf') format('truetype'); }
.environment-chip { display:inline-flex; flex-shrink:0; padding:1px 6px; border:1px solid rgba(255,220,145,.8); border-radius:999px; background:#57411f; color:#fff3ce; font-size:9px; font-weight:800; line-height:13px; letter-spacing:.08em; }
#nav .brand:has(.environment-chip) { flex-direction:column; justify-content:center; gap:1px; }

/* ---------- 1. tokens ---------- */
:root {
  --font: Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
  /* ink: white type on glass */
  --ink: #fff; --ink-2: rgba(255,255,255,.86); --ink-3: rgba(255,255,255,.66); --ink-4: rgba(255,255,255,.45);
  --ink-dark: #0d2420;                       /* type on the solid white primary button */
  /* glass surfaces: a whisper of deep pond green under the white keeps white type readable over bright renders */
  --glass: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.09)), rgba(14,40,36,.30);
  --glass-strong: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.11)), rgba(12,34,31,.46);
  --glass-soft: rgba(255,255,255,.12);       /* chips, fields, secondary buttons */
  --glass-hover: rgba(255,255,255,.22);
  --glass-press: rgba(255,255,255,.30);
  --line: rgba(255,255,255,.26); --line-soft: rgba(255,255,255,.16); --line-strong: rgba(255,255,255,.52);
  --blur: blur(22px) saturate(1.35) brightness(.86);
  --blur-soft: blur(14px) saturate(1.2) brightness(.9);
  /* radii */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;
  /* shadows */
  --sheen: inset 0 1px 0 rgba(255,255,255,.22);
  --shadow-1: var(--sheen), 0 8px 24px -12px rgba(2,16,14,.5);
  --shadow-2: var(--sheen), 0 18px 44px -18px rgba(2,16,14,.6), 0 6px 14px -8px rgba(2,16,14,.35);
  --text-shadow: 0 1px 2px rgba(3,18,16,.35), 0 0 14px rgba(3,18,16,.22);
  /* spacing (4 px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  /* type scale */
  --fs-xs: 12px; --fs-sm: 13.5px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 21px; --fs-2xl: 28px; --fs-3xl: clamp(34px, 6vw, 56px);
  /* brand and states: kohaku red, used sparingly (recording) */
  --koi: #ed3724; --koi-soft: rgba(237,55,36,.82); --pearl: #f2f2ed;
  --ok: #c9ffd9; --warn: #ffe2a8;
  --uncommon: #b9f5d8; --rare: #bfe0ff; --mythic: linear-gradient(90deg, #ffc6ea, #ffe39a, #a9fff0); --legendary: #ffe39a;
  /* touch */
  --tap: 44px;
  /* the deep-pond backdrop behind glass pages */
  --backdrop: radial-gradient(120% 80% at 30% 0%, #2c5b4f, #0f2a26 55%, #081716);
  color-scheme: dark;
}

/* ---------- 2. base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #0b201d; color: var(--ink); font: 500 var(--fs-md)/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.5); }
a:hover { text-decoration-color: #fff; }
h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); letter-spacing: -.035em; line-height: 1.02; margin: 0 0 10px; }
h2 { font-size: clamp(22px, 3vw, 30px); margin: 56px 0 8px; }
h3 { font-size: var(--fs-lg); margin: 0 0 6px; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sub { color: var(--ink-2); font-size: 16px; max-width: 640px; margin: 0 0 12px; }
.meta { color: var(--ink-3); font-size: var(--fs-sm); }
.dim { color: var(--ink-4); }
.on-render { text-shadow: var(--text-shadow); }
/* No logo is chosen yet (owner): the name is plain text in the Naturalist Glass type. */
.wordmark { display: inline-block; font: 800 20px/1 var(--font); letter-spacing: -.02em; color: var(--ink); text-shadow: 0 1px 8px rgba(3,18,16,.35); }

/* ---------- 3. icons (src/icons.js) ---------- */
.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -4px; }
.ico.sm { width: 16px; height: 16px; vertical-align: -3px; }
.ico.lg { width: 24px; height: 24px; }
.ico.xl { width: 32px; height: 32px; }
.fish-sex { display: inline-flex; vertical-align: -2px; color: var(--ink-2); }
.fish-sex .ico { width: .82em; height: .82em; min-width: 14px; min-height: 14px; }

/* ---------- 4. glass components ---------- */
.glass-panel, .card { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); color: var(--ink); }
.card { display: block; padding: var(--s4) var(--s5); text-decoration: none; }
a.card:hover { background: var(--glass-strong); }
.panel-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.01em; margin: 0 0 6px; }
.panel-title .ico { width: 22px; height: 22px; }
.eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-2); }

/* chips: small glass pills for status, credits, rarity */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--glass-soft); -webkit-backdrop-filter: var(--blur-soft); backdrop-filter: var(--blur-soft); border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; white-space: nowrap; text-decoration: none; }
.chip .ico { width: 16px; height: 16px; vertical-align: 0; }
a.chip:hover { background: var(--glass-hover); }

/* buttons: primary is solid white; .alt/.ghost is glass; .icon is a round 44+ px glass button */
.btn, .glass-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px;
  border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.6); background: #fff; color: var(--ink-dark);
  font: 800 var(--fs-md)/1 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 18px -10px rgba(2,16,14,.55); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.btn:hover:not(:disabled), .glass-btn:hover:not(:disabled) { background: #effffa; transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); background: #e2f6f0; }
.btn.alt, .btn.ghost { background: var(--glass-soft); color: var(--ink); border-color: var(--line-strong); -webkit-backdrop-filter: var(--blur-soft); backdrop-filter: var(--blur-soft); box-shadow: var(--sheen); }
.btn.alt:hover:not(:disabled), .btn.ghost:hover:not(:disabled) { background: var(--glass-hover); }
.btn.alt:active:not(:disabled), .btn.ghost:active:not(:disabled) { background: var(--glass-press); }
.btn:disabled, .glass-btn:disabled { background: rgba(255,255,255,.10); color: var(--ink-3); border-color: var(--line-soft); cursor: default; box-shadow: none; transform: none; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn.block { width: 100%; }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: var(--fs-lg); border-radius: 18px; }
.btn.icon { width: var(--tap); min-width: var(--tap); padding: 0; border-radius: var(--r-pill); }
.btn.icon.lg { width: 52px; min-width: 52px; height: 52px; }
.btn.link { min-height: 36px; padding: 0 2px; background: none; border: 0; box-shadow: none; color: var(--ink-2); font-weight: 700; font-size: var(--fs-sm); text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
.btn.link:hover:not(:disabled) { background: none; color: #fff; transform: none; }
.btn .ico { width: 20px; height: 20px; }

/* fields */
.field, select, input[type="text"], input[type="number"], input[type="search"], input:not([type]) {
  min-height: var(--tap); border-radius: var(--r-sm); padding: 0 14px; background: var(--glass-soft); border: 1px solid var(--line); color: var(--ink);
  -webkit-backdrop-filter: var(--blur-soft); backdrop-filter: var(--blur-soft); font: 600 var(--fs-sm) var(--font); }
input::placeholder { color: var(--ink-3); }
select option { background: #12302b; color: #fff; }

/* segmented tabs (pond tabs, page sets) */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); box-shadow: var(--shadow-1); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent;
  color: var(--ink-2); font: 700 var(--fs-sm) var(--font); cursor: pointer; white-space: nowrap; }
.seg button:hover { background: rgba(255,255,255,.12); color: #fff; }
.seg button[aria-selected="true"], .seg button.on { background: #fff; color: var(--ink-dark); box-shadow: 0 4px 12px -6px rgba(2,16,14,.5); }
.seg button.new { color: #fff; border: 1px dashed rgba(255,255,255,.4); }

/* meters (growth, comfort): a thin white bar on glass */
.meter { height: 6px; border-radius: 6px; background: rgba(255,255,255,.2); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.5); }
.stat { display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-row b { color: #fff; font-weight: 800; }

/* switches (settings) */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: var(--tap); padding: 0 4px; background: none; border: 0; color: #fff; font: 700 var(--fs-sm) var(--font); cursor: pointer; text-align: left; }
.switch .lbl { display: inline-flex; align-items: center; gap: 10px; }
.switch .track { position: relative; width: 44px; height: 26px; flex: none; border-radius: 26px; background: rgba(255,255,255,.18); border: 1px solid var(--line); transition: background .2s; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .2s; }
.switch[aria-pressed="true"] .track { background: rgba(201,255,217,.55); }
.switch[aria-pressed="true"] .track::after { transform: translateX(18px); }

/* toast (flash messages) */
.toast { position: fixed; z-index: 40; left: 50%; bottom: 32px; transform: translate(-50%, 8px); max-width: min(520px, calc(100vw - 32px)); padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
  color: #fff; font-weight: 700; font-size: var(--fs-sm); text-align: center; opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* disclosure */
details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 700; color: var(--ink-2); }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
details[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details > summary:hover { color: #fff; }

/* notes */
.note { border: 1px solid var(--line); background: rgba(255,255,255,.08); -webkit-backdrop-filter: var(--blur-soft); backdrop-filter: var(--blur-soft); border-radius: var(--r-md);
  padding: 10px 14px; font-size: var(--fs-sm); color: var(--ink-2); max-width: 720px; margin: 10px 0; }
.note a { color: #fff; }

/* rarity pill outside cards */
.tier { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--glass-soft); border: 1px solid var(--line); color: #fff; font: 700 var(--fs-xs)/1.4 var(--font); letter-spacing: .02em; }
.tier .ico { width: 14px; height: 14px; vertical-align: 0; }
.tier.Uncommon .ico { color: var(--uncommon); } .tier.Rare .ico { color: var(--rare); } .tier.Mythic .ico { color: #ffd6f0; } .tier.Legendary .ico { color: var(--legendary); }
.tier.Rare { border-color: rgba(190,222,255,.55); } .tier.Mythic { border-color: rgba(255,214,240,.6); background: linear-gradient(100deg, rgba(255,180,230,.24), rgba(255,230,160,.18), rgba(160,255,235,.2)); }

table { border-collapse: collapse; width: 100%; } td, th { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line-soft); }

/* ---------- 5. navigation (src/site.js) ---------- */
#nav { position: sticky; top: 14px; z-index: 30; display: flex; align-items: center; gap: 6px; margin: 14px auto 0; max-width: 1200px; width: calc(100% - 28px);
  padding: 8px 8px 8px 18px; border-radius: var(--r-lg); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); box-shadow: var(--shadow-1); }
#nav .brand { display: flex; align-items: center; min-height: var(--tap); padding-right: 14px; margin-right: 4px; }
#nav .links { display: flex; gap: 2px; }
#nav .links a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14.5px; }
#nav .links a:hover { color: #fff; background: rgba(255,255,255,.10); }
#nav .links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px var(--line); }
#nav .links a.play { background: #fff; color: var(--ink-dark); margin-left: 6px; order: -1; }
#nav .links a.play:hover { background: #effffa; color: var(--ink-dark); }
#nav .grow { flex: 1; }
#nav .cr .cr-w { font-weight: 600; color: var(--ink-2); }
#nav .cr { margin-right: 6px; }
#nav .cr .ico { color: #ffe9b0; }
.tabbar { display: none; }
@media (max-width: 640px) {
  #nav { top: 8px; margin-top: 8px; width: calc(100% - 16px); padding: 6px 6px 6px 14px; border-radius: 20px; }
  #nav .links { display: none; }
  #nav .wordmark { font-size: 18px; }
  /* phone: the main sections live in a bottom tab bar, like an app */
  .tabbar { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px; border-radius: 24px; background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 18px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 11.5px; letter-spacing: .01em; }
  .tabbar a .ico { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.16); }
  body.has-tabbar { padding-bottom: 84px; }
}

/* ---------- 6. fish cards ---------- */
/* G-9 hero portraits, Naturalist Glass (V-5). The render fills the card; the nameplate floats on it as frosted glass.
   Rarity is felt in the frame: Uncommon a jade edge, Rare a silver-blue foil edge and slow light sweep, Mythic a
   holographic foil edge and a brighter sweep. Legendary reserves gold foil (GE-8). */
@property --foil-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.fish-card { --foil: linear-gradient(rgba(255,255,255,.26), rgba(255,255,255,.12)); --foil-width: 1px; --sweep: 0; --portrait-delay: 0s; --portrait-duration: 8s;
  position: relative; display: block; isolation: isolate; container-type: inline-size; aspect-ratio: 6 / 5; padding: 0; overflow: hidden;
  border: 0; border-radius: 26px; background: radial-gradient(120% 90% at 50% 30%, #2f6b5f, #0e2b27 60%, #08181a); color: #fff; text-decoration: none;
  font-family: var(--font); font-weight: 500;
  box-shadow: 0 1px 0 rgba(255,255,255,.10) inset, 0 22px 48px -18px rgba(0,0,0,.65), 0 8px 18px -10px rgba(0,0,0,.45);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.fish-card[data-set="bamboo-maple"] { background: linear-gradient(180deg, #5d7a2c, #2f5a2a 48%, #1f7c78 52%, #135a5a); }
.fish-card[data-set="cliffside"] { background: linear-gradient(180deg, #4a3d52, #6b5a4a 30%, #2d4a32 48%, #1f7c78 52%, #135a5a); }
.fish-card[data-set="tropical"] { background: linear-gradient(180deg, #3d5a22, #4a3a2a 40%, #2c5a2a 48%, #1f7c78 52%, #135a5a); }
.fish-card[data-set="temple"] { background: linear-gradient(180deg, #2d3a22, #5a2a22 30%, #3a3a3a 46%, #1f7c78 52%, #135a5a); }
.fish-card[data-set="mountain"] { background: linear-gradient(180deg, #e6905a, #c87fa8 30%, #4a6a3a 48%, #1f7c78 52%, #135a5a); }
.fish-card[data-set="observatory"] { background: linear-gradient(180deg, #121a2e, #22304a 40%, #1a2a2a 48%, #135a5a 52%, #0c3a3e); }
.fish-card.Uncommon { --foil: linear-gradient(140deg, rgba(196,255,226,.75), rgba(120,214,170,.35) 40%, rgba(220,255,240,.7) 70%, rgba(110,200,160,.35)); --foil-width: 1.5px; }
.fish-card.Rare { --foil: conic-gradient(from var(--foil-angle), #f4fbff, #8cc2ff, #e8f4ff, #5f9df2, #ffffff, #a9d4ff, #f4fbff); --foil-width: 2.5px; --sweep: .7; }
.fish-card.Mythic { --foil: conic-gradient(from var(--foil-angle), #ffd9f1, #ffd27a, #b7fff0, #8fb8ff, #e3a6ff, #ff9fcf, #fff2b0, #ffd9f1); --foil-width: 3px; --sweep: .95; }
.fish-card.Legendary { --foil: conic-gradient(from var(--foil-angle), #fff4c9, #e3b450, #fff8de, #b8862e, #ffe9a3, #fff4c9); --foil-width: 3px; --sweep: 1; }
.fish-card:hover, .fish-card:focus-within, .fish-card.portrait-live { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 34px 60px -20px rgba(0,0,0,.7), 0 10px 24px -10px rgba(0,0,0,.5); }
.portrait-window { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; }
.portrait-window::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(90% 80% at 50% 42%, transparent 55%, rgba(4,16,16,.38) 100%), linear-gradient(180deg, rgba(5,20,18,.34) 0%, rgba(5,20,18,0) 20%, rgba(5,20,18,0) 55%, rgba(5,20,18,.45) 100%); }
.fish-card .portrait-plate, .fish-card .portrait-fish, .fish-card .portrait-live-canvas { position: absolute; background: none; border-radius: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-plate { opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); animation: portrait-drift 26s ease-in-out infinite alternate; animation-delay: var(--portrait-delay); }
.fish-card[data-plate-ready] .portrait-plate { opacity: 1; transform: none; }
.portrait-grade { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(62% 58% at 26% 20%, rgba(255,210,140,.95), rgba(255,196,130,.28) 55%, transparent 82%), radial-gradient(58% 62% at 90% 82%, rgba(30,80,150,.7), transparent 72%); }
.portrait-glow { position: absolute; inset: -10%; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: repeating-linear-gradient(104deg, transparent 0 7%, rgba(255,232,180,.16) 9%, transparent 12% 17%, rgba(255,240,200,.10) 19%, transparent 23% 31%),
    radial-gradient(48% 42% at 44% 36%, rgba(255,226,170,.42), transparent 72%);
  -webkit-mask: linear-gradient(180deg, #000, rgba(0,0,0,.6) 45%, transparent 75%); mask: linear-gradient(180deg, #000, rgba(0,0,0,.6) 45%, transparent 75%);
  filter: blur(3px); animation: portrait-rays 16s ease-in-out infinite alternate; animation-delay: var(--portrait-delay); }
.portrait-fish { z-index: 2; animation: portrait-float var(--portrait-duration) ease-in-out infinite; animation-delay: var(--portrait-delay); }
.fish-card:not([data-portrait-ready="gpu"]) .portrait-fish { filter: drop-shadow(0 10px 10px rgba(0,0,0,.35)); }
.portrait-live-canvas { z-index: 2; }
.portrait-live .portrait-fish { visibility: hidden; animation: none; }
.portrait-caustics { position: absolute; inset: -25%; z-index: 3; pointer-events: none; mix-blend-mode: soft-light; opacity: .55;
  background: radial-gradient(9% 6% at 30% 30%, rgba(255,255,240,.9), transparent), radial-gradient(7% 5% at 62% 24%, rgba(255,255,240,.8), transparent),
    radial-gradient(11% 7% at 48% 52%, rgba(255,255,240,.7), transparent), radial-gradient(8% 5% at 72% 58%, rgba(255,255,240,.75), transparent),
    radial-gradient(10% 6% at 22% 66%, rgba(255,255,240,.6), transparent), radial-gradient(6% 4% at 40% 40%, rgba(255,255,240,.8), transparent);
  filter: blur(6px); animation: portrait-caustics 14s ease-in-out infinite alternate; animation-delay: var(--portrait-delay); }
.portrait-sweep { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: var(--sweep); mix-blend-mode: screen;
  background: linear-gradient(112deg, transparent 44%, rgba(255,255,255,.10) 47.5%, rgba(255,250,235,.62) 50%, rgba(255,255,255,.10) 52.5%, transparent 56%) no-repeat;
  background-size: 300% 100%; background-position: 140% 0; animation: portrait-sweep 9s cubic-bezier(.45,0,.25,1) infinite; animation-delay: var(--portrait-delay); }
.fish-card.Mythic .portrait-sweep { background-image: linear-gradient(112deg, transparent 42%, rgba(255,160,225,.22) 46%, rgba(255,246,220,.7) 49.5%, rgba(150,255,235,.45) 52%, rgba(150,180,255,.16) 55%, transparent 58%); }
.portrait-foil { position: absolute; inset: 0; z-index: 7; pointer-events: none; border-radius: inherit; padding: var(--foil-width); background: var(--foil);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: portrait-foil 10s linear infinite; }
/* Rare and Mythic: the edge glows inward like foil catching light; Mythic adds a slow holographic sheen over the art. */
.fish-card.Rare::after, .fish-card.Mythic::after, .fish-card.Legendary::after { content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit; }
.fish-card.Rare::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 0 26px rgba(150,200,255,.38); }
.fish-card.Mythic::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 0 30px rgba(255,190,235,.40), inset 0 0 70px rgba(150,240,255,.16); }
.fish-card.Legendary::after { box-shadow: inset 0 0 0 1px rgba(255,248,220,.3), inset 0 0 34px rgba(255,214,120,.45); }
.fish-card.Mythic .portrait-window::before, .fish-card.Legendary .portrait-window::before { content: ''; position: absolute; inset: -30%; z-index: 5; pointer-events: none; mix-blend-mode: color-dodge; opacity: .24;
  background: conic-gradient(from var(--foil-angle) at 60% 40%, #ff8ad8, #ffd86b, #7dffe0, #7fa8ff, #e08bff, #ff8ad8); filter: blur(22px); animation: portrait-foil 14s linear infinite; }
.fish-card.Legendary .portrait-window::before { background: conic-gradient(from var(--foil-angle) at 60% 40%, #ffe7a0, #b8862e, #fff6d8, #d9a64a, #ffe7a0); }
.fish-card.Rare .tier { background: rgba(170,210,255,.20); } .fish-card.Mythic .tier { background: linear-gradient(100deg, rgba(255,180,230,.28), rgba(255,230,160,.22), rgba(160,255,235,.24)); }
/* rarity and nameplate: frosted glass on the render */
.fish-card .tier { position: absolute; z-index: 8; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 11px;
  border-radius: 999px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.28); color: #fff; font: 700 12px/1 var(--font); letter-spacing: .04em; text-transform: none; }
.fish-card .tier i { font-style: normal; font-size: 13px; }
.fish-card.Uncommon .tier i { color: #b9f5d8; } .fish-card.Rare .tier i { color: #bfe0ff; } .fish-card.Mythic .tier i { background: linear-gradient(90deg, #ffc6ea, #ffe39a, #a9fff0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fish-card.Rare .tier { border-color: rgba(190,222,255,.55); } .fish-card.Mythic .tier { border-color: rgba(255,214,240,.6); }
.portrait-copy { position: absolute; z-index: 8; left: 12px; right: 12px; bottom: 12px; padding: 12px 12px 12px 18px; border-radius: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center;
  background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(22px) saturate(1.25); backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(255,255,255,.26); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 30px -12px rgba(0,0,0,.45); }
.fish-card .nm, .fish-card .variety { grid-column: 1; }
.fish-card .nm { margin: 0; font-weight: 800; font-size: clamp(17px, 5.4cqi, 30px); line-height: 1.08; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.fish-card .nm a { color: inherit; text-decoration: none; }
.fish-card .nm a::after { content: ''; position: absolute; inset: 0; }   /* the nameplate is one generous tap target */
.fish-card .variety { margin-top: 4px; font-size: clamp(11.5px, 2.5cqi, 14px); color: rgba(255,255,255,.88); overflow-wrap: anywhere; }
.portrait-stage { color: rgba(255,255,255,.66); }
.portrait-stage::before { content: '·'; margin: 0 .45em; }
.portrait-price { position: relative; z-index: 1; grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 14px; }
.guide-price, .portrait-sale { grid-column: 1 / -1; }
@container (max-width: 380px) { .portrait-copy { grid-template-columns: 1fr; } .portrait-price { grid-column: 1; grid-row: auto; justify-content: space-between; margin-top: 10px; } }
.portrait-price .price { color: #fff; font-weight: 800; font-size: clamp(17px, 4.6cqi, 24px); letter-spacing: -.01em; }
.portrait-price .price small { margin-left: 5px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); letter-spacing: 0; }
.glass-btn, .fish-card .btn { position: relative; z-index: 1; min-height: 42px; padding: 0 22px; border-radius: 14px; border: 1px solid rgba(255,255,255,.5); background: #fff; color: #0d2420;
  font: 800 15px var(--font); cursor: pointer; transition: transform .2s, background .2s; }
.glass-btn:hover:not(:disabled) { transform: translateY(-1px); background: #f1fffb; }
.glass-btn:disabled, .fish-card .btn:disabled { background: rgba(255,255,255,.12); color: rgba(255,255,255,.62); border-color: rgba(255,255,255,.28); cursor: default; }
.guide-price { position: relative; z-index: 1; margin-top: 8px; font-size: 12.5px; opacity: .8; }
.portrait-sale { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 8px; }
.portrait-sale input { width: 96px; min-width: 0; flex: 0 1 96px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font: 700 14px var(--font); padding: 0 10px; }
.portrait-sale .btn { flex: 1; }
.fish-card a:focus-visible, a.fish-card:focus-visible, .fish-card button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* family tree: small portraits; the label sits on the glass as a pill */
.rel.fish-card { width: 210px; aspect-ratio: 4 / 5; border-radius: 18px; }
.rel.fish-card .rl { position: absolute; z-index: 8; right: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(5,20,18,.4); backdrop-filter: blur(10px); font-size: 11px; opacity: 1; }
.rel.fish-card .tier { left: 10px; top: 10px; padding: 4px 9px; font-size: 10.5px; }
.rel.fish-card .portrait-copy { left: 8px; right: 8px; bottom: 8px; padding: 9px 11px; border-radius: 14px; }
.rel.fish-card .portrait-copy .meta { grid-column: 1 / -1; font-size: 11px; margin-top: 2px; }
/* Portrait art/rarity must survive page themes loaded after this stylesheet. */
html[data-look]:not([data-look="current"]) #koi .fish-card.card { background: radial-gradient(120% 90% at 50% 30%, #2f6b5f, #0e2b27 60%, #08181a); color: #fff; border: 0; }
html[data-look]:not([data-look="current"]) .fish-card .portrait-window canvas { background: none; }
html[data-look]:not([data-look="current"]) .fish-card .tier { background: rgba(255,255,255,.14); color: #fff; }
html[data-look]:not([data-look="current"]) #koi .fish-card.card .nm,
html[data-look]:not([data-look="current"]) #koi .fish-card.card .nm a { color: #fff; }
@keyframes portrait-float { 0%, 100% { transform: translateY(.5%); } 50% { transform: translateY(-.6%); } }
@keyframes portrait-drift { from { transform: scale(1.02) translate(-.6%, 0); } to { transform: scale(1.05) translate(.6%, -.5%); } }
@keyframes portrait-caustics { from { transform: translate(-3%, -2%) rotate(-2deg); } to { transform: translate(3%, 2%) rotate(2deg); } }
@keyframes portrait-rays { from { transform: translateX(-3%) skewX(-2deg); opacity: .4; } to { transform: translateX(3%) skewX(2deg); opacity: .65; } }
@keyframes portrait-sweep { 0%, 55% { background-position: 140% 0; } 85%, 100% { background-position: -40% 0; } }
@keyframes portrait-foil { to { --foil-angle: 360deg; } }
@media (max-width: 600px) { .fish-card:not(.rel) { aspect-ratio: 4 / 5; border-radius: 24px; } }
@media (prefers-reduced-motion: reduce) { .portrait-fish, .portrait-plate, .portrait-caustics, .portrait-sweep, .portrait-foil, .portrait-glow { animation: none; } .fish-card { transition: none; } }
.fish-card { -webkit-backdrop-filter: none; backdrop-filter: none; }
.fish-card .tier .ico { width: 14px; height: 14px; }
.fish-card.Uncommon .tier .ico { color: #b9f5d8; } .fish-card.Rare .tier .ico { color: #bfe0ff; } .fish-card.Mythic .tier .ico { color: #ffd6f0; } .fish-card.Legendary .tier .ico { color: #ffe39a; }
.fish-card .nm .fish-sex { margin-left: 4px; }

/* ---------- 7. page shell: glass pages (home, market, guide, fish page) ---------- */
.glass-page { background: transparent; }
.page-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--backdrop); }
.page-backdrop canvas { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(18px) saturate(1.15) brightness(.78); opacity: 0; transition: opacity 1.4s ease; }
.page-backdrop canvas.on { opacity: 1; }
.page-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,20,18,.35), rgba(5,20,18,.55) 40%, rgba(5,20,18,.82)); }
main { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }
.glass-page #msg { min-height: 24px; font-weight: 700; color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.filters input { flex: 1 1 260px; max-width: 420px; padding-left: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.75' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m19.5 19.5-4.2-4.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: 14px 50%; }
.filters select { padding-right: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 26px; }
.section-head { display: flex; align-items: center; gap: 12px; margin: 56px 0 8px; }
.section-head h2 { margin: 0; }
.section-head .ico { width: 28px; height: 28px; color: var(--ink-2); }
@media (max-width: 640px) {
  main { padding: 26px 16px 40px; }
  .grid { gap: 18px; }
  .filters { margin: 14px 0 18px; } .filters > * { min-width: 0; max-width: 100%; } .filters input { width: 100%; } .filters select { flex: 1 1 140px; }
  .note { font-size: 12.5px; padding: 8px 12px; } .sub { font-size: 15px; }
  h2, .section-head { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .btn:hover:not(:disabled) { transform: none; }
}
.owner-genes { font-size: 11px; } .owner-genes th, .owner-genes td { padding: 3px 6px; }
.portrait-price .price .ico { width: .8em; height: .8em; margin-right: 6px; vertical-align: -.06em; opacity: .9; }
.guide-price .ico { vertical-align: -3px; }

/* ---------- 8. marketing pages (home, parents, press): bolder than the in-game glass ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink-dark); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
body.site { background: #0b201d; }
body.site #nav { position: fixed; left: 0; right: 0; top: 14px; margin: 0 auto; background: rgba(8,26,23,.62); }
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-items: end; overflow: hidden; isolation: isolate; background: #0b201d; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-still, #hero-live, #hero-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.hero-still { object-fit: cover; object-position: 50% 45%; }
#hero-live { opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
#hero-live.on { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(4,16,14,.86) 0%, rgba(4,16,14,.62) 34%, rgba(4,16,14,0) 62%), linear-gradient(0deg, rgba(4,16,14,.7) 0%, rgba(4,16,14,0) 40%); }
.hero-copy { width: min(620px, 100%); padding: 120px 0 64px clamp(20px, 6vw, 88px); }
.hero-logo { display: block; width: min(440px, 80%); height: auto; margin: 0 0 22px -6px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
.hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; margin: 0 0 16px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero-copy > p { font-size: clamp(16px, 1.5vw, 19px); color: #fff; max-width: 34em; margin: 0 0 26px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.stores li { display: grid; padding: 7px 16px 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.45); line-height: 1.2; }
.store-name { font-weight: 800; font-size: 15px; }
.soon { font-size: 12px; color: rgba(255,255,255,.82); font-weight: 600; }
.hero-tag { position: absolute; right: 18px; bottom: 14px; margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.55); font-size: 12.5px; font-weight: 600; color: #fff; }

body.site main { max-width: none; padding: 0; }
.band { max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 40px) 0; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff8a7a; }
.band h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; max-width: 16em; }
.band .copy p { font-size: 17.5px; line-height: 1.6; color: rgba(255,255,255,.9); max-width: 36em; }
.band .copy.narrow { max-width: 760px; }
.more-link { display: inline-block; margin-top: 8px; font-weight: 800; color: #fff; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.shot figcaption { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.78); }
.day-one { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.breed .copy { max-width: 760px; }
.rare-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.rare-row .fish-card { aspect-ratio: 4 / 5; }
.rare-note { margin: 14px 0 0; font-size: 14px; color: rgba(255,255,255,.78); }
.build .copy { max-width: 760px; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; align-items: start; }
.garden-grid { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 14px; }
.garden-grid .g-big { grid-column: span 2; grid-row: span 2; }
.garden-grid a { position: relative; display: block; height: 100%; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; }
.garden-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.garden-grid a:hover img, .garden-grid a:focus-visible img { transform: scale(1.04); }
.garden-grid span { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 10px; background: rgba(0,0,0,.68); font-weight: 800; font-size: 15px; }
.trade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.trade .btn { margin-top: 8px; }
.log { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; max-width: 820px; }
.log li { display: grid; grid-template-columns: 120px 1fr; column-gap: 24px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.16); }
.log time { grid-row: span 2; font-weight: 700; font-size: 14px; color: rgba(255,255,255,.78); padding-top: 3px; }
.log h3 { margin: 0 0 4px; font-size: 20px; }
.log p { margin: 0; color: rgba(255,255,255,.9); max-width: 40em; }
.site-foot { max-width: 1240px; margin: clamp(72px, 10vw, 120px) auto 0; padding: 32px clamp(20px, 4vw, 40px) 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; border-top: 1px solid rgba(255,255,255,.16); }
.foot-brand img { display: block; height: 24px; width: auto; margin-bottom: 10px; }
.foot-brand p { margin: 0; color: rgba(255,255,255,.8); font-size: 14px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.site-foot nav a { color: #fff; font-weight: 700; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.site-foot nav a:hover { text-decoration: underline; }
/* long-form pages (parents, press) */
body.site main.doc { max-width: 820px; margin: 0 auto; padding: 130px clamp(20px, 4vw, 40px) 0; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.04em; }
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 48px 0 10px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.92); }
.doc .lede { font-size: 20px; color: #fff; }
.doc ul { padding-left: 1.2em; }
.doc a { color: #fff; font-weight: 700; }
.press-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 16px 0 0; }
.press-shots a { display: block; color: #fff; font-size: 14px; }
.press-shots img { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 6px; }
.fact { display: grid; grid-template-columns: 160px 1fr; gap: 6px 20px; margin: 0; }
.fact dt { font-weight: 800; } .fact dd { margin: 0; color: rgba(255,255,255,.92); }
@media (max-width: 900px) {
  .day-one, .trade { grid-template-columns: 1fr; }
  .rare-row { grid-template-columns: repeat(3, minmax(240px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .rare-row > * { scroll-snap-align: start; }
  .garden-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.site #nav { top: 8px; width: calc(100% - 16px); }
  .hero { min-height: 0; display: block; }
  .hero-media { position: relative; height: 84vw; min-height: 300px; }
  .hero::after { display: none; }
  .hero-copy { padding: 22px 18px 8px; }
  .hero-logo { width: 64%; margin: 0 0 16px -4px; }
  .hero h1 { font-size: 34px; }
  .cta .btn { flex: 1 1 100%; }
  .hero-tag { top: calc(max(84vw, 300px) - 34px); bottom: auto; right: 10px; font-size: 11.5px; }
  .before-after { grid-template-columns: 1fr; }
  .garden-grid .g-big { grid-column: span 2; grid-row: auto; }
  .log li { grid-template-columns: 1fr; } .log time { grid-row: auto; }
  .site-foot { margin-bottom: 90px; }
  .fact { grid-template-columns: 1fr; } .press-shots { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .garden-grid img { transition: none; } #hero-live { display: none; } }
/* Lifecycle care: small, readable causes over the actual pond. */
.care-summary { font-size: .85rem; line-height: 1.5; margin: 12px 0; }
.care-summary p { margin: 7px 0; }
.care-summary summary, .care-options > summary, .treat-options > summary, .picnic-options > summary { min-height:44px; display:flex; align-items:center; cursor:pointer; }
.care-summary summary::before, .care-options > summary::before, .treat-options > summary::before, .picnic-options > summary::before { content:'＋'; margin-right:8px; }
.care-summary details[open] > summary::before, .care-options[open] > summary::before, .treat-options[open] > summary::before, .picnic-options[open] > summary::before { content:'−'; }
.care-summary ul { padding-left:20px; }
.care-options p, .treat-options p, .picnic-options p { font-size:.85rem; line-height:1.5; }
.care-options .btn, .treat-options .btn, .picnic-options .btn { margin:4px 4px 4px 0; white-space:normal; }
.mood-layer { pointer-events:none; position:fixed; inset:0; z-index:8; overflow:hidden; }
.mood-bubble { position:absolute; background:#f1f6e7f5; color:#234139; padding:6px 10px; border-radius:12px; font-size:12px; line-height:1.35; width:max-content; max-width:min(180px,calc(100vw - 24px)); text-align:center; box-shadow:0 2px 8px #102e2526; }
.glass-care { position:fixed; bottom:12px; left:15px; right:15px; text-align:center; color:#edf5ec; background:#173d39d9; border-radius:12px; padding:10px; pointer-events:none; }
.return-card { position:fixed; inset:0; margin:auto; width:min(calc(100vw - 32px),440px); max-height:calc(100dvh - 48px); overflow:auto; background:#edf5ec; color:#173d39; border:1px solid #fff; border-radius:18px; box-shadow:0 12px 70px #132a2866; padding:24px; }
.return-card::backdrop { background:#092a2473; }
.return-card h2 { color:inherit; font-size:1.3rem; margin:0 0 12px; }.return-card p { font-size:.9rem; line-height:1.5; }
.holding-treat #food-hint { position:fixed; z-index:45; top:170px; bottom:auto; left:50%; right:auto; transform:translateX(-50%); width:min(85vw,340px); white-space:normal; padding:12px; background:#173d39ed; color:#edf5ec; border-radius:14px; line-height:1.45; pointer-events:none; }
.holding-treat #food-hint button { display:block; margin:8px auto 0; pointer-events:auto; }
