body.landing-mode {
    margin: 0;
    overflow: hidden;
    background: #111318 !important;
    color: #f5efe6;
}

body.landing-mode main {
    margin: 0 !important;
    padding: 0 !important;
}

body.landing-mode a {
    color: inherit;
    text-decoration: none;
}

.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;
}

.landing-page {
    position: relative;
    --landing-sidebar-width: 20.5rem;
    --landing-stage-gutter: 4.6rem;
    --landing-content-gap: 2.4rem;
    --landing-content-width: 55rem;
    --landing-nav-marker-x: 1.78rem;
    --landing-top-link-height: 6.25rem;
    --landing-top-link-hover-height: 6.7rem;
    --landing-top-link-padding-bottom: 1.3rem;
    --landing-top-link-hover-padding-bottom: 1.58rem;
    height: 100vh;
    overflow: hidden;
    font-family: "Libre Baskerville", serif;
    color: #f5efe6;
}

.landing-page__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.landing-page__audio {
    display: none;
}

.landing-page__bg-layer {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.08);
    filter: saturate(0.92) brightness(0.78);
    transition:
        opacity 850ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 1300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-page__bg-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 10, 16, 0.3), rgba(8, 10, 16, 0.76)),
        radial-gradient(circle at 22% 48%, rgba(10, 20, 34, 0.58), transparent 35%),
        radial-gradient(circle at 76% 20%, rgba(52, 24, 64, 0.22), transparent 28%);
}

.landing-page__bg-layer.is-visible {
    opacity: 1;
    transform: scale(1.02);
}

.landing-page__track {
    height: 300vh;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.landing-page__section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    --landing-mobile-top-shadow: 0;
}

.landing-page__mobile-top-shadow {
    display: none;
}

.landing-page__noise {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.landing-page__chrome {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.landing-page__chrome::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--landing-sidebar-width);
    background: transparent;
}

.landing-page__brand,
.landing-page__top-link,
.landing-page__audio-toggle,
.landing-page__nav-item,
.landing-page__hero-die-trigger {
    pointer-events: auto;
}

.landing-page__brand {
    position: absolute;
    top: 1.25rem;
    left: 1.55rem;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.35rem;
    margin: -0.25rem 0 0 -0.35rem;
    min-width: 5rem;
    min-height: 5rem;
    z-index: 3;
}

.landing-page__brand img {
    width: auto;
    height: 76px;
    object-fit: contain;
}

.landing-page__top-actions {
    position: absolute;
    top: 0;
    right: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    z-index: 2;
}

.landing-page__audio-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(247, 241, 231, 0.9);
    font-size: 0.82rem;
    letter-spacing: normal;
    line-height: 1;
}

.landing-page__audio-toggle i {
    font-size: 0.95rem;
}

.landing-page__audio-toggle.is-muted {
    color: rgba(247, 241, 231, 0.68);
}

.landing-page__top-link {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    min-height: var(--landing-top-link-height);
    padding: 1rem 1.55rem var(--landing-top-link-padding-bottom);
    border-radius: 0 0 2rem 2rem;
    color: #111111;
    font-size: clamp(1.28rem, 1.7vw, 1.92rem);
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: min-height 220ms ease, padding-bottom 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.landing-page__top-link span {
    position: relative;
    z-index: 1;
    color: #111111;
}

.landing-page__top-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.34) 48%, transparent 72%);
    transform: translateX(-120%);
    transition: transform 360ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .landing-page__top-link:hover {
        min-height: var(--landing-top-link-hover-height);
        padding-bottom: var(--landing-top-link-hover-padding-bottom);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
        filter: brightness(1.03) saturate(1.04);
    }

    .landing-page__top-link:hover::after {
        transform: translateX(120%);
    }
}

.landing-page__nav {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 1.2rem;
    padding-bottom: 2.8rem;
    width: min(calc(var(--landing-sidebar-width) - 3rem), 18.5rem);
    max-height: calc(100vh - 12rem);
    z-index: 1;
}

.landing-page__nav::before {
    content: "";
    position: absolute;
    left: var(--landing-nav-marker-x);
    top: 0.9rem;
    bottom: 1.95rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
}

.landing-page__nav::after {
    content: "✦";
    position: absolute;
    left: var(--landing-nav-marker-x);
    bottom: 0.05rem;
    transform: translateX(-50%);
    color: rgba(244, 228, 191, 0.9);
    font-size: 2.2rem;
    line-height: 1;
}

