.cup-wrap { width: min(100%, 420px); background: url('/schocken/assets/cup-top.png') center / contain no-repeat; }
.play-area { flex: 0 0 auto; min-height: 0; justify-content: flex-start; }
.back-button { display: grid; place-items: center; padding: 0; }
.back-button svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-links { display: flex; justify-content: center; gap: 12px; }
.home-links .text-button { flex: 1; min-height: 44px; padding: 8px 2px; }
.actions .motion-link { min-height: 44px; font: 14px Arial, sans-serif; }
.secondary-actions { display: grid; gap: 10px; }
.secondary-actions.two-actions { grid-template-columns: 1fr 1fr; }
.secondary-actions.two-actions .btn { padding: 10px 12px; font-size: 16px; }
.secondary-actions:not(:has(button:not([hidden]))) { display: none; }
.die-target { border: 2px solid #e6c17a; border-radius: 50%; box-shadow: 0 0 0 3px #05251966; touch-action: manipulation; }
.hand-result { min-height: 22px; margin: 0 0 4px; text-align: center; font: 700 19px Georgia,serif; color: #f5e7c2; }
.result-hands { list-style: none; padding: 0; margin: 15px 0 0; text-align: left; }
.result-hands li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-top: 1px solid #b391573c; font: 14px Arial,sans-serif; }
.result-hands small { grid-column: 1/-1; color: #d4bd8c; }
.result-hands .round-loser { color: #ffd5bb; }
.how .ranking { list-style: decimal; padding-left: 20px; margin: 12px 0; }
.how .ranking li { display: list-item; padding: 6px 0; border: 0; }
.table:has(.round-result:not([hidden])) .play-area { display: none; }
.table:has(.round-result:not([hidden])) .round-result { order: 1; margin: 12px 0 20px; }
.table:has(.round-result:not([hidden])) .actions { order: 2; }
.table:has(.round-result:not([hidden])) > .text-button { order: 3; }
.table:has(.round-result:not([hidden])) .table-rules { order: 4; }
.table:has(.round-result:not([hidden])) .hand-result { display: none; }
button { touch-action: manipulation; }
.hold-shake { touch-action: none; user-select: none; -webkit-user-select: none; }
.actions .hold-shake { font-size: 16px; padding-inline: 18px; }
.motion-settings { margin: 12px 0 0; font: 13px/1.4 Arial,sans-serif; color: #dcc89c; }
.motion-settings[hidden] { display: none; }
.motion-settings summary { cursor: pointer; text-align: center; min-height: 44px; padding: 14px 0; }
.motion-settings p { margin: 4px 0; text-align: center; }
.motion-settings button { display: block; margin: auto; }
.motion-settings label { display: flex; justify-content: space-between; margin-top: 8px; }
.motion-settings input { width: 100%; min-height: 44px; accent-color: #d4aa65; }
.table:has(.round-result:not([hidden])) .motion-settings { order: 3; }
.table-status h1, .result-hands strong { overflow-wrap: anywhere; }
.table > .text-button { align-self: center; margin-top: 8px; }
.throw-timer { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 10px 0; color: #efd49c; }
.throw-timer-clock { position: relative; flex: 0 0 44px; width: 44px; height: 44px; }
.throw-timer-clock svg { display: block; width: 44px; height: 44px; transform: rotate(-90deg); fill: none; stroke-width: 2; }
.throw-timer-track { stroke: #a7884e55; }
.throw-timer-ring { stroke: #e2b866; stroke-dasharray: 1; stroke-dashoffset: 0; stroke-linecap: round; }
.throw-timer-clock > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; font-family: Arial,sans-serif; font-variant-numeric: tabular-nums; }
.throw-timer-clock b { font-size: 20px; font-weight: 600; }
.throw-timer-clock small { font-size: 11px; color: #d8c28c; }
.throw-timer-copy { min-width: 0; display: grid; gap: 4px; }
.throw-timer-copy strong { font: 700 14px/1.2 Arial,sans-serif; }
.throw-timer-copy > span { font: 12px/1.35 Arial,sans-serif; color: #ded1ad; }
.throw-timer[data-state="settling"] .throw-timer-clock { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .throw-timer-ring { visibility: hidden; } }
@media (max-height: 730px) {
  .table { padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
  .table-status { min-height: 55px; padding-top: 6px; }
  .scoreline { min-height: 60px; }
  .play-area { min-height: 0; }
  .cup-wrap { width: min(100%, 420px); }
  .laid-out { min-height: 52px; }
  .table-rules { margin-top: 3px; }
}
