@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; }
.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; }
.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; }
.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; }

/* ---------- 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-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; }

/* ---------- 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; }
  .table th:nth-child(2), .table td:nth-child(2) { display: none; }
}
@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(54px, 9.2vw, 138px); 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; }

.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; }
.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; }
.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: #ff9b6a; }
.choose-head { padding: 14px 20px 6px; 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-search { display: none; }
  .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; }
.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 .lang-switch { display: none; }
  .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; }

.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 + .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::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: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) {
  .script { padding: 0 14px 12px; font-size: 26px; }
  .script::after { left: 14px; right: 14px; }
  .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; }
}
