/* Hallmark · v2.0.0 · redesign: full · scope: page (/) + app screens · genre: atmospheric · built: the project · theme: brand (black ground, one blood-red signal, Pretendard + Cinzel wordmark) · hero: Stage (/) · signature: your own character standing on the world map */
/* critique: one top bar instead of three bands; the home page opens on the world map with your character beside the wordmark; boards become a quiet side list and a rounded table; every colour now a token, one red signal for "you are here", contrast lifted on dim text, every control gets hover / press / focus. */
/* waive 29: the sticky top bar is the one glass licence the atmospheric genre allows */
/* NEW DA web portal — hand-written, no framework. Mood: old Korean MMO homepage, dense tables, square frames, black ground. */

:root {
  /* ground and surfaces, darkest to lightest */
  --bg:        #070707;   /* page ground */
  --bg-raise:  #0b0b0b;   /* utility bar, footer */
  --field:     #0a0a0a;   /* inputs, wells */
  --surface:   #111111;   /* panels */
  --surface-2: #181818;   /* panel heads, row hover */
  --surface-3: #202020;   /* selected, pressed */
  --glow:      #1a1a1a;   /* top-of-page light */

  /* lines */
  --line:      #2a2a2a;   /* frame */
  --line-soft: #1f1f1f;   /* row rules */
  --line-dk:   #040404;   /* inner shadow line */
  --line-hi:   #6a6a6a;   /* control border */
  --line-hot:  #9a9a9a;   /* control border, hover */

  /* text */
  --tx-strong: #f2f2f2;   /* hover, headline */
  --tx-head:   #e4e4e4;   /* headings */
  --tx:        #d0d0d0;   /* body */
  --tx-mute:   #8e8e8e;   /* meta, dates (4.5:1 on panels) */
  --tx-faint:  #5a5a5a;   /* separators, disabled */

  /* one signal colour + money */
  --accent:    #b23a2e;   /* blood red: current page, GM mark, live */
  --accent-tx: #e0857a;   /* the red as readable text */
  --accent-dk: #4e1712;
  --accent-hi: #cf4a3c;   /* game start button, top light */
  --accent-lo: #8e2a21;   /* game start button, base */
  --on-accent: #fff4f2;
  --err-bg:    #24100d;
  --gold:      #d6b56a;
  --shade:     #000000;
  --scrim:     rgba(7,7,7,.92);
  --scrim-mid: rgba(7,7,7,.62);
  --scrim-lo:  rgba(7,7,7,.12);
  --gloss:     rgba(255,255,255,.04);
  --bar:       rgba(7,7,7,.82);
  --card:      #101010;

  /* radius */
  --r-sm: 4px; --r-md: 6px; --r-lg: 8px;

  /* type */
  --sans:  "Pretendard Variable", Pretendard, "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif;
  --serif: var(--sans);
  --brand: Cinzel, "Pretendard Variable", serif;
  --mono:  Consolas, "D2Coding", monospace;

  /* motion */
  --fast: 120ms;
  --ease: cubic-bezier(.2,.7,.2,1);

  /* old names kept for any later page */
  --ink: var(--bg); --ink-2: var(--surface); --ink-3: var(--surface-2);
  --brass: var(--tx-head); --brass-dk: var(--line-hi); --text: var(--tx); --text-dim: var(--tx-mute); --link: var(--tx);
  --blood: var(--accent); --blood-dk: var(--accent-dk);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background: var(--bg); }
body {
  margin: 0; min-width: 320px;
  background: var(--bg) radial-gradient(ellipse at 50% 0, var(--glow) 0, var(--bg) 60%) no-repeat;
  color: var(--tx); font: 14px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--tx); text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--tx-strong); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--tx-head); outline-offset: 2px; transition: none;
}
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.dim { color: var(--tx-mute); }
.r { float: right; }
.inline { display: inline; margin: 0; }
i { font-style: normal; color: var(--tx-faint); margin: 0 8px; }

