/* Fizzopedia — chilled glass and bubbles.
   Layout: sticky tab bar over a single centred column; the shelf is an
   auto-fill can grid, tier lists are full-bleed label rows with hard edges. */

:root{
  /* Light: clear water near the surface, the same ocean as the dark theme
     seen from above. Text pairs meet WCAG AA (4.5:1) on every surface. */
  --bg:#CDEBF4; --surface:#E6F6FA; --surface-2:#D9F0F7; --line:#A8D5E3;
  --ink:#08303D; --muted:#3A6372; --accent:#006A88; --accent-soft:#B8E4F1;
  --on-accent:#F2FBFE; --danger:#A12F27; --turbo:#1C8C4A; --public:#1C8C4A;
  --trade-arrow:#22B45A; --trade-arrow-glow:rgba(34,180,90,.5);   /* an armed trade-up's flying arrows */
  --shadow:0 1px 2px rgba(8,48,61,.08),0 8px 24px -12px rgba(8,48,61,.24);
  --s:#C25B54; --a:#DE9A5E; --b:#D9CB68; --c:#7FC576; --d:#6CBDD9; --f:#9B8FD1;
  --tier-bg:#BFE2EE; --tier-row:#DDF2F8; --tier-line:#9CCBDB; --tier-ink:#141618;
  /* The can on the Account tab: a pixel sprite in the light theme's clear-water palette
     (deep-teal outline, pale aqua metal, accent-teal wrap), the same in both themes. */
  --sv-line:#08303D; --sv-hole:#062430;
  --sv-s:#7DB4C7; --sv-m:#A8D5E3; --sv-l:#D2EDF5; --sv-h:#F4FBFD;
  --sv-d:#006A88; --sv-t:#1E8DAA; --sv-c:#5DBDD5; --sv-w:#B8E4F1;
  --sv-y:#E6F6FA; --sv-yd:#B9DCE7; --sv-band:#0B3D4C; --sv-band-hi:#1C5A6C;
  /* The case-opening reel: dark game-style tiles, a gold marker, rarity colors per can. */
  --reel-bg:#0F1A20; --reel-tile:#1A262E; --reel-tile-hi:#24343E; --reel-line:#2E414C; --reel-mark:#F2C14E; --reel-text:#E4F2F6;
  /* Rarity, CS2's grade colors from common to rare (RAR in app.js names them): 1 light blue, 2 medium
     blue, 3 solid blue, 4 purple, 5 pink, 6 red, 7 gold. */
  --rar-1:#B0C3D9; --rar-1-glow:rgba(176,195,217,.35);
  --rar-2:#5E98D9; --rar-2-glow:rgba(94,152,217,.38);
  --rar-3:#4B69FF; --rar-3-glow:rgba(75,105,255,.38);
  --rar-4:#8847FF; --rar-4-glow:rgba(136,71,255,.38);
  --rar-5:#D32CE6; --rar-5-glow:rgba(211,44,230,.4);
  --rar-6:#EB4B4B; --rar-6-glow:rgba(235,75,75,.42);
  --rar-7:#E4AE39; --rar-7-glow:rgba(228,174,57,.5);
  --logo-bg:#06161B; --logo-ring:#3ACDED; --logo-ring-hi:#8BE6F7;   /* the square logo, same in both themes */
  /* can-3: the dark-mode masthead on a can (deep teal to near-black, accent bubbles), in both themes. */
  --c3-s:#33505C; --c3-m:#5A7A87; --c3-l:#8FB1BE; --c3-h:#D2E8F0;
  --c3-w0:#1F4A57; --c3-w1:#15363F; --c3-w2:#102B34; --c3-w3:#0A1F26; --c3-w4:#06161B;
  --c3-trim:#2A5866; --c3-ink:#E4F2F6; --c3-acc:#3ACDED; --c3-acc-dim:#1E7F96;
  /* can-4 (Pure): a sky-blue can with a white wave, navy name and teal/green swooshes; silver lid and
     base. Same in both themes. */
  --c4-s:#8E99A3; --c4-m:#B8C2CA; --c4-l:#DCE3E8; --c4-h:#F7FAFC;
  --c4-w0:#BBD5F0; --c4-w1:#A6C5E8; --c4-w2:#8FB3DC; --c4-w3:#779CC9;
  --c4-trim:#9AA7B1; --c4-ink:#1D2C6E; --c4-pure:#3D63B5;
  --c4-sp1:#FFFFFF; --c4-sp2:#DCEAF8; --c4-sp3:#1FA89A; --c4-sp4:#9ED8B4;
  --c4-bub:#F3F8FF; --c4-bub-dim:#D2E3F4;
  /* can-5 (Lime): lime greens, wheels with a dark rind, white pith and pale flesh; silver lid. Same in both themes. */
  --c5-w0:#CDEF73; --c5-w1:#B5E152; --c5-w2:#97C93A; --c5-w3:#77A82A;
  --c5-rind:#2F6B12; --c5-pith:#F6FCE6; --c5-flesh:#E2F59A; --c5-ink:#1F4D0E;
  --c5-bub:#F8FFEC; --c5-bub-dim:#DCF2B0;
  /* can-6 (Blackberry): deep plums, near-black berries with lavender highlights and green caps; silver lid. Same in both themes. */
  --c6-w0:#8E5BB5; --c6-w1:#7A49A1; --c6-w2:#643A87; --c6-w3:#4D2C6B;
  --c6-berry:#1E0F2B; --c6-berry-mid:#3E1F55; --c6-berry-hi:#A985D6;
  --c6-leaf:#5FA046; --c6-leaf-dark:#336B24; --c6-ink:#F4ECFB;
  --c6-bub:#EEDFFB; --c6-bub-dim:#B795D8;
  /* can-7 (Guava): soft pinks, guava halves with a green rind, pale pink flesh, deep-pink middle and cream seeds;
     dark-green name outlined in white; silver lid. Same in both themes. */
  --c7-w0:#F9B3C2; --c7-w1:#F29BAE; --c7-w2:#E48299; --c7-w3:#CB6782;
  --c7-rind:#6FA83F; --c7-rind-dark:#3F7022; --c7-flesh:#FFD3D6; --c7-core:#EE6A80; --c7-seed:#FFF4DC;
  --c7-ink:#2C5A1A; --c7-edge:#FFF7F3; --c7-bub:#FFF1F4; --c7-bub-dim:#FAC7D3;
  /* can-0, the free can: can-3's deep teal, with the Fizzopedia bubbles in the logo's cyan. */
  --c0-w0:var(--c3-w0); --c0-w1:var(--c3-w1); --c0-w2:var(--c3-w2); --c0-w3:var(--c3-w3);
  --c0-bub:var(--c3-acc); --c0-bub-dim:var(--c3-acc-dim); --c0-ring:var(--c3-acc); --c0-glint:var(--c3-ink);
  /* The flavor cans (flavorCan() in app.js), one prefix each: -w0 to -w3 the wrap, light to dark; -ink and
     -edge the name; -bub and -bub-dim its bubbles; the rest its fruit. --fr-* are leaves and stalks they share.
     Same in both themes, like the cans above. */
  --fr-leaf:#5FA046; --fr-leaf-dark:#336B24; --fr-vein:#2A5A1C; --fr-stem:#5A3A1A;
  --lm-w0:#F7DD52; --lm-w1:#EFCD35; --lm-w2:#E0B820; --lm-w3:#C49C12; --lm-ink:#5A4300; --lm-edge:#FFFBE6;
  --lm-bub:#FFFBE6; --lm-bub-dim:#FBEB9A; --lm-rind:#A87A00; --lm-pith:#FFFBE6; --lm-flesh:#FFF3A8;
  --or-w0:#FFB45C; --or-w1:#FCA040; --or-w2:#F28A28; --or-w3:#D9711A; --or-ink:#7A2E00; --or-edge:#FFF4E2;
  --or-bub:#FFF4E2; --or-bub-dim:#FFD39E; --or-rind:#B04A06; --or-pith:#FFF4E2; --or-flesh:#FFCF80;
  --gf-w0:#FFC9B5; --gf-w1:#FBAF96; --gf-w2:#F2937A; --gf-w3:#DC775F; --gf-ink:#7A1A28; --gf-edge:#FFF2E6;
  --gf-bub:#FFF2E6; --gf-bub-dim:#FFD6C6; --gf-rind:#C2601E; --gf-pith:#FFF2E6; --gf-flesh:#F25C6E; --gf-flesh-hi:#FF8A94;
  --wm-w0:#FFC6CC; --wm-w1:#FCA9B3; --wm-w2:#F28C99; --wm-w3:#DC6F7E; --wm-ink:#2F6B22; --wm-edge:#FFF6F4;
  --wm-bub:#FFF6F4; --wm-bub-dim:#FFD8DC; --wm-rind:#2F6B22; --wm-rind-hi:#6FB04A; --wm-white:#F4FCE8; --wm-flesh:#F23A4E; --wm-seed:#2A1A1A;
  --cu-w0:#9FD8A0; --cu-w1:#86C98A; --cu-w2:#6DB574; --cu-w3:#559E5E; --cu-ink:#F7FFF2; --cu-edge:#1F5A1E;
  --cu-bub:#EAFBE6; --cu-bub-dim:#BDE8BC; --cu-rind:#1F5A1E; --cu-rind-hi:#4E9A3A; --cu-flesh:#BFE8A6; --cu-core:#E6F8D8; --cu-seed:#F8FFF0;
  --ch-w0:#FBC0CB; --ch-w1:#F4A3B2; --ch-w2:#E88598; --ch-w3:#D06A80; --ch-ink:#7A0A1E; --ch-edge:#FFF6F8;
  --ch-bub:#FFF6F8; --ch-bub-dim:#FBD5DC; --ch-dark:#7A0A1E; --ch-mid:#C8163A; --ch-light:#EE4A62; --ch-hi:#FFC7D0; --ch-stem:#3F7A2A;
  --sb-w0:#FFE0E0; --sb-w1:#FFCACC; --sb-w2:#F7AFB3; --sb-w3:#E8939A; --sb-ink:#8E1020; --sb-edge:#FFF8F6;
  --sb-bub:#FFFFFF; --sb-bub-dim:#FFD6D8; --sb-dark:#8E1020; --sb-mid:#D8283A; --sb-light:#F55A62; --sb-seed:#FFE27A;
  --rb-w0:#FFC2D2; --rb-w1:#F9A6BC; --rb-w2:#EE88A3; --rb-w3:#D86A88; --rb-ink:#7A0F2E; --rb-edge:#FFF4F8;
  --rb-bub:#FFF4F8; --rb-bub-dim:#FFD3E0; --rb-berry:#7A0F2E; --rb-berry-mid:#C8204C; --rb-berry-hi:#FF8FAE;
  --bb-w0:#C8D8F8; --bb-w1:#AEC4F0; --bb-w2:#93ACE4; --bb-w3:#7891D0; --bb-ink:#1A2050; --bb-edge:#F4F7FF;
  --bb-bub:#F4F7FF; --bb-bub-dim:#DCE6FB; --bb-dark:#1A2050; --bb-mid:#2E3A80; --bb-light:#4E5EA8; --bb-hi:#A8B8E8; --bb-crown:#0E1230;
  --pa-w0:#BFE7E0; --pa-w1:#A4DAD2; --pa-w2:#86C8BE; --pa-w3:#68B2A6; --pa-ink:#6A3A08; --pa-edge:#FFFBE6;
  --pa-bub:#F4FFFC; --pa-bub-dim:#D8F2EE; --pa-light:#FFD84A; --pa-mid:#F2B42A; --pa-dark:#C2801A; --pa-line:#8A5A10; --pa-dot:#6A4008;
  --pa-leaf:#3F9A3A; --pa-leaf-dark:#2A6E26;
  --ap-w0:#D9F0A8; --ap-w1:#C4E486; --ap-w2:#A8D266; --ap-w3:#8AB84C; --ap-ink:#8E1420; --ap-edge:#F7FFE8;
  --ap-bub:#F7FFE8; --ap-bub-dim:#E2F4C0; --ap-dark:#8E1420; --ap-mid:#D2283A; --ap-light:#F25A62; --ap-hi:#FFC2C0;
  --pc-w0:#FFE0C8; --pc-w1:#FDCCAA; --pc-w2:#F6B48C; --pc-w3:#E49A72; --pc-ink:#8A3418; --pc-edge:#FFF8F2;
  --pc-bub:#FFF8F2; --pc-bub-dim:#FFE4D0; --pc-dark:#C2462A; --pc-mid:#F07A4E; --pc-light:#FCA672; --pc-hi:#FFD6B0;
  --pc-blush:#D8503A; --pc-blush-hi:#E8664A;
  --cr-w0:#F1A7B5; --cr-w1:#E78A9C; --cr-w2:#D66C82; --cr-w3:#BC5068; --cr-ink:#5E0618; --cr-edge:#FFF3F5;
  --cr-bub:#FFF3F5; --cr-bub-dim:#F8CDD6; --cr-dark:#5E0618; --cr-mid:#A8142E; --cr-light:#D8344C; --cr-hi:#FF9AAA;
  --bc-w0:#C85A72; --bc-w1:#B0465E; --bc-w2:#93354B; --bc-w3:#74273A; --bc-ink:#FFF0F4; --bc-edge:#22040C;
  --bc-bub:#FCE0E8; --bc-bub-dim:#D88A9E; --bc-dark:#22040C; --bc-mid:#4E0A1C; --bc-light:#86203A; --bc-hi:#E07A94;
  --kw-w0:#E6EDB8; --kw-w1:#D3DF98; --kw-w2:#BCCD78; --kw-w3:#9FB65C; --kw-ink:#4A3418; --kw-edge:#FBFFE8;
  --kw-bub:#FBFFE8; --kw-bub-dim:#EDF3CC; --kw-rind:#5A3E1E; --kw-rind-hi:#8A6A3A; --kw-flesh:#6CB82E; --kw-flesh-hi:#A6DA60;
  --kw-core:#F4F8D8; --kw-seed:#1A1A10;
  --mg-w0:#FFE58C; --mg-w1:#FFD666; --mg-w2:#F8BF40; --mg-w3:#E5A428; --mg-ink:#2F5A1A; --mg-edge:#FFFBE6;
  --mg-bub:#FFFBE6; --mg-bub-dim:#FFEDB0; --mg-dark:#B8401A; --mg-mid:#F07A2A; --mg-light:#FBB040; --mg-hi:#FFE08A;
  --mg-blush:#D8402A; --mg-blush-hi:#E85A34;
  --bo-w0:#FFB896; --bo-w1:#FA9A76; --bo-w2:#EE7A56; --bo-w3:#D65E3C; --bo-ink:#FFF6F0; --bo-edge:#6E1406;
  --bo-bub:#FFF0E8; --bo-bub-dim:#FFCFB8; --bo-rind:#A8380A; --bo-pith:#FFF0E4; --bo-flesh:#B0102C; --bo-flesh-hi:#E23A48;
  /* Fly Tab (assets/flight.js): a daytime sky, zenith to horizon, the sun, the cloud sea, island dirt and
     the tab's shadow on grass. The tab and can reuse --sv-*, grass the lime greens, rock can-3's steel,
     flowers guava, blackberry, lemon, blueberry and orange; the sparkling water is --sv-* too. Same in both
     themes, like the cans. */
  --fl-sky-0:#CBEDF7; --fl-sky-1:#A3DBEF; --fl-sky-2:#76C4E3; --fl-sky-3:#4AA7D0; --fl-sky-4:#2886B4;
  --fl-deep-0:#3E7C8E; --fl-deep-1:#2F6678; --fl-deep-2:#235263; --fl-deep-3:#183F4F; --fl-deep-4:#0F2D3B;   /* far down */
  --fl-sun:#FFF7DA; --fl-halo:#F2FBF4;
  --fl-cloud-s:#9CCADB; --fl-cloud-m:#C6E6F0; --fl-cloud-l:#E6F6FA; --fl-cloud-h:#FFFFFF;
  --fl-dirt-s:#4A3426; --fl-dirt-m:#6B4A33; --fl-dirt-l:#8C6444; --fl-dirt-h:#A97F59;
  --fl-shadow:#4C7A22; --fl-ui:rgba(6,36,48,.72); --fl-ui-ink:#F4FBFD;
  --display:"Bricolage Grotesque","Trebuchet MS",system-ui,sans-serif;
  --body:"IBM Plex Sans",system-ui,-apple-system,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#06161B; --surface:#0D232B; --surface-2:#102B34; --line:#1E414D;
  --ink:#E4F2F6; --muted:#8CAAB4; --accent:#3ACDED; --accent-soft:#0F3B47;
  --on-accent:#04181E; --danger:#FF8D80; --turbo:#4ADE80; --public:#4ADE80;
  --trade-arrow:#4ADE80; --trade-arrow-glow:rgba(74,222,128,.5);
  --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 28px -14px rgba(0,0,0,.7);
  --tier-bg:#141618; --tier-row:#232629; --tier-line:#3B4044;
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#06161B; --surface:#0D232B; --surface-2:#102B34; --line:#1E414D;
  --ink:#E4F2F6; --muted:#8CAAB4; --accent:#3ACDED; --accent-soft:#0F3B47;
  --on-accent:#04181E; --danger:#FF8D80; --turbo:#4ADE80; --public:#4ADE80;
  --trade-arrow:#4ADE80; --trade-arrow-glow:rgba(74,222,128,.5);
  --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 28px -14px rgba(0,0,0,.7);
  --tier-bg:#141618; --tier-row:#232629; --tier-line:#3B4044;
  color-scheme:dark;
}

