/* Shared paper-card appearance. Card transforms and timing live in each mode's base stylesheet. */
.lottery-page .layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
.lottery-page .stage { padding: 24px; }
.lottery-page .stats { grid-template-columns: 80px minmax(0, 1fr) 80px; gap: 0; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.lottery-page .stat { min-width: 0; min-height: 0; padding: 0 16px 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.lottery-page .stat:first-child { padding-left: 0; }
.lottery-page .stat + .stat { border-left: 1px solid var(--line); }
.lottery-page .stat:hover { transform: none; box-shadow: none; }
.lottery-page .stat strong { font-family: var(--font-mono); font-weight: 500; }
.lottery-page .stat .small-value { font-family: var(--font-sans); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.lottery-page .board-wrap { padding: 8px 0; border: 0; border-radius: 0; background: transparent; }
.lottery-page .board { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lottery-page .card-inner { box-shadow: 0 3px 5px #0000000c; }
.lottery-page .card:not([disabled]):hover .card-inner { box-shadow: 0 0 0 2px var(--accent); }
.lottery-page .card-face { border: 1px solid var(--line-strong); border-radius: 5px; background: var(--bg-soft); color: var(--text); }
.lottery-page .card-front { background: var(--bg-soft); }
.lottery-page .card-front::before { inset: 7px; border-color: var(--line); border-radius: 2px; }
.lottery-page .card-front::after { content: none; }
.lottery-page .question { background: none; color: var(--accent); filter: none; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 52px); font-weight: 400; }
.lottery-page .question::after { content: none; }
.lottery-page .card-number { background: none; color: var(--text); font-family: Georgia, serif; font-weight: 400; filter: none; }
.lottery-page .card.is-selected { filter: none; }
.lottery-page .card.is-selected .card-back { background: var(--accent-soft); border: 2px solid var(--accent); color: var(--accent); box-shadow: none; }
.lottery-page .card.is-selected .card-number { color: var(--accent); }
.lottery-page .card.is-selected:not(.is-locked) .card-back::after { position: absolute; bottom: 12px; content: "待确认"; color: var(--accent); font-size: 11px; }
.lottery-page .card.is-locked .card-back { background: var(--good-soft); border: 2px solid var(--good); color: var(--good); box-shadow: none; }
.lottery-page .card.is-locked .card-number { color: var(--good); }
.lottery-page .card-lock { background: transparent; color: var(--good); border: 0; font-size: 11px; }
.lottery-page .controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); gap: 16px; }
.lottery-page .message { color: var(--muted); font-weight: 400; line-height: 1.8; }
.lottery-page .side-panel { padding: 24px; }
.lottery-page .side-panel h2 { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 20px; }
.lottery-page .history-list { gap: 12px; }
.lottery-page .history-item { padding: 16px; border-radius: 4px; background: var(--soft); }
.lottery-page .history-item:hover { transform: none; box-shadow: none; border-color: var(--line); }
.lottery-page .history-round { color: var(--muted); font-weight: 500; }
.lottery-page .history-selected { background: var(--good-soft); color: var(--good); box-shadow: none; border-radius: 3px; font-family: Georgia, serif; font-size: 26px; }
.lottery-page .history-meta { font-size: 12px; }
.lottery-page .author-button { position: relative; left: auto; bottom: auto; display: flex; width: fit-content; margin: 0 auto 28px; padding: 8px 14px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; box-shadow: none; transform: none; animation: none; }
.lottery-page .author-button:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.lottery-page .author-mark { background: var(--soft); color: var(--muted); box-shadow: none; border-radius: 3px; }
@media (max-width: 1100px) {
  .lottery-page .layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
  .lottery-page .stage, .lottery-page .side-panel { padding: 18px; }
}
@media (max-width: 900px) {
  .lottery-page .layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lottery-page .stage { padding: 16px; }
  .lottery-page .stats { grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 0; }
  .lottery-page .stat { padding: 0 10px 12px; }
  .lottery-page .stat:first-child { padding-left: 0; }
  .lottery-page .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lottery-page .board { gap: 12px; }
  .lottery-page .controls { grid-template-columns: 1fr; align-items: stretch; }
  .lottery-page .control-actions { width: 100%; }
  .lottery-page .control-actions button { flex: 1; width: auto; }
}

.lottery-page .history-empty { padding: 20px 0; border: 0; background: transparent; text-align: center; }
.lottery-page .control-actions { flex-wrap: nowrap; }
.lottery-page .control-actions .reset-btn { min-width: 0; padding: 10px 16px; white-space: nowrap; }
.lottery-page .control-actions .restart-btn { background: transparent; color: var(--muted); border-color: var(--line-strong); }
.lottery-page .card-front::before { content: none; }
.lottery-page .card { aspect-ratio: .8; }
@media (max-width: 600px) {
  .lottery-page .card { aspect-ratio: 1.08; }
}
