/* Card look: lifted slate panel, rarity-coloured frame, portrait on a background coloured by the character's people. */
.card { background:linear-gradient(#1e2029,#15161d); border:3px solid color-mix(in srgb, var(--rc) 75%, #000); box-shadow:0 0 0 2px #000; }
.card.sel { border-color:var(--rc); box-shadow:0 0 0 2px #000, 0 0 16px var(--rc); }
.art { width:64px; align-items:flex-end; padding:0; border:2px solid #000; overflow:hidden;
  background:radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--pc) 100%, #fff 18%), var(--pc) 55%, color-mix(in srgb, var(--pc) 45%, #000) 100%); }
.art svg.portrait { width:62px; height:67px; display:block; }
.art[data-people="elf"]     { --pc:#1f5a6a; }
.art[data-people="dwarf"]   { --pc:#7a3a1c; }
.art[data-people="man"]     { --pc:#2f5a30; }
.art[data-people="hobbit"]  { --pc:#8a6a20; }
.art[data-people="wizard"]  { --pc:#4a3a8a; }
.art[data-people="orc"]     { --pc:#5a1a14; }
.art[data-people="troll"]   { --pc:#4a4a36; }
.art[data-people="shadow"]  { --pc:#2a0e2e; }
.art[data-people="evilman"] { --pc:#5a2a20; }
.art[data-people="artifact"], .art[data-people="beast"] { --pc:#3a2e22; }
.top b { color:#fff6e0; } .info p { color:#e8dcc4; }

/* framed portraits outside the cards (squad slots, quest party, result) */
.face { display:inline-flex; align-items:flex-end; justify-content:center; border:2px solid #000; box-shadow:0 0 0 2px #6a4a2a; overflow:hidden;
  background:radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--pc) 100%, #fff 18%), var(--pc) 55%, color-mix(in srgb, var(--pc) 45%, #000) 100%); }
.face[data-people="elf"] { --pc:#1f5a6a; } .face[data-people="dwarf"] { --pc:#7a3a1c; } .face[data-people="man"] { --pc:#2f5a30; }
.face[data-people="hobbit"] { --pc:#8a6a20; } .face[data-people="wizard"] { --pc:#4a3a8a; } .face[data-people="orc"] { --pc:#5a1a14; }
.face[data-people="troll"] { --pc:#4a4a36; } .face[data-people="shadow"] { --pc:#2a0e2e; } .face[data-people="evilman"] { --pc:#5a2a20; }
.face svg { display:block; }
.party { gap:8px; border-bottom:none; } .party .face svg { width:56px; height:60px; }
.team { gap:8px; } .team .face svg { width:54px; height:58px; }
.award .face svg { width:40px; height:43px; }
.slot svg.portrait { width:34px; height:37px; margin-bottom:12px; }
.sentinel svg { width:64px; height:88px; }
.party .face svg, .team .face svg, .award .face svg { max-width:none; } .party svg, .team svg { max-width:none; }

/* ---------- the ring reveal on the quest screen ---------- */
.ringpop { position:relative; width:120px; height:120px; margin:18px auto 0; display:flex; align-items:center; justify-content:center; }
.ringpop svg { position:relative; z-index:2; width:108px; height:108px; }
.ringpop.won svg { animation:ringUp .7s cubic-bezier(.2,1.7,.4,1) both, ringGlow 1.6s .7s ease-in-out infinite alternate; }
.ringpop.won::before { content:""; position:absolute; inset:-10px; border-radius:50%; z-index:1; animation:halo .7s .1s both;
  background:radial-gradient(circle, var(--glow) 0%, transparent 65%); }
.ringpop.g-seven { --glow:#ffb03a88; } .ringpop.g-nine { --glow:#b8c0d066; } .ringpop.g-three { --glow:#9ad0ff77; } .ringpop.g-one { --glow:#ff7a1aaa; }
.ringpop.g-one svg { filter:drop-shadow(0 0 10px #ff8a1a) drop-shadow(0 0 22px #ff4a00); }
@keyframes ringUp { 0% { transform:scale(0) rotate(-200deg); opacity:0; } 70% { opacity:1; } 100% { transform:scale(1) rotate(0); } }
@keyframes ringGlow { from { filter:drop-shadow(0 0 4px var(--glow)); } to { filter:drop-shadow(0 0 14px var(--glow)) brightness(1.15); } }
@keyframes halo { from { transform:scale(.2); opacity:0; } 60% { opacity:1; } to { transform:scale(1); } }
.ringpop i { position:absolute; z-index:3; width:6px; height:6px; background:#fff3b0; box-shadow:0 0 6px #ffd040; left:50%; top:50%; opacity:0; animation:spark .9s .45s ease-out both; }
.ringpop i:nth-child(1) { --dx:-62px; --dy:-40px; } .ringpop i:nth-child(2) { --dx:58px; --dy:-46px; } .ringpop i:nth-child(3) { --dx:-70px; --dy:22px; }
.ringpop i:nth-child(4) { --dx:66px; --dy:30px; } .ringpop i:nth-child(5) { --dx:-8px; --dy:-72px; } .ringpop i:nth-child(6) { --dx:10px; --dy:70px; }
@keyframes spark { 0% { transform:translate(-50%,-50%) scale(.4); opacity:1; } 100% { transform:translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2); opacity:0; } }
.ringpop.lost svg { filter:grayscale(1) brightness(.55); animation:ringLost 1.1s .2s ease-in both; }
@keyframes ringLost { 0% { transform:translateY(-10px); opacity:0; } 30% { opacity:.9; transform:translateY(0); } 100% { transform:translateY(26px) rotate(25deg); opacity:.25; } }
.quest .stamp { margin-top:6px; animation-delay:.85s; }

/* ---------- mute button and first-time intro ---------- */
.mute { position:absolute; top:8px; right:8px; z-index:20; width:34px; height:34px; font-size:16px; background:#0d0805cc; border:2px solid #6a4a2a; text-align:center; line-height:1; }
.draft .hud { padding-right:52px; }
.intro { position:absolute; inset:0; z-index:30; background:#050302d9; display:flex; align-items:center; justify-content:center; padding:20px; animation:fadein .25s both; }
@keyframes fadein { from { opacity:0; } }
.ipanel { width:100%; max-width:340px; background:linear-gradient(#1e2029,#15161d); border:3px solid #f6c945; box-shadow:0 0 0 3px #000, 0 0 30px #ff9a2a44;
  padding:18px 18px 14px; text-align:center; animation:pop .3s both; }
.idots { display:flex; justify-content:center; gap:6px; margin-bottom:10px; } .idots i { width:8px; height:8px; background:#4a3420; } .idots i.on { background:#f6c945; }
.iicon { height:80px; display:flex; align-items:center; justify-content:center; } .iicon svg { width:72px; height:72px; filter:drop-shadow(0 0 8px #ffb03a88); }
.ipanel h2 { font-family:'Press Start 2P'; font-size:16px; color:#f6c945; text-shadow:2px 2px 0 #5a2800; margin:8px 0 10px; }
.ipanel p { font-family:'Pixelify Sans'; font-size:16px; line-height:1.3; color:#efe2c8; margin-bottom:16px; }
.ipanel .btn { width:100%; } .iskip { margin-top:10px; font-family:'Pixelify Sans'; font-size:14px; color:#a8907a; text-decoration:underline; }

/* ---------- about + bestiary ---------- */
.home .foot { background:none; border:0; } .foot u { color:#d8b880; }
.bgrid { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
.bcell { display:flex; flex-direction:column; align-items:center; gap:3px; }
.bcell .face { width:100%; aspect-ratio:28/30; box-shadow:0 0 0 2px color-mix(in srgb, var(--rc) 70%, #000); }
.bcell img { width:100%; height:100%; image-rendering:pixelated; display:block; }
.bcell small { font-family:'Pixelify Sans'; font-size:11px; color:#a8987e; text-align:center; line-height:1.1; }
.bcell.got small { color:#f6c945; }
.btap { position:sticky; top:6px; z-index:5; background:#efe0b8; color:#2a1808; border:3px solid #000; box-shadow:0 0 0 3px var(--rc); padding:8px 10px; margin-bottom:10px; }
.btap b { display:block; font-family:'Pixelify Sans'; font-weight:600; font-size:16px; } .btap i { display:block; font-style:normal; font-family:'Pixelify Sans'; font-size:12px; color:#7a5a30; margin:2px 0 4px; }
.btap span { font-family:'Pixelify Sans'; font-size:14px; line-height:1.25; }
