@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Black.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg-primary: #1D1612;
  --bg-brand: #0E0A08;
  --surface-primary: #2B211B;
  --surface-muted: #382A21;
  --text-primary: #F6EAD8;
  --text-secondary: #D9C3A5;
  --text-tertiary: #BDA88E;
  --text-disabled: #A38D76;
  --text-inverse: #1D1612;
  --text-on-paper: #2A201A;
  --text-on-steel: #FFFFFF;
  --text-link: #8EC5FF;
  --text-error: #FF8A7A;
  --text-star: #FFD166;
  --accent: #FF8A2B;
  --accent-subtle: #382A21;
  --accent-text: #FF8A2B;
  --action-primary: #FF8A2B;
  --action-primary-depth: #A34D0E;
  --action-disabled: #46362B;
  --action-tertiary-hover: #382A21;
  --border-default: #46362B;
  --border-subtle: #46362B;
  --border-strong: #8A7362;
  --border-focus: #FF8A2B;
  --border-error: #FF8A7A;
  --steel-top: #515B64;
  --steel-bottom: #2C3238;
  --steel-outline: #14181C;
  --copper: #C9763F;
  --copper-dark: #7A3D14;
  --glow: #FFB454;
  --flame-outer: #FF8A2B;
  --flame-inner: #FFD166;
  --gauge-face: #F6EAD8;
  --gauge-needle: #D2362A;
  --paper: #F6EAD8;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --font-heading: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-ticket: "Courier Prime", ui-monospace, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-primary); color: var(--text-primary); font: 400 16px/1.5 var(--font-body); }

a { color: var(--text-link); }
.hq-body { display: flex; flex-direction: column; min-height: 100vh; }

.hq-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; max-width: 760px; width: 100%; margin: 0 auto; padding: 20px 16px; }
.hq-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); text-decoration: none; font-weight: 700; font-size: 16px; }
.hq-mark-dot { width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--accent); box-shadow: 0 0 12px 2px rgba(255, 138, 43, .45); }
.hq-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.hq-nav a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; }
.hq-nav a:hover, .hq-nav a[aria-current="page"] { color: var(--text-primary); }

.hq-page, .hq-doc { flex: 1; max-width: 760px; width: 100%; margin: 0 auto; padding: 0 16px 40px; }

.hq-kicker { margin: 0 0 10px; color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hq-title { margin: 0 0 14px; font: 800 40px/1.05 var(--font-heading); }
.hq-lead { margin: 0; max-width: 34em; color: var(--text-secondary); font-size: 17px; }

.hq-q { padding: 26px 0; border-top: 1px solid var(--border-default); }
.hq-ask { margin: 0 0 12px; font: 800 26px/1.15 var(--font-heading); }
.hq-q p { margin: 0 0 12px; }
.hq-points { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 10px; }
.hq-points li { padding-left: 18px; position: relative; }
.hq-points li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--accent); }
.hq-points strong { color: var(--text-primary); }
.hq-aside { color: var(--text-tertiary); font-size: 14px; }

.hq-figures { display: grid; gap: 1px; margin: 4px 0 14px; background: var(--border-default); border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; }
.hq-figures div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; background: var(--surface-primary); }
.hq-figures dt { color: var(--text-tertiary); font-size: 14px; }
.hq-figures dd { margin: 0; font: 800 22px/1.1 var(--font-heading); color: var(--text-primary); }
.hq-sample { padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--surface-muted); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.hq-sample p:last-child { margin-bottom: 0; }
.hq-sample-label { color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.hq-faq > p:first-child { color: var(--text-tertiary); font-size: 13px; }
.faq-item { border-bottom: 1px solid var(--border-default); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 14px; color: var(--text-secondary); }

.hq-doc-title { margin: 24px 0 18px; font: 800 34px/1.1 var(--font-heading); }
.hq-doc-body h2 { margin: 26px 0 8px; font-size: 18px; line-height: 1.35; }
.hq-doc-body p { margin: 0 0 12px; color: var(--text-secondary); overflow-wrap: anywhere; }
.legal-meta { color: var(--text-tertiary); font-size: 13px; }
.legal-facts { color: var(--text-secondary); }

.hq-foot { max-width: 760px; width: 100%; margin: 0 auto; padding: 0 16px 28px; }
.hq-foot-card { padding: 18px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--bg-brand); color: var(--text-tertiary); font-size: 14px; }
.hq-foot-card p { margin: 0 0 6px; }
.hq-foot-name { color: var(--text-primary); font-weight: 700; }
.hq-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0; padding: 0; list-style: none; }
.hq-foot-fine { font-size: 12px; }