.landing-page__nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(244, 239, 229, 0.56);
    font-size: clamp(1.45rem, 2.2vw, 2.55rem);
    font-weight: 700;
    line-height: 1.05;
    text-align: left;
    transition: color 220ms ease, transform 220ms ease;
}

.landing-page__nav-item > span:last-child {
    max-width: 100%;
    white-space: nowrap;
    text-wrap: nowrap;
}

.landing-page__nav-item:hover {
    color: rgba(255, 248, 234, 0.9);
    transform: translateX(4px);
}

.landing-page__nav-item.is-active {
    color: #fbf7ed;
}

.landing-page__nav-gem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    color: rgba(244, 228, 191, 0.9);
    font-size: 1.5rem;
    transform: translateY(0.16rem);
}

.landing-page__stage {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: min(100%, 1420px);
    height: 100%;
    margin: 0 auto;
    padding: 7rem var(--landing-stage-gutter) 8.6rem calc(var(--landing-sidebar-width) + var(--landing-content-gap));
}

.landing-page__stage--home,
.landing-page__stage--centered {
    justify-content: center;
}

.landing-page__stage--home {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 1.3rem;
}

.landing-page__hero,
.landing-page__departments,
.landing-page__bingo,
.landing-page__wordle {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 620ms ease, transform 620ms ease;
}

.landing-page__section.is-active .landing-page__hero,
.landing-page__section.is-active .landing-page__departments,
.landing-page__section.is-active .landing-page__bingo,
.landing-page__section.is-active .landing-page__wordle {
    opacity: 1;
    transform: translateY(0);
}

.landing-page__hero {
    width: min(100%, var(--landing-content-width));
    display: flex;
    justify-content: center;
}

.landing-page__hero-inner {
    width: 100%;
    padding: 2rem 2.2rem 1.6rem;
    text-align: center;
    transform: translateY(1rem);
}

.landing-page__title,
.landing-page__section-title,
.landing-page__roll-title {
    margin: 1.15rem 0 0;
    color: #fcf7ed;
    line-height: 1.08;
    text-wrap: balance;
}

.landing-page__title {
    font-size: clamp(2.55rem, 5vw, 4.85rem);
}

.landing-page__section-title,
.landing-page__roll-title {
    font-size: clamp(2.1rem, 4.5vw, 4rem);
}

.landing-page__text,
.landing-page__roll-status {
    margin: 1.15rem 0 0;
    color: rgba(242, 238, 229, 0.8);
    font-size: 1rem;
    line-height: 1.9;
}

.landing-page__hero-die-trigger {
    display: inline-flex;
    justify-content: center;
    margin-top: 1.85rem;
    padding: 0;
    border: none;
    background: transparent;
    transition: transform 240ms ease, filter 240ms ease;
}

.landing-page__hero-die-trigger:hover {
    transform: translateY(-4px);
    filter: brightness(1.04);
}

.landing-page__hero-mobile-cta {
    margin-top: 0.9rem;
}

.landing-d20-wrap {
    position: relative;
    width: 19.9rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    perspective: 1500px;
}

.landing-d20-wrap::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 999px;
    border: 1px solid rgba(176, 210, 219, 0.18);
    box-shadow:
        inset 0 0 26px rgba(18, 66, 74, 0.22),
        0 0 24px rgba(34, 83, 96, 0.08);
    animation: landing-rune-spin 18s linear infinite;
}

.landing-d20 {
    position: relative;
    width: 12.35rem;
    height: 12.35rem;
    overflow: visible;
    filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.44));
    will-change: transform, filter;
}

.landing-d20::before,
.landing-d20::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    pointer-events: none;
}

.landing-d20::before {
    inset: 18%;
    background:
        radial-gradient(circle at 35% 35%, rgba(74, 151, 158, 0.26), rgba(12, 24, 31, 0.12) 48%, rgba(7, 18, 24, 0) 74%),
        radial-gradient(circle at 62% 68%, rgba(112, 157, 182, 0.18), rgba(7, 18, 24, 0) 72%);
    filter: blur(28px);
    opacity: 0.72;
}

