/* The web scorer (scorer.html) – on top of style.css' phone look (body.control). */
body.scorer { padding-bottom: 8px; }
[hidden] { display: none !important; }

.scorer-lead { font-family: "Chalk", "Segoe Print", cursive; color: var(--accent); font-size: 30px; line-height: 1.15; }
.scorer-text { color: var(--muted); line-height: 1.45; }
#welcome .big { margin-top: 12px; }
#join { margin-top: 18px; }
#join input { text-transform: uppercase; letter-spacing: .15em; }
#join input::placeholder { text-transform: none; letter-spacing: normal; }

.scorer-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.scorer-head img { height: 46px; margin: -4px 0 -4px -6px; }
.scorer-head .phone-title b { font-size: 22px; }
.control .code-chip { margin-left: auto; min-height: 0; padding: 8px 12px; border-radius: 999px; font-size: 15px; }
.code-chip b { letter-spacing: .12em; color: var(--accent); }

h3.cat { font-size: 14px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .08em; }
.game-tile { padding-right: 12px; }
.game-tile.on { border-color: var(--accent); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--accent); }
.control .scorer #recent .chip, body.scorer #recent .chip { opacity: 1; padding: 6px 14px; min-height: 0; }
#recent { margin-top: 10px; }

/* visit total: "100" */
.visit-box { margin-top: 6px; }
.visit-show {
  text-align: center; font-size: 46px; font-weight: 700; padding: 4px 0; border-radius: 10px;
  background: var(--panel); border: 2px solid var(--line); font-variant-numeric: tabular-nums;
}
.visit-show .bad { color: var(--bad); }
.visit-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.control .visit-pad button { font-size: 26px; font-weight: 700; padding: 14px 0; }
.visit-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.control .visit-quick button { font-size: 17px; font-weight: 600; padding: 10px 0; }
.control .visit-quick .rest { grid-column: span 1; color: var(--good); border-color: var(--good); }
.slot.visit-last { grid-column: 1 / -1; cursor: default; font-weight: 600; }
.slot.visit-last b { color: var(--accent); margin-left: 6px; }

/* The chalkboard (chalk.js) – its sizes are made for a TV (vh), scaled down on a phone. */
.scorer-chalk { margin-top: 8px; zoom: .6; }
.scorer-chalk .slate.grid-wrap { height: 70vh; }
.scorer-chalk .slate.cols, .scorer-chalk .slate.queue, .scorer-chalk .slate.bull-wrap { height: 80vh; }
.scorer-chalk .bull-buddy { display: none; }
@media (min-width: 700px) { .scorer-chalk { zoom: .7; } }
/* Narrow screens: a grid (4 Gewinnt, Bingo …) takes the full width, the players below it. */
@media (max-width: 899px), (orientation: portrait) {
  .scorer-chalk .slate.grid-wrap { flex-direction: column; height: auto; gap: 2vh; }
  .scorer-chalk .grid-side { height: auto; width: 100%; }
  .scorer-chalk .grid-side .grid5, .scorer-chalk .grid-side.captioned .grid5 { height: auto; width: 100%; max-height: none; }
  .scorer-chalk .legend { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2vh 4vh; }
}

/* share */
.share-card { text-align: center; }
.share-card .qr { width: min(240px, 70vw); margin: 10px auto; background: #fff; border-radius: 10px; padding: 6px; }
.share-card .qr svg { width: 100%; height: auto; display: block; }
.big-code { letter-spacing: .15em; color: var(--accent); font-size: 1.2em; }
.hand-over { margin-top: 14px; text-align: left; }
.hand-over summary { cursor: pointer; color: var(--muted); }

/* after the game: like + support; the sponsor */
.after-game { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--panel); }
.control .after-game .like { min-height: 0; padding: 6px 16px; border-radius: 999px; font-size: 18px; }
.control .after-game .like.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.after-game .support { color: var(--accent); font-weight: 600; }
.sponsor-line { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.sponsor-line a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.sponsor-line small { color: var(--muted); }
.sponsor-line img { max-height: 36px; max-width: 120px; background: #fff; border-radius: 6px; padding: 3px; }
body.watching .sponsor-line { margin-top: 1vh; font-size: 2vh; }

.scorer-foot {
  display: flex; flex-direction: column; gap: 6px; align-items: center; margin-top: 30px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: center;
}
.scorer-foot a { color: var(--muted); }
.scorer-foot a b { color: var(--accent); }

/* Watching on a TV in the pub (landscape, wide): big scores, nothing to press. */
body.watching #game .turn { pointer-events: none; }
@media (min-width: 900px) and (orientation: landscape) {
  body.scorer.watching { max-width: none; padding: 2vh 3vw; font-size: 2.4vh; }
  body.watching .scorer-head img { height: 8vh; }
  body.watching .scorer-head .phone-title b { font-size: 4vh; }
  body.watching .code-chip { font-size: 2.6vh; }
  body.watching #game-title { font-size: 2.6vh; }
  body.watching .phone-scores { grid-template-columns: repeat(auto-fit, minmax(22vw, 1fr)); gap: 1.5vh; }
  body.watching .ps { padding: 1.5vh 2vh; border-width: 0.4vh; }
  body.watching .ps-name { font-size: 4vh; }
  body.watching .ps b { font-size: 13vh; font-family: "Chalk", "Segoe Print", cursive; }
  body.watching .ps small { font-size: 2.2vh; }
  body.watching .status { font-size: 4vh; padding: 2vh; }
  body.watching .slot { font-size: 5vh; padding: 2vh; }
  body.watching .phone-board, body.watching .scorer-foot { display: none; }
  body.watching .scorer-chalk { zoom: 1; }
  body.watching .scorer-chalk .slate.cols, body.watching .scorer-chalk .slate.queue,
  body.watching .scorer-chalk .slate.grid-wrap, body.watching .scorer-chalk .slate.bull-wrap { height: 66vh; }
  body.watching .phone-summary { font-size: 3vh; }
}
