/* Maths Duel: a big chalk sum and four answer slates. */
.sum {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(54px, 17vw, 84px);
  line-height: 1;
  white-space: nowrap;
}
.sum.pop { animation: pop .3s ease-out; }
.play .turn, #play .turn { flex: 1; font-size: 18px; min-height: 0; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  appearance: none;
  min-height: 78px;
  border: 2px solid var(--chalk);
  border-radius: 12px 16px 11px 15px;
  background: rgba(0,0,0,.08);
  color: var(--chalk);
  font: 700 clamp(32px, 10vw, 44px) var(--font-display);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .1s, background .15s, border-color .15s;
}
.choice:active { transform: scale(.97); }
.choice.right { background: rgba(168,224,160,.25); border-color: var(--chalk-green); color: var(--chalk-green); }
.choice.wrong { background: rgba(255,90,80,.2); border-color: #ff6b60; color: #ff6b60; animation: shake .3s; }

/* One-phone duel: two halves, the top one rotated to face the other player. */
.view.duel { padding: 0; gap: 0; overflow: hidden; }
body.dueling .frieze { display: none; }
.half {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}
.half.top { transform: rotate(180deg); }
.half .sum { font-size: clamp(40px, 12vw, 62px); }
.half .choice { min-height: 58px; font-size: clamp(26px, 8vw, 36px); }
.half.frozen .choices { opacity: .35; pointer-events: none; }
.half.won { background: rgba(168,224,160,.12); }
.duel-head { display: flex; justify-content: space-between; align-items: baseline; font: 700 20px var(--font-display); color: var(--chalk-dim); }
.duel-head .pts { font-size: 34px; color: var(--chalk-yellow); }
.midline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 10px;
  border-top: 2px dashed var(--board-line);
  border-bottom: 2px dashed var(--board-line);
  font: 700 15px var(--font-body);
  color: var(--chalk-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.midline button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--chalk-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 8px;
}

@media (max-height: 700px) {
  .half .choice { min-height: 48px; }
  .half { padding: 8px 12px; gap: 6px; }
}