.landing-d20::after {
    inset: 10%;
    border: 1px solid rgba(189, 220, 230, 0.14);
    background:
        radial-gradient(circle at 35% 32%, rgba(239, 247, 250, 0.1), transparent 42%),
        radial-gradient(circle at 50% 50%, rgba(28, 88, 102, 0.14), transparent 66%),
        radial-gradient(circle at 60% 68%, rgba(79, 136, 156, 0.1), transparent 72%);
    box-shadow:
        inset 0 0 18px rgba(255, 247, 226, 0.05),
        0 0 26px rgba(18, 42, 56, 0.16);
    opacity: 0.88;
}

.landing-d20__canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
}

.landing-page__countdown {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(100%, 29.4rem);
    margin-inline: auto;
    margin-top: 1.45rem;
    text-align: center;
    padding: 0.95rem 1.2rem;
}

.landing-page__countdown-kicker,
.landing-page__countdown-meta,
.landing-page__countdown-value {
    display: block;
}

.landing-page__countdown-kicker {
    font-size: 0.82rem;
    margin-bottom: 0.24rem;
}

.landing-page__countdown-value {
    font-size: clamp(1.2rem, 2.4vw, 1.78rem);
    line-height: 1.2;
}

.landing-page__countdown-meta {
    margin-top: 0.3rem;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(47, 27, 25, 0.74);
}

.landing-page__departments {
    display: grid;
    gap: 1.35rem;
    width: min(100%, var(--landing-content-width));
    margin-inline: auto;
    padding: 1.65rem;
}

.landing-page__section--departments .landing-page__departments {
    max-height: calc(100vh - 13.5rem);
    overflow-y: auto;
}

.landing-page__departments-mobile-cta {
    display: none;
}

.landing-page__copy {
    padding: 0 0 0.35rem;
}

.landing-page__department-list {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 1fr;
}

.landing-page__department-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.2rem 1.25rem 1.2rem 1rem;
    opacity: 0;
    transform: translateX(-34px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.landing-page__section.is-active .landing-page__department-card {
    opacity: 1;
    transform: translateX(0);
}

.landing-page__section.is-active .landing-page__department-card:nth-child(1) { transition-delay: 140ms; }
.landing-page__section.is-active .landing-page__department-card:nth-child(2) { transition-delay: 230ms; }
.landing-page__section.is-active .landing-page__department-card:nth-child(3) { transition-delay: 320ms; }
.landing-page__section.is-active .landing-page__department-card:nth-child(4) { transition-delay: 410ms; }

.landing-page__department-rune {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(244, 228, 191, 0.08);
    color: rgba(244, 228, 191, 0.92);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
}

.landing-page__department-name {
    margin: 0;
    color: #fbf7ed;
    font-size: 1.35rem;
}

.landing-page__department-description {
    margin: 0.45rem 0 0;
    color: rgba(243, 239, 229, 0.76);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-page__bingo {
    width: min(100%, var(--landing-content-width));
    padding: 2rem;
    text-align: center;
}

.landing-page__wordle {
    width: min(100%, var(--landing-content-width));
    padding: 2rem;
    text-align: center;
}

.landing-page__bingo-content {
    max-height: min(64vh, 42rem);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.landing-page__bingo-content,
.landing-page__section--departments .landing-page__departments {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.landing-page__bingo-results.is-hidden,
#landing-bingo-questions-pane.is-hidden {
    display: none;
}

.landing-page__bingo-content::-webkit-scrollbar,
.landing-page__section--departments .landing-page__departments::-webkit-scrollbar {
    width: 8px;
}

.landing-page__bingo-content::-webkit-scrollbar-thumb,
.landing-page__section--departments .landing-page__departments::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.landing-page__bingo-kicker {
    margin-bottom: 1.2rem;
}

.landing-page__bingo-placeholder {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0;
}

.landing-page__bingo-placeholder span {
    min-height: 6rem;
    border-radius: 1.2rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.landing-page__bingo-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.7rem;
}

.landing-page__bingo-actions--stack {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.landing-page__bingo-actions--stack .app-inline-link {
    min-width: 12.5rem;
    min-height: 2.35rem;
    justify-content: center;
}

.landing-page__bingo-actions--stack .app-action-button {
    min-width: 12.5rem;
    min-height: 2.35rem;
    justify-content: center;
    padding: 0.45rem 0.85rem;
}

#landing-bingo-submit:disabled {
    opacity: 0.5;
    filter: saturate(0.78);
    cursor: not-allowed;
    transform: none;
}

.landing-page__bingo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.landing-page__bingo-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.95rem;
}

#landing-bingo-questions-pane .landing-page__bingo-actions {
    margin-top: 0.95rem;
}

.landing-page__bingo-page-button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(247, 241, 231, 0.9);
    border-radius: 999px;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.83rem;
}

