:root {
  --ink: #111735;
  --muted: #606987;
  --line: #e4e8f3;
  --surface: #ffffff;
  --surface-soft: #f7f8ff;
  --primary: #4f46e5;
  --primary-dark: #3027b8;
  --primary-light: #756cff;
  --purple: #8b5cf6;
  --blue: #4285f4;
  --green: #34a853;
  --yellow: #fbbc04;
  --red: #ea4335;
  --shadow: 0 24px 70px rgba(31, 39, 89, .13);
  --shadow-soft: 0 12px 32px rgba(31, 39, 89, .09);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: white; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(228, 232, 243, .8);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 218px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; color: var(--primary); background: #f0efff; border-radius: 13px; }
.brand-mark svg { width: 34px; height: 34px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 12px; }
.header-nav { margin-left: auto; display: flex; gap: 28px; align-items: center; }
.header-nav a { position: relative; color: #555f7d; font-size: 14px; font-weight: 650; }
.header-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -11px; height: 2px; border-radius: 2px; background: var(--primary); transition: right .2s; }
.header-nav a:hover::after, .header-nav a:focus-visible::after { right: 0; }
.github-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 12px; color: white; background: var(--ink); font-size: 14px; font-weight: 700; box-shadow: 0 8px 18px rgba(17, 23, 53, .15); }
.github-button svg { width: 18px; height: 18px; }
.github-button:hover { transform: translateY(-1px); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(115deg, #f6faff 0%, #f4f3ff 53%, #fbf8ff 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(79,70,229,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(79,70,229,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.hero-glow { position: absolute; z-index: -1; border-radius: 999px; filter: blur(4px); opacity: .7; }
.hero-glow-one { width: 420px; height: 420px; right: 2%; top: 0; background: radial-gradient(circle, rgba(117,108,255,.25), transparent 68%); }
.hero-glow-two { width: 360px; height: 360px; left: -150px; bottom: -190px; background: radial-gradient(circle, rgba(66,133,244,.18), transparent 70%); }
.hero-grid { min-height: 560px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 48px; padding-block: 72px 118px; }
.eyebrow, .section-kicker { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid rgba(79,70,229,.14); background: rgba(255,255,255,.62); border-radius: 999px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(52,168,83,.12); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(50px, 6.2vw, 82px); line-height: .97; letter-spacing: -.065em; }
.hero h1 span { background: linear-gradient(90deg, var(--blue), var(--primary-light) 48%, var(--purple)); -webkit-background-clip: text; color: transparent; }
.hero-lead { max-width: 620px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.benefit-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.benefit-row span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; color: #4b5574; background: rgba(255,255,255,.72); border: 1px solid rgba(222,226,241,.9); border-radius: 11px; font-size: 13px; font-weight: 650; }
.benefit-row svg { width: 17px; height: 17px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.secondary-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--primary); font-weight: 800; }
.secondary-cta span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: white; box-shadow: var(--shadow-soft); }

.arcade-visual { position: relative; min-height: 410px; display: grid; place-items: center; perspective: 1000px; }
.arcade-machine { position: relative; width: 270px; height: 365px; border: 7px solid #2d27a4; border-radius: 33px 33px 26px 26px; background: linear-gradient(145deg, #665df8, #3f35d5 58%, #2e299e); box-shadow: 0 35px 50px rgba(52,47,173,.28), inset 12px 0 22px rgba(255,255,255,.11), inset -18px -15px 28px rgba(21,18,92,.22); transform: rotateY(-7deg) rotateX(2deg); }
.arcade-machine::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -26px; height: 30px; border-radius: 50%; background: rgba(39,35,127,.22); filter: blur(12px); }
.machine-top { position: absolute; left: 18px; right: 18px; top: 18px; height: 48px; display: grid; place-items: center; color: white; background: linear-gradient(90deg, #ff8a3d, #ffcf33); border: 5px solid #342ead; border-radius: 16px 16px 9px 9px; font-size: 21px; font-weight: 1000; letter-spacing: .15em; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.machine-screen { position: absolute; left: 25px; right: 25px; top: 78px; height: 160px; display: grid; place-items: center; align-content: center; color: white; background: radial-gradient(circle at 50% 30%, #364eb5, #111540 70%); border: 7px solid #242069; border-radius: 17px; box-shadow: inset 0 0 30px rgba(72,116,255,.26); overflow: hidden; }
.machine-screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.14) 35%, transparent 45%); transform: translateX(-100%); animation: screen-shine 4s infinite 1s; }
.machine-screen strong { margin-top: 12px; font-size: 32px; letter-spacing: .1em; }
.machine-screen small { color: #b8c5ff; font-weight: 800; letter-spacing: .16em; }
.screen-cloud { position: relative; width: 78px; height: 38px; border-radius: 30px; background: #eff5ff; box-shadow: 0 0 26px rgba(127,157,255,.5); }
.screen-cloud span { position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.screen-cloud span:nth-child(1) { width: 36px; height: 36px; left: 8px; }
.screen-cloud span:nth-child(2) { width: 45px; height: 45px; left: 27px; }
.screen-cloud span:nth-child(3) { width: 26px; height: 26px; right: 0; }
.machine-panel { position: absolute; left: 22px; right: 22px; top: 251px; height: 75px; border: 5px solid #28226f; border-radius: 13px; background: linear-gradient(160deg, #5e57ec, #4037bd); transform: perspective(200px) rotateX(10deg); }
.joystick { position: absolute; left: 33px; top: 18px; width: 14px; height: 37px; border-radius: 7px; background: #15143c; transform: rotate(-8deg); transform-origin: bottom; }
.joystick span { position: absolute; left: 50%; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(145deg, #ff685d, #d82e3c); border: 3px solid #6f1830; transform: translateX(-50%); }
.machine-buttons { position: absolute; right: 28px; top: 24px; display: flex; gap: 9px; }
.machine-buttons i { width: 21px; height: 21px; border-radius: 50%; border: 3px solid rgba(25,22,80,.55); box-shadow: inset 2px 2px 4px rgba(255,255,255,.35); }
.machine-buttons i:nth-child(1) { background: var(--green); }
.machine-buttons i:nth-child(2) { background: var(--yellow); }
.machine-buttons i:nth-child(3) { background: var(--red); }
.machine-base { position: absolute; left: 34px; right: 34px; bottom: 13px; height: 22px; border-radius: 5px; background: #282271; box-shadow: inset 0 5px 5px rgba(255,255,255,.08); }
.floating-token { position: absolute; z-index: 3; display: grid; place-items: center; border-radius: 50%; font-weight: 900; animation: float 4s ease-in-out infinite; }
.token-one { width: 58px; height: 58px; left: 12%; top: 25%; color: #fff3c2; background: linear-gradient(145deg, #ffcc2d, #f59e0b); border: 6px solid #ffe273; box-shadow: 0 15px 25px rgba(245,158,11,.25); }
.token-two { width: 44px; height: 44px; right: 6%; top: 15%; color: white; background: linear-gradient(145deg, #a78bfa, #6d28d9); border: 5px solid #c4b5fd; animation-delay: .7s; }
.token-three { width: 38px; height: 38px; right: 10%; bottom: 20%; color: white; background: linear-gradient(145deg, #60a5fa, #2563eb); border: 4px solid #bfdbfe; animation-delay: 1.3s; }
@keyframes float { 50% { transform: translateY(-13px) rotate(6deg); } }
@keyframes screen-shine { 45%,100% { transform: translateX(130%); } }

.calculator-section { position: relative; z-index: 4; margin-top: -58px; padding-bottom: 100px; }
.calculator-shell { background: var(--surface); border: 1px solid rgba(226,230,242,.9); border-radius: var(--radius-xl); box-shadow: var(--shadow); overflow: hidden; }
.calculator-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 36px 24px; }
.calculator-heading h2, .section-heading h2 { margin: 6px 0 7px; letter-spacing: -.035em; }
.calculator-heading h2 { font-size: clamp(27px, 3vw, 37px); }
.calculator-heading p, .section-heading p { margin: 0; color: var(--muted); }
.install-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--primary); background: white; font-weight: 750; cursor: pointer; }
.install-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile-form { margin: 0 36px 28px; padding: 20px; border: 1px solid #e2e5f1; border-radius: 17px; background: linear-gradient(135deg, #fafbff, #f4f3ff); }
.profile-form > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.profile-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.url-input-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 14px; border: 1px solid #d7dbea; border-radius: 12px; background: white; transition: border-color .2s, box-shadow .2s; }
.url-input-wrap:focus-within { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(79,70,229,.1); }
.url-input-wrap svg { flex: none; width: 19px; height: 19px; fill: none; stroke: #747d9b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.url-input-wrap input { min-width: 0; width: 100%; height: 50px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.url-input-wrap input::placeholder { color: #9aa1b7; }
.primary-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border: 0; border-radius: 12px; color: white; background: linear-gradient(100deg, var(--primary), var(--purple)); box-shadow: 0 11px 22px rgba(79,70,229,.22); font-weight: 800; cursor: pointer; transition: transform .18s, box-shadow .18s, opacity .18s; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(79,70,229,.28); }
.primary-button:disabled { cursor: wait; opacity: .7; transform: none; }
.primary-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.button-spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
.primary-button.is-loading .button-spinner { display: block; }
.primary-button.is-loading > svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.profile-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; color: #777f9a; font-size: 12px; }
.check-label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.check-label input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-message { min-height: 18px; margin: 7px 0 0; color: #c43832; font-size: 13px; font-weight: 650; }
.form-message.success { color: #198754; }

.workspace-grid { display: grid; grid-template-columns: 1.25fr .75fr; border-top: 1px solid var(--line); }
.input-panel { padding: 30px 36px 36px; }
.panel-title-row, .import-summary-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.panel-title-row h3, .import-summary h3 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.025em; }
.text-button { padding: 7px 9px; border: 0; color: var(--primary); background: transparent; font-weight: 750; cursor: pointer; }
.counter-list { margin-top: 20px; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.counter-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 14px; align-items: center; min-height: 84px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.counter-row:last-child { border-bottom: 0; }
.counter-row:hover { background: #fcfcff; }
.counter-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; }
.counter-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-game { color: #2866db; background: #eaf2ff; }
.icon-trivia { color: #7c3aed; background: #f2eaff; }
.icon-skill { color: #14834d; background: #e7f8ef; }
.icon-special { color: #d97706; background: #fff3dc; }
.icon-bonus { color: #d43b62; background: #ffeaf0; }
.icon-other { color: #52627f; background: #edf1f7; }
.counter-copy label { display: block; font-weight: 800; }
.counter-copy small { color: var(--muted); }
.stepper { display: grid; grid-template-columns: 39px 58px 39px; height: 40px; border: 1px solid #dce0ec; border-radius: 10px; overflow: hidden; background: white; }
.stepper button { border: 0; background: #f8f9fd; color: #53607f; font-size: 20px; cursor: pointer; }
.stepper button:hover { color: var(--primary); background: #efefff; }
.stepper input { width: 100%; border: 0; border-inline: 1px solid #e3e6ef; outline: 0; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }

.result-panel { padding: 30px; color: white; background: radial-gradient(circle at 80% 10%, rgba(127,99,255,.35), transparent 34%), linear-gradient(145deg, #171647, #0e1236 70%); }
.result-topline { display: flex; align-items: center; justify-content: space-between; }
.result-panel .section-kicker { color: #aebaff; }
.season-chip { padding: 5px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #cdd3ef; background: rgba(255,255,255,.06); font-size: 11px; font-weight: 750; }
.total-block { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 20px; }
.total-block p { margin: 0; color: #bfc5df; font-size: 13px; }
.total-block strong { display: block; margin: 2px 0 -7px; font-size: clamp(58px, 7vw, 82px); line-height: 1; letter-spacing: -.07em; }
.total-block > div > span { color: #959dbc; font-size: 12px; }
.tier-orbit { position: relative; width: 86px; height: 86px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), rgba(255,255,255,.02)); box-shadow: inset 0 0 22px rgba(255,255,255,.06), 0 0 34px rgba(92,83,255,.24); }
.tier-orbit::before, .tier-orbit::after { content: ""; position: absolute; border: 1px dashed rgba(174,186,255,.25); border-radius: 50%; }
.tier-orbit::before { inset: 8px; }
.tier-orbit::after { inset: -8px; }
.tier-orbit span { color: #ffd35c; font-size: 34px; filter: drop-shadow(0 0 10px rgba(255,211,92,.45)); }
.tier-card { padding: 17px; border: 1px solid rgba(255,255,255,.11); border-radius: 15px; background: rgba(255,255,255,.055); }
.tier-card-heading { display: flex; justify-content: space-between; gap: 16px; }
.tier-card-heading small { display: block; color: #aeb5d0; }
.tier-card-heading strong { font-size: 18px; }
.next-tier-copy { text-align: right; }
.progress-track { height: 8px; margin-top: 15px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5f7cff, #b06eff); transition: width .35s ease; }
.progress-labels { display: flex; justify-content: space-between; margin-top: 7px; color: #8992b4; font-size: 11px; }
.breakdown-list { margin: 18px 0; }
.breakdown-list div { display: flex; justify-content: space-between; align-items: center; padding: 9px 2px; border-bottom: 1px solid rgba(255,255,255,.075); }
.breakdown-list dt { color: #b9c0db; }
.breakdown-list dd { margin: 0; font-weight: 800; }
.skill-note { margin: 0 0 15px; color: #929bbd; font-size: 12px; }
.copy-button { width: 100%; min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; color: white; background: rgba(255,255,255,.07); font-weight: 750; cursor: pointer; }
.copy-button:hover { background: rgba(255,255,255,.12); }
.copy-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.import-summary { padding: 30px 36px 36px; border-top: 1px solid var(--line); background: #fafbff; }
.import-summary-head > span { color: var(--primary); font-weight: 800; }
.badge-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 19px; }
.badge-review-grid > div { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.badge-review-grid h4 { display: flex; justify-content: space-between; margin: 0 0 12px; }
.badge-review-grid h4 span { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: #efefff; font-size: 12px; }
.badge-review-grid ul { max-height: 220px; margin: 0; padding: 0; list-style: none; overflow: auto; }
.badge-review-grid li { padding: 9px 0; border-bottom: 1px solid #edf0f6; color: #515b77; font-size: 13px; }
.badge-review-grid li:last-child { border-bottom: 0; }
.badge-category { display: inline-block; margin-right: 6px; padding: 2px 6px; border-radius: 6px; color: var(--primary-dark); background: #eeeefe; font-size: 10px; font-weight: 800; text-transform: uppercase; }

.content-section { padding: 95px 0; }
.muted-section { background: var(--surface-soft); border-block: 1px solid #eceefa; }
.section-heading { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.section-heading.left { margin: 0; text-align: left; }
.section-heading h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-grid article { position: relative; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: 0 12px 30px rgba(31,39,89,.06); }
.steps-grid article > span { position: absolute; right: 20px; top: 18px; color: #e5e8f4; font-size: 34px; font-weight: 900; }
.feature-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: var(--primary); background: #efefff; }
.feature-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps-grid h3 { margin: 22px 0 7px; font-size: 20px; }
.steps-grid p { margin: 0; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: 1.1fr .95fr .95fr; gap: 25px; align-items: stretch; }
.rules-card, .tiers-card { padding: 25px; border: 1px solid #e3e6f1; border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-soft); }
.rule-row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid #edf0f6; }
.rule-row:first-child { padding-top: 0; }
.rule-row:last-child { padding-bottom: 0; border-bottom: 0; }
.rule-row span { color: var(--muted); }
.rule-row strong { text-align: right; }
.tiers-card { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.tiers-card > div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; padding: 15px; border-radius: 13px; background: #f8f9fe; }
.tiers-card small { grid-column: 2; color: var(--muted); }
.tier-dot { grid-row: 1 / span 2; width: 12px; height: 36px; border-radius: 99px; }
.trooper { background: #7c8da8; }
.ranger { background: #34a853; }
.champion { background: #fbbc04; }
.legend { background: linear-gradient(#8b5cf6,#4285f4); }
.faq-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 21px 42px 21px 0; cursor: pointer; list-style: none; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; right: 7px; top: 50%; width: 15px; height: 2px; border-radius: 2px; background: var(--primary); transition: transform .2s; }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list p { margin: -5px 45px 21px 0; color: var(--muted); }
.site-footer { padding: 25px 0; border-top: 1px solid var(--line); color: #727b96; text-align: center; font-size: 13px; }

.app-dialog { width: min(430px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 20px; color: var(--ink); box-shadow: 0 28px 80px rgba(16,21,55,.3); }
.app-dialog::backdrop { background: rgba(14,18,48,.55); backdrop-filter: blur(5px); }
.dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--primary); background: #efefff; }
.dialog-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-dialog h2 { margin: 17px 0 8px; }
.app-dialog p { margin: 0 0 22px; color: var(--muted); white-space: pre-line; }
.app-dialog .primary-button { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 11px; color: white; background: #171b35; box-shadow: var(--shadow-soft); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid rgba(79,70,229,.3); outline-offset: 3px; }

@media (max-width: 980px) {
  .header-nav { display: none; }
  .github-button { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr .75fr; gap: 10px; }
  .hero h1 { font-size: clamp(47px, 7vw, 68px); }
  .arcade-machine { transform: scale(.85) rotateY(-7deg); }
  .workspace-grid { grid-template-columns: 1fr; }
  .result-panel { min-height: auto; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid .section-heading { grid-column: 1 / -1; max-width: 720px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 26px, 1180px); }
  .header-inner { min-height: 66px; gap: 15px; }
  .brand { min-width: 0; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-mark svg { width: 30px; height: 30px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .github-button { padding: 10px; }
  .github-button span { display: none; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 54px 95px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero h1 { font-size: clamp(45px, 14.2vw, 66px); }
  .hero-lead { font-size: 16px; }
  .benefit-row { justify-content: center; }
  .arcade-visual { min-height: 320px; margin-top: 18px; }
  .arcade-machine { transform: scale(.75); }
  .token-one { left: 4%; }
  .token-two { right: 4%; }
  .calculator-section { margin-top: -42px; padding-bottom: 72px; }
  .calculator-shell { border-radius: 20px; }
  .calculator-heading { align-items: flex-start; padding: 25px 20px 18px; }
  .calculator-heading p { font-size: 14px; }
  .install-button { width: 43px; padding: 0; aspect-ratio: 1; }
  .install-button svg { margin: auto; }
  .install-button { font-size: 0; }
  .profile-form { margin: 0 16px 22px; padding: 15px; }
  .profile-input-row { grid-template-columns: 1fr; }
  .primary-button { width: 100%; }
  .profile-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .input-panel, .result-panel, .import-summary { padding: 24px 18px; }
  .counter-row { grid-template-columns: 42px minmax(0,1fr); padding: 14px; }
  .stepper { grid-column: 1 / -1; width: 100%; grid-template-columns: 1fr 70px 1fr; margin-top: 2px; }
  .badge-review-grid, .steps-grid, .guide-grid { grid-template-columns: 1fr; }
  .guide-grid .section-heading { grid-column: auto; }
  .content-section { padding: 72px 0; }
  .section-heading { margin-bottom: 31px; }
  .section-heading h2 { font-size: 34px; }
  .tiers-card { grid-template-columns: 1fr 1fr; }
  .faq-list summary { font-size: 15px; }
}

@media (max-width: 410px) {
  .benefit-row span:nth-child(3) { display: none; }
  .total-block strong { font-size: 65px; }
  .tier-orbit { width: 72px; height: 72px; }
  .tiers-card { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
