@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #0b1112;
  --panel: #11191a;
  --panel-raised: #172122;
  --text: #e9e9dc;
  --muted: #a0aba7;
  --subtle: #768780;
  --gold: #dfbb79;
  --gold-bright: #f1d39a;
  --cyan: #8ad1c6;
  --line: #2c3837;
  --danger: #f3a49a;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --display: Impact, "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .42; cursor: not-allowed; }
input:disabled { opacity: .65; }
button, input, textarea { border-radius: 2px; }
button { color: inherit; }
svg { display: block; }
::selection { color: #101616; background: var(--gold); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
h1, h2 { letter-spacing: -.035em; }
h3 { font-size: 20px; font-weight: 650; }
p { color: var(--muted); }
small { color: var(--muted); font-size: 12px; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; }
.eyebrow { font: 10px/1.5 var(--mono); letter-spacing: .18em; color: var(--gold); font-weight: 600; text-transform: uppercase; }
.button { min-height: 48px; display: inline-flex; gap: 13px; align-items: center; justify-content: center; padding: 13px 21px; border: 1px solid transparent; background: none; border-radius: 2px; font-size: 13px; font-weight: 650; line-height: 1.3; transition: background .18s, border-color .18s, transform .18s, color .18s; }
.button .icon { width: 18px; height: 18px; }
.button:not(:disabled):hover { transform: translateY(-1px); }
.button-gold { color: #17201b; background: var(--gold); border-color: var(--gold); }
.button-gold:not(:disabled):hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.button-cyan { color: #10221f; background: var(--cyan); border-color: var(--cyan); }
.button-cyan:not(:disabled):hover { background: #aae5dc; border-color: #aae5dc; }
.button-outline { color: var(--text); border-color: #47524b; }
.button-outline:not(:disabled):hover { border-color: var(--gold); background: #dfbb790b; }
.button-small { min-height: 39px; padding: 9px 13px; font-size: 12px; gap: 8px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.full-width { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-size: 13px; font-weight: 600; }
.text-link .icon { width: 17px; height: 17px; color: var(--gold); }
.text-link:hover { color: var(--gold); }
.text-button { padding: 9px 0; border: 0; color: var(--muted); background: none; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:not(:disabled):hover { color: var(--text); }
.danger-text { color: var(--danger); }
.icon-button { background: transparent; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; color: var(--muted); flex: 0 0 auto; }
.icon-button:hover { color: var(--gold); border-color: var(--gold); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: var(--gold); color: #17201b; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.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; }

/* A quiet masthead leaves the battlefield and editorial title room to breathe. */
.site-header { position: relative; z-index: 10; border-bottom: 1px solid #c2d8b412; background: #0d1415; }
.header-inner { min-height: 91px; display: flex; justify-content: space-between; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; color: var(--text); }
.brand-mark { height: 42px; width: 38px; color: var(--gold); }
.brand > span { font-weight: 750; font-size: 19px; letter-spacing: .075em; line-height: 1.1; }
.brand b { color: var(--gold); font-weight: inherit; }
.brand small { display: block; font: 8px/1.5 var(--mono); letter-spacing: .27em; color: var(--subtle); margin-top: 7px; }
.header-nav { display: flex; align-items: center; gap: 31px; font-size: 12px; color: #bac3b8; }
.header-nav > a:not(.button):hover, .header-nav > a[aria-current="page"] { color: var(--gold); }
.header-nav .button { margin-left: 10px; }
.signout-button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-left: 1px solid var(--line); padding: 8px 0 8px 23px; color: var(--muted); background: none; font-size: 12px; }
.signout-button:hover { color: var(--gold); }
.signout-button .icon { width: 17px; height: 17px; }
.global-feedback:has([hidden]) { display: none; }
.global-feedback { margin-top: 20px; }

/* Public landing. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 690px; background: radial-gradient(ellipse at 75% 40%, #25352b66 0, transparent 58%), linear-gradient(125deg, #101819, #0a1213 73%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#9bad8710 1px, transparent 1px), linear-gradient(90deg, #9bad8710 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, transparent, #0009); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; background: linear-gradient(90deg, #101819 0, #101819dd 20%, #10181900 63%), linear-gradient(0deg, #0b1112 0, transparent 25%); }
.hero-copy { position: relative; padding-top: 91px; padding-bottom: 113px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; margin-bottom: 26px; }
.signal-dot { height: 5px; width: 5px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 10px #8ad1c650; }
.hero h1 { font: 400 clamp(78px, 7.9vw, 120px)/.96 var(--display); letter-spacing: -.025em; max-width: 690px; }
.hero h1 span { color: var(--gold); }
.hero-intro { font-size: 21px; line-height: 1.55; color: #d5dbcd; margin-top: 28px; letter-spacing: -.025em; }
.hero-description { font-size: 13px; line-height: 1.85; max-width: 355px; margin-top: 15px; color: #9aa99f; }
.hero-actions { display: flex; gap: 28px; align-items: center; margin-top: 31px; }
.hero-actions .button { min-height: 51px; min-width: 169px; }
.hero-footnote { margin-top: 22px; font-size: 10px; color: #84938a; display: flex; align-items: center; gap: 7px; }
.hero-footnote .icon { width: 12px; height: 12px; }
.hero-art { position: absolute; z-index: -2; width: min(77vw, 1060px); right: -70px; top: -37px; bottom: -13px; display: flex; align-items: center; }
.battlefield-art { width: 100%; height: auto; overflow: visible; }
.hero-caption { position: absolute; bottom: 42px; right: 5%; width: 310px; display: flex; gap: 12px; align-items: center; font-family: var(--mono); }
.hero-caption .crosshair { color: var(--gold); font-size: 28px; font-weight: 300; line-height: 1; }
.hero-caption strong { display: block; color: #b1b9a3; font-size: 8px; letter-spacing: .13em; font-weight: 500; }
.hero-caption span:not(.crosshair, .caption-rule) { color: #718378; display: block; font-size: 8px; margin-top: 4px; }
.caption-rule { flex: 1; height: 1px; background: #77896850; margin-left: 4px; }
.ticker { background: #101718; border-top: 1px solid #74806d28; border-bottom: 1px solid #74806d28; }
.ticker .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; }
.ticker span { display: flex; gap: 11px; align-items: center; font: 10px/1.5 var(--mono); letter-spacing: .14em; color: #a7b19f; white-space: nowrap; }
.ticker .icon { height: 15px; width: 15px; color: var(--gold); }
.ticker b { font-weight: 400; color: #455749; font-size: 16px; }
.section { padding-block: 102px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-bottom: 42px; }
.section-heading .eyebrow { margin-bottom: 16px; }
.section-heading h2, .operation-copy h2, .access-copy h2 { font-size: clamp(34px, 3.6vw, 51px); line-height: 1.08; font-weight: 650; }
.section-heading h2 .muted { color: #78887b; }
.section-heading > p { font-size: 13px; line-height: 1.9; max-width: 330px; padding-bottom: 4px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.feature { padding: 33px 31px 27px; position: relative; background: linear-gradient(145deg, #1b24203b, transparent); }
.feature + .feature { border-left: 1px solid var(--line); }
.feature-number { position: absolute; top: 31px; right: 29px; color: #6c7c70; font: 10px var(--mono); }
.feature-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid #65735766; background: #27302542; color: var(--gold); margin-bottom: 30px; }
.feature-icon .icon { height: 23px; width: 23px; }
.feature h3 { font-size: 19px; letter-spacing: -.03em; margin-bottom: 14px; }
.feature p { font-size: 12px; line-height: 1.9; color: #96a197; }
.feature-tag { display: block; font: 8px var(--mono); letter-spacing: .13em; color: #a2ad96; margin-top: 31px; }
.operation-section { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); background: linear-gradient(115deg, #101d1d, #101817); min-height: 380px; }
.operation-graphic { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 330px; background-image: linear-gradient(#87b5a30a 1px, transparent 1px), linear-gradient(90deg, #87b5a30a 1px, transparent 1px); background-size: 24px 24px; }
.operation-graphic::before, .operation-graphic::after { content: ""; position: absolute; width: 75%; height: 1px; transform: rotate(-30deg); background: #aac39929; }
.operation-graphic::after { transform: rotate(30deg); }
.operation-graphic > .icon { width: 70px; height: 70px; color: var(--gold); stroke-width: .65; transform: rotate(-15deg); }
.radar-ring { position: absolute; border: 1px solid #7fa39830; border-radius: 50%; aspect-ratio: 1; }
.ring-one { width: 40%; }
.ring-two { width: 62%; border-style: dashed; }
.ring-three { width: 85%; opacity: .55; }
.radar-axis { position: absolute; inset: 0; background: radial-gradient(circle at center, #84c8ad0e, transparent 50%); }
.radar-axis::before, .radar-axis::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #8ca68c17; }
.radar-axis::after { transform: rotate(90deg); }
.radar-point { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 6px #8ad1c612; }
.point-one { top: 28%; left: 34%; }
.point-two { bottom: 25%; right: 27%; background: var(--gold); box-shadow: 0 0 0 6px #dfbb7912; }
.radar-label { position: absolute; left: 27px; bottom: 23px; font: 8px var(--mono); letter-spacing: .18em; color: #8da291; }
.operation-copy { padding: 49px 48px 47px 12px; align-self: center; }
.operation-copy h2 { margin-top: 17px; font-size: clamp(31px, 3vw, 43px); }
.operation-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.9; margin-top: 19px; max-width: 385px; }
.spec-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 20px 27px; }
.spec-tags span { padding: 6px 8px; border: 1px solid #405b514d; background: #a8c5a508; color: #a3b5a5; font: 9px/1.4 var(--mono); }
.access-section { display: grid; grid-template-columns: 1fr 1fr; gap: 11%; padding-block: 111px 113px; align-items: start; }
.access-copy h2 { margin-top: 18px; }
.access-copy > p:not(.eyebrow) { margin-top: 22px; font-size: 13px; max-width: 340px; line-height: 1.9; }
.access-steps { list-style: none; margin: 32px 0 0; padding: 0; }
.access-steps li { display: flex; gap: 18px; align-items: baseline; margin-top: 21px; }
.access-steps li > span { font: 10px var(--mono); color: var(--gold); }
.access-steps strong { font-size: 13px; color: #ced5c4; font-weight: 600; }
.access-steps p { font-size: 12px; margin-top: 4px; color: #8f9c91; }

/* Forms and actual state messages. */
.form-panel { padding: 32px; background: linear-gradient(145deg, #1b24217a, #11191a); border: 1px solid #3b493e; position: relative; }
.form-panel::before { content: ""; position: absolute; top: -1px; left: -1px; width: 44px; height: 2px; background: var(--gold); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.panel-heading > .icon { width: 21px; height: 21px; color: #7e937d; }
.panel-heading h2 { font-size: 24px; letter-spacing: -.025em; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 19px; min-width: 0; }
label { color: #d0d6c8; font-size: 12px; font-weight: 500; }
label span { font-weight: 400; color: #8e9c91; font-size: 11px; }
input, textarea { width: 100%; min-width: 0; border: 1px solid #3e4b41; color: var(--text); background: #0b1213; padding: 12px 13px; font-size: 13px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
input { min-height: 46px; }
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #77867c; opacity: 1; }
input:hover, textarea:hover { border-color: #71816c; }
input:focus, textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px #8ad1c618; }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 50px #122021 inset; caret-color: var(--text); }
.form-note { font-size: 10px; line-height: 1.8; color: #8f9d91; margin-top: 15px; }
.panel-footer { margin: 26px -32px -32px; padding: 19px 20px; border-top: 1px solid #3b493e; background: #0c141488; font-size: 11px; text-align: center; }
.panel-footer a { color: var(--gold); display: inline-flex; align-items: center; gap: 5px; margin-left: 5px; }
.panel-footer .icon { width: 12px; height: 12px; }
.notice { border: 1px solid #4b5c51; background: #1b2925; color: #c6d8c8; font-size: 12px; line-height: 1.75; padding: 13px 16px; margin-block: 14px 20px; overflow-wrap: anywhere; }
.notice-error { border-color: #8d524747; background: #44232344; color: #f4b8ad; }
.notice-success { border-color: #64988066; background: #24524129; color: #afe2c6; }
.loading { display: flex; gap: 11px; align-items: center; justify-content: center; padding: 44px 20px; font-size: 13px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid #7e9a802e; border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
.empty-state { padding: 51px 25px; border: 1px dashed #3a4c41; text-align: center; background: #14201c44; }
.empty-state > .icon, .empty-icon { color: #7b9580; margin: 0 auto 19px; }
.empty-state h3 { font-size: 18px; }
.empty-state p { font-size: 12px; max-width: 390px; margin: 12px auto 0; }
.empty-state .eyebrow { font-size: 8px; color: #90a083; display: block; margin-top: 29px; }
.empty-icon { display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid #70836b66; border-radius: 50%; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #5467594d; background: #587c5a13; font: 10px/1.25 var(--mono); color: #b0bca6; text-transform: capitalize; white-space: nowrap; }
.badge::before { content: ""; height: 4px; width: 4px; border-radius: 50%; background: currentColor; }
.badge.active, .badge.ready, .badge.approved, .badge.accepted, .badge.started { color: var(--cyan); border-color: #8ad1c633; background: #8ad1c608; }
.badge.pending, .badge.waiting { color: var(--gold); background: #dfbb7908; border-color: #dfbb7933; }
.badge.suspended, .badge.revoked, .badge.rejected { color: #e9a196; border-color: #e9a19633; background: #e9a19608; }
.badge.expired, .badge.ended { color: var(--muted); background: #859d7f08; }

/* Sign-in and invitation pages. */
.auth-page { min-height: calc(100svh - 200px); display: grid; grid-template-columns: 1fr 460px; align-items: center; gap: 9%; padding-block: 76px 88px; }
.auth-story h1 { font: 400 clamp(48px, 5vw, 74px)/1.05 var(--display); margin-top: 24px; letter-spacing: -.01em; }
.auth-story h1 span { color: var(--gold); }
.auth-story > p:not(.eyebrow) { max-width: 360px; font-size: 13px; margin-top: 22px; line-height: 1.9; }
.auth-story .text-link { font-size: 12px; margin-top: 35px; color: #a7b6a3; }
.auth-emblem { display: flex; align-items: center; gap: 22px; margin-block: 45px 0; padding-block: 25px; border-block: 1px solid #45524066; max-width: 310px; }
.auth-emblem .icon { height: 40px; width: 40px; color: #91a67e; stroke-width: .8; }
.auth-emblem span { font: 9px/2 var(--mono); color: #879c7c; letter-spacing: .19em; }
.auth-form-panel > p { font-size: 13px; line-height: 1.9; }
.auth-form-panel h2 + p, #invite-content h2 + p { margin-top: 15px; }
.auth-form-panel p + .button, #invite-content p + .button { margin-top: 24px; }
.password-field { position: relative; }
.password-field input { padding-right: 65px; }
.password-toggle { position: absolute; top: 1px; right: 1px; bottom: 1px; padding: 0 13px; border: 0; background: transparent; color: var(--gold); font-size: 11px; }
.password-toggle:hover { background: #dfbb790e; }
.help-details { margin-top: 24px; font-size: 12px; }
.help-details summary { color: #b7c2ac; cursor: pointer; padding: 5px 0; }
.help-details p { margin-top: 10px; font-size: 12px; }
.invited-email { padding: 15px 17px; margin-bottom: 24px; border-left: 2px solid var(--cyan); background: #8ad1c60a; overflow-wrap: anywhere; }
.invited-email strong { display: block; margin-block: 6px; font-size: 14px; font-weight: 500; }
.invited-email .eyebrow { color: var(--cyan); font-size: 8px; }
.invited-email small { font-size: 10px; }
.route-message { min-height: calc(100svh - 201px); padding-block: 90px; max-width: 850px; }
.route-message h1 { font-size: clamp(34px, 5vw, 60px); margin-block: 25px; }
.route-message p { max-width: 540px; }
.route-message .button { margin-top: 25px; }
.route-loading { min-height: calc(100svh - 201px); padding-top: 60px; }
.boot-screen, .noscript { padding: 80px 40px; text-align: center; }

/* Member command center. */
.workspace { min-height: calc(100svh - 190px); padding-block: 56px 80px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.page-heading h1 { font-size: clamp(30px, 3vw, 44px); margin-top: 16px; font-weight: 620; }
.page-heading h1 span { color: var(--gold); }
.page-heading p:not(.eyebrow) { font-size: 13px; margin-top: 15px; }
.identity-chip { border: 1px solid var(--line); display: flex; align-items: center; gap: 13px; padding: 13px 17px; max-width: 270px; }
.identity-chip > .icon { color: var(--gold); }
.identity-chip div { min-width: 0; }
.identity-chip strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.identity-chip small { display: block; font-size: 10px; margin-top: 3px; }
.member-overview { display: grid; grid-template-columns: 1.1fr 1fr; gap: 23px; margin-bottom: 52px; }
.solo-card { display: flex; gap: 22px; align-items: center; padding: 27px; border: 1px solid #5d6c4d; background: radial-gradient(ellipse at 90% 0, #a9b06816, transparent 75%), #17211d; transition: border-color .2s, background .2s; }
.solo-card:hover { border-color: var(--gold); background-color: #1d2b24; }
.solo-icon { width: 55px; height: 55px; flex-shrink: 0; border: 1px solid #6f826263; display: grid; place-items: center; color: var(--gold); }
.solo-icon .icon { height: 30px; width: 30px; stroke-width: 1; }
.solo-card h2 { font-size: 28px; margin-block: 8px 9px; }
.solo-card .eyebrow { font-size: 8px; }
.solo-card p:not(.eyebrow) { font-size: 11px; max-width: 245px; }
.solo-link { margin-left: auto; font-size: 11px; color: var(--gold); white-space: nowrap; display: flex; gap: 9px; align-items: center; }
.solo-link .icon { width: 17px; height: 17px; }
.member-note { display: flex; align-items: flex-start; gap: 19px; padding: 30px; background: #131d1b; border: 1px solid #314238; }
.member-note > .icon { color: #9cb894; margin-top: 3px; }
.member-note h3 { font-size: 19px; line-height: 1.4; color: #c1cdb9; }
.member-note p { font-size: 12px; margin-top: 11px; max-width: 330px; }
.section-heading.compact { margin-bottom: 25px; }
.compact h2 { font-size: 29px; }
.compact .eyebrow { font-size: 9px; margin-bottom: 12px; }
.lobby-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.lobby-main { min-width: 0; }
.room-tools { display: grid; grid-template-columns: 1fr 1.1fr; gap: 25px; padding: 26px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 23px; }
.room-tools h3 { font-size: 16px; }
.room-tools p { font-size: 11px; margin-block: 8px 17px; }
.room-tools form { border-left: 1px solid var(--line); padding-left: 25px; }
.room-tools .field { margin-block: 15px 0; gap: 6px; }
.room-tools label { font-size: 10px; }
.room-tools .button { font-size: 12px; min-height: 43px; padding: 11px 14px; }
.join-input { display: flex; gap: 9px; }
.join-input input { font-family: var(--mono); font-size: 12px; min-height: 43px; text-transform: uppercase; }
.join-input input::placeholder { text-transform: none; font-family: var(--body); }
.preset-card { border: 1px solid var(--line); background: var(--panel); }
.mini-map { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.preset-copy { padding: 23px; }
.preset-copy .eyebrow { font-size: 8px; }
.preset-copy h3 { margin-top: 11px; font-size: 22px; }
.preset-copy > p:not(.eyebrow) { margin-top: 7px; font-size: 11px; }
.preset-specs { margin: 20px 0 0; }
.preset-specs div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #32413688; padding-block: 10px; font-size: 10px; }
.preset-specs dt { color: var(--muted); }
.preset-specs dd { margin: 0; text-align: right; color: #d1d6c4; }
.preset-copy > .preset-note { border-top: 1px solid var(--line); padding-top: 15px; font-size: 10px; line-height: 1.8; color: #91a08f; }
.room-card { padding: 25px; border: 1px solid #455642; background: linear-gradient(135deg, #1b272044, #11191a); margin-bottom: 22px; }
.room-card-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.room-card-header .eyebrow { font-size: 8px; margin-bottom: 9px; }
.room-card-header h3 { font-size: 22px; }
.room-code-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-block: 21px; padding: 10px 12px; border: 1px solid #4d664a55; background: #c0d4a905; }
.room-code-line label { font-size: 11px; color: #a9b69f; }
.room-code-line > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.code-display { width: 154px; background: none; border-color: transparent; min-height: 36px; color: var(--gold); font: 16px var(--mono); letter-spacing: .07em; padding: 4px 6px; text-align: right; }
.room-code-line .icon-button { height: 32px; width: 32px; }
.room-code-line .icon { height: 15px; width: 15px; }
.player-list { display: grid; gap: 8px; }
.player-slot { display: flex; align-items: center; gap: 12px; padding: 14px; background: #080f0f88; border: 1px solid #3c4e3d77; min-width: 0; }
.player-avatar, .person-avatar { display: grid; place-items: center; color: var(--cyan); width: 38px; height: 38px; border: 1px solid #8ad1c633; background: #8ad1c608; font: 15px var(--mono); flex-shrink: 0; }
.player-avatar.gold { color: var(--gold); border-color: #dfbb7933; background: #dfbb7908; }
.player-slot > div { min-width: 0; }
.player-slot strong { display: block; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.player-slot small { display: block; font-size: 10px; margin-top: 5px; }
.player-slot .badge { margin-left: auto; font-size: 8px; }
.you-label { color: #9bac91; font: 8px var(--mono); letter-spacing: .08em; margin-left: 6px; white-space: nowrap; }
.player-slot.empty { border-style: dashed; color: #95a18b; background: transparent; }
.player-slot.empty .player-avatar { border-color: #53694a66; background: none; color: #798d6d; }
.room-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.room-actions .button { min-height: 41px; padding: 10px 13px; font-size: 12px; }
.room-actions p, .waiting-note { font-size: 11px; color: #a1b096; }
.room-actions .leave-button { margin-left: auto; }
.room-hint { margin-top: 13px; font-size: 11px; color: #9dad91; }

/* Administration, with table overflow kept inside each panel. */
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--panel); margin-bottom: 26px; }
.admin-stats > div { padding: 26px 29px; }
.admin-stats > div + div { border-left: 1px solid var(--line); }
.admin-stats span { display: block; color: #b3bf9f; font: 8px var(--mono); letter-spacing: .12em; }
.admin-stats strong { display: block; font-size: 38px; font-weight: 500; line-height: 1; margin-block: 18px 12px; color: var(--gold); font-variant-numeric: tabular-nums; }
.admin-stats small { font-size: 12px; }
.email-status { display: flex; gap: 15px; align-items: flex-start; margin-block: 20px 30px; padding: 17px 20px; border: 1px solid #dfbb7933; background: #dfbb7907; }
.email-status > .icon { color: var(--gold); width: 18px; height: 18px; margin-top: 2px; }
.email-status strong { color: #dac28e; font-size: 12px; font-weight: 500; }
.email-status p { font-size: 11px; margin-top: 3px; line-height: 1.8; }
.email-status.configured { border-color: #8ad1c622; background: #8ad1c604; align-items: center; }
.email-status.configured .icon { color: var(--cyan); }
.admin-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 30px; overflow-x: auto; padding: 3px 3px 0; scrollbar-width: thin; }
.admin-tabs > button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 17px; border: 0; border-bottom: 2px solid transparent; white-space: nowrap; color: #9daa99; background: none; font-size: 12px; }
.admin-tabs > button:hover { color: var(--text); background: #8ad1c605; }
.admin-tabs > button.active { color: var(--gold); border-bottom-color: var(--gold); background: #dfbb7906; }
.admin-tabs .icon { width: 16px; height: 16px; }
.admin-tabs #pending-count { font: 9px var(--mono); border: 1px solid #dfbb7922; padding: 3px 5px; min-width: 21px; }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.admin-section-heading h2 { font-size: 26px; }
.admin-section-heading p { font-size: 12px; margin-top: 10px; }
.recovery-note { border-left: 2px solid var(--cyan); background: #8ad1c607; padding: 17px 20px; margin-bottom: 24px; }
.recovery-note strong { color: #bfd9cb; font-size: 12px; font-weight: 550; }
.recovery-note p { font-size: 11px; line-height: 1.85; margin-top: 7px; max-width: 850px; }
.role-dialog { width: min(540px, calc(100% - 36px)); max-height: calc(100svh - 40px); overflow-y: auto; background: #16211d; border: 1px solid #8b947066; color: var(--text); padding: clamp(23px, 4vw, 34px); box-shadow: 0 24px 100px #0009; }
.role-dialog::backdrop { background: #020a0bce; backdrop-filter: blur(4px); }
.role-dialog h2 { font-size: clamp(24px, 4vw, 30px); margin-top: 15px; }
.role-dialog p:not(.eyebrow) { font-size: 13px; line-height: 1.85; margin-top: 18px; }
.role-dialog .role-dialog-person { color: var(--gold); overflow-wrap: anywhere; font-weight: 550; }
.role-dialog p.role-dialog-sessions { border-top: 1px solid var(--line); padding-top: 16px; font-size: 11px; }
.role-dialog .button-row { margin-top: 27px; }
.role-dialog .button { font-size: 12px; }
.request-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.request-card { border: 1px solid var(--line); background: var(--panel); padding: 24px; }
.request-person { display: flex; align-items: center; gap: 12px; }
.request-person > div { min-width: 0; }
.request-person h3 { font-size: 15px; overflow-wrap: anywhere; }
.request-person p { font-size: 11px; margin-top: 5px; overflow-wrap: anywhere; }
.request-person .badge { margin-left: auto; font-size: 8px; }
.request-message { border-left: 1px solid #6a7e5855; margin-block: 20px; padding-left: 14px; font-size: 12px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.request-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.request-bottom time { font-size: 10px; color: #9aaa8e; }
.request-bottom .button-row { gap: 8px; }
.request-bottom .button { font-size: 10px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); margin-top: 22px; scrollbar-color: #546a55 #11191a; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { font: 9px/1.5 var(--mono); letter-spacing: .06em; color: #b4c09f; background: #19231e; text-transform: uppercase; padding: 15px 18px; white-space: nowrap; }
td { padding: 19px 18px; border-top: 1px solid var(--line); background: var(--panel); vertical-align: middle; }
td > strong { display: block; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; max-width: 290px; }
td small { display: block; margin-top: 6px; font-size: 10px; overflow-wrap: anywhere; }
.table-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 210px; }
.table-actions .button { font-size: 10px; min-height: 33px; padding: 8px 11px; }
.table-actions .icon { width: 12px; height: 12px; }
.table-actions .text-button { font-size: 10px; }
.date-cell { font-size: 10px; color: #a5b295; min-width: 130px; }
.invite-create { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) auto; gap: 19px; align-items: end; padding: 23px; border: 1px solid var(--line); background: var(--panel); }
.invite-create .field { margin-bottom: 0; }
.invite-create > .button { min-height: 46px; font-size: 12px; }
.invite-result { padding: 24px; margin-block: 23px 30px; border: 1px solid #8ad1c666; background: #162623; }
.invite-result .panel-heading { margin-bottom: 14px; align-items: flex-start; }
.invite-result .eyebrow { color: var(--cyan); font-size: 8px; margin-bottom: 8px; }
.invite-result h2 { font-size: 20px; overflow-wrap: anywhere; }
.invite-result > p { font-size: 12px; margin-bottom: 16px; }
.invite-result label { display: block; font-size: 10px; margin-bottom: 8px; }
.copy-link-row { display: flex; gap: 9px; align-items: center; }
.copy-link-row input { font: 11px var(--mono); flex: 1 1 auto; }
.copy-link-row .button { font-size: 11px; min-height: 46px; flex-shrink: 0; }
.invite-result > .form-note { font-size: 10px; margin-bottom: 0; }
.audit-list { border: 1px solid var(--line); background: var(--panel); padding-inline: 24px; }
.audit-item { display: flex; align-items: center; gap: 18px; padding-block: 21px; }
.audit-item + .audit-item { border-top: 1px solid var(--line); }
.audit-marker { width: 7px; height: 7px; border: 1px solid var(--gold); background: #dfbb7922; transform: rotate(45deg); flex-shrink: 0; }
.audit-item > div { min-width: 0; }
.audit-item strong { font-size: 12px; text-transform: capitalize; font-weight: 550; overflow-wrap: anywhere; }
.audit-item p { font-size: 11px; margin-top: 5px; overflow-wrap: anywhere; }
.audit-item time { color: #a7b397; font-size: 10px; margin-left: auto; text-align: right; flex-shrink: 0; }

/* Activity tab (design/ACTIVITY-LOG.md §7) */
.last-seen.online { color: var(--cyan); }
.activity-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 30px; }
.activity-block > h3 { font: 10px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.activity-block .table-scroll { margin-top: 0; }
.activity-empty { border: 1px dashed #3a4c41; background: #14201c44; padding: 22px 20px; font-size: 12px; color: var(--muted); }
.activity-hint { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.activity-footer { margin-top: 20px; font-size: 10px; line-height: 1.8; color: var(--subtle); }
.live-rooms, .live-room-players, .battle-list, .timeline { margin: 0; padding: 0; }
.activity-block .badge { text-transform: none; }
.live-rooms { list-style: none; display: grid; gap: 12px; }
.live-room { border: 1px solid var(--line); background: var(--panel); padding: 16px 18px; min-width: 0; }
.live-room-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.live-room-head > div { min-width: 0; }
.live-room-head strong { display: block; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.live-room-head small, .live-room-turn { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.live-room-turn { color: #bfd9cb; }
.live-room-players { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.live-room-players li { display: inline-flex; flex-direction: column; gap: 2px; border: 1px solid #2c383799; background: #172122; padding: 6px 9px; font-size: 11px; max-width: 100%; }
.live-room-players li span { overflow-wrap: anywhere; }
.live-room-players li small { font-size: 9px; color: var(--muted); }
.live-room-players li[data-presence="connected"] small { color: var(--cyan); }
.live-room-players li[data-presence="frozen"] small, .live-room-players li[data-presence="holding"] small, .live-room-players li[data-presence="catching-up"] small { color: var(--gold); }
.battle-list { list-style: none; border: 1px solid var(--line); background: var(--panel); }
.battle-item + .battle-item { border-top: 1px solid var(--line); }
.battle-row { width: 100%; display: grid; grid-template-columns: minmax(130px, .9fr) minmax(0, 1fr) minmax(0, 1.4fr) auto 16px; align-items: center; gap: 16px; padding: 15px 18px; border: 0; background: none; color: var(--text); text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.battle-row:hover { background: #8ad1c605; }
.battle-row:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.battle-row > span { min-width: 0; }
.battle-row strong { display: block; font-weight: 550; overflow-wrap: anywhere; }
.battle-row small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.battle-start time { font-size: 11px; }
.battle-players { font-size: 11px; color: #c9d1c0; overflow-wrap: anywhere; }
.battle-outcome .badge { white-space: normal; text-align: left; }
.battle-chevron { width: 9px; height: 9px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); justify-self: end; transition: transform .15s; }
.battle-row[aria-expanded="true"] .battle-chevron { transform: rotate(-135deg); }
.battle-item.live .battle-start small { color: var(--cyan); }
.battle-timeline { padding: 4px 18px 18px; border-top: 1px dashed #2c3837; background: #0f1617; }
.battle-timeline .loading { padding: 14px 0; }
.timeline-meta { font-size: 10px; color: var(--muted); margin-top: 12px; }
.timeline-warn { color: var(--gold); }
.timeline { list-style: none; margin-top: 10px; }
.timeline li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 6px 0; font-size: 12px; line-height: 1.5; border-bottom: 1px solid #2c383755; }
.timeline li:last-child { border-bottom: 0; }
.timeline time { font: 11px/1.6 var(--mono); color: #a7b397; }
.timeline span { overflow-wrap: anywhere; }
.timeline li[data-type="detach"] span, .timeline li[data-type="frozen"] span, .timeline li[data-type="stall"] span { color: var(--gold-bright); }
.timeline li[data-type="desync"] span, .timeline li[data-type="worker_error"] span, .timeline li[data-type="attach_refused"] span { color: var(--danger); }

.site-footer { border-top: 1px solid var(--line); background: #0b1212; }
.footer-inner { display: flex; align-items: center; gap: 32px; min-height: 100px; }
.footer-brand .brand-mark { height: 30px; width: 27px; }
.footer-brand > span { font-size: 13px; }
.footer-inner p { font-size: 10px; color: #8d9d8a; }
.footer-meta { margin-left: auto; color: #819476; font: 8px var(--mono); letter-spacing: .14em; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1550px) {
  .hero-art { right: calc((100% - 1500px) / 2 - 70px); }
  .hero-caption { right: calc((100% - 1280px) / 2); }
}
@media (max-width: 1199px) {
  .wrap { width: calc(100% - 72px); }
  .hero { min-height: 655px; }
  .hero-copy { padding-top: 80px; padding-bottom: 92px; }
  .hero h1 { font-size: 92px; }
  .hero-art { right: -135px; width: 86vw; top: 0; }
  .hero::after { background: linear-gradient(90deg, #101819 0, #101819df 13%, #10181900 70%), linear-gradient(0deg, #0b1112 0, transparent 25%); }
  .hero-description { max-width: 320px; }
  .hero-caption { width: 240px; right: 3%; }
  .feature { padding: 29px 24px; }
  .feature h3 { font-size: 17px; }
  .auth-page { grid-template-columns: minmax(0, 1fr) 410px; gap: 6%; }
  .member-overview { grid-template-columns: 1fr 1fr; gap: 18px; }
  .solo-card { gap: 16px; flex-wrap: wrap; }
  .solo-link { margin-left: 71px; }
  .member-note { padding: 25px; }
  .lobby-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .room-tools { grid-template-columns: 1fr; }
  .room-tools form { border-left: 0; padding-left: 0; padding-top: 20px; border-top: 1px solid var(--line); }
  .create-room { position: relative; padding-right: 163px; min-height: 48px; }
  .create-room .button { position: absolute; top: 0; right: 0; }
  .create-room p { margin-bottom: 0; }
  .room-tools form { display: flex; gap: 20px; align-items: center; }
  .room-tools form h3 { font-size: 12px; max-width: 100px; }
  .room-tools .field { margin-top: 0; flex: 1; }
  .request-list { grid-template-columns: 1fr; }
  .invite-create { grid-template-columns: 1fr 1fr; }
  .invite-create .button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 899px) {
  .wrap { width: calc(100% - 48px); }
  .header-nav { gap: 20px; }
  .hero-copy { padding-top: 62px; padding-bottom: 280px; }
  .hero h1 { font-size: clamp(77px, 11vw, 95px); }
  .hero-art { width: 730px; right: -160px; top: 180px; bottom: -50px; align-items: flex-end; }
  .hero::after { background: linear-gradient(90deg, #101819dd 0, #10181955 55%, transparent 80%), linear-gradient(0deg, #0b1112 0, transparent 25%); }
  .hero-description { max-width: 320px; }
  .hero-caption { bottom: 29px; }
  .ticker .wrap { display: grid; grid-template-columns: 1fr 1fr; padding-block: 20px; gap: 19px; }
  .ticker b { display: none; }
  .ticker span { font-size: 9px; }
  .section { padding-block: 70px; }
  .section-heading { align-items: flex-start; gap: 26px; }
  .section-heading > p { font-size: 12px; max-width: 225px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .feature { padding: 27px 27px 27px 94px; }
  .feature-icon { position: absolute; left: 26px; top: 29px; }
  .feature-number { top: 28px; right: 24px; }
  .feature h3 { font-size: 20px; padding-right: 25px; }
  .feature p { max-width: 530px; font-size: 13px; }
  .feature-tag { margin-top: 20px; }
  .operation-section { grid-template-columns: .8fr 1fr; }
  .operation-copy { padding-right: 26px; }
  .operation-copy h2 { font-size: 32px; }
  .access-section { gap: 7%; }
  .access-copy h2 { font-size: 37px; }
  .form-panel { padding: 25px; }
  .panel-footer { margin: 24px -25px -25px; }
  .auth-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6%; }
  .auth-story h1 { font-size: 48px; }
  .page-heading { align-items: flex-start; }
  .identity-chip { display: none; }
  .member-overview { grid-template-columns: 1fr; }
  .solo-card { flex-wrap: nowrap; padding: 25px; }
  .solo-link { margin-left: auto; }
  .member-note h3 br { display: none; }
  .member-note p { max-width: none; }
  .lobby-grid { grid-template-columns: 1fr; }
  .preset-card { display: grid; grid-template-columns: .7fr 1fr; }
  .preset-card .mini-map { align-self: center; border: 0; }
  .preset-specs div { padding-block: 8px; }
  .preset-copy { border-left: 1px solid var(--line); }
  .admin-stats > div { padding: 23px; }
  .admin-tabs > button { padding-inline: 12px; font-size: 11px; }
  .activity-grid { grid-template-columns: minmax(0, 1fr); }
  .copy-link-row { flex-wrap: wrap; }
  .copy-link-row input { flex-basis: 100%; }
  .footer-inner { gap: 22px; }
  .footer-meta { max-width: 90px; text-align: right; line-height: 1.9; }
}
@media (max-width: 599px) {
  html { scroll-padding-top: 25px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 78px; gap: 12px; flex-wrap: wrap; padding-block: 15px; }
  .brand { gap: 9px; }
  .brand-mark { height: 34px; width: 30px; }
  .brand > span { font-size: 15px; }
  .brand small { font-size: 6px; letter-spacing: .23em; margin-top: 5px; }
  .desktop-link { display: none; }
  .header-nav { gap: 6px 16px; font-size: 11px; flex-wrap: wrap; justify-content: flex-end; }
  .header-nav .button { margin-left: 0; padding: 9px 11px; min-height: 37px; font-size: 10px; }
  .header-nav .button .icon { width: 13px; height: 13px; }
  .signout-button { padding-left: 14px; font-size: 11px; }
  .signout-button span { display: none; }
  .header-inner:has(.signout-button) { row-gap: 17px; }
  .header-inner:has(.signout-button) .header-nav { margin-left: auto; }
  .hero-copy { padding-top: 47px; padding-bottom: 337px; }
  .hero-copy > .eyebrow { font-size: 8px; letter-spacing: .13em; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(59px, 14.9vw, 86px); line-height: 1.01; letter-spacing: -.015em; }
  .hero-intro { font-size: 19px; margin-top: 22px; }
  .hero-description { font-size: 12px; max-width: 330px; margin-top: 14px; }
  .hero-actions { margin-top: 26px; gap: 20px; flex-wrap: wrap; }
  .hero-actions .button { min-width: 147px; min-height: 47px; font-size: 12px; }
  .hero-actions .text-link { font-size: 11px; gap: 7px; }
  .hero-footnote { font-size: 9px; margin-top: 18px; }
  .hero-art { width: 560px; max-width: none; right: calc((100% - 560px) / 2 - 30px); top: auto; bottom: 12px; height: 390px; }
  .hero::after { background: linear-gradient(0deg, #0b1112 0, transparent 14%, transparent 52%, #101819ee 62%, #101819 100%); }
  .hero-caption { bottom: 24px; right: 22px; width: 245px; }
  .hero-caption strong { font-size: 7px; }
  .hero-caption span:not(.crosshair, .caption-rule) { font-size: 7px; }
  .ticker .wrap { gap: 17px 9px; }
  .ticker span { font-size: 7px; letter-spacing: .08em; gap: 7px; }
  .ticker .icon { height: 13px; width: 13px; }
  .section { padding-block: 57px; }
  .section-heading { flex-direction: column; gap: 20px; margin-bottom: 28px; }
  .section-heading h2 { font-size: 36px; }
  .section-heading > p { max-width: 310px; font-size: 12px; }
  .feature { padding: 25px 22px; }
  .feature-icon { position: static; margin-bottom: 25px; width: 38px; height: 38px; }
  .feature h3 { font-size: 21px; }
  .feature p { font-size: 12px; }
  .feature-tag { font-size: 8px; }
  .operation-section { grid-template-columns: 1fr; }
  .operation-graphic { min-height: 230px; max-height: 230px; }
  .ring-one { width: 120px; }
  .ring-two { width: 200px; }
  .ring-three { width: 285px; }
  .radar-label { left: 21px; bottom: 17px; font-size: 7px; }
  .operation-copy { padding: 24px 23px 33px; }
  .operation-copy h2 { font-size: 33px; }
  .operation-copy > p:not(.eyebrow) { font-size: 12px; }
  .spec-tags { gap: 6px; }
  .spec-tags span { font-size: 8px; }
  .access-section { grid-template-columns: 1fr; gap: 38px; }
  .access-copy h2 { font-size: 42px; }
  .access-copy > p:not(.eyebrow) { font-size: 13px; }
  .access-steps { margin-top: 24px; }
  .form-panel { padding: 25px 23px; }
  .panel-footer { margin-inline: -23px; }
  input, textarea { font-size: 16px; }
  .form-note { font-size: 10px; }
  .auth-page { grid-template-columns: 1fr; gap: 35px; padding-block: 38px 56px; }
  .auth-story h1 { font-size: 51px; margin-top: 17px; }
  .auth-story > p:not(.eyebrow) { margin-top: 18px; }
  .auth-emblem { display: none; }
  .auth-story .text-link { margin-top: 22px; }
  .auth-form-panel { width: 100%; }
  .workspace { padding-block: 35px 52px; }
  .page-heading { margin-bottom: 26px; gap: 15px; }
  .page-heading .eyebrow { font-size: 8px; }
  .page-heading h1 { font-size: 32px; margin-top: 15px; }
  .page-heading p:not(.eyebrow) { font-size: 12px; line-height: 1.7; }
  .member-overview { margin-bottom: 40px; }
  .solo-card { padding: 24px 20px; flex-wrap: wrap; gap: 17px; }
  .solo-card > div:not(.solo-icon) { max-width: calc(100% - 65px); }
  .solo-icon { width: 46px; height: 46px; }
  .solo-card h2 { font-size: 27px; }
  .solo-link { margin-left: 63px; }
  .member-note { padding: 22px 20px; gap: 13px; }
  .member-note h3 { font-size: 17px; }
  .member-note p { font-size: 11px; }
  .section-heading.compact { gap: 19px; }
  .compact h2 { font-size: 28px; }
  .room-tools { padding: 21px 18px; gap: 21px; }
  .create-room { padding-right: 0; }
  .create-room .button { position: static; margin-top: 16px; }
  .room-tools form { display: block; }
  .room-tools form h3 { font-size: 16px; max-width: none; }
  .room-tools .field { margin-top: 13px; }
  .join-input { gap: 7px; }
  .join-input input { font-size: 16px; }
  .room-card { padding: 20px 16px; }
  .room-code-line { flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px; }
  .room-code-line > div { width: 100%; justify-content: space-between; }
  .code-display { text-align: left; font-size: 17px; width: 180px; }
  .player-slot { padding: 12px 10px; gap: 9px; }
  .player-avatar { width: 32px; height: 36px; font-size: 13px; }
  .player-slot strong { font-size: 11px; }
  .player-slot small { font-size: 9px; }
  .player-slot .badge { font-size: 7px; padding: 5px; }
  .player-slot .you-label { display: block; margin: 4px 0 0; }
  .room-actions { gap: 9px; }
  .room-actions .button { font-size: 11px; padding: 10px 12px; }
  .room-actions .leave-button { margin-left: 0; padding-inline: 6px; }
  .waiting-note { width: 100%; order: 3; margin-top: 4px; }
  .preset-card { grid-template-columns: 1fr; }
  .preset-card .mini-map { max-height: 190px; width: 100%; object-fit: cover; background: #14201f; border-bottom: 1px solid var(--line); }
  .preset-copy { border-left: 0; }
  .preset-specs div { font-size: 11px; }
  .admin-workspace .page-heading { flex-wrap: wrap; }
  .admin-workspace .page-heading h1 { font-size: 39px; }
  .admin-workspace .page-heading > .button { font-size: 10px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats > div { padding: 17px 12px; }
  .admin-stats > div:nth-child(3) { border-left: 0; }
  .admin-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .admin-stats span { font-size: 6px; line-height: 1.8; letter-spacing: .08em; }
  .admin-stats strong { font-size: 30px; margin-block: 14px 10px; }
  .admin-stats small { font-size: 9px; display: block; }
  .email-status { padding: 15px; gap: 11px; }
  .email-status p { font-size: 10px; }
  .email-status strong { font-size: 11px; }
  .admin-tabs { margin-inline: -5px; gap: 0; }
  .admin-tabs > button { padding: 13px 11px; }
  .admin-tabs .icon { display: none; }
  .admin-section-heading h2 { font-size: 24px; }
  .request-card { padding: 21px 18px; }
  .request-person { gap: 10px; flex-wrap: wrap; }
  .request-person > div { flex: 1; }
  .person-avatar { width: 33px; height: 36px; font-size: 12px; }
  .request-person h3 { font-size: 14px; }
  .request-person p { font-size: 10px; }
  .request-person .badge { margin-left: 43px; }
  .request-bottom { gap: 14px; }
  .invite-create { grid-template-columns: 1fr; padding: 20px 18px; }
  .invite-create > .button { width: 100%; }
  .invite-result { padding: 20px 17px; }
  .invite-result h2 { font-size: 18px; }
  .copy-link-row input { font-size: 16px; }
  .copy-link-row .button { font-size: 10px; padding-inline: 12px; }
  .activity-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .battle-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 15px; }
  .battle-row .battle-start { grid-column: 1; grid-row: 1; }
  .battle-row .battle-chevron { grid-column: 2; grid-row: 1; }
  .battle-row .battle-map, .battle-row .battle-players, .battle-row .battle-outcome { grid-column: 1 / -1; }
  .battle-timeline { padding-inline: 15px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .live-room { padding: 14px 15px; }
  .audit-list { padding-inline: 18px; }
  .audit-item { flex-wrap: wrap; gap: 10px; }
  .audit-item > div { flex: 1; }
  .audit-item time { margin-left: 17px; width: 100%; text-align: left; font-size: 9px; }
  .footer-inner { padding-block: 26px; min-height: 113px; flex-wrap: wrap; gap: 19px; }
  .footer-brand > span { font-size: 12px; }
  .footer-brand .brand-mark { height: 27px; width: 24px; }
  .footer-inner p { font-size: 9px; width: 100%; order: 3; margin-top: -5px; }
  .footer-meta { font-size: 7px; max-width: none; margin-left: auto; }
  .route-message { padding-block: 55px; }
  .route-message h1 { font-size: 39px; }
}
@media (max-width: 359px) {
  .wrap { width: calc(100% - 30px); }
  .brand > span { font-size: 13px; }
  .header-nav .button { padding-inline: 8px; font-size: 9px; }
  .header-nav .button .icon { display: none; }
  .hero h1 { font-size: 56px; }
  .hero-actions { gap: 17px; }
  .hero-actions .button { min-width: 132px; padding-inline: 13px; }
  .hero-actions .text-link { font-size: 10px; }
  .hero-actions .text-link .icon { display: none; }
  .admin-stats > div { padding-inline: 9px; }
  .request-bottom .button { padding-inline: 9px; }
}
/* ---- Rooms v2 (design/ONLINE-V2.md §7): host settings grid, slot pickers, open rooms list. */
.room-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.room-meta .badge { text-transform: none; }
.badge.mode { color: var(--gold); border-color: #dfbb7933; }
.badge.speed { color: var(--cyan); border-color: #8ad1c633; }
.badge.muted { color: var(--muted); }
.room-subheading { font: 600 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.room-settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 16px; padding: 16px; border: 1px solid var(--line); background: #080f0f88; }
.room-settings.readonly .room-field strong { font-size: 12px; font-weight: 550; color: var(--text); overflow-wrap: anywhere; }
.room-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.room-field > label, .room-field > span { font: 600 9px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.room-field select, .room-field input[type="number"], .slot-controls select, .slot-tail select { width: 100%; min-height: 36px; padding: 6px 9px; color: var(--text); background: var(--panel-raised); border: 1px solid var(--line); font-size: 12px; }
.room-field select:focus-visible, .room-field input:focus-visible, .slot-controls select:focus-visible, .slot-tail select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.room-random { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px 16px; padding: 12px; border: 1px dashed var(--line); }
.room-seed { display: flex; gap: 6px; align-items: stretch; }
.room-seed input { flex: 1; min-width: 0; }
.room-seed .icon-button { flex: none; }
.room-toggles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 4px; }
.room-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); cursor: pointer; }
.room-toggle input { accent-color: var(--gold); width: 15px; height: 15px; margin: 0; }
.room-listed { display: flex; margin: -6px 0 14px; font-size: 11px; color: var(--muted); }
.player-slot { flex-wrap: wrap; }
.player-slot .player-avatar { background: color-mix(in srgb, var(--slot-color, #3c4e3d) 35%, #0b1112); border-color: var(--slot-color, #3c4e3d77); color: var(--text); }
.player-slot.own .player-avatar { box-shadow: 0 0 0 2px var(--gold); }
.player-slot.computer .player-avatar { color: var(--gold-bright); }
.player-slot.closed { opacity: .6; }
.player-slot.open { border-style: dashed; color: #95a18b; background: transparent; }
.player-slot.open .player-avatar { border-color: #53694a66; background: none; color: #798d6d; }
.player-slot.movable { cursor: pointer; }
.player-slot.movable:hover, .player-slot.movable:focus-within { border-color: var(--cyan); color: var(--text); }
.room-tip { display: block; margin-top: 2px; font-size: 10px; line-height: 1.5; color: var(--muted); }
.slot-main { flex: 1 1 150px; min-width: 0; }
.slot-controls { display: flex; gap: 6px; flex: 2 1 280px; min-width: 0; }
.slot-controls select { flex: 1; min-width: 0; min-height: 32px; font-size: 11px; }
.slot-summary { font-size: 11px; color: var(--muted); }
.slot-tail { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.slot-tail select { min-height: 32px; font-size: 11px; width: auto; }
.slot-tail .text-button { font-size: 11px; }
.room-chip { display: inline-block; padding: 2px 6px; border: 1px solid #dfbb7933; font: 600 8px/1.4 var(--mono); letter-spacing: .1em; color: var(--gold); }
.room-open-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.room-open-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); background: #080f0f88; }
.room-open-row > div { flex: 1; min-width: 0; }
.room-open-row strong { display: block; font-size: 12px; font-weight: 550; }
.room-open-row small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.room-open-row .button { flex: none; min-height: 34px; padding: 6px 12px; font-size: 11px; }
/* ---- Lobby chat (design/ONLINE-V2.md §6.5, §7): last 100 lines, names in gold, system lines muted, 240-character countdown. */
.room-chat { border: 1px solid var(--line); background: #080f0f88; }
.room-chat-list { list-style: none; margin: 0; padding: 10px 12px; max-height: 220px; min-height: 64px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.45; scrollbar-width: thin; }
.room-chat-line { overflow-wrap: anywhere; }
.room-chat-line b { color: var(--gold); font-weight: 600; margin-right: 6px; }
.room-chat-line.own b { color: var(--gold-bright, var(--gold)); }
.room-chat-line.system { color: var(--muted); font-style: italic; }
.room-chat-form { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.room-chat-form input { flex: 1; min-width: 0; min-height: 36px; padding: 6px 9px; color: var(--text); background: var(--panel-raised); border: 1px solid var(--line); font-size: 12px; }
.room-chat-form input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.room-chat-count { flex: none; min-width: 3ch; text-align: right; font: 600 10px/1 var(--mono); color: var(--muted); }
.room-chat-count.low { color: var(--gold); }
.room-chat-form .button { flex: none; min-height: 34px; padding: 6px 12px; font-size: 11px; }
@media (max-width: 900px) {
  .lobby-grid { grid-template-columns: minmax(0, 1fr); }
  .slot-controls { flex-basis: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .button:not(:disabled):hover { transform: none; }
}
/* Touch screens (tablets): Safari zooms the page into any text field drawn under
   16 px. The portal has no script to mark touch devices before it paints, so this
   uses (any-pointer: coarse) — true for a tablet even with a keyboard trackpad,
   false on a Mac. html[data-touch-device] covers a page that does set the mark. */
@media (any-pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { font-size: 16px !important; }
}
html[data-touch-device] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-touch-device] textarea, html[data-touch-device] select { font-size: 16px !important; }

/* ---- 1.12.0 public-launch pages: footer links, Privacy/Terms, consent ticks, Account, Contact & report,
   lobby Mute/Report, admin Reports and account deletion. Touch targets reach 44 px on touch screens below. */
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 11px; }
.footer-links a { color: #a7b6a3; text-decoration: underline; text-decoration-color: #dfbb7955; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--gold); }
.legal-page { padding-block: 56px 90px; max-width: 860px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-bottom: 16px; margin-bottom: 34px; border-bottom: 1px solid var(--line); font: 600 10px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.legal-nav a { color: var(--muted); padding-block: 6px; }
.legal-nav a[aria-current="page"], .legal-nav a:hover { color: var(--gold); }
.legal-doc { color: #c3cbbf; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.legal-doc h1 { font: 400 clamp(40px, 5vw, 62px)/1.05 var(--display); letter-spacing: -.01em; color: var(--text); }
.legal-doc h2 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; color: var(--text); margin: 42px 0 12px; scroll-margin-top: 24px; }
.legal-doc p, .legal-doc li { color: #c3cbbf; }
.legal-doc p + p { margin-top: 14px; }
.legal-doc .legal-updated { margin-top: 16px; color: var(--muted); font-size: 13px; }
.legal-doc strong { color: var(--text); font-weight: 650; }
.legal-doc ul, .legal-doc ol { margin: 12px 0 0; padding-left: 22px; }
.legal-doc li + li { margin-top: 8px; }
.legal-doc li > ul { margin-top: 8px; }
.legal-doc ul + p, .legal-doc ol + p, .legal-doc .legal-table + p { margin-top: 16px; }
.legal-doc a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc code { font: 13px var(--mono); color: var(--cyan); }
.legal-table { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); }
.legal-table table { font-size: 13px; }
.legal-table th, .legal-table td { padding: 12px 14px; vertical-align: top; white-space: normal; }
.legal-table tbody th { width: 38%; background: var(--panel); border-top: 1px solid var(--line); font: 600 13px/1.6 var(--body); letter-spacing: 0; text-transform: none; color: var(--text); }
.legal-doc .legal-copyright { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.consent-boxes { border: 0; padding: 0; margin: 2px 0 18px; display: grid; gap: 10px; min-width: 0; }
.consent-box { display: flex; align-items: flex-start; gap: 11px; font-size: 12px; line-height: 1.6; color: #d0d6c8; cursor: pointer; }
.consent-box input, .contact-topic input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--gold); }
.consent-box > span, .contact-topic > span { font-size: inherit; font-weight: inherit; color: inherit; min-width: 0; }
.consent-box a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.consent-gate { max-width: 720px; }
.consent-gate .page-heading { margin-bottom: 26px; }
.consent-gate .form-panel > p { font-size: 13px; line-height: 1.85; }
.consent-gate .consent-boxes { margin-top: 22px; }
.consent-gate .form-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.button-danger { color: #2a1110; background: var(--danger); border-color: var(--danger); }
.button-danger:not(:disabled):hover { background: #f8bdb4; border-color: #f8bdb4; }
.account-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 23px; align-items: start; }
.contact-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.account-panel { border: 1px solid var(--line); background: var(--panel); padding: 28px; min-width: 0; }
.account-panel h2 { font-size: 22px; letter-spacing: -.02em; }
.account-facts { margin: 18px 0 0; }
.account-facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding-block: 12px; border-top: 1px solid var(--line); }
.account-facts dt { font: 600 9px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.account-facts dd { margin: 0; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.account-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; }
.account-links a, .contact-aside a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.danger-panel { border-color: #8d524766; background: linear-gradient(145deg, #2a171544, var(--panel)); }
.danger-panel h2 { color: var(--danger); }
.danger-panel > p { font-size: 13px; line-height: 1.85; margin-top: 14px; }
.danger-panel form { margin-top: 22px; }
.danger-panel .consent-boxes { margin-bottom: 14px; }
.field select { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--text); background: #0b1213; border: 1px solid #3e4b41; border-radius: 2px; font-size: 13px; }
.field select:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px #8ad1c618; }
#contact-name[readonly] { color: var(--muted); background: #101819; }
.field-count { align-self: flex-end; font: 600 10px/1 var(--mono); color: var(--muted); }
.contact-topics { border: 0; padding: 0; margin: 0 0 19px; display: grid; gap: 8px; min-width: 0; }
.contact-topics legend { color: #d0d6c8; font-size: 12px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.contact-topic { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid var(--line); background: #0b1213; font-size: 13px; color: var(--text); cursor: pointer; }
.contact-topic input { margin: 0; }
.contact-topic:has(input:checked) { border-color: var(--gold); background: #dfbb790b; }
.contact-aside { display: grid; gap: 18px; min-width: 0; }
.contact-note { border-left: 2px solid var(--cyan); background: #8ad1c607; padding: 17px 20px; font-size: 12px; line-height: 1.8; }
.copyright-block { border: 1px solid var(--line); background: var(--panel); padding: 20px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.copyright-block h3 { font-size: 15px; margin-bottom: 8px; }
.copyright-block ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.copyright-block li + li { margin-top: 6px; }
.copyright-block p + p, .copyright-block ol + p { margin-top: 12px; }
.copyright-block strong { color: var(--text); }
.role-dialog h2 { overflow-wrap: anywhere; }
.role-dialog .field { margin: 18px 0 0; }
.role-dialog textarea { min-height: 84px; }
.role-dialog .consent-boxes { margin-top: 18px; margin-bottom: 0; }
.role-dialog .notice a, .notice a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.recent-player { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px dashed var(--line); font-size: 12px; }
.recent-player > strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 550; color: var(--text); }
.slot-tail .text-button.muted-on, .recent-player .text-button.muted-on { color: var(--gold); }
.room-chat-line .you-label { margin: 0 6px 0 -2px; color: var(--gold); }
.admin-tabs #reports-count, .admin-tabs #game-issues-count { font: 9px var(--mono); border: 1px solid #dfbb7922; padding: 3px 5px; min-width: 21px; }
.game-issues-pointer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; font-size: 12px; }
.game-issues-pointer p { margin: 0; flex: 1 1 260px; }
.report-list { display: grid; gap: 16px; }
.report-card { border: 1px solid var(--line); background: var(--panel); padding: 22px 24px; min-width: 0; }
.report-card.closed { opacity: .85; }
.report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.report-head > div { min-width: 0; }
.report-head h3 { font-size: 15px; overflow-wrap: anywhere; }
.report-head time { display: block; font-size: 10px; color: #9aaa8e; margin-top: 4px; }
.report-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.report-badges .badge { text-transform: none; }
.report-facts { margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; }
.report-facts div { min-width: 0; }
.report-facts dt { font: 600 9px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.report-facts dd { margin: 3px 0 0; font-size: 12px; color: var(--text); overflow-wrap: anywhere; }
.report-facts dd small { display: block; margin-top: 2px; }
.report-message { border-left: 1px solid #6a7e5855; margin-top: 16px; padding-left: 14px; font-size: 12px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.evidence { margin-top: 16px; }
.evidence h4 { font: 600 9px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.evidence-lines { list-style: none; margin: 0; padding: 10px 12px; border: 1px solid var(--line); background: #080f0f88; max-height: 240px; overflow-y: auto; display: grid; gap: 4px; font-size: 12px; line-height: 1.45; }
.evidence-lines li { overflow-wrap: anywhere; }
.evidence-lines time { font: 10px var(--mono); color: var(--subtle); margin-right: 8px; }
.evidence-lines b { color: var(--gold); font-weight: 600; margin-right: 6px; }
.report-resolve { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.report-resolve .field { flex: 1 1 240px; margin: 0; }
.report-resolve input { min-height: 40px; }
.report-closed-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }
.report-owner-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.report-delete { color: var(--danger); border-color: #8d524799; }
.report-delete:not(:disabled):hover { border-color: var(--danger); background: #f3a49a12; }
.link-button { padding: 0; border: 0; background: none; color: var(--gold); font-size: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
tr.member-highlight td { background: #dfbb7914; }
@media (max-width: 899px) {
  .account-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .legal-page { padding-block: 36px 60px; }
  .legal-doc { font-size: 14px; }
  .legal-doc h2 { font-size: 19px; margin-top: 34px; }
  .legal-table th, .legal-table td { padding: 10px; }
  .footer-links { margin-left: 0; width: 100%; order: 4; }
  .account-panel { padding: 22px 18px; }
  .account-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .report-card { padding: 18px 16px; }
  .recent-player { flex-wrap: wrap; }
}
/* Touch screens: every control added for 1.12.0 is at least 44 px tall (and wide) on touch. */
@media (any-pointer: coarse) {
  .slot-tail .text-button, .recent-player .text-button, .table-actions .text-button, .link-button, .footer-links a, .legal-nav a, .account-links a, .contact-aside a, .header-nav > a:not(.button), .signout-button, .notice a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
  .slot-tail .text-button, .recent-player .text-button { padding-inline: 8px; justify-content: center; }
  .consent-box, .contact-topic { min-height: 44px; align-items: center; }
  .consent-box input, .contact-topic input { width: 22px; height: 22px; margin: 0; }
  .report-resolve .button, .table-actions .button, .role-dialog .button, .account-panel .button, .report-resolve input, .report-owner-actions .button { min-height: 44px; }
}
html[data-touch-device] .slot-tail .text-button, html[data-touch-device] .recent-player .text-button, html[data-touch-device] .table-actions .text-button,
html[data-touch-device] .link-button, html[data-touch-device] .footer-links a, html[data-touch-device] .legal-nav a, html[data-touch-device] .account-links a,
html[data-touch-device] .contact-aside a, html[data-touch-device] .header-nav > a:not(.button), html[data-touch-device] .signout-button, html[data-touch-device] .notice a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
html[data-touch-device] .slot-tail .text-button, html[data-touch-device] .recent-player .text-button { padding-inline: 8px; justify-content: center; }
html[data-touch-device] .consent-box, html[data-touch-device] .contact-topic { min-height: 44px; align-items: center; }
html[data-touch-device] .consent-box input, html[data-touch-device] .contact-topic input { width: 22px; height: 22px; margin: 0; }
html[data-touch-device] .report-resolve .button, html[data-touch-device] .table-actions .button, html[data-touch-device] .role-dialog .button,
html[data-touch-device] .account-panel .button, html[data-touch-device] .report-resolve input, html[data-touch-device] .report-owner-actions .button { min-height: 44px; }

/* ---- 1.14.0 friends, private messages and room invitations (SOCIAL-SPEC-v2 §5). Friends sit beside multiplayer
   (340 px side column above 1199 px, 300 px from 900 px) and below it in one column at 899 px and less. Every new
   control is at least 44 px tall, 48 px on touch screens (any-pointer: coarse or html[data-touch-device]); hover
   styles only where a mouse hovers; private messages wear a cyan edge on a darker panel so they never look like
   room chat. */
:root { --ok: #8fd18a; --away: #e6c27a; --pm-panel: #0c1819; }
.play-choices { display: flex; align-items: flex-start; gap: 19px; padding: 30px; background: #131d1b; border: 1px solid #314238; min-width: 0; }
.play-choices > .icon { color: #9cb894; margin-top: 3px; }
.play-choices-body { min-width: 0; flex: 1; }
.play-choices h3 { font-size: 19px; line-height: 1.4; color: #c1cdb9; }
.play-choice-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.play-choice-buttons .button { min-height: 48px; }
.play-choices-note { font-size: 12px; margin-top: 12px; }
.play-summary { font-size: 12px; margin-top: 6px; color: var(--cyan); min-height: 1.6em; }
.lobby-side { display: grid; gap: 22px; align-content: start; min-width: 0; }
.friends-panel { border: 1px solid var(--line); background: var(--panel); padding: 20px; min-width: 0; scroll-margin-top: 24px; }
.friends-panel:focus { outline: none; }
.friends-head .eyebrow { font-size: 8px; }
.friends-head h3 { margin-top: 8px; font-size: 20px; }
.friends-feedback { margin: 12px 0 0; }
.friends-off { margin-top: 12px; font-size: 12px; }
.friends-tabs { display: flex; margin-top: 16px; border-bottom: 1px solid var(--line); }
.friends-tab { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 10px 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 650; }
.friends-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--gold); }
.friends-tab-count { color: var(--cyan); font-weight: 500; }
.friends-pane { padding-top: 16px; display: grid; gap: 18px; min-width: 0; }
.friends-pane > div:empty { display: none; }
.friend-name { unicode-bidi: isolate; overflow-wrap: anywhere; }
.friend-small, .friend-invite, .friend-add-send, .invite-seat, .pm-back, .pm-earlier { min-height: 44px; padding: 8px 12px; font-size: 12px; gap: 7px; }
.friend-small .icon, .friend-add-send .icon, .invite-seat .icon, .pm-send .icon { width: 15px; height: 15px; }
.button-danger-outline { color: var(--danger); border-color: #8d524799; background: none; }
.friend-small:active, .friend-invite:active, .friend-add-send:active, .invite-seat:active, .pm-back:active, .pm-earlier:active, .pm-send:active, .friends-tab:active, .friend-row:active, .pm-thread:active, .play-choice-buttons .button:active, .friend-undo:active { transform: translateY(1px); filter: brightness(1.18); }
.friend-row:active, .pm-thread:active { background-color: #ffffff0a; }
@media (hover: hover) {
  .button-danger-outline:not(:disabled):hover { border-color: var(--danger); background: #f3a49a12; }
  .friends-tab:hover { color: var(--text); }
  .friend-row:hover, .pm-thread:hover { background-color: #ffffff07; }
  .friend-blocked summary:hover, .invite-more summary:hover, .owner-reports > summary:hover { color: var(--text); }
}
.friend-subheading { font: 600 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.friend-subheading + ul + .friend-subheading { margin-top: 14px; }
.friend-code-card { border: 1px solid #3c4e3d77; background: #080f0f88; padding: 14px; min-width: 0; }
.friend-code-card .eyebrow { font-size: 8px; }
.friend-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.friend-code { font: 600 20px/1.2 var(--mono); letter-spacing: .08em; color: var(--gold-bright); -webkit-user-select: all; user-select: all; }
.friend-code-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.friend-code-help { font-size: 11px; margin-top: 8px; }
.friend-code-card .friend-confirm-text { margin-top: 10px; }
.friend-code-card .friend-confirm { margin-top: 8px; }
.friend-add label { font-size: 12px; }
.friend-add-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.friend-add-row input { flex: 1 1 150px; min-width: 0; min-height: 44px; padding: 9px 11px; font-size: 16px; }
.friend-add-send { flex: none; }
.friend-request-list, .friend-list, .friend-blocked-list, .pm-threads, .invite-sent-list, .owner-report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.friend-request { border: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 8px; min-width: 0; }
.friend-request-text, .friend-confirm-text { font-size: 12px; color: var(--text); overflow-wrap: anywhere; }
.friend-request-actions, .friend-confirm, .friend-action-row, .invite-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; border: 1px solid #3c4e3d77; background: #080f0f88; min-width: 0; }
.friend-item.open { border-color: #8ad1c688; }
.friend-row { flex: 1 1 150px; min-width: 0; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: none; border: 0; border-radius: 0; text-align: left; color: var(--text); }
.friend-main { display: flex; flex-direction: column; min-width: 0; }
.friend-row .friend-name, .pm-thread-top .friend-name, .pm-name .friend-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4; max-height: 1.4em; font-size: 13px; font-weight: 600; }
.friend-side { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 10px 6px 12px; margin-left: auto; }
.friend-row + .friend-side { padding-top: 6px; }
.friend-dot { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; background: currentColor; }
.friend-dot.status-available { color: var(--ok); }
.friend-dot.status-room { color: var(--gold); }
.friend-dot.status-battle { color: var(--danger); width: 9px; height: 9px; border-radius: 1px; transform: rotate(45deg); }
.friend-dot.status-away { background: transparent; border: 2px solid var(--away); }
.friend-dot.status-offline { background: transparent; border: 2px solid var(--subtle); }
.friend-status { font-size: 11px; color: var(--muted); }
.friend-status.status-available { color: var(--ok); }
.friend-status.status-room { color: var(--gold); }
.friend-status.status-battle { color: var(--danger); }
.friend-status.status-away { color: var(--away); }
.friend-unread { font-size: 11px; color: var(--cyan); }
.friend-quiet { font-size: 11px; color: var(--cyan); }
.invite-chip { font: 600 10px/1.3 var(--mono); color: var(--cyan); border: 1px solid #8ad1c633; padding: 7px 8px; white-space: nowrap; }
.invite-chip.done { color: var(--muted); border-color: var(--line); }
.friend-actions { flex-basis: 100%; min-width: 0; padding: 10px 12px 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.friend-hint { font-size: 11px; overflow-wrap: anywhere; }
.friend-empty { font-size: 12px; padding: 12px; border: 1px dashed var(--line); overflow-wrap: anywhere; }
.friend-blocked summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 12px; color: var(--muted); }
.friend-blocked-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text); min-width: 0; }
.friend-blocked-list .friend-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-height: 1.6em; }
.friend-undo { min-height: 44px; padding: 0 6px; font-size: 12px; color: var(--gold); }
/* Messages tab: conversation rows and the conversation itself (cyan edge, darker panel, lock icon). */
.pm-thread { width: 100%; min-height: 56px; display: grid; gap: 3px; padding: 10px 12px; text-align: left; background: var(--pm-panel); border: 1px solid #8ad1c622; border-left: 3px solid var(--cyan); border-radius: 0; color: var(--text); min-width: 0; }
.pm-thread-top, .pm-thread-sub { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pm-thread-top .friend-name { flex: 1; min-width: 0; }
.pm-thread-time { font-size: 10px; color: var(--muted); flex: none; }
.pm-unread { font: 700 10px/1 var(--mono); color: #10221f; background: var(--cyan); padding: 4px 7px; border-radius: 9px; }
.pm-thread-preview { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-height: 1.6em; min-width: 0; }
.pm-view { display: grid; gap: 10px; border-left: 3px solid var(--cyan); background: var(--pm-panel); padding: 12px; min-width: 0; }
.pm-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: start; min-width: 0; }
.pm-title { min-width: 0; }
.pm-eyebrow { color: var(--cyan); display: flex; gap: 6px; align-items: center; }
.pm-eyebrow .icon { width: 12px; height: 12px; }
.pm-name { font-size: 16px; margin: 4px 0 0; }
.pm-name .friend-name { color: var(--cyan); font-size: 15px; }
.pm-head .friend-status { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.pm-privacy { grid-column: 1 / -1; font-size: 11px; }
.pm-muted { font-size: 12px; border: 1px dashed #e6c27a55; padding: 10px; display: grid; gap: 8px; }
.pm-muted p { color: var(--text); }
.pm-earlier { justify-self: center; }
.pm-log { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 8px; height: min(420px, 52svh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #8ad1c622; background: #081213; scrollbar-width: thin; }
.pm-line { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 6px; min-width: 0; flex: none; }
.pm-line.from-me { justify-content: flex-end; }
.pm-bubble { max-width: calc(100% - 52px); min-width: 0; padding: 8px 10px; border: 1px solid #8ad1c633; background: #102223; }
.pm-line.from-me .pm-bubble { max-width: 92%; background: #152a26; border-color: #8ad1c655; }
.pm-text { margin: 0; color: var(--text); font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; max-height: 30em; overflow-x: hidden; overflow-y: auto; }
.pm-meta { margin: 4px 0 0; font-size: 10px; color: var(--muted); }
.pm-reported { color: var(--gold); }
.pm-more { width: 44px; height: 44px; flex: none; }
.pm-options { flex-basis: 100%; display: grid; gap: 8px; padding: 2px 0 2px 8px; min-width: 0; }
.pm-divider { flex: none; text-align: center; font: 600 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); border-top: 1px solid #8ad1c655; padding-top: 4px; }
.pm-hidden-note, .pm-loading { flex: none; font-size: 12px; color: var(--muted); }
.pm-hidden-note .text-button { min-height: 44px; font-size: 12px; }
.pm-foot { display: grid; gap: 8px; }
.pm-foot:empty { display: none; }
.pm-closed { font-size: 12px; color: var(--gold); }
.pm-clear { min-height: 44px; justify-self: start; }
.pm-composer { display: grid; gap: 6px; }
.pm-compose-row { display: flex; gap: 8px; align-items: flex-end; }
.pm-compose-row textarea { flex: 1; min-width: 0; min-height: 48px; height: 48px; resize: none; font-size: 16px; line-height: 1.45; padding: 11px 12px; overflow-y: auto; }
.pm-send { min-height: 48px; flex: none; padding: 10px 14px; gap: 8px; font-size: 12px; }
.pm-count { font: 600 10px/1 var(--mono); color: var(--gold); }
.pm-count:empty { display: none; }
.pm-error { font-size: 12px; color: #f4b8ad; margin: 0; overflow-wrap: anywhere; }
/* Invitations: guest cards (cyan accent), the grey "something changed" card, the host's sent list. */
.invitations { display: grid; gap: 14px; margin-bottom: 23px; min-width: 0; }
.invite-card { border: 1px solid #8ad1c655; border-left: 3px solid var(--cyan); background: linear-gradient(135deg, #102223, #11191a); padding: 18px 20px; display: grid; gap: 8px; min-width: 0; }
.invite-card .eyebrow { color: var(--cyan); display: flex; align-items: center; gap: 8px; }
.invite-card .eyebrow .icon { width: 14px; height: 14px; }
.invite-title { font-size: 17px; overflow-wrap: anywhere; }
.invite-details { font-size: 12px; }
.invite-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.invite-expires { font: 600 11px/1.3 var(--mono); color: var(--gold); }
.invite-card.is-dead { border-color: var(--line); border-left-color: var(--subtle); background: #121819; }
.invite-card.is-dead .eyebrow, .invite-card.is-dead .invite-title { color: var(--muted); }
.invite-dead, .invite-question { font-size: 13px; color: var(--text); }
.invite-more { display: grid; gap: 14px; }
.invite-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--cyan); font-size: 12px; }
.invite-sent { border: 1px solid var(--line); background: var(--panel); padding: 14px 16px; display: grid; gap: 8px; font-size: 12px; min-width: 0; }
.invite-sent-title { color: var(--text); font-weight: 600; font-size: 12px; }
.invite-sent-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--text); min-width: 0; }
.invite-note { font-size: 11px; }
.invite-seat { font-size: 11px; }
.slot-confirm { flex-basis: 100%; min-width: 0; display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.slot-confirm p { font-size: 12px; color: var(--text); overflow-wrap: anywhere; }
.recent-player { flex-wrap: wrap; }
/* The owner's reported private messages (his member page only; never /admin). */
.owner-reports { border: 1px solid #dfbb7944; background: var(--panel); padding: 0 16px; margin-top: 4px; min-width: 0; }
.owner-reports > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; color: var(--gold); font-size: 13px; font-weight: 600; }
.owner-reports-body { padding-bottom: 14px; }
.owner-report { border: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; min-width: 0; }
.owner-report.handled { opacity: .8; }
.owner-report-meta { font-size: 11px; overflow-wrap: anywhere; }
.owner-report-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-size: 13px; max-height: 30em; overflow: auto; unicode-bidi: plaintext; }
.owner-report .button { justify-self: start; }
/* Header count on "Command center". */
.header-nav a[data-command-center] { display: inline-flex; align-items: center; }
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--cyan); color: #10221f; font: 700 10px/1 var(--mono); }
@media (max-width: 1199px) {
  .play-choices { padding: 25px; }
}
@media (max-width: 599px) {
  .play-choices { padding: 22px 20px; gap: 13px; }
  .play-choices h3 { font-size: 17px; }
  .friends-panel { padding: 16px; }
  .invite-card { padding: 16px; }
  .friend-code-actions { margin-left: 0; }
}
@media (any-pointer: coarse) {
  .friend-small, .friend-invite, .friend-add-send, .friend-add-row input, .invite-seat, .pm-back, .pm-earlier, .pm-clear, .pm-hidden-note .text-button, .friend-blocked summary, .invite-more summary, .friend-undo, .friends-tab, .pm-send, .play-choice-buttons .button { min-height: 48px; }
  .pm-more { width: 48px; height: 48px; }
  .friend-row { min-height: 56px; }
}
html[data-touch-device] .friend-small, html[data-touch-device] .friend-invite, html[data-touch-device] .friend-add-send, html[data-touch-device] .friend-add-row input,
html[data-touch-device] .invite-seat, html[data-touch-device] .pm-back, html[data-touch-device] .pm-earlier, html[data-touch-device] .pm-clear,
html[data-touch-device] .pm-hidden-note .text-button, html[data-touch-device] .friend-blocked summary, html[data-touch-device] .invite-more summary,
html[data-touch-device] .friend-undo, html[data-touch-device] .friends-tab, html[data-touch-device] .pm-send, html[data-touch-device] .play-choice-buttons .button { min-height: 48px; }
html[data-touch-device] .pm-more { width: 48px; height: 48px; }
html[data-touch-device] .friend-row { min-height: 56px; }
.friend-row:focus-visible, .pm-thread:focus-visible, .friends-tab:focus-visible { outline-offset: -3px; }
.friends-pane button:focus-visible, .invitations button:focus-visible, .pm-view button:focus-visible { outline-offset: 2px; }

/* ---- 1.15.0 Find match card, the Match-found top bar and the after-match cards (SOCIAL-SPEC-v2 §5.7). The card
   replaces the choice card's body in place; it turns cyan while a match waits for an answer. The top bar is the only
   fixed element on the member page and shows only while a match is found and the card is off screen. Every control is
   44 px tall at least, 48 px on touch screens (the Find match card's buttons and picker are 48 px everywhere). */
.match-card { flex: 1; min-width: 0; display: grid; gap: 10px; }
.match-part { display: grid; gap: 10px; min-width: 0; }
.match-part:empty { display: none; }
.match-eyebrow { display: flex; align-items: center; gap: 8px; }
.match-eyebrow .icon { width: 14px; height: 14px; }
.play-choices.is-found { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.play-choices.is-found .match-eyebrow { color: var(--cyan); }
.match-intro { font-size: 14px; color: var(--text); }
.match-rules { font-size: 12px; }
.match-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 4px; }
.match-field { display: grid; gap: 6px; flex: 1 1 200px; min-width: 0; }
.match-field label { font-size: 12px; }
.match-select { width: 100%; min-height: 48px; padding: 8px 11px; font-size: 16px; color: var(--text); background: #0b1213; border: 1px solid #3e4b41; border-radius: 2px; }
.match-select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.match-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.match-btn { min-height: 48px; padding: 10px 18px; gap: 8px; }
.match-btn .icon { width: 16px; height: 16px; }
.match-status { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.match-status .friend-name { unicode-bidi: isolate; color: var(--gold-bright); font-weight: 600; }
.match-note, .match-keep { font-size: 12px; overflow-wrap: anywhere; }
.match-keep { color: var(--muted); }
.match-feedback { font-size: 12px; color: var(--cyan); overflow-wrap: anywhere; }
.match-feedback:empty, .after-feedback:empty { display: none; }
.match-feedback[data-tone="error"], .after-feedback[data-tone="error"] { color: #f4b8ad; }
.match-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 8px 16px; background: #0c1819f5; border-bottom: 2px solid var(--cyan); box-shadow: 0 6px 20px #0008; }
.match-topbar-text { color: var(--text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.match-badge { display: inline-block; padding: 4px 7px; border: 1px solid var(--cyan); color: var(--cyan); font: 600 9px/1.3 var(--mono); letter-spacing: .12em; vertical-align: middle; }
.room-card.is-match { border-left: 3px solid var(--cyan); }
.after-matches { display: grid; gap: 14px; margin-bottom: 23px; min-width: 0; }
.after-part { display: grid; gap: 14px; min-width: 0; }
.after-part:empty { display: none; }
.after-card { border: 1px solid #dfbb7955; border-left: 3px solid var(--gold); background: var(--panel); padding: 16px 20px; display: grid; gap: 10px; min-width: 0; }
.after-card .eyebrow { display: flex; align-items: center; gap: 8px; }
.after-card .eyebrow .icon { width: 14px; height: 14px; }
.after-title { font-size: 17px; overflow-wrap: anywhere; }
.after-ago { font-size: 12px; font-weight: 400; color: var(--muted); }
.after-players { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.after-player { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text); min-width: 0; }
.after-player .friend-name { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-height: 1.6em; font-weight: 600; }
.after-rel { font: 600 10px/1.3 var(--mono); color: var(--cyan); border: 1px solid #8ad1c633; padding: 7px 8px; white-space: nowrap; }
.after-state { font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.after-state .friend-name { unicode-bidi: isolate; font-weight: 600; }
.after-hint { font-size: 11px; color: var(--muted); }
.after-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.after-feedback { font-size: 12px; color: var(--cyan); overflow-wrap: anywhere; }
.match-btn:active, .after-actions .button:active, .after-player .button:active { transform: translateY(1px); filter: brightness(1.18); }
@media (max-width: 599px) {
  .match-form { flex-direction: column; align-items: stretch; }
  .match-actions .match-btn { flex: 1 1 auto; }
  .after-card { padding: 16px; }
}
.match-card button:focus-visible, .match-card a:focus-visible, .after-matches button:focus-visible, .after-matches a:focus-visible, .match-topbar button:focus-visible { outline-offset: 2px; }

.share-controls { margin-top: 20px; }
.share-controls label { display: block; }
.share-controls input { display: block; width: 100%; margin: 8px 0 12px; min-height: 44px; }
.share-controls svg { max-width: 100%; height: auto; margin-top: 16px; }
.invite-friend-panel { padding: 24px; margin: 20px 0; border: 1px solid var(--border, #35575d); }
.offline-friends summary, .friend-code-details summary, .room-code-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.room-readiness { padding: 12px; border-left: 3px solid #78bfb4; line-height: 1.5; }

.auth-compact .auth-emblem { display: none; }
.auth-compact h1 { font-size: clamp(36px, 5vw, 70px); }
@media (max-width: 700px) { .auth-compact { padding-top: 20px; gap: 24px; } .auth-compact .auth-story > .text-link { display: none; } .auth-compact .auth-story h1 { margin-bottom: 14px; } }

.offline-friends > summary::before, .friend-code-details > summary::before, .room-code-details > summary::before { content: '▸'; display: inline-block; margin-right: 10px; }
.offline-friends[open] > summary::before, .friend-code-details[open] > summary::before, .room-code-details[open] > summary::before { transform: rotate(90deg); }

.admin-runtime { margin: 20px 0; padding: 16px; border: 1px solid #35575d; }
.admin-runtime summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.runtime-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; margin: 20px 0; }
.runtime-grid dt { color: #9aafb7; font-size: 12px; }
.runtime-grid dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }

/* Member discovery: text names, separate actions, comfortable touch targets. */
.friend-search { margin: 20px 0; }
.friend-search-form label { display: block; font-weight: 600; margin-bottom: 10px; }
.friend-search-controls { display: flex; gap: 10px; }
.friend-search-controls input { flex: 1; min-width: 0; min-height: 48px; }
.friend-search .button { min-height: 48px; flex-shrink: 0; }
.friend-search-results { list-style: none; padding: 0; margin: 12px 0; }
.friend-search-results li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--line, #30444a); }
.friend-search-results li + li { border-top: 0; }
.friend-search-results li > div { min-width: 0; overflow-wrap: anywhere; }
.friend-search-results strong, .friend-search-results small { display: block; }
.friend-search-results small { opacity: .7; margin-top: 5px; }
@media (max-width: 480px) {
  .friend-search-controls { flex-wrap: wrap; }
  .friend-search-controls input { flex-basis: 100%; }
  .friend-search-results li { align-items: flex-start; flex-direction: column; }
}

/* Persistent room controls and public overhead battle plan. */
.room-card .room-actions { position:sticky; top:0; z-index:5; background:#102832; padding:14px; border-top:1px solid #42606a; box-shadow:0 -5px 18px #06121999; }
.room-ready-count { font-weight:700; color:#cce9e5; }
.battle-map-preview canvas { display:block; width:100%; height:auto; max-height:240px; object-fit:contain; }
.map-enlarge { display:block; width:100%; padding:0; color:#d9ebdf; background:#102832; border:1px solid #597469; cursor:zoom-in; }
.map-enlarge span { display:block; padding:12px; min-height:44px; box-sizing:border-box; }
.map-preview-dialog { width:min(90vw,800px); max-height:90vh; padding:16px; background:#102832; color:white; border:1px solid #72918c; }
.map-preview-dialog::backdrop { background:#001018cc; }
.map-preview-dialog canvas { display:block; width:100%; max-height:75vh; object-fit:contain; margin-top:12px; }
.map-preview-dialog button { min-height:44px; }
.room-closed-reason { color:#f2d598; font-weight:700; }

.notification-choice { min-height: 44px; margin-top: 18px; }
#notification-form p { margin: 12px 0; }
#notification-form { margin-bottom: 24px; }