.landing-page__bingo-page-button.is-active {
    border-color: rgba(214, 186, 121, 0.85);
    background: rgba(214, 186, 121, 0.16);
    color: #fff8ed;
}

.landing-page__bingo-card {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(247, 241, 231, 0.92);
    padding: 0.95rem 0.9rem;
    line-height: 1.55;
    font-size: 0.95rem;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.landing-page__bingo-card.is-selected {
    border-color: rgba(214, 186, 121, 0.8);
    background: rgba(214, 186, 121, 0.12);
    color: #fff8ed;
}

.landing-page__bingo-card:disabled {
    opacity: 0.72;
}

.landing-page__bingo-results {
    margin-top: 1.35rem;
    text-align: left;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
}

.landing-page__bingo-graphic {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.55rem;
}

.landing-page__bingo-graphic-row {
    display: grid;
    grid-template-columns: 6.2rem 1fr;
    gap: 0.55rem;
    align-items: center;
}

.landing-page__bingo-graphic-label {
    color: rgba(247, 241, 231, 0.84);
    font-size: 0.82rem;
}

.landing-page__bingo-graphic-bar {
    position: relative;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.landing-page__bingo-graphic-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(214, 186, 121, 0.88), rgba(244, 228, 191, 0.82));
}

.landing-page__bingo-graphic-value {
    color: rgba(247, 241, 231, 0.88);
    font-size: 0.82rem;
}

.landing-page__bingo-results-title {
    margin: 0;
    color: #fbf7ed;
    font-size: 1.2rem;
}

.landing-page__bingo-results-list {
    margin: 1.2rem 0 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.landing-page__bingo-results-list li {
    color: rgba(247, 241, 231, 0.85);
    line-height: 1.62;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    align-items: center; /* Center on mobile */
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-page__bingo-results-list li:first-child {
    padding-top: 0;
}

.landing-page__bingo-results-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.landing-page__bingo-dept-img-container {
    width: 100%;
    max-width: 320px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    background: transparent;
}

.landing-page__bingo-dept-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0.5rem;
}

.landing-page__bingo-dept-text {
    flex: 1;
    width: 100%;
    text-align: left;
}

@media (min-width: 821px) {
    .landing-page__bingo-results-list li {
        flex-direction: row;
        gap: 1.85rem;
        align-items: flex-start;
    }

    .landing-page__bingo-dept-img-container {
        flex: 0 0 280px; /* Made the box larger */
        max-width: none;
    }
}

.landing-page__bingo-department {
    color: #f4e4bf;
}

/* Department card overlay (uses .landing-page__roll-overlay for open/close) */
.landing-page__department-card {
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .landing-page__department-card:hover {
        border-color: rgba(214, 186, 121, 0.4);
        background: rgba(255, 255, 255, 0.08);
    }
}

.landing-page__dept-stage {
    width: min(100% - 2rem, 32rem);
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 85vh;
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 16, 22, 0.92);
    backdrop-filter: blur(14px);
    gap: 0;
}

@media (min-width: 992px) {
    .landing-page__dept-stage {
        width: min(100% - 3rem, 40rem);
    }
}

.landing-page__dept-stage::-webkit-scrollbar {
    width: 6px;
}

.landing-page__dept-stage::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.landing-page__dept-image-zone {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    overflow: hidden;
    border-radius: 1.4rem 1.4rem 0 0;
    padding: 1rem 1rem 0;
    box-sizing: border-box;
}

.landing-page__dept-image-zone:not(.has-image) {
    display: none;
}

