/* The Charm Farm (rockosworld.com/charms): your collection shelf + the Paw Draw.
   Arcade tokens match the homepage / Arena (navy, Lilita One, red/gold 3D buttons).
   Charms are WON with earned bones, never bought — nothing here is for sale. */
:root{
  --bg:#191320; --bg2:#120d18; --panel:#271d33; --panel2:#33273f; --edge:#0d0a12; --cream:#fff8ec;
  --red:#d83a34; --gold:#ffc93c; --sky:#7ec8ff; --teal:#0E9E8E; --muted:#9fb0c9;
  --common:#b9c6dc; --rare:#7ec8ff; --legendary:#ffc93c;
  --disp:'Lilita One',system-ui,sans-serif; --body:'Nunito',system-ui,sans-serif; --game:'Fredoka','Nunito',system-ui,sans-serif;
}
*{ box-sizing:border-box; } html,body{ margin:0; }
body{ font-family:var(--body); color:var(--cream); font-weight:700; background:linear-gradient(180deg,var(--bg),var(--bg2)); min-height:100vh; overflow-x:hidden; -webkit-font-smoothing:antialiased; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; }
[hidden]{ display:none !important; }
.wrap{ max-width:1100px; margin:0 auto; padding:0 16px 48px; }

/* nav (same as the homepage / Arena) */
.nav{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 0; }
.brand{ display:inline-flex; align-items:center; gap:9px; }
.brand img{ height:40px; width:auto; }
.brand .wm{ font-family:var(--disp); font-size:1.3rem; letter-spacing:.5px; line-height:1; -webkit-text-stroke:2px var(--edge); paint-order:stroke fill; }
.brand .wm .a{ color:var(--red); } .brand .wm .b{ color:var(--gold); }
.nav-right{ display:inline-flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

/* header */
.farm-head{ text-align:center; padding:16px 0 6px; }
/* hero banner — the amazing DALL·E art, with the title overlaid on a legibility scrim */
.farm-hero{ position:relative; margin:12px 0 12px; border-radius:22px; overflow:hidden; border:4px solid var(--edge); box-shadow:0 7px 0 var(--edge); }
.farm-hero img{ display:block; width:100%; height:clamp(190px,34vw,360px); object-fit:cover; object-position:center 45%; }
.farm-hero-cap{ position:absolute; left:0; right:0; top:0; padding:14px 16px 42px; text-align:center;
  background:linear-gradient(180deg,rgba(6,10,30,.74) 0%,rgba(6,10,30,.32) 46%,transparent 78%); }
.farm-hero-cap h1{ font-family:var(--disp); font-weight:400; font-size:clamp(2.1rem,7.5vw,3.4rem); line-height:1; margin:12px 0 0;
  -webkit-text-stroke:3px var(--edge); paint-order:stroke fill; text-shadow:0 5px 0 var(--edge); }
.farm-hero-cap h1 .a{ color:var(--gold); }
.farm-head .ribbon{ display:inline-flex; align-items:center; gap:7px; background:var(--red); color:#fff; font-family:var(--disp); letter-spacing:.6px; font-size:.9rem; padding:6px 16px; border-radius:999px; border:3px solid var(--edge); box-shadow:0 4px 0 var(--edge); }
.farm-head h1{ font-family:var(--disp); font-weight:400; font-size:clamp(2.4rem,9vw,4rem); line-height:1; margin:14px 0 6px; -webkit-text-stroke:3px var(--edge); paint-order:stroke fill; text-shadow:0 6px 0 var(--edge); }
.farm-head h1 .a{ color:var(--gold); }
.farm-head p{ color:#dde6f2; font-weight:800; margin:0 auto; max-width:580px; }

/* bones + progress strip */
.stats{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin:18px 0 6px; }
.stat{ display:flex; align-items:center; gap:10px; background:var(--panel); border:4px solid var(--edge); border-radius:18px; padding:10px 18px; box-shadow:0 5px 0 var(--edge); }
.stat .big{ font-family:var(--disp); font-size:1.9rem; line-height:1; color:var(--gold); }
.stat .big.sky{ color:var(--sky); }
.stat small{ display:block; color:var(--muted); font-size:.72rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }

/* trophies strip: a medallion per game + a master "Litter" crown */
.trophies{ margin:10px 0 2px; }
.troph-h{ font-family:var(--disp); font-weight:400; font-size:1.3rem; margin:0 0 10px; }
.troph-h span{ font-family:var(--body); font-weight:800; font-size:.8rem; color:var(--muted); }
.troph-row{ display:flex; gap:12px; overflow-x:auto; padding:4px 2px 10px; scrollbar-width:thin; }
.trophy{ flex:0 0 auto; width:84px; text-align:center; }
.trophy .medal{ width:60px; height:60px; margin:0 auto 6px; border-radius:50%; display:grid; place-items:center; position:relative;
  background:linear-gradient(160deg,var(--c1,#4a3a66),var(--c2,#271d33)); border:3px solid var(--edge); box-shadow:0 4px 0 var(--edge); }
.trophy .medal .inner{ font-size:1.5rem; line-height:1; filter:drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.trophy .tname{ display:block; font-weight:900; font-size:.72rem; line-height:1.1; }
.trophy .tstate{ display:block; font-weight:800; font-size:.68rem; color:var(--muted); margin-top:2px; }
.trophy.earned .medal{ box-shadow:0 4px 0 var(--edge),0 0 14px rgba(255,201,60,.4); }
.trophy.earned .medal::after{ content:""; position:absolute; inset:-3px; border-radius:50%; border:2px solid var(--gold); }
.trophy.earned .tname{ color:var(--cream); }
.trophy.earned .tstate{ color:var(--gold); }
.trophy.locked .medal{ background:linear-gradient(160deg,#3a2f47,#1f1829); filter:grayscale(.55); }
.trophy.locked .medal .inner{ opacity:.6; }
.trophy.locked .tname{ color:var(--muted); }
.trophy.master .medal{ background:linear-gradient(160deg,#ffd873,#c8891c); }
.trophy.master.earned .medal{ box-shadow:0 4px 0 var(--edge),0 0 20px rgba(255,201,60,.7); }
.trophy.master.earned .tname{ color:var(--gold); }
.trophy.master.locked .medal{ background:linear-gradient(160deg,#4a4433,#2a2518); filter:grayscale(.4); }
.trophy.master.locked .tname{ color:var(--muted); }

/* a completed game's shelf */
.game.complete .game-head .gname{ color:var(--gold); }
.ribbon-done{ margin-left:auto; font-family:var(--disp); font-weight:400; font-size:.82rem; color:var(--edge); background:var(--gold);
  border:2px solid var(--edge); border-radius:999px; padding:3px 12px; box-shadow:0 3px 0 var(--edge); white-space:nowrap; }

/* the "set complete!" banner inside the Paw Draw reveal */
.set-done{ margin:12px auto 0; max-width:300px; padding:8px 14px; border-radius:12px; font-family:var(--disp); font-weight:400;
  font-size:1.02rem; color:var(--edge); background:var(--teal); border:3px solid var(--edge); box-shadow:0 4px 0 var(--edge);
  line-height:1.2; animation:rdGoPop .5s ease-out both; }
.set-done.grand{ background:var(--gold); font-size:1.15rem; }
@keyframes rdGoPop{ 0%{ transform:scale(.6); opacity:0 } 60%{ transform:scale(1.1); opacity:1 } 100%{ transform:scale(1) } }

/* the "how it works" / sign-in panel */
.panel{ background:var(--panel); border:4px solid var(--edge); border-radius:22px; padding:18px 20px; box-shadow:0 6px 0 var(--edge); margin:20px 0; text-align:center; }
.panel h2{ font-family:var(--disp); font-weight:400; font-size:1.5rem; margin:0 0 6px; }
.panel p{ color:var(--muted); font-weight:700; margin:0 auto 12px; max-width:560px; }
.steps{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:6px; }
.steps span{ background:var(--panel2); border:2px solid var(--edge); border-radius:999px; padding:6px 13px; font-weight:900; font-size:.85rem; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; font-family:var(--disp); font-size:1.1rem; letter-spacing:.4px; color:var(--edge); background:var(--gold); border:3px solid var(--edge); border-radius:14px; padding:11px 22px; box-shadow:0 5px 0 var(--edge); }
.btn:active{ transform:translateY(2px); box-shadow:0 3px 0 var(--edge); }
.btn[disabled]{ opacity:.55; cursor:default; box-shadow:0 5px 0 var(--edge); transform:none; }
.btn.ghost{ background:var(--panel2); color:var(--cream); }

/* Litter-closes countdown (dormant until a close date is set) */
.litter-close{ text-align:center; margin:14px 0 2px; padding:11px 16px; border-radius:16px;
  background:linear-gradient(135deg,#c0392b,#d83a34); border:3px solid var(--edge); box-shadow:0 5px 0 var(--edge);
  font-weight:800; color:#fff; font-size:.98rem; line-height:1.35; }
.litter-close b{ color:var(--gold); }

/* the chase: the game you're closest to finishing (the strongest pull) */
.panel.chase{ background:linear-gradient(135deg,#3a2e12 0%,#271d33 72%); text-align:left; }
.panel.chase .chase-kick{ display:inline-flex; align-items:center; gap:6px; background:var(--red); color:#fff;
  font-family:var(--disp); font-weight:400; font-size:.78rem; letter-spacing:.04em; padding:4px 12px; border-radius:999px;
  border:2px solid var(--edge); margin-bottom:10px; }
.panel.chase h2{ font-size:1.6rem; line-height:1.12; margin:0 0 12px; color:var(--cream); }
.panel.chase h2 b{ color:var(--gold); }
.chase-bar{ position:relative; height:22px; border-radius:99px; background:#120d18; border:2px solid var(--edge); overflow:hidden; margin:0 0 14px; }
.chase-bar i{ display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,var(--teal),var(--gold)); transition:width .4s ease; }
.chase-bar span{ position:absolute; inset:0; display:grid; place-items:center; font-weight:900; font-size:.8rem; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.6); }
.chase-btn{ width:100%; }
.chase-hint{ color:var(--muted); font-weight:800; margin:0; }
.panel.master-done{ background:linear-gradient(135deg,#4a3a12,#271d33); }
.panel.master-done h2{ color:var(--gold); }

/* share ("show off your Charm Farm") */
.share-row{ display:flex; justify-content:center; margin:10px 0 2px; }
.charm-toast{ position:fixed; left:50%; bottom:calc(env(safe-area-inset-bottom,0px) + 18px); transform:translate(-50%,16px);
  z-index:6000; max-width:calc(100% - 32px); box-sizing:border-box; padding:11px 18px; border-radius:14px;
  background:rgba(10,16,40,.95); border:2px solid var(--gold); color:var(--cream); font-weight:800; font-size:.9rem;
  text-align:center; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; word-break:break-all; }
.charm-toast.on{ opacity:1; transform:translate(-50%,0); }

/* Charm of the Day — the daily reason to look in (a spotlight, not an odds change) */
.cod{ display:flex; align-items:center; gap:16px; margin:14px 0 2px; padding:14px 18px; border-radius:18px;
  background:linear-gradient(135deg,#33273f,#1f1829); border:3px solid var(--edge); box-shadow:0 5px 0 var(--edge); flex-wrap:wrap; }
.cod-disc{ width:72px; height:72px; flex:0 0 auto; border-radius:50%; display:grid; place-items:center; overflow:hidden;
  background:radial-gradient(circle at 50% 40%,#2a3f8f,#13245e 72%); border:3px solid var(--edge); box-shadow:0 4px 0 var(--edge); }
.cod-disc img{ width:80%; height:80%; object-fit:contain; filter:drop-shadow(0 3px 5px rgba(0,0,0,.5)); }
.cod-info{ flex:1 1 160px; min-width:0; }
.cod-kick{ font-weight:900; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); }
.cod-name{ font-family:var(--disp); font-size:1.4rem; line-height:1.05; }
.cod-meta{ font-weight:800; font-size:.85rem; color:var(--muted); }
.cod-meta .cod-rar{ color:var(--cream); }
.cod-flavor{ font-style:italic; font-weight:700; font-size:.82rem; color:#cfd9ea; margin-top:3px; }
.cod-action{ flex:0 0 auto; margin-left:auto; }
.cod-action .btn{ font-size:1rem; padding:10px 18px; }
.cod-have{ font-family:var(--disp); color:var(--teal); font-size:1.05rem; }
.cod-hint{ color:var(--muted); font-weight:800; font-size:.85rem; }
.cod.rare .cod-disc{ background:radial-gradient(circle at 50% 40%,#1c4a7a,#0d2742 72%); box-shadow:0 4px 0 var(--edge),0 0 18px rgba(126,200,255,.5); }
.cod.legendary .cod-disc{ background:radial-gradient(circle at 50% 40%,#6b5212,#2a1f06 72%); box-shadow:0 4px 0 var(--edge),0 0 22px rgba(255,201,60,.7); }
.cod.rare .cod-rar{ color:var(--rare); }
.cod.legendary .cod-rar{ color:var(--legendary); }
.cod.owned{ border-color:rgba(94,224,143,.4); }
@media (max-width:460px){ .cod-action{ margin-left:0; width:100%; } .cod-action .btn{ width:100%; } }

/* a game's shelf */
.game{ margin:22px 0; }
.game-head{ display:flex; align-items:center; gap:12px; margin:0 0 12px; }
.game-head .gname{ font-family:var(--candy); font-weight:400; letter-spacing:.5px; font-size:1.5rem; line-height:1; }
.game-head .count{ font-weight:900; color:var(--muted); font-size:.95rem; }
.game-head .count b{ color:var(--cream); }
.game-head .done{ color:var(--teal); }
.bar{ flex:1 1 90px; height:12px; border-radius:99px; background:#120d18; border:2px solid var(--edge); overflow:hidden; min-width:70px; max-width:220px; }
.bar i{ display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,var(--teal),var(--gold)); }

.shelf{ display:grid; grid-template-columns:repeat(6,1fr); gap:10px; }
@media (max-width:720px){ .shelf{ grid-template-columns:repeat(3,1fr); } }

.charm{ position:relative; background:var(--panel); border:3px solid var(--edge); border-radius:16px; padding:10px 6px 8px; text-align:center; box-shadow:0 4px 0 var(--edge); cursor:pointer; transition:transform .1s ease; }
.charm:hover{ transform:translateY(-2px); }
.charm:active{ transform:translateY(1px); }
.charm:focus-visible{ outline:3px solid var(--gold); outline-offset:2px; }
@media (prefers-reduced-motion:reduce){ .charm{ transition:none; } }
.charm .disc{ width:100%; aspect-ratio:1; display:grid; place-items:center; border-radius:12px; background:radial-gradient(circle at 50% 38%,#33273f,#1a1424 72%); overflow:hidden; }
.charm img{ width:84%; height:84%; object-fit:contain; filter:drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.charm .nm{ font-weight:900; font-size:.78rem; margin-top:6px; line-height:1.15; min-height:1.9em; display:flex; align-items:center; justify-content:center; }
.charm .rar{ font-size:.62rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-top:1px; }

/* rarity accents (owned only) */
.charm.owned.rare{ border-color:var(--rare); box-shadow:0 4px 0 var(--edge),0 0 14px rgba(126,200,255,.35); }
.charm.owned.rare .rar{ color:var(--rare); }
.charm.owned.legendary{ border-color:var(--legendary); box-shadow:0 4px 0 var(--edge),0 0 18px rgba(255,201,60,.5); }
.charm.owned.legendary .rar{ color:var(--legendary); }
.charm.owned.legendary .disc{ background:radial-gradient(circle at 50% 38%,#4a3a12,#1d1708 72%); }

/* unfound = dimmed + locked, but still SHOWN — you see the treasures you can win */
.charm.locked .disc{ background:radial-gradient(circle at 50% 38%,#1f1829,#120d18 72%); }
.charm.locked .disc img{ filter:grayscale(.72) brightness(.62) contrast(.95); opacity:.74; }
.charm.locked .nm{ color:var(--muted); }
.charm.locked .rar{ color:#6f7f98; }
.charm .lock{ position:absolute; top:6px; right:7px; font-size:.82rem; line-height:1; opacity:.8; filter:grayscale(1) drop-shadow(0 1px 1px rgba(0,0,0,.6)); pointer-events:none; }
/* faint rarity hints so Rares/Legendaries read as the prizes even before you win them */
.charm.locked.rare{ border-color:rgba(126,200,255,.32); }
.charm.locked.rare .rar{ color:#6f98b8; }
.charm.locked.legendary{ border-color:rgba(255,201,60,.45); box-shadow:0 4px 0 var(--edge),0 0 12px rgba(255,201,60,.22); }
.charm.locked.legendary .disc{ background:radial-gradient(circle at 50% 38%,#332816,#140f06 72%); }
.charm.locked.legendary .disc img{ filter:grayscale(.35) brightness(.78); opacity:.82; }
.charm.locked.legendary .rar{ color:#b99535; }

/* per-game Paw Draw button row */
.draw-row{ margin-top:12px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.draw-row .note{ color:var(--muted); font-weight:800; font-size:.82rem; }

/* ─────────── the Paw Draw moment (overlay) ─────────── */
.pd{ position:fixed; inset:0; z-index:5000; display:none; align-items:center; justify-content:center; padding:20px;
  background:rgba(6,10,30,.88); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.pd.on{ display:flex; }
.pd-box{ width:min(380px,94vw); text-align:center; position:relative; }

/* stage 1: the capsule winding up */
.capsule{ width:160px; height:160px; margin:0 auto; border-radius:50%; position:relative; display:grid; place-items:center;
  background:radial-gradient(circle at 42% 34%,#ffe6a6,#e7a93a 55%,#9a6a16 100%);
  border:5px solid var(--edge); box-shadow:0 10px 0 var(--edge),0 0 40px rgba(255,201,60,.4); }
.capsule::after{ content:"🦴"; font-size:4.4rem; filter:drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.capsule.wind{ animation:pdShake .5s ease-in-out infinite; }
@keyframes pdShake{ 0%,100%{ transform:translate(0,0) rotate(0) } 20%{ transform:translate(-5px,2px) rotate(-6deg) } 40%{ transform:translate(5px,-2px) rotate(5deg) } 60%{ transform:translate(-4px,-2px) rotate(-4deg) } 80%{ transform:translate(4px,2px) rotate(4deg) } }
.pd-wait{ margin-top:22px; font-family:var(--disp); font-size:1.4rem; color:var(--gold); letter-spacing:.04em; -webkit-text-stroke:1.5px var(--edge); paint-order:stroke fill; }

/* the flash between stages */
.pd-flash{ position:absolute; inset:0; border-radius:50%; background:#fff; opacity:0; pointer-events:none; }
.pd-flash.go{ animation:pdFlash .5s ease-out forwards; }
@keyframes pdFlash{ 0%{ opacity:0; transform:scale(.3) } 35%{ opacity:.95 } 100%{ opacity:0; transform:scale(2.4) } }

/* stage 2: the reveal */
.pd-reveal{ display:none; }
.pd-reveal.show{ display:block; }
.reveal-disc{ width:200px; height:200px; margin:0 auto; border-radius:50%; display:grid; place-items:center; position:relative;
  background:radial-gradient(circle at 50% 40%,#2a3f8f,#13245e 72%); border:5px solid var(--edge); box-shadow:0 10px 0 var(--edge); }
.reveal-disc img{ width:72%; height:72%; object-fit:contain; animation:pdPop .55s cubic-bezier(.2,1.4,.3,1) both; filter:drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
@keyframes pdPop{ 0%{ transform:scale(.2) rotate(-18deg); opacity:0 } 60%{ transform:scale(1.14) rotate(4deg); opacity:1 } 100%{ transform:scale(1) rotate(0) } }
.pd-reveal .rar-tag{ display:inline-block; margin-top:14px; font-family:var(--disp); font-size:1rem; letter-spacing:.14em; text-transform:uppercase; padding:4px 16px; border-radius:999px; border:3px solid var(--edge); }
.pd-reveal .cname{ font-family:var(--disp); font-size:2rem; margin:8px 0 2px; -webkit-text-stroke:2px var(--edge); paint-order:stroke fill; }
.pd-reveal .added{ color:var(--teal); font-weight:900; font-size:.95rem; }
.pd-reveal .new-badge{ position:absolute; top:-6px; right:30px; background:var(--red); color:#fff; font-family:var(--disp); font-size:.8rem; padding:3px 11px; border-radius:999px; border:3px solid var(--edge); transform:rotate(9deg); }
.pd-actions{ margin-top:20px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* reveal glow + sparkles scaled to rarity */
.reveal-disc.rare{ background:radial-gradient(circle at 50% 40%,#1c4a7a,#0d2742 72%); box-shadow:0 10px 0 var(--edge),0 0 34px rgba(126,200,255,.6); }
.pd-reveal.rare .rar-tag{ color:var(--rare); border-color:var(--rare); }
.reveal-disc.legendary{ background:radial-gradient(circle at 50% 40%,#6b5212,#2a1f06 72%); box-shadow:0 10px 0 var(--edge),0 0 54px rgba(255,201,60,.85); animation:pdHalo 1.6s ease-in-out infinite; }
.pd-reveal.legendary .rar-tag{ color:var(--legendary); border-color:var(--legendary); }
.pd-reveal.legendary .cname{ color:var(--legendary); }
@keyframes pdHalo{ 0%,100%{ box-shadow:0 10px 0 var(--edge),0 0 40px rgba(255,201,60,.6) } 50%{ box-shadow:0 10px 0 var(--edge),0 0 70px rgba(255,201,60,1) } }
.spark{ position:absolute; width:10px; height:10px; border-radius:50%; background:#fff; pointer-events:none; opacity:0; }

@media (prefers-reduced-motion:reduce){ .capsule.wind,.reveal-disc.legendary{ animation:none } .reveal-disc img{ animation:none } .pd-flash.go{ animation-duration:.01s } }

/* a charm's flavor line — shared by the reveal + the trophy card */
.cflavor{ color:#dde6f2; font-weight:700; font-style:italic; margin:12px 6px 0; line-height:1.45; font-size:.95rem; }
.pd-reveal .cflavor{ margin:10px 6px 0; }

/* ─────────── trophy card (tap a charm) ─────────── */
.tc{ position:fixed; inset:0; z-index:5000; display:none; align-items:center; justify-content:center; padding:20px;
  background:rgba(6,10,30,.88); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.tc.on{ display:flex; }
.tc-box{ position:relative; width:min(360px,94vw); text-align:center; max-height:calc(100dvh - 40px); overflow-y:auto;
  background:linear-gradient(180deg,#22398a,#122463); border:4px solid var(--edge); border-radius:22px;
  padding:26px 22px 20px; box-shadow:0 7px 0 var(--edge),0 18px 60px rgba(0,0,0,.6); }
.tc-x{ position:absolute; top:10px; right:12px; width:32px; height:32px; border-radius:50%; cursor:pointer; z-index:2;
  background:rgba(11,16,32,.55); border:2px solid var(--edge); color:var(--cream); font-weight:900; font-size:1rem; line-height:1; }
.tc-disc{ width:168px; height:168px; margin:2px auto 14px; border-radius:50%; display:grid; place-items:center; position:relative;
  background:radial-gradient(circle at 50% 40%,#2a3f8f,#13245e 72%); border:5px solid var(--edge); box-shadow:0 8px 0 var(--edge); }
.tc-disc img{ width:72%; height:72%; object-fit:contain; filter:drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.tc-disc.rare{ background:radial-gradient(circle at 50% 40%,#1c4a7a,#0d2742 72%); box-shadow:0 8px 0 var(--edge),0 0 30px rgba(126,200,255,.5); }
.tc-disc.legendary{ background:radial-gradient(circle at 50% 40%,#6b5212,#2a1f06 72%); box-shadow:0 8px 0 var(--edge),0 0 44px rgba(255,201,60,.75); }
.tc-disc.locked img{ filter:grayscale(.7) brightness(.64); opacity:.78; }
.tc-disc.locked.legendary img{ filter:grayscale(.35) brightness(.8); opacity:.85; }
.tc-lock{ position:absolute; top:12px; right:16px; font-size:1rem; filter:grayscale(1) drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.tc-rar{ font-family:var(--disp); font-size:.95rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.tc-rar.rare{ color:var(--rare); } .tc-rar.legendary{ color:var(--legendary); }
.tc-name{ font-family:var(--disp); font-size:2rem; line-height:1.05; margin:4px 0 2px; -webkit-text-stroke:2px var(--edge); paint-order:stroke fill; }
.tc-from{ color:var(--sky); font-weight:900; font-size:.85rem; letter-spacing:.04em; }
.tc-state{ margin:14px 2px 0; color:var(--muted); font-weight:800; font-size:.92rem; line-height:1.45; }
.tc-state.won{ color:var(--teal); font-family:var(--disp); font-weight:400; font-size:1.2rem; letter-spacing:.03em; }
.tc-actions{ margin-top:16px; }
.tc-actions .btn{ width:100%; }

/* footer */
.site-foot{ margin-top:34px; padding-top:18px; border-top:2px solid rgba(255,255,255,.08); text-align:center; color:var(--muted); font-size:.82rem; font-weight:700; }
.site-foot .links{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; margin-bottom:8px; }
.site-foot a{ color:var(--sky); }
.msg{ margin:12px auto 0; max-width:420px; padding:9px 12px; border-radius:12px; font-weight:800; font-size:.9rem; display:none; }
.msg.err{ display:block; background:#4a1d1d; color:#ffd0cc; }
.msg.ok{ display:block; background:#173d2f; color:#c8f5dc; }

/* painted inline icons (public/img/ui) */
img.rwi{height:1.3em!important;width:auto!important;max-width:none;vertical-align:-.28em;display:inline-block;position:static;border:0;border-radius:0;box-shadow:none;background:none;padding:0;margin:0;object-fit:contain;filter:none;animation:none;transform:none}
.trophy .medal .inner img.rwi{height:1.15em!important;vertical-align:-.2em}

/* How it works: the loop in three steps, always visible (2026-11-27). */
.how{ margin:18px 0 6px; padding:16px 18px 14px; background:var(--panel); border:4px solid var(--edge); border-radius:22px; box-shadow:0 6px 0 var(--edge); }
.how-h{ font-family:var(--disp); font-weight:400; font-size:1.35rem; margin:0 0 10px; text-align:center; color:var(--gold); }
.how-steps{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.how-steps li{ background:var(--panel2); border:3px solid var(--edge); border-radius:16px; padding:12px 14px; text-align:center; }
.how-steps li img{ width:52px; height:52px; object-fit:contain; display:block; margin:0 auto 6px; }
.how-steps li > b{ display:block; font-family:var(--disp); font-weight:400; font-size:1.1rem; letter-spacing:.3px; margin-bottom:4px; }
.how-steps li > span{ display:block; color:#cfdaec; font-size:.92rem; line-height:1.4; font-weight:700; }
.how-steps li > span b{ color:var(--gold); }
.how-sum{ margin:12px auto 0; text-align:center; color:#dde6f2; font-weight:800; max-width:640px; }
.how-sum b{ color:var(--gold); }
.how-real{ margin:12px auto 0; width:fit-content; max-width:100%; padding:8px 16px; text-align:center; color:#fff4d6; font-weight:800; background:linear-gradient(180deg,rgba(255,196,60,.22),rgba(255,150,40,.12)); border:2px solid var(--gold); border-radius:999px; box-shadow:0 0 18px rgba(255,196,60,.25); }
.how-real b{ color:var(--gold); } .how-real img{ width:22px; height:22px; vertical-align:-5px; }
@media (max-width:720px){ .how-real{ border-radius:18px; } }
.how-more{ margin:10px auto 0; max-width:640px; color:var(--muted); font-size:.9rem; }
.how-more summary{ cursor:pointer; text-align:center; font-weight:900; color:var(--sky); }
.how-more ul{ margin:8px 0 0; padding-left:20px; line-height:1.45; } .how-more li{ margin:4px 0; } .how-more b{ color:var(--cream); }
@media (max-width:720px){ .how-steps{ grid-template-columns:1fr; } .how-steps li{ display:grid; grid-template-columns:52px minmax(0,1fr); gap:2px 12px; text-align:left; align-items:center; }
  .how-steps li img{ grid-row:1 / span 2; margin:0; } }

/* Charm Case (2026-11-27): a Rocko per game in Classic / Silver / Gold, the Squirrel Gang, Coming soon. */
.game.trio .shelf{ grid-template-columns:repeat(3,minmax(0,1fr)); max-width:560px; }
.game-head .playlink{ margin-left:auto; font-family:var(--disp); font-size:.85rem; letter-spacing:.4px; color:var(--edge); background:var(--gold); border:3px solid var(--edge); border-radius:999px; padding:4px 14px; box-shadow:0 3px 0 var(--edge); }
.game-head .playlink:hover{ transform:translateY(-1px); }
.note.soon{ font-family:var(--disp); letter-spacing:.5px; color:var(--muted); background:var(--panel2); border:2px solid var(--edge); border-radius:999px; padding:6px 14px; }
.soon-h{ font-family:var(--disp); font-weight:400; font-size:1.6rem; margin:44px 0 2px; -webkit-text-stroke:2px var(--edge); paint-order:stroke fill; }
.soon-p{ margin:0 0 14px; color:var(--muted); }
.soon-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 26px; }
@media (max-width:820px){ .soon-grid{ grid-template-columns:1fr; } }
.game.soon .playlink{ display:none; }
.game.soon .shelf{ opacity:.8; }

/* Charm Packs: a gift that just landed, or a "play so many games" pack in progress. */
.panel.pack{ text-align:center; }
.panel.pack.got{ background:linear-gradient(180deg,#3a2d12,#231a0a); border-color:var(--edge); box-shadow:0 6px 0 var(--edge),0 0 34px rgba(255,201,60,.28); }
.panel.pack h2{ color:var(--gold); }
.pack-row{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:12px 0 6px; }
.pack-c{ width:104px; }
.pack-c img{ width:96px; height:96px; object-fit:contain; display:block; margin:0 auto; filter:drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.pack-c i{ display:block; font-style:normal; font-size:.74rem; font-weight:800; color:#dde6f2; line-height:1.2; margin-top:2px; }
.pack-sub{ margin:6px auto 0 !important; color:var(--muted); }
.panel.pack .chase-bar{ max-width:520px; margin:10px auto 0; }

/* RULE (Ron, 2026-11-27): every heading a member sees is in the candy font (candy.css --pop), not only
   the page title. Section heads, card heads, game names, the reveal. Admin pages are the exception. */
.how-h, .panel h2, .gname, .soon-h, .cname, .tc-name, .how-steps li > b, .troph-h{
  font-family:var(--pop,'Luckiest Guy','Lilita One',system-ui,sans-serif); font-weight:400; letter-spacing:.5px; }

/* Progress bars are the shared candy bar (.cbar in candy.css); these only size and place them. */
.bar.cbar{ flex:1 1 110px; height:18px; min-width:80px; max-width:240px; border-width:3px; background:linear-gradient(180deg,#07050e,#1d1631); }
.chase-bar.cbar{ height:30px; margin:0 0 14px; border-width:3px; background:linear-gradient(180deg,#07050e,#1d1631); }
.chase-bar.cbar > i{ background:
    linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.14) 44%, rgba(255,255,255,0) 54%, rgba(0,0,0,.2) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.26) 0 10px, rgba(255,255,255,0) 10px 20px),
    linear-gradient(90deg,#ff4f9a 0%,#ff8a2b 48%,#ffd23f 100%); }
.bar.cbar > i{ background:
    linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.14) 44%, rgba(255,255,255,0) 54%, rgba(0,0,0,.2) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.26) 0 10px, rgba(255,255,255,0) 10px 20px),
    linear-gradient(90deg,#ff4f9a 0%,#ff8a2b 48%,#ffd23f 100%); }
.chase-bar.cbar span{ font-family:var(--pop); font-weight:400; font-size:1.05rem; letter-spacing:.6px; -webkit-text-stroke:3px var(--edge); paint-order:stroke fill; text-shadow:none; z-index:2; }

/* ---- no currency (2026-11-27): each set shows a bar for its next Rocko, and a Play button ---- */
.draw-row .prog{ display:flex; flex-direction:column; gap:4px; flex:1 1 260px; min-width:0; max-width:420px; }
.draw-row .prog-l{ font-family:var(--candy, var(--disp)); font-size:.95rem; letter-spacing:.3px; color:var(--gold); }
.draw-row .prog .cbar{ width:100%; }
.draw-row a.pd-btn{ text-decoration:none; }
.chase a.chase-btn{ text-decoration:none; display:inline-block; }

/* how you get this one, right on the tile */
.charm .get{ margin-top:5px; padding:3px 8px; border-radius:999px; font-size:.72rem; font-weight:900; line-height:1.2; color:#1b1326; background:var(--gold); display:inline-block; }
.charm .get.won{ color:#0d2a1c; background:var(--teal, #5ee08f); }
.game.soon .charm .get{ color:var(--muted); background:rgba(255,255,255,.08); }
/* one plain line under each set's name: what it is and how you win it */
.gsub{ margin:2px 0 10px; color:#cfdaec; font-weight:700; font-size:.95rem; line-height:1.4; max-width:720px; }
.gsub b{ color:var(--gold); }
.soon-grid .gsub{ font-size:.82rem; }
/* stars for a game's Rocko (won after Gold) */
.game-head .stars{ display:inline-flex; gap:2px; align-items:center; }
.game-head .stars img{ width:22px; height:22px; object-fit:contain; }
.game-head .stars img.off{ filter:grayscale(1) brightness(.45); opacity:.6; }
.game-head .stars img.on{ filter:drop-shadow(0 0 6px rgba(255,201,60,.8)); }

/* --- Real (physical) Charms: the "Real" badge + the register entry (dormant until REAL_CHARMS=on) --------- */
.charm .disc{ position:relative; }
.real-badge{ position:absolute; top:4px; left:4px; z-index:2; display:inline-flex; align-items:center; gap:3px;
  font-family:var(--disp); font-size:.6rem; letter-spacing:.03em; color:var(--edge); background:var(--gold);
  border:2px solid var(--edge); border-radius:999px; padding:2px 7px 2px 5px; box-shadow:0 2px 0 var(--edge); }
.real-badge img{ width:11px; height:11px; object-fit:contain; }
.register-row{ display:flex; justify-content:center; margin:4px 0 2px; }

/* Register-a-real-Charm dialog (mirrors the trophy card) */
.rg{ position:fixed; inset:0; z-index:5200; display:none; align-items:center; justify-content:center; padding:20px;
  background:rgba(8,6,12,.72); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
.rg.on{ display:flex; }
.rg-box{ position:relative; width:min(380px,94vw); text-align:center; max-height:calc(100dvh - 40px); overflow-y:auto;
  background:linear-gradient(170deg,var(--panel2),var(--panel)); border:4px solid var(--edge); border-radius:22px;
  box-shadow:0 10px 0 var(--edge); padding:26px 22px 22px; }
.rg-disc{ width:72px; height:72px; margin:0 auto 10px; border-radius:50%; display:grid; place-items:center;
  background:radial-gradient(circle at 50% 40%,#4a3a66,#271d33 72%); border:3px solid var(--edge); box-shadow:0 5px 0 var(--edge); }
.rg-disc img{ width:58%; height:58%; object-fit:contain; filter:drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.rg-box h2{ margin:2px 0 6px; font-size:1.7rem; }
.rg-lead{ color:var(--muted); font-weight:800; font-size:.92rem; line-height:1.45; margin:0 0 14px; }
.rg-input{ width:100%; box-sizing:border-box; font-family:var(--disp); font-size:1.1rem; letter-spacing:.06em;
  text-align:center; color:var(--cream); background:var(--bg2); border:3px solid var(--edge); border-radius:12px; padding:12px 14px; }
.rg-input:focus{ outline:none; border-color:var(--gold); }
.rg-msg{ min-height:1.1em; margin:10px 2px 0; font-weight:800; font-size:.9rem; line-height:1.4; color:var(--muted); }
.rg-msg a{ color:var(--sky); text-decoration:underline; }
.rg-msg.err{ color:var(--red); } .rg-msg.ok{ color:var(--teal); }
.rg-actions{ margin-top:14px; } .rg-actions .btn{ width:100%; }