*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
img{max-width:100%}
[hidden]{display:none!important}
h1,h2,h3{font-family:var(--display);text-wrap:balance;margin:0;letter-spacing:-.015em}
a{color:var(--accent)}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.num,.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}

/* ---- masthead ---- */
.masthead{position:relative;overflow:hidden;background:linear-gradient(170deg,var(--surface-2),var(--bg));border-bottom:1px solid var(--line)}
#bubbles{position:absolute;inset:0;width:100%;height:100%;display:block}
.masthead-in{position:relative;max-width:1080px;margin:0 auto;padding:24px 20px 20px}
.mastrow{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.wordmark{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap;flex:1 1 0}   /* gives up width first: the domain tucks under the logo before the buttons wrap */
.wordmark h1{font-size:clamp(28px,6vw,44px);font-weight:800;line-height:1}
.wordmark h1 a{color:inherit;text-decoration:none}
.wordmark h1{white-space:nowrap}   /* the bubbles on the "o" must never let "Fizzopedia" split */
/* Three fixed bubbles rising from the "o" of the wordmark. Sized in em, so
   they scale with the heading; positions are from the bubble's centre. */
.wordmark .o{position:relative;display:inline-block}
/* The em part scales with the heading; the 3px keeps a visible gap above the
   "o" even at phone sizes, where outlines hit their minimum pixel width. */
.wordmark .fz{position:absolute;left:50%;bottom:calc(.72em + 3px);width:0;height:0;pointer-events:none}
.wordmark .fz i{position:absolute;display:block;border-radius:50%;border:max(1.5px,.018em) solid currentColor;opacity:.72}
.wordmark .fz i::before{content:"";position:absolute;inset:22%;border-radius:50%;border:max(1px,.012em) solid transparent;border-top-color:currentColor;transform:rotate(-40deg)}
.wordmark .fz i:nth-child(1){width:.22em;height:.22em;left:-.035em;bottom:0}
.wordmark .fz i:nth-child(2){width:.145em;height:.145em;left:-.185em;bottom:.26em}
.wordmark .fz i:nth-child(3){width:.09em;height:.09em;left:-.01em;bottom:.5em;border-width:max(1px,.011em)}
.wordmark .fz i:nth-child(3)::before{border-width:max(.75px,.008em)}
.wordmark .dom{font-family:var(--mono);font-size:12px;color:var(--muted);letter-spacing:.04em;text-decoration:none}
.wordmark a.dom:hover{color:var(--accent)}
.tagline{margin:8px 0 0;color:var(--muted);max-width:52ch;font-size:14px}
.account-slot{display:flex;align-items:center;gap:10px;min-height:34px}
.whoami{display:flex;align-items:center;gap:10px}
.uname{font-family:var(--mono);font-size:13px;background:none;border:0;padding:4px 2px;color:var(--ink);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
a.uname{display:inline-block}
.uname:hover{color:var(--accent);text-decoration-color:var(--accent)}

/* ---- tabs ---- */
.tabbar{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
/* Sideways only (like the brand chips): overflow-x:auto alone would let the row move up and
   down too, since each tab's -1px margin pokes 1px past it; a vertical swipe scrolls the page. */
.tabbar-in{max-width:1080px;margin:0 auto;padding:0 20px;display:flex;gap:4px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none}
.tabbar-in::-webkit-scrollbar{display:none}
.tab{background:none;border:0;padding:13px 10px;color:var(--muted);font-weight:500;font-size:14px;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px}
.tab[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--accent)}
.tab .cnt,.swbtn .cnt{font-family:var(--mono);font-size:11px;color:var(--muted);margin-left:5px}

main{max-width:1080px;margin:0 auto;padding:22px 20px 56px}
.secthead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.secthead h2{font-size:20px;font-weight:700}
.secthead p{margin:3px 0 0;color:var(--muted);font-size:13px}
.banner{background:var(--accent-soft);border:1px solid var(--line);padding:10px 14px;font-size:13px;margin-bottom:16px}

/* ---- controls ---- */
.controls{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.search{flex:1 1 220px;min-width:0;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:8px 14px}
.search input{flex:1;min-width:0;border:0;background:none;outline:none}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:7px 13px;font-size:13px;color:var(--muted)}
.chip[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--ink);font-weight:500}
.chip .cnt{font-family:var(--mono);font-size:11px;color:var(--muted);margin-left:4px}
#brandchips{flex:1 1 100%}
.sorts{display:flex;flex-wrap:wrap;gap:8px 14px;flex:0 1 auto}
.sorts label{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.sorts select{background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-size:13px;color:var(--ink)}
/* Fixed width: the Show options gain counts after first layout, and an
   auto-sized select would grow over its neighbour when it re-measures. */
.sorts select{width:11.5em}

/* ---- buttons ---- */
.btn{background:var(--accent);color:var(--on-accent);border:0;border-radius:9px;padding:10px 18px;font-weight:600;text-decoration:none;display:inline-block}
.btn.small{padding:7px 14px;font-size:13px}
.btn.ghost{background:none;border:1px solid var(--line);color:var(--ink)}
.btn:disabled{opacity:.45;cursor:not-allowed}

/* ---- can grid ---- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:14px}
.can{position:relative;display:flex;flex-direction:column;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0;overflow:hidden;box-shadow:var(--shadow);top:0;transition:top .12s ease,border-color .12s ease}
/* Lift with top, not transform: a transformed card draws its text a little soft. */
.can:hover{top:-2px;border-color:var(--accent)}
.can .sleeve{height:94px;position:relative;display:flex;align-items:flex-end;padding:10px;background:linear-gradient(145deg,var(--c1),var(--c2))}
.can .sleeve::after{content:"";position:absolute;top:0;left:18%;width:14%;height:100%;background:linear-gradient(90deg,rgba(255,255,255,.34),rgba(255,255,255,0))}
.can .brand{position:relative;font-family:var(--display);font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#07222B;background:rgba(255,255,255,.82);padding:2px 7px;border-radius:4px}
.can .body{padding:10px 11px 12px;display:flex;flex-direction:column;gap:7px;flex:1}
.can .flavor{font-family:var(--display);font-weight:600;font-size:15px;line-height:1.2}
.can .meta{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:auto}
.avg{font-family:var(--mono);font-size:12px;color:var(--muted);white-space:nowrap}   /* "98 · 12 ratings" stays on one line */
.avg b{color:var(--ink);font-weight:500}
/* Shelf card: your tier and score on the first line (kept empty, same height, when
   you haven't rated it), the community's rating count, average and tier below. Whole-pixel
   sizes and no transforms anywhere above them keep the squares' letters crisp. */
.can .you{display:flex;align-items:center;gap:8px;height:30px}
.can .you b{font-family:var(--display);font-weight:700;font-size:17px;line-height:1;color:var(--ink)}
.can .tsq{display:grid;place-items:center;border-radius:2px;font-family:var(--display);font-weight:800;line-height:1;color:var(--tier-ink)}
.can .you .tsq{width:30px;height:30px;font-size:16px}
.can .crowd .tsq{width:18px;height:18px;font-size:11px}
.can .avg{display:inline-flex;align-items:center;gap:6px}
.mine{display:inline-flex;align-items:center;gap:5px;font-family:var(--mono);font-size:12px;font-weight:500}
.tierdot{width:19px;height:19px;border-radius:2px;display:grid;place-items:center;font-family:var(--display);font-size:11px;font-weight:800;color:var(--tier-ink)}
.unrated{font-size:12px;color:var(--muted);white-space:nowrap}

/* ---- tier list: hard edges, 1px rules, no shadows ---- */
.tierboard{background:var(--tier-bg);border:1px solid var(--tier-line)}
.tierrow{display:grid;grid-template-columns:76px 1fr;align-items:stretch;border-bottom:1px solid var(--tier-line)}
.tierrow:last-child{border-bottom:0}
.tierlabel{display:grid;place-items:center;font-family:var(--display);font-size:28px;font-weight:800;color:var(--tier-ink);border-right:1px solid var(--tier-line);min-height:76px}
.tierbin{background:var(--tier-row);padding:8px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;min-height:76px}
.tile{display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--tier-line);padding:5px 10px 5px 5px;text-align:left;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
/* Touch: the ring fills in during the press-and-hold, then the can is picked up (app.js HOLD_MS). */
.tile.pressing{animation:tilehold .3s linear forwards}
@keyframes tilehold{from{box-shadow:0 0 0 0 var(--accent)}to{box-shadow:0 0 0 2px var(--accent)}}
.tile.held{box-shadow:0 0 0 2px var(--accent),0 8px 18px -6px rgba(0,0,0,.55);transform:scale(1.04)}
@media (prefers-reduced-motion:reduce){.tile.pressing{animation:none}.tile.held{transform:none}}
.tile.static{cursor:default;touch-action:auto}
.tile:not(.static):hover{border-color:var(--accent)}
.tile .swatch{width:30px;height:30px;background:linear-gradient(145deg,var(--c1),var(--c2));flex:none}
.tile .t{display:flex;flex-direction:column;line-height:1.18;min-width:0}
.tile .nm{font-size:13px;font-weight:500}
.tile .br{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.tile .sc{font-family:var(--mono);font-size:12px;color:var(--muted);margin-left:3px}
.tierfoot{margin-top:10px;color:var(--muted);font-size:12px;font-family:var(--mono)}
.dragghost{box-shadow:0 12px 26px -8px rgba(0,0,0,.55);opacity:.96}
.tile.dragslot{opacity:.35;border-style:dashed;border-color:var(--accent)}

/* ---- share box ---- */
.sharebox{background:var(--surface);border:1px solid var(--line);padding:14px 16px;margin-bottom:16px;box-shadow:var(--shadow)}
#guestbox .boxtitle,#suggestGate .boxtitle{margin:0}
#guestbox .hint,#suggestGate .hint{margin:4px 0 12px}
.sharebox label,.boxtitle{display:block;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-bottom:7px}
.sharerow{display:flex;gap:8px;flex-wrap:wrap}
.sharerow input{flex:1 1 240px;min-width:0;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:10px 12px;font-family:var(--mono);font-size:13px}
.sharebox .hint{margin:8px 0 0}
/* The share box's title is a button that folds the box away: caret right when folded, down when open. */
.sharehead{display:flex;align-items:center;gap:6px;width:100%;background:none;border:0;padding:0;margin:0 0 7px;cursor:pointer;
  font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);text-align:left}
.sharehead:hover,.sharehead:focus-visible{color:var(--ink)}
.sharehead svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.sharehead[aria-expanded="true"] svg{transform:rotate(90deg)}
.sharehead[aria-expanded="false"]{margin-bottom:0}

/* ---- rankings ---- */
.board{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.rank{display:grid;grid-template-columns:36px 1fr auto;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);width:100%;background:none;border-left:0;border-right:0;border-top:0;text-align:left}
.rank:last-child{border-bottom:0}
.rank:hover{background:var(--surface-2)}
.rank .pos{font-family:var(--mono);font-size:13px;color:var(--muted)}
.rank .nm{min-width:0}
.rank .nm strong{display:block;font-family:var(--display);font-weight:600;font-size:15px}
.rank .nm span{color:var(--muted);font-size:12px}
.rank .sc{display:flex;align-items:center;gap:10px}
.bar{width:84px;height:6px;border-radius:3px;background:var(--line);overflow:hidden;flex:none}
.bar i{display:block;height:100%;background:var(--accent)}
.score{font-family:var(--mono);font-size:15px;font-weight:500;min-width:40px;text-align:right}

/* ---- cards and forms ---- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow)}
.card.narrow{max-width:460px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field label{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.field input,.field textarea{background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:10px 12px;outline:none;width:100%}
.field input:focus,.field textarea:focus{border-color:var(--accent)}
.fieldnote{font-size:12px;color:var(--muted)}
.fieldnote.bad{color:var(--danger)}
.fieldnote.good{color:var(--accent)}
.formerr{background:var(--accent-soft);border:1px solid var(--line);border-left:3px solid var(--danger);padding:9px 12px;font-size:13px;margin:0 0 14px}
.okmsg{background:var(--accent-soft);border:1px solid var(--line);border-left:3px solid var(--accent);padding:9px 12px;font-size:13px;margin:0 0 14px}
.linkbtn{background:none;border:0;padding:0;color:var(--accent);text-decoration:underline;font-size:12px}
.switcher{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:-4px 0 18px}
.swbtn{background:none;border:0;border-bottom:2px solid transparent;padding:9px 4px;margin-bottom:-1px;margin-right:14px;color:var(--muted);font-weight:500}
.swbtn[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--accent)}
.orline{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted);font-size:12px}
.orline::before,.orline::after{content:"";flex:1;height:1px;background:var(--line)}
.kv{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;margin:0 0 18px}
.kv dt{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.kv dd{margin:0;font-family:var(--mono);font-size:13px;overflow-wrap:anywhere}
.kv .emailrow{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.kv .emailrow .linkbtn{font-family:var(--body)}
.sharerow input{flex:1 1 240px;min-width:0}
.topfive{margin-top:16px}
.topfive h3{font-size:17px;font-weight:700;margin-bottom:12px}
.topfive .board{box-shadow:none}
.topfive h3 .cnt{font-family:var(--mono);font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}
.myratings{position:relative;overflow-y:auto;overscroll-behavior:contain}
.rank .tierdot{flex:none}
.notice{background:var(--accent-soft);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:13px;margin:0 0 14px}
.hint{font-size:12px;color:var(--muted);margin:0 0 14px}

/* ---- rating sheet ---- */
.scrim{position:fixed;inset:0;background:rgba(6,22,27,.55);backdrop-filter:blur(3px);z-index:50;display:grid;place-items:center;padding:16px}
.sheet{background:var(--surface);border:1px solid var(--line);border-radius:18px;width:min(440px,100%);max-height:88vh;max-height:88dvh;overflow:auto;overscroll-behavior:contain;box-shadow:0 30px 70px -20px rgba(0,0,0,.5)}
/* While a sheet is open the page behind it stays put. */
html.sheet-open,html.sheet-open body{overflow:hidden}
.sheet .top{height:84px;display:flex;align-items:flex-end;padding:12px;background:linear-gradient(145deg,var(--c1),var(--c2))}
.sheet .top .brand{font-family:var(--display);font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#07222B;background:rgba(255,255,255,.82);padding:2px 7px;border-radius:4px}
.sheet .in{padding:16px 18px 18px}
.sheet h3{font-size:21px;font-weight:700;margin-bottom:2px}
.sheet .sub{color:var(--muted);font-size:13px;margin:0 0 16px}
/* The round photo button beside a water's name: a Google Images search in a new tab. */
.sheethead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.sheethead h3{min-width:0;overflow-wrap:anywhere}
.imgbtn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-top:-2px;
  border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--accent)}
.imgbtn:hover,.imgbtn:focus-visible{background:var(--accent-soft);border-color:var(--accent)}
.imgbtn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.scorebox{display:flex;align-items:center;gap:14px}
.bigscore{font-family:var(--mono);font-size:34px;font-weight:500;line-height:1;min-width:64px}
.bigtier{width:44px;height:44px;border-radius:2px;display:grid;place-items:center;font-family:var(--display);font-size:22px;font-weight:800;color:var(--tier-ink)}
.swlab{color:var(--muted);font-size:13px;font-family:var(--mono)}
.tierpick{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin:12px 0 8px}
.tbtn{border:1px solid var(--tier-line);padding:11px 0;font-family:var(--display);font-size:17px;font-weight:800;color:var(--tier-ink);opacity:.45}
.tbtn[aria-pressed="true"]{opacity:1;box-shadow:inset 0 0 0 2px var(--ink)}
.rangebar{margin:10px 0 8px}
.rbtrack{position:relative;height:32px;border:1px solid var(--tier-line);background:var(--surface-2);cursor:pointer;touch-action:none}
.rbtrack::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--tc,var(--accent)),transparent)}
.rbknob{position:absolute;top:-4px;bottom:-4px;width:4px;margin-left:-2px;background:var(--ink);box-shadow:0 0 0 1px var(--surface)}
.rbends{display:flex;justify-content:space-between;font-family:var(--mono);font-size:11px;color:var(--muted);margin-top:5px}
.sheet .actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px;flex-wrap:wrap}
/* The buttons stay on screen at the bottom of the sheet; a divider shows while more is above. */
.sheet .in .actions{position:sticky;bottom:0;z-index:1;background:var(--surface);margin:16px -18px -18px;padding:12px 18px 18px;border-top:1px solid transparent}
.sheet.scrolls .in .actions{border-top-color:var(--line);box-shadow:0 -10px 16px -12px rgba(0,0,0,.45)}

