@font-face { font-family: Pretendard; src: url('/assets/fonts/pretendard-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

/*
  Linear-style dark system (Refero "midnight precision instrument"), adapted for the Godfather.
  Depth comes from surface steps and hairlines, not shadows. Acid lime marks one primary action per view.
  Weights stop at 590. Pretendard (Inter-derived) carries Korean and Latin.
*/
:root {
  --void: #08090a;      /* canvas */
  --carbon: #0f1011;    /* bars, containers */
  --obsidian: #161718;  /* raised rows, inputs on hover */
  --graphite: #23252a;  /* hairlines */
  --smoke: #383b3f;     /* stronger hairlines */
  --ash: #62666d;       /* inactive */
  --fog: #8a8f98;       /* tertiary text */
  --mist: #d0d6e0;      /* secondary text */
  --paper: #f7f8f8;     /* primary text */
  --accent: #ffad3b;    /* primary action: amber */
  --hot: #ff4f58;       /* crimson end of the brand gradient */
  --grad: linear-gradient(100deg, #ff4f58 0%, #ff8a3d 55%, #ffb547 100%);
  --green: #27a644;
  --red: #eb5757;
  --violet: #6366f1;
  --amber: #f2c94c;
  --wash: rgba(255, 255, 255, .03);
  --wash-2: rgba(255, 255, 255, .05);
  --line-input: rgba(255, 255, 255, .08);
  --r-ctl: 6px;
  --r-box: 12px;
  --max: 1200px;
  --side: 232px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--void); }
body { margin: 0; min-height: 100vh; background: var(--void); color: var(--mist); font: 400 15px/1.6 Pretendard, Inter, "Noto Sans JP", "Hiragino Sans", "Noto Sans Thai", "Leelawadee UI", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; font-feature-settings: "cv01", "ss03"; }
a { color: var(--paper); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--smoke); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--paper); font-weight: 600; }
h1 { font-size: 34px; line-height: 1.12; letter-spacing: -.024em; font-weight: 700; }
h2 { font-size: 15px; line-height: 1.4; }
h3 { font-size: 15px; line-height: 1.4; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--mist); outline-offset: 2px; }
::selection { background: rgba(255, 138, 61, .3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 12px; border-radius: var(--r-ctl); background: var(--paper); color: var(--void); }
.skip-link:focus { top: 12px; }
.muted { color: var(--fog); }
.dim { color: var(--ash); }
.error { color: var(--red); font-size: 13px; }
.error:empty { display: none; }
.ok-text { color: var(--green); font-size: 13px; }
.ok-text:empty { display: none; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--fog); }
.noscript { padding: 24px; text-align: center; }
/* Server-rendered text of a public page (seo.ts), read by crawlers and readers without JavaScript; the app replaces it. */
.pre { max-width: 760px; margin: 0 auto; padding: 32px 24px 72px; }
.pre-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.pre-head img { width: 150px; height: auto; }
.pre-head nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.pre h1 { margin-bottom: 16px; font-size: 32px; }
.pre h2 { margin: 36px 0 10px; font-size: 18px; }
.pre ul, .pre ol { margin: 0; padding-left: 22px; }
.pre li + li { margin-top: 6px; }
.pre section p { margin-top: 12px; }
.pre a { text-decoration: underline; text-decoration-color: var(--smoke); text-underline-offset: 3px; }
.pre-legal { margin-top: 48px; color: var(--ash); font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
#app { display: flex; flex-direction: column; min-height: 100vh; }
#app > .page { flex: 1 0 auto; width: 100%; }

/* ---------- controls ---------- */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--graphite); border-radius: var(--r-ctl); background: transparent; color: var(--mist); font: inherit; font-size: 13px; font-weight: 510; white-space: nowrap; cursor: pointer; text-decoration: none; }
button:hover:not(:disabled), .button:hover { background: var(--wash-2); border-color: var(--smoke); color: var(--paper); text-decoration: none; }
button.primary, .button.primary { border-color: transparent; background: var(--grad); color: #170b05; font-weight: 600; }
button.primary:hover:not(:disabled), .button.primary:hover { background: var(--grad); filter: brightness(1.08); border-color: transparent; color: #170b05; }
button.quiet, .button.quiet { border-color: transparent; color: var(--fog); }
button.quiet:hover:not(:disabled) { color: var(--paper); }
button.danger { color: var(--red); }
button.danger:hover:not(:disabled) { border-color: var(--red); background: rgba(235, 87, 87, .08); color: var(--red); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.block, .button.block { width: 100%; }
button.large, .button.large { min-height: 40px; padding: 0 16px; font-size: 14px; }
input, select, textarea { width: 100%; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line-input); border-radius: var(--r-ctl); background: rgba(255, 255, 255, .02); color: var(--paper); font: inherit; font-size: 14px; letter-spacing: -.01em; }
textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--ash); }
input:hover, textarea:hover, select:hover { border-color: var(--graphite); background: rgba(255, 255, 255, .03); }
input:focus, select:focus, textarea:focus { border-color: var(--mist); outline: none; }
input[aria-invalid="true"] { border-color: var(--red); }
label { display: block; margin-bottom: 6px; color: var(--mist); font-size: 13px; font-weight: 510; }
.field { margin-bottom: 16px; }
.field-row { display: flex; gap: 8px; }

/* custom dropdown (select.js): the native <select> stays hidden as the value holder */
.sel { position: relative; width: 100%; }
.sel-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.sel-btn { width: 100%; min-height: 36px; justify-content: space-between; gap: 10px; padding: 0 10px 0 12px; border-color: var(--line-input); background: rgba(255, 255, 255, .02); color: var(--paper); font-size: 14px; font-weight: 400; letter-spacing: -.01em; text-align: left; }
.sel-btn:hover:not(:disabled) { border-color: var(--graphite); background: rgba(255, 255, 255, .04); }
.sel-btn:focus-visible, .sel.open .sel-btn { border-color: var(--mist); outline: none; }
.sel-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-value.sel-placeholder { color: var(--ash); }
.sel-chev { flex: none; color: var(--fog); transition: transform .15s ease; }
.sel.open .sel-chev { transform: rotate(180deg); }
.sel-list { position: fixed; z-index: 1000; max-width: min(420px, calc(100vw - 16px)); margin: 0; padding: 4px; overflow: auto; list-style: none; border: 1px solid var(--smoke); border-radius: 10px; background: #141518; box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4); animation: sel-in .12s ease-out; }
.sel-list.up { animation-name: sel-in-up; }
@keyframes sel-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes sel-in-up { from { opacity: 0; transform: translateY(4px); } }
.sel-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; padding: 6px 10px; border-radius: 6px; color: var(--mist); font-size: 14px; cursor: pointer; user-select: none; }
.sel-opt.active { background: rgba(255, 255, 255, .07); color: var(--paper); }
.sel-opt[aria-selected="true"] { color: var(--paper); font-weight: 560; }
.sel-check { flex: none; color: var(--accent); visibility: hidden; }
.sel-opt[aria-selected="true"] .sel-check { visibility: visible; }
.sel-opt[aria-disabled="true"] { color: var(--ash); cursor: not-allowed; }
.picker.sel, .sel.picker { width: auto; min-width: 220px; }
.lang-switch .sel { width: auto; }
.lang-switch .sel-btn { min-height: 0; height: 30px; padding: 0 2px 0 4px; border: 0; background: transparent; font-size: 13px; font-weight: 600; }
.lang-switch .sel-btn:hover:not(:disabled) { background: transparent; }
@media (prefers-reduced-motion: reduce) { .sel-list, .sel-chev { animation: none; transition: none; } }
.check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--fog); font-weight: 400; cursor: pointer; }
.check input { width: 14px; min-height: 14px; accent-color: var(--accent); }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--wash-2); color: var(--fog); font-size: 12px; font-weight: 510; white-space: nowrap; vertical-align: 1px; }
.badge-pending { background: rgba(242, 201, 76, .12); color: var(--amber); }
.badge-approved { background: rgba(39, 166, 68, .14); color: #4cc46a; }
.badge-rejected { background: rgba(235, 87, 87, .12); color: var(--red); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ash); }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(39, 166, 68, .18); }
.dot.off { background: var(--red); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--graphite); background: rgba(8, 9, 10, .86); backdrop-filter: saturate(140%) blur(12px); }
.topbar-inner { display: flex; align-items: center; gap: 24px; max-width: var(--max); height: 56px; margin: 0 auto; padding: 0 24px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--paper); font-size: 15px; font-weight: 590; letter-spacing: -.012em; }
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 22px; height: 22px; }
.topnav { display: flex; gap: 2px; }
.topnav a { padding: 6px 10px; border-radius: var(--r-ctl); color: var(--fog); font-size: 13px; }
.topnav a:hover { color: var(--paper); background: var(--wash); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--paper); background: var(--wash-2); }
.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.server-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 9999px; background: var(--wash); color: var(--fog); font-size: 12px; }
.server-pill strong { color: var(--mist); font-weight: 510; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 4px; border-radius: var(--r-ctl); color: var(--mist); font-size: 13px; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { background: var(--wash-2); }
.account-menu-panel { position: absolute; right: 0; top: 38px; min-width: 200px; padding: 4px; border: 1px solid var(--graphite); border-radius: 8px; background: var(--obsidian); box-shadow: rgba(8, 9, 10, .6) 0 4px 32px; }
.account-menu-panel a, .account-menu-panel button { display: flex; width: 100%; min-height: 32px; padding: 0 10px; border: 0; border-radius: 4px; background: none; color: var(--mist); font-size: 13px; font-weight: 400; justify-content: flex-start; align-items: center; }
.account-menu-panel a:hover, .account-menu-panel button:hover:not(:disabled) { background: var(--wash-2); color: var(--paper); text-decoration: none; }
.account-menu-panel hr { margin: 4px 0; border: 0; border-top: 1px solid var(--graphite); }
.menu-head { padding: 8px 10px 6px; color: var(--fog); font-size: 12px; }
.menu-head strong { display: block; color: var(--paper); font-size: 13px; font-weight: 510; }
.mono-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--graphite); color: var(--mist); font-size: 11px; font-weight: 590; }

/* ---------- page frame ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: 40px 24px 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head p { margin-top: 6px; color: var(--fog); font-size: 14px; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; color: var(--ash); font-size: 13px; }
.crumbs a { color: var(--fog); }
.crumbs > * + *::before { content: "/"; margin-right: 6px; color: var(--ash); }
.box { border: 1px solid var(--graphite); border-radius: var(--r-box); background: var(--carbon); }
.box + .box, .box + .section-title, .section + .section { margin-top: 32px; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--graphite); }
.box-head h2 { font-size: 14px; }
.box-head a, .box-head .link { color: var(--fog); font-size: 13px; }
.box-body { padding: 20px; }
.section-title { margin: 0 0 10px; color: var(--fog); font-size: 13px; font-weight: 510; }
.empty { padding: 32px 20px; color: var(--fog); font-size: 14px; text-align: center; }
.empty strong { display: block; margin-bottom: 4px; color: var(--mist); font-weight: 510; }
.loading { padding: 20px; color: var(--ash); font-size: 13px; }

.rows { margin: 0; padding: 0; list-style: none; }
.rows > li + li { border-top: 1px solid var(--graphite); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px 24px; margin: 0; }
.facts dt { color: var(--fog); font-size: 12px; }
.facts dd { margin: 2px 0 0; color: var(--paper); font-size: 14px; font-weight: 510; overflow-wrap: anywhere; }
.facts.list { display: block; }
.facts.list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.facts.list > div + div { border-top: 1px solid var(--graphite); }
.facts.list dd { margin: 0; text-align: right; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px 20px; border-bottom: 1px solid var(--graphite); color: var(--fog); font-size: 12px; font-weight: 400; text-align: left; }
.table td { padding: 12px 20px; color: var(--mist); }
.table tr + tr td { border-top: 1px solid var(--graphite); }
.table tbody tr:hover td { background: var(--wash); }
.table td a { font-weight: 510; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.tabs button { border-color: transparent; color: var(--fog); }
.tabs button[aria-selected="true"] { background: var(--wash-2); color: var(--paper); }

/* ---------- home ---------- */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 24px 0 40px; }
.hello h1 { font-size: 48px; line-height: 1; letter-spacing: -.025em; }
.hello p { margin-top: 12px; color: var(--fog); font-size: 15px; }
.connect { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--graphite); border-radius: var(--r-box); background: var(--carbon); }
.connect .label { color: var(--fog); font-size: 12px; }
.connect .value { color: var(--paper); font-size: 15px; font-weight: 510; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.split > aside > * + * { margin-top: 24px; }
.feed-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 20px; }
.feed-row:hover { background: var(--wash); }
.feed-row a { font-weight: 510; }
.feed-row .meta { grid-column: 1; color: var(--fog); font-size: 13px; }
.feed-row time { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--ash); font-size: 12px; }
.char-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; }
.char-row:hover { background: var(--wash); }
.char-row .meta { color: var(--fog); font-size: 13px; }

