:root {
    --bg: #f4f1ea;
    --surface: #ffffff;
    --text: #1f2933;
    --muted: #5f6b7a;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --border: #d9dee7;
    --danger: #b42318;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ebe6dc 0%, var(--bg) 240px);
    line-height: 1.5;
    padding-bottom: env(safe-area-inset-bottom);
}

a {
    color: var(--accent);
}

.container {
    width: min(960px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    line-height: 0;
}

.brand-logo {
    display: block;
    width: auto;
    height: clamp(2.35rem, 7.5vw, 3.25rem);
    max-width: min(14rem, 62vw);
    object-fit: contain;
}

.site-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--accent);
}

main {
    padding: 1.5rem 0 3rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    padding: 1.5rem 0 2rem;
}

.site-footer p {
    margin: 0;
}

.site-footer-credit {
    margin-top: 0.35rem !important;
    font-size: 0.85rem;
}

.site-footer-credit a {
    font-weight: 600;
}

.site-footer-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--accent);
}

.site-footer-profile:hover {
    color: var(--accent-dark);
}

.site-footer-profile:hover .site-footer-gc-icon {
    transform: scale(1.08);
}

.site-footer-gc-icon {
    display: block;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #02874d;
    transition: transform 0.15s ease;
}

.hero,
.page-header {
    margin-bottom: 1.5rem;
}

.hero h1,
.page-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 5vw, 2.8rem);
}

.lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.card h2 {
    margin-top: 0;
}