/* ---- top bar: wordmark, menu, account in one row, over a blurred ground ---- */
.skip { position: absolute; left: 8px; top: -48px; z-index: 20; padding: 8px 12px; background: var(--tx-head); color: var(--bg); }
.skip:focus-visible { top: 8px; }
.bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bar); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.bar-in { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; flex: none; text-decoration: none !important; }
.brand-name { font: 700 24px/1 var(--brand); color: var(--tx-strong); letter-spacing: 0; }
.brand-tag { font: 13px var(--sans); color: var(--tx-mute); }
.gnb { display: flex; align-items: stretch; gap: 4px; height: 100%; min-width: 0; }
.gnb a {
  position: relative; display: flex; align-items: center; padding: 0 12px; font: 500 15px/1 var(--sans); color: var(--tx-mute);
  white-space: nowrap; transition: color var(--fast) var(--ease);
}
.gnb a:hover { color: var(--tx-strong); text-decoration: none; }
.gnb a:active { color: var(--tx); }
.gnb a.on { color: var(--tx-strong); }
.gnb a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); }
.util { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 13px; color: var(--tx-mute); white-space: nowrap; }
.util .clock { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--tx-faint); }
.util .me-link b { color: var(--tx-head); font-weight: 600; }
.gm { font-style: normal; color: var(--accent-tx); border: 1px solid var(--accent-dk); border-radius: var(--r-sm); padding: 0 4px; margin-left: 4px; font-size: 11px; }
.linklike { background: none; border: 0; padding: 0; color: var(--tx-mute); font: inherit; cursor: pointer; transition: color var(--fast) var(--ease); }
.linklike:hover { color: var(--tx-strong); text-decoration: underline; text-underline-offset: 3px; }

.body { padding-top: 28px; padding-bottom: 64px; }
.is-home .body { padding-top: 0; }

/* ---- home hero: the world map behind your character ---- */
.hero { position: relative; isolation: isolate; margin-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: center;
  min-height: 480px; padding-top: 48px; padding-bottom: 56px;
}
/* background slides (wwwroot/js/site.js turns them every 7 s); the first one shows without scripting */
.hero-bg { position: absolute; z-index: -2; inset: 0; background: var(--bg); overflow: hidden; }
.slide { position: absolute; inset: 0; background: center 45% / cover no-repeat; }
.slide:not(.on) { display: none; }   /* no scripting: only the first slide */
.js .slide:not(.on) { display: block; }
.js .slide {
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.4s var(--ease), transform 8s linear;
}
.js .slide.on { opacity: 1; transform: scale(1); }
.slide.s1 { background-image: url(/img/hero-1-worldmap.jpg); }
.slide.s2 { background-image: url(/img/hero-2-jobs.jpg); background-position: center 25%; }
.slide.s3 { background-image: url(/img/hero-3-select.jpg); background-position: center 35%; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    linear-gradient(180deg, var(--scrim-lo) 0, var(--scrim-lo) 60%, var(--bg) 100%),
    linear-gradient(90deg, var(--scrim-mid) 0, var(--scrim-lo) 50%, transparent 100%);
}
.hero-dots { position: absolute; z-index: 1; left: max(16px, calc(50% - 524px)); bottom: 20px; display: flex; gap: 8px; }
.hero-dots button {
  width: 24px; height: 4px; min-height: 0; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--line-hi); opacity: .6; transition: opacity var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.hero-dots button::after { content: ""; display: block; height: 20px; margin-top: -8px; }
.hero-dots button:hover { opacity: 1; }
.hero-dots button.on { background: var(--tx-strong); opacity: 1; }
.hero-mark { margin: 0; font: 700 72px/1 var(--brand); color: var(--tx-strong); letter-spacing: 0; text-shadow: 0 2px 24px var(--shade); }
.hero-line { margin: 16px 0 0; font-size: 18px; line-height: 1.5; color: var(--tx); max-width: 28em; }
.hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero-link { margin-left: 8px; color: var(--tx); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-hi); }
.hero-link:hover { text-decoration-color: currentColor; }
.hero-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 4px 0;
}
.hero-card .doll-box { margin: 12px 12px 0; border-radius: var(--r-md); }
.card-h { margin: 0; padding: 12px 16px 0; font: 700 16px/1.4 var(--sans); color: var(--tx-head); }
.hero-card .kv { padding: 8px 16px 0; }
.hero-card .form.compact { padding: 12px 16px; }
.hero-card .links, .account .links { display: flex; justify-content: flex-end; gap: 16px; margin: 0; padding: 8px 16px 12px; font-size: 13px; }

