/* Spillbordet for spillene på én skjerm (1.20.0).
   Lastes etter spillets egen CSS og bytter skrift, farger og knapper til det felles utseendet. */
@font-face { font-family: Fraunces; src: url("fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Spilleland Fraunces"; src: url("fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Spilleland Source Sans"; src: url("fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --ink: #22302a;
  --line: #22302a;
  --stroke: #22302a;
  --paper: #fbf1dc;
  --cream: #fffdf6;
  --white: #fffdf6;
  --coral: #e4573f;
  --red: #b63d29;
  --yellow: #f7cf4a;
  --mint: #bfe3c8;
  --lilac: #d8c8f6;
  --lavender: #d8c8f6;
  --blue: #2b5fae;
  --display: "Spilleland Baloo", system-ui, sans-serif;
  --body: "Spilleland Baloo", system-ui, sans-serif;
}

body.sb-table { font-family: var(--sb-body); font-weight: 500; }
.sb-table h1, .sb-table h2, .sb-table h3 { font-family: var(--sb-body); font-weight: 800; letter-spacing: -.01em; }
.sb-table p, .sb-table li, .sb-table label, .sb-table summary { font-family: var(--sb-body); }

/* Paneler blir spillekort */
.sb-table :is(.panel, .card, .game-panel, .setup, .stage, .round, .result, .results, .question, .case, .route, .players, .card-panel) {
  border: 3px solid var(--sb-ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--sb-ink);
}

/* Felles knapper */
.sb-table button, .sb-table .button, .sb-table a.action {
  font-family: var(--sb-body); font-weight: 800;
  border: 3px solid var(--sb-ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--sb-ink);
}
.sb-table button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--sb-ink); }
.sb-table input:not([type=checkbox]):not([type=radio]), .sb-table select, .sb-table textarea {
  font-family: var(--sb-body); font-weight: 600; border: 2.5px solid var(--sb-ink); border-radius: 14px;
}

/* Inne i Spilleland vises tittelen allerede i linjen over spillet */
.in-frame .sb-hide-in-frame { display: none !important; }

@media print {
  body.sb-table { background: #fff !important; }
  .sb-table :is(.panel, .card, .game-panel, .setup, .stage, .round, .result, .results, .question, .case, .route, .players, .card-panel) { box-shadow: none; }
}

/* Fargefanten som spillvert på én skjerm */
.sb-table .sb-host.sb-host-local { width: min(1100px, calc(100% - 28px)); margin: 14px auto 6px; }
.in-frame .sb-host.sb-host-local { margin-top: 6px; }
@media print { .sb-host { display: none !important; } }
