:root {
  --bg: #0b0e0a;
  --panel: #111711;
  --panel-2: #151c15;
  --panel-3: #19211a;
  --ink: #e8decc;
  --muted: #a29b8d;
  --dim: #737a6e;
  --line: rgba(216,179,114,.15);
  --line-soft: rgba(216,179,114,.09);
  --line-strong: rgba(216,179,114,.28);
  --gold: #d2ad70;
  --gold-soft: rgba(210,173,112,.12);
  --red: #b94f3b;
  --red-soft: rgba(185,79,59,.13);
  --jade: #79b39e;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Inter", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(900px 460px at 50% -160px, rgba(210,173,112,.06), transparent 65%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(210,173,112,.22); }
.page { width: min(100% - 48px, 1400px); margin: 0 auto; padding-bottom: 46px; }
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 34px;
  width: min(100% - 48px, 1400px);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-seal {
  width: 34px; height: 34px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--red);
  color: #fff8ed;
  font-family: var(--serif);
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,241,220,.2);
}
.brand-name { font-family: var(--serif); font-size: 17px; letter-spacing: .08em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 12px; color: var(--muted); }
.nav a { padding: 20px 0; position: relative; }
.nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 11px; height: 1px; background: var(--gold); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 10px; color: var(--dim); white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jade); display: inline-block; margin-right: 6px; box-shadow: 0 0 0 3px rgba(121,179,158,.08); }
.version { color: #5f675d; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; }

/* shared */
.btn {
  height: 40px; padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { border-color: rgba(210,173,112,.5); background: rgba(210,173,112,.05); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #171309; font-weight: 600; }
.btn.primary:hover { background: #ddbb82; border-color: #ddbb82; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.danger { border-color: rgba(185,79,59,.45); color: #cd8c7f; }
.btn.danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn.small { height: 32px; padding: 0 12px; font-size: 10px; }
.field { margin-top: 18px; }
.field-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.input {
  width: 100%; height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.018);
  color: var(--ink);
  outline: none;
  font-size: 13px;
  transition: border-color .16s ease, background .16s ease;
}
.input::placeholder { color: #60685d; }
.input:focus { border-color: rgba(210,173,112,.55); background: rgba(255,255,255,.03); }
.hairline { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
.seal {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--red);
  color: #fff7eb;
  font-family: var(--serif);
  font-size: 16px;
  flex: 0 0 auto;
}
.eyebrow { color: var(--gold); font-size: 9px; letter-spacing: .14em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }

/* lobby */
.lobby-head { padding: 44px 0 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.lobby-head h1 { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 500; letter-spacing: .04em; }
.lobby-head p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.lobby-grid { display: grid; grid-template-columns: minmax(0,1.14fr) minmax(330px,.86fr); gap: 0; border-top: 1px solid var(--line); }
.lobby-col { padding: 28px 0 30px; }
.lobby-col.create { padding-right: 56px; border-right: 1px solid var(--line); }
.lobby-col.join { padding-left: 56px; }
.col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.col-head h2 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.col-head span { color: var(--dim); font-family: var(--mono); font-size: 9px; }
.guess-line { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.guess-line div { min-width: 0; }
.guess-line b { display: block; font-size: 11px; font-weight: 500; color: #d6c9b4; }
.guess-line p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.preset-list { margin-top: 23px; }
.preset {
  display: flex; align-items: center; gap: 11px;
  height: 56px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.preset:first-child { border-top: 1px solid var(--line-soft); }
.preset.active { color: var(--ink); }
.preset-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #5f675c; flex: 0 0 auto; }
.preset.active .preset-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(210,173,112,.08); }
.preset-copy { flex: 1; min-width: 0; }
.preset-copy b { display: block; font-size: 12px; font-weight: 500; }
.preset-copy span { display: block; margin-top: 3px; color: var(--dim); font-size: 10px; }
.preset-price { color: var(--dim); font-family: var(--mono); font-size: 9px; }
.lobby-col .primary { width: 100%; margin-top: 22px; height: 46px; }
.tiny-note { color: var(--dim); font-size: 10px; line-height: 1.7; margin: 10px 0 0; }
.join-code { font-family: var(--mono); letter-spacing: .28em; text-transform: uppercase; }
.join-actions { display: flex; gap: 8px; margin-top: 20px; }
.join-actions .primary { flex: 1; }
.recent { margin-top: 2px; border-top: 1px solid var(--line); padding-top: 23px; }
.recent h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.recent-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); }
.recent-row b { color: #cfc4b1; font-weight: 500; }
.recent-row span:first-child { width: 78px; color: var(--dim); font-family: var(--mono); font-size: 9px; }
.recent-result { margin-left: auto; color: var(--gold); }
.footer-line { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: #555d52; font-size: 9px; display: flex; justify-content: space-between; }

/* game */
.roomstrip { height: 45px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--dim); }
.roomstrip a { color: var(--muted); }
.room-code { font-family: var(--mono); color: #c9bda8; letter-spacing: .12em; }
.roomstrip .right { margin-left: auto; display: flex; gap: 15px; align-items: center; }
.game-layout { display: grid; grid-template-columns: minmax(0,640px) 360px; justify-content: center; gap: 26px; padding: 22px 0 38px; align-items: start; }
.board-col { min-width: 0; }
.clock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.clock { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 10px 13px 9px; min-width: 0; }
.clock.active { border-color: rgba(210,173,112,.56); background: linear-gradient(180deg, rgba(210,173,112,.055), var(--panel)); }
.clock-top { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.clock-name { color: #d3c8b7; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock-role { color: #5f675c; font-size: 9px; }
.clock-turn { margin-left: auto; color: var(--dim); font-size: 9px; white-space: nowrap; }
.clock.active .clock-turn { color: var(--gold); }
.clock-time { margin-top: 4px; font-family: var(--mono); font-size: 27px; line-height: 1; letter-spacing: .02em; color: #e3d8c5; }
.clock-sub { margin-top: 5px; color: #6e766a; font-size: 9px; }
.board-shell { margin-top: 8px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); padding: 12px; }
.board-meta { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 9px; padding: 0 2px; }
.board-meta b { color: #b8ad9b; font-weight: 500; }
.board-wrap { margin: 8px 0 7px; aspect-ratio: 1; border-radius: 4px; overflow: hidden; }
.board-svg { display: block; width: 100%; height: 100%; }
.board-foot { display: flex; justify-content: space-between; padding: 0 2px; color: #6d7569; font-size: 9px; }
.actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.actions .role-note { margin-left: auto; color: var(--dim); font-size: 10px; white-space: nowrap; }
.rail { border: 1px solid var(--line); border-radius: 11px; background: var(--panel); min-height: 624px; overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--line-soft); }
.tab { flex: 1; height: 43px; border: 0; background: transparent; color: var(--dim); font-size: 11px; cursor: pointer; position: relative; }
.tab.active { color: var(--ink); }
.tab.active::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 1px; background: var(--gold); }
.rail-body { padding: 16px; }
.rail-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.rail-title h3 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.rail-title span { color: var(--dim); font-size: 9px; }
.player-line { display: flex; align-items: center; gap: 8px; min-height: 38px; border-bottom: 1px solid var(--line-soft); color: #bdb4a4; font-size: 11px; }
.player-line:first-of-type { border-top: 1px solid var(--line-soft); }
.player-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #4b5149; }
.player-dot.black { background: #11140f; border-color: #868b7d; }
.player-dot.white { background: #ded6c7; border-color: #ded6c7; }
.player-line b { font-weight: 500; color: #ddd2bf; }
.player-line .tag { margin-left: auto; color: var(--dim); font-size: 9px; }
.player-line .online { color: var(--jade); }
.mode-note { margin-top: 14px; padding: 9px 10px; border-left: 2px solid var(--gold); background: var(--gold-soft); color: #a99d8a; font-size: 10px; line-height: 1.65; }
.section-mini { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.section-mini-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.section-mini-head span { color: var(--dim); font-size: 9px; }
.chat-mini { color: #969b8f; font-size: 10px; line-height: 1.6; }
.chat-mini b { color: #c6bba8; font-weight: 500; }
.chat-open { margin-top: 8px; color: var(--gold); font-size: 10px; background: none; border: 0; padding: 0; cursor: pointer; }
.record-mini { font-family: var(--mono); font-size: 10px; color: #8d9287; line-height: 1.9; }
.record-mini b { color: #c1b5a3; font-weight: 500; }
.record-mini span { color: #5f675c; }
.result-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--dim); font-size: 9px; }

/* review */
.review-head { padding: 28px 0 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); }
.review-head h1 { margin: 0; font-family: var(--serif); font-size: 33px; font-weight: 500; letter-spacing: .02em; }
.review-head p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.review-actions { display: flex; gap: 8px; }
.review-grid { display: grid; grid-template-columns: minmax(0,620px) minmax(380px,1fr); gap: 26px; padding: 22px 0 38px; justify-content: center; align-items: start; }
.review-board .board-shell { margin-top: 0; }
.review-nav { display: flex; gap: 6px; margin-top: 9px; }
.review-nav .btn { flex: 1; height: 35px; padding: 0 8px; font-size: 10px; }
.review-rail { border: 1px solid var(--line); border-radius: 11px; background: var(--panel); overflow: hidden; }
.review-body { padding: 16px; }
.move-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.move-head h2 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.phase-tag { border: 1px solid var(--line); border-radius: 999px; color: var(--dim); font-size: 9px; padding: 3px 7px; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin-top: 14px; }
.metric { padding: 10px 0 9px; }
.metric + .metric { padding-left: 12px; border-left: 1px solid var(--line-soft); }
.metric span { display: block; color: var(--dim); font-size: 10px; margin-bottom: 5px; }
.metric b { font-family: var(--mono); font-size: 18px; font-weight: 500; color: #dfd4c2; }
.metric small { color: var(--dim); font-family: var(--sans); font-size: 9px; font-weight: 400; }
.comment { margin: 13px 0 0; color: #aaa294; font-size: 11.5px; line-height: 1.8; }
.comment b { color: #d1c3ad; font-weight: 500; }
.traditional { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: #c8b8a0; font-family: var(--serif); font-size: 12.5px; line-height: 1.9; }
.traditional b { color: var(--gold); font-weight: 500; }
.chart-box { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.chart-box-head { display: flex; justify-content: space-between; color: var(--dim); font-size: 9px; margin-bottom: 6px; }
.chart-box svg { display: block; width: 100%; height: 92px; }
.comment-strip { display: flex; gap: 6px; overflow: hidden; margin-top: 12px; }
.comment-strip .btn { flex: 0 0 auto; height: 30px; padding: 0 9px; font-size: 9px; }
.review-report { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.review-report-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.review-report-head b { color: var(--gold); font-weight: 500; }
.report-line { color: #a49a8b; font-size: 10px; line-height: 1.8; margin: 7px 0 0; }
.report-line b { color: #c9baa4; font-weight: 500; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* mobile */
.mobile-page { width: 390px; min-height: 844px; margin: 0 auto; background: var(--bg); position: relative; overflow: hidden; }
.m-top { height: 56px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); }
.m-top .brand-seal { width: 28px; height: 28px; font-size: 17px; border-radius: 6px; }
.m-top .brand-name { font-size: 14px; letter-spacing: .04em; }
.m-room { margin-left: auto; text-align: right; color: var(--dim); font-size: 9px; }
.m-room b { display: block; font-family: var(--mono); color: #c9bda8; font-size: 10px; letter-spacing: .1em; }
.m-clock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 12px 0; }
.m-clock { border: 1px solid var(--line); background: var(--panel); border-radius: 7px; padding: 8px 10px; }
.m-clock.active { border-color: rgba(210,173,112,.55); }
.m-clock-top { display: flex; align-items: baseline; gap: 5px; color: #cfc3b0; font-size: 9px; }
.m-clock-top span:last-child { margin-left: auto; color: var(--gold); font-size: 8px; }
.m-clock-time { margin-top: 3px; font-family: var(--mono); font-size: 21px; color: #e2d6c2; }
.m-clock-sub { color: #687064; font-size: 8px; margin-top: 2px; }
.m-board-shell { margin: 8px 12px 0; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; padding: 9px; }
.m-board-meta { display: flex; justify-content: space-between; color: var(--dim); font-size: 9px; padding: 0 1px 5px; }
.m-board-wrap { aspect-ratio: 1; border-radius: 3px; overflow: hidden; }
.m-board-foot { display: flex; justify-content: space-between; color: #687064; font-size: 8px; padding-top: 5px; }
.m-role { text-align: center; color: var(--dim); font-size: 9px; margin-top: 7px; }
.m-actions { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; border-top: 1px solid var(--line); background: rgba(11,14,10,.96); display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; }
.m-actions .btn { border: 0; border-radius: 0; height: 58px; font-size: 11px; background: transparent; }
.m-sheet-backdrop { position: absolute; inset: 0; background: rgba(3,5,3,.28); z-index: 3; }
.m-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; border-radius: 14px 14px 0 0; border-top: 1px solid var(--line-strong); background: #121812; padding: 10px 16px 18px; box-shadow: 0 -18px 50px rgba(0,0,0,.35); }
.m-sheet-handle { width: 34px; height: 3px; border-radius: 3px; background: #3d463b; margin: 0 auto 13px; }
.m-sheet-title { color: var(--muted); font-size: 10px; }
.m-sheet-coord { margin-top: 4px; font-family: var(--mono); font-size: 22px; color: var(--ink); }
.m-sheet-copy { margin: 6px 0 13px; color: var(--dim); font-size: 9px; }
.m-sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.m-sheet-actions .btn { height: 42px; }
.m-chat-fab { position: absolute; right: 14px; bottom: 71px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--gold); display: grid; place-items: center; font-size: 14px; z-index: 2; }
.m-chat-fab span { position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 1px solid var(--bg); }

@media (max-width: 900px) {
  .page { width: min(100% - 28px, 760px); }
  .topbar { width: min(100% - 28px, 760px); gap: 16px; }
  .nav { gap: 14px; }
  .lobby-grid { grid-template-columns: 1fr; }
  .lobby-col.create { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .lobby-col.join { padding-left: 0; padding-top: 24px; }
  .game-layout { grid-template-columns: 1fr; }
  .rail { min-height: 0; }
  .review-grid { grid-template-columns: 1fr; }
  .review-board { max-width: 720px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .page { width: calc(100% - 24px); }
  .topbar { width: calc(100% - 24px); height: 56px; gap: 10px; }
  .brand-seal { width: 28px; height: 28px; font-size: 17px; }
  .brand-name { font-size: 14px; }
  .nav { display: none; }
  .top-right { font-size: 9px; }
  .lobby-head { padding: 26px 0 18px; }
  .lobby-head h1 { font-size: 31px; }
  .lobby-head p { font-size: 11px; }
  .lobby-col { padding: 22px 0; }
  .clock-time { font-size: 22px; }
  .rail { border-radius: 9px; }
}

.m-quick { display: flex; align-items: center; gap: 10px; margin: 10px 14px 0; padding: 9px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--dim); font-size: 9px; }
.m-quick b { color: #bfb4a2; font-weight: 500; }
.m-quick span:last-child { margin-left: auto; color: var(--gold); }

.m-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 14px; border-bottom: 1px solid var(--line-soft); }
.m-tab { height: 38px; border: 0; background: transparent; color: var(--dim); font-size: 10px; position: relative; }
.m-tab.active { color: var(--ink); }
.m-tab.active::after { content: ""; position: absolute; left: 28%; right: 28%; bottom: -1px; height: 1px; background: var(--gold); }
.m-panel { padding: 11px 14px 0; }
.m-player { display: flex; align-items: center; gap: 7px; height: 30px; border-bottom: 1px solid var(--line-soft); color: #b9ae9d; font-size: 10px; }
.m-player .tag { margin-left: auto; color: var(--jade); font-size: 9px; }
.m-mode { margin: 9px 0 0; color: var(--dim); font-size: 9px; line-height: 1.6; }
.m-last { margin-top: 8px; color: #8f9589; font-family: var(--mono); font-size: 9px; line-height: 1.7; }
.m-last b { color: #cbbda7; font-weight: 500; }

/* ---------- art layer ---------- */
body.art-lobby {
  background:
    radial-gradient(ellipse 52% 46% at 72% 18%, rgba(210,173,112,.075), transparent 62%),
    radial-gradient(ellipse 40% 45% at 15% 72%, rgba(121,179,158,.035), transparent 66%),
    radial-gradient(ellipse 80% 55% at 50% -18%, rgba(210,173,112,.05), transparent 66%),
    #0b0e0a;
}
body.art-game {
  background:
    radial-gradient(ellipse 52% 48% at 44% 20%, rgba(210,173,112,.055), transparent 66%),
    radial-gradient(ellipse 40% 45% at 90% 85%, rgba(121,179,158,.025), transparent 70%),
    #0b0e0a;
}
body.art-review {
  background:
    radial-gradient(ellipse 45% 38% at 70% 12%, rgba(185,79,59,.035), transparent 62%),
    radial-gradient(ellipse 60% 48% at 30% 16%, rgba(210,173,112,.045), transparent 68%),
    #0b0e0a;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url(grain.png);
  background-size: 360px 360px;
  opacity: .38;
  mix-blend-mode: soft-light;
}
body.art-lobby::after {
  content: "";
  position: fixed;
  z-index: 0;
  right: -5vw;
  top: 7vh;
  width: min(52vw, 720px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url(enso.png) center / contain no-repeat;
  opacity: .44;
  mix-blend-mode: screen;
  filter: blur(.25px);
  animation: inkDrift 70s ease-in-out infinite alternate;
}
@keyframes inkDrift { from { transform: translate3d(0,0,0) rotate(0deg); } to { transform: translate3d(-9px,7px,0) rotate(1.2deg); } }
@media (prefers-reduced-motion: reduce) { body.art-lobby::after { animation: none; } }
body.art-mobile::before { opacity: .22; }
body.art-mobile::after { display: none; }
.topbar, .page { position: relative; z-index: 1; }

/* material and light */
.brand-seal {
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), transparent 42%),
    linear-gradient(145deg, #c65a43, #9e3d2d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 5px rgba(60,10,4,.24), 0 4px 12px rgba(0,0,0,.24);
}
.btn.primary {
  background: linear-gradient(180deg, #dfbd83 0%, #cfa76c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 6px 20px rgba(210,173,112,.10);
}
.btn.primary:hover { background: linear-gradient(180deg, #e7c891, #d6b177); box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 7px 24px rgba(210,173,112,.14); }
.clock {
  background: linear-gradient(180deg, rgba(255,255,255,.022), transparent 42%), var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}
.clock.active {
  background: linear-gradient(180deg, rgba(210,173,112,.065), rgba(210,173,112,.018) 46%, var(--panel));
  box-shadow: inset 0 1px 0 rgba(210,173,112,.10), 0 6px 20px rgba(0,0,0,.12);
}
.board-shell {
  background: linear-gradient(180deg, #161d16, #111711 42%, #101510);
  border-color: rgba(210,173,112,.18);
  box-shadow: 0 28px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.035);
}
.board-wrap { position: relative; }
.board-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 42px rgba(58,35,12,.22), inset 0 1px 0 rgba(255,245,222,.10);
}
.rail, .review-rail {
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 24%),
    linear-gradient(180deg, #121812, #0f1510);
  border-color: rgba(210,173,112,.17);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 18px 48px rgba(0,0,0,.16);
}
.mode-note { background: linear-gradient(90deg, rgba(210,173,112,.10), rgba(210,173,112,.025)); }
.traditional { border-left: 2px solid rgba(185,79,59,.34); padding-left: 12px; }
.metrics, .chart-box, .review-report { position: relative; }
.chart-box svg { filter: drop-shadow(0 0 3px rgba(121,179,158,.14)); }
.m-board-shell, .m-clock { background: linear-gradient(180deg, #141b14, #101610); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.m-board-wrap { position: relative; }
.m-board-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 24px rgba(58,35,12,.22); }
@media (max-width: 760px) {
  body.art-lobby::after { width: 82vw; right: -28vw; top: 10vh; opacity: .22; }
  body::before { background-size: 260px 260px; opacity: .28; }
}

body.art-game::after, body.art-review::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  left: -18vw;
  bottom: -24vh;
  width: 82vw;
  height: 58vh;
  background: radial-gradient(ellipse at 50% 50%, rgba(121,179,158,.075), rgba(121,179,158,.025) 42%, transparent 68%);
  filter: blur(34px);
  opacity: .75;
}
body.art-review::after {
  left: auto;
  right: -22vw;
  bottom: -28vh;
  background: radial-gradient(ellipse at 50% 50%, rgba(185,79,59,.065), rgba(210,173,112,.025) 44%, transparent 70%);
}
.topbar { background: linear-gradient(180deg, rgba(9,12,8,.72), rgba(9,12,8,0)); }

/* ---------- ink landscape / scroll atmosphere ---------- */
.scene-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url(mountains.svg) center bottom / cover no-repeat;
  opacity: .44;
  animation: mountainDrift 120s ease-in-out infinite alternate;
}
body.art-game .scene-art { opacity: .19; background-position: center 84%; }
body.art-review .scene-art { opacity: .26; background-position: center 78%; }
body.art-mobile .scene-art { opacity: .13; background-size: auto 62%; background-position: center 72%; }
@keyframes mountainDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(9px,-3px,0) scale(1.012); } }
@media (prefers-reduced-motion: reduce) { .scene-art { animation: none; } }

/* board as an object, not a flat image */
.board-wrap, .m-board-wrap {
  border: 1px solid rgba(66,43,22,.85);
  box-shadow: 0 0 0 1px rgba(210,173,112,.18), 0 0 0 2px rgba(8,10,7,.55), 0 18px 38px rgba(0,0,0,.24);
}
.board-wrap::after, .m-board-wrap::after { border-radius: 2px; }
.board-svg circle.last-move { animation: lastPulse 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lastPulse { 0%,100% { opacity: .62; } 50% { opacity: 1; } }
.clock.active { animation: clockBreath 5.5s ease-in-out infinite; }
@keyframes clockBreath { 0%,100% { border-color: rgba(210,173,112,.46); } 50% { border-color: rgba(210,173,112,.72); } }
@media (prefers-reduced-motion: reduce) { .board-svg circle.last-move, .clock.active { animation: none; } }

/* hanging-scroll edge: only a trace, not a frame */
body.art-lobby .page::after {
  content: "";
  position: fixed;
  right: 18px;
  top: 12vh;
  bottom: 12vh;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(210,173,112,.18) 18%, rgba(210,173,112,.05) 70%, transparent);
  pointer-events: none;
  z-index: 0;
}

.board-svg image { filter: saturate(.72) brightness(.86) contrast(.99); }
.board-svg { background: #c7a06a; }
.board-wrap::before, .m-board-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,240,210,.06), transparent 18%, transparent 78%, rgba(45,25,8,.08));
}

/* ---------- depth pass ---------- */
:root {
  --shadow-1: 0 6px 18px rgba(0,0,0,.14);
  --shadow-2: 0 16px 36px rgba(0,0,0,.20);
  --shadow-3: 0 30px 74px rgba(0,0,0,.28);
  --inset-top: inset 0 1px 0 rgba(255,244,220,.065);
}
.topbar {
  background: linear-gradient(180deg, rgba(9,12,8,.94), rgba(9,12,8,.72));
  backdrop-filter: blur(16px) saturate(1.05);
  box-shadow: 0 1px 0 rgba(210,173,112,.06), 0 14px 34px rgba(0,0,0,.14);
}
.lobby-grid {
  position: relative;
  border: 1px solid rgba(210,173,112,.15);
  border-radius: 14px;
  padding: 0 30px;
  background:
    linear-gradient(180deg, rgba(25,33,26,.68), rgba(14,20,15,.78)),
    radial-gradient(ellipse at 18% 0%, rgba(210,173,112,.055), transparent 52%);
  box-shadow: var(--shadow-3), var(--inset-top);
  overflow: hidden;
}
.lobby-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,246,222,.025), inset 0 -30px 70px rgba(0,0,0,.10);
}
.lobby-col { position: relative; z-index: 1; }
.lobby-col.create { padding-right: 48px; }
.lobby-col.join { padding-left: 48px; }
.lobby-grid { margin-top: 0; }
.lobby-head { padding-bottom: 30px; }
.input {
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.012));
  box-shadow: inset 0 1px 3px rgba(0,0,0,.20), 0 1px 0 rgba(255,255,255,.025);
}
.input:focus { box-shadow: inset 0 1px 3px rgba(0,0,0,.20), 0 0 0 3px rgba(210,173,112,.055); }
.btn { box-shadow: 0 1px 0 rgba(255,255,255,.025), 0 5px 14px rgba(0,0,0,.08); }
.btn.primary {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 8px 22px rgba(210,173,112,.13), 0 1px 0 rgba(0,0,0,.35);
}
.btn:active { transform: translateY(1px); }
.clock {
  box-shadow: var(--shadow-1), var(--inset-top);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.clock.active {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.24), inset 0 1px 0 rgba(210,173,112,.15);
}
.board-shell {
  position: relative;
  box-shadow: var(--shadow-3), var(--inset-top);
}
.board-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,245,224,.07), inset 0 -16px 34px rgba(0,0,0,.16);
}
.board-wrap, .m-board-wrap {
  box-shadow:
    0 0 0 3px #2a190c,
    0 0 0 4px #5a3a1e,
    0 0 0 5px rgba(210,173,112,.28),
    0 20px 38px rgba(0,0,0,.30);
}
.rail, .review-rail {
  box-shadow: var(--shadow-2), var(--inset-top);
}
.rail .tabs, .review-rail .tabs { background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); }
.tab.active { background: linear-gradient(180deg, rgba(210,173,112,.055), transparent 70%); }
.rail-body, .review-body { position: relative; }
.player-line { border-bottom-color: rgba(210,173,112,.10); }
.mode-note { box-shadow: inset 0 1px 0 rgba(255,244,220,.04); }
.review-body .metrics { background: rgba(0,0,0,.075); box-shadow: inset 0 1px 3px rgba(0,0,0,.15); }
.traditional { background: linear-gradient(90deg, rgba(185,79,59,.045), transparent 62%); }
.comment-strip .btn { box-shadow: none; }
.footer-line { opacity: .82; }

/* scene light and vignette */
.scene-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 42% at 42% 14%, rgba(210,173,112,.075), transparent 58%),
    radial-gradient(ellipse 58% 40% at 78% 74%, rgba(121,179,158,.028), transparent 68%);
}
.scene-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 42%, transparent 42%, rgba(0,0,0,.20) 78%, rgba(0,0,0,.46) 100%);
}
body.art-lobby .lobby-grid { backdrop-filter: blur(1px); }

/* mobile physicality */
.m-clock { box-shadow: var(--shadow-1), var(--inset-top); }
.m-clock.active { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.23), inset 0 1px 0 rgba(210,173,112,.12); }
.m-board-shell { box-shadow: var(--shadow-2), var(--inset-top); }
.m-actions { box-shadow: 0 -14px 34px rgba(0,0,0,.32); }
.m-sheet { box-shadow: 0 -24px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,244,220,.08); }
.m-tabs { background: linear-gradient(180deg, rgba(255,255,255,.014), transparent); }
.m-tab.active { background: linear-gradient(180deg, rgba(210,173,112,.05), transparent 75%); }

@media (max-width: 900px) {
  .lobby-grid { padding: 0 22px; }
  .lobby-col.create { padding-right: 0; }
  .lobby-col.join { padding-left: 0; }
}
@media (max-width: 600px) {
  .lobby-grid { border-radius: 11px; padding: 0 16px; }
  .clock.active { transform: translateY(-1px); }
  .board-wrap, .m-board-wrap { box-shadow: 0 0 0 2px #2a190c, 0 0 0 3px #5a3a1e, 0 0 0 4px rgba(210,173,112,.22), 0 14px 30px rgba(0,0,0,.25); }
}

/* ---------- hub lobby ---------- */
.hub-topbar { justify-content: space-between; }
.hub-identity { margin-left: auto; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.hub-identity b { color: #d5c8b4; font-weight: 500; }
.hub-identity .seal { width: 24px; height: 24px; font-size: 14px; border-radius: 5px; }
.hub-main { padding-top: 34px; }
.hub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 12px 0 22px; border-bottom: 1px solid var(--line); }
.hub-head h1 { margin: 0; font-family: var(--serif); font-size: 42px; font-weight: 500; letter-spacing: .04em; }
.hub-head p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.hub-head .hub-status { color: var(--dim); font-size: 10px; text-align: right; line-height: 1.7; }
.hub-head .hub-status b { color: var(--jade); font-weight: 500; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.hub-card {
  position: relative;
  min-height: 252px;
  padding: 25px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.020), transparent 38%),
    linear-gradient(180deg, rgba(21,28,22,.92), rgba(11,16,12,.94));
  box-shadow: 0 20px 52px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,244,220,.045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hub-card::before {
  content: "";
  position: absolute;
  width: 230px; height: 230px;
  right: -54px; top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210,173,112,.07), transparent 68%);
  pointer-events: none;
}
.hub-card::after {
  content: "";
  position: absolute;
  left: 26px; right: 26px; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210,173,112,.2), transparent);
  pointer-events: none;
}
.hub-card:hover { transform: translateY(-2px); border-color: rgba(210,173,112,.32); box-shadow: 0 26px 62px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,244,220,.065); }
.hub-card .hub-no { position: absolute; right: 24px; top: 21px; color: rgba(210,173,112,.4); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.hub-card .hub-seal { width: 39px; height: 39px; font-size: 22px; border-radius: 8px; margin-bottom: 30px; }
.hub-card h2 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: .03em; }
.hub-card p { margin: 9px 0 0; max-width: 300px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.hub-card .hub-meta { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--dim); font-size: 9px; }
.hub-card .hub-meta b { color: #c9b99f; font-weight: 500; }
.hub-card .hub-arrow { position: absolute; right: 26px; bottom: 22px; color: var(--gold); font-size: 16px; }
.hub-card.primary { border-color: rgba(210,173,112,.38); background: linear-gradient(180deg, rgba(210,173,112,.085), rgba(17,23,17,.95) 43%, rgba(11,16,12,.96)); }
.hub-card.primary .hub-seal { box-shadow: 0 0 0 1px rgba(255,244,220,.16), 0 8px 20px rgba(0,0,0,.20); }
.hub-card.ai .hub-seal { background: linear-gradient(145deg,#537d6b,#2f5749); }
.hub-card.invite .hub-seal { background: linear-gradient(145deg,#c45a42,#963b2c); }
.hub-card.archive .hub-seal { background: linear-gradient(145deg,#7a6544,#55452f); }
.hub-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 13px; border-top: 1px solid var(--line-soft); color: #555d52; font-size: 9px; }
.hub-foot a { color: var(--dim); }
.hub-foot a:hover { color: var(--gold); }
.hub-rule { width: 46px; height: 1px; background: var(--gold); opacity: .6; }
@media (max-width: 760px) {
  .hub-main { padding-top: 24px; }
  .hub-head h1 { font-size: 34px; }
  .hub-head p { font-size: 11px; }
  .hub-head .hub-status { display: none; }
  .hub-grid { grid-template-columns: 1fr; gap: 10px; }
  .hub-card { min-height: 190px; padding: 20px 20px 18px; }
  .hub-card .hub-seal { width: 34px; height: 34px; font-size: 19px; margin-bottom: 22px; }
  .hub-card h2 { font-size: 23px; }
  .hub-card p { font-size: 10px; }
  .hub-card .hub-meta { margin-top: 16px; }
  .hub-identity { font-size: 9px; }
  .hub-foot { font-size: 8px; }
}

.hub-foot-btn { border: 0; background: transparent; color: var(--dim); font: inherit; cursor: pointer; padding: 0; }
.hub-foot-btn:hover { color: var(--gold); }
.hub-alert { margin-top: 18px; padding: 10px 13px; border: 1px solid rgba(185,79,59,.35); background: rgba(185,79,59,.08); color: #d0a399; font-size: 11px; border-radius: 8px; }
.hub-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* final hall: six equal entries, no small print */
.hub-main { padding-top: 26px; }
.hub-head { padding: 10px 0 18px; }
.hub-head h1 { font-size: 44px; }
.hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.hub-card { min-height: 218px; padding: 22px 22px 18px; }
.hub-card .hub-seal { width: 36px; height: 36px; font-size: 20px; margin-bottom: 26px; }
.hub-card h2 { font-size: 25px; }
.hub-card .hub-meta { margin-top: 15px; }
.hub-card .hub-arrow { right: 22px; bottom: 18px; }
.hub-card .hub-no { right: 20px; top: 18px; }
.hub-identity { gap: 8px; }
.hub-identity b { color: #d5c8b4; font-weight: 500; font-size: 11px; }
.hub-sound { border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--dim); font-size: 9px; padding: 5px 8px; cursor: pointer; margin-left: 4px; }
.hub-sound:hover { color: var(--gold); border-color: var(--line-strong); }
.hub-sound.muted { color: #5f665b; }
.hub-card.watch .hub-seal { background: linear-gradient(145deg,#4f7466,#2d5145); }
.hub-card.ranking .hub-seal { background: linear-gradient(145deg,#9d7847,#6b4e2d); }
.hub-card.four .hub-seal { background: linear-gradient(145deg,#733f86,#4e285e); }
.hub-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 1000px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .hub-main { padding-top: 18px; }
  .hub-head h1 { font-size: 36px; }
  .hub-grid { grid-template-columns: 1fr; gap: 9px; }
  .hub-card { min-height: 160px; padding: 18px 18px 16px; }
  .hub-card .hub-seal { width: 32px; height: 32px; font-size: 18px; margin-bottom: 18px; }
  .hub-card h2 { font-size: 22px; }
  .hub-card .hub-meta { margin-top: 12px; }
  .hub-card .hub-arrow { right: 18px; bottom: 16px; }
  .hub-card .hub-no { right: 17px; top: 15px; }
  .hub-identity b { font-size: 10px; }
}

.hub-account { color: #d5c8b4; text-decoration: none; border-bottom: 1px solid transparent; }
.hub-account:hover { border-bottom-color: var(--line-strong); }

/* release entry + first-visit note */
.hub-card.release {
  grid-column: auto;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.hub-card.release:hover { color: var(--ink); }
.release-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
}
.release-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,5,3,.68);
  backdrop-filter: blur(5px);
}
.release-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 30px 32px 26px;
  border: 1px solid rgba(210,173,112,.26);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 30%),
    linear-gradient(180deg, #171e17, #0d130f);
  box-shadow: 0 40px 100px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,244,220,.08);
}
.release-close {
  position: absolute;
  right: 14px; top: 12px;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.release-close:hover { color: var(--ink); border-color: var(--line-strong); }
.release-dialog h2 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: .03em;
}
.release-lead { margin: 0 0 22px; color: #b9ae9d; font-size: 12px; line-height: 1.8; }
.release-dialog h3 { margin: 20px 0 7px; font-family: var(--serif); font-size: 17px; font-weight: 500; color: #d8cbb7; }
.release-dialog p, .release-dialog li { color: var(--muted); font-size: 11.5px; line-height: 1.85; }
.release-dialog ul { margin: 0; padding-left: 18px; }
.release-dialog li { margin: 3px 0; }
.release-actions { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.release-actions .btn { height: 38px; min-width: 120px; }
.release-copy { margin: 16px 0 0; color: #5f665b; font-size: 9px; line-height: 1.7; }
@media (max-width: 1000px) {
  .hub-card.release { grid-column: auto; }
}
@media (max-width: 720px) {
  .release-modal { padding: 12px; align-items: end; }
  .release-dialog { max-height: 88vh; padding: 24px 18px 20px; border-radius: 14px 14px 0 0; }
  .release-dialog h2 { font-size: 28px; }
  .release-lead { font-size: 11px; }
}

body.release-open { overflow: hidden; }

/* Hidden must win over display:grid on modal components. */
[hidden] { display: none !important; }
.release-modal[hidden] { display: none !important; }

/* changelog */
.changelog-main { max-width: 860px; }
.changelog-sub { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.changelog-entry { margin: 0 0 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)); }
.changelog-date { color: var(--gold); font: 10px var(--font-mono); letter-spacing: .08em; }
.changelog-entry h2 { margin: 8px 0 12px; font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.changelog-entry ul { margin: 0; padding-left: 18px; color: #b6aa99; font-size: 12px; line-height: 1.9; }
.changelog-entry li { margin: 3px 0; }
.changelog-foot { color: #646b5e; font-size: 9px; margin: 30px 0; }
/* one-time changelog notice */
.changelog-notice {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 180;
  width: min(340px, calc(100vw - 24px));
  padding: 15px 16px 13px;
  border: 1px solid rgba(210,173,112,.34);
  border-radius: 10px;
  background: rgba(17,23,18,.97);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.changelog-notice[hidden] { display: none !important; }
.changelog-notice b { display: block; margin-bottom: 4px; color: #e2c994; font-family: var(--font-display); font-size: 16px; font-weight: 500; }
.changelog-notice a { color: var(--gold); }
.changelog-notice .cn-close { position: absolute; right: 8px; top: 6px; border: 0; background: transparent; color: var(--muted); font-size: 17px; cursor: pointer; }
@media (max-width: 600px) { .changelog-notice { left: 12px; right: 12px; bottom: 12px; width: auto; } }

.hub-changelog-link { color: var(--muted); font-size: 10px; text-decoration: none; border-bottom: 1px solid rgba(210,173,112,.22); padding-bottom: 2px; }
.hub-changelog-link:hover { color: var(--gold); }

.hub-head-links { display: flex; gap: 14px; align-items: center; }

.hub-card.exhibit .hub-seal { background: linear-gradient(145deg,#8a6b3f,#5a4329); }

.about-license { margin: 20px 0 0; color: var(--dim); font-size: 9px; line-height: 1.8; }
.about-license a { color: #9d8b6e; border-bottom: 1px solid rgba(210,173,112,.18); text-decoration: none; }
.about-license a:hover { color: var(--gold); }