/* ---- misc ---- */
.empty{text-align:center;padding:48px 20px;color:var(--muted)}
.empty strong{display:block;font-family:var(--display);font-size:18px;color:var(--ink);margin-bottom:6px}
.empty .btn{margin-top:14px}
.skel{background:var(--surface);border:1px solid var(--line);border-radius:14px;height:168px;opacity:.55}
/* Message bubbles use the card colours, so they sit calmly on either theme. */
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(20px + env(safe-area-inset-bottom,0px));background:var(--surface-2);color:var(--ink);border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));padding:10px 18px;border-radius:999px;font-size:13px;z-index:60;box-shadow:var(--shadow);max-width:calc(100vw - 32px);text-align:center;animation:toastin .18s ease-out}
@keyframes toastin{from{opacity:0;transform:translate(-50%,6px)}to{opacity:1;transform:translateX(-50%)}}
.foot{max-width:1080px;margin:0 auto;padding:18px 20px calc(28px + env(safe-area-inset-bottom,0px));color:var(--muted);font-size:12px;border-top:1px solid var(--line);display:flex;gap:14px;align-items:flex-start}
.footbody{flex:1;min-width:0;display:flex;gap:8px;flex-wrap:wrap}
/* The square logo, bottom left: the tab icon's colors in both themes, so it is always the same mark. */
.footlogo{flex:none;display:block;width:36px;height:36px;border-radius:8px;box-shadow:0 0 0 1px var(--line)}
.footlogo svg{display:block;width:100%;height:100%}
.footlogo .bg{fill:var(--logo-bg)}
.footlogo .rings{stroke:var(--logo-ring)}
.footlogo:hover .rings,.footlogo:focus-visible .rings{stroke:var(--logo-ring-hi)}
.footlogo:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.foot .sep{opacity:.5}
.footsocial{flex:none;display:flex;gap:8px}
.footsocial a{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px;
  border:1px solid var(--line);color:var(--muted)}
