/* DIDU desk premium (v6) — the shared chrome layer on top of styles.css.
   One material on every room: dark field, panel #111614, stroke #1c2420, cream type.
   Lime is a signal (active pill, primary control, live dot). Never a wash. */

/* ---- chrome ---- */
.site-chrome {
  background: rgba(11, 15, 12, 0.94);
  box-shadow: none;
}

.site-chrome .site-header-bar {
  min-height: 60px;
}

.site-wallet-btn {
  transition: border-color 0.12s ease;
}

.site-wallet-btn:hover {
  border-color: rgba(200, 250, 44, 0.35);
}

/* ---- primary control: flat lime, one hover, no chrome gradient ---- */
.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
  color: var(--accent-ink);
}

.btn-primary:hover {
  filter: none;
  background: #d6ff5a;
  border-color: #d6ff5a;
  box-shadow: 0 0 0 4px rgba(200, 250, 44, 0.12);
}

.btn-secondary {
  background: rgba(17, 22, 20, 0.7);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: rgba(200, 250, 44, 0.35);
}

/* ---- room pages (lottery, play, build, builds): one hero grammar ---- */
.play-main,
.lottery-main,
.build-main,
.builds-main {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--desk-rail) clamp(2.5rem, 5vw, 4rem);
  box-sizing: border-box;
}

.room-hero {
  position: relative;
  max-width: none;
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  background: none;
}

.room-hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--accent);
}

.room-hero .kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

.room-hero .kicker::after {
  display: none;
}

.room-hero .room-title {
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-shadow: none;
}

.room-hero .play-lead,
.room-hero .lottery-lead {
  margin: 0.85rem 0 0;
  max-width: 54ch;
  font-size: 1rem;
  line-height: 1.5;
}

.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 0;
  max-width: none;
}

.room-meta li {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--muted);
}

.room-meta li::before {
  display: none;
}

.room-meta li strong {
  color: var(--accent);
}

/* room hero can hold a right-hand instrument (status, count, primary path) */
.room-hero.has-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem 3rem;
}

.room-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  min-width: 0;
}

.room-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--muted);
  white-space: nowrap;
}

.room-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.room-status.is-live .room-status-dot {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(200, 250, 44, 0.6);
}

/* ---- panels: the one surface every room uses ---- */
.desk-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 1.1rem 1.15rem 1.15rem;
}

.desk-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.desk-panel-kicker {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--cream);
}

.desk-panel-note {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.desk-empty {
  margin: 0;
  padding: 1.35rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(11, 15, 12, 0.6);
}

.desk-empty-big {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cream);
}

.desk-empty-small {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 52ch;
}

/* ---- lottery: per-book pots, honest until tax exists ---- */
.lottery-books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lottery-book {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.lottery-book-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.lottery-book-name {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--cream);
}

.lottery-book-state {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--muted);
  padding: 0.22rem 0.5rem;
  border: 1px dashed var(--line);
  border-radius: 999px;
}

.lottery-book-pot {
  margin: 0.15rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lottery-book-note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}

.lottery-stat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.lottery-cell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 0.95rem 1.1rem 1rem;
  box-shadow: none;
  transition: none;
}

.lottery-cell:hover {
  border-color: var(--line);
  transform: none;
}

.lottery-cell:first-child {
  border-color: var(--line);
  border-top: 2px solid var(--accent);
  box-shadow: none;
}

.lottery-cell dd,
.lottery-cell:first-child dd {
  color: var(--cream);
  font-size: 1.5rem;
}

