/* LASTWICK — one stylesheet for the auction page and the states gallery.
   Everything visual lives here so /kit.html and / can never drift apart.

   Measured off the Lovable build the owner chose: clock 115px serif, ember name 72px, all labels
   8–10px mono tracked 1.2–1.6px, header 82px, the brass button 44px, the live column 574px wide. */

:root {
  --bg: #0b0908; --panel: #17130f; --panel-2: #1c1712;
  --line: rgba(239,230,210,.12); --line-2: rgba(239,230,210,.2);
  --wax: #efe6d2; --wax-dim: #a89d88; --wax-mute: #6f6657;
  --brass: #c9a45c; --brass-hi: #dcb56a; --ember: #ff8a3d; --ember-hot: #ffd27a; --bad: #ff7a6b;
  --serif: "Instrument Serif", Georgia, serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 5.5vw, 76px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--wax); font: 13px/1.6 var(--mono); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--wax-dim); text-decoration: none; }
a:hover { color: var(--wax); }
b, .num, input { font-variant-numeric: tabular-nums; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--wax-mute); }
.fine { font-size: 11px; line-height: 1.65; }
.err { color: var(--bad); font-size: 11px; margin-top: 8px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }

/* the one label style: small mono, tracked, quiet */
.lab { font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--wax-mute); font-weight: 400; }
.lab.brass { color: var(--brass); }
.lab.wax { color: var(--wax); font-weight: 500; letter-spacing: 1.6px; font-size: 10px; }

.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------- header · 82px */
header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 40px; height: 82px;
  padding: 0 var(--gutter); background: rgba(11,9,8,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.brand { display: grid; gap: 4px; }
.wordmark { font: 500 18px/1 var(--mono); letter-spacing: 4px; color: var(--wax); }
.tagline { font-size: 8px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--wax-mute); }
.nav { display: flex; gap: 34px; margin: 0 auto; font-size: 11px; color: var(--wax-dim); }
.nav a { color: var(--brass); opacity: .85; }
.nav a:hover { opacity: 1; }
.hstats { display: flex; align-items: center; gap: 22px; }
.hstat { display: flex; gap: 8px; align-items: baseline; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--wax-mute); }
.hstat b { font-size: 10px; font-weight: 500; letter-spacing: 1.2px; color: var(--wax-dim); }
#watching { display: inline-flex; align-items: center; gap: 7px; font-size: 9px; letter-spacing: 1px; color: var(--brass); }
#watching::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 7px var(--brass); }
#whoLine { font-size: 11px; color: var(--wax-dim); }
@media (max-width: 1100px) { .nav { display: none; } }
@media (max-width: 720px) { header { height: 64px; gap: 14px; } .hstat { display: none; } }

/* ---------------------------------------------------------------- the floor */
.floor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(36px, 5vw, 96px);
  padding: 40px var(--gutter) 48px; align-items: center; }