.footsocial a:hover,.footsocial a:focus-visible{color:var(--accent);border-color:var(--accent)}
.footsocial svg{width:15px;height:15px}
.footsocial .fill{fill:currentColor}
.footsocial .line{fill:none;stroke:currentColor;stroke-width:2}
.footsocial .line .dot{fill:currentColor;stroke-width:1.2}
/* Phones: the icons get their own row under the links, lined up with the text. */
@media (max-width:560px){.foot{flex-wrap:wrap}.footsocial{order:3;flex-basis:100%;padding-left:50px}}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media (max-width:480px){
  .tierrow{grid-template-columns:54px 1fr}
  .tierlabel{font-size:22px;min-height:64px}
  .tierbin{min-height:64px;padding:6px;gap:6px}
  .tile .swatch{width:26px;height:26px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:11px}
}

/* ---- can pictures: shown instead of the colour block when a can has one ---- */
.art{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);object-fit:contain}
.can .sleeve.has-art,.tile .swatch.has-art,.sheet .top.has-art,.arow .swatch.has-art{background:var(--surface-2)}
.can .sleeve.has-art::after{display:none}
.can .sleeve .art{inset:4px 8px;width:calc(100% - 16px);height:calc(100% - 8px);object-position:right center}
.tile .swatch,.sheet .top{position:relative}
.tile .swatch .art{inset:0;width:100%;height:100%}
.sheet .top.has-art{height:180px}
.sheet .top .brand{position:relative}

