/* Unavoidable Dragons design system. Tokens first, then base, layout, components, pages. */
:root {
  --bg: #0B0908;
  --bg-2: #100D0B;
  --panel: #15110E;
  --panel-2: #1C1713;
  --line: #2A231D;
  --line-2: #4A3E33;
  --ink: #EFE8DA;
  --ink-2: #D9CFBE;
  --muted: #B3A999;
  --faint: #8F8678;
  --amber: #F0A040;
  --amber-hi: #FFB95C;
  --amber-ink: #140B03;
  --crimson: #B3262E;
  --rank-new: #7CC4B3;
  --rank-experienced: #E6B24A;
  --rank-expert: #F2848A;
  --ok: #6FD3A0;
  --warn: #F0A040;
  --danger: #F2737A;
  --parchment: #EFE8DA;
  --parchment-ink: #140B03;
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Schibsted Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  --display-scale: 0.72;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--amber); }
p a, .prose a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Typography */
.display, h1.display, h2.display { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.01em; line-height: 0.95; margin: 0; }
.h1 { font-size: calc(var(--display-scale) * clamp(52px, 8.6vw, 132px)); }
.h2 { font-size: calc(var(--display-scale) * clamp(40px, 5vw, 72px)); }
.h3 { font-size: calc(var(--display-scale) * clamp(30px, 3vw, 44px)); }
.accent { color: var(--amber); font-weight: 500; font-style: normal; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin: 0; }
.cap { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 620px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-family: var(--font-display); color: var(--ink); font-size: 30px; margin: 40px 0 12px; }
.prose h3 { color: var(--ink); font-size: 21px; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose blockquote { border-left: 2px solid var(--amber); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--ink); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-tight { padding-top: 56px; padding-bottom: 56px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 16px); align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--gap, 24px); grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 300px), 100%), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 300px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Beta banner + header */
.beta { background: var(--amber); color: var(--amber-ink); text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; padding: 7px 16px; }
.site-header { position: relative; z-index: 20; }
.site-header.solid { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--gutter); max-width: 1600px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-words small { font-size: 10px; font-weight: 600; letter-spacing: 0.5em; color: var(--ink-2); }
.brand-words strong { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: 0.12em; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { white-space: nowrap; }
.nav a.active { color: var(--amber); }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 500; }
.badge-count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; background: var(--amber); color: var(--amber-ink); font-size: 12px; font-weight: 700; margin-left: 6px; }
.menu-btn { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: rgba(11,9,8,.7); border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; }
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 10px); background: var(--panel); border: 1px solid var(--line-2); min-width: 220px; display: flex; flex-direction: column; padding: 8px 0; z-index: 30; }
.user-menu .menu a, .user-menu .menu button { padding: 10px 18px; text-align: left; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--panel-2); color: var(--amber); }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); border: 1px solid var(--line-2); flex: 0 0 auto; }
.avatar.lg { width: 96px; height: 96px; font-size: 32px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; white-space: nowrap; cursor: pointer; border: 1px solid transparent; border-radius: var(--radius); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: var(--amber-hi); color: var(--amber-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #6B5C4C; font-weight: 600; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-dark { background: var(--amber-ink); color: var(--parchment); }
.btn-dark:hover { color: var(--amber); }
.btn-danger { background: transparent; color: var(--danger); border-color: #7A3A3E; }
.btn-danger:hover { background: #2A1214; color: var(--danger); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; border-bottom: 1px solid var(--amber); padding-bottom: 4px; white-space: nowrap; }
.glow { animation: udGlow 3.2s ease-in-out infinite; }
@keyframes udGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(240,160,64,0); } 50% { box-shadow: 0 0 28px 2px rgba(240,160,64,.35); } }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error { font-size: 13px; color: var(--danger); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); font: inherit; font-size: 16px; padding: 10px 14px; border-radius: var(--radius); color-scheme: dark; }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 1px var(--amber); }
.input.invalid { border-color: var(--danger); }
select option { background: var(--panel); color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--amber); flex: 0 0 auto; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.strength { height: 6px; background: var(--line); position: relative; }
.strength span { position: absolute; inset: 0 auto 0 0; background: var(--danger); transition: width .2s, background .2s; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.on, .chip:has(input:checked) { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); font-weight: 600; }
.searchbar { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--bg); border: 1px solid var(--line-2); }
.searchbar .seg { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; padding: 14px 20px; border-right: 1px solid var(--line); }
.searchbar .seg:last-of-type { border-right: 0; }
.searchbar select, .searchbar input { background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; padding: 4px 0; min-height: 32px; color-scheme: dark; }
.searchbar select:focus, .searchbar input:focus { outline: none; }
.searchbar .btn { min-height: 64px; padding: 0 34px; font-size: 17px; }

