
: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}



/* ---- 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}}


#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}
