:root {
  --fondo: #f1f0ec;          /* the wall behind the board */
  --lavagna: #fbfbf9;        /* the white enamel of the board */
  --cornice-a: #e2e3e6;      /* the aluminium frame, light side */
  --cornice-b: #a9abb1;      /* the aluminium frame, dark side */
  --inchiostro: #17181c;     /* the black marker ink */
  --accento: #2556e8;        /* the blue marker, the only accent */
  --testo: #6b6b70;          /* the small label */
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--fondo);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  color: var(--testo);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vh, 32px) clamp(10px, 3vw, 32px);
}

.lavagna {
  --l: min(880px, 92vw, 132vh);
  width: var(--l);
  display: grid;
  gap: clamp(6px, 1.2vh, 12px);
}

.etichetta {
  font-size: clamp(10px, 1.25vh + 0.3vw, 13px);
  font-variation-settings: 'wdth' 92;
  letter-spacing: 0.01em;
  display: flex;
  gap: 0.45em;
  align-items: baseline;
}
.etichetta [data-team] { color: #2a2a2e; font-weight: 600; }
.etichetta__sep { color: #b5b5b9; }

.lavagna__piano {
  position: relative;
  width: 100%;
  height: min(calc(var(--l) * 0.54), 70vh);
  border-radius: 6px;
  background:
    radial-gradient(120% 90% at 30% 10%, #ffffff 0%, var(--lavagna) 55%, #f3f3f1 100%);
  box-shadow:
    0 0 0 1px var(--cornice-b),
    0 0 0 3px var(--cornice-a),
    0 0 0 4px #9a9ca3,
    0 18px 30px -18px rgba(30, 30, 40, 0.35),
    0 3px 6px rgba(30, 30, 40, 0.08);
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
}
.lavagna__piano canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.lavagna__riflesso {
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg,
    transparent 36%, rgba(255, 255, 255, 0.22) 45%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  pointer-events: none;
}

.vassoio {
  height: clamp(6px, 1.1vh, 10px);
  margin: calc(clamp(6px, 1.2vh, 12px) * -0.4) 3% 0;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #d9dadd 0%, #b9bbc0 55%, #8f9197 100%);
  box-shadow: 0 6px 10px -6px rgba(30, 30, 40, 0.35);
}

.nota {
  font-size: clamp(10px, 1.1vh + 0.25vw, 12px);
  color: #9a9a9f;
  text-align: right;
  font-variation-settings: 'wdth' 90;
}

.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .lavagna__piano { height: min(calc(var(--l) * 0.78), 56vh); }
}