.landing-page__dept-image {
    display: block;
    max-width: 100%;
    max-height: 58vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

.landing-page__dept-body {
    padding: 1.6rem 1.75rem 1rem;
    text-align: center;
}

.landing-page__dept-body .app-section-kicker {
    margin: 0 0 0.7rem;
    font-size: 1.18rem;
}

.landing-page__dept-desc {
    margin-top: 0;
    font-size: 0.97rem;
    line-height: 1.82;
    color: rgba(242, 238, 229, 0.82);
    white-space: pre-line;
}

.landing-page__dept-close {
    margin-top: 0.5rem;
    margin-bottom: 1.4rem;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}



.landing-page__roll-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    opacity: 0;
    pointer-events: none;
    transition: opacity 360ms ease;
}

.landing-page__roll-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.landing-page__roll-scrim {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 10, 0.78);
    backdrop-filter: blur(10px);
}

.landing-page__roll-stage {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 1.2rem;
    width: min(100% - 2rem, 27.5rem);
    transform: translate(-50%, -48%) scale(0.96);
    transition: transform 360ms ease, opacity 360ms ease;
    opacity: 0;
}

.landing-page__roll-overlay.is-open .landing-page__roll-stage {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.landing-page__roll-die-zone {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.landing-page__roll-die-wrap {
    width: 25.5rem;
}

.landing-page__roll-die {
    width: 16.2rem;
    height: 16.2rem;
}

.landing-page__roll-die.is-rolling {
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42)) brightness(1.03);
}

.landing-page__roll-die.is-finished {
    transform: scale(1.03);
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.42)) brightness(1.02);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
}

.landing-page__roll-cta,
.landing-page__roll-cta:link,
.landing-page__roll-cta:visited,
.landing-page__roll-cta:hover,
.landing-page__roll-cta:focus-visible,
.landing-page__roll-cta:active {
    margin-top: 0.95rem;
    color: #111111 !important;
    -webkit-text-fill-color: #111111;
    text-shadow: none;
    font-size: 0.84rem;
    letter-spacing: 0.22em;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease;
}

.landing-page__roll-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.landing-page__roll-cta:hover {
    transform: translateY(0);
    filter: none;
}

.landing-page__roll-more {
    margin-top: 0.35rem;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(247, 241, 231, 0.82);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease, color 220ms ease;
}

.landing-page__roll-more.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.landing-page__roll-more:hover {
    color: rgba(255, 255, 255, 0.98);
}

.landing-page__footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

.auth-page__footer--fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.auth-page__footer--fixed .landing-page__footer {
    position: static;
}

.landing-page__footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: 0.95rem 1.6rem;
}

.landing-page__footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.landing-page__footer-links .app-inline-link {
    min-height: 32px;
    padding: 0.32rem 0.68rem;
    gap: 0.34rem;
}

@keyframes landing-rune-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes landing-die-spin {
    0% { transform: rotateX(-18deg) rotateY(0deg); }
    25% { transform: rotateX(10deg) rotateY(90deg); }
    50% { transform: rotateX(-8deg) rotateY(180deg); }
    75% { transform: rotateX(6deg) rotateY(270deg); }
    100% { transform: rotateX(-18deg) rotateY(360deg); }
}

@keyframes landing-roll-spin {
    0% { transform: rotateX(-28deg) rotateY(0deg) rotateZ(0deg) scale(0.96); }
    25% { transform: rotateX(220deg) rotateY(180deg) rotateZ(70deg) scale(1); }
    50% { transform: rotateX(420deg) rotateY(360deg) rotateZ(150deg) scale(1.04); }
    75% { transform: rotateX(650deg) rotateY(560deg) rotateZ(220deg) scale(1); }
    100% { transform: rotateX(860deg) rotateY(720deg) rotateZ(300deg) scale(0.97); }
}

@media (max-width: 1180px) {
    .landing-page {
        --landing-sidebar-width: 15rem;
        --landing-stage-gutter: 2.75rem;
        --landing-content-gap: 1.9rem;
        --landing-content-width: 50rem;
    }

    .landing-page__chrome::before {
        width: var(--landing-sidebar-width);
    }
}

