/* Couchcade hub. Tokens and base components come from lib/base.css. */

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(143, 123, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(255, 93, 143, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
body.playing { overflow: hidden; }

.small { font-size: 0.85rem; }
.label { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.hub {
  max-width: 1360px;
  margin: 0 auto;
  padding: calc(16px + var(--safe-top)) 16px calc(32px + var(--safe-bottom));
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { border-radius: 12px; }
.brand h1 { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; }
.tagline { font-size: 0.9rem; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lang-btn { min-width: 46px; padding: 0 12px; }
#groupBtn { white-space: nowrap; }
.profile-btn { max-width: 200px; }
.profile-btn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offline-chip { background: rgba(255, 93, 93, 0.18); color: #ffb3b3; }

@media (max-width: 640px) {
  .tagline { display: none; }
  .brand h1 { font-size: 1.35rem; }
  .topbar-actions { width: 100%; }
  #groupBtn { flex: 1; }
  /* The dice sits at the end of the logo row, so the buttons below keep one row */
  .topbar { position: relative; }
  .decide-icon { position: absolute; top: -3px; right: 0; }
}

/* A new version (js/hub.js): a toast at the bottom on phones and computers, a button in the bar on a TV,
   so the remote reaches it without it ever taking the focus */
.update-toast { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 800; white-space: nowrap; }
html:not(.is-tv) .update-toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(16px + var(--safe-bottom));
  translate: -50% 0;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow);
  animation: rise 0.25s ease;
}
.update-toast:hover { background: #ffc552; }
.app-update-btn:disabled { opacity: 1; cursor: progress; }
.profile-updates { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-updates p { margin: 0; }
body.playing .app-update-btn { display: none; }

/* Guest bar */
.guest-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.guest-status { flex: 1; font-weight: 700; min-width: 0; }

/* Body: host panel beside the games */
.hub-body { display: grid; gap: 24px; align-items: start; }
.games { min-width: 0; } /* the scrolling rows above the list must not widen the page */
body.is-host .hub-body { grid-template-columns: minmax(240px, 300px) 1fr; }
@media (max-width: 760px) {
  body.is-host .hub-body { grid-template-columns: 1fr; }
}

/* Wide screens while hosting: the page fills the screen, the room panel stays put and only the games scroll */
@media (min-width: 761px) {
  body.is-host .hub { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding-bottom: 16px; }
  body.is-host .topbar, body.is-host .guest-bar { flex: none; }
  body.is-host .hub-body { flex: 1; min-height: 0; align-items: stretch; }
  body.is-host .host-panel { min-height: 0; overflow: hidden; }
  body.is-host .games { min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 8px; margin: -8px; }
}

.section-title { font-size: 0.95rem; margin-bottom: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; }

/* The TV's text size (profile sheet): lib/base.css sizes html.is-tv, this scales it */
html.is-tv.text-small { font-size: clamp(15px, 0.95vw, 23px); }
html.is-tv.text-large { font-size: clamp(22px, 1.45vw, 34px); }

/* Host panel */
.host-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.host-qr-wrap {
  width: 100%;
  max-width: min(280px, 40vh);
  flex: none;
  aspect-ratio: 1;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  display: grid;
  place-items: center;
}
.host-qr, .host-qr svg { width: 100%; height: 100%; }
.host-scan { font-weight: 800; font-size: 1.1rem; margin-top: 8px; }
.host-or { font-size: 0.85rem; }
.host-code { font-size: 2.2rem; font-weight: 900; letter-spacing: 0.18em; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.host-status { font-size: 0.9rem; }
.roster {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
#stopHostBtn { margin-top: auto; flex: none; }
.roster li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 700;
  text-align: left;
  flex: none;
}
.roster li .dot { width: 14px; height: 14px; }
.roster li.away { opacity: 0.45; }
/* A phone that just joined pops in (js/hub.js announceJoin) */
.roster li.fresh { animation: roster-in 1.2s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes roster-in {
  0% { transform: translateX(-30%) scale(0.85); opacity: 0; box-shadow: 0 0 0 3px var(--c, var(--accent)); }
  30% { transform: none; opacity: 1; box-shadow: 0 0 0 3px var(--c, var(--accent)); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* "Ana joined" on the host screen */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 2px solid var(--c);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-weight: 800;
  font-size: 1.1rem;
  pointer-events: none;
}
.toast::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.toast.show { animation: toast-in 3.2s ease both; }
@keyframes toast-in {
  0% { opacity: 0; transform: translate(-50%, 20px); }
  10%, 85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}
.roster-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Game sections by player count */
.game-sections { display: flex; flex-direction: column; gap: 18px; }
.chip-players { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* Above the list: favourites and recent games, one compact row each */
.game-shelf .section-title { margin-bottom: 8px; }
.shelf-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  margin: -4px;
  scroll-padding: 4px;
}
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-tile {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 190px;
  padding: 0 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.shelf-tile .game-art { width: 52px; height: 52px; flex: none; }
.shelf-tile .game-icon { font-size: 1.7rem; }
.shelf-name { font-weight: 800; font-size: 0.95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf-tile:hover, .shelf-tile:focus-visible, html.is-tv .shelf-tile:focus {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--a1) 60%, transparent);
  box-shadow: var(--shadow), var(--focus);
}
.shelf-tile:hover { box-shadow: var(--shadow); }
.shelf-tile.running { border-color: var(--good); }
.fav-mark { color: var(--accent); font-size: 0.85em; }
.game-sections > .list-head + .list-head { margin-top: -6px; }
@media (max-width: 640px) {
  .shelf-tile { width: 160px; }
  .shelf-tile .game-art { width: 46px; height: 46px; }
}
html.is-tv .shelf-tile { width: 220px; }

/* The filter by kind, above the list */
.kind-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  margin: -4px -4px 0;
}
.kind-filters::-webkit-scrollbar { display: none; }
.kind-chip {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.kind-chip.selected { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.kind-chip:focus-visible, html.is-tv .kind-chip:focus { box-shadow: var(--focus); }
@media (max-width: 640px) {
  .kind-chip { min-height: 36px; padding: 0 14px; font-size: 0.92rem; }
}
/* Across the whole list on a TV, so Up from any column of cards lands on a filter */
html.is-tv .kind-chip { flex: 1; min-height: 44px; font-size: 1.05rem; }

/* Game grid: compact rows, art tile on the left */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 104px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.game-card:hover, .game-card:focus-visible, html.is-tv .game-card:focus {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--a1) 60%, transparent);
  box-shadow: var(--shadow), var(--focus);
}
.game-card:hover { box-shadow: var(--shadow); }
.game-card.wip .game-art { filter: saturate(0.4) brightness(0.8); }
.game-card.running { border-color: var(--good); }

.game-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--a1) 85%, white 15%), transparent 55%),
    linear-gradient(135deg, var(--a1), var(--a2));
}
.game-card .game-art { width: 100px; flex: none; }
.game-art.big { width: 112px; aspect-ratio: 1; border-radius: 24px; flex: none; }
.game-icon { font-size: 2.8rem; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)); }
.game-art.big .game-icon { font-size: 3.6rem; }

.game-info { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px; min-width: 0; }
.game-name { font-size: 1.12rem; font-weight: 900; }
.game-tagline {
  color: var(--muted);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.game-tags .chip { font-size: 0.72rem; padding: 3px 8px; }
.chip-soon { background: rgba(255, 182, 39, 0.16); color: var(--accent); }

/* Phones: even slimmer rows */
@media (max-width: 640px) {
  .game-grid { grid-template-columns: 1fr; gap: 10px; }
  .game-card { min-height: 92px; }
  .game-card .game-art { width: 84px; }
  .game-card .game-icon { font-size: 2.4rem; }
  .game-name { font-size: 1.05rem; }
  .game-tagline { -webkit-line-clamp: 1; }
}

.game-picks {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.pick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c);
  color: #111;
  font-weight: 900;
  font-size: 0.72rem;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  animation: pop 0.25s ease;
}
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Sheets (dialogs) */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 5, 15, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sheet.open { display: flex; animation: fade 0.15s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-card {
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  animation: rise 0.2s ease;
}
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
.sheet-card h2 { font-size: 1.5rem; }
.sheet-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .sheet { align-items: flex-end; padding: 0; }
  .sheet-card { border-radius: 24px 24px 0 0; padding-bottom: calc(22px + var(--safe-bottom)); max-height: 92dvh; }
  .sheet-actions .btn { flex: 1; }
}

.welcome-logo { border-radius: 16px; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.lang-option {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
}
.lang-option.selected { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.style-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .style-grid { grid-template-columns: repeat(4, 1fr); } }

.name-row { display: flex; gap: 10px; align-items: center; }
.color-swatch {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  background: var(--c);
  cursor: pointer;
}
.color-swatch.selected { border-color: #fff; transform: scale(1.08); }
.color-swatch:disabled { opacity: 0.2; cursor: not-allowed; }
.color-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.shake { animation: shake 0.4s ease; border-color: var(--bad) !important; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

.join-form { display: flex; gap: 10px; }
.join-form input { text-transform: uppercase; letter-spacing: 0.2em; font-weight: 800; font-size: 1.2rem; }
.sep { border: none; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }

/* Game details */
.game-sheet { width: min(680px, 100%); display: flex; flex-direction: column; gap: 14px; }
.game-sheet-head { display: flex; gap: 16px; align-items: center; }
.game-sheet-head > .stack { flex: 1; min-width: 0; }
.fav-btn {
  align-self: flex-start;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.fav-btn.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.fav-btn:focus-visible, html.is-tv .fav-btn:focus { box-shadow: var(--focus); }
.game-sheet h3 { font-size: 1rem; margin-top: 4px; }
.game-desc { font-size: 1.02rem; }
.howto { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; color: #d9d5f5; }
.note { padding: 10px 14px; border-radius: 12px; background: rgba(255, 182, 39, 0.12); color: var(--accent); font-weight: 700; }
.picked-by .chip { background: var(--surface); }
.btn.picked { background: var(--good); color: #062014; border-color: transparent; }
@media (max-width: 640px) {
  .game-art.big { width: 80px; }
  .game-art.big .game-icon { font-size: 2.6rem; }
}

/* Results */
.results { text-align: center; }
.results-title { font-size: 2rem !important; }
.results-list { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  border-left: 6px solid var(--c);
  font-weight: 700;
}
.result-row.mine { background: var(--surface-2); }
.result-row .rank { width: 1.5em; font-weight: 900; color: var(--muted); }
.result-row .dot { width: 16px; height: 16px; }
.result-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.result-name small { font-weight: 600; }
.result-score { font-variant-numeric: tabular-nums; font-weight: 900; }
.results-list li:first-child .rank { color: var(--accent); }

/* Tonight's scoreboard: on the results and in the host panel */
.tonight { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
.tonight-title { font-size: 1.05rem; margin: 0 0 8px; }
.tonight-list, .tonight-panel { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.tonight-row, .tonight-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--surface);
  border-left: 4px solid var(--c);
  font-weight: 700;
}
.tonight-row.mine { background: var(--surface-2); }
.tonight-row .rank, .tonight-panel .rank { width: 1.4em; font-weight: 900; color: var(--muted); }
.tonight-row:first-child .rank, .tonight-panel li:first-child .rank { color: var(--accent); }
.tonight-row .dot, .tonight-panel .dot { width: 12px; height: 12px; }
.tonight-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tonight-gain { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.tonight-pts { font-weight: 900; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.move { width: 2.6em; text-align: right; font-size: 0.85em; font-weight: 900; font-variant-numeric: tabular-nums; }
.move.up { color: #3fc96b; }
.move.down { color: #ff5d5d; }
.move.same { color: var(--muted); }
/* Shares the panel's height with the roster: both shrink (and scroll) on short screens, the QR code too */
/* The panel never cuts anything: the QR code shrinks, Tonight keeps whole rows (top 3 on short screens)
   and the roster ends in "+N" when it has more names than fit (js/hub.js fitRoster) */
.tonight-box { width: 100%; flex: none; display: flex; flex-direction: column; text-align: left; }
.host-panel.has-tonight .host-qr-wrap { max-width: min(240px, 28vh); }
.host-panel.has-tonight .roster li { flex: none; padding: 5px 12px; }
.host-panel.has-tonight .roster { gap: 4px; margin: 4px 0; }
.roster li.roster-more { flex: none; justify-content: center; background: none; color: var(--muted); padding: 0 12px; font-size: 0.8rem; line-height: 1.2; }
@media (max-height: 820px) {
  .host-panel.has-tonight { gap: 3px; }
  .host-panel.has-tonight .host-qr-wrap { max-width: min(200px, 20vh); padding: 6px; }
  .host-panel.has-tonight .roster li { padding: 3px 10px; font-size: 0.9rem; }
  .host-panel.has-tonight .roster li .dot { width: 12px; height: 12px; }
  .host-panel.has-tonight .host-scan { margin-top: 2px; }
  .host-panel.has-tonight .host-code { line-height: 1.1; }
  .tonight-panel li:nth-child(n + 4) { display: none; }
}
.tonight-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 6px; }
.tonight-reset { min-height: 32px; padding: 4px 12px; font-size: 0.8rem; }
.tonight-panel li { flex: none; background: var(--surface-2); padding: 3px 10px; font-size: 0.9rem; }

/* The running game */
.frame-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
}
.frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.frame-status {
  position: absolute;
  left: 50%;
  top: calc(10px + var(--safe-top));
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 93, 93, 0.92);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  pointer-events: none;
  white-space: nowrap;
}

/* TV: room for the remote */
html.is-tv .hub { max-width: none; padding: 24px 40px 16px; }
html.is-tv .game-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
html.is-tv .game-card .game-art { width: 108px; }
html.is-tv .host-code { font-size: min(2.6rem, 44px); } /* stays inside the panel (at most 300px) at any text size */

/* Help me decide */
.decide-icon { min-width: 46px; padding: 0 10px; font-size: 1.35rem; line-height: 1; }
.decide-icon span { display: inline-block; transition: transform 0.35s ease; }
.decide-icon:hover span, .decide-icon:focus-visible span, html.is-tv .decide-icon:focus span { transform: rotate(-20deg) scale(1.12); }

.decide { width: min(680px, 100%); }
.decide-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.decide-options { display: grid; gap: 8px; }
.decide-times { grid-template-columns: repeat(3, 1fr); }
.decide-count { grid-template-columns: auto 1fr auto; align-items: center; }
.decide-step { min-width: 64px; font-size: 1.4rem; font-weight: 800; }
.decide-step[aria-disabled="true"] { opacity: 0.35; }
.decide-n { text-align: center; font-weight: 700; font-size: 1.1rem; }
.decide-moods { grid-template-columns: repeat(5, 1fr); }
.decide-option {
  min-height: 52px;
  padding: 8px 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.15;
  text-align: center;
}
.decide-option.selected { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.decide-emoji { font-size: 1.5rem; }
.decide-results { display: flex; flex-direction: column; gap: 10px; }
.decide-card { min-height: 92px; }
.decide-card .game-art { width: 88px; }
.decide-card.lit { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent), 0 0 28px rgba(255, 182, 39, 0.45); transform: scale(1.02); transition: none; }
.decide-card.won { animation: decide-won 0.6s ease; }
@keyframes decide-won { 30% { transform: scale(1.06); } 100% { transform: scale(1.02); } }
.decide .sheet-actions .btn { white-space: nowrap; gap: 6px; }
.decide.spinning .decide-option, .decide.spinning .sheet-actions .btn { pointer-events: none; opacity: 0.6; }

@media (max-width: 640px) {
  .decide-moods { grid-template-columns: repeat(3, 1fr); }
  .decide-card .game-art { width: 76px; }
  .decide-act-icon { display: none; }
}
html.is-tv .decide-option { min-height: 60px; font-size: 1.05rem; }

/* Ads (js/ads.js): phones and computers only, kept clear of the buttons */
.game-sections > .game-section { order: 2; }
.game-sections > .list-head, .game-sections > .game-section.lead { order: 0; }
.game-sections > .ad-slot { order: 1; }
.ad-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  padding: 10px 0;
  overflow: hidden;
}
.results .ad-slot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
.ad-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
html.is-tv .ad-slot, body.playing .ad-slot { display: none; }

/* Footer */
.hub-footer { margin-top: 32px; text-align: center; font-size: 0.85rem; }
.hub-footer a { color: var(--muted); }
html.is-tv .hub-footer { display: none; }