.lottery-empty {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.lottery-empty-big {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

/* ---- balance strip: pots by book → one merged draw → rule + empty state ----
   reads like a terminal balance bar: hairlines, tabular numbers, no boxes inside the box.
   the merged pool is the only lime number. per-book pots are where tax accrued. */
.lottery-desk-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "books"
    "draw"
    "foot";
  gap: 0;
  margin-top: 0.5rem;
  padding: 0;
  overflow: hidden;
}

.lottery-strip-books {
  grid-area: books;
  padding: 0.95rem 1.15rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.lottery-desk-draw {
  grid-area: draw;
  padding: 0.95rem 1.15rem 0.9rem;
}

.lottery-strip-foot {
  grid-area: foot;
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(11, 15, 12, 0.35);
}

.lottery-strip-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.lottery-desk-draw .lottery-strip-kicker {
  color: var(--cream);
}

.lottery-strip-note {
  margin: 0.55rem 0 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--muted);
}

/* per-book pots: three readouts on one line, hairline between */
.lottery-desk-books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.lottery-book--compact {
  gap: 0.2rem;
  padding: 0.1rem 0.9rem 0.1rem 0;
  margin-right: 0.9rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: none;
}

.lottery-book--compact:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

.lottery-book--compact .lottery-book-name {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.lottery-book--compact .lottery-book-pot {
  margin: 0;
  font-size: 1.25rem;
  color: var(--cream);
}

.lottery-book--compact .lottery-book-note,
.lottery-book--compact .lottery-book-state {
  display: none;
}

/* the merged draw: pool first and largest, four quiet readouts after */
.lottery-stat--merged {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.lottery-stat--merged .lottery-cell,
.lottery-stat--merged .lottery-cell:first-child {
  padding: 0.55rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.lottery-stat--merged .lottery-cell:first-child {
  border-top: 0;
  padding-top: 0;
}

.lottery-stat--merged .lottery-cell dt {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.lottery-stat--merged .lottery-cell dd {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--cream);
}

.lottery-stat--merged .lottery-cell--pool dd {
  font-size: 1.9rem;
  color: var(--accent);
}

.lottery-cell-sub {
  margin: 0.3rem 0 0;
  font-size: 0.64rem;
  line-height: 1.4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.lottery-eligible {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 64ch;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.lottery-strip-foot .lottery-empty {
  padding: 1rem 1.1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(11, 15, 12, 0.6);
}

.lottery-strip-foot .lottery-empty[hidden] {
  display: none;
}

.lottery-strip-foot .lottery-empty-big {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

/* stacked: pool on its own line, the four readouts in two columns under it */
.lottery-stat--merged {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.lottery-stat--merged .lottery-cell,
.lottery-stat--merged .lottery-cell:first-child {
  padding: 0.45rem 0.9rem 0.45rem 0;
  border-top: 0;
}

.lottery-stat--merged .lottery-cell--pool {
  grid-column: 1 / -1;
  padding-bottom: 0.7rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}

.lottery-stat--merged .lottery-cell:nth-child(odd):not(.lottery-cell--pool) {
  padding-right: 0;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
}

/* ≥960: one strip. books on the left behind a hairline, five readouts across on the right. */
@media (min-width: 960px) {
  .lottery-desk-strip {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "books draw"
      "foot foot";
    align-items: stretch;
  }

  .lottery-strip-books {
    padding: 1rem 1.35rem 1rem 1.25rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .lottery-desk-draw {
    padding: 1rem 1.25rem 1rem 1.35rem;
  }

  .lottery-strip-foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.8rem 1.25rem 0.85rem;
  }

  .lottery-strip-foot .lottery-empty {
    justify-self: end;
    text-align: right;
    max-width: 30rem;
  }

  .lottery-strip-foot .lottery-empty .desk-empty-small {
    margin-left: auto;
  }

  .lottery-desk-books {
    display: flex;
  }

  .lottery-book--compact {
    min-width: 5.5rem;
    padding-right: 1.1rem;
    margin-right: 1.1rem;
  }

  .lottery-stat--merged {
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  }

  .lottery-stat--merged .lottery-cell,
  .lottery-stat--merged .lottery-cell:first-child,
  .lottery-stat--merged .lottery-cell:nth-child(odd):not(.lottery-cell--pool) {
    padding: 0.1rem 1rem 0.1rem 1rem;
    margin: 0;
    border: 0;
    border-left: 1px solid var(--line);
  }

  .lottery-stat--merged .lottery-cell--pool {
    grid-column: auto;
    padding-left: 0;
    border-left: 0;
  }

  .lottery-stat--merged .lottery-cell:last-child {
    padding-right: 0;
  }
}

@media (min-width: 1280px) {
  .lottery-book--compact {
    min-width: 6.5rem;
  }

  .lottery-stat--merged .lottery-cell--pool dd {
    font-size: 2.2rem;
  }

  .lottery-stat--merged .lottery-cell dd {
    font-size: 1.35rem;
  }
}

.lottery-rules {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lottery-rules li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.lottery-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

.lottery-rules strong {
  color: var(--cream);
  font-weight: 700;
}

.lottery-tax-slim {
  margin-top: 0.75rem;
}

.lottery-tax-slim-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.lottery-tax-slim-grid strong {
  color: var(--cream);
}

.lottery-game-line,
.lottery-founder-line {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.lottery-founder-line a,
.lottery-game-line a {
  color: var(--cream);
}

.lottery-rules--short {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.lottery-rules--short li {
  margin: 0.2rem 0;
}

.lottery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin-top: 0.75rem;
}

.room-ask {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--cream);
}

/* where trade tax goes: three ideas kept apart, no balances until on chain */
.lottery-tax {
  margin-top: 0.75rem;
}

.lottery-tax .desk-panel-head {
  flex-wrap: wrap;
}

.lottery-tax-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.lottery-tax-col {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 15, 12, 0.6);
}

.lottery-tax-num {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.lottery-tax-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cream);
}

.lottery-tax-goes {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.lottery-tax-goes strong {
  color: var(--cream);
}

.lottery-tax-body {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.lottery-tax-body strong {
  color: var(--cream);
  font-weight: 700;
}

.lottery-tax-body a {
  color: var(--cream);
}

.lottery-tax-body--soon {
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
}

.lottery-tax-state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--muted);
}

.lottery-tax-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.lottery-tax-state.is-soon .lottery-tax-dot {
  background: transparent;
  border: 1px dashed var(--muted);
}

/* ---- play / shelf ---- */
.play-main .arcade-shelf,
.play-main .arcade-grid {
  margin-top: 0;
}

/* the game is the hero: one full-bleed door into the gauntlet, the fund line is a footnote */
.play-gauntlet {
  margin: 0 0 1rem;
}

.play-gauntlet-door {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 56vh, 560px);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #07000a;
  text-decoration: none;
  color: var(--cream);
  isolation: isolate;
}

.play-gauntlet-door::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 0, 10, 0.1) 0%, rgba(7, 0, 10, 0.55) 55%, rgba(7, 0, 10, 0.94) 100%);
  z-index: 1;
}

.play-gauntlet-weather {
  position: absolute;
  inset: -8% -4%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: space-around;
  gap: 1rem;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.play-gauntlet-weather i {
  justify-self: center;
  padding: 0.35rem 0.75rem;
  border: 3px solid rgba(0, 0, 0, 0.85);
  background: #ff2bd6;
  color: #000;
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(0.9rem, 1.6vw, 1.3rem);
  letter-spacing: -0.02em;
  transform: rotate(var(--r, -4deg)) translateY(var(--y, 0));
}

.play-gauntlet-weather i:nth-child(3n) {
  background: #7bd60f;
  --r: 5deg;
}

.play-gauntlet-weather i:nth-child(4n + 1) {
  --y: 1.6rem;
  --r: -9deg;
}

.play-gauntlet-weather i:nth-child(5n + 2) {
  background: #ffffff;
  --r: 2deg;
}

.play-gauntlet-weather i:nth-child(7n + 3) {
  opacity: 0.55;
  --y: -1.2rem;
}

.play-gauntlet-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 62ch;
}

.play-gauntlet-kicker {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ff2bd6;
}

.play-gauntlet-title {
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--cream);
}

.play-gauntlet-sub {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(244, 239, 228, 0.82);
}

.play-gauntlet-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin-top: 0.4rem;
  padding: 0 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 8px;
}

.play-gauntlet-door:hover .play-gauntlet-cta {
  background: #d8ff57;
}

.play-gauntlet-keys {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.play-gauntlet-foot {
  margin: 0.85rem 0 0;
  max-width: 78ch;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.play-gauntlet-foot a {
  color: var(--cream);
}

.play-fund {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  max-width: 72ch;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.play-fund a {
  color: var(--cream);
}

.play-fund-kicker {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--cream);
}

@media (max-width: 720px) {
  .play-gauntlet-door {
    min-height: 340px;
  }

  .play-gauntlet-weather {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.play-catalog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.play-catalog-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.play-game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 1.5rem;
  align-items: end;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.play-game-kicker {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.play-game-title {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--cream);
}

.play-game-blurb {
  margin: 0.5rem 0 0;
  max-width: 52ch;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.play-game-ask {
  margin: 0.75rem 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
}

.play-game-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  min-width: 11rem;
}

.play-gauntlet-door--compact {
  min-height: clamp(220px, 32vh, 320px);
}

.play-catalog-empty {
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .play-game-card {
    grid-template-columns: 1fr;
  }

  .play-game-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
}

.arcade-shelf {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: none;
  padding: 1.1rem 1.15rem 1.15rem;
}

.arcade-strip-head {
  margin-bottom: 0.85rem;
}

.arcade-strip-label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

.arcade-grid {
  gap: 0.6rem;
}

@media (min-width: 520px) {
  .arcade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .arcade-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }
}

@media (min-width: 1400px) {
  .index-page .arcade-grid,
  .play-main .arcade-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.arcade-card {
  position: relative;
  min-height: 3.5rem;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  background: rgba(11, 15, 12, 0.7);
  overflow: hidden;
  transition: border-color 0.12s ease;
}

.arcade-card:hover {
  border-color: rgba(200, 250, 44, 0.35);
  transform: none;
  box-shadow: none;
}

.arcade-card-visits {
  flex: 0 0 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(11, 15, 12, 0.6);
}

.arcade-card-go {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.play-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}

.play-tool {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--cream);
}

.play-tool:hover {
  border-color: rgba(200, 250, 44, 0.35);
  color: var(--cream);
}

.play-tool.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.play-quiet {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- launch rooms: subnav lives in site-nav.css; board and token blocks live in launch.css ---- */

/* ---- build board ---- */
.build-page .build-main {
  max-width: none;
  padding-left: var(--desk-rail);
  padding-right: var(--desk-rail);
  box-sizing: border-box;
}

/* ---- footer ---- */
.site-foot {
  margin-top: auto;
  padding: 1.25rem var(--desk-rail) 1.5rem;
  border-top: 1px solid var(--line);
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.site-foot-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--cream);
}

/* ---- community pulse, mobile dock ---- */
.desk-mobile-dock a.is-active {
  box-shadow: none;
}

.community-pulse-inner {
  border-color: var(--line);
}

.community-card {
  transition: border-color 0.12s ease;
}

.community-card:hover {
  border-color: rgba(200, 250, 44, 0.35);
  transform: none;
  box-shadow: none;
}

/* the reveal fade from desk-shell.js: keep content visible, let it settle quietly */
.desk-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 599px) {
  .room-meta li {
    flex: 0 0 auto;
  }

  .arcade-card {
    flex-wrap: nowrap;
  }

  .arcade-card-name {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .room-hero.has-aside {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .room-hero-aside {
    align-items: flex-start;
  }

  .lottery-books,
  .lottery-stat:not(.lottery-stat--merged),
  .lottery-tax-grid {
    grid-template-columns: 1fr;
  }

  .lottery-grid {
    grid-template-columns: 1fr;
  }
}
