/* Play page */
/* ─── Stage / main content ────────────────────────────────────────── */
.stage{
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 28px 80px;
}
.screen{
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Meta row above the question */
.meta-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 15px;
  overflow: visible;
}
.meta-left,.meta-right{
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta-strong{ color: var(--ink); font-weight: 500; }
.meta-tag .frac{
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.meta-tag{
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.meta-dot{
  width: 4px; height: 4px; border-radius: 99px; background: var(--ink-4);
  flex: 0 0 auto;
}

@media (max-width: 360px){
  .meta-row{ gap: 10px; }
  .meta-left,.meta-right{ gap: 8px; }
}

/* Daily slots indicator */
.slots{
  display: inline-flex; gap: 4px;
}
.slot{
  width: 22px; height: 6px; border-radius: 2px;
  background: var(--line);
  position: relative;
  border: 0;
  box-shadow: none;
}
.slot.current{ background: var(--ink-4); }
.slot.solved{ background: var(--ok); }
.slot.partial{ background: var(--warn); }
.slot.failed{ background: var(--bad); }

/* Question block */
.question{
  height: var(--status-block-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-variation-settings: "opsz" 36;
  white-space: nowrap;
  overflow: hidden;
}
.question .within{
  display: block;
  font-size: 14px;
  font-family: var(--mono);
  font-weight: 400;
  color: #ddd;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.question em{
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.question .line{
  display: block;
}
.question-side-skeleton{
  display: inline-block;
  width: 2.85em;
  height: .72em;
  border-radius: 4px;
  vertical-align: -0.03em;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.16), rgba(255,255,255,.06));
  background-size: 220% 100%;
  animation: textSkeleton 1.15s ease-in-out infinite;
}
@keyframes textSkeleton{
  0%{ background-position: 120% 0; }
  100%{ background-position: -120% 0; }
}

/* Play header (after Yes/No) */
.play-header{
  height: var(--status-block-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 16px;
}
.play-role{
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.role-badge{
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--board-edge);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.role-badge.white{ background: #f5f0e3; }
.role-badge.black{ background: #2a2620; }
.role-badge svg{
  width: 28px; height: 28px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
  pointer-events: none;
}
.role-text{
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
  white-space: nowrap;
}
.role-side{
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.role-stance{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 3px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  align-self: flex-start;
  line-height: 1.2;
}
.role-stance.defending{
  background: color-mix(in oklab, var(--ink-3) 18%, transparent);
  color: var(--ink-2);
}
.role-stance .stance-dot{
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor;
}
.play-moves{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex-shrink: 0;
}
.moves-pips{
  display: flex;
  gap: 6px;
}
.pip{
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent), #000 30%);
  transition: background .2s, box-shadow .2s;
}
.pip.empty{
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink-4);
}
.moves-label{
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1;
  white-space: nowrap;
}

/* Buttons */
.actions{
  display: flex;
  gap: 10px;
}
.btn{
  appearance: none;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-variation-settings: normal;
  text-shadow: none;
  box-shadow: 0 2px 0 #0a0a0b;
}
.btn:hover{ background: #2a2a2c; border-color: #3a3a3c; color: var(--ink); }
.btn:disabled{
  cursor: default;
  opacity: .45;
  transform: none;
}
.btn:disabled:hover{
  background: var(--bg-elev);
  border-color: var(--line);
  color: var(--ink);
}
.btn:active{ transform: translateY(1px); box-shadow: 0 0 0 #0a0a0b; }
.btn:disabled:active{ transform: none; box-shadow: 0 2px 0 #0a0a0b; }
.btn.primary{
  background: var(--accent);
  color: #f5f7f0;
  border-color: #3d6938;
  box-shadow: 0 2px 0 #2b4d27;
}
.btn.primary:hover{ background: #63a55c; border-color: #4d7d47; color: #f5f7f0; }
.btn.ghost{
  background: transparent;
  border: 1px solid transparent;
  color: #ddd;
  flex: 0 0 auto;
  padding: 0 14px;
  box-shadow: none;
}
.btn.ghost:hover{ color: var(--ink); background: #2a2a2c; border-color: #3a3a3c; }
.btn.danger-soft{
  color: var(--bad);
}
.btn.danger-soft:hover{ border-color: var(--bad); background: #2a2a2c; color: var(--bad); }
.btn.yes,.btn.no{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  padding: 0 18px;
  line-height: 1;
  font-variation-settings: normal;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.yes{
  background: var(--accent);
  border-color: #3d6938;
  color: #f5f7f0;
  box-shadow: 0 2px 0 #2b4d27;
}
.btn.yes:hover{
  background: #63a55c;
  border-color: #4d7d47;
  color: #f5f7f0;
}
.btn.no:hover{
  background: #2a2a2c;
  border-color: #3a3a3c;
  color: var(--ink);
}
.actions-secondary{
  display: flex;
  gap: 10px;
  margin-top: 2px;
}
