/* The board is drawn on a canvas in the same 1920x1080 design space the TV app uses, so
   the artwork lands in the same places. Everything else is plain DOM on top. */
:root {
  --ink: #f2f0ea;
  --dim: #c9c3ce;
  --accent: #e08a3c;
  --teal: #3e9aa8;
  --bg: #1e1a22;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

#board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 44px;
  background: rgba(18, 16, 20, 0.88);
  border-radius: 20px;
  text-align: center;
  max-width: min(90vw, 900px);
}

.panel.hidden { display: none; }

#logo { width: min(60vw, 420px); }
#status { margin: 0; color: var(--dim); font-size: 1.1rem; }

.row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

button {
  font: inherit;
  padding: 12px 22px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: #6a5acd;
  color: var(--ink);
  cursor: pointer;
}
button:hover, button:focus-visible { border-color: var(--accent); outline: none; }
button.secondary { background: #3a3440; }

#prompt {
  position: absolute;
  left: 50%;
  bottom: 3vh;
  transform: translateX(-50%);
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.6rem);
  text-shadow: 0 2px 6px #000;
  pointer-events: none;
}
#prompt.blocked { color: var(--accent); }

.code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0;
}

.friends { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.friend {
  width: 130px;
  border: 3px solid transparent;
  border-radius: 12px;
  background: none;
  padding: 6px;
}
.friend img { width: 100%; border-radius: 8px; display: block; }
.friend span { display: block; margin-top: 6px; font-size: 0.9rem; }
.friend[aria-pressed="true"] { border-color: var(--accent); }
.rules { color: var(--dim); max-width: 34rem; margin: 0; }

/* Side panels, positioned from the same 1920x1080 design space the board uses, so the
   friend cards land in the columns ART_SPEC.md reserves for them. */
.side {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  text-align: center;
  pointer-events: none;
}
.side.hidden { display: none; }
.side .who { font-weight: 600; }
.side .card { width: 86%; display: block; }
.side .note { color: var(--dim); }
.side.dim { opacity: 0.55; }
.side .who.active { color: var(--accent); }
.side .away { color: var(--accent); }

/* The rules sit in the blank block the card art reserves for them (its lower 172 of
   532 px), rather than below the card. */
.side .cardwrap { position: relative; width: 86%; }
.side .cardrules {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 0;
  height: 32.3%;            /* 172 / 532 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  line-height: 1.25;
  color: #e8e2da;
}