/* ---------- UCP ---------- */
.ucp { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 40px; align-items: start; }
.side { position: sticky; top: 88px; }
.side-who { padding: 0 10px 16px; }
.side-who strong { display: block; color: var(--paper); font-size: 14px; font-weight: 510; }
.side-who span { color: var(--fog); font-size: 13px; }
.side-group + .side-group { margin-top: 20px; }
.side-group h2 { padding: 0 10px 6px; color: var(--ash); font-size: 12px; font-weight: 510; }
.side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 30px; padding: 0 10px; border-radius: var(--r-ctl); color: var(--fog); font-size: 13px; }
.side a:hover { background: var(--wash); color: var(--paper); text-decoration: none; }
.side a[aria-current="page"] { background: var(--wash-2); color: var(--paper); }
.side a .count { color: var(--ash); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border: 1px solid var(--graphite); border-radius: var(--r-box); background: var(--carbon); }
.stats > div { padding: 18px 20px; }
.stats > div + div { border-left: 1px solid var(--graphite); }
.stats dt { color: var(--fog); font-size: 12px; }
.stats dd { margin: 4px 0 0; color: var(--paper); font-size: 24px; font-weight: 510; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.two > .box + .box { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 9999px; background: var(--wash-2); color: var(--mist); font-size: 13px; }
.chip .dim { font-size: 12px; }
.form-narrow { max-width: 420px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
/* Fitts: a long settings form keeps its save button in reach. */
.form-actions.sticky-actions { position: sticky; bottom: 0; z-index: 5; margin: 16px -20px -20px; padding: 14px 20px; border-top: 1px solid var(--graphite); background: rgba(15, 16, 17, .96); }
.form-actions.sticky-actions .primary { min-height: 40px; padding: 0 28px; }
@media (max-width: 640px) { .form-actions.sticky-actions { flex-wrap: wrap; } .form-actions.sticky-actions .primary { flex: 1 1 100%; min-height: 48px; } }
.copy-btn { display: inline-grid; place-items: center; width: 36px; min-height: 36px; padding: 0; color: var(--fog); }
.copy-btn .ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
@media (hover: hover) { #market-list li .copy-btn { opacity: 0; transition: opacity .15s; } #market-list li:hover .copy-btn, #market-list li:focus-within .copy-btn { opacity: 1; } }
.danger-hover:hover { color: var(--red); border-color: rgba(235, 87, 87, .5); }
.picker { width: auto; min-width: 220px; }

/* staff: applications */
.app-row { padding: 20px; }
.app-row + .app-row { border-top: 1px solid var(--graphite); }
.app-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.app-top h3 { font-size: 15px; }
.app-top time { margin-left: auto; color: var(--ash); font-size: 12px; }
.ip { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0; }
.same-ip { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(242, 201, 76, .25); border-radius: 8px; background: rgba(242, 201, 76, .05); font-size: 13px; }
.same-ip p { color: var(--amber); font-weight: 510; }
.same-ip ul { margin: 8px 0 0; padding: 0; list-style: none; }
.same-ip li { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--mist); }
.app-actions { display: flex; gap: 8px; margin-top: 16px; }
.app-actions input { flex: 1; }
.decided { margin-top: 12px; color: var(--fog); font-size: 13px; }

/* ---------- forum ---------- */
.forum-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.forum-grid > aside > * + * { margin-top: 24px; }
.category + .category { margin-top: 32px; }
.board { display: grid; grid-template-columns: minmax(0, 1fr) 72px 72px 240px; gap: 16px; align-items: center; padding: 16px 20px; }
.board:hover { background: var(--wash); }
.board h3 a { font-weight: 510; }
.board p { margin-top: 2px; color: var(--fog); font-size: 13px; }
.board .n { color: var(--mist); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.board .n span { display: block; color: var(--ash); font-size: 12px; }
.latest { min-width: 0; font-size: 13px; }
.latest a { display: block; overflow: hidden; color: var(--mist); text-overflow: ellipsis; white-space: nowrap; }
.latest span { color: var(--ash); }
.list-head { display: grid; grid-template-columns: minmax(0, 1fr) 72px 200px; gap: 16px; padding: 10px 20px; border-bottom: 1px solid var(--graphite); color: var(--ash); font-size: 12px; }
.list-head span:nth-child(2) { text-align: right; }
.topic { display: grid; grid-template-columns: minmax(0, 1fr) 72px 200px; gap: 16px; align-items: center; padding: 12px 20px; }
.topic:hover { background: var(--wash); }
.topic h3 { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; }
.topic h3 a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 510; }
.topic .meta { margin-top: 2px; color: var(--fog); font-size: 13px; }
.topic .n { color: var(--mist); text-align: right; font-variant-numeric: tabular-nums; }
.topic.pinned { background: rgba(255, 255, 255, .015); }
.search { display: flex; gap: 8px; }
.search input { width: 240px; }
.more { display: flex; justify-content: center; padding: 16px; border-top: 1px solid var(--graphite); }

.thread-head h1 { font-size: 32px; }
.thread-head .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; color: var(--fog); font-size: 13px; }
.mod-bar { display: flex; gap: 6px; }
.post { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.post + .post { border-top: 1px solid var(--graphite); }
.post-author { padding: 20px; border-right: 1px solid var(--graphite); }
.post-author strong { display: block; color: var(--paper); font-size: 14px; font-weight: 510; overflow-wrap: anywhere; }
.post-author span { color: var(--ash); font-size: 12px; }
.post-main { min-width: 0; padding: 16px 20px 20px; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ash); font-size: 12px; }
.post-meta .actions { display: flex; gap: 4px; margin-left: auto; }
.post-meta .actions button { min-height: 26px; padding: 0 8px; font-size: 12px; }
.post.hidden-post .post-body { opacity: .5; }
.post-body { color: var(--mist); font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.post-body > * + * { margin-top: 12px; }
.post-body h1, .post-body h2, .post-body h3 { font-size: 17px; }
.post-body ul, .post-body ol { padding-left: 20px; }
.post-body blockquote { margin: 0; padding: 2px 14px; border-left: 2px solid var(--smoke); color: var(--fog); }
.post-body a { text-decoration: underline; text-decoration-color: var(--smoke); }
.post-body code { padding: 1px 5px; border-radius: 4px; background: var(--wash-2); font-size: 13px; }
.composer { padding: 20px; }
.composer .field:last-of-type { margin-bottom: 12px; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.composer-foot .hint { color: var(--ash); font-size: 12px; }
.preview { min-height: 160px; padding: 10px 12px; border: 1px dashed var(--graphite); border-radius: var(--r-ctl); }
.notice { padding: 14px 20px; color: var(--fog); font-size: 14px; }
.stat-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.stat-line + .stat-line { border-top: 1px solid var(--graphite); }
.stat-line span:last-child { color: var(--paper); font-variant-numeric: tabular-nums; }

/* ---------- news (request 24) ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.news-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: rgba(15, 16, 18, .72); color: var(--paper); transition: transform .18s ease, border-color .18s ease; }
.news-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .18); text-decoration: none; }
.news-card.lead { grid-row: span 2; padding: 30px; background: linear-gradient(160deg, rgba(255, 79, 88, .14), transparent 55%), rgba(15, 16, 18, .78); }
.news-outlet { color: #ff8a8f; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.news-card strong { font-size: 18px; font-weight: 750; letter-spacing: -.02em; line-height: 1.35; }
.news-card.lead strong { font-size: 28px; line-height: 1.25; }
.news-card p { color: var(--mist); font-size: 15px; line-height: 1.7; }
.news-by { margin-top: auto; color: var(--fog); font-size: 13px; }
.reporter-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.reporter-pick button { gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 9999px; }
.reporter-pick .char-initial { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--wash-2); color: var(--mist); font-size: 12px; font-weight: 700; }
.reporter-pick button[aria-checked="true"] { border-color: #ff8a8f; color: var(--paper); background: rgba(255, 79, 88, .08); }
.thread-head .byline { margin-top: 6px; color: #ff8a8f; font-size: 14px; font-weight: 650; }
@media (max-width: 860px) { .news-grid { grid-template-columns: minmax(0, 1fr); } .news-card.lead { grid-row: auto; } .news-card.lead strong { font-size: 22px; } }
/* ---------- auth: full-bleed city, panel on the right ---------- */
.auth { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 460px; min-height: 100vh; background: var(--void); }
.auth-photo { position: fixed; inset: 0; z-index: 0; }
.auth-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 30% 50%; }
.auth-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 10, .15) 0%, rgba(8, 9, 10, .3) 55%, rgba(8, 9, 10, .45) 100%); }
.auth-brand { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; }
.auth-brand .wordmark img { width: 28px; height: 28px; }
.auth-brand .wordmark { font-size: 16px; }
.auth-line { max-width: 520px; }
.auth-line h1 { font-size: 56px; line-height: 1; letter-spacing: -.03em; }
.auth-line p { margin-top: 16px; color: var(--mist); font-size: 16px; }
.auth-line .server-pill { margin-top: 24px; background: rgba(8, 9, 10, .55); backdrop-filter: blur(8px); }
.auth-panel { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 48px; border-left: 1px solid rgba(255, 255, 255, .06); background: rgba(15, 16, 17, .62); backdrop-filter: blur(28px) saturate(150%); }
.auth-panel h1 { margin-bottom: 28px; font-size: 28px; letter-spacing: -.02em; }
.auth-panel .intro { margin: -20px 0 24px; color: var(--fog); font-size: 14px; }
.auth-field { margin-bottom: 16px; }
.auth-field input { min-height: 40px; }
.auth-panel .helper { margin-top: 6px; color: var(--ash); font-size: 12px; }
.auth-inline { display: flex; gap: 8px; }
.auth-steps { display: flex; gap: 6px; margin: -16px 0 24px; padding: 0; list-style: none; }
.auth-steps li { flex: 1; height: 3px; border-radius: 2px; background: var(--graphite); transition: background .2s; }
.auth-steps li.done { background: var(--fog); }
.auth-steps li.on { background: var(--paper); }
.auth-target { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 10px 12px; border: 1px solid var(--graphite); border-radius: var(--r-ctl); color: var(--paper); font-size: 14px; }
.auth-target span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-target .link-button { flex: none; }
.auth-inline button { min-height: 40px; flex: none; }
.captcha-box:not(:empty) { margin: 4px 0 16px; }
.auth-panel .message { min-height: 0; margin: 4px 0 12px; color: var(--red); font-size: 13px; }
.auth-panel .message[role="status"] { color: var(--green); }
.auth-panel .message:empty { display: none; }
.form-submit { width: 100%; min-height: 40px; margin-top: 8px; font-size: 14px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--graphite); }
.link-button { min-height: 0; padding: 0; border: 0; background: none; color: var(--fog); font-size: 13px; font-weight: 400; }
.link-button:hover:not(:disabled) { background: none; color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.auth-foot { margin-top: 32px; color: var(--ash); font-size: 12px; }

/* ---------- public court records ---------- */
.ct-tabs { margin-bottom: 20px; }
.ct-rows { margin: 0; padding: 0; overflow: hidden; list-style: none; border: 1px solid var(--graphite); border-radius: var(--r-box); background: var(--carbon); }
.ct-rows li + li { border-top: 1px solid var(--graphite); }
.ct-rows a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 20px; color: var(--paper); transition: background .15s; }
.ct-rows a:hover { background: var(--wash); text-decoration: none; }
.ct-no { color: var(--ash); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ct-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-main strong { font-size: 15.5px; font-weight: 650; }
.ct-charges { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-charge { padding: 2px 8px; border-radius: 6px; background: var(--wash-2); color: var(--mist); font-size: 12px; }
.ct-charge.more { color: var(--fog); }
.ct-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.ct-date, .ct-sentence { color: var(--fog); font-size: 12.5px; }
.ct-badge { padding: 3px 10px; border-radius: 9999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ct-badge.guilty { background: rgba(235, 87, 87, .14); color: #ff8a8f; }
.ct-badge.free { background: rgba(76, 196, 106, .14); color: #4cc46a; }
.ct-badge.soon { background: rgba(242, 201, 76, .14); color: var(--amber); }
.ct-badge.muted { background: var(--wash-2); color: var(--fog); }
.ct-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--fog); font-size: 13px; }
.ct-back .ico { transform: rotate(180deg); fill: none; stroke: currentColor; stroke-width: 1.8; }
.ct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding: 28px; border: 1px solid var(--graphite); border-radius: 18px;
  background: radial-gradient(90% 140% at 0% 0%, rgba(138, 143, 152, .12), transparent 60%), var(--carbon); }
.ct-head.v-guilty { background: radial-gradient(90% 140% at 0% 0%, rgba(235, 87, 87, .16), transparent 60%), var(--carbon); }
.ct-head.v-not_guilty { background: radial-gradient(90% 140% at 0% 0%, rgba(76, 196, 106, .14), transparent 60%), var(--carbon); }
.ct-kicker { color: var(--fog); font-size: 12.5px; font-weight: 650; }
.ct-head h2 { margin: 2px 0 12px; color: var(--paper); font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.ct-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ct-head-side .ct-badge { padding: 5px 14px; font-size: 14px; }
.ct-sentence.big { color: var(--paper); font-size: 18px; font-weight: 750; }
.ct-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ct-summary { color: var(--mist); font-size: 15px; line-height: 1.75; white-space: pre-wrap; }
.ct-timeline { margin: 0; padding: 20px 20px 8px 24px; list-style: none; }
.ct-timeline li { --role: var(--fog); position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; }
.ct-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--graphite); }
.ct-timeline li.r-judge { --role: #f2c94c; } .ct-timeline li.r-prosecutor { --role: #ff8a8f; } .ct-timeline li.r-defense { --role: #5ec8f2; } .ct-timeline li.r-defendant { --role: #b4a9ff; }
.ct-dot { width: 14px; height: 14px; margin-top: 3px; border: 3px solid var(--carbon); border-radius: 50%; background: var(--role); box-shadow: 0 0 0 1px var(--role); }
.ct-ev-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ct-ev-head strong { color: var(--paper); font-size: 14.5px; }
.ct-ev-head span { color: var(--role); font-size: 13px; font-weight: 600; }
.ct-ev-head time { margin-left: auto; color: var(--ash); font-size: 12.5px; }
.ct-ev-verdict { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--mist); font-size: 13.5px; }
.ct-ev-text { margin-top: 6px; color: var(--mist); font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
@media (max-width: 860px) { .ct-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ct-rows a { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .ct-no { grid-column: 1 / -1; font-size: 12.5px; }
  .ct-head { padding: 20px; }
  .ct-head h2 { font-size: 24px; }
  .ct-head-side { align-items: flex-start; }
}
.ct-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--graphite); }
.ct-tabs button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 0; background: none; color: var(--fog); font-size: 15px; font-weight: 600; box-shadow: inset 0 -2px 0 transparent; }
.ct-tabs button:hover:not(:disabled) { background: none; color: var(--paper); }
.ct-tabs button[aria-selected="true"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--accent); }
/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--graphite); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; max-width: var(--max); margin: 0 auto; padding: 24px; color: var(--ash); font-size: 12px; }
.footer-inner nav { display: flex; gap: 16px; }
.footer-inner a { color: var(--fog); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .split, .forum-grid { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: minmax(0, 1fr) 64px 64px; }
  .board .latest { display: none; }
}
@media (max-width: 860px) {
  .ucp { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .side { position: static; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; border-bottom: 1px solid var(--graphite); }
  .side-who, .side-group h2 { display: none; }
  .side-group { display: flex; gap: 4px; }
  .side-group + .side-group { margin-top: 0; }
  .side a { flex: none; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { min-height: 46vh; padding: 24px; }
  .auth-photo img { object-position: 62% 72%; }
  .auth-line h1 { font-size: 36px; }
  .auth-panel { padding: 32px 24px 40px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
}
@media (max-width: 640px) {
  .topbar-inner { gap: 12px; padding: 0 16px; }
  .wordmark span, .server-pill { display: none; }
  .page { padding: 24px 16px 64px; }
  .hello { flex-direction: column; align-items: stretch; padding: 8px 0 28px; }
  .hello h1 { font-size: 34px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; }
  .board { grid-template-columns: minmax(0, 1fr) 56px; }
  .board .n:nth-of-type(2) { display: none; }
  .list-head { display: none; }
  .topic { grid-template-columns: minmax(0, 1fr) 48px; }
  .topic .latest { display: none; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post-author { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 0; border-right: 0; }
  .post-main { padding: 10px 16px 18px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--graphite); }
  .app-actions { flex-wrap: wrap; }
  .account-name { display: none; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* spacing helpers (inline style attributes are blocked by the CSP) */
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.note { color: var(--fog); font-size: 13px; }
.help { margin-top: 6px; color: var(--ash); font-size: 12px; }
.auth-brand > .server-pill { align-self: flex-start; background: rgba(8, 9, 10, .55); backdrop-filter: blur(8px); }

/* HIG pass: disclosure for rarely used tools, a tinted (not primary) approve button */
.disclosure > summary { cursor: pointer; list-style: none; border-bottom: 0; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--fog); border-bottom: 1.5px solid var(--fog); transform: rotate(45deg); margin-right: 4px; }
.disclosure[open] > summary { border-bottom: 1px solid var(--graphite); }
.disclosure[open] > summary::after { transform: rotate(225deg); }
button.approve { border-color: rgba(39, 166, 68, .45); color: #4cc46a; }
button.approve:hover:not(:disabled) { border-color: var(--green); background: rgba(39, 166, 68, .1); color: #5fd67c; }
.empty .button { display: inline-flex; }
.empty strong + .button { margin-top: 12px; }

/* sign-in: the full crest + wordmark carries the left side */
.auth-logo { display: block; width: clamp(160px, 16vw, 240px); }
.auth-logo img { width: 100%; height: auto; filter: drop-shadow(0 2px 16px rgba(0, 0, 0, .5)); }
@media (max-width: 860px) { .auth-logo { width: 128px; } }


/* =====================================================================
   Landing (signed-out home) — after global.gta.world, Asia first
   ===================================================================== */
.glow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.button.xl { min-height: 48px; padding: 0 22px; border-radius: 9999px; font-size: 15px; }
.button.ghost { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); color: var(--paper); backdrop-filter: blur(6px); }
.nav-plain { color: var(--mist); font-size: 14px; }
.landing { background: #07070a; }
.land-nav { position: fixed; inset: 0 0 auto; z-index: 30; background: linear-gradient(180deg, rgba(7, 7, 10, .85), rgba(7, 7, 10, 0)); }
.land-nav-inner { display: flex; align-items: center; gap: 32px; max-width: 1280px; height: 72px; margin: 0 auto; padding: 0 28px; }
.land-logo img { width: 132px; height: auto; }
.land-nav nav { display: flex; gap: 28px; margin: 0 auto; }
.land-nav nav a { color: var(--mist); font-size: 14px; font-weight: 510; }
.land-nav nav a:hover { color: var(--paper); text-decoration: none; }
.land-nav-right { display: flex; align-items: center; gap: 18px; }
.land-nav-right .button { border-radius: 9999px; }

.hero { position: relative; display: flex; align-items: center; min-height: 100svh; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 60%; transform: scale(1.06); animation: hero-drift 24s ease-out both; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 80% at 75% 35%, rgba(255, 79, 88, .18), transparent 60%),
  linear-gradient(90deg, rgba(7, 7, 10, .92) 0%, rgba(7, 7, 10, .55) 50%, rgba(7, 7, 10, .2) 100%),
  linear-gradient(0deg, #07070a 0%, rgba(7, 7, 10, 0) 35%); }
@keyframes hero-drift { from { transform: scale(1.14); } to { transform: scale(1.04); } }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 120px 28px 96px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; color: #ffb38a; font-size: 15px; font-weight: 600; }
.hero-kicker::before { content: ""; width: 36px; height: 2px; background: var(--grad); }
.hero-title { display: flex; flex-direction: column; margin-top: 20px; font-size: clamp(40px, 8.6vw, 128px); font-weight: 800; line-height: .9; letter-spacing: -.045em; text-transform: uppercase; }
.hero-title .line:first-child > span { color: var(--paper); }
.hero-flags { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.hero-flags li { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 9999px; background: rgba(10, 10, 14, .55); backdrop-filter: blur(8px); color: var(--paper); font-size: 15px; font-weight: 600; }
.hero-flags svg, .flag svg { display: block; width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-live { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 9999px; background: rgba(10, 10, 14, .6); color: var(--fog); font-size: 14px; }
.hero-live strong { color: var(--paper); font-size: 16px; font-weight: 700; }
.hero-live.small { margin: 0; }

.land-section { position: relative; padding: 112px 0; background: #07070a; }
.land-section.alt { background: radial-gradient(80% 60% at 20% 0%, rgba(255, 79, 88, .12), transparent 60%), #0b0a0f; }
.land-inner { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.land-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.land-head.stack { flex-direction: column; align-items: flex-start; }
.land-head.center { align-items: center; text-align: center; }
.land-head h2 { font-size: clamp(40px, 5vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.land-head p { color: var(--fog); font-size: 17px; }
.region-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.region { position: relative; display: flex; flex-direction: column; min-height: 240px; padding: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); }
.region.live { border-color: rgba(255, 138, 61, .45); background: radial-gradient(100% 80% at 100% 0%, rgba(255, 79, 88, .22), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); }
.region-top { display: flex; align-items: center; justify-content: space-between; }
.flag svg { width: 44px; height: 30px; border-radius: 4px; }
.tag { padding: 3px 8px; border-radius: 9999px; background: rgba(255, 79, 88, .14); color: #ff8f86; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.region h3 { margin-top: auto; padding-top: 28px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.region .native { color: var(--fog); font-size: 14px; }
.region-state { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--fog); font-size: 14px; }
.region-state strong { color: var(--paper); }
.region-cta { position: absolute; inset: auto 0 0; padding: 12px 22px; background: var(--grad); color: #170b05; font-size: 14px; font-weight: 700; transform: translateY(100%); transition: transform .2s ease; }
.region:hover .region-cta, .region:focus-within .region-cta { transform: none; }
.region-cta:hover { text-decoration: none; }

.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 24px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: rgba(255, 255, 255, .025); }
.step-n { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 19px; font-weight: 700; }
.steps p { margin-top: 4px; color: var(--fog); font-size: 14px; }
.steps .button { border-radius: 9999px; }

.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; }
.community-card { padding: 28px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px; background: rgba(14, 13, 18, .9); }
.cc-top { display: flex; align-items: center; justify-content: space-between; color: #ff9b6a; }
.cc-top .ico { padding: 10px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 79, 88, .14); }
.cc-big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.community-card h3 { margin-top: 20px; font-size: 24px; font-weight: 800; }
.community-card > p { margin-top: 6px; color: var(--fog); font-size: 14px; }
.cc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.cc-stats div { padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.cc-stats dt { color: var(--fog); font-size: 12px; }
.cc-stats dd { margin: 2px 0 0; color: var(--paper); font-size: 20px; font-weight: 700; }
.community-card .button { min-height: 44px; border-radius: 9999px; }

.land-foot { border-top: 1px solid rgba(255, 79, 88, .35); background: #060609; padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-grid img { width: 150px; height: auto; }
.foot-grid p { margin-top: 14px; max-width: 360px; color: var(--ash); font-size: 13px; }
.foot-grid nav { display: flex; flex-direction: column; gap: 8px; }
.foot-grid h3 { margin-bottom: 6px; color: #ff9b6a; font-size: 14px; }
.foot-grid a { color: var(--fog); font-size: 14px; }
.land-copy { max-width: 1280px; margin: 40px auto 0; padding: 0 28px; color: var(--ash); font-size: 12px; }

/* =====================================================================
   UCP shell — GTA World UCP: long nested sidebar, header bar, tiles
   ===================================================================== */
.ucp-app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: #0a0b0d; }
.ucp-side { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; border-right: 1px solid var(--graphite); background: #0d0e11; scrollbar-width: thin; }
.ucp-brand { display: block; padding: 20px 20px 12px; }
.ucp-brand img { width: 150px; height: auto; }
.ucp-who { display: flex; align-items: center; gap: 10px; margin: 4px 12px 12px; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.ucp-who strong { display: block; color: var(--paper); font-size: 14px; font-weight: 600; }
.ucp-who span { color: var(--fog); font-size: 12px; }
.ucp-side nav { flex: 1; padding: 0 8px 16px; }
.menu { margin: 0; padding: 0; list-style: none; }
.menu a, .menu summary { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--mist); font-size: 14px; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 1.5px solid var(--ash); border-bottom: 1.5px solid var(--ash); transform: rotate(-45deg); transition: transform .15s; }
.menu details[open] > summary::after { transform: rotate(45deg); }
.menu a:hover, .menu summary:hover { background: rgba(255, 255, 255, .04); color: var(--paper); text-decoration: none; }
.menu a[aria-current="page"] { background: linear-gradient(90deg, rgba(255, 79, 88, .18), rgba(255, 138, 61, .06)); color: var(--paper); box-shadow: inset 2px 0 0 #ff6a4d; }
.menu .ico { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--fog); }
.menu a[aria-current="page"] .ico { color: #ff8a5c; }
.menu.depth-1, .menu.depth-2 { margin: 2px 0 6px 21px; padding-left: 10px; border-left: 1px solid var(--graphite); }
.menu.depth-1 a, .menu.depth-1 summary, .menu.depth-2 a { min-height: 32px; font-size: 13px; color: var(--fog); }
.ucp-side-foot { display: grid; gap: 8px; margin: 0 12px 14px; padding: 14px; border-radius: 10px; background: rgba(255, 255, 255, .03); font-size: 12px; }
.ucp-side-foot div { display: flex; justify-content: space-between; gap: 8px; color: var(--fog); }
.ucp-side-foot strong { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.ucp-main { display: flex; flex-direction: column; min-width: 0; }
.ucp-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px; border-bottom: 1px solid var(--graphite); background: rgba(10, 11, 13, .9); backdrop-filter: blur(12px); }
.ucp-top h1 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ucp-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, #ff4f58, transparent 40%); }
.ucp-top-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.menu-toggle { display: none; }
.ucp-content { flex: 1; padding: 28px; }
.content-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
.ucp-foot { padding: 18px 28px; border-top: 1px solid var(--graphite); color: var(--ash); font-size: 12px; }
.legal, .legal-contact { display: inline-block; margin-left: 14px; }
.legal { letter-spacing: .02em; }
.legal-contact a { color: var(--fog); }
.store-legal { margin: 40px 0 0; color: var(--ash); font-size: 12px; }
.store-legal .legal:first-child { margin-left: 0; }
@media (max-width: 640px) { .legal, .legal-contact { display: block; margin: 6px 0 0; } }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--graphite); border-radius: 12px; background: var(--carbon); }
.tile-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; }
.tile-ico .ico { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tone-blue .tile-ico { background: #3b6fe0; } .tone-red .tile-ico { background: #e0464e; } .tone-teal .tile-ico { background: #17a3a3; } .tone-amber .tile-ico { background: #d98a1f; }
.tone-blue { box-shadow: inset 3px 0 0 #3b6fe0; } .tone-red { box-shadow: inset 3px 0 0 #e0464e; } .tone-teal { box-shadow: inset 3px 0 0 #17a3a3; } .tone-amber { box-shadow: inset 3px 0 0 #d98a1f; }
.tile-label { display: block; color: var(--fog); font-size: 13px; }
.tile-value { display: block; color: var(--paper); font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.avail { margin: 0; padding: 6px 20px; list-style: none; }
.avail li { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 14px; }
.avail li + li { border-top: 1px solid var(--graphite); }
.avail strong { color: var(--paper); }
.pill-state { padding: 2px 10px; border-radius: 9999px; background: var(--wash-2); color: var(--fog); font-size: 12px; font-weight: 600; }
.pill-state.on { background: rgba(39, 166, 68, .16); color: #4cc46a; }
.pill-state.off { background: rgba(235, 87, 87, .14); color: var(--red); }
.char-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 16px; }
.char-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--graphite); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.char-card:hover { border-color: rgba(255, 138, 61, .5); text-decoration: none; }
.char-card strong { display: block; color: var(--paper); font-size: 15px; }
.char-card span span { color: var(--fog); font-size: 12px; }
.char-card .ico { margin-left: auto; fill: none; stroke: var(--ash); stroke-width: 1.6; }
.char-initial { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--grad); color: #170b05; font-weight: 800; }
.dash-char, .profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.dash-char { grid-template-columns: 320px minmax(0, 1fr) minmax(0, 1fr); }
.profile-card .profile-name { display: flex; align-items: center; gap: 10px; padding: 22px 20px 14px; border-bottom: 1px solid var(--graphite); background: linear-gradient(180deg, rgba(255, 79, 88, .12), transparent); }
.profile-name h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.profile-partner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--graphite); }
.pp-kind { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; color: #ff6b74; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.pp-kind .ico { fill: currentColor; stroke: none; }
.profile-partner.k-dating .pp-kind .ico { fill: none; stroke: currentColor; stroke-width: 1.8; }
.profile-partner b { overflow: hidden; color: var(--paper); font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profile-partner time { color: var(--fog); font-size: 12px; white-space: nowrap; }
.mini { color: var(--fog); font-size: 12px; font-weight: 600; }
.wealth { display: grid; gap: 4px; }
.wealth div { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; }
.wealth div + div { border-top: 1px solid var(--graphite); }
.wealth strong { color: var(--paper); font-variant-numeric: tabular-nums; }
.wealth .total strong { font-size: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wealth .total strong { background: none; color: var(--paper); -webkit-text-fill-color: currentColor; }
/* Proximity / Von Restorff: deleting a character is a quiet text action set well apart from 프로필 보기. */
.char-delete { display: block; margin: 28px auto 0; min-height: 32px; padding: 0 8px; color: var(--fog); font-size: 13px; }
.char-delete:hover { color: var(--red); background: none; }
.activity-big { display: flex; align-items: center; gap: 16px; }
.activity-big .ico { fill: none; stroke: #ff8a5c; stroke-width: 1.5; }
.activity-big strong { display: block; color: var(--paper); font-size: 26px; font-weight: 700; }
.activity-big span { color: var(--fog); font-size: 13px; }
.big-line { display: block; color: var(--paper); font-size: 20px; }
.tabs-box { overflow: hidden; }
.tabbar { display: flex; gap: 2px; overflow-x: auto; padding: 0 12px; border-bottom: 1px solid var(--graphite); }
.tabbar button { min-height: 46px; padding: 0 14px; border: 0; border-radius: 0; background: none; color: var(--fog); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.tabbar button:hover:not(:disabled) { background: none; color: var(--paper); }
.tabbar button[aria-selected="true"] { color: var(--paper); box-shadow: inset 0 -2px 0 #ff6a4d; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px 0; }
.subtabs button { border-radius: 9999px; }
.subtabs button[aria-pressed="true"] { border-color: rgba(255, 138, 61, .6); color: var(--paper); background: rgba(255, 138, 61, .1); }
.empty.big { padding: 64px 20px; }
.empty-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: rgba(255, 138, 61, .1); }
.empty-ico .ico { fill: none; stroke: #ff8a5c; stroke-width: 1.5; }
.ico { flex: none; }

/* =====================================================================
   Forum shell — GTA World forum: banner, menu bar, category boxes
   ===================================================================== */
.forum-app { display: flex; flex-direction: column; min-height: 100vh; background: #0b0b0d; }
.forum-banner { position: relative; height: 170px; overflow: hidden; }
.forum-banner-photo { position: absolute; inset: 0; }
.forum-banner-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; }
.forum-banner-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 13, .85), rgba(11, 11, 13, .25) 60%, rgba(11, 11, 13, .7)), linear-gradient(0deg, #0b0b0d, transparent 60%); }
.forum-banner-inner { position: relative; display: flex; align-items: center; gap: 24px; max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 24px; }
.forum-logo img { width: 190px; height: auto; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .6)); }
.server-box { padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(11, 11, 13, .6); backdrop-filter: blur(8px); font-size: 13px; }
.server-box p { display: flex; align-items: center; gap: 8px; color: var(--mist); }
.server-box strong { color: var(--paper); }
.banner-account { margin-left: auto; }
.forum-bar { position: sticky; top: 0; z-index: 10; border-top: 1px solid rgba(255, 255, 255, .06); border-bottom: 1px solid var(--graphite); background: rgba(16, 16, 19, .94); backdrop-filter: blur(12px); }
.forum-bar-inner { display: flex; align-items: center; gap: 4px; max-width: 1240px; height: 52px; margin: 0 auto; padding: 0 24px; }
.forum-bar-inner > a { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px; color: var(--mist); font-size: 14px; font-weight: 600; }
.forum-bar-inner > a .ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--fog); }
.forum-bar-inner > a:hover { color: var(--paper); text-decoration: none; }
.forum-bar-inner > a[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 #ff6a4d; }
.forum-bar-inner > a[aria-current="page"] .ico { color: #ff8a5c; }
.forum-bar-search { margin-left: auto; }
.forum-bar-search input { width: 220px; }
.forum-page { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 24px 72px; }
.forum-title h1 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
details.category { overflow: hidden; border: 1px solid var(--graphite); border-radius: 12px; background: var(--carbon); }
details.category + details.category { margin-top: 20px; }
.category-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--graphite); background: linear-gradient(90deg, rgba(255, 79, 88, .1), rgba(255, 255, 255, .02) 50%); cursor: pointer; list-style: none; }
.category-head::-webkit-details-marker { display: none; }
.category-head h2 { font-size: 15px; font-weight: 700; }
.category-head::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--fog); border-bottom: 1.5px solid var(--fog); transform: rotate(45deg); }
details.category:not([open]) > .category-head { border-bottom: 0; }
details.category:not([open]) > .category-head::after { transform: rotate(-45deg); }
.board { grid-template-columns: 40px minmax(0, 1fr) 72px 72px 250px; }
.forum-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--ash); }
.forum-icon.fresh { background: rgba(255, 79, 88, .16); color: #ff7a6a; }
.board h3 a { font-size: 15px; font-weight: 700; }
.subforums { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.subforums a { display: inline-flex; align-items: center; gap: 6px; color: var(--fog); font-size: 13px; }
.subforums a::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: #ff7a4d; opacity: .7; }
.subforums a:hover { color: var(--paper); }
.board-chip { color: var(--fog); }
.choose-head { padding: 14px 20px 8px; color: var(--paper); font-size: 14px; font-weight: 600; }
.choose-head:not(:first-child) { margin-top: 12px; border-top: 1px solid var(--graphite); padding-top: 22px; }
.pick-label { margin: 0 0 8px; color: var(--fog); font-size: 13px; }
.online-now { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.online-now strong { color: var(--paper); }
.forum-foot { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- responsive for the new shells ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .profile-grid, .dash-char { grid-template-columns: minmax(0, 1fr); }
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ucp-app { grid-template-columns: minmax(0, 1fr); }
  .ucp-side { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; }
  .ucp-app.menu-open .ucp-side { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
  .menu-toggle { display: inline-flex; }
  .menu-toggle .ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .ucp-top, .ucp-content { padding-left: 16px; padding-right: 16px; }
  .land-nav nav { display: none; }
  .community-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .forum-bar-inner { overflow-x: auto; }
  .forum-bar-inner { flex-wrap: wrap; height: auto; overflow: visible; padding-top: 4px; }
  .forum-bar-inner > a { flex: none; padding-left: 8px; padding-right: 8px; }
  .forum-bar-search { order: 2; flex: 1 0 100%; margin: 0 0 10px; }
  .forum-bar-search .search { display: flex; gap: 8px; }
  .forum-bar-search input { flex: 1; width: auto; min-height: 42px; }
  .forum-figures [data-peak], .forum-figures [data-newest] { display: none; }
  /* Fitts: the page's one action (new topic, reply, post) sits at the thumb. */
  .forum-page .page-head .head-actions .button.primary, .forum-page .page-head .head-actions button.primary,
  .forum-page:not(:has(.thread-head)) .composer .head-actions button.primary { position: fixed; z-index: 30; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; min-height: 48px; justify-content: center; font-size: 15px; }
  .forum-page:has(.head-actions .primary) { padding-bottom: 96px; }
  .server-box { display: none; }
  .board { grid-template-columns: 40px minmax(0, 1fr) 56px; }
  .board .n:nth-of-type(2) { display: none; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .region-grid { grid-template-columns: minmax(0, 1fr); }
  .region { min-height: 180px; }
  .region-cta { position: static; transform: none; margin: 16px -22px -22px; }
  .steps li { grid-template-columns: auto minmax(0, 1fr); }
  .steps li .button { grid-column: 2; justify-self: start; }
  .land-section { padding: 72px 0; }
  .land-head { flex-direction: column; align-items: flex-start; }
  .land-nav-inner { padding: 0 16px; gap: 12px; }
  .hero-inner { padding: 112px 16px 64px; }
  .land-inner { padding: 0 16px; }
  .forum-banner { height: 120px; }
  .forum-logo img { width: 140px; }
  .forum-page { padding: 20px 16px 56px; }
  .forum-bar-inner { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { .hero-photo img { animation: none; transform: none; } .region-cta { transition: none; } }
@media (max-width: 1000px) and (min-width: 861px) { .board { grid-template-columns: 40px minmax(0, 1fr) 64px 64px; } }
.profile-grid > .box, .dash-char > .box, .dash-grid .box + .box { margin-top: 0; }


/* =====================================================================
   Language switch (ko / ja / th / zh)
   ===================================================================== */
.lang-switch { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 9999px; background: rgba(255, 255, 255, .04); color: var(--mist); }
.lang-switch svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-switch select { width: auto; min-height: 0; height: 30px; padding: 0 4px; border: 0; background: transparent; color: var(--paper); font-size: 13px; font-weight: 600; cursor: pointer; }
.lang-switch select:hover, .lang-switch select:focus { background: transparent; }
.lang-switch option { background: #121216; color: var(--paper); }
.lang-switch:focus-within { border-color: rgba(255, 138, 61, .6); }
.auth-lang { position: absolute; top: 24px; right: 24px; }
.auth-panel { position: relative; }

/* =====================================================================
   Landing v2 — one integrated Asia server, with motion
   ===================================================================== */
.land-nav { transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.land-nav.solid { background: rgba(8, 8, 11, .82); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.hero-photo img { animation: none; transform: translateY(var(--py, 0)) scale(1.08); transition: transform .1s linear; }
.hero { isolation: isolate; }
.hero-orbs span { position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; animation: orb 18s ease-in-out infinite alternate; }
.hero-orbs span:nth-child(1) { width: 520px; height: 520px; left: 55%; top: 8%; background: radial-gradient(circle, rgba(255, 79, 88, .55), transparent 70%); }
.hero-orbs span:nth-child(2) { width: 460px; height: 460px; left: 70%; top: 45%; background: radial-gradient(circle, rgba(255, 170, 61, .45), transparent 70%); animation-duration: 22s; animation-delay: -6s; }
.hero-orbs span:nth-child(3) { width: 380px; height: 380px; left: 30%; top: 60%; background: radial-gradient(circle, rgba(140, 70, 255, .35), transparent 70%); animation-duration: 26s; animation-delay: -12s; }
@keyframes orb { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.15); } 100% { transform: translate(40px, -30px) scale(.95); } }
.hero-sparks { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-sparks i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #ffcf8a; box-shadow: 0 0 10px 2px rgba(255, 170, 80, .7); opacity: 0; animation: spark var(--t) linear var(--delay) infinite; }
@keyframes spark { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translateY(-70vh); opacity: 0; } }
.hero-inner { z-index: 2; }
.in { opacity: 0; transform: translateY(26px); animation: rise .9s cubic-bezier(.2, .7, .1, 1) forwards; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero-title .line .in { display: inline-block; transform: translateY(110%); }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; } .d3 { animation-delay: .4s; } .d4 { animation-delay: .6s; } .d5 { animation-delay: .75s; } .d6 { animation-delay: .9s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.glow.animated { background-size: 220% 100%; animation: sheen 6s ease-in-out infinite; }
.hero-title .glow.animated.in { animation: rise .9s cubic-bezier(.2, .7, .1, 1) .4s forwards, sheen 6s ease-in-out 1.3s infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.unity { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 8px 18px 8px 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 9999px; background: rgba(10, 10, 14, .55); backdrop-filter: blur(10px); }
.unity-flags { display: flex; }
.unity-flags > span { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -10px; border: 2px solid #0d0d12; border-radius: 50%; background: #16161c; overflow: hidden; transition: transform .25s ease; }
.unity-flags > span:first-child { margin-left: 0; }
.unity-flags svg { width: 46px; height: 32px; }
.unity:hover .unity-flags > span { transform: translateY(-3px); }
.unity:hover .unity-flags > span:nth-child(2) { transition-delay: .05s; } .unity:hover .unity-flags > span:nth-child(3) { transition-delay: .1s; } .unity:hover .unity-flags > span:nth-child(4) { transition-delay: .15s; }
.unity-text { color: var(--paper); font-size: 15px; font-weight: 600; }
.dot.pulse.on { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(39, 166, 68, .6); } 100% { box-shadow: 0 0 0 10px rgba(39, 166, 68, 0); } }
.hero-live { gap: 8px; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* buttons: a light sweep on hover */
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.shine:hover::after { left: 130%; }
.button.primary { box-shadow: 0 8px 28px -10px rgba(255, 90, 60, .75); transition: transform .2s ease, box-shadow .2s ease, filter .2s; }
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(255, 90, 60, .9); }

/* marquee band of the four languages */
.marquee { position: relative; overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(255, 255, 255, .06); background: linear-gradient(90deg, rgba(255, 79, 88, .14), rgba(255, 170, 61, .1)); }
.marquee::before, .marquee::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 120px; }
.marquee::before { left: 0; background: linear-gradient(90deg, #07070a, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #07070a, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); font-size: 22px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.mq-item svg { width: 34px; height: 23px; border-radius: 3px; }
.mq-sep { color: #ff8a5c; font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s ease var(--d, 0ms), transform .8s cubic-bezier(.2, .7, .1, 1) var(--d, 0ms); }
[data-reveal].shown { opacity: 1; transform: none; }

/* cards: a light that follows the pointer, and a lift */
.spot { position: relative; isolation: isolate; transition: transform .3s ease, border-color .3s ease; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 120, 70, .14), transparent 45%); opacity: 0; transition: opacity .3s ease; }
.spot:hover::before { opacity: 1; }
.spot:hover { transform: translateY(-4px); border-color: rgba(255, 138, 61, .45); }
.steps li.spot.shown:hover { transform: translateY(-4px); }

/* the integrated server card */
.server-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding: 40px; border: 1px solid rgba(255, 138, 61, .35); border-radius: 22px; background:
  radial-gradient(70% 90% at 0% 0%, rgba(255, 79, 88, .22), transparent 60%),
  radial-gradient(60% 80% at 100% 100%, rgba(255, 170, 61, .14), transparent 60%), #0e0d12; overflow: hidden; }
.server-hero:hover { transform: none; }
.sh-badges { display: flex; gap: 8px; }
.tag.live { display: inline-flex; align-items: center; gap: 6px; background: rgba(39, 166, 68, .16); color: #5fd67c; }
.server-hero h3 { margin-top: 18px; font-size: clamp(34px, 4vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.sh-sub { margin-top: 10px; color: var(--fog); font-size: 16px; }
.sh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.sh-stats div { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.sh-stats dt { color: var(--fog); font-size: 12px; }
.sh-stats dd { margin: 4px 0 0; color: var(--paper); font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sh-label { color: var(--fog); font-size: 13px; font-weight: 600; }
.lang-list { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.lang-list li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; background: rgba(255, 255, 255, .03); transition: border-color .25s, background .25s, transform .25s; }
.lang-list li:hover { border-color: rgba(255, 138, 61, .5); background: rgba(255, 138, 61, .06); transform: translateX(4px); }
.lang-list strong { display: block; color: var(--paper); font-size: 18px; font-weight: 700; }
.lang-list li > span:nth-child(2) > span { color: var(--fog); font-size: 13px; }
.lang-list .check { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(39, 166, 68, .18); color: #5fd67c; font-size: 13px; font-weight: 800; }
.sh-note { margin-top: 14px; color: var(--fog); font-size: 13px; }
.land-head h2 .glow { display: inline-block; }

/* light motion inside the UCP and forum */
.ucp-content, .forum-page { animation: page-in .45s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tile { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .14); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8); }
.board, .topic, .feed-row, .char-card { transition: background .2s ease, transform .2s ease; }
.char-card:hover { transform: translateY(-2px); }

@media (max-width: 1100px) { .server-hero { grid-template-columns: minmax(0, 1fr); padding: 28px; } }
@media (max-width: 640px) {
  .sh-stats { grid-template-columns: 1fr 1fr; }
  .sh-stats div:first-child { grid-column: 1 / -1; }
  .unity { flex-wrap: wrap; border-radius: 18px; }
  .mq-item { font-size: 18px; }
  .land-nav-right { gap: 10px; margin-left: auto; }
  .land-nav-right .lang-switch { height: 30px; padding: 0 4px 0 8px; }
  .land-nav-right .lang-switch svg { display: none; }
  .land-nav-right .lang-switch select { font-size: 12px; padding: 0 2px; }
  .land-logo img { width: 104px; }
  .land-nav-right .button { padding: 0 12px; }
  .auth-lang { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .in, .hero-title .line .in, [data-reveal] { opacity: 1; transform: none; animation: none; transition: none; }
  .hero-orbs span, .hero-sparks, .marquee-track, .glow.animated, .scroll-cue span, .dot.pulse.on, .ucp-content, .forum-page { animation: none; }
  .hero-sparks { display: none; }
}

/* =====================================================================
   Landing v3 — four scripts instead of flag icons, scroll-linked motion
   ===================================================================== */
/* flag colours as thin bands, used under each language */
.tone-kr { --c1: #cd2e3a; --c2: #0047a0; --c3: #f4f4f4; }
.tone-jp { --c1: #f4f4f4; --c2: #bc002d; --c3: #f4f4f4; }
.tone-th { --c1: #a51931; --c2: #f4f5f8; --c3: #2d2a4a; }
.tone-cn { --c1: #de2910; --c2: #ffde00; --c3: #de2910; }
.tone-en { --c1: #ff8a3d; --c2: #f4f4f4; --c3: #ff4f58; }

.scripts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0; margin: 34px 0 0; padding: 0; list-style: none; }
.script { position: relative; padding: 0 26px 14px; color: var(--paper); font-size: clamp(26px, 3.2vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.script:first-child { padding-left: 0; }
.script button { all: unset; cursor: pointer; color: rgba(255, 255, 255, .42); transition: color .25s ease; }
.script button:hover, .script.on button { color: var(--paper); }
.script button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.script.on::after { transform: scaleX(1); }
.script + .script { border-left: 1px solid rgba(255, 255, 255, .16); }
.script::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--c1) 0 34%, var(--c2) 34% 67%, var(--c3) 67%); transform-origin: left; transform: scaleX(.35); transition: transform .5s cubic-bezier(.2, .7, .1, 1); }
.script:first-child::after { left: 0; }
.script:hover::after { transform: scaleX(1); }
.scripts.in .script:not(.on)::after { animation: bar-in 1.1s cubic-bezier(.2, .7, .1, 1) both; }
.scripts.in .script:nth-child(2)::after { animation-delay: .9s; } .scripts.in .script:nth-child(3)::after { animation-delay: 1s; } .scripts.in .script:nth-child(4)::after { animation-delay: 1.1s; } .scripts.in .script:nth-child(5)::after { animation-delay: 1.2s; }
.scripts.in .script:first-child::after { animation-delay: .8s; }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(.35); } }

/* scroll progress */
.scroll-progress { position: fixed; z-index: 40; inset: 0 0 auto; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* hero driven by scroll */
.hero-photo img { transform: translateY(var(--py, 0)) scale(var(--zoom, 1.08)); transition: none; }
[data-hero-inner] { transform: translateY(var(--lift, 0)); opacity: var(--fade, 1); will-change: transform, opacity; }

/* the giant script band */
.script-band { position: relative; overflow: hidden; padding: 28px 0 8px; background: #07070a; }
.script-band-track { display: flex; gap: .45em; width: max-content; font-size: clamp(80px, 13vw, 220px); font-weight: 900; line-height: 1; letter-spacing: -.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16); transform: translateX(var(--x, 0)); will-change: transform; }
.script-band-track span { padding-right: .45em; }
.script-band-track.alt { margin-left: -40vw; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; opacity: .9; }

/* server card grows out of the floor */
[data-grow] { transform: perspective(1400px) rotateX(calc((1 - var(--g, 1)) * 16deg)) scale(calc(.86 + var(--g, 1) * .14)); opacity: calc(.2 + var(--g, 1) * .8); transform-origin: 50% 100%; will-change: transform, opacity; }
.server-hero.spot:hover { transform: perspective(1400px) rotateX(calc((1 - var(--g, 1)) * 16deg)) scale(calc(.86 + var(--g, 1) * .14)); }
.lang-list li { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.lang-list .stripe { align-self: stretch; width: 6px; border-radius: 3px; background: linear-gradient(180deg, var(--c1) 0 34%, var(--c2) 34% 67%, var(--c3) 67%); }
.lang-list strong { font-size: 22px; }
.lang-country { color: var(--fog); font-size: 13px; }

/* reveal becomes a wipe upward */
[data-reveal] { opacity: 1; transform: translateY(46px); clip-path: inset(0 0 100% 0); transition: clip-path .9s cubic-bezier(.2, .7, .1, 1) var(--d, 0ms), transform .9s cubic-bezier(.2, .7, .1, 1) var(--d, 0ms); }
[data-reveal].shown { transform: none; clip-path: inset(-20px -20px -20px -20px); }

/* join steps: a line draws as you scroll, steps light up */
.steps { position: relative; }
.steps-line { position: absolute; z-index: 0; left: 50px; top: 30px; bottom: 30px; width: 2px; background: rgba(255, 255, 255, .08); }
.steps-line span { display: block; width: 100%; height: calc(var(--fill, 0) * 100%); background: linear-gradient(180deg, #ff4f58, #ffb547); box-shadow: 0 0 12px rgba(255, 120, 70, .7); }
.steps li { position: relative; z-index: 1; opacity: .45; transition: opacity .4s ease, border-color .4s ease, background .4s ease; background: #0c0b10; }
.steps li.lit { opacity: 1; border-color: rgba(255, 138, 61, .35); }
.steps li .step-n { transition: filter .4s ease, transform .4s ease; }
.steps li.lit .step-n { filter: drop-shadow(0 0 14px rgba(255, 110, 70, .6)); transform: scale(1.05); }

@media (max-width: 640px) {
  .scripts { gap: 12px 22px; }
  .script, .script:first-child { padding: 0 0 12px; font-size: 26px; }
  .script + .script { border-left: 0; }
  .script::after, .script:first-child::after { left: 0; right: 0; }
  .steps-line { left: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { clip-path: none; transform: none; transition: none; }
  [data-grow] { transform: none; opacity: 1; }
  .steps li { opacity: 1; }
  [data-hero-inner] { transform: none; opacity: 1; }
}

/* ---------- mod 159–161 pages: tickets, sanctions, leases, staff, factions, notifications ---------- */
.badge-ck { background: rgba(255, 255, 255, .08); color: var(--fog); text-decoration: line-through; text-decoration-color: rgba(235, 87, 87, .6); }
.box-head > span.dim { margin-left: auto; font-size: 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.wealth .account-no { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--smoke) !important; }
.wealth.cols-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
.wealth.cols-2 div + div { border-top: 0; }
.table-wrap { overflow-x: auto; }
.table td.num, .table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.jobs { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.jobs li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 52px 56px; align-items: center; gap: 12px; font-size: 14px; }
.jobs .job-name { color: var(--mist); }
.jobs strong { color: var(--paper); text-align: right; }
.jobs .dim { text-align: right; font-size: 12px; }
meter { width: 100%; height: 8px; border: 0; border-radius: 9999px; background: var(--wash-2); appearance: none; -webkit-appearance: none; }
meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: 9999px; background: var(--wash-2); }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value { border-radius: 9999px; background: var(--grad); }
meter::-moz-meter-bar { border-radius: 9999px; background: var(--grad); }

.ticket-list { margin: 0; padding: 0; list-style: none; }
.ticket-list li + li { border-top: 1px solid var(--graphite); }
.ticket-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 20px; transition: background .2s ease; }
.ticket-list a:hover { background: var(--wash); text-decoration: none; }
.ticket-no { color: var(--fog); font-variant-numeric: tabular-nums; font-weight: 600; }
.ticket-main { display: grid; min-width: 0; }
.ticket-main strong { color: var(--paper); font-size: 14px; }
.ticket-snippet { overflow: hidden; color: var(--fog); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-meta { display: grid; justify-items: end; gap: 4px; font-size: 12px; }
.ticket-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.thread-msgs { display: grid; gap: 12px; margin: 0; padding: 20px; list-style: none; }
.msg { max-width: 80%; padding: 12px 14px; border: 1px solid var(--graphite); border-radius: 12px 12px 12px 4px; background: var(--wash); }
.msg.staff { justify-self: end; border-color: rgba(255, 138, 61, .35); border-radius: 12px 12px 4px 12px; background: linear-gradient(135deg, rgba(255, 79, 88, .12), rgba(255, 173, 59, .08)); }
.msg-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: 12px; }
.msg-head strong { color: var(--paper); }
.msg-head time { color: var(--fog); }
.msg p { margin: 0; color: var(--mist); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-form { border-top: 1px solid var(--graphite); }
.reply-form textarea { width: 100%; }
.reply-form .form-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.reply-form .form-actions button { margin-left: auto; }
button.block, .button.block { width: 100%; justify-content: center; }

.sanction { padding: 16px 20px; }
.sanction + .sanction { border-top: 1px solid var(--graphite); }
.sanction.active { box-shadow: inset 3px 0 0 var(--red); }
.sanction p { margin: 6px 0 12px; color: var(--mist); }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--graphite); }
.people li { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--carbon); }
.people strong { color: var(--paper); font-size: 14px; }
.people .pill-state { margin-left: auto; }
.faction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 20px; list-style: none; }
.faction-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--graphite); border-radius: 10px; background: var(--wash); transition: transform .2s ease, border-color .2s ease; }
.faction-card:hover { transform: translateY(-2px); border-color: var(--smoke); }
.faction-card strong { color: var(--paper); font-size: 14px; }
.faction-card .dim { grid-column: 2; font-size: 12px; }
.faction-ico { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(99, 102, 241, .14); }
.faction-ico .ico { fill: none; stroke: #a5a8ff; stroke-width: 1.6; }
.faction-card.tone-illegal .faction-ico { background: rgba(235, 87, 87, .14); }
.faction-card.tone-illegal .faction-ico .ico { stroke: #ff8f86; }
.faction-card.tone-company .faction-ico { background: rgba(255, 173, 59, .14); }
.faction-card.tone-company .faction-ico .ico { stroke: var(--accent); }
.tag.faction-only { margin-left: 6px; vertical-align: 2px; background: rgba(99, 102, 241, .16); color: #a5a8ff; }
.subforums li.faction-only a::before { content: "◆ "; color: #a5a8ff; font-size: 10px; }

.public-page { min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, rgba(255, 79, 88, .12), transparent 60%), var(--void); }
.public-top { display: flex; align-items: center; gap: 24px; max-width: var(--max); margin: 0 auto; padding: 16px 24px; }
.public-top nav { display: flex; gap: 18px; }
.public-top nav a { color: var(--fog); font-size: 14px; }
.public-top nav a[aria-current="page"], .public-top nav a:hover { color: var(--paper); text-decoration: none; }
.public-top .land-nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.public-main { max-width: var(--max); margin: 0 auto; padding: 24px 24px 64px; }
.public-main h1 { margin: 12px 0 24px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; }

.notify { position: relative; }
.notify summary { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-ctl); color: var(--mist); cursor: pointer; list-style: none; }
.notify summary::-webkit-details-marker { display: none; }
.notify summary:hover, .notify[open] summary { background: var(--wash-2); }
.notify summary .ico { fill: none; stroke: currentColor; stroke-width: 1.6; }
.notify-count { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9999px; background: var(--hot); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.notify-count[hidden] { display: none; }
.notify-panel { position: absolute; right: 0; top: 40px; z-index: 30; width: min(340px, 86vw); max-height: 420px; overflow-y: auto; padding: 4px; border: 1px solid var(--graphite); border-radius: 10px; background: var(--obsidian); box-shadow: rgba(8, 9, 10, .6) 0 4px 32px; }
.notify-panel ul { margin: 0; padding: 0; list-style: none; }
.notify-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 6px; }
.notify-panel a:hover { background: var(--wash-2); text-decoration: none; }
.notify-panel strong { color: var(--paper); font-size: 13px; font-weight: 600; }
.notify-panel span { color: var(--mist); font-size: 13px; overflow-wrap: anywhere; }
.notify-panel time { color: var(--fog); font-size: 11px; }
.notify-panel li.unread a { box-shadow: inset 2px 0 0 var(--accent); }
.notify-empty { margin: 0; padding: 18px; color: var(--fog); font-size: 13px; text-align: center; }

@media (max-width: 1100px) { .ticket-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ticket-list a { grid-template-columns: 48px minmax(0, 1fr); }
  .ticket-meta { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 8px; }
  .msg { max-width: 92%; }
  .jobs li { grid-template-columns: 72px minmax(0, 1fr) 44px; }
  .jobs .dim { display: none; }
  .public-top { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .public-top nav { order: 3; width: 100%; }
  .public-main { padding: 12px 16px 48px; }
}
/* Staff ticket queue: refs (report-000041) stay on one line in one fixed column; on phones the ref is a small kicker above the title. */
#queue .ticket-no { white-space: nowrap; }
#queue .ticket-list a { grid-template-columns: 120px minmax(0, 1fr) auto; }
@media (max-width: 640px) {
  #queue .ticket-list a { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  #queue .ticket-no { font-size: 12px; }
  #queue .ticket-meta { grid-column: 1; }
}
.table.compact th, .table.compact td { padding-left: 14px; padding-right: 14px; }
.table .cell-main { display: block; color: var(--paper); }
.table .cell-sub { display: block; color: var(--fog); font-size: 12px; }
@media (max-width: 640px) {
  .notify-panel { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; }
  .ucp-top-right > .nav-plain { display: none; }
  .ucp-top h1 { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
}
/* The title keeps the same line breaks while the web font loads: one line on wide screens, word per line on phones. */
@media (max-width: 640px) {
  .hero-title { font-size: clamp(48px, 15vw, 72px); }
  .hero-title .line:first-child > span { width: min-content; white-space: normal; }
}

/* ---------- requests (server request 15) ---------- */
.field .label { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--mist); font-size: 13px; font-weight: 510; }
[data-member-count].ok { color: #4cc46a; }
.member-add { display: flex; gap: 8px; }
.member-add input { flex: 1; }
.member-chips { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.member-chips li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border: 1px solid var(--graphite); border-radius: 10px; background: var(--wash); animation: chip-in .25s ease both; }
.member-chips li strong { color: var(--paper); font-size: 14px; }
.member-chips li button { margin-left: auto; min-height: 28px; padding: 0 10px; font-size: 16px; }
@keyframes chip-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.request-body { color: var(--mist); white-space: pre-wrap; overflow-wrap: anywhere; }
.invite-box p { margin: 0 0 12px; color: var(--mist); }
.invite-box .form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.chatlog { margin: 0; padding: 12px 20px; list-style: none; font: 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.chatlog li { display: grid; grid-template-columns: 72px 56px minmax(0, 1fr); gap: 10px; padding: 2px 0; color: var(--mist); }
.chatlog time { color: var(--fog); }
.chatlog .ch { color: var(--ash); }
.chatlog .ch-me span:last-child, .chatlog .ch-do span:last-child { color: #c9a7ff; }
.chatlog .ch-radio span:last-child { color: #7fd1ae; }
.chatlog .ch-pm span:last-child, .chatlog .ch-phone span:last-child { color: #ffcf7a; }
.content-actions input[type="date"] { width: auto; }
/* Phones: header tools (chat log character, day, download) wrap and share the line instead of running off the left edge. */
@media (max-width: 640px) { .content-actions { flex-wrap: wrap; } .content-actions > :not(.sr-only):not(.button.primary) { flex: 1 1 140px; min-width: 0; } .content-actions input[type="date"] { width: 100%; } }
@media (max-width: 640px) { .chatlog li { grid-template-columns: 60px minmax(0, 1fr); } .chatlog .ch { display: none; } }

/* ---------- member profiles (request 17) ---------- */
.accent-amber { --acc: #ffad3b; --acc2: #ff8a3d; } .accent-crimson { --acc: #ff4f58; --acc2: #c2185b; } .accent-violet { --acc: #8b7bff; --acc2: #5b4bd6; }
.accent-teal { --acc: #2ec4b6; --acc2: #12807a; } .accent-blue { --acc: #4f8cff; --acc2: #2a5bd7; } .accent-green { --acc: #4cc46a; --acc2: #1f8a46; }
.avatar { display: inline-grid; place-items: center; flex: none; width: var(--av, 40px); height: var(--av, 40px); border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--acc, #ffad3b), var(--acc2, #ff4f58)); color: #170b05; font-weight: 800; font-size: calc(var(--av, 40px) * .42); line-height: 1; box-shadow: 0 0 0 2px rgba(255, 255, 255, .06); }
.avatar.size-28 { --av: 28px; } .avatar.size-36 { --av: 36px; } .avatar.size-40 { --av: 40px; } .avatar.size-88 { --av: 88px; } .avatar.size-120 { --av: 120px; }
img.avatar { background: var(--obsidian); }
.ucp-who .avatar { box-shadow: 0 0 0 2px var(--carbon), 0 0 0 4px rgba(255, 255, 255, .08); }

/* Forum post author column */
.post { grid-template-columns: 200px minmax(0, 1fr); }
.post-author { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--acc, #ffad3b) 9%, transparent), transparent 70%); }
.post-author .avatar { box-shadow: 0 0 0 3px var(--carbon), 0 0 0 5px color-mix(in srgb, var(--acc, #ffad3b) 55%, transparent); }
.post-author-text { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.post-author-text strong, .author-link { color: var(--paper); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.author-link:hover { color: var(--acc, var(--accent)); text-decoration: none; }
.tag.op { background: color-mix(in srgb, var(--acc, #ffad3b) 18%, transparent); color: var(--acc, var(--accent)); }
.author-facts { display: grid; gap: 2px; margin: 4px 0 0; font-size: 12px; }
.author-facts div { display: flex; justify-content: center; gap: 6px; }
.author-facts dt { color: var(--ash); }
.author-facts dd { margin: 0; color: var(--mist); font-variant-numeric: tabular-nums; }
.signature { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--smoke); color: var(--fog); font-size: 13px; max-height: 180px; overflow: hidden; }
@media (max-width: 640px) {
  .post-author { flex-direction: row; align-items: center; text-align: left; padding: 14px 16px 0; background: none; }
  .post-author .avatar.size-88 { --av: 40px; }
  .post-author-text { justify-items: start; grid-auto-flow: column; align-items: center; gap: 8px; }
  .author-facts { display: none; }
}

/* Member profile page */
.member-hero { overflow: hidden; border: 1px solid var(--graphite); border-radius: var(--r-box); background: var(--carbon); }
.member-cover { position: relative; height: clamp(140px, 22vw, 260px); background: radial-gradient(120% 140% at 0% 0%, var(--acc), transparent 55%), radial-gradient(120% 140% at 100% 100%, var(--acc2), transparent 55%), #121316; }
.member-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15, 16, 17, .85)); }
.member-head { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 20px; margin-top: -60px; padding: 0 28px; }
.member-head .avatar { box-shadow: 0 0 0 5px var(--carbon); }
.member-title { flex: 1; min-width: 0; padding-bottom: 6px; }
.member-title h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.member-title p { margin: 2px 0 0; }
.member-head .button { margin-bottom: 10px; }
.member-stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 0; padding: 20px 28px 24px; }
.member-stats dt { color: var(--fog); font-size: 12px; }
.member-stats dd { margin: 2px 0 0; color: var(--paper); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.member-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .member-grid { grid-template-columns: minmax(0, 1fr); } .member-head { flex-wrap: wrap; padding: 0 18px; } .member-stats { gap: 20px; padding: 16px 18px 20px; } }

/* UCP profile editor */
.profile-editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.pe-main { overflow: hidden; }
.pe-main { overflow: clip; } /* clip, not hidden: hidden makes a scroll box and the save bar could not stick */
.pe-cover { position: relative; height: 200px; background: radial-gradient(120% 140% at 0% 0%, var(--acc), transparent 55%), radial-gradient(120% 140% at 100% 100%, var(--acc2), transparent 55%), #121316; }
.pe-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-cover-tools { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.pe-cover-tools .button, .pe-cover-tools button { backdrop-filter: blur(8px); background: rgba(8, 9, 10, .6); }
.button.small, button.small { min-height: 30px; padding: 0 12px; font-size: 12px; cursor: pointer; }
.pe-identity { display: flex; align-items: flex-end; gap: 18px; margin-top: -56px; padding: 0 24px; }
.pe-identity h2 { margin: 0; font-size: 22px; }
.pe-identity p { margin: 0; }
.pe-avatar { position: relative; cursor: pointer; border-radius: 50%; }
.pe-avatar .avatar { box-shadow: 0 0 0 5px var(--carbon); }
.pe-avatar-edit { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); color: #111; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.pe-avatar-edit .ico { fill: none; stroke: currentColor; stroke-width: 1.8; }
.pe-avatar:hover .avatar { filter: brightness(.85); }
.pe-upload-error { padding: 0 24px; }
.swatches { display: flex; gap: 10px; }
.swatch { position: relative; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--acc), var(--acc2)); cursor: pointer; transition: transform .15s ease; }
.swatch:hover { transform: scale(1.08); }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--carbon), 0 0 0 4px var(--paper); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; color: var(--mist); font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.pe-sticky { position: sticky; top: 24px; }
.pe-post { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.pe-post .post-author { padding: 18px 10px; }
@media (max-width: 1100px) { .profile-editor { grid-template-columns: minmax(0, 1fr); } .pe-sticky { position: static; } }
@media (max-width: 640px) { .field-pair { grid-template-columns: 1fr; } .pe-identity { padding: 0 16px; } }
.post-author span.avatar, .pe-identity span.avatar, .member-head span.avatar, .ucp-who span.avatar, summary span.avatar { color: #170b05; font-size: calc(var(--av, 40px) * .42); font-weight: 800; }
.pe-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15, 16, 17, .7)); pointer-events: none; }
.pe-cover-tools { z-index: 1; }
.pe-identity { position: relative; z-index: 1; }
.pe-identity > div { padding-top: 64px; }
@media (max-width: 640px) { .post, .pe-post { grid-template-columns: minmax(0, 1fr); } .post-author { border-right: 0; } }

/* ---------- 내 계정: one page, sticky section list ---------- */
.account-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1180px; }
.account-side { position: sticky; top: 24px; display: grid; gap: 16px; }
.account-who { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid var(--graphite); }
.account-who strong { display: block; color: var(--paper); font-size: 15px; }
.account-who span:not(.avatar) { color: var(--fog); font-size: 12px; }
.account-nav { display: grid; gap: 2px; }
.account-nav a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 8px; color: var(--mist); font-size: 14px; transition: background .15s ease, color .15s ease; }
.account-nav a .ico { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .8; }
.account-nav a:hover { background: var(--wash-2); color: var(--paper); text-decoration: none; }
.account-nav a[aria-current] { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--paper); box-shadow: inset 2px 0 0 var(--accent); }
.account-nav .account-out { margin-top: 8px; color: var(--fog); }
.account-sections { display: grid; gap: 24px; min-width: 0; }
.account-section { scroll-margin-top: 24px; overflow: clip; }
.account-section .pe-cover { border-radius: 0; }
.pe-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; }
.pe-preview { padding: 20px; border-left: 1px solid var(--graphite); }
.pe-preview .mini { margin: 0 0 10px; }
.pe-preview .pe-post { border: 1px solid var(--graphite); border-radius: 10px; overflow: hidden; grid-template-columns: minmax(0, 1fr); }
.pe-preview .post-author { border-right: 0; border-bottom: 1px solid var(--graphite); }
.pref-rows { display: grid; gap: 0; padding-top: 4px; padding-bottom: 4px; }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.pref-row + .pref-row { border-top: 1px solid var(--graphite); }
.pref-row strong { display: block; color: var(--paper); font-size: 14px; }
.pref-row .dim { font-size: 12px; }
@media (max-width: 1100px) { .pe-body { grid-template-columns: minmax(0, 1fr); } .pe-preview { border-left: 0; border-top: 1px solid var(--graphite); } }
@media (max-width: 900px) {
  .account-page { grid-template-columns: minmax(0, 1fr); }
  .account-side { position: sticky; top: 0; z-index: 5; margin: 0 -16px; padding: 8px 16px; background: rgba(8, 9, 10, .9); backdrop-filter: blur(10px); }
  .account-who { display: none; }
  .account-nav { display: flex; overflow-x: auto; gap: 4px; }
  .account-nav a { flex: none; min-height: 34px; }
  .account-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
}

/* ---------- linked identities, VPN, staff account inspector (request 18) ---------- */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--graphite); border-radius: 12px; background: var(--wash); }
.link-card.pending { border-color: rgba(242, 201, 76, .5); background: rgba(242, 201, 76, .06); }
.link-logo { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; color: #fff; font-weight: 800; }
.brand-steam { background: linear-gradient(135deg, #1b2838, #2a475e); } .brand-discord { background: #5865f2; } .brand-cfx { background: #f40552; }
.brand-rockstar { background: #fcaf17; color: #111; } .brand-xbox { background: #107c10; } .brand-other { background: var(--smoke); }
.link-main { display: grid; min-width: 0; flex: 1; }
.link-main strong { color: var(--paper); font-size: 14px; }
.link-main .dim { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.link-main code, .sec-rows code, code.copy { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; color: var(--mist); overflow: hidden; text-overflow: ellipsis; }
.link-actions { display: flex; gap: 6px; }
.note.warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: rgba(242, 201, 76, .1); color: var(--amber); font-size: 13px; }
.sec-rows { border-top: 1px solid var(--graphite); }
.sec-rows .pref-row .dim { display: block; }
.inline-confirm { display: flex; gap: 8px; }
.inline-confirm input { width: 180px; }
code.copy { cursor: copy; padding: 2px 6px; border-radius: 6px; background: var(--wash-2); }
code.copy.copied { background: rgba(39, 166, 68, .2); color: #4cc46a; }
.search-box { display: flex; gap: 8px; padding: 12px; }
.search-box input { flex: 1; }
.alt-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.alt-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; }
.alt-list li + li { border-top: 1px solid var(--graphite); }
.alt-list li.alt { box-shadow: inset 3px 0 0 var(--red); }
.alt-list li.shared { box-shadow: inset 3px 0 0 #4cc46a; }
.alt-list li button { margin-left: auto; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.chip { padding: 2px 8px; border-radius: 9999px; background: var(--wash-2); color: var(--mist); font-size: 11px; font-weight: 600; }
.chip.kind-steam { background: rgba(42, 71, 94, .5); } .chip.kind-discord { background: rgba(88, 101, 242, .25); } .chip.kind-fivem { background: rgba(244, 5, 82, .2); }
.chip.kind-license, .chip.kind-license2 { background: rgba(252, 175, 23, .2); } .chip.kind-token { background: rgba(235, 87, 87, .25); color: #ff8f86; } .chip.kind-ip { background: rgba(255, 255, 255, .06); }
@media (max-width: 640px) { .inline-confirm { flex-direction: column; } .inline-confirm input { width: 100%; } .sec-rows .pref-row { flex-direction: column; align-items: stretch; } }
.link-card { flex-wrap: wrap; }
.link-card .link-actions { flex-basis: 100%; justify-content: flex-end; }

/* ---------- request 19: IP warning (never a block) ---------- */
.mb-24 { margin-bottom: 24px; }
.ip-warn { margin-top: 14px; border: 1px solid rgba(242, 201, 76, .3); border-radius: var(--r-box); background: linear-gradient(180deg, rgba(242, 201, 76, .07), rgba(242, 201, 76, .02)); overflow: hidden; }
.ip-warn header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(242, 201, 76, .18); }
.ip-warn header strong { color: var(--amber); font-size: 14px; }
.ip-warn-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--amber); color: #1a1406; font-size: 13px; font-weight: 700; }
.ip-warn-n { margin-left: auto; color: var(--amber); font-variant-numeric: tabular-nums; font-size: 13px; }
.ip-warn > ul { margin: 0; padding: 0; list-style: none; }
.ip-warn > ul > li { padding: 10px 16px; }
.ip-warn > ul > li + li { border-top: 1px solid rgba(242, 201, 76, .1); }
.ip-warn-who { display: flex; align-items: center; gap: 8px; }
.ip-warn-who a, .ip-warn-who strong { color: var(--paper); font-weight: 590; }
.ip-pairs { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ip-pairs li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; }
.ip-pairs code { color: var(--mist); }
.ip-pair { display: inline-flex; align-items: center; gap: 6px; color: var(--fog); }
.ip-pair span { color: var(--amber); }

/* signup RP scenarios: applicant form and staff review */
.auth-scenarios { display: grid; gap: 14px; margin: 6px 0 4px; padding-top: 14px; border-top: 1px solid var(--graphite); }
.auth-sub { font-size: 14px; font-weight: 590; color: var(--paper); }
.auth-field.scenario label { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.scenario-no { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: var(--wash-2); color: var(--accent); font-size: 12px; font-weight: 590; }
.auth-field.scenario textarea { width: 100%; resize: vertical; min-height: 110px; }
.scenario-img { width: 100%; border-radius: 8px; margin: 6px 0; }
.helper.counter { text-align: right; font-variant-numeric: tabular-nums; }
.answers { margin-top: 12px; border: 1px solid var(--graphite); border-radius: 8px; }
.answers summary { padding: 10px 14px; cursor: pointer; color: var(--mist); font-size: 13px; font-weight: 510; }
.answers.open { border: 0; }
.answer { padding: 10px 14px; border-top: 1px solid var(--graphite); }
.answers.open .answer:first-child { border-top: 0; }
.answer-q { display: flex; align-items: center; color: var(--fog); font-size: 12px; }
.answer-a { margin-top: 4px; color: var(--mist); white-space: pre-wrap; line-height: 1.6; }
.totp-field input { letter-spacing: .3em; font-variant-numeric: tabular-nums; }

/* character finance */
.share { display: grid; gap: 6px; padding-top: 0; }
.share-bar { height: 6px; border-radius: 3px; background: var(--wash-2); overflow: hidden; }
.share-bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .6s ease; }
.tx .pos { color: #4cc26a; }
.tx .neg { color: var(--red); }

/* my factions */
.faction-box .box-head { gap: 10px; }
.faction-box .box-head .button { margin-left: auto; }
.faction-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--graphite); border-bottom: 1px solid var(--graphite); }
.faction-stats div { display: grid; gap: 2px; padding: 14px 20px; background: var(--carbon); }
.faction-stats span { color: var(--fog); font-size: 12px; }
.faction-stats strong { color: var(--paper); font-size: 18px; font-weight: 590; font-variant-numeric: tabular-nums; }
.faction-stats strong.on { color: #4cc26a; }
.dot-state { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ash); vertical-align: 1px; }
.dot-state.on { background: #4cc26a; box-shadow: 0 0 0 3px rgba(76, 194, 106, .18); }

/* properties and market */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.prop-grid { align-items: start; }
.prop-grid > .box { margin-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--graphite); }
.filters input[type="search"] { flex: 1 1 200px; min-width: 0; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--graphite); border-radius: 8px; background: var(--void); }
.seg button, .seg label { min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--fog); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--obsidian); color: var(--paper); }
.market-count { padding: 10px 16px 0; font-size: 12px; }
.market { margin: 0; padding: 6px 0; list-style: none; }
.market li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 16px; }
.market li:hover { background: var(--wash); }
.market-main { display: grid; min-width: 0; }
.market-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--paper); font-weight: 510; }
.market-main .dim { font-size: 12px; }
.market-tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 590; }
.market-tag.sale { background: rgba(255, 138, 61, .14); color: #ffad6b; }
.market-tag.lease { background: rgba(99, 102, 241, .16); color: #a5a7ff; }
.market-price { color: var(--paper); }
.center { text-align: center; }

/* recruitment portal */
.recruit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.recruit-card { display: grid; grid-template-rows: 120px auto; overflow: hidden; border: 1px solid var(--graphite); border-radius: var(--r-box); background: var(--carbon); color: inherit; transition: border-color .15s, transform .15s; }
.recruit-card:hover { border-color: var(--smoke); transform: translateY(-2px); }
.recruit-card.closed { opacity: .6; }
.recruit-card img { width: 100%; height: 120px; object-fit: cover; }
.recruit-mark { display: grid; place-items: center; background: var(--grad); color: #1b0d05; font-size: 44px; font-weight: 700; }
.recruit-body { display: grid; gap: 6px; padding: 14px 16px; justify-items: start; }
.recruit-body strong { color: var(--paper); font-size: 15px; }
.recruit-banner { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-box) var(--r-box) 0 0; }
.prose-text { white-space: pre-wrap; color: var(--mist); line-height: 1.7; }
.req { color: var(--hot); }
.q-list { margin: 0 0 12px; padding: 0 0 0 20px; display: grid; gap: 10px; }
.q-list .field-row { align-items: center; flex-wrap: wrap; }
.q-list .field-row input[data-q-label] { flex: 1 1 200px; }
.q-list input[data-q-options] { width: 100%; }

/* tickets: details and staff internal notes */
.ticket-details { border-top: 1px solid var(--graphite); }
.evidence { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.evidence a { color: var(--accent); word-break: break-all; }
.msg.internal { border-style: dashed; background: rgba(242, 201, 76, .05); border-color: rgba(242, 201, 76, .3); }
.tab-select { margin-left: auto; align-self: center; height: 32px; }

/* account settings */
.inline-confirm.stack { flex-wrap: wrap; justify-content: flex-end; }
.totp-setup summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; width: 100%; }
.totp-setup summary::-webkit-details-marker { display: none; }
.totp-setup[open] { display: block; }
.totp-form { padding-top: 12px; }
.totp-steps { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 10px; color: var(--mist); font-size: 13px; }
.totp-secret { display: block; margin: 6px 0; padding: 10px 12px; border-radius: 6px; background: var(--void); color: var(--paper); font-size: 15px; letter-spacing: .08em; cursor: copy; word-break: break-all; }
.small-link { font-size: 12px; color: var(--accent); }

/* UCP home cards */
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.home-card { position: relative; display: grid; min-height: 120px; overflow: hidden; border: 1px solid var(--graphite); border-radius: var(--r-box); background: var(--carbon); color: inherit; }
.home-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.home-card-body { position: relative; align-self: end; display: grid; gap: 4px; padding: 16px; background: linear-gradient(0deg, rgba(8, 9, 10, .9), transparent); }
.home-card-body strong { color: var(--paper); font-size: 15px; }
.home-card-body span { color: var(--mist); font-size: 13px; }
.home-card.kind-banner { grid-column: 1 / -1; min-height: 160px; }
a.home-card:hover { border-color: var(--smoke); }

@media (max-width: 720px) {
  .market li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .market li button { display: none; }
  .prop-grid, .recruit-grid { grid-template-columns: 1fr; }
  .inline-confirm.stack { justify-content: flex-start; }
  .pref-row:has(.inline-confirm.stack) { flex-direction: column; align-items: stretch; }
  .tab-select { margin: 8px 0; }
}
.listing-rows .feed-row { display: flex; align-items: center; gap: 10px; }
.listing-rows .feed-row > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- point shop (request 21) ---------- */
.points-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid rgba(255, 173, 59, .3); border-radius: 999px; background: rgba(255, 173, 59, .08); color: var(--accent); font-size: 13px; font-weight: 600; }
.points-chip:hover { text-decoration: none; background: rgba(255, 173, 59, .14); }
.pts { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.pts-balance { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 6px 12px; border: 1px solid rgba(255, 173, 59, .3); border-radius: 10px; background: rgba(255, 173, 59, .06); }
.pts-balance span { color: var(--fog); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.pts-balance strong { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 20px; }
.shop-hero .box-head p { margin: 2px 0 0; font-size: 13px; }
/* Packs: one bordered list of radio rows (DESIGN: no card grids) + an order summary; selection is a tint and a filled radio. */
.pack-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding: 20px; }
.pack-list { display: flex; flex-direction: column; border: 1px solid var(--graphite); border-radius: 12px; overflow: hidden; }
.pack { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 18px; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; white-space: normal; }
.pack + .pack { border-top: 1px solid var(--graphite); }
.pack:hover { background: var(--wash); border-color: var(--graphite); }
.pack:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pack[aria-checked="true"] { background: rgba(255, 173, 59, .07); }
.pack-radio { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--smoke); border-radius: 50%; }
.pack[aria-checked="true"] .pack-radio { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--carbon); }
.pack-gem { display: inline-flex; flex: none; color: #c98a5a; }
.pack.tier-1 .pack-gem { color: #b9c0cc; } .pack.tier-2 .pack-gem { color: var(--amber); } .pack.tier-3 .pack-gem { color: #5aa9ff; } .pack.tier-4 .pack-gem { color: #a77bff; }
.pack-amount { display: flex; flex: 1; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.pack-amount strong { color: var(--paper); font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.011em; }
.pack[aria-checked="true"] .pack-amount strong { color: var(--accent); }
.pack-unit { color: var(--fog); font-size: 13px; }
.pack-bonus { flex: none; padding: 2px 9px; border-radius: 999px; background: rgba(255, 173, 59, .12); color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pack-price { flex: none; min-width: 92px; color: var(--paper); font-size: 15px; font-weight: 600; text-align: right; }
.pack-side { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--graphite); border-radius: 12px; background: var(--obsidian); }
.pack-side-title { margin: 0; color: var(--paper); font-size: 14px; font-weight: 600; }
.pack-pick-label { margin: 0; color: var(--fog); font-size: 13px; }
.pack-sum { display: grid; gap: 8px; margin: 0; }
.pack-sum div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.pack-sum dt { color: var(--fog); }
.pack-sum dd { margin: 0; color: var(--mist); font-variant-numeric: tabular-nums; }
.pack-sum-bonus dd { color: var(--accent); }
.pack-sum-total { padding-top: 10px; border-top: 1px solid var(--graphite); }
.pack-sum-total + .pack-sum-total { padding-top: 0; border-top: 0; }
.pack-sum-total dd strong { color: var(--paper); font-size: 18px; font-weight: 600; }
.pack-gift .check { margin: 0; }
.pack-gift .field { margin: 10px 0 0; }
.shop-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.shop-help .box + .box { margin-top: 0; }
.shop-help p { margin: 0; font-size: 13px; color: var(--fog); }
.shop-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.shop-tabs button[aria-selected="true"] { background: var(--accent); color: #170b05; border-color: transparent; }
.tier-box { overflow: hidden; }
.tier-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tier-table th, .tier-table td { padding: 12px 14px; border-top: 1px solid var(--graphite); text-align: center; vertical-align: middle; }
.tier-table thead th { border-top: 0; vertical-align: top; }
.tier-table tbody th { text-align: left; font-weight: 400; }
.tier-table tbody th strong { display: block; color: var(--paper); font-weight: 510; }
.tier-table tbody th .dim { display: block; font-size: 12px; }
.perk-head { text-align: left !important; min-width: 240px; }
.perk-head strong { display: block; color: var(--accent); font-size: 12px; letter-spacing: .06em; }
.perk-head .dim { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; }
.tier-col { --tier: var(--fog); position: relative; min-width: 130px; border-top: 3px solid var(--tier) !important; }
.tier-col > * { display: block; margin: 4px auto 0; }
.tier-col.popular { background: rgba(255, 255, 255, .025); }
.tier-flag { width: max-content; padding: 0 8px; border-radius: 999px; background: var(--wash-2); color: var(--paper); font-size: 10px; letter-spacing: .06em; }
.tier-name { color: var(--tier); font-size: 15px; font-weight: 600; }
.tier-col.free .tier-name { color: var(--mist); }
.tier-scope { color: var(--ash); font-size: 10px; letter-spacing: .06em; }
.tier-price { font-size: 13px; }
.tier-col .badge, .tier-col button { margin-top: 8px; }
.perk-section th { padding-top: 18px !important; color: var(--accent); font-size: 11px; font-weight: 600 !important; letter-spacing: .08em; text-align: left !important; background: var(--wash); }
.perk-yes { display: inline-flex; color: #4cc46a; }
.perk-no { color: var(--ash); }
.perk-val { color: var(--paper); font-weight: 510; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 20px; }
.shop-item { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--graphite); border-radius: 12px; background: var(--obsidian); }
.shop-item-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(255, 173, 59, .08); color: var(--accent); }
.shop-item-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.shop-item h3 { font-size: 14px; }
.shop-item p { flex: 1; margin: 4px 0 10px; font-size: 12px; }
.shop-item-foot { display: flex; align-items: center; gap: 6px; }
.shop-item-foot button { margin-left: auto; width: 32px; padding: 0; border-radius: 999px; border-color: rgba(255, 173, 59, .4); color: var(--accent); }
.shop-tip { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; border: 1px dashed var(--smoke); border-radius: 12px; color: var(--accent); }
.shop-tip strong { color: var(--paper); font-weight: 510; }
.shop-tip:hover { text-decoration: none; background: var(--wash); }
.shop-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; color: inherit; }
.shop-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.shop-sum { display: grid; gap: 8px; margin: 0 0 16px; }
.shop-sum div { display: flex; justify-content: space-between; }
.shop-sum dt { color: var(--fog); font-size: 13px; }
.shop-sum dd { margin: 0; }
.shop-sum dd.neg .pts { color: var(--red); }
.form-narrow-box { max-width: 520px; }
@media (max-width: 1180px) { .pack-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .pack { gap: 10px; padding: 12px 14px; }
  .shop-help { grid-template-columns: minmax(0, 1fr); }
  .shop-top { flex-direction: column; align-items: stretch; }
  .pts-balance { align-items: flex-start; }
  .points-chip { display: none; }
}
@media (max-width: 480px) {
  .pack { gap: 8px; padding: 12px; }
  .pack-gem, .pack-unit { display: none; }
  .pack-amount strong { font-size: 18px; }
  .pack-bonus { padding: 2px 7px; font-size: 11px; }
  .pack-price { min-width: 0; font-size: 14px; }
}
.pts .ico, .pts-balance .ico, .points-chip .ico, .pack-gem .ico, .perk-yes .ico, .shop-item-ico .ico, .shop-item-foot .ico, .shop-tip .ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty-ico .ico { stroke-linejoin: round; }
.shop-wallet { display: flex; align-items: center; gap: 12px; }
@media (max-width: 900px) { .shop-wallet { justify-content: space-between; } }
/* The identity row overlaps the cover's bottom edge: let clicks through its empty area to "커버 바꾸기". */
.pe-identity { pointer-events: none; }
.pe-identity > * { pointer-events: auto; }
.pe-cover-tools { z-index: 2; }
.pass-count { display: inline-flex; width: max-content; margin-top: 4px; padding: 0 8px; border-radius: 999px; background: rgba(255, 173, 59, .12); color: var(--accent); font-size: 11px; font-weight: 600; }
.pass-count.none { background: var(--wash-2); color: var(--fog); }
.sel.tab-select { width: auto; min-width: 160px; }
.sel.tab-select .sel-btn { min-height: 32px; height: 32px; }

/* ---------- request/ticket sheets (forms.js): title + explanation on the left, fields on the right ---------- */
.sheet-wrap { max-width: 920px; }
.sheet-hero { padding: 4px 0 28px; border-bottom: 1px solid var(--graphite); }
.sheet-lead { max-width: 680px; color: var(--paper); font-size: 21px; font-weight: 600; line-height: 1.4; letter-spacing: -.022em; }
.sheet-next { max-width: 680px; margin-top: 8px; color: var(--fog); font-size: 15px; line-height: 1.6; }
.sheet-sec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--graphite); }
.sheet-sec[hidden] { display: none; }
.sheet-sec-head h2 { color: var(--paper); font-size: 17px; font-weight: 600; letter-spacing: -.016em; }
.sheet-sec-head p { margin-top: 6px; color: var(--fog); font-size: 13.5px; line-height: 1.6; }
.sheet-sec-body > :last-child { margin-bottom: 0; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; }
.sheet .field { margin-bottom: 20px; }
.sheet .field > label, .sheet legend { margin-bottom: 8px; color: var(--paper); font-size: 13.5px; font-weight: 560; }
.sheet .help { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--ash); font-size: 12.5px; line-height: 1.5; }
.sheet .help .count { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet textarea { min-height: 0; }
.opt { margin-left: 4px; color: var(--ash); font-size: 12px; font-weight: 400; }
.sheet-actions { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; padding: 20px 0; background: linear-gradient(to bottom, rgba(8, 9, 10, 0), var(--void) 35%); }
.sheet-note { color: var(--ash); font-size: 13px; }
.sheet-submit { display: flex; align-items: center; gap: 14px; text-align: right; }
.sheet-submit .error { max-width: 420px; }
kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--smoke); border-bottom-width: 2px; border-radius: 4px; background: var(--obsidian); color: var(--paper); font: 600 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }

.choice { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.choice legend { padding: 0; }
.choice-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.choice.compact .choice-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.choice-item { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--line-input); border-radius: 10px; background: rgba(255, 255, 255, .02); cursor: pointer; transition: border-color .12s, background .12s; }
.choice-item:hover { border-color: var(--graphite); background: rgba(255, 255, 255, .04); }
.choice-item input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.choice-mark { flex: none; width: 16px; height: 16px; margin-top: 2px; border: 1.5px solid var(--smoke); border-radius: 50%; }
.choice-item:has(input:checked) { border-color: rgba(255, 173, 59, .55); background: rgba(255, 173, 59, .06); }
.choice-item:has(input:checked) .choice-mark { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #141518; }
.choice-item:has(input:focus-visible) { outline: 2px solid var(--mist); outline-offset: 2px; }
.choice-text { min-width: 0; }
.choice-text strong { display: block; color: var(--paper); font-size: 14px; font-weight: 560; line-height: 1.4; }
.choice-text span { display: block; margin-top: 2px; color: var(--fog); font-size: 12.5px; line-height: 1.45; }
.choice.compact .choice-text span { display: none; }

.coords { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.coords legend { padding: 0; }
.coord-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.coord { display: flex; align-items: center; margin: 0; padding-left: 10px; border: 1px solid var(--line-input); border-radius: var(--r-ctl); background: rgba(255, 255, 255, .02); }
.coord:focus-within { border-color: var(--mist); }
.coord span { flex: none; width: 12px; color: var(--fog); font-size: 12px; font-weight: 650; }
.coord input { min-width: 0; padding-left: 6px; border: 0; background: transparent; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.coord input:hover, .coord input:focus { border: 0; background: transparent; }
.route { display: grid; grid-template-columns: minmax(0, 1fr); }
.route > .coords, .route > .field { margin-bottom: 0; }
.route-arrow { display: grid; place-items: center; width: 28px; height: 28px; margin: 10px 0 10px 4px; border-radius: 50%; background: var(--wash-2); color: var(--fog); transform: rotate(90deg); }
.route + .field { margin-top: 20px; }
.coord-facts { margin-top: 12px; }
.coord-fact { display: inline-flex; align-items: center; gap: 8px; }
.coord-fact code { color: var(--paper); font: 13px ui-monospace, SFMono-Regular, Consolas, monospace; }
.coord-fact button { min-height: 24px; padding: 0 8px; font-size: 12px; }
@media (max-width: 860px) {
  .sheet-sec { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .sheet-actions { position: static; flex-direction: column-reverse; align-items: stretch; background: none; }
  .sheet-submit { flex-direction: column-reverse; align-items: stretch; text-align: left; }
  .sheet-submit button { width: 100%; }
}
@media (max-width: 340px) { .coord-row { grid-template-columns: 1fr; } }
.coords .help { display: block; }
button.danger.solid { border-color: transparent; background: var(--red); color: #fff; }
button.danger.solid:hover:not(:disabled) { background: #d84a4a; color: #fff; }
.dialog-note { color: var(--fog); font-size: 14px; line-height: 1.6; }
.dialog-note strong { color: var(--paper); }
.faction-card { position: relative; }
.faction-del { position: absolute; top: 8px; right: 8px; min-height: 26px; padding: 0 8px; font-size: 12px; opacity: 0; transition: opacity .12s; }
.faction-card:hover .faction-del, .faction-del:focus-visible { opacity: 1; }
@media (hover: none) { .faction-del { opacity: 1; } }
.rank-dot { --rank: var(--ash); display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--rank); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rank) 22%, transparent); vertical-align: 0; }
.rank-row { flex-wrap: wrap; }
.rank-grant { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.rank-grant .sel { width: 180px; }
.people.rank-results { grid-template-columns: 1fr; }
.people li > button.danger { margin-left: auto; }
#rank-ladder .people { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.shop-foot { display: flex; justify-content: center; gap: 10px; margin-top: 20px; color: var(--ash); font-size: 13px; }
.shop-foot a { color: var(--fog); }
.shop-foot a:hover { color: var(--paper); }

/* ---------- top bars: one control height, one pill shape (landing 40px, UCP 34px) ---------- */
.land-nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; height: 76px; }
.land-logo { justify-self: start; }
.land-nav .land-links { display: flex; gap: 2px; margin: 0; padding: 4px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 9999px; background: rgba(14, 14, 18, .38); backdrop-filter: blur(16px) saturate(150%); }
.land-nav .land-links a { display: inline-flex; align-items: center; height: 30px; padding: 0 16px; border-radius: 9999px; color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 560; letter-spacing: -.01em; transition: background .15s, color .15s; }
.land-nav .land-links a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.land-nav-right { justify-self: end; gap: 8px; }
.land-nav-right .lang-switch, .nav-ghost, .nav-cta { display: inline-flex; align-items: center; height: 40px; border-radius: 9999px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.land-nav-right .lang-switch { gap: 4px; padding: 0 6px 0 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(14, 14, 18, .38); backdrop-filter: blur(16px) saturate(150%); color: rgba(255, 255, 255, .72); }
.land-nav-right .lang-switch .sel-btn { height: 38px; padding: 0 6px 0 4px; font-size: 14px; color: #fff; }
.nav-ghost { padding: 0 14px; color: rgba(255, 255, 255, .8); }
.nav-ghost:hover { color: #fff; text-decoration: none; }
.nav-cta { padding: 0 18px; background: #fff; color: #111; }
.nav-cta:hover { background: rgba(255, 255, 255, .88); color: #111; text-decoration: none; }
/* Von Restorff: the hero's 'UCP 열기' is the one filled call to action; the bar's copy is outlined. */
.nav-cta { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.nav-cta:hover { background: rgba(255, 255, 255, .08); color: var(--paper); }
.land-nav.solid .land-links, .land-nav.solid .lang-switch { background: rgba(255, 255, 255, .04); }
@media (max-width: 860px) { .land-nav-inner { grid-template-columns: 1fr auto; } .land-nav .land-links { display: none; } }
@media (max-width: 640px) { .land-nav-inner { height: 64px; } .nav-cta, .nav-ghost { height: 36px; } .nav-cta { padding: 0 14px; } }

.ucp-top-right { gap: 8px; }
.ucp-top-right .lang-switch { height: 34px; padding: 0 4px 0 12px; border-color: var(--graphite); background: transparent; }
.ucp-top-right .lang-switch .sel-btn { height: 32px; font-size: 13px; }
.ucp-top-right .nav-plain { display: inline-flex; align-items: center; height: 34px; padding: 0 10px; border-radius: 9999px; font-size: 13px; font-weight: 560; }
.ucp-top-right .nav-plain:hover { background: var(--wash-2); color: var(--paper); text-decoration: none; }
.ucp-top-right .account-menu summary { height: 34px; padding: 0 12px 0 3px; border-radius: 9999px; }
.ucp-top-right .points-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--graphite); border-radius: 9999px; background: transparent; color: var(--paper); font-size: 13px; font-weight: 600; }
.ucp-top-right .points-chip:hover { border-color: var(--smoke); text-decoration: none; }
.ucp-top-right .notify summary { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9999px; }
.ucp-top-right .notify summary:hover, .ucp-top-right .notify[open] summary { background: var(--wash-2); }
.choice-text span { display: none; }
.choice-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choice-item { align-items: center; padding: 11px 14px; }
.choice-mark { margin-top: 0; }
.pay-return { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 16px; padding: 14px 18px; border: 1px solid var(--graphite); border-radius: var(--r-box); background: var(--carbon); font-size: 14px; }
.pay-return strong { color: var(--paper); }
.pay-return span { color: var(--fog); }
.pay-return code { margin-left: auto; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.pay-return.wait strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.2s ease-in-out infinite; vertical-align: 1px; }
.pay-return.ok { border-color: rgba(39, 166, 68, .4); }
.pay-return.ok strong { color: #4cc46a; }
.pay-return.late { border-color: rgba(242, 201, 76, .4); }
@keyframes pulse { 50% { opacity: .3; } }

/* premium tier badge (gold / platinum / diamond / vip; colours agreed with the point shop) */
.tier-badge { --tier: var(--fog); display: inline-flex; align-items: center; height: 18px; margin-left: 6px; padding: 0 7px; border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent); border-radius: 9999px; background: color-mix(in srgb, var(--tier) 14%, transparent); color: var(--tier); font-size: 11px; font-weight: 650; letter-spacing: .01em; line-height: 1; white-space: nowrap; vertical-align: 2px; }
.tier-badge.tier-gold { --tier: #d4a73a; }
.tier-badge.tier-platinum { --tier: #9fb3c8; }
.tier-badge.tier-diamond { --tier: #5ec8f2; }
.tier-badge.tier-vip { --tier: #b07cff; }
.member-title h1 .tier-badge { height: 22px; font-size: 12.5px; vertical-align: 6px; }
.account-menu summary .tier-badge { margin-left: 0; }
.tier-quarter { display: block; margin-top: 2px; color: var(--fog); font-size: 12px; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.plan-pick button { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 12px; border-radius: 10px; text-align: left; }
.plan-pick button strong { color: var(--paper); font-size: 14px; }
.plan-pick button span { color: var(--fog); font-size: 13px; }
.plan-pick button em { color: #4cc46a; font-size: 12px; font-style: normal; font-weight: 600; }
.plan-pick button[aria-checked="true"] { border-color: rgba(255, 173, 59, .6); background: rgba(255, 173, 59, .07); }
.recruit-teaser { margin: 0; padding: 4px 0; list-style: none; }
.recruit-teaser a { display: flex; flex-direction: column; gap: 2px; padding: 10px 20px; color: var(--paper); }
.recruit-teaser a:hover { background: var(--wash); text-decoration: none; }
.recruit-teaser strong { font-size: 14px; }
.recruit-teaser span { color: var(--fog); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#char-story .story-box { margin-bottom: 24px; }

/* faction page */
.faction-link { display: contents; color: inherit; }
.faction-link:hover { text-decoration: none; }
.faction-hero { --tone: var(--accent); display: flex; align-items: center; gap: 20px; padding: 28px; border: 1px solid var(--graphite); border-radius: var(--r-box); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 60%), var(--carbon); }
.faction-hero.tone-legal { --tone: #4f8cff; } .faction-hero.tone-company { --tone: #2ec4b6; } .faction-hero.tone-illegal { --tone: #ff4f58; }
.faction-hero-mark { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 18px; background: color-mix(in srgb, var(--tone) 22%, transparent); color: var(--tone); font-size: 30px; font-weight: 700; }
.faction-hero h2 { margin-top: 2px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.faction-hero p { margin-top: 4px; color: var(--fog); font-size: 14px; }
.faction-hero-kind { color: var(--tone); font-size: 12.5px; font-weight: 650; }
.faction-hero .badge { margin-left: auto; }
.faction-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faction-cta p { color: var(--fog); }
@media (max-width: 640px) { .faction-hero { flex-wrap: wrap; padding: 20px; } .faction-cta { flex-direction: column; align-items: stretch; } }
.forum-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.forum-now[hidden] { display: none; }
.forum-now .box { height: 100%; }
.story-teaser { margin: 0; padding: 4px 0; list-style: none; }
.story-teaser a { display: flex; flex-direction: column; gap: 2px; padding: 10px 20px; color: var(--paper); }
.story-teaser a:hover { background: var(--wash); text-decoration: none; }
.story-teaser strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-teaser span { color: var(--fog); font-size: 12.5px; }

/* UCP home: "오늘의 서버" */
.today { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main actions" "stats stats"; gap: 20px 24px; padding: 28px 28px 22px; overflow: hidden; border: 1px solid var(--graphite); border-radius: var(--r-box);
  background: radial-gradient(90% 140% at 0% 0%, rgba(255, 79, 88, .14), transparent 55%), radial-gradient(80% 120% at 100% 0%, rgba(255, 173, 59, .10), transparent 60%), var(--carbon); }
.today-main { grid-area: main; min-width: 0; }
.today-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--fog); font-size: 13px; font-weight: 560; }
.today-players { display: block; margin-top: 6px; color: var(--paper); font-size: 44px; font-weight: 750; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.today-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--fog); font-size: 13.5px; }
.today-sub b { color: var(--paper); font-weight: 650; }
.today-sub a { color: var(--paper); font-weight: 600; }
.today-actions { grid-area: actions; display: flex; align-items: flex-start; gap: 8px; }
.today-actions .button { min-height: 38px; padding: 0 16px; border-radius: 9999px; font-size: 13.5px; }
.today-stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 16px; border-top: 1px solid var(--graphite); color: var(--ash); font-size: 13px; }
.today-stats strong { margin-right: 6px; color: var(--mist); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.feed-grid > [hidden] { display: none; }
@media (max-width: 860px) {
  .today { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "actions" "stats"; padding: 22px 18px 18px; }
  .today-players { font-size: 36px; }
  .today-actions { flex-wrap: wrap; }
  .today-actions .button { flex: 1 1 auto; }
}
.home-card:not(:has(img)) { min-height: 0; }
.home-card:not(:has(img)) .home-card-body { background: none; }
@media (max-width: 640px) {
  .ucp-top { gap: 8px; }
  .ucp-top h1 { flex: 1 1 auto; min-width: 0; }
  .ucp-top-right { gap: 4px; }
  .ucp-top-right .nav-plain, .ucp-top-right .account-menu summary .tier-badge { display: none; }
  .ucp-top-right .lang-switch { padding: 0 2px 0 10px; }
  .ucp-top-right .lang-switch .sel-value { display: none; }
  .ucp-top-right .points-chip { padding: 0 10px; }
}

/* illegal faction: supply sector, colour swatches, review guide */
/* crime colour swatches: scoped to their fieldset so the profile accent swatches keep their gradient */
fieldset.swatches { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
fieldset.swatches legend { padding: 0; }
.swatch-list { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-list .swatch { --sw: transparent; width: 30px; height: 30px; margin: 0; border: 1px solid var(--smoke); background: var(--sw); }
.swatch-list .swatch.none { background: repeating-linear-gradient(45deg, transparent 0 5px, var(--graphite) 5px 6px); }
.swatch-list .swatch input { width: 1px; height: 1px; min-height: 0; }
.crime-badge { display: inline-flex; margin-left: 8px; padding: 1px 7px; border-radius: 9999px; background: rgba(255, 79, 88, .12); color: #ff8a8f; font-size: 11.5px; font-weight: 600; vertical-align: 1px; }
.crime-badge.tier-official { background: rgba(255, 79, 88, .22); color: #ffb3b6; }
.review-criteria { margin: 0 0 12px; padding-left: 18px; color: var(--fog); font-size: 13px; line-height: 1.7; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip-btn { min-height: 26px; padding: 0 10px; border-radius: 9999px; font-size: 12.5px; }

/* ---------- point store (design rule: layout, icon, name, price, one button) ---------- */
.store-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.store-wallet { display: flex; flex-direction: column; gap: 2px; }
.store-wallet-label { color: var(--fog); font-size: 12.5px; font-weight: 560; }
.store-wallet strong { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); font-size: 32px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.store-wallet .ico { color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.7; }
.store-topup { min-height: 40px; padding: 0 22px; border-radius: 9999px; font-size: 14px; }
.store-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--graphite); }
.store-tabs button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 0; background: none; color: var(--fog); font-size: 15px; font-weight: 600; box-shadow: inset 0 -2px 0 transparent; transition: color .15s, box-shadow .15s; }
.store-tabs button:hover:not(:disabled) { background: none; color: var(--paper); }
.store-tabs button[aria-selected="true"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--accent); }
.store-tip { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--fog); font-size: 13px; }
.store-tip:hover { color: var(--paper); text-decoration: none; }
.store-tip .ico { fill: none; stroke: currentColor; stroke-width: 1.7; }
.store-body { animation: store-in .2s ease-out; }
@keyframes store-in { from { opacity: 0; transform: translateY(4px); } }
.store-empty { display: grid; place-items: center; gap: 12px; padding: 64px 16px; border: 1px dashed var(--graphite); border-radius: var(--r-box); color: var(--ash); }
.store-empty strong { color: var(--fog); font-size: 15px; font-weight: 560; }
.store-empty .ico { fill: none; stroke: currentColor; stroke-width: 1.4; }
.store-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.store-skeleton span { height: 220px; border-radius: 16px; background: linear-gradient(100deg, var(--carbon) 30%, var(--obsidian) 50%, var(--carbon) 70%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* item cards */
.item-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.item-card { --tone: #ffad3b; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--graphite); border-radius: 16px; background: var(--carbon); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.item-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 45%, var(--graphite)); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.item-card.it-violet { --tone: #8b7bff; } .item-card.it-teal { --tone: #2ec4b6; } .item-card.it-blue { --tone: #4f8cff; } .item-card.it-crimson { --tone: #ff4f58; } .item-card.it-green { --tone: #4cc46a; }
.item-art { display: grid; place-items: center; height: 108px; margin-bottom: 16px; border-radius: 12px; background: radial-gradient(80% 90% at 30% 20%, color-mix(in srgb, var(--tone) 32%, transparent), transparent 70%), var(--obsidian); color: var(--tone); }
.item-art .ico { fill: none; stroke: currentColor; stroke-width: 1.5; }
.item-card h3 { display: flex; align-items: center; gap: 6px; color: var(--paper); font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.item-hint { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--smoke); border-radius: 50%; color: var(--ash); font-size: 10px; font-weight: 700; font-style: normal; cursor: help; }
.item-hint:hover, .item-hint:focus { border-color: var(--fog); color: var(--paper); outline: none; }
.item-meta { display: flex; gap: 6px; min-height: 20px; margin-top: 6px; }
.item-meta span { padding: 1px 7px; border-radius: 9999px; background: var(--wash-2); color: var(--fog); font-size: 11.5px; font-weight: 560; }
.item-buy { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.item-buy .pts { font-size: 18px; font-weight: 700; }
.item-buy button { min-height: 32px; padding: 0 16px; border-radius: 9999px; }
.item-card:hover .item-buy button { border-color: var(--tone); color: var(--paper); }

/* subscription cards */
.tier-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tier-card { --tier: var(--fog); position: relative; display: flex; flex-direction: column; padding: 22px 20px 20px; border: 1px solid var(--graphite); border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 12%, transparent), transparent 140px), var(--carbon); transition: transform .18s ease, border-color .18s ease; }
.tier-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 16px 16px 0 0; background: var(--tier); }
.tier-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tier) 50%, var(--graphite)); }
.tier-card.popular { border-color: color-mix(in srgb, var(--tier) 55%, var(--graphite)); }
.tier-card .tier-flag { position: absolute; top: 14px; right: 14px; padding: 2px 8px; border-radius: 9999px; background: var(--tier); color: #111; font-size: 11px; font-weight: 700; }
.tier-card header h3 { color: var(--tier); font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.tier-card .tier-scope { color: var(--fog); font-size: 12.5px; }
.tier-card .tier-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.tier-card .tier-price .pts { color: var(--paper); font-size: 26px; font-weight: 750; }
.tier-card .tier-price > span:last-child { color: var(--fog); font-size: 13px; }
.tier-card .tier-quarter { margin-top: 2px; color: var(--ash); font-size: 12.5px; }
.tier-perks { display: grid; gap: 9px; margin: 18px 0 20px; padding: 0; list-style: none; }
.tier-perks li { display: flex; align-items: flex-start; gap: 8px; color: var(--mist); font-size: 13.5px; line-height: 1.4; }
.tier-perks .ico { flex: none; margin-top: 2px; color: var(--tier); fill: none; stroke: currentColor; stroke-width: 2.2; }
.tier-perks b { color: var(--paper); font-weight: 650; }
.tier-on { margin-bottom: 10px; color: #4cc46a; font-size: 12.5px; font-weight: 600; }
.tier-card button { margin-top: auto; min-height: 40px; border-radius: 9999px; }
.tier-compare { margin-top: 20px; border: 1px solid var(--graphite); border-radius: var(--r-box); background: var(--carbon); }
.tier-compare summary { padding: 14px 20px; color: var(--fog); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.tier-compare summary::-webkit-details-marker { display: none; }
.tier-compare summary::after { content: "+"; float: right; color: var(--ash); }
.tier-compare[open] summary::after { content: "\2212"; }
.tier-compare summary:hover { color: var(--paper); }
.tier-compare .tier-table th[scope="row"] { color: var(--mist); font-weight: 500; }

/* top-up packs */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pack-card { position: relative; flex-direction: column; gap: 6px; min-height: 196px; padding: 22px 14px 18px; border: 1px solid var(--graphite); border-radius: 16px; background: var(--carbon); color: var(--paper); white-space: normal; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pack-card:hover:not(:disabled) { transform: translateY(-3px); background: var(--carbon); border-color: var(--smoke); }
.pack-card[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 36px rgba(255, 138, 61, .14); background: linear-gradient(180deg, rgba(255, 173, 59, .08), transparent 60%), var(--carbon); }
.pack-card .pack-gem .ico { fill: none; stroke-width: 1.4; }
.pack-card .pack-amount { margin-top: 6px; font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.pack-card .pack-price { color: var(--fog); font-size: 14px; font-weight: 560; }
.pack-card .pack-bonus { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 9999px; background: rgba(76, 196, 106, .14); color: #4cc46a; font-size: 11.5px; font-weight: 700; }
.pack-checkout { position: sticky; bottom: 12px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; padding: 14px 16px 14px 22px; border: 1px solid var(--graphite); border-radius: 16px; background: rgba(15, 16, 17, .92); backdrop-filter: blur(14px); }
.pack-summary { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; }
.pack-sum-pts .pts { font-size: 20px; font-weight: 750; }
.pack-sum-price { color: var(--paper); font-size: 16px; font-weight: 650; }
.pack-sum-to { color: var(--fog); font-size: 13px; }
/* Proximity: the chosen pack, gift and pay sit together at the bar's right end. */
@media (min-width: 641px) { .pack-checkout .pack-summary { flex: 0 1 auto; margin-left: auto; } }
.pack-checkout .pack-gift { display: flex; align-items: center; gap: 10px; }
.pack-checkout .pack-gift input:not([type="checkbox"]) { width: 190px; }
.pack-checkout .error { flex-basis: 100%; }
@media (max-width: 640px) {
  .store-wallet strong { font-size: 26px; }
  .item-cards, .store-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .item-card { padding: 12px; border-radius: 14px; }
  .item-art { height: 76px; margin-bottom: 12px; }
  .item-card h3 { font-size: 14.5px; }
  .item-buy { flex-direction: column; align-items: stretch; gap: 10px; }
  .item-buy button { width: 100%; }
  .tier-cards { grid-template-columns: minmax(0, 1fr); }
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pack-card { min-height: 160px; }
  .pack-checkout { padding: 12px; }
  .pack-checkout .pack-gift { flex: 1 1 100%; }
  .pack-checkout .pack-gift input:not([type="checkbox"]) { flex: 1; width: auto; }
  .pack-checkout button[type="submit"] { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .store-body, .store-skeleton span { animation: none; } .item-card, .tier-card, .pack-card { transition: none; } }
.pack-card.tier-1 .pack-gem { color: #b9c0cc; } .pack-card.tier-2 .pack-gem { color: var(--amber); } .pack-card.tier-3 .pack-gem { color: #5aa9ff; } .pack-card.tier-4 .pack-gem { color: #a77bff; }
.pack-card .pack-gem { display: inline-flex; } .pack-card:not(.tier-1):not(.tier-2):not(.tier-3):not(.tier-4) .pack-gem { color: #c98a5a; } .pack-card .pack-price { min-width: 0; text-align: center; }
.pack-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } .pack-checkout button[type="submit"] { min-height: 44px; padding: 0 28px; border-radius: 9999px; font-size: 15px; }

/* ---------- purchase sheet: slides in from the right, bottom sheet on phones ---------- */
.item-card { cursor: pointer; }
.item-card:focus-visible, .tier-card:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; }
.buy-root { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.buy-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .22s ease; }
.buy-sheet { --tone: #ffad3b; position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 100vw); overflow-y: auto; border-left: 1px solid var(--graphite); background: #0e0f11; box-shadow: -24px 0 60px rgba(0, 0, 0, .5); transform: translateX(104%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.buy-root.open { pointer-events: auto; }
.buy-root.open .buy-scrim { opacity: 1; }
.buy-root.open .buy-sheet { transform: none; }
.buy-sheet.it-violet { --tone: #8b7bff; } .buy-sheet.it-teal { --tone: #2ec4b6; } .buy-sheet.it-blue { --tone: #4f8cff; } .buy-sheet.it-crimson { --tone: #ff4f58; } .buy-sheet.it-green { --tone: #4cc46a; }
.buy-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; min-height: 36px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); }
.buy-close .ico { fill: none; stroke: currentColor; stroke-width: 2; }
.buy-art { position: relative; display: grid; flex: none; place-items: center; height: 260px; overflow: hidden; background: radial-gradient(70% 80% at 35% 25%, color-mix(in srgb, var(--tone) 38%, transparent), transparent 70%), radial-gradient(60% 60% at 80% 90%, color-mix(in srgb, var(--tone) 18%, transparent), transparent 70%), #121316; }
.buy-art video { width: 100%; height: 100%; object-fit: cover; }
.buy-icon { color: var(--tone); animation: art-float 3.2s ease-in-out infinite; filter: drop-shadow(0 12px 30px color-mix(in srgb, var(--tone) 45%, transparent)); }
.buy-icon .ico { fill: none; stroke: currentColor; stroke-width: 1.3; }
@keyframes art-float { 50% { transform: translateY(-8px) scale(1.03); } }
.buy-tier { --tier: var(--accent); color: var(--tier); font-size: 44px; font-weight: 800; letter-spacing: -.03em; text-shadow: 0 10px 40px color-mix(in srgb, var(--tier) 55%, transparent); animation: art-float 3.2s ease-in-out infinite; }
.buy-body { display: flex; flex-direction: column; gap: 18px; padding: 24px 24px 28px; }
.buy-body h2 { color: var(--paper); font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.buy-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.buy-plans button { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 66px; padding: 10px 14px; border-radius: 12px; text-align: left; }
.buy-plans button strong { color: var(--paper); font-size: 14px; }
.buy-plans button em { color: #4cc46a; font-size: 12px; font-style: normal; font-weight: 700; }
.buy-plans button[aria-checked="true"] { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 9%, transparent); }
.buy-viz:empty { display: none; }
.buy-viz { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--graphite); border-radius: 14px; background: var(--carbon); }
.viz-plus { color: var(--tone); font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1; animation: viz-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes viz-pop { from { opacity: 0; transform: scale(.6); } }
.viz-label { color: var(--fog); font-size: 13px; font-weight: 560; }
.viz-row { display: flex; align-items: baseline; gap: 10px; color: var(--mist); font-size: 22px; }
.viz-row b { font-weight: 750; }
.viz-after { color: var(--tone); }
.viz-bar { display: flex; height: 8px; overflow: hidden; border-radius: 9999px; background: var(--obsidian); }
.viz-bar span { width: 0; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.viz-bar span[style] { width: var(--w); }
.viz-now { background: var(--smoke); }
.viz-add { background: var(--tone); transition-delay: .25s !important; box-shadow: 0 0 12px var(--tone); }
.buy-chars { display: flex; flex-wrap: wrap; gap: 8px; }
.buy-chars button { gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 9999px; }
.buy-chars .char-initial { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--wash-2); font-size: 12px; }
.buy-chars button[aria-checked="true"] { border-color: var(--tone); color: var(--paper); background: color-mix(in srgb, var(--tone) 9%, transparent); }
.buy-renew { color: var(--fog); }
.buy-total { display: flex; align-items: center; gap: 10px; margin-top: auto; color: var(--fog); font-size: 15px; }
.buy-total strong { display: inline-flex; align-items: center; gap: 6px; color: var(--paper); font-size: 18px; }
.buy-total .ico { color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.7; }
.buy-total .neg { color: var(--red); font-size: 14px; }
.buy-arrow { color: var(--ash); }
.buy-go { min-height: 54px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.buy-go.busy { position: relative; color: transparent !important; }
.buy-go.busy::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid rgba(23, 11, 5, .35); border-top-color: #170b05; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.buy-error { min-height: 1em; color: var(--red); font-size: 13px; text-align: center; }
.buy-error:empty { display: none; }
.buy-done { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 24px 32px; }
.buy-sheet.done .buy-body { display: none; }
.done-check { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(76, 196, 106, .14); color: #4cc46a; animation: viz-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.done-check .ico { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.buy-done strong { color: var(--paper); font-size: 20px; font-weight: 750; }
.done-balance { display: inline-flex; align-items: center; gap: 6px; color: var(--paper); font-size: 26px; font-weight: 750; }
.done-balance .ico { color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.7; }
.buy-done button { min-width: 160px; min-height: 44px; border-radius: 9999px; }
/* tier cards open in place */
.tier-card { cursor: pointer; }
.tier-perks li.extra { display: none; }
.tier-card.open .tier-perks li.extra { display: flex; animation: store-in .2s ease-out both; }
.tier-more { margin: -10px 0 16px; color: var(--ash); font-size: 12.5px; font-weight: 600; }
.tier-card.open .tier-more { display: none; }
@media (max-width: 640px) {
  .buy-sheet { top: auto; left: 0; width: 100vw; max-height: 92vh; border-left: 0; border-top: 1px solid var(--graphite); border-radius: 22px 22px 0 0; transform: translateY(104%); }
  .buy-art { height: 200px; }
  .buy-body { padding: 20px 18px 24px; }
}
@media (prefers-reduced-motion: reduce) { .buy-sheet, .buy-scrim, .viz-bar span { transition: none; } .buy-icon, .buy-tier, .viz-plus, .done-check { animation: none; } .done-check .ico { animation: none; stroke-dashoffset: 0; } }
.buy-done[hidden] { display: none; }

/* ---------- point store v2: the main site's voice (heavy type, brand gradient, glow) ---------- */
.ucp-app:has(.store-hero) .ucp-top-right .points-chip { display: none; }
.store-hero { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; padding: 30px 30px 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .07); border-radius: 22px;
  background: radial-gradient(80% 160% at 0% 0%, rgba(255, 79, 88, .22), transparent 55%), radial-gradient(70% 140% at 100% 100%, rgba(255, 181, 71, .16), transparent 60%), linear-gradient(180deg, #121316, #0c0d0f); }
.store-hero::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(255, 138, 61, .18), transparent); pointer-events: none; }
.store-kicker { color: #ff8a8f; font-size: 12px; font-weight: 800; letter-spacing: .22em; }
.store-hero h2 { margin-top: 6px; font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1; letter-spacing: -.04em; background: linear-gradient(100deg, #fff 30%, #ffd2a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.store-wallet-pill { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 9999px; background: rgba(8, 9, 10, .55); backdrop-filter: blur(14px); }
.store-wallet-gem { display: grid; place-items: center; color: var(--accent); }
.store-wallet-gem .ico { fill: none; stroke: currentColor; stroke-width: 1.7; }
.store-wallet-pill b { min-width: 3ch; color: var(--paper); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.store-topup { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 9999px; background: var(--grad); color: #170b05; font-size: 14px; font-weight: 750; transition: filter .15s, transform .15s; }
.store-topup:hover { filter: brightness(1.08); transform: translateY(-1px); color: #170b05; text-decoration: none; }
.store-tip-foot { display: flex; align-items: center; justify-content: center; gap: 6px; width: max-content; margin: 36px auto 0; color: var(--ash); font-size: 13px; }
.store-tip-foot:hover { color: var(--paper); text-decoration: none; }
.store-tip-foot .ico { fill: none; stroke: currentColor; stroke-width: 1.7; }

/* tier cards */
.tier-cards { gap: 18px; }
.tier-card { --tier: #ffad3b; overflow: hidden; padding: 26px 22px 22px; border: 1px solid color-mix(in srgb, var(--tier) 30%, rgba(255, 255, 255, .06)); border-radius: 20px;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--tier) 26%, transparent), transparent 70%), linear-gradient(180deg, #141518, #0e0f11); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.tier-card::before { height: 4px; background: linear-gradient(90deg, transparent, var(--tier), transparent); }
.tier-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--tier) 60%, transparent); box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--tier) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .08); }
.tier-card.popular { border-color: color-mix(in srgb, var(--tier) 70%, transparent); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--tier) 70%, transparent); }
.tier-sheen { position: absolute; inset: -40% auto -40% -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .10), transparent); transform: skewX(-18deg); transition: left .7s ease; pointer-events: none; }
.tier-card:hover .tier-sheen { left: 130%; }
.tier-card .tier-flag { top: 16px; right: 16px; padding: 3px 9px; background: var(--tier); color: #111; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; }
.tier-card header { display: flex; flex-direction: column; gap: 4px; }
.tier-card .tier-scope { display: inline-flex; align-items: center; gap: 5px; color: var(--fog); font-size: 12px; font-weight: 600; }
.tier-card .tier-scope .ico { fill: none; stroke: currentColor; stroke-width: 1.8; }
.tier-card header h3 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; background: linear-gradient(100deg, #fff 10%, var(--tier) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier-period { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.tier-period button { min-height: 32px; gap: 6px; border: 0; border-radius: 9px; background: none; color: var(--fog); font-size: 13px; font-weight: 650; }
.tier-period button[aria-checked="true"] { background: rgba(255, 255, 255, .1); color: var(--paper); }
.tier-period em { color: #4cc46a; font-size: 11.5px; font-style: normal; font-weight: 800; }
.tier-card .tier-price { display: flex; align-items: center; gap: 8px; margin-top: 16px; white-space: nowrap; }
.tier-card .tier-price .ico { color: var(--tier); fill: none; stroke: currentColor; stroke-width: 1.7; }
.tier-card .tier-price b { color: var(--paper); font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tier-card .tier-price > span:last-child { color: var(--fog); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tier-perks { gap: 10px; margin: 20px 0 22px; }
.tier-perks li { align-items: center; gap: 10px; font-size: 14px; }
.perk-ico { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--tier) 16%, transparent); color: var(--tier); }
.perk-ico .ico { fill: none; stroke: currentColor; stroke-width: 1.8; }
.tier-perks .ico { margin: 0; }
.tier-on { display: inline-flex; align-items: center; gap: 5px; }
.tier-on .ico { fill: none; stroke: currentColor; stroke-width: 2.4; }
.tier-go { width: 100%; min-height: 48px; margin-top: auto; border: 0; border-radius: 14px; background: var(--tier); color: #121212; font-size: 15px; font-weight: 800; box-shadow: 0 10px 26px -12px var(--tier); transition: transform .15s, filter .15s; }
.tier-go:hover:not(:disabled) { background: var(--tier); color: #121212; filter: brightness(1.1); transform: translateY(-1px); }
/* Von Restorff: only the recommended tier's button is filled (brand); the others are outlined in their tier colour. */
.tier-go { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--tier); }
.tier-go:hover:not(:disabled) { background: color-mix(in srgb, var(--tier) 16%, transparent); color: var(--paper); filter: none; }
.tier-card.popular .tier-go { background: var(--grad); color: #121212; box-shadow: 0 10px 26px -12px rgba(255, 90, 60, .8); }
.tier-card.popular .tier-go:hover:not(:disabled) { background: var(--grad); color: #121212; filter: brightness(1.08); }
.perk-no::before { content: ""; display: inline-block; width: 10px; height: 2px; border-radius: 2px; background: var(--graphite); vertical-align: middle; }

/* item cards */
.item-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.item-card.it-pink { --tone: #ff6fae; }
.item-card { padding: 14px 14px 16px; border-radius: 20px; background: linear-gradient(180deg, #141518, #0e0f11); }
.item-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--tone) 55%, transparent); }
.item-art { position: relative; height: 150px; margin-bottom: 14px; overflow: hidden; border-radius: 14px; background: radial-gradient(90% 90% at 50% 40%, color-mix(in srgb, var(--tone) 34%, transparent), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--tone) 14%, #16171a), #0f1012); }
.item-glow { position: absolute; inset: 20% 25%; border-radius: 50%; background: var(--tone); filter: blur(34px); opacity: .35; transition: opacity .25s, transform .25s; }
.item-art .ico { position: relative; stroke-width: 1.4; transition: transform .25s cubic-bezier(.2, 1.2, .4, 1); filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--tone) 60%, transparent)); }
.item-card:hover .item-art .ico { transform: translateY(-4px) scale(1.08); }
.item-card:hover .item-glow { opacity: .55; transform: scale(1.15); }
.item-card h3 { padding: 0 4px; font-size: 15.5px; font-weight: 700; }
.item-buy { padding: 12px 4px 0; }
.item-price { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.item-price .ico { align-self: center; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.7; }
.item-price b { color: var(--paper); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.item-price small { color: var(--fog); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.item-scope { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--wash-2); color: var(--fog); }
.item-scope .ico { fill: none; stroke: currentColor; stroke-width: 1.8; }

/* sheet: quantity, hold to buy, confetti */
.buy-sheet.it-pink { --tone: #ff6fae; }
.buy-icon .ico { width: 72px; height: 72px; }
.buy-qty { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 4px; border: 1px solid var(--graphite); border-radius: 9999px; }
.buy-qty b { min-width: 3ch; color: var(--paper); font-size: 18px; text-align: center; }
.qty-btn { width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--wash-2); color: var(--paper); font-size: 18px; }
.buy-from { display: inline-flex; align-items: center; gap: 6px; }
.buy-from .ico { color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.7; }
.buy-go { position: relative; overflow: hidden; touch-action: none; user-select: none; }
.buy-fill { position: absolute; inset: 0 100% 0 0; background: rgba(255, 255, 255, .35); transition: right .18s ease; }
.buy-go.holding .buy-fill { right: 0; transition: right var(--hold, 650ms) linear; }
.buy-go.holding { transform: scale(.985); }
.buy-label { position: relative; }
.buy-go.busy .buy-fill { display: none; }
.confetti { position: absolute; left: 50%; top: 42%; width: 0; height: 0; pointer-events: none; }
.confetti span { position: absolute; width: 8px; height: 12px; border-radius: 2px; background: var(--c); opacity: 0; animation: confetti 1.3s cubic-bezier(.15, .7, .3, 1) var(--d) forwards; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) * -.6 + 160px)) rotate(var(--r)); } }
.buy-done { position: relative; }
@media (max-width: 640px) {
  .store-hero { padding: 22px 18px; border-radius: 18px; }
  .store-wallet-pill { width: 100%; justify-content: space-between; }
  .tier-card header h3 { font-size: 26px; }
  .tier-card .tier-price b { font-size: 32px; }
  .item-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .item-art { height: 104px; }
  .item-price b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .tier-sheen, .item-glow, .confetti { display: none; } .buy-go.holding .buy-fill { transition: none; } }

/* purchase sheet: height follows the content (a floating panel on desktop), facts instead of empty space */
.buy-sheet { top: 16px; right: 16px; bottom: auto; max-height: calc(100vh - 32px); border: 1px solid var(--graphite); border-radius: 24px; transform: translateX(calc(100% + 24px)); }
.buy-body { padding-bottom: 24px; }
.buy-total { margin-top: 4px; }
.buy-facts { display: grid; gap: 0; margin: 0; padding: 4px 14px; border-radius: 14px; background: var(--wash); }
.buy-facts div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; }
.buy-facts div + div { border-top: 1px solid var(--graphite); }
.buy-facts dt { display: inline-flex; align-items: center; gap: 8px; color: var(--fog); }
.buy-facts dt .ico { color: var(--tone); fill: none; stroke: currentColor; stroke-width: 1.8; }
.buy-facts dd { margin: 0; color: var(--paper); font-weight: 600; text-align: right; }
@media (max-width: 640px) {
  .buy-sheet { top: auto; right: 0; bottom: 0; left: 0; max-height: 92vh; border: 0; border-top: 1px solid var(--graphite); border-radius: 22px 22px 0 0; transform: translateY(104%); }
}

/* purchase sheet v3: tier emblem, labelled character choice, renew switch, two-tap confirm */
.buy-emblem { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 34px; color: #fff; font-size: 0;
  background: radial-gradient(120% 120% at 30% 0%, color-mix(in srgb, var(--tier) 75%, #fff), var(--tier) 50%, color-mix(in srgb, var(--tier) 55%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 24px 50px -18px var(--tier); text-shadow: none; }
.buy-emblem .ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.buy-field { display: grid; gap: 8px; }
.buy-flabel { color: var(--fog); font-size: 12.5px; font-weight: 600; }
.buy-chars button { position: relative; }
.buy-chars .char-check { display: none; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--tone); color: #121212; }
.buy-chars .char-check .ico { fill: none; stroke: currentColor; stroke-width: 3; }
.buy-chars button[aria-checked="true"] { border-width: 1.5px; }
.buy-chars button[aria-checked="true"] .char-check { display: inline-grid; }
.buy-chars button[aria-checked="true"] .char-initial { background: color-mix(in srgb, var(--tone) 30%, transparent); color: var(--paper); }
.buy-renew { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 14px; border-radius: 14px; background: var(--wash); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--paper); font-size: 14px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 40px; height: 24px; border-radius: 9999px; background: var(--smoke); transition: background .18s; }
.switch-track i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .18s cubic-bezier(.3, 1.3, .5, 1); }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track i { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.renew-note { color: var(--fog); font-size: 13px; }
.buy-facts[hidden] { display: none; }
.buy-cta { display: grid; gap: 10px; margin-top: 2px; }
.buy-cta .buy-total { margin: 0; padding: 0 2px; }
.buy-cta .buy-error:empty { display: none; }
.buy-body { gap: 16px; padding-bottom: 20px; }
.buy-label { display: inline-flex; align-items: center; gap: 6px; }
.buy-label .ico { fill: none; stroke: currentColor; stroke-width: 2; }
.buy-dot { opacity: .55; }
.buy-go { transition: filter .15s, transform .15s, box-shadow .15s; }
.buy-go.armed { filter: brightness(.82) saturate(1.35); box-shadow: inset 0 0 0 2px rgba(23, 11, 5, .35); }
.buy-go.armed::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(23, 11, 5, .45); animation: buy-confirm var(--confirm, 3000ms) linear forwards; }
@keyframes buy-confirm { from { width: 100%; } to { width: 0; } }
@media (prefers-reduced-motion: reduce) { .buy-go.armed::after { animation: none; } .switch-track, .switch-track i { transition: none; } }

/* ---------- events ---------- */
.ev-tools { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.ev-tools .button { min-height: 38px; padding: 0 18px; border-radius: 9999px; }
.ev-empty { display: grid; place-items: center; gap: 12px; padding: 64px 16px; border: 1px dashed var(--graphite); border-radius: var(--r-box); color: var(--ash); }
.ev-empty strong { color: var(--fog); font-size: 15px; font-weight: 560; }
.ev-empty .ico, .ev-hero .ico, .ev-card .ico, .ev-head .ico, .ev-seats .ico { fill: none; stroke: currentColor; stroke-width: 1.7; }
.ev-hero { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 32px 30px 26px; overflow: hidden; border: 1px solid var(--graphite); border-radius: 18px; color: var(--paper);
  background: radial-gradient(90% 140% at 0% 0%, rgba(139, 123, 255, .22), transparent 55%), radial-gradient(70% 120% at 100% 100%, rgba(255, 79, 88, .16), transparent 60%), var(--carbon); transition: transform .18s ease, border-color .18s ease; }
.ev-hero:hover { transform: translateY(-2px); border-color: var(--smoke); text-decoration: none; }
.ev-hero-kicker { color: #b4a9ff; font-size: 13px; font-weight: 650; }
.ev-hero strong { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.ev-hero-when { color: var(--mist); font-size: 15px; }
.ev-hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 8px; color: var(--fog); font-size: 14px; }
.ev-hero-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ev-card { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--graphite); border-radius: 14px; background: var(--carbon); color: var(--paper); transition: transform .15s ease, border-color .15s ease; }
.ev-card:hover { transform: translateY(-2px); border-color: var(--smoke); text-decoration: none; }
.ev-date { display: grid; flex: none; place-items: center; width: 56px; height: 60px; border-radius: 12px; background: var(--obsidian); line-height: 1.1; }
.ev-date b { color: var(--paper); font-size: 22px; font-weight: 800; }
.ev-date span { color: #ff8a8f; font-size: 11.5px; font-weight: 700; }
.ev-card-main { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.ev-card-main strong { overflow: hidden; font-size: 15px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ev-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--fog); font-size: 12.5px; }
.ev-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ev-seats { display: inline-flex; align-items: center; gap: 5px; color: var(--fog); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ev-chip { padding: 2px 8px; border-radius: 9999px; background: var(--wash-2); color: var(--fog); font-size: 11.5px; font-weight: 650; }
.ev-chip.on { background: rgba(76, 196, 106, .14); color: #4cc46a; }
.ev-chip.live { background: rgba(255, 79, 88, .16); color: #ff8a8f; }
.ev-chip.off { color: var(--ash); text-decoration: line-through; }
.ev-past summary { margin-bottom: 12px; color: var(--fog); font-size: 14px; font-weight: 600; cursor: pointer; }
.ev-past .ev-card { opacity: .6; }
.ev-head { display: flex; align-items: center; gap: 18px; }
.ev-head .ev-date { width: 72px; height: 78px; border-radius: 16px; }
.ev-head .ev-date b { font-size: 30px; }
.ev-head > div { flex: 1; min-width: 0; }
.ev-head h2 { color: var(--paper); font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.ev-head-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--fog); font-size: 14px; }
.ev-head-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ev-body { color: var(--mist); font-size: 15px; line-height: 1.75; white-space: pre-wrap; }
.ev-people { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 16px 20px 20px; list-style: none; }
.ev-people li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--graphite); border-radius: 9999px; color: var(--mist); font-size: 13px; animation: store-in .2s ease-out both; }
.ev-people .char-initial, .ev-chars .char-initial { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--wash-2); font-size: 12px; }
.ev-join { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--graphite); border-radius: 16px; background: var(--carbon); }
.ev-join:empty { display: none; }
.ev-chars { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chars button { gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 9999px; }
.ev-chars button[aria-checked="true"] { border-color: #8b7bff; color: var(--paper); background: rgba(139, 123, 255, .1); }
.ev-go { min-height: 52px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.ev-go.busy { opacity: .6; }
.ev-go.pop { animation: viz-pop-ev .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes viz-pop-ev { from { transform: scale(.94); } }
.ev-error { color: var(--red); font-size: 13px; text-align: center; }
.ev-error:empty { display: none; }
.ev-teaser { margin: 0; padding: 4px 0; list-style: none; }
.ev-teaser a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--paper); }
.ev-teaser a:hover { background: var(--wash); text-decoration: none; }
.ev-teaser .ev-date { width: 44px; height: 48px; border-radius: 10px; }
.ev-teaser .ev-date b { font-size: 18px; }
.ev-teaser a > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ev-teaser strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ev-teaser a > span:nth-child(2) span { color: var(--fog); font-size: 12.5px; }
@keyframes store-in { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 860px) {
  .ev-layout { grid-template-columns: minmax(0, 1fr); }
  .ev-join { position: static; order: -1; }
}
@media (max-width: 640px) {
  .ev-hero { padding: 24px 20px 20px; }
  .ev-hero strong { font-size: 24px; }
  .ev-grid { grid-template-columns: minmax(0, 1fr); }
  .ev-head { flex-wrap: wrap; }
  .ev-head h2 { font-size: 22px; }
}
.ev-people .char-initial, .ev-chars .char-initial { color: var(--mist); font-weight: 700; }

/* events: kinds, 참가/관심 picks, counters (contract with the Discord role) */
.ev-kind { --k: #8b7bff; display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 2px 8px 2px 6px; border-radius: 9999px; background: color-mix(in srgb, var(--k) 14%, transparent); color: var(--k); font-size: 11.5px; font-weight: 700; }
.ev-kind .ico { fill: none; stroke: currentColor; stroke-width: 2; }
.k-race { --k: #ff8a3d; } .k-festival { --k: #f2c94c; } .k-auction { --k: #4cc46a; } .k-meetup { --k: #8b7bff; } .k-other { --k: #8a8f98; }
.ev-date.k-race span, .ev-date.k-festival span, .ev-date.k-auction span, .ev-date.k-meetup span, .ev-date.k-other span { color: var(--k); }
.ev-hero.k-race { background: radial-gradient(90% 140% at 0% 0%, rgba(255, 138, 61, .24), transparent 55%), radial-gradient(70% 120% at 100% 100%, rgba(255, 79, 88, .14), transparent 60%), var(--carbon); }
.ev-hero.k-festival { background: radial-gradient(90% 140% at 0% 0%, rgba(242, 201, 76, .2), transparent 55%), var(--carbon); }
.ev-hero.k-auction { background: radial-gradient(90% 140% at 0% 0%, rgba(76, 196, 106, .2), transparent 55%), var(--carbon); }
.ev-hero-kicker { display: flex; gap: 8px; }
.ev-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; pointer-events: none; }
.ev-hero > *:not(.ev-hero-img) { position: relative; }
.ev-card-main .ev-kind { margin-bottom: 2px; }
.ev-chip.warm { background: rgba(242, 201, 76, .14); color: var(--amber); }
.ev-banner { width: 100%; max-height: 280px; margin-bottom: 20px; border-radius: 18px; object-fit: cover; }
.ev-head > div { display: flex; flex-direction: column; gap: 6px; }
.ev-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border-radius: 12px; background: var(--graphite); }
.ev-counts > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; background: var(--obsidian); }
.ev-counts b { color: var(--paper); font-size: 22px; font-weight: 800; }
.ev-counts span { color: var(--fog); font-size: 12.5px; font-weight: 600; }
.ev-picks { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.ev-pick { min-height: 52px; border-radius: 14px; font-size: 15px; font-weight: 700; }
.ev-pick.primary-pick { border-color: transparent; background: var(--grad); color: #170b05; }
.ev-pick.primary-pick:hover:not(:disabled) { background: var(--grad); filter: brightness(1.08); color: #170b05; }
.ev-pick.on { border-color: #4cc46a; background: rgba(76, 196, 106, .12); color: #4cc46a; filter: none; }
.ev-pick:not(.primary-pick).on { border-color: var(--amber); background: rgba(242, 201, 76, .12); color: var(--amber); }
.ev-pick.pop { animation: viz-pop-ev .35s cubic-bezier(.2, 1.4, .4, 1); }
.ev-cancelled .box-body { display: flex; flex-direction: column; gap: 4px; }
.ev-cancelled strong { color: var(--red); }
.ev-cancelled span { color: var(--fog); }
.ev-admin { border: 1px solid var(--graphite); border-radius: var(--r-box); background: var(--carbon); }
.ev-admin summary { padding: 14px 20px; color: var(--fog); font-size: 14px; font-weight: 600; cursor: pointer; }
.ev-admin .box-body { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 0; }
.ev-admin input { flex: 1 1 220px; }
.ev-people li.warm { border-style: dashed; color: var(--fog); }
/* ---------- 운영 현황 (/ops, owner only) ---------- */
.ops-hero { --tone: #4cc46a; position: relative; display: grid; gap: 22px; padding: 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .07); border-radius: 22px;
  background: radial-gradient(70% 140% at 0% 0%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 60%), linear-gradient(180deg, #121316, #0c0d0f); }
.ops-hero.tone-warn { --tone: #f2c94c; }
.ops-hero.tone-down { --tone: #eb5757; }
.ops-hero-main { display: flex; align-items: center; gap: 18px; }
.ops-hero-main > div { flex: 1; min-width: 0; }
.ops-pulse { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tone) 18%, transparent); }
.ops-pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--tone); opacity: 0; animation: ops-ping 2.4s ease-out infinite; }
@keyframes ops-ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
.ops-kicker { color: var(--tone); font-size: 12px; font-weight: 800; letter-spacing: .22em; }
.ops-hero h2 { margin-top: 2px; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.ops-hero h2 a { color: var(--paper); }
.ops-hero p { margin: 4px 0 0; color: var(--fog); font-size: 14px; }
.ops-health { flex: none; padding: 8px 16px; border-radius: 9999px; background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone); font-size: 15px; font-weight: 750; }
.ops-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 14px; background: var(--graphite); }
.ops-facts > div { display: grid; gap: 2px; padding: 12px 16px; background: rgba(12, 13, 15, .92); }
.ops-facts span { color: var(--fog); font-size: 12px; }
.ops-facts b { overflow: hidden; color: var(--paper); font-size: 17px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ops-facts b.mono, .ops-facts b .mono { font-size: 13.5px; font-weight: 600; }
.ops-facts a { color: var(--paper); }
.ops-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-flag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 9999px; background: var(--wash-2); color: var(--fog); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.ops-flag .ico, .ops-ci .ico, .ops-dot .ico, .ops-none .ico, .ops-meta .ico { fill: none; stroke: currentColor; stroke-width: 2.4; }
.ops-flag.on { background: rgba(39, 166, 68, .14); color: #4cc46a; }
.ops-flag.off { background: rgba(235, 87, 87, .14); color: var(--red); }
.ops-flag b { margin-left: 2px; color: inherit; font-weight: 800; }
.ops-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: 12px 2px 18px; color: var(--ash); font-size: 12.5px; }
.ops-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ops-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ops-sec { min-width: 0; border: 1px solid var(--graphite); border-radius: 18px; background: var(--carbon); }
.ops-sec > header { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--graphite); }
.ops-sec h3 { font-size: 14px; }
.ops-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 9999px; background: var(--wash-2); color: var(--mist); font-size: 12px; font-weight: 700; }
.ops-none { display: grid; place-items: center; padding: 26px; color: var(--ash); }
.ops-list, .ops-prs, .ops-runs { margin: 0; padding: 4px 0; list-style: none; }
.ops-list li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 18px; font-size: 14px; }
.ops-list li + li { border-top: 1px solid rgba(255, 255, 255, .04); }
.ops-title { flex: 1; min-width: 0; overflow: hidden; color: var(--mist); text-overflow: ellipsis; white-space: nowrap; }
a.ops-title:hover { color: var(--paper); }
.ops-list time, .ops-pr-foot time, .ops-run-meta time { flex: none; color: var(--ash); font-size: 12px; }
.ops-repo { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.ops-repo.ops-game { background: rgba(255, 138, 61, .14); color: #ff9d5c; }
.ops-repo.ops-web { background: rgba(76, 141, 255, .14); color: #7aa8ff; }
.ops-pr { flex: none; color: var(--fog); font: 600 12.5px ui-monospace, Menlo, Consolas, monospace; }
.ops-pr:hover { color: var(--paper); }
.ops-prs li { display: grid; gap: 6px; padding: 12px 18px; }
.ops-prs li + li { border-top: 1px solid rgba(255, 255, 255, .04); }
.ops-pr-head, .ops-pr-foot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ops-pr-foot { flex-wrap: wrap; }
.ops-pr-foot time { margin-left: auto; }
.ops-branch { overflow: hidden; max-width: 46%; color: var(--ash); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ops-draft { padding: 1px 6px; border-radius: 5px; background: var(--wash-2); color: var(--fog); font-size: 11px; }
.ops-ci { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 9999px; background: var(--wash-2); color: var(--fog); font-size: 11.5px; font-weight: 700; }
.ops-ci:hover { text-decoration: none; filter: brightness(1.15); }
.ops-ci.ci-success { background: rgba(39, 166, 68, .14); color: #4cc46a; }
.ops-ci.ci-failure { background: rgba(235, 87, 87, .14); color: var(--red); }
.ops-ci.ci-running, .ops-ci.ci-queued { background: rgba(242, 201, 76, .14); color: var(--amber); }
.ops-runs li { position: relative; display: flex; gap: 12px; padding: 10px 18px; }
.ops-runs li::before { content: ""; position: absolute; top: 0; bottom: 0; left: 28px; width: 1px; background: var(--graphite); }
.ops-runs li:first-child::before { top: 18px; } .ops-runs li:last-child::before { bottom: calc(100% - 18px); }
.ops-runs li > div { flex: 1; min-width: 0; }
.ops-dot { position: relative; z-index: 1; display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--obsidian); color: var(--fog); box-shadow: 0 0 0 3px var(--carbon); }
.run-success .ops-dot { background: #1d4a2a; color: #6fe08e; } .run-failure .ops-dot { background: #4a1d1d; color: #ff8a8a; }
.run-running .ops-dot, .run-queued .ops-dot { background: #4a3d12; color: var(--amber); }
.run-running .ops-dot .ico { animation: spin 1.6s linear infinite; }
.ops-run-head { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; }
.ops-run-head strong { flex: none; color: var(--paper); font-weight: 650; }
.ops-run-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; color: var(--ash); font-size: 12px; }
.ops-day h4 { margin: 0; padding: 12px 18px 2px; color: var(--fog); font-size: 12px; font-weight: 650; }
@media (max-width: 1100px) { .ops-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ops-hero { gap: 16px; padding: 20px 16px; border-radius: 18px; }
  .ops-hero-main { gap: 12px; }
  .ops-health { padding: 6px 12px; font-size: 13px; }
  .ops-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-facts > div:nth-child(3) { grid-column: span 2; }
  .ops-list li, .ops-prs li, .ops-runs li { padding-left: 14px; padding-right: 14px; }
  .ops-runs li::before { left: 24px; }
  .ops-list time { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ops-pulse::after, .run-running .ops-dot .ico { animation: none; } }
/* shared empty and loading states (design rule: no sentences, an icon and a short title) */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; }
.empty strong { margin: 0; color: var(--fog); font-size: 14px; font-weight: 560; }
.empty > span:not(.empty-mark) { color: var(--ash); font-size: 13px; }
.empty-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wash-2); color: var(--ash); }
.empty-mark .ico { fill: none; stroke: currentColor; stroke-width: 1.5; }
.empty.big .empty-mark { display: none; }
.skeleton { display: grid; gap: 10px; padding: 20px; }
.skeleton span { height: 14px; border-radius: 6px; background: linear-gradient(100deg, var(--obsidian) 30%, var(--graphite) 50%, var(--obsidian) 70%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton span:nth-child(2) { width: 82%; }
.skeleton span:nth-child(3) { width: 58%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton span { animation: none; } }

/* ---------- phone/tablet drawer (≤860px): scrim, close button, scroll lock, no tap delay ---------- */
.menu-close, .ucp-scrim { display: none; }
.menu-toggle, .menu-close, .ucp-side a, .ucp-side summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (max-width: 860px) {
  .ucp-side { z-index: 60; width: min(300px, 86vw); height: 100vh; height: 100dvh; padding-bottom: env(safe-area-inset-bottom); overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; visibility: hidden; transition: transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .22s; }
  .ucp-app.menu-open .ucp-side { visibility: visible; box-shadow: 24px 0 60px rgba(0, 0, 0, .5); transition: transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
  .ucp-scrim { position: fixed; inset: 0; z-index: 55; display: block; background: rgba(0, 0, 0, .55); opacity: 0; animation: scrim-in .2s ease forwards; cursor: pointer; }
  .ucp-scrim[hidden] { display: none; }
  .menu-close { position: absolute; top: 10px; right: 8px; z-index: 1; display: inline-grid; place-items: center; width: 40px; min-height: 40px; padding: 0; border-radius: 50%; color: var(--fog); }
  .menu-close .ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu-toggle { min-width: 40px; min-height: 40px; margin-left: -8px; }
  .ucp-side .ucp-brand { margin-right: 48px; }
  html.menu-locked, html.menu-locked body { overflow: hidden; overscroll-behavior: none; }
}
@keyframes scrim-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ucp-side, .ucp-app.menu-open .ucp-side { transition: none; } .ucp-scrim { animation: none; opacity: 1; } }
/* ---------- player apps: tiles, cards, editor, phone preview ---------- */
.pa-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 9999px; background: var(--wash-2); color: var(--fog); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pa-pill.st-approved { background: rgba(39, 166, 68, .16); color: #4cc46a; }
.pa-pill.st-pending { background: rgba(242, 201, 76, .14); color: var(--amber); }
.pa-pill.st-rejected, .pa-pill.st-suspended { background: rgba(235, 87, 87, .14); color: var(--red); }
.pa-pill.st-draft { background: rgba(99, 102, 241, .16); color: #a5a8ff; }
.pa-tile { --app: #ff8a3d; display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff;
  background: radial-gradient(120% 120% at 30% 0%, color-mix(in srgb, var(--app) 70%, #fff), var(--app) 55%, color-mix(in srgb, var(--app) 70%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px -8px var(--app); }
.pa-tile .ico, .pa-icon-opt .ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pa-tile.size-s { width: 28px; height: 28px; border-radius: 8px; }
.pa-tile.size-l { width: 60px; height: 60px; border-radius: 16px; }
.pa-meta { display: inline-flex; align-items: center; gap: 4px; color: var(--fog); font-size: 12.5px; }
.pa-meta .ico, .pa-slots .ico, .pa-kind .ico, .pa-add .ico, .pa-note .ico, .st-warn .ico, .consent-scopes .ico, .dv-step .ico, .rv-actions .ico, .chip .ico { fill: none; stroke: currentColor; stroke-width: 1.8; }

.pa-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pa-slots { display: inline-flex; align-items: center; gap: 6px; color: var(--fog); font-size: 13px; }
.pa-slots b { color: var(--paper); }
.pa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pa-card { display: flex; flex-direction: column; gap: 14px; min-height: 176px; padding: 18px; border: 1px solid var(--graphite); border-radius: 18px; background: var(--carbon); transition: transform .18s, border-color .18s, background .18s; }
.pa-card:hover { transform: translateY(-3px); border-color: var(--smoke); background: var(--obsidian); text-decoration: none; }
.pa-card-text { display: grid; gap: 2px; min-width: 0; }
.pa-card-text strong { overflow: hidden; color: var(--paper); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.pa-card-text .mono { overflow: hidden; color: var(--ash); font-size: 12px; text-overflow: ellipsis; }
.pa-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; }
.pa-card-foot .pa-meta { margin-left: auto; }
.pa-card.add { align-items: center; justify-content: center; border-style: dashed; background: transparent; color: var(--fog); }
.pa-card.add:hover { color: var(--paper); }
.pa-plus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wash-2); font-size: 24px; font-weight: 300; }
.pa-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; padding: 40px 20px; border: 1px solid var(--graphite); border-radius: var(--r-box); background: var(--carbon); }
.pa-empty > div:last-child { display: grid; justify-items: start; gap: 14px; }
.pa-empty strong { color: var(--paper); font-size: 22px; letter-spacing: -.02em; }
.pa-empty-art .pa-phone { width: 200px; transform: rotate(-4deg); opacity: .9; }

.pa-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.pa-banner > strong { color: var(--paper); font-size: 15px; }
.pa-banner .pa-meta { margin-left: auto; }
.pa-note { display: flex; flex-basis: 100%; align-items: center; gap: 8px; margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(235, 87, 87, .08); color: #f39b9b; font-size: 13.5px; }

.pa-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.pa-preview { position: relative; }
.pa-sticky { position: sticky; top: 76px; display: grid; justify-items: center; }
.pa-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.pa-form fieldset:disabled { opacity: .55; }
.pa-group { padding: 0 0 24px; }
.pa-group + .pa-group { padding-top: 24px; border-top: 1px solid var(--graphite); }
.pa-label { margin-bottom: 10px; color: var(--mist); font-size: 13px; font-weight: 590; }
.pa-slug { display: flex; align-items: stretch; border: 1px solid var(--line-input); border-radius: var(--r-ctl); background: var(--obsidian); }
.pa-slug span { display: flex; align-items: center; padding: 0 0 0 10px; color: var(--ash); font: 13px ui-monospace, Menlo, Consolas, monospace; }
.pa-slug input { flex: 1; min-width: 0; padding-left: 2px; border: 0; background: transparent; font-family: ui-monospace, Menlo, Consolas, monospace; }
.pa-slug input:focus { outline: none; box-shadow: none; }
.pa-slug:focus-within { border-color: var(--accent); }
.pa-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; margin-bottom: 14px; }
.pa-icon-opt, .pa-color-opt { position: relative; cursor: pointer; }
.pa-icon-opt input, .pa-color-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pa-icon-opt span { display: grid; place-items: center; height: 44px; border: 1px solid var(--graphite); border-radius: 12px; color: var(--fog); transition: color .15s, border-color .15s, background .15s; }
.pa-icon-opt:hover span { color: var(--paper); border-color: var(--smoke); }
.pa-icon-opt input:checked + span { border-color: var(--accent); background: rgba(255, 173, 59, .1); color: var(--paper); }
.pa-icon-opt input:focus-visible + span, .pa-color-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pa-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.pa-color-opt span { --app: #888; display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--app); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); transition: transform .15s; }
.pa-color-opt:hover span { transform: scale(1.1); }
.pa-color-opt input:checked + span { box-shadow: 0 0 0 2px var(--void), 0 0 0 4px var(--paper); }
.pa-blocks { display: grid; gap: 10px; }
.pa-block { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--graphite); border-radius: 12px; background: var(--carbon); }
.pa-block:focus-within { border-color: var(--smoke); }
.pa-block-head { display: flex; align-items: center; justify-content: space-between; }
.pa-kind { display: inline-flex; align-items: center; gap: 6px; color: var(--fog); font-size: 12.5px; font-weight: 600; }
.pa-tools { display: flex; gap: 2px; }
button.icon-only { width: 30px; min-height: 30px; padding: 0; font-size: 14px; }
.pa-add { display: flex; gap: 8px; margin-top: 10px; }
.pa-add button { border-style: dashed; }
.pa-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 1px solid var(--graphite); }
.pa-actions .error { flex: 1; margin: 0; }
.pa-actions button { min-height: 40px; padding: 0 18px; }
.pa-actions button.done { background: var(--green); color: #fff; }
.pa-compose { margin-bottom: 20px; }
.pa-posts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pa-posts li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--graphite); border-radius: 12px; background: var(--carbon); }
.pa-posts li.pa-none { display: block; padding: 0; }
.pa-posts strong { color: var(--paper); }
.pa-posts p { margin: 4px 0; color: var(--mist); font-size: 14px; white-space: pre-line; }
.pa-posts li.hidden-post { opacity: .5; }
.pa-manage { display: grid; gap: 10px; }
.pa-manage-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid var(--graphite); border-radius: 12px; background: var(--carbon); }
.pa-manage-row strong { color: var(--paper); font-weight: 510; }

/* the phone */
.pa-phone { --app: #ff8a3d; width: 290px; padding: 10px; border-radius: 46px; background: linear-gradient(160deg, #2a2c31, #111214); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.pa-screen { position: relative; display: flex; flex-direction: column; height: 560px; overflow: hidden; border-radius: 37px; background: #0b0c0e; }
.pa-status { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 22px 0 26px; color: #fff; font-size: 12px; font-weight: 600; }
.pa-island { width: 84px; height: 24px; border-radius: 9999px; background: #000; }
.pa-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.pa-bars i { width: 3px; border-radius: 1px; background: #fff; }
.pa-bars i:nth-child(1) { height: 4px; } .pa-bars i:nth-child(2) { height: 7px; } .pa-bars i:nth-child(3) { height: 10px; }
.pa-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--app) 38%, #0b0c0e), #0b0c0e); }
.pa-head .pa-tile { width: 40px; height: 40px; border-radius: 11px; }
.pa-head div { display: grid; min-width: 0; }
.pa-head strong { overflow: hidden; color: #fff; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.pa-head small { color: rgba(255, 255, 255, .55); font-size: 11.5px; }
.pa-body { display: grid; flex: 1; align-content: start; gap: 10px; padding: 4px 12px 16px; overflow-y: auto; scrollbar-width: none; }
.pa-about, .pa-feed { padding: 12px 14px; border-radius: 16px; background: #17181b; }
.pa-about h4, .pa-feed h4 { margin: 0 0 6px; color: #fff; font-size: 13.5px; font-weight: 650; }
.pa-about p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 12.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.pa-feed article { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.pa-feed h4 + article { border-top: 0; padding-top: 2px; }
.pa-feed article strong { color: #fff; font-size: 12.5px; }
.pa-feed article p { margin: 0; color: rgba(255, 255, 255, .65); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.pa-feed article time { color: var(--app); font-size: 11px; font-weight: 600; }
.pa-feed article.ghost { gap: 6px; }
.pa-ph { display: block; height: 8px; margin: 6px 0; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.pa-ph.w40 { width: 40%; } .pa-ph.w60 { width: 60%; } .pa-ph.w80 { width: 80%; }
.pa-blank { display: grid; place-items: center; height: 200px; color: rgba(255, 255, 255, .2); }
.pa-blank .ico { fill: none; stroke: currentColor; stroke-width: 1.5; }
.pa-homebar { width: 110px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: rgba(255, 255, 255, .5); }

/* staff queue */
.count-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 9999px; background: var(--wash-2); color: var(--mist); font-size: 11.5px; }
.rv-list { display: grid; gap: 16px; max-width: 980px; }
.rv-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; padding: 22px; border: 1px solid var(--graphite); border-radius: 18px; background: var(--carbon); }
.rv-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rv-info header, .st-card header { display: flex; align-items: center; gap: 10px; }
.rv-info header strong { color: var(--paper); font-size: 18px; letter-spacing: -.01em; }
.rv-facts { display: grid; gap: 8px; margin: 0; }
.rv-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.rv-facts dt { color: var(--fog); }
.rv-facts dd { margin: 0; min-width: 0; color: var(--mist); overflow-wrap: anywhere; }
.rv-facts code, .st-id code { color: var(--mist); font: 12.5px ui-monospace, Menlo, Consolas, monospace; }
.rv-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: auto; }
.rv-actions button, .rv-actions .button { min-height: 38px; padding: 0 16px; }
.seg { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: 10px; background: var(--wash); }
.seg button { min-height: 28px; border: 0; color: var(--fog); }
.seg button[aria-pressed="true"] { background: var(--wash-2); color: var(--paper); }

/* sites */
.st-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.st-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--graphite); border-radius: 18px; background: var(--carbon); }
.st-card header > div { display: grid; flex: 1; min-width: 0; }
.st-card header strong { color: var(--paper); font-size: 16px; }
.st-card header a, .cn-text a, .consent-host { color: var(--fog); font-size: 13px; }
.st-mark { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(140deg, #2d3038, #1b1d22); color: var(--paper); font-size: 17px; font-weight: 650; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.st-mark.big { width: 52px; height: 52px; border-radius: 15px; font-size: 22px; }
.st-id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--obsidian); }
.st-id > span { color: var(--ash); font-size: 12px; }
.st-id code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.st-id.secret { background: rgba(255, 173, 59, .08); }
.st-id.secret code { color: var(--paper); }
.st-secret .box-body { display: grid; gap: 10px; padding: 18px 20px; }
.st-warn { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--amber); font-size: 13px; }
.st-scopes { display: grid; gap: 8px; }
.st-scope { position: relative; cursor: pointer; }
.st-scope input { position: absolute; opacity: 0; pointer-events: none; }
.st-scope > span { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--graphite); border-radius: 12px; color: var(--fog); transition: border-color .15s, background .15s; }
.st-scope .ico { fill: none; stroke: currentColor; stroke-width: 1.8; }
.st-scope strong { color: var(--paper); font: 600 13px ui-monospace, Menlo, Consolas, monospace; }
.st-scope em { font-style: normal; font-size: 13.5px; }
.st-scope input:checked + span { border-color: var(--accent); background: rgba(255, 173, 59, .07); color: var(--mist); }
.st-scope input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cn-list { display: grid; gap: 10px; max-width: 920px; margin: 0; padding: 0; list-style: none; }
.cn-list li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--graphite); border-radius: 16px; background: var(--carbon); }
.cn-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.cn-text strong { color: var(--paper); }
.cn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }

/* consent */
.consent { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 48px 16px; overflow: hidden; }
.consent-photo { position: absolute; inset: 0; z-index: 0; }
.consent-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: blur(18px) saturate(1.2); transform: scale(1.1); }
.consent-lang { position: absolute; top: 16px; right: 16px; z-index: 1; }
.consent-card { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; width: min(100%, 400px); padding: 36px 28px 28px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 26px;
  background: rgba(15, 16, 17, .82); backdrop-filter: blur(20px); text-align: center; box-shadow: 0 40px 80px -40px #000; }
.consent-card h1 { font-size: 24px; letter-spacing: -.02em; }
.consent-pair { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.consent-pair img { width: 52px; height: 52px; object-fit: contain; }
.consent-dots { display: inline-flex; gap: 4px; }
.consent-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--smoke); animation: consent-dot 1.4s infinite ease-in-out; }
.consent-dots i:nth-child(2) { animation-delay: .15s; } .consent-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes consent-dot { 0%, 100% { background: var(--smoke); } 50% { background: var(--accent); } }
.consent-host { margin-top: -10px; }
.consent-scopes { display: grid; gap: 2px; width: 100%; margin: 8px 0 0; padding: 6px; border-radius: 16px; background: var(--wash); list-style: none; text-align: left; }
.consent-scopes li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--mist); font-size: 14px; }
.consent-scopes .ico { color: var(--accent); }
.consent-chars { display: grid; gap: 6px; width: 100%; margin: 0; padding: 0; border: 0; }
.consent-chars label { position: relative; cursor: pointer; }
.consent-chars input { position: absolute; opacity: 0; pointer-events: none; }
.consent-chars label > span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--graphite); border-radius: 14px; text-align: left; transition: border-color .15s, background .15s; }
.consent-chars strong { color: var(--paper); font-weight: 510; }
.consent-chars input:checked + span { border-color: var(--accent); background: rgba(255, 173, 59, .08); }
.consent-chars input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent-as { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--fog); font-size: 13px; }
.consent-card .error { margin: 0; min-height: 0; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.consent-actions button { min-height: 46px; border-radius: 14px; font-size: 15px; }
.consent-bad { display: grid; justify-items: center; gap: 14px; padding: 12px 0; }

/* developer docs */
.dv { display: grid; gap: 24px; }
.dv > * { min-width: 0; }
.dv .box + .box { margin-top: 0; }
.dv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dv-step { position: relative; display: grid; gap: 4px; padding: 20px; border: 1px solid var(--graphite); border-radius: 16px; background: var(--carbon); color: var(--fog); font-size: 13px; }
.dv-step .ico { color: var(--accent); margin-bottom: 6px; }
.dv-step strong { color: var(--paper); font-size: 15px; }
.dv-num { position: absolute; top: 16px; right: 18px; color: var(--smoke); font-size: 28px; font-weight: 700; line-height: 1; }
.dv-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.dv-code { position: relative; margin: 16px 20px; border: 1px solid var(--graphite); border-radius: 12px; background: #0b0c0d; }
.dv-code pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: var(--mist); font: 12.5px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.dv-code button { position: absolute; top: 8px; right: 8px; }
.dv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dv-table th, .dv-table td { padding: 12px 20px; border-bottom: 1px solid var(--graphite); text-align: left; vertical-align: top; }
.dv-table th { color: var(--fog); font-size: 12px; font-weight: 590; }
.dv-table tr:last-child td { border-bottom: 0; }
.dv-table td:first-child { color: var(--paper); white-space: nowrap; }
.dv-table code { color: var(--mist); font: 12.5px ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.dv-rules { display: grid; gap: 8px; margin: 0; padding: 18px 20px 18px 38px; color: var(--mist); font-size: 14px; }

@media (max-width: 960px) {
  .pa-edit { grid-template-columns: 1fr; }
  .pa-preview { order: -1; }
  .pa-sticky { position: static; }
  .rv-card { grid-template-columns: 1fr; justify-items: center; }
  .rv-info { width: 100%; }
  .pa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pa-card { min-height: 150px; padding: 14px; border-radius: 16px; }
  .pa-phone { width: 260px; }
  .pa-screen { height: 500px; }
  .rv-card { padding: 16px; }
  .rv-facts div { grid-template-columns: 80px minmax(0, 1fr); }
  .dv-steps { grid-template-columns: 1fr; }
  .dv-table th, .dv-table td { padding: 10px 14px; }
  .dv-table td:first-child { white-space: normal; }
  .dv-code { margin: 12px; }
  .cn-list li { flex-wrap: wrap; }
  .cn-list li > button { margin-left: auto; }
  .consent-card { padding: 28px 20px 20px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .pa-card, .pa-color-opt span { transition: none; } .consent-dots i { animation: none; } }
.dv .table-wrap { max-width: 100%; overflow-x: auto; }
.dv-table code { word-break: break-all; }
@media (max-width: 640px) { .dv-table td:last-child:not(:nth-child(2)) { display: none; } .dv-table th:last-child:not(:nth-child(2)) { display: none; } }

/* ---------- UCP home + forum index (true-black flat): elevation by lightness, no card borders or shadows, one data hue ----------
   Ground --void, panels --panel one step up, rules inside panels --rule. The brand's coral (--data) marks the one live figure:
   the city's player count against its slots. Grid: blocks share the canvas edges; every gap is 16px. */
:root { --panel: #121315; --panel-2: #1a1b1e; --rule: #1f2023; --data: #ff7a45; }
.home-v2 > * + * { margin-top: 16px; }
.home-v2 .box, .forum-index .box, .forum-index details.category { border-color: transparent; background: var(--panel); }
.home-v2 .box-head, .forum-index .box-head, .forum-index .category-head { border-bottom-color: var(--rule); }
.home-v2 .rows > li + li, .forum-index .rows > li + li { border-top-color: var(--rule); }

.city { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); grid-template-areas: "now stats" "actions stats"; gap: 20px 32px; padding: 24px; border-radius: var(--r-box); background: var(--panel); }
.city-now { grid-area: now; min-width: 0; }
.city-label { display: inline-flex; align-items: center; gap: 8px; color: var(--fog); font-size: 13px; font-weight: 560; }
.city-count { display: block; margin-top: 4px; color: var(--paper); font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.city-meter { position: relative; height: 6px; margin-top: 14px; border-radius: 3px; background: var(--panel-2); }
.city-meter i { position: absolute; inset: 0 auto 0 0; width: calc(var(--fill, 0) * 100%); border-radius: 3px; background: var(--data); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.city-meter b { position: absolute; top: -4px; bottom: -4px; left: calc(var(--at, 0) * 100%); width: 2px; border-radius: 1px; background: var(--mist); }
.city-meter b[hidden] { display: none; }
.city-sub { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; color: var(--fog); font-size: 13px; }
.city-sub b, .city-sub a { color: var(--paper); font-weight: 600; }
.city-sub [hidden] { display: none; }
.city-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-self: end; gap: 8px; }
.city-actions .button { min-height: 38px; padding: 0 16px; border-radius: 9999px; font-size: 13.5px; }
.city-stats { grid-area: stats; display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-radius: 10px; background: var(--panel-2); }
.city-stats div { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.city-stats div:nth-child(odd) { border-right: 1px solid var(--rule); }
.city-stats div:nth-child(n+3) { border-top: 1px solid var(--rule); }
.city-stats dt { color: var(--fog); font-size: 12.5px; }
.city-stats dd { margin: 0; color: var(--paper); font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.home-v2 .home-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.home-v2 .home-card { flex: 1 1 240px; border-color: transparent; background: var(--panel); }
.home-v2 .home-card.kind-banner { flex-basis: 100%; }
.home-v2 .home-card:hover { background: var(--panel-2); }
.home-v2 .feed-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.home-v2 .feed-row time, .forum-index .feed-row time, .home-v2 .box-head .dim, .forum-index .board .latest span, .forum-index .board .n span { color: var(--fog); }
.forum-index .forum-now { align-items: start; }
.home-v2 .dash-grid { margin-top: 16px; }
.home-v2 .char-card { border-color: transparent; background: var(--panel-2); transition: background .15s ease; }
.home-v2 .char-card:hover { transform: none; background: #222327; }

.forum-index .forum-title { align-items: flex-end; }
.forum-index .forum-title h1 { background: none; color: var(--paper); font-size: 28px; font-weight: 700; text-transform: none; letter-spacing: -.025em; -webkit-text-fill-color: currentColor; }
.forum-figures { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 8px 0 0; }
.forum-figures div { display: flex; align-items: baseline; gap: 6px; }
.forum-figures div[hidden] { display: none; }
.forum-figures dt { color: var(--fog); font-size: 13px; }
.forum-figures dd { margin: 0; color: var(--paper); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.forum-figures dd .dim { font-weight: 400; }
.forum-index .category-head { background: none; }
.forum-index .category-head h2 { color: var(--fog); font-size: 13px; font-weight: 600; }
.forum-index .forum-icon { width: 40px; height: 40px; background: none; color: var(--ash); }
.forum-index .forum-icon.fresh { background: none; color: var(--data); }
.forum-index .board { transition: background .15s ease; }
.forum-index .board:hover { background: rgba(255, 255, 255, .02); }
.forum-index .forum-grid { gap: 16px; }
.forum-index .forum-now { gap: 16px; margin-bottom: 16px; }
.forum-index details.category + details.category { margin-top: 16px; }

@media (max-width: 860px) {
  .city { grid-template-columns: minmax(0, 1fr); grid-template-areas: "now" "stats" "actions"; gap: 18px; padding: 20px; }
  .city-count { font-size: 34px; }
  .city-stats dd { font-size: 20px; }
  .city-actions .button { flex: 1 1 0; min-height: 44px; padding: 0 12px; }
  .forum-index .forum-title { flex-direction: column; align-items: stretch; gap: 14px; }
  .forum-index .forum-title h1 { font-size: 24px; }
}

/* ---------- UX pass 1 (Hick, Fitts, proximity): sidebar groups, phone tables as cards, primary action at the thumb ---------- */
.menu-group { margin: 18px 12px 6px; color: var(--ash); font-size: 12px; font-weight: 600; }
.menu > .menu-group:first-child { margin-top: 0; }
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 16px; }
  .table tr + tr td { border-top: 0; }
  .table tbody tr + tr { border-top: 1px solid var(--graphite); }
  .table tbody tr:hover td { background: none; }
  .table td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; text-align: right; white-space: normal; }
  .table td::before { content: attr(data-label); flex: none; color: var(--fog); font-size: 13px; text-align: left; }
  .table td:first-child { padding-bottom: 6px; color: var(--paper); font-size: 15px; font-weight: 600; text-align: left; }
  .table td:first-child::before { content: none; }
  .table td:empty { display: none; }
  .content-actions .button.primary { position: fixed; z-index: 30; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; min-height: 48px; justify-content: center; font-size: 15px; }
  .content-actions:not(:has(> :not(.button.primary))) { height: 0; margin: 0; }
  .ucp-content:has(> .content-actions .button.primary) { padding-bottom: 96px; }
}

/* ---------- Oreo shop (2026-10-20): one page, cookie currency, charge packs centre stage, one thumbnail rule ---------- */
.ico.coin { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.store-section-title { margin: 36px 0 16px; color: var(--paper); font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.store-section + .store-section .store-section-title { margin-top: 56px; }
/* Charge: five cards on one line, the recommended one lifted and lit; every card shows bonus, price and price per 100. */
.oreo-packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; max-width: 1120px; margin: 36px auto 0; }
.oreo-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 284px; padding: 30px 14px 22px; border: 1px solid var(--graphite); border-radius: 20px; background: var(--carbon); color: var(--paper); text-align: center; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.oreo-pack:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--smoke); background: var(--carbon); color: var(--paper); }
.oreo-pack.rec { border-color: rgba(255, 138, 61, .55); background: linear-gradient(180deg, rgba(255, 122, 69, .13), var(--carbon) 62%); transform: translateY(-10px); box-shadow: 0 26px 50px -26px rgba(255, 90, 60, .6); }
.oreo-pack.rec:hover:not(:disabled) { transform: translateY(-12px); background: linear-gradient(180deg, rgba(255, 122, 69, .16), var(--carbon) 62%); }
.oreo-pack[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 26px 50px -26px rgba(255, 90, 60, .6); }
.oreo-flag { position: absolute; top: -11px; left: 50%; padding: 3px 12px; border-radius: 9999px; background: var(--grad); color: #121212; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; transform: translateX(-50%); }
.oreo-stack { display: flex; align-items: flex-end; justify-content: center; height: 56px; margin-bottom: 12px; }
.oreo-stack .ico { width: 44px; height: 44px; }
.oreo-stack .ico + .ico { margin-left: -24px; }
.oreo-amount { display: flex; align-items: baseline; gap: 6px; }
.oreo-amount b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.oreo-amount small { color: var(--fog); font-size: 13px; font-weight: 600; }
.oreo-bonus { padding: 2px 10px; border-radius: 9999px; background: rgba(76, 196, 106, .14); color: #4cc46a; font-size: 13px; font-weight: 700; }
.oreo-bonus.none { visibility: hidden; }
.oreo-price { margin-top: auto; padding-top: 14px; font-size: 18px; font-weight: 700; }
.oreo-unit { color: var(--fog); font-size: 12.5px; }
#shop-packs .pack-checkout { max-width: 1120px; margin-right: auto; margin-left: auto; }
/* Items: a 4:3 tile in the item's tone; a still image covers it, otherwise the icon sits centred. */
.item-card .item-art { height: auto; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--tone) 15%, #121315); }
.item-card .item-glow { display: none; }
.item-card .item-art .ico { width: 48px; height: 48px; color: var(--tone); filter: none; }
.item-card .item-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.buy-art img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Soft-3D item art (the game's icon set): centred, contained, lifts on hover; the purchase sheet shows it larger. */
.item-card .item-art img.item-3d { position: static; inset: auto; width: 76px; height: 76px; object-fit: contain; transition: transform .25s cubic-bezier(.2, 1.2, .4, 1); }
.item-card:hover .item-art img.item-3d { transform: translateY(-4px) scale(1.06); }
.buy-icon img.item-3d { display: block; width: 120px; height: 120px; object-fit: contain; border-radius: 0; }
@media (max-width: 640px) { .item-card .item-art img.item-3d { width: 60px; height: 60px; } .buy-icon img.item-3d { width: 96px; height: 96px; } }
@media (prefers-reduced-motion: reduce) { .item-card .item-art img.item-3d { transition: none; } }
@media (max-width: 1100px) { .oreo-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 640px) {
  .oreo-packs { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
  .oreo-pack { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; grid-template-areas: "stack amount price" "stack bonus unit"; align-items: center; gap: 4px 12px; min-height: 0; padding: 18px 16px; border-radius: 16px; text-align: left; }
  .oreo-pack.rec, .oreo-pack.rec:hover:not(:disabled) { transform: none; }
  .oreo-stack { grid-area: stack; justify-content: flex-start; height: auto; margin: 0; }
  .oreo-stack .ico { width: 32px; height: 32px; }
  .oreo-stack .ico + .ico { margin-left: -21px; }
  .oreo-amount { grid-area: amount; }
  .oreo-amount b { font-size: 24px; }
  .oreo-bonus { grid-area: bonus; justify-self: start; }
  .oreo-bonus.none { display: none; }
  .oreo-price { grid-area: price; margin: 0; padding: 0; font-size: 16px; text-align: right; }
  .oreo-unit { grid-area: unit; text-align: right; }
  .oreo-flag { top: -9px; left: 16px; transform: none; }
  .store-section-title { font-size: 19px; }
}

/* Turnstile failure: one line under the submit button, with a retry. */
.captcha-fail { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; margin: 10px 0 0; color: var(--red); font-size: 13px; }
.captcha-fail[hidden] { display: none; }
.captcha-fail .link-button { color: var(--paper); font-weight: 600; }

/* ---------- game items: the game's soft-3D icons in a tile grid ---------- */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin: 0; padding: 16px; list-style: none; }
.inv-grid li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 12px; background: var(--wash); text-align: center; }
.inv-art { display: grid; place-items: center; width: 64px; height: 64px; color: var(--ash); }
.inv-art img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.inv-art .ico { fill: none; stroke: currentColor; stroke-width: 1.5; }
/* Catalog weapon art is 512x192 (8:3): a wider box so a gun keeps its body instead of a 24 px sliver. */
.inv-art-wide { width: 100%; max-width: 96px; }
.inv-art-wide img { width: 100%; height: auto; max-height: 64px; }
.inv-name { color: var(--mist); font-size: 13px; line-height: 1.3; word-break: keep-all; }
.inv-qty { position: absolute; top: 8px; right: 10px; color: var(--paper); font-size: 12px; font-weight: 700; }
@media (max-width: 640px) { .inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px; gap: 8px; } }
/* ---------- public news (phone news app articles): outlet chips, one lead, rows; the article in a reading column ---------- */
.pr-outlets { display: flex; gap: 8px; margin: 0 0 24px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.pr-outlets a { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid var(--graphite); border-radius: 9999px; color: var(--fog); font-size: 14px; font-weight: 560; }
.pr-outlets a:hover { border-color: var(--smoke); color: var(--paper); text-decoration: none; }
.pr-outlets a[aria-current="page"] { border-color: var(--paper); background: var(--paper); color: #111; }
.pr-outlets .num { color: inherit; font-size: 12px; opacity: .6; }
.pr-cat { display: inline-block; padding: 2px 9px; border-radius: 9999px; background: var(--wash-2); color: var(--mist); font-size: 12px; font-weight: 650; }
.pr-cat.c-incident { background: rgba(235, 87, 87, .14); color: #ff8a8f; }
.pr-cat.c-economy { background: rgba(76, 196, 106, .14); color: #4cc46a; }
.pr-cat.c-column { background: rgba(139, 123, 255, .16); color: #b4a9ff; }
.pr-lead { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 30px 24px; border-radius: 18px 18px 0 0; background: linear-gradient(160deg, rgba(255, 79, 88, .12), transparent 55%), var(--carbon); color: var(--paper); }
.pr-lead:hover { text-decoration: none; }
.pr-lead strong { font-size: 30px; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; }
.pr-lead:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.pr-lead p { max-width: 68ch; color: var(--mist); font-size: 16px; line-height: 1.7; }
.pr-lead-meta { padding: 0 30px 22px; border-radius: 0 0 18px 18px; background: var(--carbon); }
.pr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--fog); font-size: 13px; }
.pr-meta a { color: var(--paper); font-weight: 600; }
.pr-photo .ico { fill: none; stroke: currentColor; stroke-width: 1.7; vertical-align: -2px; }
.pr-rows { margin: 16px 0 0; padding: 0; list-style: none; border-radius: 16px; background: var(--carbon); }
.pr-rows li { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; }
.pr-rows li + li { border-top: 1px solid var(--graphite); }
.pr-row { display: grid; gap: 6px; justify-items: start; color: var(--paper); }
.pr-row:hover { text-decoration: none; }
.pr-row strong { font-size: 17px; font-weight: 700; line-height: 1.4; }
.pr-row:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.pr-ex { display: -webkit-box; overflow: hidden; color: var(--fog); font-size: 14px; line-height: 1.6; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.pr-article { max-width: 720px; margin: 8px auto 0; }
.pr-article h2 { margin: 14px 0 12px; color: var(--paper); font-size: 34px; font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.pr-byline { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 20px; border-bottom: 1px solid var(--graphite); color: var(--fog); font-size: 14px; }
.pr-byline strong { color: var(--paper); }
.pr-body { padding-top: 24px; color: var(--mist); font-size: 17px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.pr-more { max-width: 720px; margin: 48px auto 0; }
.pr-more h3 { color: var(--paper); font-size: 15px; font-weight: 700; }
@media (max-width: 640px) {
  .pr-lead { padding: 24px 18px 18px; }
  .pr-lead strong { font-size: 23px; }
  .pr-lead-meta { padding: 0 18px 18px; }
  .pr-rows li { padding: 16px 18px; }
  .pr-article h2 { font-size: 26px; }
  .pr-body { font-size: 16px; }
}
.pr-lead strong, .pr-row strong, .pr-article h2 { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- country: top notice until the account has one, typeahead picker (bug-notes 73) ---------- */
.country-notice { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 28px; border-bottom: 1px solid rgba(242, 201, 76, .25); background: linear-gradient(180deg, rgba(242, 201, 76, .12), rgba(242, 201, 76, .05)); }
.country-notice strong { color: var(--amber); font-size: 14px; }
.country-pick { position: relative; min-width: 180px; flex: 1; }
.country-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 240px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; border: 1px solid var(--graphite); border-radius: var(--r-ctl); background: #15171b; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.country-list li { padding: 8px 10px; border-radius: 6px; color: var(--paper); font-size: 14px; cursor: pointer; }
.country-list li:hover, .country-list li:focus { background: rgba(255, 255, 255, .06); }
.country-list li.none { color: var(--ash); cursor: default; }
.inline-confirm .country-pick input.country-q { width: 220px; }
@media (max-width: 720px) {
  .country-notice { padding: 10px 16px; }
  .inline-confirm .country-pick input.country-q { width: 100%; }
}