/* ---- panels: lightness step, soft corners ---- */
.panel {
  background: var(--surface); color: var(--tx); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  margin-bottom: 16px; overflow: hidden;
}
.ph {
  margin: 0; padding: 12px 16px; font: 700 15px/1.4 var(--sans); color: var(--tx-head);
  border-bottom: 1px solid var(--line-soft); position: relative;
}
.ph .more { position: absolute; right: 16px; top: 13px; font: 13px/1.4 var(--sans); color: var(--tx-mute); }
.panel.narrow { max-width: 420px; margin: 32px auto; }
.note { padding: 0 16px 16px; margin: 12px 0 0; color: var(--tx-mute); font-size: 13px; }
.empty { color: var(--tx-mute); text-align: center; padding: 20px 0 !important; }

/* ---- home ---- */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.sec-h { margin: 8px 0 12px; font: 700 20px/1.3 var(--sans); color: var(--tx-head); }
.sec-h ~ .sec-h { margin-top: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.split .panel { margin-bottom: 0; }
.mini-list { list-style: none; margin: 0; padding: 8px 16px 12px; }
.mini-list li {
  display: flex; align-items: baseline; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line-soft);
  white-space: nowrap; overflow: hidden;
}
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mini-list .date { margin-left: auto; padding-left: 12px; color: var(--tx-mute); font-size: 12px; flex: none; font-variant-numeric: tabular-nums; }
.rank { margin: 0; padding: 12px 16px 12px 36px; }
.rank li { padding: 4px 0; color: var(--tx-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank li::marker { color: var(--tx-mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.rank li:nth-child(-n+3)::marker { color: var(--accent-tx); }
.rank li.empty { list-style: none; margin-left: -20px; }
.kv { display: grid; grid-template-columns: 80px minmax(0, 1fr); margin: 0; padding: 12px 16px 0; row-gap: 4px; }
.kv dt { color: var(--tx-mute); } .kv dd { margin: 0; }

/* ---- category tags: coloured text, not pills ---- */
.cat { color: var(--tx-mute); margin-right: 4px; font-size: 12px; }
.cat-공지, .cat-점검 { color: var(--accent-tx); }
.cat-업데이트 { color: var(--tx-head); }
.cat-진행 { color: var(--tx-head); }
.cat-예정 { color: var(--tx-mute); }
.cat-종료 { color: var(--tx-faint); }
.cc { color: var(--tx-mute); font-size: 11px; margin-left: 4px; }
.hot { color: var(--accent-tx); font-size: 11px; margin-left: 8px; }

/* ---- board layout: a quiet list of boards on the left, the table on the right ---- */
.cols { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 32px; align-items: start; }
.side { position: sticky; top: 84px; }
.side-box { margin-bottom: 20px; }
.side-box h3 { margin: 0 0 4px; padding: 0 12px; font: 600 12px/1.6 var(--sans); color: var(--tx-mute); }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li a {
  display: block; padding: 8px 12px; border-radius: var(--r-md); color: var(--tx-mute);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.side-box li a:hover { background: var(--surface); color: var(--tx-strong); text-decoration: none; }
.side-box li a:active { background: var(--surface-2); }
.side-box li.on a { color: var(--tx-strong); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.content { min-width: 0; }
.board-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 16px; }
.board-head h2 { margin: 0; font: 700 28px/1.2 var(--sans); color: var(--tx-head); }
.board-head h2 a { color: inherit; }
.board-head .sub { font-size: 15px; color: var(--tx-mute); margin-left: 4px; }
.board-head .count { color: var(--tx-mute); font-size: 13px; margin-left: auto; font-variant-numeric: tabular-nums; }
.cats { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; font-size: 13px; }
.cats a {
  display: inline-block; padding: 4px 12px; color: var(--tx-mute); border: 1px solid var(--line-soft); border-radius: 999px;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.cats a:hover { color: var(--tx-strong); border-color: var(--line-hi); text-decoration: none; }
.cats a.on { color: var(--bg); border-color: var(--tx-head); background: var(--tx-head); }

table.bbs { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.bbs .c-no { width: 64px; } .bbs .c-who { width: 120px; } .bbs .c-date { width: 72px; } .bbs .c-num { width: 56px; }
.bbs th {
  font-weight: normal; color: var(--tx-mute); font-size: 12px; padding: 12px 4px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.bbs td { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbs tbody tr:last-child td { border-bottom: 0; }
.bbs td.ttl { text-align: left; padding-left: 16px; }
.bbs td.no, .bbs td.date, .bbs td.num { color: var(--tx-mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.bbs tbody tr { transition: background-color var(--fast) var(--ease); }
.bbs tbody tr:hover { background: var(--surface-2); }
.bbs tr.pin { background: var(--surface-2); }
.bbs tr.pin td.no { color: var(--accent-tx); font-size: 12px; }
.bbs tr.pin td.ttl a { color: var(--tx-strong); font-weight: 600; }

.board-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.search { display: flex; gap: 8px; }
.search input { width: 220px; }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 20px; font-size: 13px; }
.pager a, .pager b { display: inline-block; min-width: 32px; padding: 4px 8px; text-align: center; border-radius: var(--r-md); font-variant-numeric: tabular-nums; }
.pager a { color: var(--tx-mute); }
.pager a:hover { background: var(--surface); color: var(--tx-strong); text-decoration: none; }
.pager b { color: var(--bg); background: var(--tx-head); font-weight: 600; }

/* ---- article ---- */
.post { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.post-head { padding: 24px 28px 16px; border-bottom: 1px solid var(--line-soft); }
.post-head h1 { margin: 0 0 12px; font: 700 26px/1.35 var(--sans); color: var(--tx-head); }
.post-head h1 .cat { font: 16px var(--sans); }
.meta { font-size: 13px; color: var(--tx-mute); display: flex; gap: 16px; flex-wrap: wrap; }
.meta .who { color: var(--tx); }
.meta .r { margin-left: auto; float: none; }
.post-body {
  margin: 0; padding: 28px; min-height: 160px; max-width: 760px;
  color: var(--tx); font-size: 16px; line-height: 1.85; word-break: break-word;
}
.post-body a { color: var(--tx-strong); text-decoration: underline; text-underline-offset: 3px; }
.post-acts { text-align: center; padding: 8px 0 24px; }
.post-tools { margin: 16px 0 24px; overflow: hidden; }

/* ---- comments ---- */
.comments h3 { font: 700 16px/1.4 var(--sans); color: var(--tx-head); margin: 0 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.comments h3 b { color: inherit; }
.comments ul { list-style: none; margin: 0; padding: 0; }
.comments li { padding: 12px 4px 12px 8px; border-bottom: 1px solid var(--line-soft); }
.comments li.reply { padding-left: 32px; background: var(--surface); position: relative; }
.comments li.reply::before { content: "└"; position: absolute; left: 12px; top: 12px; color: var(--tx-faint); }
.c-meta { font-size: 12px; overflow: hidden; }
.c-meta b { color: var(--tx); font-weight: 600; }
.c-meta .r .linklike { color: var(--tx-mute); font-size: 12px; margin-left: 8px; }
.c-body { margin: 4px 0 0; word-break: break-word; }
.gone { margin: 0; color: var(--tx-faint); font-size: 12px; }
.c-login { padding: 16px; text-align: center; color: var(--tx-mute); }
.c-form { display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 8px; margin-top: 12px; }
.c-form textarea { grid-column: 1; resize: vertical; }
.c-form .btn { grid-column: 2; }
.c-replying { grid-column: 1 / -1; font-size: 12px; color: var(--tx-head); }

/* ---- forms & buttons ---- */
input, textarea, select {
  background: var(--field); color: var(--tx); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 8px 12px; min-height: 36px; font: 14px/1.4 var(--sans);
  transition: border-color var(--fast) var(--ease);
}
input:hover, textarea:hover, select:hover { border-color: var(--line-hi); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--tx-head); outline-offset: 0; border-color: var(--line-hi); transition: none; }
input::placeholder, textarea::placeholder { color: var(--tx-faint); }
input[disabled], textarea[disabled], select[disabled] { opacity: .5; cursor: not-allowed; }
input[type=checkbox], input[type=radio] { min-height: 0; accent-color: var(--accent); }
.form { padding: 20px; }
.form label { display: block; margin-bottom: 16px; color: var(--tx-mute); font-size: 13px; }
.form label input, .form label select { display: block; width: 100%; margin-top: 4px; }
.form small { display: block; margin-top: 4px; color: var(--tx-mute); }
.form .check { display: flex; align-items: center; gap: 8px; }
.form .check input { width: auto; display: inline; margin: 0; }
.form-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.form-foot { display: flex; justify-content: center; gap: 16px; margin: 16px 0 0; font-size: 13px; color: var(--tx-mute); }
.form-foot i { display: none; }
.form.compact { padding: 12px; display: grid; gap: 8px; }
.form.write { padding: 0; }
.write-row { display: flex; gap: 8px; margin-bottom: 8px; }
.write-row input { flex: 1; min-width: 0; }
.form.write textarea { width: 100%; line-height: 1.7; resize: vertical; }
.err { margin: 0 0 16px; padding: 8px 12px; color: var(--accent-tx); background: var(--err-bg); border: 1px solid var(--accent-dk); border-radius: var(--r-md); }
.notice-msg { padding: 20px 20px 4px; margin: 0; }
.panel.narrow > p:last-child { padding: 0 20px 20px; margin: 12px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 36px; padding: 0 16px; font: 600 14px/1 var(--sans); color: var(--tx); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { color: var(--tx-strong); border-color: var(--line-hi); background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(1px); background: var(--surface); }
.btn.primary { background: var(--tx-head); border-color: var(--tx-head); color: var(--bg); }
.btn.primary:hover { background: var(--tx-strong); border-color: var(--tx-strong); color: var(--bg); }
.btn.primary:active { background: var(--tx); }
.btn.danger { color: var(--accent-tx); border-color: var(--accent-dk); }
.btn.danger:hover { border-color: var(--accent); color: var(--tx-strong); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { min-height: 44px; padding: 0 24px; font-size: 15px; }
.btn.xl { min-height: 52px; padding: 0 28px; font-size: 16px; border-radius: var(--r-lg); }
.btn .ico { width: 16px; height: 16px; flex: none; fill: currentColor; }
.btn.xl .ico { width: 18px; height: 18px; }
/* game start: the one red button on the site */
.btn.play {
  gap: 8px; color: var(--on-accent); border-color: var(--accent-hi);
  background: linear-gradient(180deg, var(--accent-hi) 0, var(--accent) 55%, var(--accent-lo) 100%);
  box-shadow: inset 0 1px 0 var(--gloss), 0 1px 0 var(--shade);
}
.btn.play:hover { color: var(--on-accent); border-color: var(--accent-tx); background: linear-gradient(180deg, var(--accent-tx) 0, var(--accent-hi) 55%, var(--accent) 100%); }
.btn.play:active { background: var(--accent-lo); }
.btn.play.xl { min-width: 180px; letter-spacing: .02em; }
.btn.play[disabled] { background: var(--surface-2); border-color: var(--line); color: var(--tx-faint); cursor: not-allowed; box-shadow: none; opacity: 1; }
.btn.ghost { gap: 8px; background: var(--scrim-mid); border-color: var(--line-hi); color: var(--tx-strong); }
.btn.ghost:hover { background: var(--surface-3); border-color: var(--line-hot); }
.btn.like { min-width: 96px; min-height: 40px; padding: 0 20px; }
.btn.like b { color: var(--tx-head); margin-left: 4px; font-weight: normal; }
.btn.like.on { border-color: var(--accent); color: var(--accent-tx); }
.btn.like.on b { color: var(--accent-tx); }

/* ---- /download ---- */
.dl { max-width: 760px; }
.dl-head h2 { margin: 0 0 8px; font: 700 28px/1.2 var(--sans); color: var(--tx-head); }
.dl-head p { margin: 0 0 24px; font-size: 15px; }
.dl-card { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.dl-card h3 { margin: 0 0 8px; font: 700 20px/1.3 var(--sans); color: var(--tx-head); }
.dl-card p { margin: 0 0 20px; }
.dl-badge { position: absolute; top: 28px; right: 28px; font-size: 12px; color: var(--accent-tx); border: 1px solid var(--accent-dk); border-radius: 999px; padding: 4px 12px; }
.dl-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; }
.dl-steps li { counter-increment: s; padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.dl-steps li::before { content: counter(s); display: block; margin-bottom: 12px; font: 700 28px/1 var(--brand); color: var(--accent-tx); }
.dl-steps b { display: block; margin-bottom: 4px; color: var(--tx-head); }
.dl-steps span { color: var(--tx-mute); font-size: 13px; }
@media (max-width: 820px) { .dl-steps { grid-template-columns: minmax(0, 1fr); } .dl-badge { position: static; display: inline-block; margin-bottom: 12px; } }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line-soft); background: var(--bg-raise); color: var(--tx-mute); font-size: 13px; padding: 32px 0 40px; }
.foot-in { display: flex; gap: 40px; align-items: baseline; }
.foot-mark { font: 700 20px/1 var(--brand); color: var(--tx-head); flex: none; }
.foot p { margin: 4px 0; }

/* ---- narrow screens ---- */
@media (max-width: 960px) {
  .bar-in { flex-wrap: wrap; height: auto; gap: 0 16px; padding-top: 12px; }
  .util { order: 2; }
  .gnb { order: 3; flex: 1 0 100%; height: 44px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; }
  .util .clock { display: none; }
}
@media (max-width: 820px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 32px; padding-bottom: 48px; gap: 24px; }
  .hero-mark { font-size: 48px; }
  .home, .cols { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; display: flex; gap: 16px; overflow-x: auto; }
  .side-box { margin-bottom: 8px; }
  .side-box ul { display: flex; gap: 4px; }
  .side-box li a { padding: 4px 12px; white-space: nowrap; }
  .bbs .c-no, .bbs .c-num, .bbs td.no, .bbs td.num, .bbs th:first-child, .bbs th:last-child { display: none; }
  .bbs .c-who { width: 84px; }
  .board-head h2 { font-size: 22px; }
  .search input { width: 140px; }
  .post-head { padding: 20px 16px 12px; }
  .post-head h1 { font-size: 22px; }
  .post-body { padding: 20px 16px; }
  .foot-in { flex-direction: column; gap: 12px; }
}

/* ---- phase 2: my page / characters ---- */
.me, .char { display: grid; gap: 0; }
.char { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kv.wide { grid-template-columns: 96px minmax(0, 1fr); padding-bottom: 12px; }
.flash { margin: 12px 12px 0; padding: 8px 12px; color: var(--tx-head); background: var(--surface-2); border: 1px solid var(--line); }
table.grid { width: calc(100% - 24px); margin: 12px; border-collapse: collapse; }
.grid th { font-weight: normal; color: var(--tx-mute); font-size: 12px; text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.grid td { padding: 8px; border-bottom: 1px solid var(--line-soft); }
.grid td.num { font-variant-numeric: tabular-nums; }
.grid td.act { text-align: right; width: 72px; }
.grid tr.main td { background: var(--surface-2); }
.tag { margin-left: 8px; font-size: 11px; color: var(--accent-tx); border: 1px solid var(--accent-dk); padding: 0 4px; }
.link-box { padding: 4px 12px 16px; }
.note.flat { padding: 0; margin: 4px 0 12px; }
.code-line { margin: 8px 0 4px; }
.code { font: 700 22px/1 var(--mono); letter-spacing: 4px; color: var(--tx-strong); background: var(--field); border: 1px solid var(--line-hi); padding: 4px 12px; margin: 0 8px; }
.steps { margin: 8px 0 12px; padding-left: 20px; color: var(--tx-mute); }
.steps code { color: var(--tx-head); background: var(--field); padding: 0 4px; }
.char-tag { margin-left: 8px; font-size: 11px; color: var(--tx-mute); }
.c-meta .char-tag { margin-right: 4px; }
.gold { color: var(--gold); font-variant-numeric: tabular-nums; }
table.stats { width: calc(100% - 24px); margin: 4px 12px 0; border-collapse: collapse; }
.stats th { width: 60px; text-align: left; font-weight: normal; color: var(--tx-mute); padding: 4px 0; }
.stats td { padding: 4px 0; font-variant-numeric: tabular-nums; }
.equip { list-style: none; margin: 0; padding: 8px 12px 12px; }
.equip li { display: flex; align-items: center; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); }
.equip li:last-child { border-bottom: 0; }
.slot-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: var(--field); border: 1px solid var(--line); box-shadow: inset 0 0 0 1px var(--shade); }
.slot-ico img { max-width: 32px; max-height: 32px; image-rendering: pixelated; }
.e-name { flex: 1; min-width: 0; }
.dur { font-size: 11px; color: var(--tx-mute); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .char { grid-template-columns: minmax(0, 1fr); } }

/* ---- phase 3: mailbox / GM grant ---- */
.mail-help { margin: 0 0 12px; color: var(--tx-mute); font-size: 12px; }
.mail-help b { color: var(--tx-head); font-weight: normal; }
.bbs.mail .c-for { width: 112px; } .bbs.mail .c-exp { width: 96px; } .bbs.mail .c-st { width: 84px; }
.bbs.mail td { white-space: normal; }
.bbs.mail tr.done td { opacity: .55; }
.d-row { display: flex; align-items: center; gap: 12px; }
.d-what .qty { color: var(--tx-head); margin-left: 4px; }
.d-title { margin-left: auto; color: var(--tx-mute); font-size: 12px; }
.d-memo { font-size: 12px; color: var(--tx-mute); margin: 4px 0 0 48px; }
.gold-ico { font: 700 14px var(--sans); color: var(--gold); }
.st { font-size: 12px; }
.st-wait { color: var(--tx-head); } .st-claimed { color: var(--tx-mute); } .st-cancelled, .st-pending { color: var(--tx-faint); }
.gm-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 16px; align-items: start; }
.form .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.form label input[type=number] { font-variant-numeric: tabular-nums; }
.flash.flat { margin: 0 0 12px; }
.item-pick { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% - 12px); z-index: 5; list-style: none; margin: 0; padding: 0;
  background: var(--field); border: 1px solid var(--line-hi); max-height: 300px; overflow-y: auto; }
.suggest li { display: flex; align-items: center; gap: 8px; padding: 4px 8px; cursor: pointer; }
.suggest li:hover, .suggest li.on { background: var(--surface-3); }
.suggest img { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; }
.suggest .cat { margin-left: auto; }
.gm-list .d-memo { margin-left: 48px; }
@media (max-width: 820px) { .gm-grid { grid-template-columns: minmax(0, 1fr); } .bbs.mail .c-for { width: 72px; } }

/* ---- phase 4: auction ---- */
.board-head .btn { margin-left: 12px; padding: 4px 12px; font-size: 12px; }
.auc-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.auc-filter input[name=q] { width: 180px; }
.auc-filter input[type=number] { width: 100px; }
.bbs.auc .c-seller { width: 112px; } .bbs.auc .c-price { width: 132px; } .bbs.auc .c-left { width: 92px; }
.bbs.auc td { white-space: normal; padding-top: 4px; padding-bottom: 4px; }
.auc-item { display: flex; align-items: center; gap: 12px; color: var(--tx); }
.auc-item:hover { text-decoration: none; } .auc-item:hover b { color: var(--tx-strong); }
.auc-item b { font-weight: normal; color: var(--tx); }
.auc-item small { display: block; font-size: 11px; }
.qty { color: var(--tx-head); margin-left: 4px; }
td.price { text-align: right !important; padding-right: 12px !important; }
td.price small { display: block; font-size: 11px; }
.soon-end { color: var(--accent-tx) !important; }
.auc-rule { margin-top: 16px; font-size: 12px; color: var(--tx-mute); }
.auc-head { display: flex; gap: 16px; padding: 12px 12px 0; align-items: flex-start; }
.auc-head .kv { padding: 0; flex: 1; }
.slot-ico.big { width: 56px; height: 56px; }
.slot-ico.big img { max-width: 48px; max-height: 48px; }
.gold.big { font-size: 16px; }
.buy { display: flex; gap: 8px; align-items: flex-end; margin-top: 4px; }
.buy label { margin: 0; flex: 1; font-size: 12px; color: var(--tx-mute); }
.buy select { display: block; width: 100%; margin-top: 4px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.gm-act { margin-top: 12px; font-size: 12px; }
.note.pad { padding: 12px 12px 0; }
.withdraw { display: flex; gap: 4px; }
.withdraw input { width: 120px; }
.sub-h { font: 700 13px var(--sans); color: var(--tx-mute); margin: 8px 12px 0; }
table.grid.compact td { padding: 4px 8px; font-size: 12px; }
.plus { color: var(--tx-head); } .minus { color: var(--accent-tx); }
@media (max-width: 820px) { .bbs.auc .c-seller, .bbs.auc th:nth-child(2), .bbs.auc td.who { display: none; } }

/* ---- e-mail verification ---- */
.verify-bar { background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--tx-head); font-size: 12px; padding: 8px 0; }
.verify-bar a { margin-left: 8px; color: var(--tx-strong); text-decoration: underline; text-underline-offset: 3px; }
.notice-msg.flat { padding: 0; margin: 0 0 8px; }
.mail-to { color: var(--tx-strong); font-weight: normal; }
.small { font-size: 12px; margin: 0 0 12px; }
.dev-note { font-size: 12px; color: var(--tx-mute); background: var(--surface); border: 1px dashed var(--line); padding: 8px 12px; margin: 0 0 12px; }
.form-row.left { justify-content: flex-start; }
.change-mail { margin-top: 16px; font-size: 12px; color: var(--tx-mute); }
.change-mail summary { cursor: pointer; }
.change-mail form { margin-top: 8px; }

/* ---- phase 5: chat ---- */
.chat { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 20px; }
.side-box .cnt { float: right; color: var(--tx-mute); font-size: 11px; }
.chat-rules { font-size: 11px; color: var(--tx-mute); line-height: 1.5; }
.chat-main { display: flex; flex-direction: column; min-width: 0; height: calc(100vh - 290px); min-height: 380px;
  background: var(--field); border: 1px solid var(--line); box-shadow: inset 0 0 0 1px var(--shade); }
.chat-head { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.chat-head b { font: 700 14px var(--sans); color: var(--tx-head); }
.chat-state { font-size: 12px; color: var(--tx-mute); }
.chat-state.bad { color: var(--accent-tx); }
.chat-log { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 8px 12px; font-size: 14px; line-height: 1.55; }
.chat-line { display: flex; gap: 8px; align-items: baseline; padding: 0; }
.chat-line:hover { background: var(--surface); }
.chat-line .t { color: var(--tx-faint); font-size: 11px; flex: none; font-variant-numeric: tabular-nums; }
.chat-line .who { flex: none; color: var(--tx-mute); }
.chat-line .who b { font-weight: normal; }
.chat-line .who b::after { content: " :"; color: var(--tx-faint); }
.chat-line .src { font-size: 10px; color: var(--tx-mute); border: 1px solid var(--line); padding: 0 4px; margin-right: 4px; }
.chat-line .msg { color: var(--tx); word-break: break-word; min-width: 0; }
.chat-line.mine .who { color: var(--tx-head); }
.chat-line.is-gm .who { color: var(--accent-tx); }
.chat-line.is-gm .msg { color: var(--tx-strong); }
.chat-line.deleted .msg { color: var(--tx-faint); }
.chat-line .mod { margin-left: auto; flex: none; visibility: hidden; font-size: 11px; }
.chat-line:hover .mod, .chat-line:focus-within .mod { visibility: visible; }
.chat-line .mod .linklike { color: var(--tx-mute); margin-left: 8px; }
.chat-day { text-align: center; color: var(--tx-faint); font-size: 11px; margin: 8px 0 4px; }
.chat-input { display: flex; gap: 8px; padding: 8px; border-top: 1px solid var(--line); background: var(--surface); align-items: center; }
.chat-input input { flex: 1; min-width: 0; }
.chat-who { font-size: 12px; color: var(--tx-head); flex: none; }
.chat-err { margin: 0; padding: 4px 12px; font-size: 12px; color: var(--accent-tx); background: var(--err-bg); }
.chat-login { margin: 0; padding: 12px; text-align: center; color: var(--tx-mute); border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .chat { grid-template-columns: minmax(0, 1fr); }
  .chat-rules { display: none; }
  .chat-main { height: calc(100vh - 260px); }
  .chat-who { display: none; }
}

/* ---- character paper doll (wwwroot/js/look.js) ---- */
.doll-box { display: flex; justify-content: center; align-items: flex-end; min-height: 152px; margin: 12px 12px 0; padding: 28px 0 16px;
  background: radial-gradient(ellipse 34% 8px at 50% calc(100% - 16px), var(--shade), transparent 75%),
              radial-gradient(ellipse at 50% 75%, var(--surface-3) 0, var(--field) 72%);
  border: 1px solid var(--line); text-decoration: none !important; transition: border-color var(--fast) var(--ease); }
a.doll-box:hover { border-color: var(--line-hi); }
.doll-box.big { min-height: 240px; padding: 36px 0 20px; }
.doll { image-rendering: pixelated; max-width: 100%; height: auto; opacity: 0; transition: opacity .2s var(--ease); }
.doll.ready { opacity: 1; }
.doll.none { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .js .slide, .js .slide.on { transform: none; }
  .btn:active { transform: none; }
}