@media (max-width: 1040px) { .floor { grid-template-columns: 1fr; gap: 24px; } }
.lotCol { display: grid; gap: 0; min-width: 0; }
.lotCol .lotHead { justify-content: flex-start; margin: 0 0 10px; }
.lotCol .emberName { margin: 0; }
.lotCol .traits { justify-content: flex-start; margin: 14px 0 26px; }
.lotCol .clockRow .clock { font-size: clamp(64px, 6.4vw, 92px); }
.priceRow { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.bigPrice { display: flex; align-items: baseline; gap: 14px; }
.bigPrice b { font: 400 40px/1 var(--serif); color: var(--brass); }
.holderLine b { color: var(--wax); font-weight: 400; }
.act { padding: 22px 0 6px; border-top: 1px solid var(--line); }
.act .panelHead { margin-bottom: 14px; }
.paddleRow { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.paddleRow .paddleIn { margin-top: 0; }
.paddleRow .quick { border-top: 1px solid var(--line-2); border-left: 0; grid-template-columns: repeat(3, 44px); }
.paddleRow .relight { margin-top: 0; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0 0; margin-top: 18px; border-top: 1px solid var(--line); }
.four b { display: block; font: 400 22px/1 var(--serif); margin-bottom: 6px; }
@media (max-width: 560px) { .four { grid-template-columns: 1fr 1fr; gap: 16px 12px; } }

/* the candle, and beneath it what it is */
.stageCol { display: grid; justify-items: center; text-align: center; gap: 0; align-self: center; }
.emberWrap { display: grid; place-items: center; width: 100%; }
.emberFrame { width: min(520px, 100%); aspect-ratio: 1; overflow: hidden;
  -webkit-mask-image: radial-gradient(56% 56% at 50% 50%, #000 40%, transparent 92%);
  mask-image: radial-gradient(56% 56% at 50% 50%, #000 40%, transparent 92%); }
.ember { width: 100%; aspect-ratio: 1; image-rendering: pixelated; display: block;
  transform: scale(1.12); transform-origin: 50% 48%; filter: drop-shadow(0 26px 60px rgba(255,138,61,.32)); }
.ember.dark { opacity: .1; filter: none; }
.lotHead { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 6px; }
.lotHead .live { display: inline-flex; align-items: center; gap: 7px; font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.lotHead .live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.emberName { font: 400 clamp(46px, 5vw, 72px)/1 var(--serif); margin-top: 10px; }
.traits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.trait { font-size: 8px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--wax-dim);
  border: 1px solid var(--line-2); padding: 7px 12px; }
.tag { font-size: 8px; letter-spacing: 1.3px; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line-2); color: var(--wax-dim); }
.tag.free { background: var(--brass); border-color: var(--brass); color: var(--bg); }
.tag.turn { color: var(--brass); border-color: rgba(201,164,92,.4); }

/* the live column: the clock first, then the strip, then the twin panel */
.liveCol { display: grid; gap: 0; min-width: 0; }
.clockRow { display: flex; align-items: baseline; gap: 18px; }
.clock { font: 400 clamp(72px, 8vw, 115px)/1 var(--serif); color: var(--wax); letter-spacing: -1px; }
.clock.hot { color: var(--ember-hot); }
.clockNote { font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--wax-mute); white-space: nowrap; }
/* on a phone the note drops under the clock instead of fighting it for the width */
@media (max-width: 560px) {
  .clockRow { flex-wrap: wrap; gap: 6px 14px; }
  .clockNote { white-space: normal; }
  .clock { font-size: clamp(56px, 17vw, 72px); }
  .estimate { overflow-wrap: anywhere; }
}
.estimate { margin-top: 22px; font-size: 11px; color: var(--wax-dim); }
.estimate b { color: var(--wax); font-weight: 400; }
.estimate .due { color: var(--ember-hot); }
.wickbar { position: relative; height: 1px; background: var(--line-2); margin: 22px 0 30px; }
.wickbar i { position: absolute; inset: 0 auto 0 0; height: 1px; background: var(--brass); transition: width .28s linear; }
.wickbar em { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 10px rgba(201,164,92,.8); transition: left .28s linear; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); }
.strip > div { padding: 16px 15px; display: grid; gap: 8px; border-right: 1px solid var(--line-2); min-width: 0; }
.strip > div:last-child { border-right: 0; }
.strip .lab { font-size: 8px; }
.strip b { font-size: 12px; font-weight: 500; color: var(--wax); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip > div:first-child b { color: var(--brass); }
@media (max-width: 560px) { .strip { grid-template-columns: 1fr 1fr; } .strip > div:nth-child(2n) { border-right: 0; } .strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); } }

/* the twin panel: what you do, and who else is doing it */
.twin { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid var(--line-2); border-top: 0; }
@media (max-width: 560px) { .twin { grid-template-columns: 1fr; } .twin > * + * { border-left: 0 !important; border-top: 1px solid var(--line-2); } }
.twin > * { padding: 24px 25px; min-width: 0; }
.twin > * + * { border-left: 1px solid var(--line-2); }
.panelHead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.panelHead h2 { font: 500 10px var(--mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--wax); }

/* the paddle */
.paddleIn { display: flex; align-items: center; margin-top: 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.28); }
.paddleIn input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; padding: 12px 14px;
  font: 400 26px var(--serif); color: var(--wax); }
.paddleIn .unit { padding: 0 14px; border-left: 1px solid var(--line-2); align-self: stretch; display: grid; place-items: center;
  font-size: 8px; letter-spacing: 1.2px; color: var(--wax-mute); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-top: 0; }
.quick button { padding: 8px 0; border: 0; border-right: 1px solid var(--line-2); background: none; color: var(--wax-dim);
  font: 400 8px var(--mono); letter-spacing: 1px; cursor: pointer; }