/* Notices / flashes */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-2); background: var(--panel); font-size: 15px; line-height: 1.5; }
.notice strong { color: var(--ink); }
.notice.ok { border-color: #2E5E48; background: #0F1A14; }
.notice.ok .icon { color: var(--ok); }
.notice.warn { border-color: #6B4A1E; background: #1E150A; }
.notice.warn .icon { color: var(--warn); }
.notice.error { border-color: #6B2A2E; background: #1E0D0F; }
.notice.error .icon { color: var(--danger); }
.notice .icon { flex: 0 0 auto; margin-top: 2px; }
.flashes { position: fixed; top: 16px; right: 16px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.flash { padding: 14px 18px; background: var(--panel); border: 1px solid var(--line-2); border-left: 0; box-shadow: 0 16px 40px rgba(0,0,0,.5); font-size: 15px; display: flex; gap: 12px; align-items: flex-start; animation: udFade .3s ease-out both; }
.flash.success { border-color: #2E5E48; } .flash.error { border-color: #6B2A2E; } .flash.info { border-color: var(--line-2); }
.flash button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; margin-left: auto; }

/* Rank + tags */
.rank { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.rank::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: currentColor; }
.rank-new { color: var(--rank-new); } .rank-experienced { color: var(--rank-experienced); } .rank-expert { color: var(--rank-expert); }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tag.amber { border-color: var(--amber); color: var(--amber); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); } .status.warn { color: var(--warn); } .status.bad { color: var(--danger); } .status.neutral { color: var(--muted); }
.stars { color: var(--amber); letter-spacing: 2px; }
.caption { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.hero { position: relative; min-height: 900px; display: flex; flex-direction: column; overflow: hidden; }
.hero.short { min-height: 520px; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-art.drift { animation: udDrift 28s ease-in-out infinite alternate; will-change: transform; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,9,8,.7) 0%, rgba(11,9,8,0) 22%, rgba(11,9,8,0) 42%, rgba(11,9,8,.86) 74%, var(--bg) 100%), linear-gradient(90deg, rgba(11,9,8,.7) 0%, rgba(11,9,8,0) 60%); }
.hero-body { position: relative; margin-top: auto; padding-top: 120px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
@keyframes udDrift { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes udRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes udFade { from { opacity: 0; } to { opacity: 1; } }
.rise { animation: udRise .9s cubic-bezier(.2,.7,.2,1) both; }
.rise-2 { animation-delay: .15s; } .rise-3 { animation-delay: .3s; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Board (session rows) */
.board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.board-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding: 22px 8px; border-bottom: 1px solid var(--line); }
.board-row:hover { background: var(--panel); }
.board-time { flex: 0 0 128px; display: flex; flex-direction: column; }
.board-time strong { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; }
.board-thumb { width: 88px; height: 64px; object-fit: cover; flex: 0 0 auto; }
.board-title { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.board-title a { font-size: 19px; font-weight: 600; }
.board-dm { flex: 1 1 190px; display: flex; flex-direction: column; gap: 4px; }
.board-seats { flex: 0 0 150px; display: flex; flex-direction: column; gap: 8px; }
.pips { display: flex; gap: 4px; }
.pips span { width: 18px; height: 6px; background: var(--ink); }
.pips span.free { background: transparent; border: 1px solid var(--amber); }
.board-price { flex: 0 0 auto; display: flex; align-items: center; gap: 20px; }
.board-price strong { font-family: var(--font-display); font-size: 24px; }

/* DM cards */
.dm-feature { position: relative; min-height: 640px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.dm-feature img.bg, .art-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.dm-feature:hover img.bg, .art-card:hover img.bg { transform: scale(1.04); }
.dm-feature .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,9,8,0) 30%, rgba(11,9,8,.94) 80%); }
.dm-feature .body { position: relative; padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.dm-card { display: flex; flex-direction: column; background: var(--panel); overflow: hidden; position: relative; }
.dm-card .cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.dm-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.dm-card:hover .cover img { transform: scale(1.04); }
.dm-card .portrait { position: absolute; left: 20px; bottom: -28px; width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--panel); object-fit: cover; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.dm-card .body { padding: 38px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dm-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin: 0; line-height: 1.05; }
.dm-card h3 a::after { content: ""; position: absolute; inset: 0; }
.dm-card .meta { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; color: var(--muted); margin-top: auto; }
.dm-card .meta strong { color: var(--ink); }
.dm-card .fav { position: absolute; top: 12px; right: 12px; z-index: 2; }
.dm-row-card { display: flex; background: var(--panel); overflow: hidden; min-height: 200px; }
.dm-row-card .art { flex: 0 0 42%; position: relative; overflow: hidden; }
.dm-row-card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-row-card .body { flex: 1; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: rgba(11,9,8,.7); color: var(--ink); cursor: pointer; }
.icon-btn:hover, .icon-btn.on { color: var(--amber); border-color: var(--amber); }

/* Panels, tables, stats */
.panel { background: var(--panel); border: 1px solid var(--line); padding: 24px; }
.panel.flush { padding: 0; }
.panel h2, .panel h3 { margin-top: 0; }
.panel-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--panel); border: 1px solid var(--line); }
.stat strong { font-family: var(--font-display); font-size: 36px; line-height: 1; }
.stat span { font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.summary .line { display: flex; justify-content: space-between; gap: 16px; }
.summary .total { border-top: 1px solid var(--line-2); padding-top: 12px; font-size: 19px; font-weight: 700; }
.bar-track { height: 6px; background: var(--line); }
.bar-fill { height: 100%; background: var(--amber); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 12px 18px; white-space: nowrap; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--amber); }
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-2); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty .display { color: var(--ink); font-size: 26px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checklist li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checklist .tick { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.checklist .done .tick { background: var(--ok); border-color: var(--ok); color: #0B0908; }

/* Messages */
.inbox { display: flex; min-height: 620px; border: 1px solid var(--line); }
.inbox-list { flex: 0 0 320px; border-right: 1px solid var(--line); overflow-y: auto; }
.inbox-list a { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.inbox-list a.active, .inbox-list a:hover { background: var(--panel); color: var(--ink); }
.inbox-list .unread strong::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-left: 8px; }
.thread { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.thread-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.thread-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 560px; }
.bubble { max-width: 74%; padding: 12px 16px; background: var(--panel-2); line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: #2A1E10; border: 1px solid #4A3518; }
.bubble time { display: block; font-size: 11px; color: var(--faint); margin-top: 6px; }
.thread-safety { padding: 10px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg-2); }
.composer { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 48px; max-height: 160px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(5,4,3,.78); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; animation: udFade .35s ease-out both; }
.modal { position: relative; width: min(880px, 100%); display: flex; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 40px 80px rgba(0,0,0,.6); max-height: calc(100vh - 32px); overflow: auto; }
.modal .close { position: absolute; top: 10px; right: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.site-footer nav { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }

/* Sticky mobile CTA */
.sticky-cta { display: none; }

/* d20 */
.d20 { position: relative; width: 84px; height: 84px; border: 0; background: transparent; padding: 0; cursor: pointer; flex: 0 0 auto; }
.d20 svg { width: 100%; height: 100%; }
.d20 .face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--amber); }
.d20.rolling svg { animation: udRoll .8s cubic-bezier(.2,.7,.2,1); }
@keyframes udRoll { 0% { transform: rotate(0) scale(1); } 55% { transform: rotate(600deg) scale(1.18); } 100% { transform: rotate(720deg) scale(1); } }

/* Admin + dashboard layouts */
.app-shell { display: flex; flex-wrap: wrap; min-height: calc(100vh - 120px); }
.app-side { flex: 1 1 240px; max-width: 280px; border-right: 1px solid var(--line); padding: 28px 0; background: var(--bg-2); }
.app-side nav { display: flex; flex-direction: column; }
.app-side a { padding: 11px 28px; color: var(--ink-2); font-weight: 500; }
.app-side a.active { color: var(--amber); background: var(--panel); box-shadow: inset 2px 0 0 var(--amber); }
.app-side .group { padding: 18px 28px 6px; }
.app-main { flex: 999 1 600px; min-width: 0; padding: 32px var(--gutter) 80px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }

/* Responsive */
@media (max-width: 960px) {
  .nav, .header-actions .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .inbox { flex-direction: column; }
  .inbox-list { flex: 0 0 auto; max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .inbox.has-thread .inbox-list { display: none; }
  .app-side { max-width: none; flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .app-side nav { flex-direction: row; overflow-x: auto; }
  .app-side .group { display: none; }
  .app-side a { white-space: nowrap; padding: 14px 18px; }
  .app-side a.active { box-shadow: inset 0 -2px 0 var(--amber); }
}
@media (max-width: 760px) {
  .hero { min-height: 760px; }
  .searchbar .seg { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .searchbar .btn { flex-basis: 100%; }
  .board-time { flex-basis: auto; }
  .board-thumb { display: none; }
  .board-row { padding: 18px 0; }
  .dm-row-card { flex-direction: column; }
  .dm-row-card .art { flex-basis: 180px; min-height: 180px; }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(11,9,8,.96); border-top: 1px solid var(--line); gap: 12px; align-items: center; }
  body.has-sticky { padding-bottom: 76px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .bubble { max-width: 90%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* === Module: public + booking === */
/* Page banner (directory, games) */
.page-banner { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-banner-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .55; }
.page-banner-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,9,8,.55) 0%, rgba(11,9,8,.35) 40%, var(--bg) 100%), linear-gradient(90deg, rgba(11,9,8,.85) 0%, rgba(11,9,8,0) 70%); }
.page-banner-body { position: relative; padding-top: 72px; padding-bottom: 48px; }
.dir-search { max-width: 980px; margin-top: 8px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a.tag:hover { border-color: var(--amber); color: var(--amber); }
.price-big { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; }
.notice.slim { padding: 10px 14px; font-size: 14px; align-items: center; }

/* Directory layout + filters */
.dir-layout { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 40px; padding-bottom: 96px; align-items: flex-start; }
.dir-side { flex: 1 1 260px; max-width: 300px; }
.dir-main { flex: 999 1 560px; min-width: 0; }
.filter-box { border: 1px solid var(--line); background: var(--panel); }
.filter-box > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 700; min-height: 48px; }
.filter-box > summary::-webkit-details-marker { display: none; }
.filter-box[open] .filter-caret { transform: rotate(45deg); }
.filter-caret { font-size: 22px; line-height: 1; color: var(--amber); transition: transform .2s; }
.filter-form { padding: 6px 18px 22px; }
.filter-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.filter-group legend { margin-bottom: 10px; padding: 0; }
.filter-group .chip { min-height: 36px; padding: 0 12px; position: relative; }
.rank-dot { width: 8px; height: 8px; transform: rotate(45deg); background: currentColor; display: inline-block; }
.chip.on .rank-dot, .chip:has(input:checked) .rank-dot { background: var(--amber-ink); }
.chip .rank-dot.rank-new { color: var(--rank-new); } .chip .rank-dot.rank-experienced { color: var(--rank-experienced); } .chip .rank-dot.rank-expert { color: var(--rank-expert); }
.range { width: 100%; accent-color: var(--amber); min-height: 32px; }
.price-out { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--amber); }
.active-chips { list-style: none; margin: 0; padding: 0; }
.active-chips .chip { min-height: 34px; padding: 0 12px; border-color: var(--amber); color: var(--amber); }
.active-chips .chip:hover { background: var(--amber); color: var(--amber-ink); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding-top: 16px; }
.pager-num { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: 1px solid var(--line-2); font-weight: 600; }
.pager-num.current { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
@media (min-width: 961px) {
  .dir-side { position: sticky; top: 16px; }
  @supports selector(::details-content) {
    .filter-box > summary { display: none; }
    .filter-box::details-content { content-visibility: visible; display: block; height: auto; }
    .filter-form { padding-top: 22px; }
  }
}
@media (max-width: 960px) {
  .dir-side { max-width: none; flex-basis: 100%; }
  .dir-layout { gap: 24px; padding-top: 24px; }
}

/* DM profile */
.profile-cover { position: relative; height: clamp(220px, 34vw, 420px); overflow: hidden; }
.profile-cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.profile-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,9,8,.25) 0%, rgba(11,9,8,0) 35%, rgba(11,9,8,.7) 75%, var(--bg) 100%); }
.profile-head { position: relative; display: flex; gap: 28px; align-items: flex-end; margin-top: -96px; padding-bottom: 40px; flex-wrap: wrap; }
.profile-portrait { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 54px; color: var(--ink); flex: 0 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.profile-body { padding-bottom: 96px; }
.action-panel { border-color: var(--line-2); }
.glance { margin: 0; display: flex; flex-direction: column; }
.glance > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.glance > div:last-child { border-bottom: 0; }
.glance dt { color: var(--muted); font-size: 14px; }
.glance dd { margin: 0; font-weight: 600; text-align: right; }
.glance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.glance-grid > div:last-child { border-bottom: 1px solid var(--line); }
.review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.review { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-reply { margin-top: 6px; padding: 12px 16px; border-left: 2px solid var(--amber); background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.report-box summary { cursor: pointer; display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 961px) {
  .profile-side .action-panel { position: sticky; top: 16px; }
  .profile-side { align-self: flex-start; position: sticky; top: 16px; }
}
@media (max-width: 760px) {
  .profile-head { margin-top: -72px; gap: 16px; }
  .profile-portrait { width: 112px; height: 112px; font-size: 38px; }
}

/* Game detail */
.game-hero { min-height: 560px; }
.games-filters { align-items: flex-end; }
.games-filters .field { flex: 1 1 200px; max-width: 280px; }
.dm-mini { display: flex; gap: 16px; align-items: flex-start; color: var(--ink); }
.dm-mini:hover { border-color: var(--amber); color: var(--ink); }
.dm-mini-name { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1.05; }

/* Checkout */
.checkout .side { flex: 1 1 380px; }
.checkout-art { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.checkout-when { font-size: 18px; line-height: 1.45; }
.checkout-form { border-color: var(--line-2); }
.stepper { display: flex; align-items: stretch; gap: 0; max-width: 220px; }
.stepper .icon-btn { width: 52px; height: 52px; font-size: 22px; background: var(--bg); }
.stepper .input { text-align: center; font-size: 20px; font-weight: 700; min-height: 52px; border-left: 0; border-right: 0; -moz-appearance: textfield; }
.stepper .input::-webkit-outer-spin-button, .stepper .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.next-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.next-steps li::marker { color: var(--amber); font-family: var(--font-display); font-weight: 700; }

/* My sessions */
.booking-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.booking-item { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.booking-art { width: 120px; height: 84px; object-fit: cover; flex: 0 0 auto; }
.booking-info { flex: 1 1 320px; min-width: 0; }
.booking-title { font-size: 19px; font-weight: 600; }
.booking-actions { flex: 0 1 auto; justify-content: flex-end; }
.booking-actions form { margin: 0; }
@media (max-width: 760px) {
  .booking-art { width: 88px; height: 64px; }
  .booking-actions { justify-content: flex-start; }
}

/* === Module: admin + CMS === */
/* Admin shell */
.app-shell.admin .app-side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-shell.admin .app-side .badge-count { margin-left: 0; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 20px; }
.admin-filters .field { flex: 1 1 180px; max-width: 280px; }
.admin-filters .input { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.admin-filters .btn { min-height: 44px; }
a.stat { color: var(--ink); transition: border-color .2s; }
a.stat:hover { border-color: var(--amber); color: var(--ink); }
.admin-stats .stat strong { font-size: 32px; }
.admin-inline { position: relative; }
.admin-inline > summary { list-style: none; }
.admin-inline > summary::-webkit-details-marker { display: none; }
.admin-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; width: 300px; padding: 18px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 20px 40px rgba(0,0,0,.5); text-align: left; white-space: normal; }
.admin-highlight { background: var(--panel); box-shadow: inset 2px 0 0 var(--amber); padding-left: 16px; padding-right: 16px; }
.admin-quote { margin: 0; padding: 10px 16px; border-left: 2px solid var(--line-2); background: var(--bg-2); color: var(--ink-2); white-space: normal; }
.admin-details { display: block; max-width: 520px; white-space: pre-wrap; word-break: break-word; color: var(--muted); }
.admin-pre { white-space: normal; word-break: break-word; }
.admin-fieldset { margin: 0; min-width: 0; }
.admin-fieldset legend { float: left; width: 100%; margin-bottom: 16px; padding: 0; }
.admin-fieldset legend + * { clear: both; }
.admin-slug { display: flex; align-items: center; gap: 8px; }
.admin-slug .input { flex: 1; }
.admin-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; min-height: 360px; }
.admin-editor { max-width: 980px; }
.hint.admin-over { color: var(--danger); }
.admin-thumb { width: 80px; height: 52px; object-fit: cover; }
.admin-cover { width: 100%; max-width: 420px; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); margin-bottom: 6px; }
.admin-money td { white-space: nowrap; }
.admin-money td:nth-child(2) { white-space: normal; min-width: 200px; }
.app-shell.admin .app-side { min-width: 0; }
.app-shell.admin .app-side nav { max-width: 100%; }
@media (max-width: 760px) {
  .admin-filters .field { max-width: none; flex-basis: 100%; }
  .admin-pop { position: static; width: auto; margin-top: 8px; box-shadow: none; }
  .admin-stats .stat strong { font-size: 26px; }
}

/* Content pages */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--amber); }
.content-hero .page-banner-body { padding-top: 96px; padding-bottom: 56px; }
.content-hero .h1 { max-width: 1100px; }
.content-plain { border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 40px; }
.content-body { padding-bottom: 80px; }
.quest-num { font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--amber); }
.pillars .panel { height: 100%; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.legal-links a.tag:hover { border-color: var(--amber); color: var(--amber); }
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta-band-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta-band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,9,8,.94) 0%, rgba(11,9,8,.78) 45%, rgba(11,9,8,.35) 100%); }
.cta-band-body { position: relative; padding-top: 88px; padding-bottom: 88px; max-width: var(--max); }
.cta-band-body .h2, .cta-band-body .lead { max-width: 720px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Guides */
.guide-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.guide-card:hover { border-color: var(--line-2); }
.guide-card-art { aspect-ratio: 16 / 9; overflow: hidden; }
.guide-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.guide-card:hover .guide-card-art img { transform: scale(1.04); }
.guide-card-body { padding: 22px; flex: 1; }
.guide-card h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.1; margin: 0; }
.guide-card h2 a::after { content: ""; position: absolute; inset: 0; }
.guide-card .link-arrow { align-self: flex-start; margin-top: auto; }
.guide-hero { position: relative; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.guide-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .7; }
.guide-hero-body { position: relative; width: 100%; padding-top: 96px; padding-bottom: 48px; }
.guide-hero-body .h1 { max-width: 1000px; }
.guide-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.guide-toc { flex: 1 1 240px; max-width: 300px; }
.guide-toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.guide-toc li::marker { color: var(--amber); }
.guide-body { flex: 999 1 560px; min-width: 0; }
.guide-body h2 { scroll-margin-top: 24px; }
.guide-body img { margin: 24px 0; }
.landing-intro p:first-child { font-size: 19px; color: var(--ink); }
.landing-links a:hover { color: var(--amber); }
@media (min-width: 961px) {
  .guide-toc { position: sticky; top: 16px; }
}
@media (max-width: 960px) {
  .guide-toc { max-width: none; flex-basis: 100%; }
}
@media (max-width: 760px) {
  .guide-hero { min-height: 420px; }
  .cta-band-body { padding-top: 64px; padding-bottom: 64px; }
  .content-hero .page-banner-body { padding-top: 56px; padding-bottom: 40px; }
}

/* 404 and error pages */
.not-found { min-height: 640px; }
.not-found .hero-body { padding-bottom: 96px; }

/* === Module: accounts + DM === */
/* Auth pages */
.auth { display: flex; flex-wrap: wrap; min-height: calc(100vh - 120px); }
.auth-art { flex: 1 1 420px; position: relative; min-height: 280px; overflow: hidden; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,9,8,0) 50%, var(--bg) 100%); }
.auth-art .caption { position: absolute; left: 20px; bottom: 16px; margin: 0; z-index: 1; background: var(--bg); padding: 6px 10px; }
.auth-panel { flex: 1 1 480px; max-width: 640px; padding: clamp(32px, 6vw, 80px) var(--gutter); display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.settings-body { max-width: 820px; }
.chip:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
.field-error-list { margin: 0; padding-left: 18px; }

/* Messages */
.inbox-list a { align-items: flex-start; }
.inbox-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.inbox-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.inbox-back { display: none; font-size: 22px; line-height: 1; padding: 6px 8px 6px 0; }
.inbox-pane { align-items: center; justify-content: center; }
.thread-booked { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); background: #0F1A14; }
.thread-start { margin: auto; text-align: center; max-width: 420px; }
.thread-report { padding: 10px 20px 14px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .inbox-back { display: inline-flex; }
  .inbox:not(.has-thread) .inbox-list { max-height: none; border-bottom: 0; }
  .inbox:not(.has-thread) .inbox-pane { display: none; }
  .thread-body { max-height: 60vh; }
  .composer { flex-wrap: wrap; }
  .composer .btn { flex: 1 1 100%; }
}

/* Star rating input (radios, row-reversed so hover fills to the left) */
.star-field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.star-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-rating label { font-size: 40px; line-height: 1; color: var(--line-2); cursor: pointer; padding: 2px; transition: color .15s; }
.star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label { color: var(--amber); }
.star-rating input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Become a DM */
.become-hero { min-height: 720px; }
.why-card { border-top: 1px solid var(--amber); padding-top: 20px; }
.why-num { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--amber); }
.become-band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; background: var(--bg); border: 1px solid var(--line-2); }
.tier.popular { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 24px 60px rgba(240,160,64,.12); }
.tier-flag { position: absolute; top: -13px; left: 24px; background: var(--amber); color: var(--amber-ink); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; }
.tier-price { margin: 0; font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1; }
.tier-price span { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted); }
.tier-keep { margin: 0; font-size: 20px; font-weight: 700; color: var(--ok); }
.tier-note { margin: 28px 0 0; font-size: 18px; color: var(--ink-2); }
.tier-note strong { color: var(--amber); }
.calc { display: flex; flex-direction: column; gap: 20px; border-color: var(--line-2); }
.calc-out { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.calc-out .stat { background: var(--bg); }
.calc-you strong { color: var(--amber); }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); counter-reset: none; }
.path li { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.path-num { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--amber); color: var(--amber); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.path-num { line-height: 1; }
.path li strong { font-size: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 600; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.65; max-width: 720px; }
.become-apply { background: var(--bg-2); border-top: 1px solid var(--line); scroll-margin-top: 0; }
.apply-account { border: 0; margin: 0; padding: 0; }
.apply-account legend { padding: 0; margin-bottom: 4px; }
.fee-table th[scope="row"] { font-weight: 600; }

/* DM application */
.app-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.app-steps li { flex: 1; padding-top: 10px; border-top: 3px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.app-steps li.done { border-top-color: var(--amber); color: var(--ink); }
.admin-note { margin: 0; padding: 14px 18px; border-left: 2px solid var(--amber); background: var(--panel); }

/* DM dashboard and tools */
.checklist .grow { flex: 1; min-width: 0; }
.checklist.onboarding li { flex-wrap: wrap; }
.checklist.onboarding form { margin: 0; }
.dash-head { align-items: center; }
.dash-alerts { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-alerts .notice { flex-wrap: wrap; }
.dash-new { margin-bottom: 24px; border-color: var(--amber); }
.kpis { margin-bottom: 24px; }
.kpis .stat strong { font-size: 34px; }
.dash-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dash-list li:last-child { border-bottom: 0; }
.dash-list .plus { color: var(--ok); white-space: nowrap; font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.earn-bars { display: flex; align-items: flex-end; gap: 10px; height: 220px; }
.earn-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.earn-amt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.earn-col { flex: 1; width: 100%; max-width: 56px; display: flex; align-items: flex-end; background: var(--bg-2); }
.earn-col span { display: block; width: 100%; background: var(--line-2); }
.earn-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.earn-bar.best .earn-col span { background: var(--amber); }
.earn-bar.best .earn-amt, .earn-bar.best .earn-label { color: var(--amber); }
.profile-media { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: start; }
.cover-preview { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); background: var(--bg-2); }
.price-fixed { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line-2); }
.roster { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.roster li { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.roster form { margin: 0; }
.earnings-table td { font-size: 14px; }
.reply-box summary { cursor: pointer; color: var(--amber); font-weight: 600; }
@media (max-width: 760px) {
  .auth-art { flex-basis: 100%; min-height: 180px; }
  .auth-art::after { background: linear-gradient(180deg, rgba(11,9,8,0) 40%, var(--bg) 100%); }
  .earn-bars { height: 180px; gap: 6px; }
  .earn-amt { font-size: 10px; }
  .dash-head .row { width: 100%; }
  .tier-price { font-size: 44px; }
}
.dm-shell .app-side { min-width: 0; }
.dm-shell .badge-count { margin-left: 8px; }
@media (max-width: 760px) {
  .dm-shell .kpis { grid-template-columns: 1fr 1fr; }
  .dm-shell .kpis .stat { padding: 16px; }
  .dm-shell .kpis .stat strong { font-size: 28px; }
}
