/* THE $1 CLUB — shared styles for the service pages: account, cancel, withdraw, "what's this charge?" and the legal drafts.
   Same tokens, type and button system as play.html / game.html: paper, ink, red, gold; Archivo for big headings,
   Press Start 2P for pixel labels (8 / 12 / 16 px only), Inter for reading. */
/* fast taps never zoom (double-tap zoom off everywhere; pinch-zoom stays for reading). Zero specificity: any explicit touch-action wins */
:where(html, body, *) { touch-action: manipulation; }
:root {
  --ink: #0d0d0c; --text: #2b2a27; --muted: #6a665e;
  --paper: #f7f7f4; --paper-2: #ecebe5; --line: #dcdad2;
  --red: #d31313; --gold: #d4a017; --gold-hi: #f0c33c; --gold-dk: #8a6510; --sky: #fbf2d2; --gold-ink: #7a5c0e;
  --display: "Archivo", "Arial Black", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --fs-sm: 0.875rem;
  --fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h1: clamp(2rem, 1.1rem + 4.2vw, 3.75rem);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px;
  --gutter: 16px; --col: 44rem; --wide: 64rem;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 640px) { :root { --gutter: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
main { flex: 1 0 auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
canvas { image-rendering: pixelated; display: block; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }
.col { width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wide { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.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; }
.label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.px { font-family: var(--pixel); font-weight: 400; letter-spacing: .03em; line-height: 1.6; }
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.95; color: var(--ink); }
.small { font-size: var(--fs-sm); color: var(--muted); }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink); }

/* ───────── NAV ───────── */
.nav { position: relative; z-index: 2; background: var(--sky); }
.nav-inner { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.logo .coin { position: relative; z-index: 1; display: block; width: 36px; height: 36px; flex: none; transition: transform .3s var(--ease-out);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' shape-rendering='crispEdges'%3E%3Cpath fill='%230d0d0c' d='M6 0h6v1h-6zM4 1h2v1h-2zM12 1h2v1h-2zM3 2h1v1h-1zM14 2h1v1h-1zM2 3h1v1h-1zM15 3h1v1h-1zM1 4h1v1h-1zM16 4h1v1h-1zM1 5h1v1h-1zM16 5h1v1h-1zM0 6h1v1h-1zM17 6h1v1h-1zM0 7h1v1h-1zM17 7h1v1h-1zM0 8h1v1h-1zM17 8h1v1h-1zM0 9h1v1h-1zM17 9h1v1h-1zM0 10h1v1h-1zM17 10h1v1h-1zM0 11h1v1h-1zM17 11h1v1h-1zM1 12h1v1h-1zM16 12h1v1h-1zM1 13h1v1h-1zM16 13h1v1h-1zM2 14h1v1h-1zM15 14h1v1h-1zM3 15h1v1h-1zM14 15h1v1h-1zM4 16h2v1h-2zM12 16h2v1h-2zM6 17h6v1h-6z'/%3E%3Cpath fill='%23f0c33c' d='M6 1h6v1h-6zM4 2h3v1h-3zM11 2h1v1h-1zM3 3h2v1h-2zM8 3h2v1h-2zM12 3h1v1h-1zM2 4h2v1h-2zM6 4h8v1h-8zM2 5h1v1h-1zM5 5h1v1h-1zM7 5h4v1h-4zM12 5h3v1h-3zM1 6h2v1h-2zM4 6h1v1h-1zM9 6h1v1h-1zM12 6h2v1h-2zM1 7h1v1h-1zM5 7h1v1h-1zM7 7h4v1h-4zM12 7h2v1h-2zM1 8h1v1h-1zM3 8h2v1h-2zM8 8h3v1h-3zM12 8h3v1h-3zM1 9h1v1h-1zM3 9h3v1h-3zM7 9h1v1h-1zM9 9h2v1h-2zM12 9h3v1h-3zM1 10h1v1h-1zM8 10h3v1h-3zM12 10h2v1h-2zM1 11h2v1h-2zM4 11h2v1h-2zM7 11h3v1h-3zM13 11h1v1h-1zM3 12h10v1h-10zM4 13h8v1h-8zM5 14h1v1h-1zM8 14h2v1h-2z'/%3E%3Cpath fill='%23fff3b0' d='M7 2h4v1h-4zM6 3h2v1h-2zM10 3h2v1h-2zM5 4h1v1h-1zM3 5h2v1h-2zM3 6h1v1h-1zM2 7h2v1h-2zM2 8h1v1h-1zM2 9h1v1h-1zM2 10h2v1h-2zM3 11h1v1h-1z'/%3E%3Cpath fill='%238a6510' d='M12 2h2v1h-2zM13 3h2v1h-2zM14 4h2v1h-2zM15 5h1v1h-1zM15 6h2v1h-2zM16 7h1v1h-1zM16 8h1v1h-1zM16 9h1v1h-1zM16 10h1v1h-1zM15 11h2v1h-2zM2 12h1v1h-1zM15 12h1v1h-1zM2 13h2v1h-2zM14 13h2v1h-2zM3 14h2v1h-2zM13 14h2v1h-2zM4 15h3v1h-3zM11 15h3v1h-3zM6 16h6v1h-6z'/%3E%3Cpath fill='%23ffffff' d='M5 3h1v1h-1zM4 4h1v1h-1z'/%3E%3Cpath fill='%234a3606' d='M6 5h1v1h-1zM11 5h1v1h-1zM5 6h4v1h-4zM10 6h2v1h-2zM4 7h1v1h-1zM6 7h1v1h-1zM11 7h1v1h-1zM5 8h3v1h-3zM11 8h1v1h-1zM6 9h1v1h-1zM8 9h1v1h-1zM11 9h1v1h-1zM4 10h4v1h-4zM11 10h1v1h-1zM6 11h1v1h-1zM10 11h3v1h-3z'/%3E%3Cpath fill='%23c9971a' d='M14 6h1v1h-1zM14 7h2v1h-2zM15 8h1v1h-1zM15 9h1v1h-1zM14 10h2v1h-2zM14 11h1v1h-1zM13 12h2v1h-2zM12 13h2v1h-2zM6 14h2v1h-2zM10 14h3v1h-3zM7 15h4v1h-4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; image-rendering: pixelated; }
.logo:hover .coin { transform: rotate(-14deg) scale(1.08); }
.logo-text { margin-left: -6px; font-family: var(--pixel); font-size: 10px; line-height: 1; letter-spacing: .03em; white-space: nowrap; background: var(--ink); color: #fff; padding: 9px 10px 8px 14px; box-shadow: 3px 3px 0 var(--gold); }
.logo-text b { font-weight: 400; color: var(--gold); }
.nav-login { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; font-family: var(--pixel); font-size: 8px; letter-spacing: .03em; line-height: 1; color: var(--ink); background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; white-space: nowrap; transition: transform .1s ease, box-shadow .1s ease, background .15s ease; }
.nav-login svg { width: 10px; height: 10px; flex: none; }
.nav-login:hover { background: var(--ink); color: #fff; }
.nav-login:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
@media (max-width: 370px) { .logo-text { display: none; } }

/* ───────── PAGE HEAD: the Gold Idiot District sky, standing on a gold street ───────── */
.ph { position: relative; background: var(--sky); padding: var(--s3) 0 calc(var(--s5) + 14px); }
.ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: linear-gradient(var(--gold-hi) 0 2px, var(--gold) 2px 6px, var(--gold-dk) 6px 8px, var(--ink) 8px); }
.ph .label { color: var(--gold-ink); }
.ph h1 { margin-top: 12px; font-size: var(--fs-h1); text-wrap: balance; }
.ph .lead { margin-top: var(--s2); max-width: 36rem; font-weight: 500; }
.ph .lead b { font-weight: 700; }
.stamp { display: inline-block; background: var(--ink); color: var(--paper); padding: .14em .3em .1em; transform: rotate(-3deg); animation: stamp .62s cubic-bezier(.3, 0, .2, 1) .25s both; }
.stamp b { color: var(--gold); font-weight: 900; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(3.4) rotate(-16deg); } 40% { opacity: 1; } 50% { transform: scale(.84) rotate(-5deg); }
  64% { transform: scale(1.08) rotate(-2deg); } 78% { transform: scale(.97) rotate(-3.4deg); } 100% { opacity: 1; transform: rotate(-3deg); }
}

/* ───────── SECTIONS + PANELS ───────── */
.body { padding: var(--s5) 0 var(--s6); }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack > * { margin-top: 0; min-width: 0; }
.panel { background: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 20px; }
@media (min-width: 640px) { .panel { padding: 28px; } }
.panel.dark { background: var(--ink); color: #d6d4cc; box-shadow: 6px 6px 0 var(--gold); }
.panel.dark h2, .panel.dark .pt, .panel.dark b { color: #fff; }
.panel.dark a { color: #e8e4da; }
.panel.dark a:hover, .panel.dark a.gold { color: var(--gold); }
.panel.dark .small { color: #b9b5aa; }
.pt { font-family: var(--pixel); font-size: 12px; line-height: 1.5; color: var(--ink); font-weight: 400; letter-spacing: .02em; }
.pt + p, .pt + .small { margin-top: 10px; }
.h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--ink); }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.facts li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 12px; background: var(--gold); box-shadow: 2px 2px 0 var(--ink); }
.facts li.no::before { background: var(--red); }
.links-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: var(--s3); font-size: 15px; font-weight: 600; color: var(--ink); }
.links-row a { color: var(--ink); text-underline-offset: 4px; }
.links-row a:hover { color: var(--red); }

/* ───────── FORMS ───────── */
form { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.field { display: grid; gap: 6px; margin-top: 20px; }
.field:first-child { margin-top: 0; }
.panel p + form, .panel .ok + form { margin-top: 18px; }
.panel .pt + form { margin-top: 20px; }
.field > label, legend.lbl, .lbl { display: block; padding: 0; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.lbl .opt-tag, .field > label .opt-tag { font-weight: 500; color: var(--muted); }
.hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.in { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); font: 500 16px/1.4 var(--sans); box-shadow: none; transition: box-shadow .12s ease; -webkit-appearance: none; appearance: none; }
textarea.in { min-height: 104px; resize: vertical; }
/* focus: a hard ink shadow, like the buttons (gold on white was only 2.4:1; ink is well above the 3:1 WCAG asks for) */
.in:focus, .in:focus-visible { outline: none; box-shadow: 4px 4px 0 var(--ink); }
.in[aria-invalid="true"] { border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }
.in::placeholder { color: #a19d93; }
input[type="date"].in { min-height: 48px; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: end; }
.duo .or { justify-self: center; font-family: var(--pixel); font-size: 8px; color: var(--muted); padding: 2px 0; }
@media (min-width: 560px) { .duo { grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); gap: 12px; } .duo .or { padding-bottom: 18px; } }
.duo .sub { display: grid; gap: 6px; min-width: 0; }
.duo .sub label { font-size: 13px; font-weight: 600; color: var(--muted); }
/* choices: radio cards */
.choices { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 560px) { .choices.two { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease, background .12s ease; }
.choice:hover { border-color: var(--ink); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.choice .c { display: block; min-width: 0; }
.choice b { display: block; font-size: 15px; line-height: 1.35; color: var(--ink); }
.choice small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--sky); box-shadow: 3px 3px 0 var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.reveal { margin-top: 12px; animation: reveal .3s var(--ease-out); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }
.err { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 10px 12px; border: 2px solid var(--red); background: #fdeaea; color: #8f0c0c; font-size: 15px; font-weight: 600; line-height: 1.45; }
.err::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; background: var(--red); color: #fff; font-family: var(--pixel); font-size: 8px; }
.err:empty { display: none; }
.ok { margin-top: 16px; padding: 12px 14px; border: 2px solid var(--ink); background: var(--sky); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.shake { animation: shake .55s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }

/* ───────── BUTTONS: the one button system (red block, pixel label, hard shadow) ───────── */
.go {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 60px; padding: 14px 24px; border: 3px solid var(--ink); background: var(--red); color: #fff;
  font-family: var(--pixel); font-size: 14px; font-weight: 400; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; text-align: center;
  box-shadow: 4px 4px 0 var(--ink); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .1s ease, box-shadow .1s ease, background .15s ease;
}
.go small { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1.3; opacity: .9; text-transform: none; }
.go:hover { background: #b30f0f; }
.go:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.go:disabled, .go[aria-busy="true"] { opacity: .5; cursor: progress; }
.go.block { display: flex; width: 100%; }
@media (max-width: 400px) { .go { font-size: 12px; padding-left: 16px; padding-right: 16px; } }
.go.ink { background: var(--ink); }
.go.ink:hover { background: #2b2a27; }
.go.on-dark { box-shadow: 4px 4px 0 var(--gold); }
.btn-plain { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 3px solid var(--ink); background: #fff; color: var(--ink); font-family: var(--pixel); font-size: 10px; line-height: 1.4; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; text-align: center; box-shadow: 4px 4px 0 var(--ink); transition: transform .1s ease, box-shadow .1s ease, background .15s ease; }
.btn-plain:hover { background: var(--sky); }
.btn-plain:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-plain:disabled { opacity: .5; cursor: progress; }
.btn-plain.sm { min-height: 40px; padding: 8px 12px; font-size: 8px; box-shadow: 3px 3px 0 var(--ink); }
.btn-plain.danger { color: var(--red); border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }
.btn-plain.danger:hover { background: #fdeaea; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--s3); }
@media (max-width: 559px) { .btn-row > .go, .btn-row > .btn-plain, .rc-actions > .go, .rc-actions > .btn-plain { flex: 1 1 100%; } }
.submit { margin-top: var(--s3); }

/* ───────── CONFIRMATION RECEIPT (durable: save / print) ───────── */
.receipt-card { position: relative; background: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); animation: rc-in .5s var(--ease-out) both; }
@keyframes rc-in { from { opacity: 0; transform: translateY(14px); } }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: var(--ink); color: var(--gold); font-family: var(--pixel); font-size: 8px; line-height: 1.6; letter-spacing: .03em; }
.rc-head span:last-child { color: #d6d4cc; text-align: right; }
.rc-body { padding: 20px; }
@media (min-width: 640px) { .rc-body { padding: 28px; } }
.rc-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; font-size: clamp(1.625rem, 1.2rem + 2vw, 2.5rem); color: var(--ink); }
.rc-title:focus { outline: none; }
/* the stamp floats top right: the heading flows around it, and a word that doesn't fit next to it moves below it (no overlap at any width) */
.rc-stamp { float: right; position: relative; z-index: 1; margin: 2px -4px 12px 14px; padding: 6px 8px 5px; border: 3px solid var(--red); color: var(--red); font-family: var(--pixel); font-size: 10px; line-height: 1; letter-spacing: .04em; transform: rotate(8deg); background: rgba(255,255,255,.85); animation: rc-stamp .55s cubic-bezier(.3, 0, .2, 1) .35s both; }
@keyframes rc-stamp { 0% { opacity: 0; transform: scale(2.6) rotate(-6deg); } 55% { opacity: 1; transform: scale(.9) rotate(10deg); } 100% { opacity: 1; transform: rotate(8deg); } }
.rc-rows { clear: both; margin: 18px 0 0; padding: 6px 0; border-top: 1px dashed var(--muted); border-bottom: 1px dashed var(--muted); font-variant-numeric: tabular-nums; }
.rc-rows div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; padding: 8px 0; border-bottom: 1px solid var(--paper-2); }
.rc-rows div:last-child { border-bottom: 0; }
@media (min-width: 560px) { .rc-rows div { grid-template-columns: 11rem minmax(0, 1fr); } }
.rc-rows dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.rc-rows dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.rc-rows dd small { display: block; font-weight: 500; color: var(--muted); }
.rc-note { margin-top: 16px; font-size: 15px; line-height: 1.55; }
.rc-mail { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; background: var(--sky); border: 2px solid var(--ink); font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.rc-mail svg { flex: none; width: 20px; height: 16px; margin-top: 2px; }
.rc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--s3); }
.print-only { display: none; }

/* ───────── DIALOGS ───────── */
dialog { border: 3px solid var(--ink); padding: 0; width: min(92vw, 440px); max-height: calc(100svh - 32px); overflow: auto; background: var(--paper); color: var(--text); box-shadow: 8px 8px 0 var(--ink); }
dialog[open] { animation: dlg-in .45s var(--ease-out); }
dialog::backdrop { background: rgba(13, 13, 12, .6); backdrop-filter: blur(3px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dlg-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; background: var(--ink); color: #d6d4cc; font-family: var(--pixel); font-size: 8px; line-height: 1.5; }
.dlg-close { width: 44px; height: 36px; background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; }
.dlg-body { padding: 20px; }
.dlg-body h2 { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; }
.dlg-body p { margin-top: 10px; font-size: 15px; line-height: 1.5; }
.dlg-body .go, .dlg-body .btn-plain { width: 100%; }
.dlg-body .btn-row { flex-direction: column; gap: 12px; }

/* ───────── FOOTER ───────── */
.footer { flex: none; background: var(--ink); color: #b9b5aa; padding: var(--s5) 0 var(--s4); }
.footer .sign { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(1.375rem, 1rem + 1.6vw, 2rem); color: #fff; }
.footer .sign b { color: var(--gold); font-weight: 900; }
.footer nav { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
.footer nav a { color: #e8e4da; text-underline-offset: 3px; }
.footer nav a:hover { color: var(--gold); }
.footer nav a[aria-current="page"] { color: var(--gold); }
.footer nav a[href$="cancel.html"], .footer nav a[href$="withdraw.html"] { font-weight: 700; }   /* § 312k / § 356a BGB: prominent */
.footer nav.legal-links { margin-top: 14px; }
.footer .fine { margin-top: var(--s4); font-size: 12px; line-height: 1.6; color: #8d8a82; max-width: 44rem; }

/* ───────── ACCOUNT ───────── */
.member { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 640px) { .member { grid-template-columns: 132px minmax(0, 1fr); gap: 24px; } }
.member-pic { position: relative; width: 100%; aspect-ratio: 1; border: 3px solid var(--ink); background: var(--sky); overflow: hidden; }
.member-pic::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: linear-gradient(var(--gold-hi) 0 8%, var(--gold) 8% 40%, var(--gold-dk) 40% 52%, var(--ink) 52%); }
.member-pic canvas { position: relative; z-index: 1; width: 100%; height: 100%; }
.member-no { font-family: var(--pixel); font-size: 12px; line-height: 1.5; color: var(--ink); }
@media (min-width: 640px) { .member-no { font-size: 16px; } }
.ribbon { display: inline-block; margin-top: 10px; padding: 7px 10px 6px; background: var(--gold); color: var(--ink); font-family: var(--pixel); font-size: 8px; line-height: 1.5; letter-spacing: .03em; box-shadow: 3px 3px 0 var(--ink); }
.kv { grid-column: 1 / -1; margin: 6px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px dashed var(--muted); font-variant-numeric: tabular-nums; }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv dt { font-size: 14px; color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); text-align: right; }
.kv dd.zero { color: var(--red); }
@media (min-width: 640px) { .kv { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.status { display: inline-block; padding: 3px 7px 2px; font-family: var(--pixel); font-size: 8px; line-height: 1.5; letter-spacing: .03em; color: #fff; background: var(--ink); }
.status.active { background: #1f7a3a; } .status.cancelling, .status.paused { background: var(--gold-ink); } .status.cancelled, .status.none { background: var(--muted); } .status.blocked { background: var(--red); }
.status.refunded { background: var(--muted); } .status.disputed { background: var(--red); } .status.paid { background: var(--ink); } .status.paused-buy { background: var(--red); }
.ptable { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.ptable th { padding: 8px 10px 8px 0; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.ptable td { padding: 12px 10px 12px 0; vertical-align: middle; border-bottom: 1px dashed var(--line); }
.ptable td.num, .ptable th.num { text-align: right; }
.ptable td.act { text-align: right; padding-right: 0; }
.ptable .what b { display: block; color: var(--ink); }
.ptable .what span { display: block; font-size: 13px; color: var(--muted); }
.ptable .muted { font-size: 13px; color: var(--muted); }
@media (max-width: 639px) {
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100%; }
  .ptable tr { position: relative; padding: 12px 0; border-bottom: 1px dashed var(--muted); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .ptable td { padding: 0; border: 0; }
  .ptable td.what { grid-column: 1; }
  .ptable td.num { grid-column: 2; grid-row: 1; font-weight: 700; color: var(--ink); }
  .ptable td.when { grid-column: 1; font-size: 13px; color: var(--muted); }
  .ptable td.st { grid-column: 2; grid-row: 2; text-align: right; }
  .ptable td.act { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
  .ptable td.act .btn-plain { width: 100%; }
}
.linkbox { display: flex; gap: 10px; margin-top: 12px; }
.linkbox input { flex: 1; min-width: 0; height: 44px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 0; background: #fff; font: 600 14px var(--sans); color: var(--ink); }
.tools { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 640px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tools .btn-plain { width: 100%; }
/* what you can do about your membership right now (keep it / update the card), right under the facts */
.m-act { margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--ink); }
.m-act .btn-row { margin-top: 14px; }
.m-act .small { margin-top: 8px; color: var(--muted); }
.m-act > .ok:first-child { margin-top: 0; margin-bottom: 16px; }
.m-act .notice:first-child, #cardBox > .notice { margin-top: 0; }
.panel > .notice + p { margin-top: 16px; }
.notice .btn-row { margin-top: 14px; }
.notice a.go { color: #fff; text-decoration: none; }
.btn-plain.block { display: flex; width: 100%; }
/* a plain notice (not an error): sky for information, red edge for "purchases paused" / "payment failed" */
.notice { margin-top: 16px; padding: 12px 14px; border: 2px solid var(--ink); background: var(--sky); color: var(--ink); font-size: 15px; line-height: 1.5; }
.notice b { font-weight: 700; }
.notice.warn { border-color: var(--red); background: #fdeaea; color: #6e0a0a; box-shadow: inset 6px 0 0 var(--red); padding-left: 20px; }
.notice.warn b { color: #8f0c0c; }
.notice a { color: inherit; }
/* one setting, one line: the name on the left, ON/OFF on the right */
.setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding: 12px 0; border-top: 1px dashed var(--muted); border-bottom: 1px dashed var(--muted); }
.setting b { font-size: 15px; line-height: 1.4; color: var(--ink); }
.status.on { background: #1f7a3a; } .status.off { background: var(--muted); }
.setting .status { font-size: 10px; padding: 5px 9px 4px; flex: none; }
.devlink { margin-top: 14px; padding: 10px 12px; border: 2px dashed var(--gold-ink); background: #fff8dc; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.devlink b { font-family: var(--pixel); font-size: 8px; color: var(--gold-ink); font-weight: 400; display: block; margin-bottom: 4px; }
.loading { padding: var(--s4) 0; font-family: var(--pixel); font-size: 8px; color: var(--muted); }
.loading::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; background: var(--gold); animation: blink .9s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ───────── "WHAT'S THIS CHARGE?" — a bank statement line ───────── */
.statement { background: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); font-variant-numeric: tabular-nums; }
.statement .st-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--paper-2); border-bottom: 2px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.statement .st-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border-bottom: 1px dashed var(--line); }
.statement .st-row:last-child { border-bottom: 0; }
.statement .st-row.hl { background: var(--sky); box-shadow: inset 6px 0 0 var(--red); }
.statement .desc { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.statement .desc small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }
.statement .amt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; color: var(--ink); text-align: right; }
.statement .st-row.dim .desc, .statement .st-row.dim .amt { color: #a19d93; font-weight: 500; }
.prices { margin: 14px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.prices li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.45; }
.prices li > b { font-family: var(--pixel); font-size: 12px; line-height: 1.6; color: var(--ink); font-weight: 400; }
.prices li span b { color: var(--ink); }
.prices li span small { display: block; color: var(--muted); font-size: 13px; }

/* ───────── LEGAL DRAFTS ───────── */
.draft { position: relative; z-index: 3; background: var(--red); color: #fff; border-bottom: 3px solid var(--ink); }
.draft p { padding: 12px var(--gutter); font-family: var(--pixel); font-size: 8px; line-height: 1.9; letter-spacing: .03em; text-align: center; text-transform: uppercase; }
@media (min-width: 640px) { .draft p { font-size: 10px; } }
.toc { margin-top: 0; padding: 16px 20px; background: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.toc .pt { font-size: 8px; }
.toc ol { margin: 10px 0 0; padding-left: 22px; columns: 1; font-size: 15px; line-height: 1.7; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc a { color: var(--ink); }
.doc { font-size: 1rem; line-height: 1.65; }
.doc h2 { margin: var(--s5) 0 0; padding-top: 6px; font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.05; font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem); color: var(--ink); scroll-margin-top: 16px; }
.doc h2 .n { display: inline-block; min-width: 2.2em; margin-right: 4px; padding: 4px 6px 3px; background: var(--ink); color: var(--gold); font-family: var(--pixel); font-size: 10px; font-weight: 400; letter-spacing: .02em; vertical-align: 0.3em; text-align: center; }
.doc h3 { margin: var(--s3) 0 0; font-size: 1.0625rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.doc p, .doc ul, .doc ol, .doc table, .doc .box { margin: 12px 0 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc code { overflow-wrap: anywhere; }   /* (a long example like ?utm_source=… wraps on a phone instead of running out of the column) */
.doc .box { padding: 16px 18px; background: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.doc .box.gold { background: var(--sky); }
.doc .box > :first-child { margin-top: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.doc th, .doc td { padding: 9px 10px 9px 0; text-align: left; vertical-align: top; border-bottom: 1px dashed var(--line); }
.doc th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.doc td:first-child { font-weight: 600; color: var(--ink); }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 559px) {
  .doc table.rtable, .doc table.rtable tbody, .doc table.rtable tr, .doc table.rtable td { display: block; width: 100%; }
  .doc table.rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc table.rtable tr { padding: 10px 0; border-bottom: 1px dashed var(--muted); }
  .doc table.rtable td { padding: 2px 0; border: 0; }
  .doc table.rtable td[data-l]::before { content: attr(data-l) ": "; font-weight: 600; color: var(--muted); }
}
.tbd { padding: 0 4px; background: #fff3b0; border: 1px dashed var(--gold-ink); color: var(--ink); font-weight: 700; font-size: .92em; white-space: normal; overflow-wrap: anywhere; }
.tbd.law { background: #fdeaea; border-color: var(--red); color: #8f0c0c; }
.tbd.filled { background: none; border: 0; padding: 0; font-weight: inherit; font-size: inherit; }
[data-fill="phone"] { white-space: nowrap; }   /* (a phone number never splits across two lines) */
.form-model { padding: 20px; background: #fff; border: 2px dashed var(--ink); }
.form-model p { margin: 10px 0 0; }
.form-model .line { display: block; margin-top: 22px; border-bottom: 1px solid var(--ink); height: 1px; }
.updated { margin-top: 12px; font-size: 13px; color: var(--muted); }

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

/* ───────── PRINT: the confirmation (or the legal text) on paper, nothing else ───────── */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; display: block; font-size: 11pt; }
  .nav, .footer, .no-print, .ph::after, dialog { display: none !important; }
  .ph { background: none; padding: 0 0 8pt; }
  .ph .lead { display: none; }
  .body { padding: 0; }
  .print-only { display: block; }
  .receipt-card, .panel, .statement, .toc, .doc .box { box-shadow: none !important; border-width: 2px; animation: none !important; }
  .rc-stamp { animation: none; }
  .rc-head, .rc-head span:last-child { background: #fff !important; color: #000 !important; }
  .rc-head { border-bottom: 2px solid #000; }
  .rc-stamp, .rc-mail { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .draft { background: #fff; color: #000; border: 2px solid #000; }
  a { text-decoration: none; }
  .doc a[href^="http"]::after, .doc a[href^="/"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
