:root {
    --rc-ink: #0d1b2a;
    --rc-sand: #fdfce8;
    --rc-gold: #d99a2b;
    --rc-red: #b23a48;
    --rc-sky: #9ecae1;
}

body {
    font-family: "Space Grotesk", system-ui, sans-serif;
    background: radial-gradient(circle at top, #ffffff 0%, #fdfce8 45%, #efe9d2 100%);
    color: #1c1f23;
}

.hero {
    background: linear-gradient(135deg, rgba(48, 32, 21, 0.95) 0%, rgba(92, 65, 41, 0.9) 45%, rgba(145, 93, 60, 0.9) 100%);
    color: #fff;
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(217, 154, 43, 0.8) 0%, rgba(217, 154, 43, 0) 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-portrait {
    position: absolute;
    left: -10px;
    bottom: -120px;
    width: min(520px, 72%);
    opacity: 0.2;
    filter: sepia(0.35) contrast(1.0) blur(0.8px);
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: radial-gradient(circle at 35% 60%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0) 80%);
    mask-image: radial-gradient(circle at 35% 60%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0) 80%);
}

.hero-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.35);
}


.hero-subtitle {
    color: rgba(255, 255, 255, 0.82);
}

.hero-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
}

.display-title {
    font-family: "Fraunces", serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.stat-card {
    background: #fffcf4;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(82, 64, 46, 0.08);
    padding: 1.5rem;
    border: 1px solid rgba(82, 64, 46, 0.12);
}

.link-card {
    background: #fffcf4;
    border-radius: 16px;
    border: 1px solid rgba(82, 64, 46, 0.12);
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(82, 64, 46, 0.12);
}

.badge-pill {
    background: rgba(13, 27, 42, 0.08);
    color: #0d1b2a;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.footer-note {
    color: #576071;
    font-size: 0.9rem;
}

.clipboard-callout {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.clipboard-callout .btn {
    align-self: center;
}

.btn-manager-emails {
    font-size: 1.3em;
    padding: 0.45rem 1.05rem;
    background: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.5);
    box-shadow: 0 0.3rem 0.6rem rgba(13, 110, 253, 0.12);
}

.btn-manager-emails:hover,
.btn-manager-emails:focus {
    background: rgba(13, 110, 253, 0.14);
    border-color: rgba(13, 110, 253, 0.75);
    box-shadow: 0 0.4rem 0.8rem rgba(13, 110, 253, 0.16);
}

.next-date-display {
    font-size: 1.25em;
}

.clipboard-fallback {
    width: 100%;
    max-width: 32rem;
    font-size: 0.9rem;
}

.clipboard-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #576071;
    background: rgba(13, 27, 42, 0.06);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    min-height: 1.6rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.clipboard-status::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #b0b7c3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.clipboard-status.is-loading::before {
    opacity: 1;
    background: var(--rc-gold);
    animation: rc-pulse 1.1s ease-in-out infinite;
}

.clipboard-status.is-success::before {
    opacity: 1;
    background: #2f9e44;
}

.clipboard-status.is-error::before {
    opacity: 1;
    background: var(--rc-red);
}

.clipboard-status.is-success {
    color: #1b6b2d;
    background: rgba(47, 158, 68, 0.12);
}

.clipboard-status.is-error {
    color: #7d2731;
    background: rgba(178, 58, 72, 0.12);
}

@keyframes rc-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

@media (max-width: 991px) {
    .hero {
        padding: 2.25rem;
    }

    .hero-portrait {
        width: 78%;
        left: -10px;
        bottom: -90px;
        opacity: 0.22;
    }
}

@media (max-width: 767px) {
    .hero-portrait {
        position: relative;
        width: 88%;
        left: auto;
        bottom: auto;
        margin-top: 1.25rem;
        opacity: 0.24;
    }
}



.archive-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.archive-links a {
    color: #1c1f23;
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    background: rgba(13, 27, 42, 0.05);
}

.archive-links a:hover {
    background: rgba(13, 27, 42, 0.12);
}

.draft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 0.5rem;
}

.draft-grid a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.4rem;
    border-radius: 10px;
    text-decoration: none;
    color: #1c1f23;
    background: rgba(13, 27, 42, 0.06);
    font-weight: 500;
}

.draft-grid a:hover {
    background: rgba(13, 27, 42, 0.12);
}

.memorial-card {
    border: 1px solid rgba(178, 58, 72, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(243, 239, 233, 0.9));
}

.memorial-title {
    font-family: "Fraunces", serif;
    font-size: 1.2rem;
    color: var(--rc-red);
    margin-bottom: 0.75rem;
}

.memorial-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.memorial-note {
    font-size: 0.75rem;
    color: #6b4f55;
    margin-top: 0.2rem;
}


.admin-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-card .admin-thanks {
    margin-top: auto;
    font-size: 0.9rem;
    color: #6c757d;
}

.history-hero .hero-portrait {
    bottom: -200px;
    opacity: 0.2;
    filter: sepia(0.35) contrast(1.0) blur(0.8px);
    -webkit-mask-image: radial-gradient(circle at 35% 60%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0) 80%);
    mask-image: radial-gradient(circle at 35% 60%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0) 80%);
}

@media (max-width: 991px) {
    .history-hero .hero-portrait {
        bottom: -150px;
    }
}