.quick button:last-child { border-right: 0; }
.quick button:hover:not(:disabled) { color: var(--brass); }
.quick button:disabled { opacity: .4; cursor: not-allowed; }
.relight { width: 100%; height: 44px; margin-top: 20px; border: 0; background: var(--brass); color: var(--bg);
  font: 600 10px var(--mono); letter-spacing: .6px; cursor: pointer; }
.relight:hover:not(:disabled) { background: var(--brass-hi); }
.relight:disabled { opacity: .45; cursor: not-allowed; }
.paddleLine { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; font-size: 8px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--wax-mute); }
.btn--big { width: 100%; height: 44px; margin-top: 10px; border: 1px solid var(--brass); background: none; color: var(--brass);
  font: 600 10px var(--mono); letter-spacing: .6px; cursor: pointer; }
.btn--big:hover:not(:disabled) { background: var(--brass); color: var(--bg); }
.btn--big:disabled { opacity: .4; cursor: not-allowed; }

/* the room, as a tape */
.ladderHead { display: grid; grid-template-columns: 62px 1fr 34px; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ladderHead .lab { font-size: 8px; }
.ladderHead span:last-child { text-align: right; }
.ladder { display: grid; }
.ladder .quiet { padding: 14px 0; color: var(--wax-mute); font-size: 11px; }
.rung { position: relative; display: grid; grid-template-columns: 62px 1fr 34px; gap: 10px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 9px; }
.rung i { display: none; }
.rung .amt { color: var(--wax); font-weight: 500; }
.rung .who { color: var(--wax-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rung .age { color: var(--wax-mute); text-align: right; font-size: 8px; }
.rung.top { border-left: 2px solid var(--brass); padding-left: 10px; margin-left: -12px; }
.rung.top .amt, .rung.top .who { color: var(--brass); }
.rung.mine .who { color: var(--wax); }
.rung.lighter { border-bottom: 0; margin-top: 4px; padding-top: 12px; }
.rung.lighter .amt { color: var(--wax-dim); }
.rung.lighter .who span { display: block; font-size: 7px; letter-spacing: 1.3px; color: var(--brass); margin-top: 2px; }
.notices { display: grid; gap: 4px; margin-top: 12px; font-size: 9px; color: var(--wax-mute); }
.notices div { display: flex; justify-content: space-between; gap: 8px; }
.notices b { color: var(--wax-dim); font-weight: 400; }
.notices .hot b { color: var(--ember-hot); }

/* the ledger: one surface, three columns, hairlines between — no boxes */
.ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, .9fr);
  border-top: 1px solid var(--line); padding: 0 var(--gutter); }
.ledgerCell { padding: 30px 30px 34px; min-width: 0; border-left: 1px solid var(--line); }
.ledgerCell:first-child { padding-left: 0; border-left: 0; }
.ledgerCell:last-child { padding-right: 0; }
@media (max-width: 1040px) { .ledger { grid-template-columns: 1fr; } .ledgerCell { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0; } .ledgerCell:first-child { border-top: 0; } }

/* your table */
.table { padding: 24px var(--gutter) 0; }
.table .panel { max-width: 574px; margin-left: auto; border: 1px solid var(--line-2); padding: 22px 25px; }
.bal { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.bal b { display: block; font: 400 24px var(--serif); }
.sweep { margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(255,138,61,.35); color: var(--ember-hot); font-size: 11px;
  display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
code { color: var(--brass); }

/* ---------------------------------------------------------------- the round of ten */
.roundStrip { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding: 30px var(--gutter);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.roundWho { display: flex; gap: 26px; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; }
.roundWho b { font-weight: 400; color: var(--brass); }
.roundWho span { color: var(--wax-dim); }
.pips { display: flex; flex: 1; min-width: 240px; max-width: 470px; }
.pip { flex: 1; text-align: center; padding: 8px 0; font-size: 8px; color: var(--wax-mute); border: 1px solid var(--line-2); margin-left: -1px; }
.pip.done { color: var(--wax-dim); }
.pip.now { background: var(--brass); border-color: var(--brass); color: var(--bg); font-weight: 500; }
.pip.wl { color: var(--brass); }
.pip.wl.now { color: var(--bg); }          /* lit AND the whitelist pip: dark text, or it vanishes into the brass */
.roundNote { margin-left: auto; font-size: 9px; letter-spacing: .8px; color: var(--wax-mute); }
@media (max-width: 720px) { .roundNote { margin-left: 0; } }

/* ---------------------------------------------------------------- the record */
.record { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 60px; align-items: center;
  padding: 60px var(--gutter) 40px; }
.record + .record { padding-top: 10px; }
@media (max-width: 900px) { .record { grid-template-columns: 1fr; gap: 20px; padding: 36px var(--gutter) 20px; } }
.recordTitle { display: grid; gap: 14px; }
.recordTitle h2 { font: 500 16px var(--mono); letter-spacing: 2.4px; text-transform: uppercase; color: var(--wax); }
.recordTitle p { font-size: 9px; letter-spacing: .6px; color: var(--wax-mute); }
.bookKey { margin-top: 12px; font-size: 9.5px; color: var(--wax-mute); }
.bookKey b { color: var(--wax-dim); font-weight: 400; }

.how { padding: 20px var(--gutter) 70px; }
.how details { border-top: 1px solid var(--line); }
.how summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between;
  font: 500 10px var(--mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--wax); }
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: "+"; color: var(--wax-mute); }
.how details[open] summary::after { content: "\2013"; }
.how p { max-width: 760px; margin: 0 0 12px; }

/* ---------------------------------------------------------------- controls, dialog */
.btn { border: 1px solid var(--line-2); background: none; color: var(--wax); font: 500 9px var(--mono); white-space: nowrap;
  letter-spacing: 1.2px; text-transform: uppercase; padding: 11px 16px; cursor: pointer; transition: border-color .15s, color .15s; }
.btn:hover:not(:disabled) { border-color: var(--brass); color: var(--brass); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--sm { padding: 8px 11px; font-size: 8px; }
.btn--ghost { color: var(--wax-dim); }
dialog { border: 1px solid var(--line-2); background: var(--panel-2); color: var(--wax); max-width: 440px; width: calc(100% - 32px); padding: 0; }
dialog::backdrop { background: rgba(0,0,0,.78); }
label { display: block; margin-bottom: 8px; font-size: 8px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--wax-mute); }
dialog input { width: 100%; background: rgba(0,0,0,.3); border: 1px solid var(--line-2); color: var(--wax); padding: 12px; font: 400 13px var(--mono); outline: none; }
dialog input:focus { border-color: var(--brass); }
dialog h3 { font: 400 24px var(--serif); }
.tip { position: absolute; z-index: 40; pointer-events: none; background: rgba(6,5,4,.97); border: 1px solid var(--line-2);
  padding: 7px 9px; font-size: 10px; line-height: 1.5; white-space: nowrap; transform: translate(-50%, -100%); }

/* ---------------------------------------------------------------- the room reacting */
.ember.flare { animation: flare .5s ease-out; }
@keyframes flare {
  0%   { filter: drop-shadow(0 26px 60px rgba(255,138,61,.32)) brightness(1); }
  25%  { filter: drop-shadow(0 26px 74px rgba(255,200,120,.75)) brightness(1.35); }
  100% { filter: drop-shadow(0 26px 60px rgba(255,138,61,.32)) brightness(1); }
}
.clock.pulse { animation: pulse .45s ease-out; }
@keyframes pulse { 0% { transform: scale(1); } 30% { transform: scale(1.04); color: var(--ember-hot); } 100% { transform: scale(1); } }
.rung.landed { animation: land .5s ease-out; }
@keyframes land { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.ember.snuffed { filter: grayscale(.4) brightness(.45); transition: filter 1.2s ease; }
.settle { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, rgba(11,9,8,.55), rgba(11,9,8,.85)); }
.settle.show { animation: settleIn .9s ease-out; }
@keyframes settleIn { from { opacity: 0; } to { opacity: 1; } }
.settleIn { text-align: center; display: grid; gap: 12px; padding: 24px; }
.settleName { font: 400 clamp(44px, 5.4vw, 72px)/1 var(--serif); color: var(--brass); }
.ember.arrive { animation: arrive 1.1s ease-out; }
@keyframes arrive { from { opacity: 0; transform: scale(1.04) translateY(6px); } to { opacity: 1; transform: scale(1.12) translateY(0); } }
@media (prefers-reduced-motion: reduce) { .ember.flare, .clock.pulse, .rung.landed, .settle.show, .ember.arrive { animation: none; } }
