/* ---------- Game section nav + footer ---------- */
/* One row, aligned with the page content, pinned while you scroll. It sets its own fonts because
   Vault Run's page body is serif. */
.game-nav{position:sticky;top:0;z-index:50;background:#07111fd9;backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);
  border-bottom:1px solid #ffffff10;font-family:'Open Sans',ui-sans-serif,system-ui,sans-serif}
.game-nav-inner{max-width:1200px;margin:0 auto;padding:0 32px;height:64px;display:flex;align-items:center;gap:28px}
.game-nav-brand{display:flex;align-items:center;gap:10px;font-family:'Outfit',ui-sans-serif,system-ui,sans-serif;font-size:21px;font-weight:700;color:#eef2ff;letter-spacing:-.01em;white-space:nowrap}
.game-nav-mark{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;font-size:17px;color:#fff;background:linear-gradient(135deg,#6d5dfc,#8b7bff 55%,#5ee8d6)}
.game-nav-links{display:flex;gap:4px;flex:1}
.game-nav-links a{position:relative;padding:8px 14px;border-radius:10px;font-size:14px;font-weight:600;color:#98a9c6;transition:color .15s,background .15s}
.game-nav-links a:hover{color:#eef2ff;background:#ffffff08}
.game-nav-links a.active{color:#fff;background:#ffffff0d}
.game-nav-links a.active:after{content:'';position:absolute;left:14px;right:14px;bottom:-13px;height:2px;border-radius:2px;background:linear-gradient(90deg,#8b7bff,#5ee8d6)}
.game-nav-user{display:flex;align-items:center;gap:10px}
.game-nav-xp{display:flex;align-items:center;gap:10px;padding:4px 14px 4px 4px;border-radius:99px;background:#122037;border:1px solid #1f2f4b;color:#eef2ff;transition:border-color .15s}
.game-nav-xp:hover{border-color:#3a4f7c}
.game-nav-ring{--p:0;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none;
  background:conic-gradient(#5ee8d6 calc(var(--p) * 1%),#26324d 0)}
.game-nav-ring b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#122037;font-family:'Outfit',sans-serif;font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums}
.game-nav-xp-text{display:flex;flex-direction:column;line-height:1.15}
.game-nav-xp-text strong{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.game-nav-xp-text small{font-size:11px;color:#98a9c6}
.game-nav-me{display:flex;align-items:center;gap:9px;padding:4px 12px 4px 4px;border-radius:99px;color:#eef2ff;font-size:13.5px;font-weight:600;transition:background .15s}
.game-nav-me:hover{background:#ffffff0a}
.game-nav-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#6366F1,#9282fa);display:grid;place-items:center;font-family:'Outfit',sans-serif;font-size:13px;font-weight:700;color:#fff;flex:none}
.game-nav-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-nav-signin{white-space:nowrap;font-size:13.5px;padding:9px 18px;border-radius:99px;background:linear-gradient(110deg,#bbc2ff,#9282fa);color:#0b1430;font-weight:700}
/* The game section uses the shared site footer (_SiteFooter, styled by home-v2.css). */
.home-footer{margin-top:28px}

/* ---------- Hub ----------
   One purple for the brand, teal for power and progress, gold only for the prize.
   Sections read top to bottom: today's challenge and you, the season, the games, the standings. */
.hub{--surface:#0d1829;--raised:#122037;--line:#1f2f4b;--text:#eef2ff;--muted:#98a9c6;--dim:#6b7fa1;
  --brand:#9282fa;--brand-soft:#c3b7ff;--teal:#6fe7da;--gold:#f2cc78;
  max-width:1200px;margin:0 auto;padding:32px 32px 8px;display:flex;flex-direction:column;gap:36px;color:var(--text)}
.hub h2,.hub h3{font-family:'Outfit',ui-sans-serif,system-ui,sans-serif;letter-spacing:-.01em;margin:0}
.hub-muted{color:var(--muted);font-weight:400}
.hub svg{width:18px;height:18px;flex:none}
.hub-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:24px}
.hub-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px;font-weight:600;margin:0 0 14px}
.hub-card-title .hub-muted{font-size:13px}
.hub-section{display:flex;flex-direction:column;gap:16px}
.hub-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap}
.hub-section-head h2{font-size:24px;font-weight:650}
.hub-section-head p{margin:0;font-size:14px}
.hub-kicker{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}
.hub-bar{height:8px;border-radius:99px;background:#1a2944;overflow:hidden}
.hub-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--brand),var(--teal))}
.hub-bar-gold span{background:linear-gradient(90deg,#d9a441,var(--gold))}
.hub-bar-label{display:flex;justify-content:space-between;font-size:12.5px;color:var(--muted);margin:8px 0 0;font-variant-numeric:tabular-nums}

/* top: the daily challenge and you */
.hub-top{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);gap:20px}
.hub-hero{background:radial-gradient(120% 90% at 50% 0%,#18264a 0%,var(--surface) 60%)}
.hub-me{display:flex;flex-direction:column;gap:0}
.hub-me-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.hub-me-head h2{font-size:19px;font-weight:600}
.hub-me-head .hub-muted{font-size:13.5px}
.hub-avatar{width:48px;height:48px;border-radius:50%;flex:none;display:grid;place-items:center;font-family:'Outfit',sans-serif;font-size:20px;font-weight:700;color:#fff;
  background:linear-gradient(135deg,#6366f1,var(--brand))}
.hub-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0 0}
.hub-stats div{background:var(--raised);border-radius:12px;padding:10px 12px}
.hub-stats dt{font-size:12px;color:var(--muted)}
.hub-stats dd{margin:2px 0 0;font-family:'Outfit',sans-serif;font-size:22px;font-weight:650;font-variant-numeric:tabular-nums}
.hub-stats dd small{font-size:13px;color:var(--dim);font-weight:500}
.hub-goals{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.hub-goals h3{display:flex;justify-content:space-between;align-items:baseline;font-size:15px;font-weight:600;margin-bottom:10px}
.hub-goals h3 .hub-muted{font-size:12.5px;font-family:'Open Sans',sans-serif}
.hub-goals ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.hub-goals li{display:flex;align-items:center;gap:10px;font-size:14px}
.hub-goals li a{color:var(--text)}
.hub-goals li a:hover{color:var(--brand-soft)}
.hub-goals li small{margin-left:auto;color:var(--muted);font-variant-numeric:tabular-nums}
.hub-goals li.done span:not(.hub-check){color:var(--dim);text-decoration:line-through}
.hub-check{width:20px;height:20px;border-radius:6px;border:1.5px solid #34466b;display:grid;place-items:center;flex:none;color:#07111f}
.hub-goals li.done .hub-check{background:var(--teal);border-color:var(--teal)}
.hub-check svg{width:14px;height:14px}

.hub-me-guest{justify-content:center}
.hub-me-guest h2{font-size:24px;font-weight:650;line-height:1.2;margin-bottom:18px}
.hub-perks{list-style:none;margin:0 0 22px;padding:0;display:flex;flex-direction:column;gap:14px}
.hub-perks li{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;color:var(--muted);line-height:1.45}
.hub-perks li strong{color:var(--text);font-weight:600}
.hub-perks svg{color:var(--brand-soft);margin-top:1px}
.hub-me-cta{text-align:center}
.hub-me-note{font-size:12.5px;margin:12px 0 0;text-align:center}

/* season: the prize gets a strip of its own */
.hub-season{display:grid;grid-template-columns:auto minmax(0,1.4fr) minmax(0,1fr) auto;align-items:center;gap:28px;
  padding:20px 26px;border-radius:20px;border:1px solid #4a3d1f;
  background:linear-gradient(100deg,#2a2210 0%,#15182a 45%,var(--surface) 100%)}
.hub-season-prize{display:flex;flex-direction:column;gap:2px}
.hub-season-prize strong{font-family:'Outfit',sans-serif;font-size:34px;font-weight:700;line-height:1;color:var(--gold);letter-spacing:-.02em}
.hub-season-when,.hub-season-me{display:flex;flex-direction:column;gap:3px;min-width:0}
.hub-season-when strong,.hub-season-me strong{font-size:15.5px;font-weight:600}
.hub-season-when span,.hub-season-me span{font-size:13px;color:var(--muted)}
.hub-season-when .hub-bar{margin-top:8px}
.hub-season-link{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--gold);white-space:nowrap}
.hub-season-link:hover{color:#ffe0a0}

/* games: one card each, with a small picture of the game itself */
.hub-games{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px}
.hub-game{display:flex;flex-direction:column;border-radius:20px;border:1px solid var(--line);background:var(--surface);overflow:hidden;color:var(--text);
  transition:border-color .2s,transform .2s,box-shadow .2s}
.hub-game:hover{border-color:#3a4f7c;transform:translateY(-3px);box-shadow:0 18px 40px #0006}
.hub-game-art{height:168px;display:grid;place-items:center;position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
.game-quiz .hub-game-art{background:radial-gradient(90% 90% at 50% 20%,#1b2f5e,#0f1a33)}
.game-vault .hub-game-art{background:radial-gradient(90% 90% at 50% 20%,#162f3a,#0c1a26)}
.game-keys .hub-game-art{background:radial-gradient(90% 90% at 50% 20%,#2f2a18,#141726)}
.hub-game-body{display:flex;flex-direction:column;gap:8px;padding:20px 22px 20px;flex:1}
.hub-game-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hub-game-title h3{font-size:19px;font-weight:650}
.hub-tag{font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:99px;background:#9282fa26;color:var(--brand-soft)}
.game-keys .hub-tag{background:#f2cc7824;color:var(--gold)}
.hub-game-body p{margin:0;font-size:14px;line-height:1.55;color:var(--muted);flex:1}
.hub-game-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;padding-top:14px;border-top:1px solid var(--line)}
.hub-facts{font-size:12.5px;color:var(--dim);font-variant-numeric:tabular-nums}
.hub-game-play{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--brand-soft)}
.hub-game:hover .hub-game-play svg{transform:translateX(3px)}
.hub-game-play svg{transition:transform .2s}

.art-quiz{width:78%;max-width:250px;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:12px;border-radius:14px;background:#0b1428e6;border:1px solid #2a3d6a;box-shadow:0 14px 30px #0007}
.art-quiz span{font-size:11px;padding:6px 8px;border-radius:8px;background:#16254a;color:#b8c6e6;text-align:center}
.art-quiz .art-quiz-q{grid-column:1/-1;background:none;padding:0 2px 4px;text-align:left;font-size:12px;font-weight:600;color:var(--text);line-height:1.35}
.art-quiz .right{background:#0f3b3b;color:var(--teal);box-shadow:inset 0 0 0 1px #2b6f6c}
.art-quiz-timer{grid-column:1/-1;height:4px;border-radius:99px;margin-top:4px;background:linear-gradient(90deg,var(--brand) 62%,#1a2944 62%)}
.art-vault{--cell:36px;display:grid;grid-template-columns:repeat(3,var(--cell));gap:4px;padding:8px;border-radius:14px;background:#0a1322;border:1px solid #26375a;box-shadow:0 14px 30px #0007}
.art-keys{display:flex;gap:8px}
.art-keys span{width:40px;height:46px;border-radius:10px;display:grid;place-items:center;font-family:'Outfit',sans-serif;font-size:20px;font-weight:700;
  background:#1b2440;color:#56668c;border:1px solid #2c3a60;box-shadow:0 10px 20px #0006}
.art-keys span.found{background:linear-gradient(180deg,#ffe3a0,var(--gold));color:#2a1d02;border-color:#ffe9b8}

/* standings */
.hub-standings{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.hub-standings.single{grid-template-columns:1fr}
.hub-tabs{display:inline-flex;padding:3px;border-radius:10px;background:var(--raised);gap:2px}
.hub-tabs button{border:0;background:none;color:var(--muted);font-size:12.5px;font-weight:600;padding:6px 12px;border-radius:8px}
.hub-tabs button.active{background:#24345a;color:var(--text)}
.hub-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.hub-list[hidden]{display:none}
.hub-list li{display:flex;align-items:center;gap:12px;padding:10px 4px;border-top:1px solid var(--line);font-size:14px}
.hub-list li:first-child{border-top:0}
.hub-list li.me{background:#9282fa1f;border-radius:10px;border-top-color:transparent;padding-inline:10px;margin-inline:-6px}
.hub-list li.me + li{border-top-color:transparent}
.hub-rank{width:28px;height:28px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums;background:var(--raised);color:var(--muted)}
.hub-rank.r1{background:var(--gold);color:#2a1d02}
.hub-rank.r2{background:#cfd8ea;color:#1a2238}
.hub-rank.r3{background:#d59a6a;color:#2a1405}
.hub-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.hub-sub{font-size:12.5px;color:var(--dim);white-space:nowrap}
.hub-xp{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.hub-empty{color:var(--muted);font-size:14px;padding:6px 0!important}

/* badges */
.hub-badges{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.hub-badges li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:18px 10px 16px;border-radius:16px;background:var(--surface);border:1px solid var(--line)}
.hub-medal{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;margin-bottom:6px;background:var(--raised);color:#4d5f86;border:1px dashed #34466b}
.hub-medal svg{width:24px;height:24px}
.hub-badges li.unlocked .hub-medal{background:radial-gradient(circle at 35% 30%,#b9aeff,var(--brand));color:#fff;border:0;box-shadow:0 8px 20px #9282fa55}
.hub-badges strong{font-size:13.5px;font-weight:600}
.hub-badges small{font-size:12px;color:var(--dim);line-height:1.35}
.hub-badges li:not(.unlocked) strong{color:var(--muted)}

/* ---------- Daily challenge hero: copy on the left, a board that solves itself on the right ---------- */
.hub-hero{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;min-height:360px;padding:30px 32px;container-type:inline-size}
.hub-hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr);gap:26px}
.hub-hero::before{content:"";position:absolute;left:50%;top:-10%;width:90%;aspect-ratio:1;transform:translateX(-50%);background:radial-gradient(circle,#6fe7da12,transparent 60%);pointer-events:none}
.hub-hero-body{position:relative;z-index:1;min-width:0}
.hub-hero .eyebrow{font-size:10.5px;letter-spacing:.2em;color:#c3b7ff;font-weight:700}
.hub-hero h1{font-size:clamp(26px,2.8vw,38px);line-height:1.1;letter-spacing:-.01em;margin:12px 0 16px;text-wrap:balance}
.hub-hero-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.hub-play{display:inline-flex;width:fit-content}

.hero-vault{position:relative;z-index:1;order:-1;display:flex;flex-direction:column;align-items:center;gap:12px}
/* a wide card has room for copy and board side by side */
@container (min-width:640px){
  .hub-hero-inner{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:36px}
  .hero-vault{order:0}
}
.hero-rig{--cell:clamp(30px,8.6cqi,48px);position:relative;padding-right:42px}
.hero-board{display:grid;grid-template-columns:repeat(5,var(--cell));gap:5px;padding:10px;border-radius:16px;
  background:#0a1322;border:1px solid #26375a;box-shadow:0 20px 50px #0007}
.hero-tile{position:relative;width:var(--cell);height:var(--cell);border-radius:8px;background:#122038;border:1px solid #22324f;color:#3b4e76;
  transition:background .35s,border-color .35s,color .35s}
.hero-tile.on{color:#6fe7da;background:#0f2c35;border-color:#2b6f6c}
.hero-tile.source{border-color:#9282fa}
.hero-rot{position:absolute;inset:0;transition:transform .14s ease-out}
.hero-rot.instant{transition:none}
.hero-rot i{position:absolute;background:currentColor;border-radius:2px}
.hero-rot i.up{left:calc(50% - 2px);top:-1px;width:4px;height:calc(50% + 3px)}
.hero-rot i.down{left:calc(50% - 2px);bottom:-1px;width:4px;height:calc(50% + 3px)}
.hero-rot i.left{top:calc(50% - 2px);left:-1px;height:4px;width:calc(50% + 3px)}
.hero-rot i.right{top:calc(50% - 2px);right:-1px;height:4px;width:calc(50% + 3px)}
.hero-rot b{position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:currentColor}
.hero-tile.on .hero-rot i,.hero-tile.on .hero-rot b{box-shadow:0 0 8px #6fe7da88}
.hero-tile.source .hero-rot b{width:12px;height:12px;margin:-6px 0 0 -6px;background:#c3b7ff;box-shadow:0 0 12px #9282fa}

/* the lock sits level with the bottom row, where the last tile's exit points */
.hero-lock{position:absolute;right:0;bottom:calc(11px + var(--cell) / 2 - 16px);width:32px;height:32px;border-radius:50%;
  border:2px solid #34466b;background:#0c1628;display:grid;place-items:center;color:#5a6c93;transition:border-color .4s,box-shadow .4s,color .4s}
.hero-lock::before{content:"";position:absolute;right:100%;top:calc(50% - 2px);width:10px;height:4px;background:#34466b;transition:background .4s}
.hero-lock-dial{width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-top-color:transparent;transition:transform .7s ease}
.hero-lock.open{border-color:#f2cc78;color:#f2cc78;box-shadow:0 0 24px #f2cc7888}
.hero-lock.open::before{background:#6fe7da}
.hero-lock.open .hero-lock-dial{transform:rotate(180deg)}
.hero-meter{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:#7f93b3;font-variant-numeric:tabular-nums}
.hero-meter span{color:#6fe7da}
.hub-hero-note{
  color:#b9c7dc;
  font-size:13.5px;
  line-height:1.6;
  margin:0 0 22px;
  max-width:42ch;
}
.hub-hero-note strong{color:#e8eefb}

.hub-hero-clock{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:10px 0 18px;
}
.hub-hero-clock .hub-countdown{
  font-family:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:clamp(38px,5vw,58px);
  font-weight:600;
  font-variant-numeric:tabular-nums;
  line-height:1;
  color:#fff;
  text-shadow:0 2px 30px #0009;
}
.hub-hero-clock small{
  font-size:13px;
  font-weight:500;
  letter-spacing:.02em;
  color:#9fb1c9;
  text-transform:none;
}
.hub-hero-note .hub-countdown{
  font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-variant-numeric:tabular-nums;
  color:#e8eefb;
}

.hub-hero-quiet{
  display:inline-block;
  color:#b9c7dc;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid #3c5075;
  padding-bottom:2px;
}
.hub-hero-quiet:hover{color:#fff;border-bottom-color:#7d8fb5}

/* ---------- Responsive ---------- */
/* A phone on its side has little height to spare: let the nav scroll away instead of staying pinned. */
@media(max-height:520px){
  .game-nav{position:relative}
}
@media(max-width:820px){
  .game-nav-inner{padding:0 20px;gap:14px}
  .game-nav-name{display:none}
  .game-nav-me{padding:4px}
  .game-nav-links a{padding:8px 10px}
}
@media(max-width:560px){
  .game-nav-inner{padding:0 14px;gap:8px;height:58px}
  .game-nav-word{display:none}
  .game-nav-links{gap:0}
  .game-nav-links a{padding:8px 8px;font-size:13.5px}
  .game-nav-links a.active:after{bottom:-10px;left:8px;right:8px}
  .game-nav-xp{padding:3px}
  .game-nav-xp-text{display:none}
  .game-nav-signin{padding:8px 14px}
}
@media(max-width:1000px){
  .hub-top{grid-template-columns:1fr}
  .hub-season{grid-template-columns:1fr 1fr;row-gap:18px}
  .hub-season-link{justify-self:start}
  .hub-standings{grid-template-columns:1fr}
  .hub-badges{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:560px){
  .hub{padding:20px 16px 8px;gap:28px}
  .hub-card{padding:20px}
  .hub-hero{padding:24px 20px}
  .hub-season{grid-template-columns:1fr;padding:20px}
  .hub-badges{grid-template-columns:repeat(2,1fr)}
}