@media (max-width: 860px) {
    .landing-page {
        --landing-sidebar-width: 14rem;
        --landing-stage-gutter: 1.4rem;
        --landing-content-gap: 1.4rem;
        --landing-content-width: 100%;
        --landing-nav-marker-x: 1.55rem;
        --landing-top-link-height: 4.8rem;
        --landing-top-link-hover-height: 5.15rem;
        --landing-top-link-padding-bottom: 1rem;
        --landing-top-link-hover-padding-bottom: 1.16rem;
    }

    .landing-page__brand {
        top: 0.9rem;
        left: 1rem;
    }

    .landing-page__brand img {
        height: 62px;
    }

    .landing-page__top-actions {
        right: 1rem;
        gap: 0.7rem;
    }

    .landing-page__top-link {
        min-width: 8.8rem;
        padding: 0.85rem 1.1rem var(--landing-top-link-padding-bottom);
        font-size: 1.02rem;
    }

    .landing-page__nav {
        left: 1rem;
        gap: 0.95rem;
    }

    .landing-page__nav-item {
        font-size: 1.18rem;
    }

    .landing-page__nav-gem {
        font-size: 1.08rem;
    }

    .landing-page__countdown {
        width: min(100%, 31rem);
    }

    .landing-page__footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-block: 0.85rem;
    }

    .landing-page__footer-links {
        justify-content: flex-start;
    }

    .landing-page {
        --landing-top-link-hover-height: var(--landing-top-link-height);
        --landing-top-link-hover-padding-bottom: var(--landing-top-link-padding-bottom);
    }

    .landing-page__top-link {
        transition: none !important;
    }

    .landing-page__top-link:hover {
        min-height: var(--landing-top-link-height) !important;
        padding-bottom: var(--landing-top-link-padding-bottom) !important;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22) !important;
        filter: none !important;
    }

    .landing-page__top-link:hover::after {
        transform: translateX(-120%);
    }

    .landing-page__nav-item:hover {
        transform: none;
    }
}

