/* sklep.l2pilot.com — the tokens of l2pilot.com (Midnight Chronicle, style.css :root), dark only, system fonts,
   mobile first. No inline styles anywhere (CSP style-src 'self'). */
:root {
  color-scheme: dark;
  --bg: #0c1011;
  --chrome: #080b0c;
  --surface: #14191a;
  --surface-2: #1b2021;
  --text: #f4eada;
  --text-soft: #d6d0c4;
  --muted: #b2b4ae;
  --gold: #d8b782;
  --gold-light: #e7c997;
  --gold-dark: #ae8957;
  --gold-ink: #171410;
  --focus: #f6dca7;
  --line: #4f4635;
  --line-soft: #232a2b;
  --down: #c4425a;
  --down-bg: #2c1015;
  --down-ink: #f18a99;
  --ok-ink: #9fe3ad;
  --font-client: "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  --font-serif: Georgia, "Noto Serif", "Times New Roman", serif;
  --font-mono: Consolas, "Cascadia Mono", "Courier New", monospace;
}
html:lang(ko) { --font-client: "Malgun Gothic", system-ui, sans-serif; --font-serif: "Malgun Gothic", Georgia, serif; word-break: keep-all; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-client); font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 48px; }

.nav { position: sticky; top: 0; z-index: 10; background: rgba(12,16,17,.92); border-bottom: 1px solid var(--line-soft); padding: 8px 16px; }
.nav__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; max-width: 760px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--gold-light); text-decoration: none; }
.nav__links { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14px; }
.nav__links a { color: var(--text-soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--muted); font: inherit; cursor: pointer; }
button.link:hover { color: var(--text); }

h1, h2 { font-family: var(--font-serif); color: var(--gold-light); font-weight: 700; }
h1 { font-size: clamp(1.6rem, 5vw, 2.25rem); line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 1.3rem; margin: 32px 0 12px; }
p { margin: 0 0 12px; }
.lead { font-size: 1.075rem; color: var(--text-soft); max-width: 60ch; }
.muted { color: var(--muted); font-size: .925rem; }

.card { background: var(--surface); border: 1px solid var(--line-soft); padding: 16px; margin: 0 0 16px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { font-weight: 600; }
input[type=email] { width: 100%; min-height: 48px; padding: 0 12px; background: var(--chrome); color: var(--text); border: 1px solid var(--line); font: inherit; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 600; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; font-weight: 400 !important; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--chrome); cursor: pointer; }
.choice input:checked + span { border-color: var(--gold-light); background: var(--surface-2); color: var(--gold-light); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--gold); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--gold-light); background: linear-gradient(var(--gold-light), var(--gold-dark)); color: var(--gold-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--gold-ink); filter: brightness(1.08); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--quiet { min-height: 40px; padding: 0 14px; background: transparent; border-color: var(--line); color: var(--text); font-weight: 400; }
.btn--quiet:hover { color: var(--text); border-color: var(--gold-light); }

.alert { border: 1px solid var(--down); background: var(--down-bg); color: var(--down-ink); padding: 10px 14px; }
.note { border: 1px solid var(--line); background: var(--surface-2); padding: 10px 14px; }

.tablewrap { overflow-x: auto; margin: 0 0 8px; }
table.prices { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 420px; }
.prices th, .prices td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; }
.prices th:first-child { text-align: left; }
.prices thead th { color: var(--muted); font-weight: 400; font-size: .85rem; }
.prices tbody th { color: var(--gold-light); }

.balance { display: flex; justify-content: space-between; align-items: baseline; }
.balance strong { font-size: 1.6rem; font-family: var(--font-serif); color: var(--gold-light); }
.balance.neg strong { color: var(--down-ink); }
ul.orders, ul.codes { list-style: none; padding: 0; margin: 0; }
.code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.code code { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: .04em; color: var(--text); word-break: break-all; }
.state-used, .state-void, .state-expired { color: var(--down-ink); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.foot { border-top: 1px solid var(--line-soft); padding: 16px 0 24px; font-size: .875rem; color: var(--muted); }
.langs summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.langs ul { list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.langs li a, .langs li span { display: inline-flex; min-height: 36px; align-items: center; }
.langs li span { color: var(--gold-light); }

/* Price split before the click (Terms § 13(5)) */
.summary { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font-weight: 600; }

/* shop 2 (E65): "For me" / "Codes for others", steps on the how-to page, the granted licence */
.choices--col { flex-direction: column; }
.choice--wide span { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 14px; width: 100%; box-sizing: border-box; }
.choice--wide small { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.choice input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.steps { padding-left: 2.2em; }
.steps li { margin: 0 0 8px; }
.card.ok { border-color: var(--gold-dark); }
.card.ok strong { color: var(--ok-ink); }
[hidden] { display: none !important; }

/* crypto (USDT TRC20) page and the payment method choice */
.choice--off span { opacity: .55; cursor: not-allowed; }
.cr-amount, .cr-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.cr-amount code { font-size: 1.5rem; color: var(--gold-light); }
.cr-addr code { word-break: break-all; font-size: .95rem; }
.cr-qr { display: block; width: 200px; height: 200px; background: #fff; margin: 8px 0; }
input[type=text] { width: 100%; min-height: 48px; padding: 0 12px; background: var(--chrome); color: var(--text); border: 1px solid var(--line); font: inherit; box-sizing: border-box; }
