/* BalanceDock (Steam balance top-up). Light retail look, same system as uc/keys: neutral surfaces, one solid teal
   accent, no gradient text, glows or glass. */
:root{
  --bg:#f4f6f5;--surface:#fff;--sunken:#eceeec;--text:#141816;--muted:#5f6763;--line:#dfe3e0;
  --accent:#0f766e;--accent-ink:#fff;--accent-soft:#e6f4f2;--bad:#b42318;--radius:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
a{color:inherit}
h1,h2,h3{letter-spacing:-.01em}
.muted{color:var(--muted)}
.skip{position:absolute;left:12px;top:-60px;z-index:50;background:var(--text);color:#fff;padding:10px 14px;border-radius:10px;font-weight:700}
.skip:focus{top:12px}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 max(20px,5vw);position:sticky;top:0;z-index:20;background:var(--surface);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;text-decoration:none}
.mark{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);font-weight:800}
.nav{display:flex;gap:24px;margin-left:auto}
.nav a{color:var(--muted);text-decoration:none}
.nav a:hover{color:var(--text)}
.orders-btn{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;padding:8px 14px;font:inherit;font-weight:600;cursor:pointer}
.orders-btn span{display:inline-block;min-width:22px;margin-left:6px;padding:1px 7px;border-radius:99px;background:var(--accent);color:var(--accent-ink);font-size:13px}

.hero{display:grid;grid-template-columns:1fr .9fr;align-items:center;gap:40px;padding:48px max(20px,7vw) 32px;max-width:1300px;margin:0 auto}
.eyebrow{color:var(--accent);font-weight:700;font-size:14px;margin:0}
.hero h1{font-size:clamp(34px,4.6vw,54px);line-height:1.08;margin:8px 0 12px;font-weight:800}
.hero h1 span{color:var(--accent)}
.lead{color:var(--muted);font-size:18px;margin:0 0 22px;max-width:540px}
.hero-art img{width:100%;height:auto;display:block;border-radius:18px}

.topup{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;max-width:540px;display:grid;gap:16px}
.field{display:grid;gap:6px}
.label-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.label-row label{font-weight:700}
.label-row .muted{font-size:13px}
.field input{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;padding:12px 14px;font:inherit}
.field input:focus{border-color:var(--accent);outline:none}
.field input[aria-invalid=true]{border-color:var(--bad)}
.field small{color:var(--muted);font-size:13px}
.amount-row{display:flex;gap:8px}
.amount-row input{flex:1;font-size:20px;font-weight:700}
.segmented{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.seg{border:0;background:var(--surface);color:var(--text);padding:0 14px;font:inherit;cursor:pointer;white-space:nowrap}
.seg+.seg{border-left:1px solid var(--line)}
.seg.active{background:var(--text);color:#fff}
.text-btn{border:0;background:none;color:var(--accent);font:inherit;font-size:14px;cursor:pointer;padding:0;text-decoration:underline}
.quote{margin:0;padding:12px 14px;border-radius:10px;background:var(--sunken);display:grid;gap:4px}
.quote div{display:flex;justify-content:space-between;gap:10px;color:var(--muted)}
.quote dd{margin:0;white-space:nowrap}
.quote .big{color:var(--text);font-weight:800;font-size:18px}
.form-status{min-height:1.2em;margin:0;color:var(--bad);font-size:14px}
.primary{border:0;background:var(--accent);color:var(--accent-ink);border-radius:10px;padding:13px 18px;font:inherit;font-weight:700;cursor:pointer;width:100%}
.primary:hover{filter:brightness(.93)}
.primary:disabled{opacity:.5;cursor:default}

.section{padding:48px max(20px,7vw);max-width:1300px;margin:0 auto}
.section h2{font-size:clamp(24px,3vw,32px);margin:0 0 18px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.card img{width:72px;height:72px;object-fit:contain;display:block;background:var(--sunken);border-radius:14px;padding:6px;margin-bottom:12px}
.card h3{margin:0 0 6px}
.card p{color:var(--muted);margin:0}
.faq details{max-width:900px}
.faq details{border-top:1px solid var(--line);padding:16px 0}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{font-weight:700;cursor:pointer}
.faq p{color:var(--muted);margin:10px 0 0}

footer{display:flex;justify-content:space-between;gap:24px;padding:28px max(20px,7vw) 40px;border-top:1px solid var(--line);background:var(--surface);font-size:14px}
footer p{margin:8px 0 0;max-width:620px}
.footer-links{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.footer-links button{border:0;background:none;color:var(--muted);font:inherit;cursor:pointer;padding:0}
.footer-links button:hover{color:var(--text)}

dialog{width:min(480px,calc(100% - 28px));background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;padding:24px}
dialog::backdrop{background:rgba(20,24,22,.5)}
dialog h2{margin:0 36px 14px 0}
dialog p{color:var(--muted)}
.close{position:absolute;right:14px;top:10px;border:0;background:none;color:var(--text);font-size:28px;line-height:1;cursor:pointer}
.summary{margin:0 0 14px;display:grid;gap:6px}
.summary div{display:flex;justify-content:space-between;gap:10px}
.summary dt{color:var(--muted)}
.summary dd{margin:0;font-weight:600}
.summary .big dd{font-size:18px;font-weight:800}
.check{display:flex;align-items:center;gap:8px;font-weight:600;margin:6px 0}
.check input{accent-color:var(--accent)}
.note{padding:12px;border-radius:10px;background:#fff6e5;color:#7a4a00!important;font-size:14px}
.success{display:grid;gap:6px;margin-top:12px;padding:14px;border:1px solid #bfe0da;background:var(--accent-soft);border-radius:12px}
.orders{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.orders li{display:grid;gap:2px;padding:12px;border:1px solid var(--line);border-radius:10px}
.orders small{color:var(--muted)}

@media(max-width:900px){.hero{grid-template-columns:1fr}.hero-art{order:-1}.hero-art img{max-height:260px;object-fit:cover}.cards{grid-template-columns:1fr}.nav{display:none}}
@media(max-width:560px){.amount-row{flex-direction:column}.segmented{height:44px}.seg{flex:1}footer{flex-direction:column}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
