/* Elmbook Games: a library of cards, then the chosen game filling the screen. Pixel type only. */
.tab-games .tab-icon { color: #ff7a8a; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.game-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 8px; }
.game-card.soon { border-style: dashed; background: transparent; color: var(--c-dim); }
.game-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--c-line); }
.game-info { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.panel.computer .game-info h4 { margin: 0; font: 34px/1 var(--f-term); color: var(--c-ink); }
.panel.computer .game-info p { margin: 0; font: 20px/1.25 var(--f-term); color: var(--c-text); }
.panel.computer .game-info p.muted { font: 18px/1.2 var(--f-term); color: var(--c-dim); }
.game-info .btn { align-self: flex-start; margin-top: 6px; }
.computer.playing .computer-page { overflow: hidden; }
.game-player { display: flex; flex-direction: column; height: 100%; }
.game-bar { flex: none; display: flex; align-items: center; gap: 14px; padding: 8px 12px; background: var(--c-bar); border-bottom: 1px solid var(--c-line); }
.game-bar > :not(.game-hint) { flex: none; white-space: nowrap; }
.game-bar b { font: 26px/1 var(--f-term); font-weight: normal; color: var(--c-ink); }
/* The hint shares the buttons' row; where it is short of room it takes two lines, which still fit the buttons' height. */
.game-hint { flex: 0 1 auto; min-width: 0; margin-left: auto; text-align: right; text-wrap: balance; font: 18px/1 var(--f-term); color: var(--c-dim); }
.game-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #000; }
/* Too narrow for the whole hint on one line: its two halves take a line each. */
@media (max-width: 840px) {
  .game-hint .hint-more { display: block; }
  .game-hint .hint-dot { display: none; }
}
@media (max-width: 760px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-bar { gap: 10px; }
  .game-hint .hint-more { display: none; }
}
/* Only a phone-width window gives "START is below the briefing" a row of its own under the buttons. */
@media (max-width: 540px) {
  .game-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 6px; }
  .game-hint { order: 1; grid-column: 1 / -1; margin-left: 0; text-align: left; }
}
/* The narrowest phones keep both buttons whole: tighter buttons, and the title gives way first. */
@media (max-width: 400px) {
  .game-bar { column-gap: 8px; padding: 8px; }
  .game-bar .btn { padding-inline: 9px; letter-spacing: .02em; }
  .game-bar b { overflow: hidden; text-overflow: ellipsis; }
}
