:root {
  color-scheme: dark;
  --ink: #080a10;
  --ink-soft: #11141c;
  --panel: #161923;
  --paper: #e9e3d5;
  --muted: #9a9489;
  --gold: #c9a968;
  --gold-light: #ead49a;
  --wine: #672a35;
  --red: #d36a58;
  --teal: #67b9b4;
  --violet: #8b8fd1;
  font-family: Inter, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 12% 18%, rgba(103, 42, 53, .2), transparent 32rem),
    radial-gradient(circle at 83% 78%, rgba(58, 74, 91, .16), transparent 35rem),
    #080a10;
  overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.topbar {
  height: 68px;
  padding: 0 max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201, 169, 104, .22);
  background: rgba(8, 10, 16, .9);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 5;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--paper); text-decoration: none; letter-spacing: .12em; }
.brand-seal { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-family: Georgia, serif; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.brand b { font: 700 12px/1.1 Georgia, serif; }
.brand small { font-size: 7px; color: var(--muted); letter-spacing: .24em; }
.top-actions { display: flex; gap: 8px; }
.top-actions button { min-height: 36px; padding: 0 13px; color: #c8c2b7; border: 1px solid #343640; border-radius: 3px; background: #12151d; font-size: 10px; letter-spacing: .09em; cursor: pointer; }
.top-actions button:hover { border-color: var(--gold); color: var(--gold-light); }

.page-shell { width: min(1440px, 100%); min-height: calc(100vh - 116px); margin: 0 auto; padding: 34px 34px 54px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; align-items: start; }
.hero-copy { position: sticky; top: 30px; padding: 45px 4px 20px; }
.eyebrow { margin: 0 0 25px; color: var(--gold); font-size: 9px; letter-spacing: .2em; }
.eyebrow span { display: inline-block; width: 22px; height: 1px; margin: 0 7px 3px 0; background: var(--gold); }
.hero-copy h1 { margin: 0; color: #f4eddf; font: 400 55px/.97 Georgia, "Yu Mincho", serif; letter-spacing: .08em; }
.hero-copy h1 em { color: var(--gold); font-style: normal; }
.lead { margin: 27px 0 0; color: #d0c9bb; font: 400 14px/2 "Yu Mincho", serif; letter-spacing: .08em; }
.hero-rule { width: 62px; height: 1px; margin: 29px 0 22px; background: var(--gold); opacity: .65; }
.hero-note { color: #77756f; font-size: 10px; line-height: 1.9; letter-spacing: .08em; }
.hero-features { display: flex; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-features li { min-width: 55px; padding-right: 14px; margin-right: 14px; border-right: 1px solid #2d3038; display: flex; flex-direction: column; }
.hero-features li:last-child { border: 0; }
.hero-features span { color: var(--paper); font: 22px Georgia, serif; }
.hero-features small { color: #6d6c69; font-size: 7px; letter-spacing: .13em; }

.game-panel { position: relative; min-height: 710px; border: 1px solid #31333b; border-radius: 5px; background: linear-gradient(145deg, rgba(24,27,37,.98), rgba(12,14,20,.98)); box-shadow: 0 28px 80px rgba(0,0,0,.45); overflow: hidden; isolation: isolate; }
.game-panel::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(201, 169, 104, .08); pointer-events: none; z-index: 3; }
.panel-grain { position: absolute; inset: 0; pointer-events: none; opacity: .18; z-index: -1; background-image: repeating-linear-gradient(115deg, transparent 0 4px, rgba(255,255,255,.014) 5px 6px); }

.status-strip { min-height: 68px; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; background: #0e1017; border-bottom: 1px solid #2d3038; }
.status-strip > div { min-width: 0; padding: 0 18px; border-right: 1px solid #2d3038; }
.status-strip > div:first-child { padding-left: 0; }
.status-strip > div:last-child { border-right: 0; }
.status-strip small { display: block; margin-bottom: 4px; color: #777a82; font-size: 8px; letter-spacing: .2em; }
.status-strip strong { display: block; overflow: hidden; color: #ebe4d5; font: 19px/1 Georgia, serif; white-space: nowrap; text-overflow: ellipsis; }
#focus-label { color: var(--gold); font: 12px/1 sans-serif; letter-spacing: .12em; }

.market-ribbon { min-height: 46px; padding: 7px 22px; display: flex; align-items: center; gap: 16px; background: #13161e; border-bottom: 1px solid #2d3038; }
.ribbon-title { color: #656870; font-size: 8px; letter-spacing: .18em; }
.market-list { min-width: 0; flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.market-list > span { min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 9px; }
.market-list i { color: var(--category-color); font-style: normal; }
.market-list b { color: #9e9d99; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.market-list strong { color: #ded7c9; font: 12px Georgia, serif; }
.market-list em { font-style: normal; }
.market-list .up em { color: var(--red); }
.market-list .down em { color: var(--teal); }
.market-list .flat em { color: #777; }
.market-clock { color: #797a7c; font-size: 8px; white-space: nowrap; }

.auction-floor { display: grid; grid-template-columns: minmax(300px, .88fr) minmax(360px, 1.12fr); min-height: 480px; }
.lot-stage { padding: 27px 30px 24px; border-right: 1px solid #30323a; background: radial-gradient(circle at 50% 37%, rgba(105,87,65,.2), transparent 45%); }
.lot-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.lot-number { margin: 0; color: var(--gold); font: 11px Georgia, serif; letter-spacing: .18em; }
.category-badge { padding: 5px 9px; color: var(--category-color); border: 1px solid color-mix(in srgb, var(--category-color), transparent 55%); border-radius: 999px; font-size: 9px; letter-spacing: .08em; }

.artwork-frame { position: relative; width: min(88%, 295px); aspect-ratio: 1.32; margin: 0 auto 22px; padding: 12px; border: 8px ridge #7b6848; background: #2c251a; box-shadow: 0 14px 30px rgba(0,0,0,.5), inset 0 0 0 1px #d5bd84; }
.artwork-mat { width: 100%; height: 100%; padding: 7px; background: #d6d0c0; box-shadow: inset 0 0 0 1px #827d70; }
.artwork { position: relative; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(var(--lot-angle), #202b38, #8e4b42 50%, #d7a967); }
.artwork::before, .artwork::after, .artwork i, .artwork b, .artwork span { content: ""; position: absolute; display: block; }
.artwork::before { width: 70%; height: 90%; left: -12%; top: 14%; border-radius: 50%; background: rgba(230,211,165,.3); transform: rotate(-18deg); }
.artwork::after { width: 62%; height: 55%; right: -15%; bottom: -18%; border-radius: 50%; background: rgba(14,20,28,.65); }
.artwork i { width: 6%; height: 78%; left: var(--lot-shift); bottom: 0; background: rgba(9,15,20,.72); transform: skew(-8deg); }
.artwork b { width: 50%; height: 1px; left: 27%; top: 43%; background: rgba(238,217,166,.65); transform: rotate(var(--lot-angle)); }
.artwork span { width: 11px; height: 11px; right: 15%; top: 17%; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; }
.frame-plate { position: absolute; left: 50%; bottom: -18px; padding: 3px 10px; transform: translateX(-50%); background: #9c814c; color: #1a1712; font: 6px Georgia, serif; letter-spacing: .12em; white-space: nowrap; }

.category-watch .artwork { background: radial-gradient(circle, #d7bd82 0 4%, #344a4c 5% 22%, #142123 23% 35%, #79a6a1 36% 37%, #111719 38%); }
.category-watch .artwork::before { width: 1px; height: 30%; left: 50%; top: 20%; transform-origin: bottom; transform: rotate(var(--lot-angle)); background: #e4d09a; }
.category-watch .artwork::after { width: 25%; height: 25%; right: 8%; bottom: 8%; border: 1px solid rgba(230,208,154,.55); background: transparent; }
.category-book .artwork { background: linear-gradient(90deg, #38261d 0 7%, #806448 8% 48%, #5a4433 49% 51%, #896b4c 52% 93%, #36251c 94%); }
.category-book .artwork::before { width: 52%; height: 55%; left: 24%; top: 18%; border: 1px solid #c4a76d; border-radius: 2px; background: transparent; transform: none; }
.category-book .artwork::after { width: 30%; height: 1px; left: 35%; top: 48%; background: #c4a76d; }
.category-ceramic .artwork { background: radial-gradient(ellipse at 50% 72%, #101820 0 15%, transparent 16%), linear-gradient(160deg, #222b3d, #10151f); }
.category-ceramic .artwork::before { width: 35%; height: 65%; left: 32.5%; top: 18%; border-radius: 28% 28% 46% 46%; background: linear-gradient(90deg, #9fa0bd, #e1dccd 45%, #777ba4); transform: none; box-shadow: 0 12px 18px #05070a; }
.category-ceramic .artwork::after { width: 18%; height: 10%; left: 41%; top: 13%; border-radius: 45%; background: #d5d0c4; }

.lot-copy { text-align: center; }
.lot-copy h2 { margin: 0 0 4px; color: #f0e9dc; font: 400 22px/1.35 "Yu Mincho", Georgia, serif; letter-spacing: .06em; }
.lot-copy > p { margin: 0 0 17px; color: #85817a; font: 10px Georgia, serif; letter-spacing: .13em; }
.lot-facts { margin: 0; padding: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; border-top: 1px solid #33343a; text-align: left; }
.lot-facts div { min-width: 0; display: flex; justify-content: space-between; gap: 6px; }
.lot-facts dt { color: #716f6c; font-size: 8px; }
.lot-facts dd { margin: 0; color: #c9c3b8; font-size: 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.auction-console { padding: 25px 27px 22px; background: rgba(12,14,20,.45); }
.rival-card { min-height: 72px; padding: 11px 12px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid #30323b; background: #12151d; }
.rival-avatar { width: 42px; height: 42px; display: grid; place-items: center; color: #0d1117; border-radius: 50%; background: var(--rival-color); font: bold 18px Georgia, serif; box-shadow: 0 0 0 3px #20232c; }
.rival-card small { display: block; color: #696b72; font-size: 7px; letter-spacing: .18em; }
.rival-card b { color: #d6d0c4; font: 13px "Yu Mincho", serif; }
.rival-card p { margin: 2px 0 0; color: #77777a; font-size: 8px; }
.rival-mood { padding: 5px 7px; border: 1px solid #454751; color: #969699; border-radius: 2px; font-size: 8px; }
.mood-bold { color: var(--red); border-color: rgba(211,106,88,.5); }
.mood-hesitate { color: var(--gold); border-color: rgba(201,169,104,.5); }

.bid-board { padding: 18px 4px 13px; text-align: center; }
.bid-board > p { margin: 0 0 0; color: #777981; font-size: 9px; letter-spacing: .12em; }
.bid-board > strong { display: block; margin: 2px 0 10px; color: #f1e6cf; font: 42px/1 Georgia, serif; }
.bid-board > strong small { margin-left: 3px; color: var(--gold); font-size: 15px; }
.bid-meter { position: relative; height: 5px; border-radius: 4px; background: #292c34; }
.bid-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #695839, var(--gold)); transition: width .22s ease; }
.bid-meter span { position: absolute; top: -4px; width: 1px; height: 13px; background: #e4e0d6; opacity: .7; }
.bid-scale { margin-top: 6px; display: flex; justify-content: space-between; color: #62646a; font-size: 7px; }
.bid-scale span:nth-child(2) { color: #929087; }

.section-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.section-head span { color: #b9b4aa; font-size: 9px; letter-spacing: .08em; }
.section-head small { color: #62646a; font-size: 7px; }
.report-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.report { min-height: 51px; padding: 8px; display: flex; align-items: center; gap: 7px; border: 1px solid #31343d; background: #12151d; }
.report > span { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 1px solid #3b3d46; border-radius: 50%; color: #777981; font: bold 10px Georgia, serif; }
.report p { min-width: 0; margin: 0; }
.report small { display: block; color: #6c6e74; font-size: 6px; letter-spacing: .08em; }
.report b { display: block; margin-top: 2px; color: #a5a39e; font-size: 8px; white-space: nowrap; }
.report.is-positive { border-color: rgba(103,185,180,.35); }
.report.is-positive > span, .report.is-positive b { color: var(--teal); }
.report.is-negative { border-color: rgba(211,106,88,.38); }
.report.is-negative > span, .report.is-negative b { color: var(--red); }
.report.is-locked { opacity: .58; }

.auction-actions { display: grid; grid-template-columns: 1.25fr 1fr .72fr; gap: 7px; margin-top: 13px; }
.auction-actions button { min-height: 63px; border-radius: 2px; cursor: pointer; transition: transform .14s ease, border-color .14s ease, filter .14s ease; }
.auction-actions button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.auction-actions button:disabled { opacity: .36; cursor: not-allowed; }
.auction-actions span, .auction-actions b, .auction-actions small { display: block; }
.auction-actions span { font-size: 10px; }
.auction-actions b { margin-top: 2px; font: 17px Georgia, serif; }
.auction-actions small { margin-top: 3px; font-size: 6px; opacity: .58; letter-spacing: .08em; }
.bid-button { border: 1px solid #d1b46f; color: #17140f; background: linear-gradient(145deg, #e3cc93, #a8884e); box-shadow: 0 6px 18px rgba(201,169,104,.15); }
.inspect-button { border: 1px solid #536e77; color: #b8d3d1; background: #17252b; }
.pass-button { border: 1px solid #41434c; color: #97989d; background: #171922; }

.event-log { min-height: 39px; margin-top: 10px; padding: 8px 11px; display: flex; align-items: center; gap: 9px; border-left: 2px solid #60626a; background: #11131a; }
.event-log span { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #777981; box-shadow: 0 0 0 3px rgba(119,121,129,.12); }
.event-log p { margin: 0; color: #a09e99; font-size: 9px; line-height: 1.5; }
.event-log.tone-rival { border-color: var(--red); }
.event-log.tone-rival span { background: var(--red); }
.event-log.tone-insight { border-color: var(--teal); }
.event-log.tone-insight span { background: var(--teal); }
.event-log.tone-warning { border-color: var(--gold); }

.collection-drawer { min-height: 111px; padding: 14px 24px 19px; border-top: 1px solid #30323a; background: #101219; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.drawer-head > span { color: #74767c; font-size: 8px; letter-spacing: .13em; }
.drawer-head > span b { margin-left: 7px; color: #c1bcb1; }
.drawer-head p { margin: 0; text-align: right; }
.drawer-head small { margin-right: 10px; color: #777871; font-size: 7px; }
.drawer-head strong { color: var(--gold); font-size: 9px; font-weight: 500; }
.drawer-head strong.is-complete::before { content: "✓ "; color: var(--teal); }
.inventory-list { min-height: 48px; display: flex; gap: 7px; overflow-x: auto; scrollbar-color: #494b54 #181a21; }
.inventory-empty { width: 100%; margin: 0; display: grid; place-items: center; color: #53555c; border: 1px dashed #31333b; font-size: 8px; letter-spacing: .08em; }
.inventory-item { min-width: 125px; max-width: 145px; padding: 7px 8px; display: flex; align-items: center; gap: 7px; border: 1px solid #30323b; background: #171a22; }
.inventory-item > span { color: var(--gold); font: 18px Georgia, serif; }
.inventory-item p { min-width: 0; margin: 0; }
.inventory-item b, .inventory-item small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inventory-item b { color: #c6c0b5; font-size: 8px; }
.inventory-item small { margin-top: 3px; color: #696b71; font-size: 6px; }
.inventory-item.category-painting > span { color: var(--red); }
.inventory-item.category-watch > span { color: var(--teal); }
.inventory-item.category-book > span { color: var(--gold); }
.inventory-item.category-ceramic > span { color: var(--violet); }

.screen { position: absolute; inset: 0; z-index: 10; padding: 22px; display: none; place-items: center; overflow-y: auto; background: rgba(5,7,11,.88); backdrop-filter: blur(9px); }
.screen.is-visible { display: grid; animation: fade-in .22s ease; }
.screen-card { position: relative; width: min(620px, 100%); margin: auto; padding: 34px 38px; border: 1px solid #4b463e; background: linear-gradient(145deg, #1b1d25, #101219); box-shadow: 0 22px 70px rgba(0,0,0,.7); }
.screen-card::before, .screen-card::after { content: ""; position: absolute; width: 35px; height: 35px; pointer-events: none; }
.screen-card::before { left: 9px; top: 9px; border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); }
.screen-card::after { right: 9px; bottom: 9px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.screen-kicker { margin: 0 0 10px; color: var(--gold); font-size: 8px; letter-spacing: .2em; text-align: center; }
.screen-card h2 { margin: 0; color: #f1eadc; font: 400 29px/1.35 "Yu Mincho", Georgia, serif; letter-spacing: .08em; text-align: center; }
.start-lead { margin: 10px 0 19px; color: #96938c; font-size: 10px; line-height: 1.75; text-align: center; }
fieldset { min-width: 0; margin: 0 0 13px; padding: 0; border: 0; }
legend { margin: 0 0 6px; color: #6f7075; font-size: 7px; letter-spacing: .18em; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.choice, .patron-choice { color: #a6a39d; border: 1px solid #373943; background: #14171f; cursor: pointer; text-align: left; }
.choice { min-height: 46px; padding: 8px 11px; }
.choice b, .choice span { display: block; }
.choice b { color: #c0bbb1; font: 10px Georgia, serif; letter-spacing: .1em; }
.choice span { margin-top: 3px; color: #6d6f75; font-size: 7px; }
.choice.is-selected, .patron-choice.is-selected { border-color: var(--gold); background: linear-gradient(135deg, rgba(201,169,104,.12), #151820); box-shadow: inset 2px 0 var(--gold); }
.choice.is-selected b { color: var(--gold-light); }
.patron-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.patron-choice { min-height: 55px; padding: 7px 9px; }
.patron-choice span, .patron-choice b, .patron-choice small { display: block; }
.patron-choice span { color: var(--gold); font-size: 7px; }
.patron-choice b { margin: 2px 0; color: #c4beb3; font: 10px "Yu Mincho", serif; }
.patron-choice small { color: #6d6f75; font-size: 7px; }
.patron-choice em { color: var(--teal); font-style: normal; }
.primary-button { width: 100%; min-height: 48px; margin-top: 6px; color: #15120d; border: 1px solid #e7d098; border-radius: 2px; background: linear-gradient(145deg, #e3cb90, #ad8d51); font-weight: 700; font-size: 11px; letter-spacing: .12em; cursor: pointer; box-shadow: 0 8px 25px rgba(201,169,104,.12); }
.primary-button:hover { filter: brightness(1.08); }
.record-line { margin-top: 12px; display: flex; justify-content: center; gap: 26px; color: #65676d; font-size: 8px; letter-spacing: .08em; }
.record-line b { color: #b8b3aa; }

.help-card { width: min(560px, 100%); }
.help-card ol { margin: 21px 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.help-card li { padding: 9px 11px; display: flex; gap: 13px; border: 1px solid #30323a; background: #14171e; }
.help-card li > b { color: var(--gold); font: 18px Georgia, serif; }
.help-card li p { margin: 0; }
.help-card li strong { display: block; color: #d0c9bd; font: 11px "Yu Mincho", serif; }
.help-card li span { display: block; margin-top: 3px; color: #817f7b; font-size: 8px; line-height: 1.55; }
.help-tip { padding: 8px; color: #797a7e; border: 1px dashed #383a42; font-size: 8px; text-align: center; }

.resolution-card { width: min(410px, 100%); text-align: center; }
.resolution-icon { width: 62px; height: 62px; margin: 8px auto 13px; display: grid; place-items: center; color: var(--category-color); border: 1px solid var(--category-color); border-radius: 50%; font: 28px Georgia, serif; box-shadow: 0 0 30px color-mix(in srgb, var(--category-color), transparent 75%); }
.resolution-card > p:not(.screen-kicker) { margin: 15px 0 0; color: #a7a29a; font-size: 11px; }
.resolution-card > p b { color: var(--gold-light); font: 22px Georgia, serif; }
.resolution-note { margin: 13px 0 5px; padding: 9px; color: #77787b; border-top: 1px solid #33353d; border-bottom: 1px solid #33353d; font-size: 8px; }

.result-card { width: min(590px, 100%); padding-top: 28px; }
.rank-medal { position: absolute; left: 31px; top: 27px; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; }
.rank-medal small { position: absolute; top: 9px; color: #7f755f; font-size: 6px; }
.rank-medal strong { margin-top: 8px; color: var(--gold-light); font: 28px Georgia, serif; }
.wealth-box { margin: 16px auto 13px; text-align: center; }
.wealth-box small { display: block; color: #77787c; font-size: 7px; letter-spacing: .18em; }
.wealth-box strong { display: block; color: var(--gold-light); font: 42px Georgia, serif; }
.wealth-box span { color: var(--teal); font-size: 8px; letter-spacing: .14em; }
.result-ledger { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #353741; }
.result-ledger div { padding: 9px; border-right: 1px solid #353741; text-align: center; }
.result-ledger div:last-child { border: 0; }
.result-ledger span, .result-ledger b { display: block; }
.result-ledger span { color: #6f7075; font-size: 7px; }
.result-ledger b { margin-top: 4px; color: #cbc5b9; font: 14px Georgia, serif; }
.result-items { max-height: 160px; margin: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; overflow-y: auto; }
.result-item { min-width: 0; padding: 7px 8px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 7px; border: 1px solid #33353d; background: #13161d; }
.result-item > span { padding: 3px; border: 1px solid currentColor; font-size: 7px; text-align: center; }
.result-item.is-authentic > span { color: var(--teal); }
.result-item.is-forgery > span { color: var(--red); }
.result-item p { min-width: 0; margin: 0; }
.result-item p b, .result-item p small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.result-item p b { color: #b9b4aa; font-size: 8px; }
.result-item p small { color: #66686e; font-size: 7px; }
.result-item > strong { color: #cfc8bb; font: 10px Georgia, serif; text-align: right; }
.result-item > strong em { display: block; color: #777; font-size: 7px; font-style: normal; }
.result-item.is-authentic > strong em { color: var(--teal); }
.result-item.is-forgery > strong em { color: var(--red); }
.result-empty { grid-column: 1 / -1; color: #777; font-size: 9px; text-align: center; }
.achievement-toast { margin: 8px 0; padding: 8px; color: var(--gold-light); border: 1px solid rgba(201,169,104,.4); background: rgba(201,169,104,.07); font-size: 8px; text-align: center; letter-spacing: .08em; }
.text-button { width: 100%; margin-top: 8px; padding: 8px; color: #85837e; border: 0; background: transparent; font-size: 9px; cursor: pointer; }

footer { width: min(1440px, 100%); min-height: 48px; margin: 0 auto; padding: 0 34px 20px; display: flex; justify-content: space-between; color: #4e5056; font: 7px Georgia, serif; letter-spacing: .17em; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 980px) {
  .page-shell { grid-template-columns: 1fr; padding: 18px 22px 42px; }
  .hero-copy { position: static; padding: 15px 4px 0; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2px 25px; }
  .eyebrow { grid-column: 1 / -1; margin-bottom: 8px; }
  .hero-copy h1 { font-size: 42px; }
  .lead { margin: 0; }
  .hero-rule, .hero-note { display: none; }
  .hero-features { grid-column: 1 / -1; margin-top: 14px; }
}

@media (max-width: 700px) {
  .topbar { height: 58px; }
  .brand small { display: none; }
  .top-actions button { min-height: 32px; padding: 0 9px; font-size: 8px; }
  .page-shell { padding: 12px 10px 35px; gap: 18px; }
  .hero-copy { display: block; padding: 12px 10px 0; }
  .hero-copy h1 { font-size: 38px; }
  .lead { margin-top: 12px; font-size: 12px; }
  .hero-features { margin-top: 15px; }
  .game-panel { min-height: 900px; }
  .status-strip { min-height: 61px; padding: 0 12px; }
  .status-strip > div { padding: 0 8px; }
  .status-strip small { font-size: 6px; }
  .status-strip strong { font-size: 14px; }
  #focus-label { font-size: 9px; letter-spacing: 0; }
  .market-ribbon { padding: 8px 12px; gap: 8px; }
  .ribbon-title, .market-clock, .market-list b { display: none; }
  .market-list { gap: 9px; }
  .market-list > span { justify-content: center; }
  .auction-floor { grid-template-columns: 1fr; }
  .lot-stage { padding: 20px 21px; border-right: 0; border-bottom: 1px solid #30323a; }
  .artwork-frame { width: min(72%, 270px); }
  .lot-copy h2 { font-size: 20px; }
  .auction-console { padding: 18px 16px 20px; }
  .rival-card { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .rival-card p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bid-board > strong { font-size: 38px; }
  .auction-actions { grid-template-columns: 1.3fr 1fr .75fr; }
  .auction-actions button { min-height: 59px; }
  .collection-drawer { padding: 13px 16px 18px; }
  .drawer-head { align-items: flex-start; gap: 8px; }
  .drawer-head p { max-width: 58%; }
  .drawer-head small { display: block; margin: 0 0 2px; }
  .screen { padding: 9px; align-items: start; }
  .screen-card { margin: auto; padding: 30px 20px; }
  .screen-card h2 { font-size: 25px; }
  .start-card { padding-top: 25px; }
  .patron-choice { min-height: 58px; }
  .result-items { grid-template-columns: 1fr; }
  footer { padding: 0 15px 18px; }
}

@media (max-width: 420px) {
  .hero-copy h1 { font-size: 33px; }
  .hero-features { display: none; }
  .game-panel { min-height: 940px; }
  .status-strip { grid-template-columns: .8fr .85fr 1.3fr 1fr; }
  .status-strip > div { padding: 0 5px; }
  .lot-facts { gap: 8px 11px; }
  .report { padding: 6px; gap: 4px; }
  .report > span { width: 19px; height: 19px; }
  .report b { font-size: 7px; }
  .auction-actions span { font-size: 9px; }
  .auction-actions b { font-size: 14px; }
  .rival-card p { max-width: 150px; }
  .choice-row, .patron-choices { gap: 5px; }
  .choice, .patron-choice { padding: 7px; }
  .patron-choice b { font-size: 9px; }
  .patron-choice small { font-size: 6px; }
  .result-ledger span { font-size: 6px; }
  .result-ledger b { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