.roller-page {
    background: var(--rc-sand, #f3efe9);
    min-height: 100vh;
}

.roller-page .roller-hero {
    background: linear-gradient(120deg, rgba(48, 32, 21, 0.95) 0%, rgba(92, 65, 41, 0.9) 45%, rgba(145, 93, 60, 0.9) 100%);
    color: #fff;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.roller-page .roller-hero h1 {
    font-family: "Fraunces", serif;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.roller-page .roller-hero p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.roller-page .roller-hero .roller-hint {
    color: rgba(255, 255, 255, 0.65);
}

.roller-page .history-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(13, 27, 42, 0.08);
    padding: 20px;
    height: 100%;
    border: 1px solid rgba(13, 27, 42, 0.08);
    display: flex;
    flex-direction: column;
}

.roller-page .history-card h4 {
    margin: 0;
    font-size: 18px;
}

.roller-page .history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.roller-page .history-list li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 14px;
}

.roller-page .history-list li.history-new {
    background: rgba(250, 229, 173, 0.6);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 4px 0;
    border-bottom: none;
    animation: history-glow 1.6s ease-out;
}

@keyframes history-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(199, 122, 43, 0.35);
    }
    100% {
        box-shadow: 0 0 0 12px rgba(199, 122, 43, 0);
    }
}

.roller-page .history-list li:last-child {
    border-bottom: none;
}

.roller-page .history-dice img {
    width: 28px;
    height: 28px;
    margin-right: 4px;
    vertical-align: middle;
}

.roller-page .history-label {
    display: block;
    font-weight: bold;
    color: #333;
}

.roller-page .history-time {
    display: block;
    font-size: 12px;
    color: #666;
}

.roller-page .roller-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(13, 27, 42, 0.08);
    padding: 30px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    text-align: center;
}

.roller-page .result-top {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: bold;
}

.roller-page .result-sub {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 18px;
    font-weight: 600;
}

.roller-page .result-dice {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 72px;
    margin-bottom: 20px;
}

.roller-page .result-dice img {
    width: 68px;
    height: 68px;
}

.roller-page .result-dice.is-rolling img {
    animation: dice-shake 0.45s ease;
}

@keyframes dice-shake {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    20% {
        transform: translateY(-6px) rotate(-6deg);
    }
    40% {
        transform: translateY(2px) rotate(4deg);
    }
    60% {
        transform: translateY(-4px) rotate(-3deg);
    }
    80% {
        transform: translateY(1px) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.roller-page .dice-button-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.roller-page .dice-button {
    margin: 0;
    padding: 12px 16px;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    background-color: #fff;
    border: 2px solid #e0d8ce;
    border-radius: 12px;
    width: 220px;
    display: block;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roller-page .dice-button:hover {
    background-color: #f6f1ea;
    box-shadow: 0 10px 20px rgba(13, 27, 42, 0.08);
    transform: translateY(-2px);
}

.roller-page .dice-icon {
    display: block;
    margin-bottom: 10px;
}

.roller-page .dice-icon img {
    width: 40px;
    height: 40px;
}

.roller-page .rng-card {
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .roller-page .roller-hero {
        padding: 1.5rem;
    }

    .roller-page .history-card {
        margin-bottom: 20px;
    }
}

/* Warm form controls to match cream motif */
.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
    background-color: #fffcf4;
    border-color: rgba(82, 64, 46, 0.2);
}
.admin-users-table {
    font-size: 0.92rem;
}

.admin-users-table th,
.admin-users-table td {
    padding: 0.35rem 0.45rem;
}

.admin-users-table td:last-child {
    white-space: nowrap;
}



.playoff-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 230, 0.92));
}

.playoff-updated {
    font-size: 0.85rem;
    color: #6c757d;
    background: rgba(13, 27, 42, 0.06);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.playoff-admin summary {
    cursor: pointer;
    font-weight: 600;
}

.playoff-admin summary::marker {
    color: var(--rc-gold);
}

.playoff-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
}

.playoff-bracket {
    display: grid;
    gap: 1.5rem;
}

.playoff-conferences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.playoff-conference-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.playoff-rounds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.playoff-round {
    background: rgba(13, 27, 42, 0.05);
    border-radius: 14px;
    padding: 0.85rem;
}

.playoff-round-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c757d;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.playoff-series {
    background: #fff;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(13, 27, 42, 0.12);
    box-shadow: 0 8px 18px rgba(13, 27, 42, 0.04);
}

.playoff-series-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.playoff-series-score {
    font-size: 0.85rem;
    color: #576071;
}

.playoff-series-score.is-muted {
    color: #9aa3af;
}

.playoff-finals {
    padding-top: 1rem;
    border-top: 1px dashed rgba(13, 27, 42, 0.2);
}

.playoff-finals .playoff-series {
    max-width: 360px;
}


.section-break {
    height: 2px;
    width: 100%;
    margin: 2.5rem 0 2rem;
    background: linear-gradient(90deg, rgba(13, 27, 42, 0), rgba(13, 27, 42, 0.2), rgba(13, 27, 42, 0));
}


.section-break {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2px;
    width: 100%;
    margin: 2.5rem 0 2rem;
    background: linear-gradient(90deg, rgba(13, 27, 42, 0), rgba(13, 27, 42, 0.2), rgba(13, 27, 42, 0));
}

.section-break-date {
    position: relative;
    top: -0.95rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #fffcf4;
    border: 1px solid rgba(13, 27, 42, 0.12);
    font-size: 0.85rem;
    color: #576071;
    letter-spacing: 0.02em;
}