.hq-intro { display: grid; gap: 8px; align-items: center; padding: 28px 0 24px; }
.hq-intro-art { position: relative; isolation: isolate; order: -1; justify-self: center; margin: 0; width: 180px; }
.hq-intro-art::before { content: ""; position: absolute; z-index: -1; inset: 8% 4% 0; background: radial-gradient(closest-side, rgba(255, 138, 43, .28), transparent); }
.hq-intro-art img { display: block; width: 100%; height: auto; }
.hq-jump { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 20px; }
.hq-jump-main { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-lg); background: var(--action-primary); color: var(--text-inverse); font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 var(--action-primary-depth); }
.hq-jump-alt { color: var(--accent-text); font-weight: 700; text-decoration: none; }

.hq-duo { display: grid; gap: 22px; margin: 6px 0 22px; }
.hq-feat { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: center; }
.hq-phone { display: block; width: 100%; height: auto; border: 4px solid var(--bg-brand); border-radius: 22px; box-shadow: 0 0 0 1px var(--border-default), 0 18px 36px rgba(0, 0, 0, .45); }
.hq-feat-title { margin: 0 0 6px; font: 800 20px/1.2 var(--font-heading); }
.hq-feat-text p { margin: 0 0 8px; }

.hq-games { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.hq-game { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-lg); color: var(--text-on-steel); font-size: 14px; }
.hq-game img { flex: none; width: 28px; height: 28px; }
.hq-game strong { display: block; font: 800 18px/1.2 var(--font-heading); }
.hq-game-drafts { background: linear-gradient(142deg, #2C78AE 14%, #1F4F7A 86%); }
.hq-game-snap { background: linear-gradient(142deg, #6650CC 14%, #4B3AA0 86%); }
.hq-game-gauge { background: linear-gradient(142deg, #C43A30 14%, #A3281F 86%); }

.hq-roles { display: grid; gap: 10px; }
.hq-role { padding: 16px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-primary); }
.hq-role p { margin: 0; color: var(--text-secondary); }
.hq-role .hq-role-name { margin-bottom: 6px; color: var(--text-primary); font-weight: 700; }
.hq-role-lender { border-color: var(--copper); }

@media (min-width: 760px) {
  .hq-intro { grid-template-columns: 1fr 240px; gap: 24px; padding: 48px 0 36px; }
  .hq-intro-art { order: 0; width: 240px; }
  .hq-title { font-size: 56px; }
  .hq-duo { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hq-feat { grid-template-columns: 1fr; justify-items: start; }
  .hq-phone { width: 210px; }
  .hq-games { grid-template-columns: repeat(3, 1fr); }
  .hq-game { flex-direction: column; align-items: flex-start; min-height: 128px; justify-content: space-between; }
  .hq-roles { grid-template-columns: 1fr 1fr; }
  .hq-figures { grid-template-columns: repeat(3, 1fr); }
  .hq-figures div { flex-direction: column; align-items: flex-start; }
}

.hq-return-bar { box-sizing: border-box; max-width: 760px; width: 100%; margin: 0 auto; padding: calc(8px + env(safe-area-inset-top)) 16px 0; }
.hq-return { display: inline-flex; align-items: center; min-height: 44px; margin-left: -8px; padding: 0 8px; color: var(--accent-text); font-size: 16px; font-weight: 700; text-decoration: none; }
.hq-from-form .hq-doc-title { margin: 12px 0 18px; }
.hq-from-form .hq-doc { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
@media (orientation: landscape) and (min-width: 700px) and (max-width: 1000px) and (pointer: coarse) {
  .hq-from-form { --fold: calc((100vw + 84px) / 2); display: grid; grid-template-columns: calc(var(--fold) - 37.5px) 1fr; align-items: start; }
  .hq-from-form .hq-return-bar { position: sticky; top: 0; max-width: none; margin: 0; padding: 24px 0 24px 20px; }
  .hq-from-form .hq-doc { max-width: none; margin: 0; padding: 24px 20px calc(40px + env(safe-area-inset-bottom)) 75px; }
  .hq-from-form .hq-doc-body > :first-child { margin-top: 0; }
}