/* ---- public tier list actions ---- */
.pubactions{display:flex;gap:8px;flex-wrap:wrap}

/* ---- account extras ---- */
.acctbtns{display:flex;gap:8px;flex-wrap:wrap}
.rank{color:inherit;text-decoration:none}
.rank.recent{grid-template-columns:1fr auto auto}
.rank.recent .when{font-family:var(--mono);font-size:12px;color:var(--muted)}

/* ---- friends: tabs on the recently viewed card, the + button, request answers ---- */
.friendtabs{margin:0 0 12px;flex-wrap:wrap}
.friendtabs .swbtn{margin-right:10px}
a.who{color:inherit;text-decoration:none}
a.who:hover strong,a.who:focus-visible strong{text-decoration:underline}
.rank .nm.who span{display:block}
.addfriend{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0;
  border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--accent);cursor:pointer}
.addfriend:hover{background:var(--accent-soft);border-color:var(--accent)}
.addfriend svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.addfriend:disabled{opacity:.5;cursor:default}
.fstate{font-size:12px;color:var(--muted)}
.rank .facts{display:flex;gap:6px}
/* Activity: friends' latest ratings */
.rank.act:hover .nm strong,.rank.act:focus-visible .nm strong{text-decoration:underline}
.rank.act .nm em{font-style:normal;font-family:var(--body);font-weight:400;font-size:13px;color:var(--muted)}
.rank.act .nm .actcan{display:block;overflow-wrap:anywhere}
.rank.act .sc{gap:7px}
.rank.act .score{min-width:26px}
.rank.act .was{font-family:var(--mono);font-size:12px;color:var(--muted);white-space:nowrap}
.actmore{display:flex;justify-content:center;padding:12px}
.rank.act .nm em{white-space:nowrap}
.rank.act .actwhen{display:none}
/* Phones: four tabs on one line ("Recent"), and an Activity row's time moves under the can. */
@media (max-width:480px){
  .friendtabs .swbtn{margin-right:6px;font-size:14px}
  .friendtabs .wide{display:none}
  .rank.recent.act{grid-template-columns:1fr auto}
  .rank.act .when{display:none}
  .rank.act .nm .actwhen{display:block;font-family:var(--mono);font-size:11px}
}
@media (max-width:480px){.rank .facts{flex-direction:column}}

/* ---- settings card: a list of switches, then Log out and Delete account ---- */
.setshead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
/* The account card's Settings button, top right; the details beside it keep clear of it. */
#accountSignedIn{position:relative}
.acctsetbtn{position:absolute;top:16px;right:16px}
#accountSignedIn > .kv{padding-right:96px}
#setAcctBtns{margin-top:8px}
.setshead h3{font-size:17px;font-weight:700}
.setrow{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);cursor:pointer}
.setrow:last-child{border-bottom:0}
.settxt strong{display:block;font-size:14px}
.settxt small{display:block;color:var(--muted);font-size:12px;line-height:1.45;margin-top:2px}
.switch{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:42px;height:24px;margin:0;border-radius:999px;
  background:var(--line);border:1px solid var(--line);cursor:pointer;transition:background .15s}
.switch::before{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:var(--muted);transition:transform .15s,background .15s}
.switch:checked{background:var(--accent);border-color:var(--accent)}
.switch:checked::before{transform:translateX(18px);background:var(--surface)}
.switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.switch:disabled{opacity:.6}
#acctSettings .dangerzone{margin-top:8px}
#acctPrivateNote{margin:8px 0 0;line-height:1.55}
.listvis{color:var(--public);font-weight:600}
.listvis.private{color:var(--muted)}
.cantabhint{max-width:460px;margin:10px 0 0}   /* lines up under the can card */
.recentlist{max-height:282px;overflow-y:auto;overscroll-behavior:contain}