@media (max-width: 820px) {
    .landing-page__mobile-top-shadow {
        position: sticky;
        top: 0;
        display: block;
        height: 9.5rem;
        margin-bottom: -9.5rem;
        z-index: 3;
        pointer-events: none;
        opacity: var(--landing-mobile-top-shadow, 0);
        background: linear-gradient(180deg, rgba(3, 5, 10, 0.98) 0%, rgba(3, 5, 10, 0.9) 34%, rgba(3, 5, 10, 0.56) 68%, rgba(3, 5, 10, 0) 100%);
        transition: opacity 180ms ease;
    }

    .landing-page__chrome::before {
        display: none;
    }

    .landing-page__nav {
        top: 7.15rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-height: none;
        flex-direction: row;
        justify-content: center;
        gap: 0.6rem;
        transform: none;
        padding-left: 0;
        padding-right: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scroll-snap-type: x proximity;
        scroll-padding-left: 0.5rem;
        scroll-padding-right: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .landing-page__nav.is-overflowing {
        justify-content: flex-start;
    }

    .landing-page__nav::-webkit-scrollbar {
        display: none;
    }

    .landing-page__nav::before,
    .landing-page__nav::after,
    .landing-page__nav-gem {
        display: none;
    }

    .landing-page__nav-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        touch-action: manipulation;
        padding: 0.65rem 0.95rem;
        border-radius: 999px;
        background: rgba(8, 10, 15, 0.46);
        border: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .landing-page__stage {
        min-height: 100vh;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 10.45rem 1rem calc(9.8rem + env(safe-area-inset-bottom, 0px));
    }

    .landing-page__hero {
        width: 100%;
    }

    .landing-page__hero-inner {
        width: 100%;
        padding: 1.6rem 1.1rem 1.5rem;
        transform: none;
    }

    .landing-page__section {
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-padding-top: 9.75rem;
        scroll-padding-bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
    }

    .landing-page__section::-webkit-scrollbar {
        display: none;
    }

    .landing-page__stage--home {
        display: grid;
        width: 100%;
        gap: 1rem;
        grid-template-rows: minmax(0, 1fr) auto;
        justify-items: center;
        align-content: stretch;
        align-items: center;
    }

    .landing-page__stage--home .landing-page__hero {
        align-self: center;
    }

    .landing-page__section--departments .landing-page__stage {
        display: grid;
        gap: 1.15rem;
        justify-items: center;
        align-content: start;
        padding-top: 11.25rem;
        padding-bottom: calc(13rem + env(safe-area-inset-bottom, 0px));
    }

    .landing-page__section--bingo .landing-page__stage--centered {
        display: grid;
        gap: 0.65rem;
        justify-items: center;
        align-content: start;
        padding-top: 10.45rem;
        padding-bottom: calc(9.2rem + env(safe-area-inset-bottom, 0px));
    }

    .landing-page__stage--centered {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .app-mobile-only {
        display: inline-flex;
    }

    .landing-page__hero-mobile-cta {
        display: inline-flex;
        align-self: end;
        margin-top: 0;
        margin-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px));
    }

    .landing-d20-wrap {
        width: 14.2rem;
    }

    .landing-d20 {
        width: 9.45rem;
        height: 9.45rem;
    }

    .landing-page__roll-die {
        width: 11.35rem;
        height: 11.35rem;
    }

    .landing-page__countdown {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: min(100%, 30rem);
        margin: 0 auto 0;
        padding: 1.05rem 1.25rem;
    }

    .landing-page__bingo-placeholder {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-page__bingo-grid {
        grid-template-columns: 1fr;
    }

    .landing-page__bingo-content {
        max-height: min(62vh, 34rem);
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        scrollbar-width: thin;
    }

    .landing-page__bingo-content::-webkit-scrollbar {
        width: 4px;
    }

    .landing-page__bingo-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.28);
        border-radius: 999px;
    }

    .landing-page__bingo-graphic-row {
        grid-template-columns: 4.4rem 1fr;
    }

    .landing-page__departments,
    .landing-page__bingo {
        width: 100%;
    }

    .landing-page__departments {
        padding-bottom: 1.25rem;
    }

    .landing-page__dept-stage {
        width: calc(100% - 1rem);
        max-height: calc(100vh - 14rem - env(safe-area-inset-bottom, 0px));
    }

    .landing-page__dept-image {
        max-height: 22vh;
    }

    .landing-page__dept-body {
        padding: 1.1rem 1rem 0.8rem;
    }

    .landing-page__dept-close {
        margin-bottom: 0.9rem;
    }

    .landing-page__section--departments .landing-page__departments {
        max-height: none;
        overflow: visible;
    }

    .landing-page__departments-mobile-cta {
        display: inline-flex;
        align-self: center;
        margin-top: 0.55rem;
        position: relative;
        z-index: 2;
    }

    .landing-page__bingo-mobile-cta {
        display: inline-flex;
        margin: 0.55rem auto calc(0.35rem + env(safe-area-inset-bottom, 0px));
    }

    .landing-page__roll-stage {
        width: calc(100% - 1rem);
    }

    .landing-page__roll-die-wrap {
        width: 17rem;
    }

    .landing-page__footer-inner {
        width: 100%;
        align-items: stretch;
    }

    .landing-page__footer-inner .app-section-kicker {
        width: 100%;
        margin: 0 auto 0.2rem;
        text-align: center;
    }

    .landing-page__footer-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.55rem;
        justify-content: stretch;
    }

    .landing-page__footer-links .app-inline-link {
        width: 100%;
        min-width: 0;
        min-height: 2rem;
        justify-content: center;
        padding: 0.26rem 0.34rem;
        gap: 0;
        font-size: 1rem;
    }

    .landing-page__footer-links > a span {
        display: none;
    }

    .landing-page__footer-links > a {
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .landing-page {
        --landing-top-link-height: 3.85rem;
        --landing-top-link-hover-height: 3.85rem;
        --landing-top-link-padding-bottom: 0.9rem;
        --landing-top-link-hover-padding-bottom: 0.9rem;
    }

    .landing-page__top-actions {
        top: 0.75rem;
        right: 0.7rem;
        gap: 0.5rem;
    }

    .landing-page__top-link {
        min-width: 6.4rem;
        min-height: 3.85rem;
        border-radius: 1.2rem;
        padding: 0.75rem 0.85rem 0.9rem;
        font-size: 0.94rem;
    }

    .landing-page__brand {
        left: 0.75rem;
    }

    .landing-page__brand img {
        height: 54px;
    }

    .landing-page__audio-toggle {
        min-width: 2.15rem;
        min-height: 2.15rem;
        padding-inline: 0.55rem;
    }

    .landing-page__title {
        font-size: 2.22rem;
    }

    .landing-page__section-title,
    .landing-page__roll-title {
        font-size: 1.95rem;
    }

    .landing-page__text,
    .landing-page__department-description,
    .landing-page__roll-status {
        font-size: 0.94rem;
        line-height: 1.72;
    }

    .landing-page__roll-cta {
        color: #111111;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-page *,
    .landing-page *::before,
    .landing-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
