@media (min-width: 561px) {
  body[data-desktop-view="game"] .desktop-game {
    --room-ink: #122d31;
    --room-muted: #52635d;
    --room-line: #d7cdb6;
    --room-paper: #fbf7eb;
    gap: 14px;
  }

  .desktop-game .tabletop-game-header {
    grid-template-columns: 1fr 2fr 1fr;
    padding: 14px 18px;
    background:
      linear-gradient(90deg, #10262a 8%, #10262af5 40%, #10262a80 78%, #10262a9e),
      var(--activity-room-art, none) right 45% / cover no-repeat, #10262a;
    box-shadow: inset 0 0 0 4px #ffe9bc19;
  }

  .activity-room-title { text-align: center; }
  .activity-room-title p { margin: 0 0 4px; color: #d7c498; }
  .desktop-game .activity-room-title h2 { font-size: clamp(1.55rem, 3.1vw, 2.6rem); line-height: 1.12; }
  .desktop-game .tabletop-back,
  .desktop-game .tabletop-game-menu summary {
    display: block;
    padding: 7px 10px;
    border: 1px solid #d1b57d70;
    border-radius: 6px;
    background: #10262ae6;
    color: #f8e3b8;
    text-decoration: none;
  }

  .desktop-game .tabletop-back:hover,
  .desktop-game .tabletop-game-menu summary:hover { background: #305157; }

  .activity-room-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }

  .activity-room-tools .tabletop-guide { grid-column: 1; grid-row: 1; background: #f1ead8; color: #182e2f; border-color: #d7cdb6; }
  .activity-room-tools .tabletop-guide summary { min-height: 42px; }
  .activity-room-tools .tabletop-guide summary::after { border-color: #80602c; }
  .activity-room-tools .tabletop-guide-label { display: flex; align-items: center; gap: 10px; }
  .activity-room-tools .tabletop-kicker { color: #5b695f; }
  .activity-room-tools .floating-timer { grid-column: 2; grid-row: 1; }
  .activity-room-tools .timer-launcher { min-height: 44px; box-shadow: none; }

  .desktop-game .control-band,
  .desktop-game .cards-zone {
    margin: 0;
    padding: clamp(12px, 1.5vw, 20px);
    border-color: var(--room-line);
    border-radius: 13px;
    background: var(--room-paper);
  }

  .desktop-game .selector-row { min-width: 0; align-content: start; gap: 9px; }
  .activity-room-settings {
    grid-column: 1 / -1;
    margin: 0 0 1px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--room-line);
    color: var(--room-ink);
    font-size: 1.06rem;
  }

  .desktop-game .control-note { color: var(--room-muted); }
  .desktop-game .fixed-pools { min-width: 0; }
  .desktop-game .machine {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 9px;
  }

  .desktop-game .reel {
    min-height: 110px;
    height: auto;
    grid-template-columns: 68px minmax(0, 1fr);
    border: 1px solid #b9985b;
    border-radius: 9px;
    background: #183438;
    box-shadow: none;
  }

  .desktop-game .reel:not(.has-scene-image) {
    background: linear-gradient(90deg,#183438 40%,#18343860), url("../../../assets/ui/tabletop/draw-pool.svg") right center / auto 100% no-repeat, #183438;
  }

  .desktop-game .reel:not(.has-scene-image)::after { display: none; }
  .desktop-game .reel-scene-mark { background: #0e272b; color: #e7c783; font-size: 1.8rem; }
  .desktop-game .reel-scene-copy { padding: 12px 16px; gap: 4px; }
  .desktop-game .reel-scene-copy strong { font-size: clamp(1.25rem, 2.3vw, 1.8rem); }
  .desktop-game .reel-scene-copy :is(span, small) { color: #f0e4c7; }

  .desktop-game .machine .machine-actions { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; }
  .desktop-game .machine .primary-action {
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid #b48b46;
    background: #edc77f;
    color: #162b2c;
  }
  .desktop-game .machine .primary-action:hover { background: #ffdc94; }
  .desktop-game .machine .reset-action { min-height: 46px; }

  .desktop-game .cards-zone .empty-state {
    min-height: 74px;
    padding: 12px;
    color: var(--room-muted);
    background: #fffcf4;
  }
}

@media (min-width: 980px) {
  .desktop-game .control-band {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(14px, 2vw, 26px);
    align-items: start;
  }
  .desktop-game .control-band[hidden] { display: none; }
  .desktop-game .selector-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desktop-game .control-note { grid-column: 1 / -1; }
  .desktop-game .machine { margin-top: 0; }
}

@media (min-width: 561px) {
  .desktop-game .importance-side-selector { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: 8px; }
  .desktop-game .importance-side { padding: 9px; border-width: 1px; border-radius: 10px; }
  .desktop-game .importance-vs { width: 36px; height: 36px; font-size: .78rem; background: var(--room-ink); }
  .desktop-game .importance-deck-options.deck-option-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .desktop-game .importance-deck-options .deck-option-card { height: 64px; min-height: 0; border-radius: 8px; }
  .desktop-game .importance-deck-options .deck-option-card .deck-option-art { height: 100%; min-height: 0; border-radius: 8px; }
  .desktop-game .importance-deck-options .deck-option-card > strong { min-height: 23px; padding: 3px 2px; font-size: .75rem; }
  .desktop-game .importance-deck-options .deck-option-check { width: 17px; height: 17px; inset: 4px auto auto 4px; font-size: .7rem; }
  .desktop-game .importance-deck-options .deck-option-card:focus-visible { outline: 2px solid #926320; outline-offset: 2px; }
}

@media (min-width: 980px) {
  body:is([data-active-mode="importance-duel"], [data-active-mode="metaphor-compass"], [data-active-mode="sales-command"]) .desktop-game .control-band {
    grid-template-columns: minmax(0, 1fr);
  }
  .desktop-game .importance-deck-options.deck-option-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 740px) {
  .desktop-game .combo-results:has(> .battle-card:only-child) {
    grid-template-columns: minmax(0, 780px);
    justify-content: center;
  }
  .desktop-game .combo-results > .battle-card:only-child {
    grid-template-columns: minmax(130px, .75fr) minmax(0, 1.25fr);
    grid-template-rows: auto auto 1fr;
    min-height: 0;
    align-items: start;
  }
  .desktop-game .combo-results > .battle-card:only-child .card-title { grid-column: 1 / -1; }
  .desktop-game .combo-results > .battle-card:only-child .card-art { grid-row: 2 / 4; grid-column: 1; min-height: 165px; }
  .desktop-game .combo-results > .battle-card:only-child .card-lore,
  .desktop-game .combo-results > .battle-card:only-child .card-hooks { grid-column: 2; }
}

@media (min-width: 561px) {
  .desktop-game .reel.has-scene-image .reel-scene-copy {
    padding: 12px 16px;
    text-shadow: 0 1px 4px #071618;
  }
  .desktop-game .reel.has-scene-image:has(.reel-stage-lock) .reel-scene-copy { padding-top: 55px; }
  .desktop-game .reel.has-scene-image::after {
    background: linear-gradient(90deg, #10282ce8 12%, #10282cb3 47%, #10282c33);
  }
}

@media (min-width: 561px) {
  .desktop-game :is(.cards-zone, .history-panel, .library-band) {
    border: 1px solid #536956;
    border-radius: 13px;
    background:
      radial-gradient(ellipse at 50% 5%, #24494a, transparent 75%),
      repeating-linear-gradient(135deg, #ffffff06 0 1px, transparent 1px 6px),
      #10282c;
    box-shadow: inset 0 0 0 4px #e8cc8c14;
  }

  .desktop-game .cards-zone .section-head h2 { color: #f8e7c1; }
  .desktop-game .cards-zone .section-head .eyebrow { color: #c3d5c9; }

  .desktop-game .cards-zone .empty-state {
    border-color: #d5b98166;
    background: #10282c9c;
    color: #f5e8cc;
  }
}

@media (min-width: 561px) {
  .desktop-game .history-panel {
    margin: 0;
    padding: clamp(12px, 1.5vw, 20px);
  }

  .desktop-game .history-panel .section-head h2 { color: #f8e7c1; }
  .desktop-game .history-panel .section-head .eyebrow,
  .desktop-game .history-toolbar-hint { color: #c3d5c9; }

  .desktop-game .draw-history { align-items: stretch; gap: 12px; }
  .desktop-game .history-toolbar {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .desktop-game .history-column {
    padding: 8px;
    border-color: #c7ab7566;
    border-radius: 10px;
    background: #0e2428a8;
  }

  .desktop-game .history-column-head { min-height: 72px; }
  .desktop-game .history-list { padding: 2px; scrollbar-gutter: auto; }
  .desktop-game .history-item {
    border-color: #c2aa76;
    background: #f5ead0;
  }
  .desktop-game .history-card-list span { border-color: #c5ae7b; background: #fffaed; }
  .desktop-game .history-item:is(:hover, .is-active) {
    border-color: #f7ce79;
    box-shadow: inset 0 0 0 2px #ad792b;
  }
  .desktop-game .history-empty {
    padding: 10px;
    color: #f2e3be;
    border-color: #d5b98166;
    background: #19363a;
  }

  .desktop-game .library-band { display: block; margin: 0; padding: 0; }
  .desktop-game .library-band[hidden] { display: none; }
  .desktop-game .tabletop-pool-summary {
    min-height: 76px;
    background-color: #163438;
  }
  .desktop-game .library-band[open] .tabletop-pool-summary {
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #bda26c80;
  }

  .desktop-game .library-band[open] .tabletop-pool-body {
    display: grid;
    gap: 12px;
    padding: 16px clamp(12px, 2vw, 22px) 20px;
  }
  .desktop-game .tabletop-pool-body :is(.library-tools, .pool-actions) { margin: 0; }

  .desktop-game :is(.history-toolbar button, .filter-chip, .pool-actions button, .token-rarity-actions button) {
    color: #f6e8c8;
    border-color: #bca27280;
    background: #1b393d;
  }
  .desktop-game :is(.history-toolbar button, .filter-chip, .pool-actions button, .token-rarity-actions button):hover {
    background: #305157;
  }
  .desktop-game .filter-chip.is-active,
  .desktop-game .pool-actions button.is-confirming {
    border-color: #edca87;
    background: #edca87;
    color: #192e2e;
  }

  .desktop-game .token-rarity-section {
    border-color: #c7ab7566;
    background: #11292d;
  }
  .desktop-game .token-rarity-head h3 { color: #f7e6bd; }
  .desktop-game .token-rarity-head h3 span { color: #bbd3ca; }
  .desktop-game .token { border-color: #c6ab79; background: #f5ead0; color: #283837; }
  .desktop-game .token.is-disabled { opacity: 1; background: #29474a; border-color: #58726b; color: #ccdbce; }

  .desktop-game :is(.tabletop-pool-summary, .history-item, button, .token):focus-visible,
  .desktop-game .token:has(input:focus-visible) {
    outline: 2px solid #f2cd84;
    outline-offset: 2px;
  }
}
