
:root {
  color-scheme: dark;
  --bg: #0E1013; --panel: #16191E; --panel2: #1D2127; --line: #2B3038;
  --text: #EDEFF3; --dim: #9AA3B0; --red: #FF4B3E; --red-hi: #ff6256; --amber: #F4B23C;
  --bolt-hole: #16191E;
  --stat-speed: #4AA8FF; --stat-armor: #2EE06A; --stat-ram: #FF8A3A;
  --r-common: #9AA3B0; --r-uncommon: #3FD27A; --r-rare: #4AA8FF; --r-epic: #B26BFF; --r-legendary: #F4B23C; --r-mythic: #FF5FB0;
  --head: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --top-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--body); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


.top { position: absolute; inset: 0 0 auto 0; z-index: 35; display: flex; align-items: center; gap: 26px; padding: 0 48px; height: var(--top-h); }
.top.solid { position: sticky; background: rgba(14,16,19,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.logo { font: 900 34px/1 var(--head); text-decoration: none; letter-spacing: .01em; color: var(--text); flex: none; }
.logo i { font-style: normal; color: var(--red); }
.top nav { display: flex; gap: 24px; flex: 1; margin-left: 18px; min-width: 0; }
.top nav a, .top nav button { font: 600 15px/1.5 var(--body); text-decoration: none; color: var(--dim); background: none; border: 0; padding: 8px 0; cursor: pointer; white-space: nowrap; }
.top nav a:hover, .top nav button:hover, .top nav .on { color: var(--text); }
.snd { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--dim); font: 600 14px var(--body); cursor: pointer; padding: 8px 4px; }
.snd:hover { color: var(--text); }
.snd.off { color: var(--red); }
.snd svg { width: 18px; height: 18px; }
.bank { display: flex; align-items: center; gap: 8px; font: 800 22px var(--head); color: var(--amber); white-space: nowrap; }
.bolt { flex: none; color: var(--amber); }


.btn { font: 900 28px/1 var(--head); padding: 15px 26px; border: 0; border-radius: 6px; background: var(--red); color: #fff; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
.btn:hover { background: var(--red-hi); }
.btn.owned { background: var(--text); color: var(--bg); cursor: default; }
.btn.poor { background: var(--panel2); color: var(--dim); cursor: default; }
.btn[disabled] { cursor: default; }


@media (min-width: 901px) and (max-width: 1180px) {
  .top { padding: 0 24px; gap: 16px; }
  .top nav { gap: 16px; margin-left: 6px; }
}

@media (max-width: 900px) {
  :root { --top-h: 60px; --nav-row: 46px; }
  .top { padding: 0 16px; gap: 12px; flex-wrap: wrap; height: auto; min-height: var(--top-h); align-content: flex-start; }
  .logo { font-size: 30px; line-height: var(--top-h); }
  .top .snd span { display: none; }
  .top .bank { margin-left: auto; height: var(--top-h); }
  .top .snd { height: var(--top-h); }
  
  .top nav { order: 3; flex: 0 0 calc(100% + 32px); margin: 0 -16px; padding: 0 16px; gap: 22px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); background: rgba(14,16,19,.6); }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a, .top nav button { padding: 0; height: var(--nav-row); display: inline-flex; align-items: center; }
  .btn { font-size: 26px; }
}


@media (max-width: 699px) {
  #play.drive { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 -10px 24px rgba(10,10,12,.85), 0 6px 18px rgba(0,0,0,.5); }
}

#conn-lost { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(10,10,12,.82); color: #f1ece2; text-align: center; padding: 16px; }
#conn-lost[hidden] { display: none; }
#conn-lost b { font: 900 40px/1 "Big Shoulders Display", Impact, sans-serif; text-transform: uppercase; }
#conn-lost .drive { width: auto; padding: 12px 36px; }


.ac-group { display: flex; align-items: center; gap: 6px; flex: none; }
.ac-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; font: 600 14px/1 var(--body); cursor: pointer; white-space: nowrap; }
.ac-btn:hover { border-color: #3a414b; background: var(--panel2); }
.ac-btn.chip { max-width: 170px; }
.ac-btn .ac-lbl { overflow: hidden; text-overflow: ellipsis; }
.ac-btn.gift.ready { color: var(--amber); border-color: rgba(244,178,60,.55); }
.ac-dot { position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
.ac-dot[hidden] { display: none; }
@media (max-width: 900px) {
  .top .ac-group { height: var(--top-h); margin-left: auto; gap: 6px; }
  .top .ac-group + .bank { margin-left: 0; }
  .ac-btn { padding: 0; width: 40px; justify-content: center; }
  .ac-btn .ac-lbl { display: none; }
}
@media (max-width: 480px) {
  .top { gap: 8px; }
  .logo { font-size: 26px; }
  .top .ac-group { gap: 4px; }
  .ac-btn { width: 38px; height: 38px; }
  
  .top .bank { font-size: 0; gap: 5px; }
  .top .bank [data-bolts] { font-size: 20px; }
}

.ac-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(8,9,12,.78); padding: 16px; overflow-y: auto; }
.ac-modal[hidden] { display: none; }
.ac-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.6); color: var(--text); font: 400 15px/1.5 var(--body); }
.ac-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--line); font: 800 26px/1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.ac-x { background: none; border: 0; color: var(--dim); cursor: pointer; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.ac-x:hover { color: var(--text); background: var(--panel2); }
.ac-body { padding: 18px 20px 22px; display: grid; gap: 14px; }
.ac-lead { margin: 0; font-size: 17px; }
.ac-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ac-perks li { display: flex; gap: 10px; align-items: flex-start; color: var(--dim); }
.ac-perks svg { flex: none; margin-top: 3px; color: var(--amber); }
.ac-stack { display: grid; gap: 10px; }
.ab { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; font: 800 20px/1 var(--head); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; text-decoration: none; }
.ab:hover { border-color: #46505d; }
.ab.primary { background: var(--red); border-color: var(--red); color: #fff; }
.ab.primary:hover { background: var(--red-hi); border-color: var(--red-hi); }
.ab.danger { color: var(--red-hi); border-color: rgba(255,75,62,.5); background: transparent; }
.ab.danger.solid { background: var(--red); border-color: var(--red); color: #fff; }
.ab[disabled] { opacity: .45; cursor: default; }
.ac-fine { margin: 0; font-size: 13px; color: var(--dim); }
.ac-fine a { color: var(--text); }
.ac-note { margin: 0; color: var(--dim); font-size: 14px; }
.ac-note.bad { color: var(--red-hi); font-weight: 600; }
.ac-rule { border: 0; border-top: 1px solid var(--line); margin: 2px 0; width: 100%; }
.ac-who { display: flex; align-items: center; gap: 12px; }
.ac-who svg { flex: none; color: var(--amber); }
.ac-who div { min-width: 0; }
.ac-who b { display: block; font-size: 18px; overflow: hidden; text-overflow: ellipsis; }
.ac-who small { display: block; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.ac-stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ac-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.ac-stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.ac-stats dd { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font: 800 22px/1.2 var(--head); }
.ac-stats dd svg { color: var(--amber); }
.ac-confirm { display: grid; gap: 10px; }
.ac-confirm[hidden] { display: none; }
.ac-confirm p { margin: 0; color: var(--dim); }
.ac-confirm input { font: 400 16px/1.4 var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; width: 100%; }
.ac-confirm input:focus { border-color: var(--amber); outline: none; }

.ac-streak { display: flex; align-items: center; gap: 12px; }
.ac-streak svg { color: var(--amber); flex: none; }
.ac-streak b { display: block; font: 800 28px/1 var(--head); text-transform: uppercase; }
.ac-streak small { color: var(--dim); }
.ac-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ac-day { position: relative; display: grid; gap: 4px; justify-items: center; align-content: center; min-height: 78px; padding: 8px 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.ac-dn { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.ac-amt { display: inline-flex; align-items: center; gap: 4px; font: 800 17px/1 var(--head); color: var(--amber); }
.ac-day.big { border-color: rgba(244,178,60,.5); background: linear-gradient(180deg, rgba(244,178,60,.12), var(--bg)); }
.ac-tag { position: absolute; top: -8px; font: 800 10px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; background: var(--amber); color: #1a1205; padding: 3px 6px; border-radius: 4px; }
.ac-day.done { opacity: .55; }
.ac-day.done .ac-amt { color: var(--dim); }
.ac-mark { position: absolute; top: 4px; right: 4px; color: #3FD27A; display: inline-flex; }
.ac-day.today { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(244,178,60,.35); }
.ac-milestone { margin: 0; font-size: 14px; color: var(--dim); }
@media (max-width: 520px) {
  .ac-days { grid-template-columns: repeat(4, 1fr); }
  .ac-head { font-size: 22px; }
}

.ac-reveal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(8,9,12,.86); padding: 16px; overflow: hidden; }
.ac-rcard { position: relative; z-index: 1; width: min(380px, 100%); text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px 22px 22px; display: grid; gap: 10px; justify-items: center; box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: ac-pop .45s cubic-bezier(.2,1.3,.4,1) both; }
.ac-rcard.gold { border-color: rgba(244,178,60,.6); box-shadow: 0 0 0 1px rgba(244,178,60,.25), 0 0 60px rgba(244,178,60,.18), 0 24px 60px rgba(0,0,0,.6); }
.ac-eyebrow { font: 800 14px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--amber); }
.ac-hero { color: var(--amber); filter: drop-shadow(0 0 18px rgba(244,178,60,.45)); animation: ac-bob 2.4s ease-in-out infinite; }
.ac-rtitle { font: 900 44px/1 var(--head); text-transform: uppercase; }
.ac-num { display: flex; align-items: center; gap: 8px; font: 900 56px/1 var(--head); color: var(--amber); font-variant-numeric: tabular-nums; }
.ac-num small { font: 700 16px var(--body); color: var(--dim); align-self: flex-end; margin-bottom: 8px; }
.ac-num.landed span { animation: ac-land .35s ease-out; }
.ac-ribbon { background: var(--red); color: #fff; font: 800 15px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; padding: 8px 16px; border-radius: 4px; }
.ac-rline { margin: 0; color: var(--dim); font-size: 14px; }
.ac-rcard .ab { margin-top: 6px; min-width: 200px; }
.ac-burst { position: absolute; left: 50%; top: 42%; width: 0; height: 0; }
.ac-burst i { position: absolute; left: 0; top: 0; width: 10px; height: 10px; background: var(--c); border-radius: 2px; opacity: 0; animation: ac-fly 1.1s ease-out var(--d) both; }
@keyframes ac-pop { from { transform: scale(.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ac-bob { 50% { transform: translateY(-6px) scale(1.04); } }
@keyframes ac-land { 40% { transform: scale(1.18); } }
@keyframes ac-fly { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .ac-rcard, .ac-hero, .ac-num.landed span, .ac-burst i { animation: none; } .ac-burst { display: none; } }
.ac-modal [hidden], .ac-reveal [hidden] { display: none !important; }


.brand { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 4px; font: 500 15px/1 Roboto, "Helvetica Neue", Arial, sans-serif; letter-spacing: .01em; text-decoration: none; text-transform: none; cursor: pointer; }
.brand .brand-mark { flex: none; width: 20px; height: 20px; }
.brand.google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.brand.google:hover { background: #f2f2f2; }
.brand.apple { background: #000; color: #fff; border: 1px solid #fff; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; font-weight: 500; }
.brand.apple:hover { background: #1c1c1e; }