.card-highlight {
    border-color: var(--accent);
    background: linear-gradient(180deg, #f0faf8 0%, var(--surface) 100%);
}

.card-grid {
    display: grid;
    gap: 1rem;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.rules-list {
    padding-left: 1.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-dark);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #eef2f6;
    color: var(--text);
}

.pack-join-form {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.pack-join-form label {
    font-weight: 600;
}

.pack-join-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.pack-join-row input {
    flex: 1 1 10rem;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.pack-join-row .btn {
    flex: 0 0 auto;
}

.setup-form {
    display: grid;
    gap: 1rem;
}

.setup-form label,
.setup-form legend {
    font-weight: 600;
}

.setup-form select,
.setup-form input {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
}

.mode-fieldset {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.65rem;
}

.mode-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    min-height: 44px;
}

.mode-option input {
    width: auto;
    min-height: auto;
    margin-top: 0.2rem;
}

.mode-copy {
    display: grid;
    gap: 0.15rem;
}

.mode-copy small {
    color: var(--muted);
}

.mode-badge {
    display: inline-block;
    margin: 0.5rem 0 0;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #eef2f6;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.finished-mode {
    margin-top: 0;
}

.dice-mode-panel[hidden] {
    display: none !important;
}

.physical-dice-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.physical-die-slot {
    display: grid;
    gap: 0.35rem;
    text-align: center;
}

.physical-die-slot .physical-die-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.physical-die-select {
    width: 100%;
    min-height: 48px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    text-align-last: center;
    padding: 0.35rem;
    cursor: pointer;
}

.physical-die-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.history-mode {
    font-size: 0.85rem;
    color: var(--accent-dark);
    font-weight: 600;
}

.player-names {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.player-field {
    margin-bottom: 0.75rem;
}

.player-field:last-child {
    margin-bottom: 0;
}

.form-error {
    color: var(--danger);
    margin: 0;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-list li {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.history-list li:last-child {
    border-bottom: none;
}

.history-date {
    font-size: 0.85rem;
    color: var(--muted);
}

code {
    background: #eef2f6;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
}

.muted {
    color: var(--muted);
}

.page-play .page-header.play-status {
    margin-bottom: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: none;
}

.play-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
}

.play-status-meta {
    margin: 0;
    min-width: 0;
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-wrap: wrap;
    line-height: 1.35;
}

.play-status-pack {
    font-weight: 600;
    color: var(--text);
}

.play-status-turn {
    white-space: nowrap;
}

.play-status-sep {
    opacity: 0.55;
}

.play-status-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.mode-badge-compact {
    display: inline-block;
    margin: 0;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #eef2f6;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.play-status-player-inline {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    white-space: nowrap;
}

.play-status-player-label {
    color: var(--muted);
    font-size: 0.72rem;
}

.play-status-player-inline strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.btn-reset-game {
    min-height: 28px;
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.banner-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
}

.offline-banner {
    background: #fff4e5;
    border: 1px solid #f5c07a;
    color: #8a4b00;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

body.is-offline .play-actions {
    border-top-color: #f5c07a;
}

.play-layout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.play-actions-compact {
    padding: 0.75rem 1rem;
}

.play-actions-compact .card h2,
.play-actions-compact > h2 {
    display: none;
}

.digital-dice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.digital-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.btn-compact {
    min-height: 44px;
    padding: 0.5rem 1rem;
}

.dice-help {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.score-picker {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.score-picker-title {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.score-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.45rem;
}

.score-picker-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.45rem 0.65rem;
    border: 1px dashed var(--accent);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    touch-action: manipulation;
    text-align: left;
}

.score-picker-btn:active {
    background: #e6f4f1;
}

.score-picker-label {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.2;
}

.score-picker-points {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-dark);
    flex-shrink: 0;
}

.scorecard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.scorecard-header h2 {
    margin: 0;
}

.scroll-hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.scorecard-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    padding-bottom: 0.25rem;
    scroll-padding-inline: 0.5rem;
}

/* Header "Category" scrolls with player names — only row labels stick on the left */
.scorecard {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    min-width: 16rem;
}

.scorecard thead .category-col {
    background: #f8fafc;
    width: 4.25rem;
    min-width: 4.25rem;
    max-width: 4.25rem;
    text-align: left;
    font-size: 0.72rem;
    padding: 0.45rem 0.3rem;
}

.scorecard .player-col {
    min-width: 4.5rem;
    width: 4.5rem;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.45rem 0.35rem;
}

.scorecard thead .player-col {
    background: #f8fafc;
}

.scorecard .row-label-col {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 4.25rem;
    min-width: 4.25rem;
    max-width: 4.25rem;
    text-align: left;
    white-space: normal;
    line-height: 1.15;
    font-size: 0.72rem;
    padding: 0.4rem 0.3rem;
    background: #fff;
    box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.15);
}

.scorecard tfoot .row-label-col {
    background: #f8fafc;
}

.scorecard .summary-row .row-label-col {
    background: #fff;
}

.scorecard .section-row th {
    background: #eef2f6;
    text-align: left;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.scorecard .summary-row th {
    font-size: 0.92rem;
    color: var(--muted);
}

.scorecard .col-current {
    background: #f0faf8;
}

.scorecard thead .col-current {
    background: #dff3ef;
    box-shadow: inset 0 -3px 0 var(--accent);
}

.bonus-hint {
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
}

.bonus-earned {
    color: var(--accent-dark);
    font-weight: 700;
}

.manual-dice-panel {
    margin: 0.75rem 0 1rem;
}

.manual-dice-panel summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 600;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.toast-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    display: grid;
    place-items: center;
    z-index: 100;
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.standings-detail {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.standing-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #fafbfc;
}

.standing-header {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.65rem;
}

.standing-header .place {
    font-weight: 700;
    color: var(--accent);
}

.standing-header .points {
    font-weight: 700;
}

.standing-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1rem;
    margin: 0;
}

.standing-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.standing-breakdown dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.standing-breakdown dd {
    margin: 0;
    font-weight: 600;
}

.dice-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: nowrap;
    margin: 0;
}

.die {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 2px solid var(--border);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
}

.die-empty {
    background: #f3f4f6;
    color: var(--muted);
    border-style: dashed;
}

.die:disabled:not(.die-empty) {
    cursor: default;
    opacity: 1;
}

.die-kept {
    border-color: var(--accent);
    background: #e6f4f1;
    box-shadow: inset 0 0 0 1px var(--accent);
}

.roll-count {
    margin: 0;
    color: var(--muted);
}

.scorecard-wrap {
    overflow: hidden;
}

.scorecard th,
.scorecard td {
    border: 1px solid var(--border);
    padding: 0.4rem 0.35rem;
    text-align: center;
    overflow: hidden;
}

.scorecard thead th {
    background: #f8fafc;
}

.scorecard tbody th {
    text-align: left;
}

.scorecard tfoot th,
.scorecard tfoot td {
    font-weight: 700;
    background: #f8fafc;
}

.scorecard .cell-active {
    background: #fff8e6;
}

.scorecard .cell-scorable {
    cursor: pointer;
    padding: 0;
}

.scorecard .cell-busy {
    opacity: 0.65;
    pointer-events: none;
}

.scorecard .cell-scorable .score-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    font-weight: 700;
    color: var(--accent-dark);
    border: 1px dashed var(--accent);
    border-radius: 6px;
    margin: 0.2rem;
}

.scorecard .cell-scorable:active .score-value {
    background: #e6f4f1;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.manual-dice {
    margin: 1rem 0;
}

.manual-dice-label {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.manual-dice-inputs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.manual-die-input {
    width: 3.25rem;
    min-height: 44px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
}

.score-btn {
    min-height: 40px;
    min-width: 100%;
    width: 100%;
    border: 1px dashed var(--accent);
    border-radius: 6px;
    background: #fff;
    color: var(--accent-dark);
    font-weight: 700;
    cursor: pointer;
    padding: 0.25rem 0.15rem;
    font-size: 0.95rem;
    touch-action: manipulation;
}

.score-btn:hover {
    background: #e6f4f1;
}

.card-finished {
    border-color: var(--accent);
}

[hidden] {
    display: none !important;
}

.page-admin .admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-grid {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form input[type="number"] {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
}

.admin-created-list {
    margin: 0;
    padding-left: 1.1rem;
}

.admin-created-list li + li {
    margin-top: 0.65rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border: 1px solid var(--border);
    padding: 0.5rem 0.6rem;
    text-align: left;
}

.admin-table th {
    background: #f8fafc;
}

.admin-stats-note {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.admin-table-stats {
    min-width: 56rem;
}

.admin-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.admin-footnote {
    margin-top: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-active {
    background: #e6f4f1;
    color: var(--accent-dark);
}

.status-inactive {
    background: #fef3f2;
    color: var(--danger);
}

.admin-row-inactive {
    opacity: 0.82;
}

.admin-actions-cell {
    white-space: nowrap;
}

.admin-inline-form {
    display: inline;
    margin-left: 0.5rem;
}

.btn-admin-toggle {
    min-height: 36px;
    padding: 0.35rem 0.75rem;
    font-size: 0.88rem;
}

.confirm-dialog {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.confirm-dialog-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    margin: 0;
}

.confirm-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.confirm-dialog-text {
    margin: 0 0 1rem;
    color: var(--muted);
}

.confirm-dialog-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover:not(:disabled) {
    background: #912018;
}

@media (min-width: 720px) {
    .scroll-hint {
        display: none;
    }

    .container {
        width: min(1080px, calc(100% - 3rem));
    }

    main {
        padding: 2rem 0 4rem;
    }

    .card {
        padding: 1.5rem 1.75rem;
    }

    .hero .lead,
    .page-header .lead {
        max-width: 42rem;
    }

    .pack-join-form {
        max-width: 36rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .physical-dice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .physical-dice-row {
        gap: 0.65rem;
    }

    .history-list li {
        grid-template-columns: 7rem 1fr 8rem auto;
        align-items: center;
    }

    .standing-breakdown {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .score-picker-btn:hover {
        background: #e6f4f1;
    }
}

@media (min-width: 900px) {
    body.page-setup main.container {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 1rem;
        align-items: start;
    }

    body.page-setup .page-header {
        grid-column: 1 / -1;
    }

    body.page-setup .page-header + .card {
        margin-bottom: 0;
    }

    body.page-play .play-layout {
        display: grid;
        grid-template-columns: minmax(17.5rem, 22rem) minmax(0, 1fr);
        gap: 1rem;
        align-items: start;
    }

    body.page-play .play-actions-compact {
        padding: 1rem 1.15rem;
        position: sticky;
        top: 5.5rem;
    }

    body.page-play .digital-dice-bar {
        flex-direction: column;
        align-items: stretch;
    }

    body.page-play .dice-row {
        justify-content: center;
    }

    body.page-play .digital-controls {
        justify-content: space-between;
    }

    body.page-play .score-picker-grid {
        grid-template-columns: 1fr;
    }

    body.page-play .scorecard-scroll {
        margin: 0;
    }

    body.page-play .scorecard .row-label-col,
    body.page-play .scorecard thead .category-col {
        width: 6.75rem;
        min-width: 6.75rem;
        max-width: 6.75rem;
        font-size: 0.82rem;
        padding: 0.45rem 0.5rem;
    }

    body.page-play .scorecard .player-col {
        min-width: 5.5rem;
        width: 5.5rem;
        font-size: 0.9rem;
    }

    body.page-play .scorecard th,
    body.page-play .scorecard td {
        padding: 0.5rem 0.45rem;
    }

    body.page-play .standings-detail {
        grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    }

    body.page-about .card:not(.card-link),
    body.page-how-to-play .card {
        max-width: 52rem;
    }

    body.page-home .hero {
        padding: 0.5rem 0 0.25rem;
    }

    body.page-home .card-grid {
        margin-top: 0.25rem;
    }
}

@media (min-width: 1200px) {
    .container {
        width: min(1140px, calc(100% - 4rem));
    }

    body.page-play .play-layout {
        grid-template-columns: minmax(20rem, 24rem) minmax(0, 1fr);
    }

    body.page-play .scorecard .row-label-col,
    body.page-play .scorecard thead .category-col {
        width: 7.5rem;
        min-width: 7.5rem;
        max-width: 7.5rem;
    }

    body.page-play .scorecard .player-col {
        min-width: 6rem;
        width: 6rem;
    }
}

@media (max-width: 719px) {
    .scroll-hint {
        display: block;
    }

    .play-actions {
        order: 1;
        position: static;
        margin-bottom: 0;
        border-top: none;
        box-shadow: var(--shadow);
    }

    .scorecard-wrap {
        order: 2;
    }

    .digital-dice-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .digital-controls {
        justify-content: space-between;
    }

    .dice-row {
        justify-content: center;
    }

    main.container {
        width: min(960px, calc(100% - 1rem));
    }

    .site-nav a {
        font-size: 0.88rem;
    }
}

@media (max-width: 719px) and (orientation: landscape) {
    .page-play .page-header.play-status {
        margin-bottom: 0.35rem;
        padding: 0.35rem 0.55rem;
    }

    .digital-dice-bar {
        flex-direction: row;
        align-items: center;
    }
}
