/* ==========================================================================
   kinglio.app, the shared shell

   Same palette and type as the app, so arriving at the site and opening the
   app do not feel like two products. Everything below is plain CSS: the site
   has to load fast on a phone, from a link in a group chat, on 4G.
   ========================================================================== */
:root{
  --bg:#0A0D1C; --bg2:#0E1226; --surface:#151A33; --surface2:#1C2242; --surface3:#242B52;
  --line:rgba(255,255,255,.08); --line2:rgba(255,255,255,.14);
  --text:#F2F4FF; --dim:#9AA3C7; --faint:#5E6690;
  --gold:#F5B843; --gold2:#FFD97A; --violet:#8B7CF6; --indigo:#5B6CFF;
  --mint:#3DD68C; --coral:#FF6B7A; --sky:#4CC9F0;
  --grad-gold:linear-gradient(135deg,#F5B843,#F98C4E);
  --grad-violet:linear-gradient(135deg,#8B7CF6,#5B6CFF);
  --grad-mint:linear-gradient(135deg,#3DD68C,#2BB8A3);
  --r:22px; --wrap:1100px;
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}

/* `hidden` is only display:none at the UA default, which any explicit display
   overrides. The Wordle grid is display:flex, so hiding it after a win did
   nothing and the result rendered underneath the finished board. */
[hidden]{display:none !important}

body{
  background:var(--bg); color:var(--text);
  /* The emoji fonts must be named. Without them the share squares and the
     result icon fall back to tofu boxes on any machine whose default font has
     no emoji coverage -- the same failure the app hit in part84. */
  font-family:'Outfit','Inter',system-ui,-apple-system,sans-serif,
              'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',
              'Segoe UI Symbol';
  font-size:17px; line-height:1.65; overflow-x:hidden;
  background-image:
    radial-gradient(1100px 700px at 82% -8%, rgba(91,108,255,.15), transparent),
    radial-gradient(800px 600px at 5% 40%, rgba(245,184,67,.055), transparent);
  background-attachment:fixed;
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{animation:none !important; transition:none !important}
}
img,video{max-width:100%;display:block}
a{color:var(--gold);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 22px}

/* ---- header ---- */
header{position:sticky;top:0;z-index:50;backdrop-filter:blur(14px);
  background:rgba(10,13,28,.78);border-bottom:1px solid var(--line)}
header .wrap{display:flex;align-items:center;gap:14px;height:64px}
.logo{display:flex;align-items:center;gap:10px;font-weight:900;font-size:19px;
  letter-spacing:-.3px;color:var(--text)}
.logo:hover{text-decoration:none}
.logo img{width:34px;height:34px;border-radius:10px}
.logo b{background:var(--grad-gold);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent}
header nav{margin-left:auto;display:flex;align-items:center;gap:22px;font-size:14.5px;
  font-weight:600}
header nav a{color:var(--dim)}
header nav a:hover{color:var(--text);text-decoration:none}
@media(max-width:720px){ header nav .hide-sm{display:none} }

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:14px 24px;border-radius:100px;font-weight:800;font-size:15.5px;
  border:1.5px solid transparent;cursor:pointer;font-family:inherit;
  transition:transform .14s ease, box-shadow .14s ease}
.btn:hover{text-decoration:none;transform:translateY(-1.5px)}
.btn:active{transform:translateY(0)}
.btn.gold{background:var(--grad-gold);color:#20140A;
  box-shadow:0 8px 26px rgba(245,184,67,.28)}
.btn.gold:hover{box-shadow:0 12px 32px rgba(245,184,67,.36)}
.btn.mint{background:var(--grad-mint);color:#04291A;
  box-shadow:0 8px 26px rgba(61,214,140,.24)}
.btn.ghost{background:var(--surface2);color:var(--text);border-color:var(--line2)}
.btn.sm{padding:10px 18px;font-size:14px}

/* ---- type ---- */
h1{font-size:clamp(38px,6.2vw,66px);line-height:1.04;letter-spacing:-2px;font-weight:900}
h2{font-size:clamp(27px,3.6vw,40px);line-height:1.14;letter-spacing:-1.1px;font-weight:900;
  margin-bottom:14px}
h3{font-size:20px;font-weight:800;letter-spacing:-.3px;margin-bottom:7px}
.lede{font-size:clamp(17px,2vw,20.5px);color:var(--dim);line-height:1.62}
.eyebrow{font-size:11.5px;font-weight:900;letter-spacing:2.2px;text-transform:uppercase;
  color:var(--gold);margin-bottom:14px}
.muted{color:var(--dim)}
.tiny{font-size:13.5px;color:var(--faint);line-height:1.6}
section{padding:clamp(56px,8vw,104px) 0}
.center{text-align:center}
.center .lede{max-width:620px;margin:0 auto}

/* ---- cards ---- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  padding:26px}
.grid{display:grid;gap:16px}
.g3{grid-template-columns:repeat(3,1fr)}
.g2{grid-template-columns:repeat(2,1fr)}
@media(max-width:860px){ .g3{grid-template-columns:1fr} .g2{grid-template-columns:1fr} }

/* ---- footer ---- */
footer{border-top:1px solid var(--line);padding:52px 0 64px;margin-top:40px;
  background:rgba(0,0,0,.22)}
footer .cols{display:flex;flex-wrap:wrap;gap:44px;justify-content:space-between}
footer h4{font-size:11.5px;letter-spacing:1.8px;text-transform:uppercase;
  color:var(--faint);font-weight:900;margin-bottom:12px}
footer ul{list-style:none;display:flex;flex-direction:column;gap:9px;font-size:14.5px}
footer ul a{color:var(--dim)}
footer ul a:hover{color:var(--text)}
.legal{margin-top:40px;padding-top:26px;border-top:1px solid var(--line);
  font-size:13px;color:var(--faint);line-height:1.75}

/* ---- long-form document pages ---- */
.doc{max-width:760px;margin:0 auto;padding:44px 22px 20px}
.doc h1{font-size:clamp(32px,5vw,46px);margin-bottom:10px}
.doc h2{font-size:24px;margin:44px 0 12px;letter-spacing:-.5px}
.doc h3{font-size:18px;margin:26px 0 8px}
.doc p,.doc li{color:#D7DBF0;font-size:16.5px;line-height:1.78}
.doc p{margin-bottom:15px}
.doc ul,.doc ol{margin:0 0 18px 22px}
.doc li{margin-bottom:8px}
.doc hr{border:none;border-top:1px solid var(--line);margin:40px 0}
.doc strong{color:var(--text)}
.doc .updated{color:var(--faint);font-size:14px;margin-bottom:6px}
.doc .callout{background:var(--surface);border:1px solid var(--line2);
  border-left:3px solid var(--gold);border-radius:14px;padding:18px 20px;margin:22px 0}
.doc .callout p:last-child{margin-bottom:0}
.doc table{width:100%;border-collapse:collapse;margin:18px 0;font-size:15px}
.doc th,.doc td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);
  vertical-align:top}
.doc th{color:var(--faint);font-size:12px;letter-spacing:1.2px;text-transform:uppercase}
