/* The boards of the Mayor's bungalow (sprint 7): the television with the console's game on it, and the mirror.
   Same paint as the HUD and the corner lot's board. */
.homeboard {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 25;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: calc(8px + var(--safe-t)) calc(10px + var(--safe-r)) calc(8px + var(--safe-b)) calc(10px + var(--safe-l));
  font-family: var(--body); touch-action: manipulation; outline: none;
}
.homeboard[hidden] { display: none; }

/* --- the television: a tube in a brown plastic case, as big as the window allows --- */
.gamebox { background: rgba(10, 6, 4, 0.78); }
.gamebox-set {
  display: flex; align-items: stretch; gap: 10px;
  padding: 16px 14px 16px 18px;
  background: #4a3a30; background-image: linear-gradient(170deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 34%);
  border: 4px solid var(--brown-deep); border-radius: 14px;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.25), 0 8px 0 var(--brown-deep), 0 13px 0 rgba(36, 21, 12, 0.4);
}
.gamebox-face { padding: 10px; background: #14100e; border-radius: 22px / 18px; box-shadow: inset 0 0 0 3px #2a221e; cursor: pointer; }
.gamebox-screen {
  display: block; width: min(640px, 76vw, 108vh); aspect-ratio: 4 / 3; height: auto;
  image-rendering: pixelated; image-rendering: crisp-edges;
  border-radius: 16px / 12px; background: #000;
}
.gamebox-knobs { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 8px; width: 34px; }
.gamebox-knobs i { display: block; width: 26px; height: 26px; border-radius: 50%; background: #1e1814; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.16), 0 2px 0 #14100e; }
.gamebox-led { display: block; width: 8px; height: 8px; margin-top: auto; border-radius: 50%; background: #ff5a3c; box-shadow: 0 0 8px #ff5a3c; }
.gamebox-foot { display: flex; align-items: center; gap: 14px; max-width: min(720px, 94vw); }
.gamebox-hint { color: #f6ead2; font-size: 13px; font-weight: 700; text-shadow: 0 2px 0 var(--ink); }
.gamebox-foot button, .wardrobe-card button { padding: 0 18px; min-height: 46px; font-size: 14px; }

/* --- the mirror: a small card at the foot of the screen, so that the bear in the glass is what is looked at --- */
.wardrobe { justify-content: flex-end; }
.wardrobe-card {
  width: min(520px, 100%); display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px 14px;
  background: var(--white); color: var(--brown-deep);
  border: 4px solid var(--brown-deep); border-radius: 5px;
  box-shadow: inset 0 0 0 3px rgba(42, 143, 152, 0.45), 0 8px 0 var(--brown-deep), 0 12px 0 rgba(36, 21, 12, 0.35);
}
.wardrobe-title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-deep); }
.wardrobe-row { display: flex; align-items: center; gap: 10px; }
.wardrobe-name { flex: 1; min-width: 0; text-align: center; font-size: 19px; font-weight: 800; }
.wardrobe-step { min-width: 54px; }
.wardrobe-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wardrobe-count { font-size: 12.5px; font-weight: 700; opacity: 0.7; }
.wardrobe-done { background-color: var(--green); color: var(--white); text-shadow: 0 2px 0 var(--green-deep); }
/* --- the dartboard: the board big, and beside it what has been thrown --- */
.dartsboard { background: rgba(10, 6, 4, 0.72); }
.darts-card {
  display: flex; align-items: stretch; gap: 14px; max-width: 100%; max-height: 100%;
  padding: 12px;
  background: var(--white); color: var(--brown-deep);
  border: 4px solid var(--brown-deep); border-radius: 5px;
  box-shadow: inset 0 0 0 3px rgba(214, 52, 42, 0.45), 0 8px 0 var(--brown-deep), 0 12px 0 rgba(36, 21, 12, 0.35);
}
.darts-screen { display: block; width: min(460px, 62vw, 78vh); aspect-ratio: 1; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; border: 3px solid var(--brown-deep); cursor: crosshair; }
.darts-side { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.darts-title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-deep); }
.darts-row { font-size: 15px; font-weight: 700; min-height: 20px; }
.darts-total { font-size: 20px; font-weight: 800; margin-top: 4px; min-height: 26px; }
.darts-best { font-size: 12.5px; font-weight: 700; opacity: 0.75; }
.darts-hint { font-size: 12px; font-weight: 700; opacity: 0.7; margin-top: auto; }
.darts-card button { padding: 0 18px; min-height: 46px; font-size: 14px; }
.homeboard button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-height: 430px) {
  .homeboard { gap: 6px; }
  .gamebox-set { padding: 8px 8px 8px 10px; border-radius: 10px; }
  .gamebox-face { padding: 6px; }
  .gamebox-screen { width: min(76vw, 104vh); }
  .gamebox-hint { font-size: 11.5px; }
  .gamebox-foot button, .wardrobe-card button { min-height: 44px; }
  .wardrobe-card { padding: 8px 10px 10px; gap: 6px; }
  .wardrobe-name { font-size: 16px; }
}
@media (max-width: 520px) {
  .gamebox-knobs { display: none; }
  .gamebox-screen { width: min(86vw, 60vh); }
  .gamebox-foot { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 620px) {
  .darts-card { flex-direction: column; }
  .darts-screen { width: min(80vw, 52vh); }
  .darts-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .darts-hint { margin-top: 0; flex-basis: 100%; }
}
