
:root{--bg:#0a0805;--card1:#1a140c;--card2:#14100a;--line:#332b1d;--gold:#e9b64b;--gold2:#f7d98c;--ink:#f0eadd;--mut:#a89d84;--dim:#6f6650;--green:#57c15f;--red:#e05b5b}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
/* A child that overflows widens its scroll container, and the header did
   exactly that on a phone. The header is fixed now, but this keeps ONE
   mis-sized element from making the entire page slide sideways again. */
body{overflow-x:clip;margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--gold);text-decoration:none}
/* >>> EVERY :hover RULE BELOW IS BEHIND @media (hover: hover), AND THAT IS A
   BUG FIX RATHER THAN TIDYING. <<< Reported 2026-09-16: the Item-Shop's
   "+ Get Coins" button had to be tapped TWICE before its dialog opened.

   A browser with no hovering pointer emulates one. The first tap applies the
   :hover state, the browser sees the page change under the finger, and it
   withholds the click until a second tap -- so every hover-styled control on
   this site is a tap-twice control on a phone, and the button that was
   reported is simply the one somebody noticed.

   `hover: hover' is true for a mouse or a trackpad and false for a touch
   screen, so a desktop keeps every effect exactly as it was and a phone stops
   swallowing the first tap. The shop's own button ALSO listens on pointerdown
   now (templates/shop.html) -- belt and braces, because this class of bug is
   invisible on the machine it is developed on. */