/* ---- admin ---- */
.arow{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}
.arow:last-child{border-bottom:0}
.arow .swatch{position:relative;width:40px;height:40px;flex:none;background:linear-gradient(145deg,var(--c1),var(--c2))}
.arow .swatch .art{inset:2px;width:calc(100% - 4px);height:calc(100% - 4px)}
.arow .nm{flex:1 1 180px;min-width:0}
.arow .nm strong{display:block;font-family:var(--display);font-weight:600;font-size:15px}
.arow .nm span{display:block;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.arow .acts{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}
.tag{font-family:var(--mono);font-size:11px;border:1px solid var(--line);border-radius:4px;padding:1px 6px;color:var(--muted);margin-left:6px}
.colorrow{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.field input[type="color"]{height:42px;padding:4px;cursor:pointer}
.field input[type="file"]{padding:8px}
.checkrow{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-size:14px}

/* ---- rankings: share of ratings in each tier ---- */
.rank .split{grid-column:2 / -1;display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:-2px}
.rank .sp{display:inline-flex;align-items:center;gap:5px;font-family:var(--mono);font-size:12px;color:var(--ink)}
.rank .sp.zero{opacity:.38}
@media (max-width:480px){.rank .split{display:grid;grid-template-columns:repeat(3,max-content);gap:4px 16px}}

/* ---- footer note and legal pages ---- */
.foot .footnote{flex-basis:100%;margin:2px 0 0;line-height:1.5}
.legal{max-width:760px;font-size:14px;line-height:1.65}
.legal h3{font-size:16px;font-weight:700;margin:22px 0 6px}
.legal p{margin:0 0 10px}
.legal ul{margin:0 0 12px;padding-left:20px}
.legal li{margin:0 0 4px}

/* ---- delete account ---- */
.dangerzone{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.btn.danger{background:var(--danger);color:var(--bg)}
.btn.ghost.danger{background:none;border-color:var(--danger);color:var(--danger)}
#delForm{margin-top:14px}

/* ---- account card: View button, and the out-of-the-way corner buttons ---- */
.viewbtn{display:inline-flex;align-items:center;justify-content:center}
#acctShareUrl{flex-basis:170px}   /* room for Copy link and View on one line */
.dangerzone .acctbtns{justify-content:flex-end}
#delForm .actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}

/* ---- support link ---- */
.supportnote{font-size:13px;color:var(--muted);margin:14px 0 0}

/* ---- long names: trim with an ellipsis instead of spilling out of the card ---- */
.can .brand,.sheet .top .brand{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.can .flavor,.tile .nm,.tile .br,.rank .nm strong,.rank .nm span{overflow-wrap:anywhere}

/* ---- light / dark toggle (top right) ---- */
.themebtn{width:34px;height:34px;display:inline-grid;place-items:center;flex:none;background:none;border:1px solid var(--line);border-radius:999px;color:var(--ink);padding:0}
.themebtn:hover{border-color:var(--accent);color:var(--accent)}
.themebtn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.themebtn .i-moon{fill:currentColor;stroke:none}
:root[data-theme="dark"] .themebtn .i-moon,:root:not([data-theme="dark"]) .themebtn .i-sun{display:none}

/* ---- tier rows: hanging indent (wider screens only) ----
   Every row of a tier after the first starts a little further in, so a long
   tier reads left to right from its first can. Done as a hanging indent: the
   row is padded and the first tile pulled back to the edge, so it holds
   however the tiles wrap. Off on phones, where rows hold only one or two cans
   and the indent turns into a ragged staircase. */
.tierbin{--hang:18px;padding-left:calc(8px + var(--hang))}
.tierbin > .tile:first-child{margin-left:calc(-1 * var(--hang))}
@media (max-width:480px){.tierbin{--hang:0px;padding-left:6px}}

/* ---- admin editor: photo controls ---- */
.photorow{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.photorow .fieldnote{flex:1 1 140px}

/* ---- admin editor: standard flavor colors note ---- */
.colornote{margin:-6px 0 14px}

/* ---- admin Users tab ---- */
.admintools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.admintools input,.admintools select{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:9px 12px;color:var(--ink)}
.admintools input{flex:1 1 200px;min-width:0}
.modflags{color:var(--danger)!important}
.arow .nm .tag{display:inline;font-size:11px;vertical-align:2px}
.sheet h3 .tag{font-size:11px;vertical-align:4px}
.adminlog{margin-top:18px}
.adminlog h3,.modhead{font-size:15px;font-weight:700;margin:16px 0 8px}
.adminlog ul,.modlog{list-style:none;margin:0;padding:0;font-size:13px}
.adminlog li,.modlog li{padding:6px 0;border-bottom:1px solid var(--line)}
.adminlog li span,.modlog li span{color:var(--muted);margin-left:6px}
.modacts{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 6px}
.modratings{max-height:300px;overflow-y:auto;box-shadow:none}
.modratings .rank{grid-template-columns:1fr auto;cursor:default}

/* Phones: brand chips become one row that scrolls sideways. The masks only set
   transparency (black = shown), so they are theme-independent. */
@media (max-width:700px){
  /* Sideways only. overflow-x:auto alone makes the row scrollable (and bouncy) up and down too;
     with overflow-y hidden it isn't, so a vertical swipe that starts on it scrolls the page. */
  #brandchips{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain}
  #brandchips::-webkit-scrollbar{display:none}
  #brandchips .chip{flex:0 0 auto;white-space:nowrap}
  #brandchips.more-r{-webkit-mask-image:linear-gradient(90deg,black calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,black calc(100% - 48px),transparent)}
  #brandchips.more-l{-webkit-mask-image:linear-gradient(90deg,transparent,black 48px);mask-image:linear-gradient(90deg,transparent,black 48px)}
  #brandchips.more-l.more-r{-webkit-mask-image:linear-gradient(90deg,transparent,black 48px,black calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,transparent,black 48px,black calc(100% - 48px),transparent)}
  .sorts{flex:1 1 100%}
  .sorts label{flex:1 1 0;min-width:0}
  .sorts select{flex:1;min-width:0;width:auto}
}

/* ---- flavor tags ---- */
/* Flavor suggestion / active filter, inside the search box on its right edge. */
/* The typing area always keeps room for a few words; suggestions get what is left. */
.search input{min-width:7em}
.intags{display:flex;align-items:center;gap:6px;flex:0 1 auto;min-width:0;overflow:hidden}
.intag{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;flex:0 1 auto;min-width:0;font-size:12px;line-height:1.3;color:var(--ink);
  background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:2px 10px;cursor:pointer}
.intag:hover,.intag:focus-visible{border-color:var(--accent)}
.intag .cnt{font-family:var(--mono);font-size:11px;color:var(--muted)}
.intag .nm{overflow:hidden;text-overflow:ellipsis;min-width:0}   /* a very long tag shortens with an ellipsis */
.intag.on{background:var(--accent-soft);border-color:var(--accent)}
@media (max-width:700px){ .intag + .intag{display:none} }
.tagrow{display:flex;flex-wrap:wrap;gap:6px;margin:-8px 0 16px}
.tagchip{font-family:var(--mono);font-size:12px;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);
  border-radius:999px;padding:3px 10px;cursor:pointer}
.tagchip:hover,.tagchip:focus-visible{color:var(--ink);border-color:var(--accent)}
/* In the flavor's own colors once the color list has loaded: light shade inside, deep shade edge. */
.tagchip.colored{background:var(--t1);border-color:var(--t2);color:var(--tier-ink)}
.tagchip.colored:hover,.tagchip.colored:focus-visible{color:var(--tier-ink);box-shadow:0 0 0 1px var(--t2)}

/* Read by screen readers, never shown. */
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Suggest form: picked flavors, and the matches offered while typing one. */
.tagpick,.tagopts{display:flex;flex-wrap:wrap;gap:6px}
.tagpick:not(:empty){margin-bottom:8px}
.tagopts:not(:empty){margin-top:8px}
.tagchip.new{border-style:dashed;color:var(--ink)}
.newmark{font-family:var(--body);font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.label .opt,label .opt{font-weight:400;text-transform:none;letter-spacing:0;color:var(--muted);margin-left:4px}

/* "Save image" sits at the right of its heading. */
.topfive h3{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.topfive h3 #ratingsSaveImg{margin-left:auto}
.pubright{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* Community averages to three decimals, decimal points lined up down a column:
   the whole part right-aligned and the fraction left-aligned, each in a fixed width. */
.avgnum{display:inline-flex;white-space:nowrap}
.avgnum .ai{min-width:3ch;text-align:right}
.avgnum .af{min-width:4ch;text-align:left}
/* A field whose note leads into the next one gets a little more room below. */
.field.spaced{margin-bottom:28px}

/* "Your ratings" can be folded away; Save image and Hide sit at the right of the heading. */
.topfive h3 #ratingsToggle{margin-left:0}
/* With Save image hidden (ratings folded away), Show keeps Hide's place on the right. */
.topfive h3 #ratingsSaveImg[hidden] + #ratingsToggle{margin-left:auto}
#acctTopList[hidden]{display:none}

/* ---- Crack one open (Account tab) ---- */
.canplay{position:relative;text-align:center;margin-top:16px}   /* its own card, spaced like the ones above */
/* A can's display name (can-3 and up), top middle, in the header's fizzopedia.com font. */
.canname{position:absolute;top:20px;left:96px;right:96px;margin:0;font-family:var(--mono);font-size:14px;
  letter-spacing:.04em;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Phones: too narrow between Turbo and the sound buttons, so the name drops to its own line below them. */
@media (max-width:480px){.canname{top:58px;left:12px;right:12px}}
.canplay h3{font-size:17px;font-weight:700;margin-bottom:4px}
.canplay .hint{margin:0 0 4px}
/* The can sprite: each design's pixel grid scaled up by a whole number (set by the script, about
   192 x 410 on screen) with hard edges, so no smoothing between pixels. */
.canpix{display:block;width:192px;height:408px;margin:0 auto;image-rendering:pixelated;image-rendering:crisp-edges;
  touch-action:none;outline:none;cursor:grab;border-radius:4px}
.canpix:active{cursor:grabbing}
.canpix:focus-visible{box-shadow:0 0 0 2px var(--accent)}
/* ---- The case-opening reel, CS2 style: item tiles slide past a marker line and land on one ---- */
.canstage{position:relative;margin:0 auto;overflow:hidden}
.canpix{transition:opacity .45s ease}
.canpix.gone{opacity:0}
/* A can picked from the inventory glows in its rarity color, rising from the line above "Your cans"
   like the bottom of its inventory tile (free cans don't). It fades out with the can while the reel spins. */
.canpix{position:relative;z-index:1}
.canglow{position:absolute;left:0;right:0;bottom:0;height:42%;pointer-events:none;transition:opacity .45s ease;
  background:radial-gradient(ellipse 58% 100% at 50% 100%,var(--rar-glow),transparent)}
.canglow::after{content:"";position:absolute;left:12%;right:12%;bottom:0;height:3px;
  background:linear-gradient(90deg,transparent,var(--rar) 25%,var(--rar) 75%,transparent)}
.canstage:not(.held) .canglow,.canpix.gone ~ .canglow{opacity:0}
.canplay .caninv{margin-top:0}
.caninv .spinsleft{float:right;font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--muted)}
/* Out of guest spins: the can dims and a note offers an account. */
.canstage.locked .canpix{opacity:.25;cursor:default}
.canlimit{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;width:min(300px,100%);padding:16px;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;text-align:center}
.canlimit strong{display:block;font-size:15px;margin-bottom:4px}
.canlimit p{margin:0 0 12px;font-size:13px;color:var(--muted)}
.canlimit .acts{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.reel,.reelwin{z-index:2}
.reel{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:176px;overflow:hidden;border-radius:6px;
  background:var(--reel-bg);border-top:1px solid var(--reel-line);border-bottom:1px solid var(--reel-line);
  transition:opacity .35s ease;opacity:1}
.reel.fading{opacity:0}
.reelstrip{position:absolute;top:8px;left:0;display:flex;gap:6px;will-change:transform}
.reelmark{position:absolute;top:0;bottom:0;left:50%;width:2px;margin-left:-1px;background:var(--reel-mark);
  box-shadow:0 0 8px var(--reel-mark)}
.reelmark::before,.reelmark::after{content:"";position:absolute;left:-5px;border:6px solid transparent}
.reelmark::before{top:0;border-top-color:var(--reel-mark)}
.reelmark::after{bottom:0;border-bottom-color:var(--reel-mark)}
/* One item: a dark rectangle, the can, and a rarity-colored strip along the bottom. */
.ctile{position:relative;flex:none;width:112px;height:158px;display:grid;place-items:center;border-radius:3px;overflow:hidden;
  background:linear-gradient(180deg,var(--reel-tile-hi),var(--reel-tile));border:1px solid var(--reel-line)}
.ctile::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:var(--rar)}
.ctile::before{content:"";position:absolute;inset:auto 0 0;height:45%;background:linear-gradient(0deg,var(--rar-glow),transparent)}
.ctile img{position:relative;image-rendering:pixelated;image-rendering:crisp-edges}
.ctile.win{border-color:var(--rar);box-shadow:0 0 0 2px var(--rar),0 0 22px var(--rar)}
.reelwin{position:absolute;left:0;right:0;bottom:calc(50% - 128px);text-align:center;margin:0;font-family:var(--display);
  font-weight:800;font-size:18px;color:var(--ink)}
.reelwin small{display:block;font-family:var(--body);font-weight:500;font-size:12px;color:var(--rar);letter-spacing:.06em;text-transform:uppercase}
/* ---- Inventory ---- */
.caninv{margin-top:12px;text-align:left;border-top:1px solid var(--line);padding-top:12px}
.caninv h4{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}
.invgrid{display:flex;flex-wrap:wrap;gap:8px}
.invgrid:empty{display:none}
.invitem{position:relative;width:76px;height:104px;padding:0;cursor:pointer;color:var(--ink)}
.invitem .ctile{width:76px;height:104px}
.invitem .ctile img{height:76px;width:auto}
.invitem .cnt{position:absolute;top:4px;right:6px;z-index:1;font-family:var(--mono);font-size:12px;font-weight:600;color:var(--reel-text)}
.invitem[aria-pressed="true"] .ctile{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.invitem:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.invitem.bump{animation:invbump .5s ease}
@keyframes invbump{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.08);opacity:1}100%{transform:scale(1)}}
.invitem.spent{opacity:.4}                     /* every one of this can is in the trade-up */
/* Trade-up: five slots under the inventory, filled by picking cans of one rarity, then a spin at the next. */
.trade{margin-top:14px}
.trade h4{margin-bottom:8px}
.tradebar{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tslot{flex:none;width:44px;height:62px;padding:0;border-radius:3px;border:1px dashed var(--line);background:none;color:var(--ink)}
button.tslot{border:0;cursor:pointer}
.tslot .ctile{width:44px;height:62px}
.tslot .ctile img{height:46px;width:auto}
button.tslot:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tradebar > .tradebar:not([hidden]){margin-right:6px}
.trade .hint{margin:8px 0 0}
/* An armed trade-up: big green pixel up arrows either side of the can, flying up in pairs over and over, three
   pairs a third of a loop apart: each rises from below the can's middle, fading in, and fades out near the top. */
.tradearrows{position:absolute;inset:0;z-index:1;pointer-events:none}
.tradearrows svg{position:absolute;top:50%;width:44px;height:64px;margin-top:-32px;fill:var(--trade-arrow);opacity:0;
  filter:drop-shadow(0 0 10px var(--trade-arrow-glow));animation:tradefly .9s cubic-bezier(.4,0,.6,1) infinite}
.tradearrows svg:nth-child(odd){left:calc(50% - 150px)}
.tradearrows svg:nth-child(even){right:calc(50% - 150px)}
.tradearrows svg:nth-child(3),.tradearrows svg:nth-child(4){animation-delay:-.3s}
.tradearrows svg:nth-child(5),.tradearrows svg:nth-child(6){animation-delay:-.6s}
@keyframes tradefly{
  0%{transform:translateY(90px);opacity:0}
  30%{opacity:1}
  65%{opacity:1}
  100%{transform:translateY(-110px);opacity:0}
}
/* Less motion: one pair simply stands either side of the can. */
@media (prefers-reduced-motion:reduce){.tradearrows svg{animation:none;opacity:1}.tradearrows svg:nth-child(n+3){display:none}}
.canctl{position:absolute;top:12px;right:12px;display:flex;gap:6px;z-index:2}
.volpop{position:absolute;top:42px;right:0;display:flex;flex-direction:column;align-items:stretch;gap:8px;white-space:nowrap;
  background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px;box-shadow:var(--shadow)}
.volbtn[aria-expanded="true"]{border-color:var(--accent);color:var(--accent)}
.volrow{display:grid;grid-template-columns:7.2em auto 2.2em;align-items:center;gap:10px;font-size:12px;color:var(--muted);text-align:left}
.volrow output{text-align:right;color:var(--ink)}
/* Can Game page: a caret beside the title drops down options (just Odds for now). */
.canhead{position:relative}
.canhead h2{display:flex;align-items:center;gap:8px}
.caretbtn{display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border-radius:999px;background:var(--surface-2);
  border:1px solid var(--line);color:var(--ink);cursor:pointer}
.caretbtn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.caretbtn[aria-expanded="true"]{border-color:var(--accent);color:var(--accent)}
.caretbtn[aria-expanded="true"] svg{transform:rotate(180deg)}
.caretbtn:hover,.caretbtn:focus-visible{border-color:var(--accent)}
.canmenu{position:absolute;top:40px;left:0;z-index:30;min-width:160px;padding:6px;background:var(--surface);border:1px solid var(--line);
  border-radius:10px;box-shadow:var(--shadow)}
.canmenu button{display:block;width:100%;text-align:left;background:none;border:0;border-radius:6px;padding:8px 10px;color:var(--ink);font-size:14px;cursor:pointer}
.canmenu button:hover,.canmenu button:focus-visible{background:var(--accent-soft)}
/* The Odds card: one row per can, rarest first. */
.oddsrow{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.oddsrow:last-child{border-bottom:0}
.oddsrow .ctile{width:44px;height:62px}
.oddsrow .ctile img{height:46px;width:auto}
.oddsrow strong{display:block;font-family:var(--display);font-size:15px}
.oddsrow .oddsname{display:flex;align-items:center;gap:8px;min-width:0}
.oddsrow .oddsname strong{display:inline}
/* Admins only: give yourself one of this can. */
.grantbtn{flex:none;font-family:var(--mono);font-size:11px;font-weight:600;line-height:1;padding:4px 7px;border-radius:999px;
  background:var(--surface-2);border:1px solid var(--line);color:var(--accent);cursor:pointer}
.grantbtn:hover,.grantbtn:focus-visible{border-color:var(--accent)}
.grantbtn:disabled{opacity:.5;cursor:default}
.oddsrow small{display:block;color:var(--muted);font-size:12px}
.oddsrow .pct{font-family:var(--mono);font-size:15px;color:var(--rar);text-align:right}
.oddsrow .pct small{color:var(--muted);font-size:11px}
.volbtn .lvl{stroke-width:2.4}
/* Turbo: top left of the can card, always shown.
   The word turns green while it is on. Fly (Fly Tab, in development) is at the bottom left of the stage. */
.canleft{position:absolute;top:12px;left:12px;z-index:2;display:flex;gap:6px}
.turbobtn{height:34px;padding:0 12px;border-radius:999px;background:var(--surface-2);
  border:1px solid var(--line);color:var(--muted);font-family:var(--mono);font-size:12px;font-weight:500;letter-spacing:.06em;
  text-transform:uppercase;cursor:pointer}
.turbobtn:hover,.turbobtn:focus-visible{border-color:var(--accent)}
.turbobtn[aria-pressed="true"]{color:var(--turbo);border-color:var(--turbo)}
.turbobtn:disabled{opacity:.55;cursor:default}   /* shown, but locked, while a spin runs */
.turbobtn:disabled:hover{border-color:var(--line)}
.turbobtn[aria-pressed="true"]:disabled:hover{border-color:var(--turbo)}
.drinkbtn[aria-pressed="true"]{color:var(--accent);border-color:var(--accent)}
/* With Drink showing too, the can's name keeps clear of both buttons (on phones it sits below them anyway). */
.drinkbtn{position:absolute;left:0;bottom:8px;z-index:3}   /* bottom left of the stage, over the can's shadow */
.canplay.turbo .canpix,.canplay.turbo .canglow{transition-duration:.15s}
.canplay.turbo .reel{transition-duration:.15s}
.volbtn{display:grid;place-items:center;width:34px;height:34px;border-radius:999px;background:var(--surface-2);
  border:1px solid var(--line);color:var(--ink);cursor:pointer;padding:0}
.volbtn:hover,.volbtn:focus-visible{border-color:var(--accent)}
.volbtn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.volbtn .spk{fill:currentColor}
.volbtn .cross{display:none}
.volbtn[aria-pressed="true"] .wave{display:none}
.volbtn[aria-pressed="true"] .cross{display:inline}
#canVol,#canVolFizz{width:130px;accent-color:var(--accent)}   /* both volume bars look the same */
#canVolOut,#canVolFizzOut{font-family:var(--mono);font-size:12px;color:var(--muted);min-width:3ch;text-align:right}

/* ---- Fly Tab (in development): a 3D pixel world drawn at a quarter size and scaled up with hard
   edges, like the can sprites. The canvas is a whole number of pixels per game pixel (set in flight.js). ---- */
.flight{position:relative;height:clamp(340px,72vh,680px);border-radius:12px;overflow:hidden;background:var(--fl-sky-1);
  border:1px solid var(--line);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;outline:none}
.flight:focus-visible{box-shadow:0 0 0 2px var(--accent)}
.flightpix{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;image-rendering:pixelated;
  image-rendering:crisp-edges;cursor:grab}
.flightpix:active{cursor:grabbing}
.flighthud{position:absolute;left:10px;top:10px;font-family:var(--mono);font-size:12px;line-height:1.5;color:var(--fl-ui-ink);
  background:var(--fl-ui);border-radius:8px;padding:4px 9px;pointer-events:none;white-space:pre}
.flighthud:empty{display:none}
/* Settings: a gear top right, opening a panel with the volume, the controls and Log and end game. */
.flightgear{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:34px;height:34px;padding:0;
  border-radius:999px;background:var(--fl-ui);color:var(--fl-ui-ink);border:1px solid transparent;cursor:pointer}
.flightgear:hover,.flightgear:focus-visible,.flightgear[aria-expanded="true"]{border-color:var(--fl-ui-ink)}
.flightgear svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.flightgear .teeth{stroke-width:3.2;stroke-linecap:butt}   /* thick, square teeth: a cog, not the sun of the theme switch */
.flightmenu{position:absolute;right:10px;top:52px;width:min(300px,calc(100% - 20px));max-height:calc(100% - 64px);overflow:auto;
  background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px 14px;box-shadow:var(--shadow);
  touch-action:auto;user-select:text;-webkit-user-select:text;font-size:13px}
.flightmenu h4{margin:12px 0 6px;font-size:13px}
.flightvol{display:flex;align-items:center;gap:10px}
.flightvol input{flex:1;accent-color:var(--accent)}
.flightvol output{font-family:var(--mono);font-size:12px;color:var(--muted);min-width:3ch;text-align:right}
.flightkeys{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:0 0 12px}
.flightkeys dt{font-weight:600}
.flightkeys dd{margin:0;color:var(--muted)}
.flightmsg{position:absolute;inset:0;margin:0;display:grid;place-items:center;padding:24px;text-align:center;color:var(--fl-ui-ink);
  background:var(--fl-ui);font-size:14px}
/* Points: a pill per score, edged in the hoop's or opening's rarity color, rising and fading. */
/* The Boost button: bottom left, the boost picked in its rarity color, and on or off (edged in the color while on).
   It opens the picker above it. */
.flightboost{position:absolute;left:10px;bottom:12px;display:flex;align-items:center;gap:6px;cursor:pointer;
  background:var(--fl-ui);border:2px solid transparent;border-radius:8px;padding:4px 8px;font:500 11px var(--mono);
  letter-spacing:.05em;color:var(--fl-ui-ink)}
.flightboost:hover,.flightboost:focus-visible,.flightboost[aria-expanded="true"]{outline:1px solid var(--fl-ui-ink);outline-offset:1px}
.flightboost i{display:block;width:10px;height:10px;background:var(--pc)}
.flightboosts{left:10px;right:auto;top:auto;bottom:50px;width:min(250px,calc(100% - 20px))}
.flightboosts h4{margin:0 0 6px}
.flightboosts p{margin:8px 0 0;color:var(--muted);font-size:12px}
.boostopt{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:8px;width:100%;margin:0 0 4px;padding:6px 8px;
  background:var(--surface-2);color:var(--ink);border:2px solid transparent;border-radius:8px;font-size:13px;text-align:left;cursor:pointer}
.boostopt i{width:12px;height:12px;background:var(--pc)}
.boostopt small{font-family:var(--mono);font-size:11px;color:var(--muted)}
.boostopt[aria-checked="true"]{border-color:var(--pc)}
.boostopt:hover:not(:disabled),.boostopt:focus-visible{border-color:var(--pc)}
.boostopt:disabled{opacity:.45;cursor:default}
.flightboost b{font-weight:700;opacity:.6}
.flightboost.on{border-color:var(--pc)}
.flightboost.on b{opacity:1}
/* The flight log under the game: a row per run, edged in its can's rarity color. */
/* Fly Tab in the can game's place (Game Test mode), the width of the page. */
.flightbox{margin-top:16px;scroll-margin-top:64px}
.flighthead{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}
.flighthead h3{font-size:17px;font-weight:700}
.flightlog{margin-top:16px}
.flightlog h3{font-size:16px;font-weight:700}
.flightruns{list-style:none;margin:10px 0 8px;padding:0;display:grid;gap:6px}
.flightruns li{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;padding:7px 10px;font-size:13px;color:var(--muted);
  background:var(--surface-2);border-left:3px solid var(--pc);border-radius:6px}
.flightruns strong{color:var(--ink);font-family:var(--mono);font-weight:500}
.flightpops{position:absolute;left:0;right:0;top:30%;display:grid;justify-items:center;pointer-events:none}
.flightpop{grid-area:1/1;font:700 13px var(--mono);letter-spacing:.03em;color:var(--fl-ui-ink);background:var(--fl-ui);
  border:2px solid var(--pc,var(--fl-ui-ink));border-radius:999px;padding:3px 11px;white-space:nowrap;animation:flpop 1.25s ease-out forwards}
@keyframes flpop{0%{transform:translateY(10px) scale(.9);opacity:0}12%{transform:none;opacity:1}70%{opacity:1}100%{transform:translateY(-34px);opacity:0}}