@media (hover: hover){
a:hover{color:var(--gold2)}
}
h1,h2,h3{font-family:Cinzel,serif}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}
.nav{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 22px;background:rgba(10,8,5,.85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(233,182,75,.18)}
.nav img{height:34px;display:block}
.nav .links{display:flex;align-items:center;gap:18px;font-size:14px}
.nav .links a{color:#d8d0bd}
.langs a{font-size:12px;letter-spacing:1px;opacity:.55;color:#d8d0bd;margin-left:8px}
.langs a.on{opacity:1;font-weight:800;color:var(--gold2);text-decoration:underline;text-underline-offset:4px}
.card{background:linear-gradient(180deg,var(--card1),var(--card2));border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 24px 60px rgba(0,0,0,.55)}
input,select{width:100%;background:#131007;color:var(--ink);border:1px solid var(--line);padding:13px 14px;border-radius:12px;font-size:16px;font-family:inherit;margin:5px 0}
input:focus,select:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(233,182,75,.16)}
button,.btn-gold{display:inline-block;background:linear-gradient(180deg,#ffe9ad,var(--gold) 55%,#d99f2b);color:#241c0d;font-family:Cinzel,serif;font-weight:900;font-size:16px;letter-spacing:1px;text-transform:uppercase;border:1px solid rgba(255,236,180,.8);padding:14px 24px;border-radius:14px;cursor:pointer;text-align:center;transition:transform .15s}
.btn-ghost{display:inline-block;border:1px solid rgba(233,182,75,.55);color:var(--gold2);font-weight:700;padding:12px 24px;border-radius:12px;transition:background .2s;cursor:pointer}
@media (hover: hover){
button:hover,.btn-gold:hover{transform:translateY(-2px);color:#241c0d}
.btn-ghost:hover{background:rgba(233,182,75,.12);color:var(--gold2)}
}
.muted{color:var(--mut);font-size:14px}
.flash{max-width:640px;margin:14px auto 0;padding:12px 16px;border-radius:12px;font-size:14px;border:1px solid rgba(87,193,95,.5);background:rgba(87,193,95,.1);color:#8ee796}
.flash.error{border-color:rgba(224,91,91,.5);background:rgba(224,91,91,.1);color:#e88b8b}
.kick{font-size:12px;letter-spacing:3px;color:var(--mut);margin-bottom:10px}
.h2{margin:0;font-weight:800;font-size:clamp(26px,3.6vw,42px)}.h2 em{font-style:normal;color:var(--gold)}
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes ctaPulse{0%{box-shadow:0 6px 24px rgba(0,0,0,.5),0 0 0 0 rgba(233,182,75,.55)}70%{box-shadow:0 6px 24px rgba(0,0,0,.5),0 0 0 16px rgba(233,182,75,0)}100%{box-shadow:0 6px 24px rgba(0,0,0,.5),0 0 0 0 rgba(233,182,75,0)}}
@keyframes dotPulse{0%{box-shadow:0 0 0 0 rgba(87,193,95,.5)}70%{box-shadow:0 0 0 10px rgba(87,193,95,0)}100%{box-shadow:0 0 0 0 rgba(87,193,95,0)}}
@keyframes coinSpin{0%,100%{transform:rotateY(0)}50%{transform:rotateY(180deg)}}
.rise{animation:rise .5s cubic-bezier(.22,.7,.35,1) both}
@media (max-width:820px){.nav .links{display:none}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* ---- the player pages ----------------------------------------------------
   /register, /account, /forgot and the rest were built on the ADMIN panel's
   frame and looked like it: a different header, a different palette, a visible
   seam every time somebody crossed from the landing page into making an
   account. They are on this frame now, and these are the few primitives they
   need that the landing page itself never did -- numbered steps, the live
   yes/no hint under a form field, and a small table of characters.
   The admin side keeps its own frame; it is the only thing that does. */
.pnarrow{max-width:460px;margin:0 auto}
.pwide{max-width:900px;margin:0 auto}
.psteps{list-style:none;counter-reset:s;margin:16px 0;padding:0;text-align:left}
.psteps li{counter-increment:s;display:flex;gap:12px;align-items:flex-start;margin-bottom:11px;font-size:14.5px;color:#d8d0bd}
.psteps li::before{content:counter(s);flex:none;width:26px;height:26px;border-radius:50%;
  border:1px solid var(--gold);color:var(--gold);display:flex;align-items:center;justify-content:center;
  font-family:Cinzel,serif;font-weight:800;font-size:13px}
.hintline{min-height:18px;font-size:12.5px;margin:2px 2px 6px;color:var(--dim)}
.hintline.ok-t{color:#8ee796}
.hintline.bad-t{color:#e88b8b}
.ptable{width:100%;border-collapse:collapse;margin-top:8px;font-size:14px}
.ptable th{text-align:left;font-size:11px;letter-spacing:1.2px;text-transform:uppercase;
  color:var(--dim);font-weight:600;padding:6px 8px;border-bottom:1px solid var(--line)}
.ptable td{padding:9px 8px;border-bottom:1px solid #241d12}
.ptable tr:last-child td{border-bottom:0}
.pback{display:inline-block;margin:22px 0 4px;font-size:14px;color:var(--mut)}
@media (hover: hover){.pback:hover{color:var(--gold2)}}
.locked{opacity:.5;cursor:not-allowed;pointer-events:none}
.pgrid{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;gap:18px}
.pgrid>.card{flex:1 1 320px;max-width:390px;margin:0;text-align:center}
.porsep{display:flex;align-items:center;font-family:Cinzel,serif;font-weight:800;
  font-size:22px;letter-spacing:2px;color:var(--dim);flex:0 0 auto}


@keyframes emberUp{0%{transform:translateY(0);opacity:0}8%{opacity:1}90%{opacity:.7}100%{transform:translateY(-110vh) translateX(30px);opacity:0}}
@keyframes titleGlow{0%,100%{text-shadow:0 0 18px rgba(233,182,75,.25)}50%{text-shadow:0 0 34px rgba(233,182,75,.6)}}
@keyframes warriorGlow{0%,100%{filter:drop-shadow(0 0 22px rgba(233,182,75,.30))}50%{filter:drop-shadow(0 0 46px rgba(255,140,60,.55))}}
@keyframes charBreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.015) translateY(-4px)}}
@keyframes kenBurns{from{transform:scale(1.06)}to{transform:scale(1.14) translateX(-1.5%)}}
@keyframes bannerGlowBlue{0%,100%{opacity:.15}50%{opacity:.6}}
@keyframes bannerGlowRed{0%,100%{opacity:.5}50%{opacity:.12}}
@keyframes bannerSheen{0%{transform:translateX(-130%) skewX(-14deg)}55%,100%{transform:translateX(340%) skewX(-14deg)}}
.hero{position:relative;min-height:96vh;display:flex;align-items:flex-end;justify-content:center;text-align:center;overflow:hidden}
/* ── WHY THE SPARE HEIGHT IS ALL AT THE BOTTOM ─────────────────────────────
   This layer is taller than the hero on purpose: the scroll handler at the
   foot of this file pushes it DOWN (marginTop grows with scrollY), so the
   slack is needed BELOW. It used to be split evenly (inset:-6% 0), which put
   6% of the artwork above the hero's top edge where nothing can ever see it
   -- and the logo is baked into the artwork's TOP-RIGHT corner, so that half
   was doing nothing but cutting the brand off.

   The artwork is 1672x941 (16:9). On a screen wider than that -- 2537x1255 is
   2.02:1 -- `cover' scales to the WIDTH, so the image ends up ~1428px tall in
   a 1255px box and ~173px has to go somewhere. `22%' put a fifth of it above
   the top. `0%' puts all of it below, which is the half the shade gradient
   already covers.

   transform-origin moves to the top for the same reason: Ken Burns scales to
   1.14, and about a 25%-down origin that lifted the top edge by another ~49px
   on every cycle. Anchored at the top, the zoom can only grow downward. */
.hero .bg{position:absolute;inset:0 0 -12% 0;background:url('/portal-assets/hero-artwork.jpg') 82% 0%/cover no-repeat;animation:kenBurns 22s ease-in-out infinite alternate;transform-origin:82% 0%;will-change:transform}

/* ── A PHONE IS NOT A NARROW DESKTOP ───────────────────────────────────────
   Portrait is where `cover' turns against this image. A 16:9 artwork in a
   441x975 box is scaled to cover the HEIGHT, so it ends up ~1733px wide in a
   441px box: three quarters of it is off-screen and the focal point decides
   which quarter survives. At 82% across that quarter is the logo -- which is
   exactly what the phone was showing, with the character nowhere in it.

   So on a narrow screen the focus moves to the character (~32% across) and
   the crop stops mattering: the header already carries the logo on mobile, so
   nothing is lost by letting the artwork show the figure instead.

   Ken Burns is switched off here rather than retuned. Zooming a crop that is
   already showing a quarter of the picture only takes more away, and on a
   phone it is a continuous repaint of a full-screen image for an effect
   nobody asked for. */
@media (max-width:760px){
  .hero{min-height:82vh}
  .hero .bg{background-position:32% 38%;animation:none;transform:none}
  .hero .in{padding:32vh 20px 56px}
  /* A sideways start offset on a full-width block is horizontal overflow on a
     phone: the page gets a sliver of sideways scroll while elements are still
     off-screen. Vertical-only reveals there - and less motion is kinder on a
     small screen anyway. */
  .rv-l,.rv-r{transform:translateY(24px)}
  /* Stacked, the alternation stops meaning "sides" and starts meaning "odd
     rows show the picture first, even rows the text" - an inconsistency, not
     a rhythm. One column, picture first, every time. */
  .feat,.feat:nth-child(even){flex-direction:column;margin-bottom:44px}
}
.hero .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,8,5,.30),rgba(10,8,5,.12) 30%,rgba(10,8,5,.90) 78%,var(--bg))}
.hero .in{position:relative;z-index:2;padding:40vh 20px 72px;max-width:900px;display:flex;flex-direction:column;align-items:center;gap:16px}
.chip{display:inline-flex;align-items:center;gap:8px;font-size:13px;padding:7px 14px;border-radius:999px;background:rgba(20,16,10,.8);border:1px solid var(--line)}
.pcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.pcard{background:linear-gradient(180deg,var(--card1),var(--card2));border:1px solid var(--line);border-radius:18px;padding:26px;transition:border-color .25s,transform .25s}
.pcard:hover{border-color:rgba(233,182,75,.5);transform:translateY(-4px)}
.rv{opacity:0;transform:translateY(30px);transition:opacity .8s cubic-bezier(.22,.7,.35,1),transform .8s cubic-bezier(.22,.7,.35,1)}
.rv.in{opacity:1;transform:none}
/* Feature rows slide in from their own side - the alternation is the motion's
   whole point, so the two variants only differ in the start offset. */
.rv-l{transform:translateX(-46px) translateY(12px)}
.rv-r{transform:translateX(46px) translateY(12px)}
.rv-l.in,.rv-r.in{transform:none}
.feat{display:flex;gap:34px;align-items:center;flex-wrap:wrap;margin:0 0 58px}
.feat:nth-child(even){flex-direction:row-reverse}
.feat>.fimg{flex:1 1 440px;min-width:300px;position:relative;border-radius:18px;overflow:hidden;border:1px solid var(--line);box-shadow:0 24px 60px rgba(0,0,0,.55)}
.feat>.fimg img{width:100%;height:auto;display:block;transition:transform .9s cubic-bezier(.22,.7,.35,1)}
.feat>.fimg:hover img{transform:scale(1.035)}
.feat>.fimg::after{content:'';position:absolute;top:-20%;bottom:-20%;left:-40%;width:34%;pointer-events:none;background:linear-gradient(100deg,transparent,rgba(255,235,190,.14),transparent);transform:skewX(-14deg);transition:left 1.1s ease}
.feat>.fimg:hover::after{left:130%}
.feat>.ftxt{flex:1 1 380px;min-width:280px}

/* ── THE PHONE AROUND THE TWO SCREENSHOTS ────────────────────────────────────
   CSS, not part of the pictures: it scales with them, costs nothing to
   download, and leaves the screenshots as plain captures that can be swapped
   later without matching a border by hand.

   Both frames are the SAME phone, so everything on it turns with it: the notch
   cuts into the screen from the TOP when it stands up and from the LEFT when it
   lies down, and the home indicator sits at the opposite end in both. A notch
   drawn on the top edge of a phone held sideways is the detail that would make
   the pair read as two devices again. */
.pfr{position:relative;display:inline-block;max-width:100%;box-sizing:border-box;
     background:#0b0a07;border:1.5px solid #4a4030;border-radius:30px;padding:9px;
     box-shadow:0 20px 46px rgba(0,0,0,.6),inset 0 0 0 1.5px rgba(255,255,255,.06)}
.pfr img{display:block;max-width:100%;height:auto;border-radius:22px}
/* the notch: a tab of the body's own colour, hanging into the screen */
.pfr::after{content:'';position:absolute;background:#0b0a07;z-index:2}
/* the home indicator, at the far end from the notch */
.pfr::before{content:'';position:absolute;background:rgba(255,255,255,.62);
             border-radius:99px;z-index:2}

.pfr-p::after{top:9px;left:50%;transform:translateX(-50%);
              width:38%;height:17px;border-radius:0 0 12px 12px}
.pfr-p::before{bottom:15px;left:50%;transform:translateX(-50%);width:32%;height:3px}

.pfr-l::after{left:9px;top:50%;transform:translateY(-50%);
              width:17px;height:38%;border-radius:0 12px 12px 0}
.pfr-l::before{right:15px;top:50%;transform:translateY(-50%);width:3px;height:32%}

@media (max-width:620px){
  .pfr{padding:6px;border-radius:22px}
  .pfr img{border-radius:16px}
  .pfr-p::after{top:6px;height:13px}
  .pfr-l::after{left:6px;width:13px}
  .pfr-p::before{bottom:10px}
  .pfr-l::before{right:10px}
}
}

/* ── OVERRIDES THAT HAVE TO COME LAST, AND WHY ───────────────────────────────
   The @media (max-width:760px) block near the top of this stylesheet is written
   ABOVE the rules it overrides. CSS resolves a tie by source order, so those
   desktop rules win and the mobile ones have never applied. Rather than move
   the block (and lose the comments explaining each choice where they are read),
   the rules that must win are repeated here, at the end. */

/* A <video> in a picture box is styled by nothing above -- only `img' is -- so
   it kept its intrinsic size inside a box sized for something else. That is
   the black band under the two clips. */
.feat>.fimg video{width:100%;height:auto;display:block}

@media (max-width:760px){
  /* The sideways start offset IS the horizontal scroll: the right-hand rows
     sit 46px past the viewport until they are revealed. Vertical only. */
  .rv-l,.rv-r{transform:translateX(0) translateY(24px)}

  /* `.feat' is a column here, and in a column flex-basis is the HEIGHT: a
     440px basis made every picture box 440px tall whatever was in it. The
     300px min-width is also wider than the content column on a 320px screen.
     Both go: the box is as wide as the column and as tall as its picture. */
  .feat>.fimg,.feat>.ftxt{flex:0 1 auto;width:100%;min-width:0}
}
.fbadge{display:inline-block;font-size:11px;letter-spacing:1.4px;font-weight:800;color:var(--gold2);border:1px solid rgba(233,182,75,.45);border-radius:999px;padding:5px 13px;margin-bottom:12px}
.flagrow{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;max-width:820px;margin:0 auto}
.flagrow span{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:var(--card2);border:1px solid var(--line);font-size:13px;color:#d8d0bd}
.flagrow i{display:inline-block;width:20px;height:15px;border-radius:2px;background-size:cover;background-position:center}
/* Lightbox: every promo image opens full-size on click/tap. */
.zoomable{cursor:zoom-in}
#lightbox{position:fixed;inset:0;z-index:300;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(5,4,2,.9);cursor:zoom-out;opacity:0;transition:opacity .25s ease}
#lightbox.open{display:flex}
#lightbox.shown{opacity:1}
#lightbox img{max-width:96vw;max-height:92vh;width:auto;height:auto;border-radius:12px;box-shadow:0 30px 90px rgba(0,0,0,.85);transform:scale(.96);transition:transform .25s ease}
#lightbox.shown img{transform:scale(1)}


/* ---- the split play button (header) -------------------------------------- */
.playsplit{position:relative;display:inline-flex;align-items:stretch;border-radius:12px;
  background:linear-gradient(135deg,var(--gold2),var(--gold));box-shadow:0 6px 18px rgba(233,182,75,.22);
  vertical-align:middle}
.playsplit .pshalf{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;
  color:#1a1206;font-weight:800;font-family:Cinzel,serif;letter-spacing:.5px;cursor:pointer;
  font-size:13px;padding:9px 16px;text-decoration:none}
.playsplit .psgo{border-radius:12px 0 0 12px}
.playsplit .psflag{border-radius:0 12px 12px 0;padding:9px 11px}
.playsplit .psflag b{font-size:11px;opacity:.75;font-family:inherit}
.playsplit .psdiv{width:1px;background:rgba(26,18,6,.28);margin:7px 0}
@media (hover: hover){.playsplit .pshalf:hover{background:rgba(255,255,255,.18)}}
.playsplit i{display:inline-block;width:20px;height:15px;border-radius:3px;
  background-size:cover;background-position:center;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.psmenu{position:absolute;top:calc(100% + 8px);right:0;z-index:60;min-width:212px;max-height:330px;
  overflow-y:auto;padding:7px;border-radius:14px;border:1px solid var(--line);
  background:#15110b;box-shadow:0 22px 60px rgba(0,0,0,.6);display:flex;flex-direction:column;gap:1px}
.psmenu[hidden]{display:none}
.psmenu a{display:flex;align-items:center;gap:10px;padding:8px 11px;border-radius:9px;
  color:#e4dccb;text-decoration:none;font-size:13.5px;font-weight:500;letter-spacing:0;font-family:inherit}
@media (hover: hover){.psmenu a:hover{background:var(--card2);color:var(--gold2)}}
.psmenu a.on{color:var(--gold);font-weight:700}
.psmenu i{width:24px;height:18px}
@media(max-width:520px){.psmenu{right:auto;left:0}}

/* ---- the header's right-hand side ---------------------------------------- */
.navright{display:flex;align-items:center;gap:12px;position:relative;min-width:0}
.navlogin{display:none}
.navtoggle{display:none;flex-direction:column;justify-content:center;gap:4px;
  width:40px;height:38px;padding:0 10px;border-radius:11px;border:1px solid rgba(233,182,75,.55);
  background:transparent;cursor:pointer}
.navtoggle span{display:block;height:2px;background:var(--gold2);border-radius:2px;transition:.2s}
.navtoggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.navtoggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.navtoggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.navdrop{position:absolute;top:calc(100% + 10px);right:0;z-index:55;min-width:230px;
  display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:16px;
  border:1px solid var(--line);background:#15110b;box-shadow:0 22px 60px rgba(0,0,0,.65)}
.navdrop[hidden]{display:none}
.navdrop a{display:flex;align-items:center;gap:9px;padding:11px 13px;border-radius:11px;
  color:#e4dccb;font-size:14.5px;background:var(--card2)}
@media (hover: hover){.navdrop a:hover{color:var(--gold2)}}
.navdropplay{display:flex;justify-content:center;margin-top:2px}
.navdropplay .playsplit{width:100%}
.navdropplay .psgo{flex:1;justify-content:center}

@media(max-width:820px){
  .navfull{display:none}
  .navtoggle{display:flex}
  /* Signed out there is no menu -- the login becomes a plain word beside the
     one button, which is all a phone has room for. */
  .navlogin{display:inline;font-size:13px;color:#d8d0bd;white-space:nowrap}
}
@media(max-width:400px){
  .navright{gap:8px}
  .langs{display:none}          /* the footer carries the same three */
  .navlogin{display:none}
}

/* ---- the flag grid (landing page) ---------------------------------------- */
.langgrid{margin-top:18px}
.langgrid .lgnote{margin:0 0 10px;font-size:12.5px;color:var(--mut)}
.langgrid .lgflags{display:flex;flex-wrap:wrap;gap:9px;max-width:430px}
.langgrid .lgflags a{display:block;padding:5px;border-radius:9px;border:1px solid var(--line);
  background:var(--card2);line-height:0;transition:border-color .18s,transform .18s}
@media (hover: hover){.langgrid .lgflags a:hover{border-color:var(--gold);transform:translateY(-2px)}}
.langgrid .lgflags a.on{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold) inset}
.langgrid .lgflags i{display:block;width:30px;height:22px;border-radius:4px;
  background-size:cover;background-position:center}
.langgrid .lgpick{margin:11px 0 0;font-size:12.5px;color:var(--dim)}
.langgrid .lgpick b{color:var(--gold2)}
@media(max-width:640px){.langgrid .lgflags{justify-content:center;max-width:none}
  .langgrid .lgnote,.langgrid .lgpick{text-align:center}}


  /* THE HALL OF THE THREE HIGHEST (1.170.14) ------------------------------
     A room, not a backdrop: a vaulted ceiling, two pairs of pillars with
     burning sconces, two banners, a shaft of light on the winner, embers
     drifting up from the floor, and a tiled floor running back into the dark.
     Every one of those is a gradient, a clip-path or a keyframe -- the section
     loads no image and no script of its own.

     The figures scale WITH the room (vw units with generous caps), because the
     complaint that answered the first version was that they looked tiny in it. */
  .hall{position:relative;isolation:isolate;padding:22px 0 0;overflow:hidden;
        background:radial-gradient(130% 62% at 50% 0%,rgba(233,196,106,.10),transparent 60%),
                   linear-gradient(180deg,#0a0806,#151009 58%,#080605)}
  .hallbg{position:absolute;inset:0;z-index:0;pointer-events:none}
  /* the floor: one tiled plane laid down by perspective, fading into the dark */
  .hallfloor{position:absolute;left:-40%;right:-40%;bottom:0;height:230px;
             background-image:repeating-linear-gradient(90deg,rgba(197,160,93,.13) 0 1px,transparent 1px 72px),
                              repeating-linear-gradient(0deg,rgba(197,160,93,.10) 0 1px,transparent 1px 46px);
             transform:perspective(460px) rotateX(66deg);transform-origin:bottom center;
             -webkit-mask-image:linear-gradient(0deg,#000 8%,transparent 78%);
             mask-image:linear-gradient(0deg,#000 8%,transparent 78%)}
  /* the vault: three rings, each further away than the last */
  .hallarch{position:absolute;left:10%;right:10%;top:1%;height:76%;
            border:2px solid rgba(197,160,93,.14);border-bottom:none;
            border-radius:50% 50% 0 0/62% 62% 0 0}
  .hallarch.in{left:21%;right:21%;top:8%;height:62%;border-color:rgba(197,160,93,.10)}
  .hallarch.far{left:31%;right:31%;top:15%;height:50%;border-color:rgba(197,160,93,.07)}
  /* the light from above, falling on first place */
  .hallbeam{position:absolute;left:50%;top:0;width:min(640px,46%);height:82%;
            transform:translateX(-50%);filter:blur(7px);
            background:linear-gradient(180deg,rgba(255,214,140,.13),rgba(255,214,140,.05) 52%,transparent 84%);
            clip-path:polygon(40% 0,60% 0,86% 100%,14% 100%)}
  /* a pillar: a fluted shaft between a capital and a base */
  .pil{position:absolute;bottom:84px;width:var(--pw,58px);height:var(--ph2,340px);
       background:linear-gradient(90deg,#070504 0%,#221a12 16%,#3a2e1e 40%,#221a12 68%,#070504 100%),
                  repeating-linear-gradient(90deg,rgba(0,0,0,.30) 0 2px,transparent 2px 10px);
       box-shadow:inset 0 -60px 70px rgba(0,0,0,.65)}
  .pil::before,.pil::after{content:"";position:absolute;left:-16%;right:-16%;height:16px;
       background:linear-gradient(180deg,#4a3b26,#1a140d);border-radius:3px;
       box-shadow:0 2px 0 rgba(0,0,0,.5)}
  .pil::before{top:-16px}
  .pil::after{bottom:-16px;height:20px}
  .pil-l{left:1%}.pil-r{right:1%}
  .pil-lf{left:16%;--pw:38px;--ph2:260px;filter:brightness(.6)}
  .pil-rf{right:16%;--pw:38px;--ph2:260px;filter:brightness(.6)}
  /* two banners hanging from the vault, with an emblem burnt into them */
  .banner{position:absolute;top:0;width:clamp(44px,4.2vw,86px);height:clamp(140px,20vw,300px);
          background:linear-gradient(180deg,#54201c,#3a1512 62%,#250d0b);
          clip-path:polygon(0 0,100% 0,100% 86%,50% 100%,0 86%);
          box-shadow:inset 0 -50px 60px rgba(0,0,0,.55),inset 8px 0 18px rgba(0,0,0,.35)}
  .banner::before{content:"";position:absolute;left:0;right:0;top:0;height:7px;
                  background:linear-gradient(180deg,#6b5636,#2b2116)}
  .banner::after{content:"";position:absolute;left:26%;right:26%;top:26%;height:34%;border-radius:50% 50% 45% 45%;
                 background:radial-gradient(60% 60% at 50% 45%,rgba(233,196,106,.42),rgba(233,196,106,.08) 62%,transparent 72%)}
  .banner-l{left:27%}
  .banner-r{right:27%}
  /* the sconce and what burns in it */
  .torch{position:absolute;left:50%;top:26px;width:0;height:0}
  .sconce{position:absolute;left:-13px;top:0;width:26px;height:14px;
          background:linear-gradient(180deg,#5a4930,#211a11);
          clip-path:polygon(0 0,100% 0,78% 100%,22% 100%)}
  .flame{position:absolute;left:-11px;top:-26px;width:22px;height:30px;border-radius:50% 50% 45% 45%;
         background:radial-gradient(50% 60% at 50% 70%,#fff3c4,#ffb13c 45%,rgba(226,88,20,.55) 72%,transparent 80%);
         filter:blur(1.5px);animation:flick 1.6s ease-in-out infinite}
  .flame.b{left:-7px;top:-16px;width:14px;height:19px;filter:blur(.6px);animation-duration:1.1s;
           background:radial-gradient(50% 60% at 50% 70%,#fffaf0,#ffd27a 55%,rgba(255,170,60,.5) 78%,transparent 85%)}
  .glowpool{position:absolute;left:-95px;top:-105px;width:190px;height:190px;border-radius:50%;
            background:radial-gradient(50% 50% at 50% 50%,rgba(255,170,60,.20),transparent 68%);
            animation:flick 2.3s ease-in-out infinite}
  /* embers drifting up off the floor -- the one thing in here that moves across
     the room, and what makes it read as a place rather than a painting */
  .ember{position:absolute;bottom:8%;width:3px;height:3px;border-radius:50%;opacity:0;
         background:radial-gradient(circle,#ffd089 0%,rgba(255,150,40,.55) 55%,transparent 70%);
         animation:emberUp linear infinite}
  @keyframes emberUp{0%{transform:translate(0,0) scale(.7);opacity:0}
                     14%{opacity:.9}
                     70%{opacity:.55}
                     100%{transform:translate(26px,-340px) scale(1.15);opacity:0}}
  @keyframes flick{0%,100%{transform:scaleY(1) translateY(0);opacity:.95}
                   35%{transform:scaleY(1.12) translateY(-2px);opacity:1}
                   65%{transform:scaleY(.93) translateY(1px);opacity:.82}}
  @media (prefers-reduced-motion:reduce){.flame,.glowpool,.ember{animation:none}.ember{opacity:0}}

  /* the podium itself: three columns whose BOTTOMS line up, so the block each
     figure stands on decides how high it stands. The stages are sized in vw so
     that a wide screen gets big characters instead of a big empty room. */
  .podium{position:relative;z-index:1;display:flex;justify-content:center;align-items:flex-end;
          gap:clamp(16px,3.4vw,72px);max-width:1520px;margin:0 auto;padding:0 16px}
  .pod{display:flex;flex-direction:column;align-items:center;flex:0 0 clamp(180px,21vw,420px)}
  .podbody{width:100%;display:flex;flex-direction:column;align-items:center}
  .pod-1{order:2;z-index:3;flex-basis:clamp(230px,26vw,520px)}
  .pod-2{order:1;z-index:2}
  .pod-3{order:3;z-index:1}
  .podstage{position:relative;z-index:2;width:100%;aspect-ratio:5/7;margin-bottom:-16px}
  .podstage canvas{position:relative;z-index:1;display:block;width:100%;height:100%}
  /* the torchlight the figure stands in */
  .podstage::after{content:"";position:absolute;z-index:0;left:10%;right:10%;bottom:8px;height:30px;
                   border-radius:50%;background:radial-gradient(50% 50% at 50% 50%,rgba(255,190,90,.28),transparent 70%);
                   pointer-events:none}
  .pod-1 .podstage::after{background:radial-gradient(50% 50% at 50% 50%,rgba(255,205,110,.45),transparent 70%)}
  /* the block: a front face, a top face seen slightly from above, a gold inlay */
  .plinth{position:relative;width:100%;height:var(--ph);border-radius:2px 2px 0 0;
          background:linear-gradient(180deg,rgba(255,228,170,.10),transparent 22%),
                     linear-gradient(90deg,#120d09 0%,#33281a 20%,#463726 50%,#2c2217 80%,#100c08 100%);
          box-shadow:0 26px 50px rgba(0,0,0,.7),inset 0 -26px 34px rgba(0,0,0,.55)}
  .plinth::before{content:"";position:absolute;left:-7%;right:-7%;top:-22px;height:24px;
                  background:linear-gradient(180deg,#7d6543,#3c2f1f);
                  clip-path:polygon(7% 0,93% 0,100% 100%,0 100%);
                  box-shadow:0 1px 0 rgba(233,196,106,.45)}
  .plinth::after{content:"";position:absolute;left:6%;right:6%;top:10px;height:2px;
                 background:linear-gradient(90deg,transparent,rgba(233,196,106,.5),transparent)}
  .pod-1 .plinth{--ph:clamp(96px,9vw,170px)}
  .pod-2 .plinth{--ph:clamp(70px,6.4vw,120px)}
  .pod-3 .plinth{--ph:clamp(52px,4.6vw,88px)}
  .podrank{position:absolute;left:0;right:0;bottom:12px;text-align:center;
           font:800 clamp(28px,4.6vw,56px)/1 Cinzel,serif;color:rgba(233,196,106,.40);
           text-shadow:0 1px 0 rgba(233,196,106,.18),0 -1px 3px rgba(0,0,0,.95)}
  .pod-1 .podrank{color:rgba(240,206,120,.78)}
  .podname{height:64px;padding-top:14px;text-align:center;max-width:100%}
  .podn{font-family:Cinzel,serif;font-weight:800;font-size:clamp(14px,1.7vw,22px);color:var(--gold2);
        overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .podl{font-size:clamp(11px,.9vw,13px);letter-spacing:.08em;text-transform:uppercase;color:var(--mut);margin-top:3px}
  .lbhint{position:relative;z-index:1;display:block;width:100%;text-align:center;
          margin:0;padding:0 16px 18px;font-size:12px;letter-spacing:.06em;color:var(--mut)}
  /* the costume switch, in the corner of the room */
  .costog{position:absolute;right:clamp(10px,2vw,28px);bottom:clamp(10px,1.6vw,22px);z-index:4;
          display:inline-flex;align-items:center;gap:9px;cursor:pointer;
          padding:8px 14px;border-radius:999px;border:1px solid var(--line);
          background:rgba(12,9,6,.72);color:var(--mut);font:600 12px/1 inherit;
          letter-spacing:.04em;transition:border-color .2s,color .2s,background .2s}
  .costog:hover{border-color:rgba(233,196,106,.55);color:var(--gold2)}
  .costog .dot{width:30px;height:16px;border-radius:999px;background:#241d13;
               border:1px solid rgba(233,196,106,.30);position:relative;flex:none}
  .costog .dot::after{content:"";position:absolute;top:1px;left:1px;width:12px;height:12px;
                      border-radius:50%;background:#6b5c40;transition:transform .18s,background .18s}
  .costog[aria-pressed="true"]{border-color:rgba(233,196,106,.6);color:var(--gold2)}
  .costog[aria-pressed="true"] .dot{background:#3b2f1b}
  .costog[aria-pressed="true"] .dot::after{transform:translateX(14px);background:var(--gold)}
  @media (max-width:700px){.costog{position:static;margin:4px auto 16px;display:inline-flex}}
  /* Side by side stops being a podium once each figure is 80px wide. Below
     that the three stand one under the other, in rank order, and the hall keeps
     only its floor -- pillars and banners at that width are stripes. */
  @media (max-width:700px){
    .podium{flex-direction:column;align-items:center;gap:26px}
    .pod,.pod-1,.pod-3{order:0;flex-basis:auto;width:min(340px,86vw);margin:0}
    .pod-1 .plinth{--ph:84px}.pod-2 .plinth{--ph:70px}.pod-3 .plinth{--ph:58px}
    .pil,.hallarch,.banner,.hallbeam{display:none}
  }
  /* the signed-in hero's own character (1.170.1) */
  .mestage{position:relative;width:min(340px,76vw);aspect-ratio:5/7}
  .mestage canvas{display:block;width:100%;height:100%}
  .mestage::after{content:"";position:absolute;left:14%;right:14%;bottom:2px;height:30px;border-radius:50%;
                  background:radial-gradient(50% 50% at 50% 50%,rgba(255,200,105,.34),transparent 70%);
                  pointer-events:none}
  .fimg img, .fimg video{cursor:zoom-in}
  #zoom{position:fixed;inset:0;z-index:90;display:none;background:rgba(6,5,4,.93);
        padding:16px;cursor:zoom-out;overflow:auto;overscroll-behavior:contain}
  /* grid, not flex: a flex item that outgrows its container has its overflowing
     half cut off on the scroll side, and on a phone the whole point is that the
     picture IS bigger than the screen. */
  #zoom:not([hidden]){display:grid;place-items:center}
  #zoom > img, #zoom > video{max-width:96vw;max-height:92vh;width:auto;height:auto;
        border-radius:8px;box-shadow:0 24px 60px rgba(0,0,0,.65);cursor:default}
  /* On a portrait phone 96vw is the width the picture already had in the column,
     so the overlay would have magnified nothing. Here it is sized off the HEIGHT
     instead and allowed past the edge: a 1280x936 clip becomes about 1050px wide
     on a 390px screen, roughly three times life size, and the page scrolls
     sideways to read it. */
  @media (orientation: portrait) and (max-width: 900px){
    #zoom > img, #zoom > video{max-width:none;max-height:none;height:78vh;width:auto}
    #zoomX{position:fixed}
  }
  #zoomX{position:absolute;top:10px;right:14px;width:44px;height:44px;line-height:1;
         font-size:28px;border-radius:50%;border:1px solid rgba(255,255,255,.25);
         background:rgba(0,0,0,.45);color:#f3ead6;cursor:pointer;padding:0}
  #zoomX:hover{background:rgba(0,0,0,.75)}


#m2tip{position:fixed;z-index:9000;max-width:330px;padding:10px 13px;border-radius:11px;
  border:1px solid var(--line,#332b1d);background:#15110b;color:#e4dccb;
  font-size:13px;line-height:1.5;box-shadow:0 18px 44px rgba(0,0,0,.6);
  pointer-events:none;opacity:0;transition:opacity .12s;font-weight:400}
#m2tip.on{opacity:1}
#m2tip b{color:var(--gold2,#f7d98c);display:block;margin-bottom:3px}
[data-tip]{cursor:help}
