/* Fable Fiesta Home Landing Page — AI Dungeon Master & Solo DnD Adventures */

:root {
    --ff-bg-deep: #0e161b;
    --ff-bg-panel: #152128;
    --ff-bg-card: #18252d;
    --ff-bg-card-hover: #1d2d37;
    --ff-gold: #e7bf8f;
    --ff-gold-bright: #f6d77a;
    --ff-gold-muted: rgba(231, 191, 143, 0.24);
    --ff-gold-line: rgba(231, 191, 143, 0.34);
    --ff-ink: #f4efe6;
    --ff-ink-soft: #cfd8dd;
    --ff-ink-muted: #98aab5;
    --ff-teal-glow: rgba(76, 179, 209, 0.16);
}

/* Override default site-jumbo for the full cinematic home hero */
.jumbo.home-hero-jumbo {
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 0;
    background: radial-gradient(circle at 74% 38%, rgba(231, 191, 143, 0.13), transparent 46%),
                radial-gradient(circle at 22% 72%, rgba(56, 134, 165, 0.16), transparent 52%),
                linear-gradient(180deg, #0d151a 0%, #142028 65%, #1e2c34 100%);
    border-bottom: 1px solid var(--ff-gold-muted);
    overflow: hidden;
}

.jumbo.home-hero-jumbo .site-hero {
    display: block;
    min-height: 0;
}

.jumbo.home-hero-jumbo .site-hero::after {
    content: none;
}

.jumbo.home-hero-jumbo .site-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-hero-bg-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.16;
    filter: saturate(0.85) contrast(1.05);
    mask-image: radial-gradient(ellipse at 70% 40%, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.25) 75%, transparent 100%);
}

.home-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.jumbo.home-hero-jumbo .site-hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(2.5rem, 5vw, 4.75rem) 1rem clamp(2.75rem, 5vw, 4.5rem);
    align-items: stretch;
    justify-content: center;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 3.75rem);
    align-items: center;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--ff-gold-line);
    background: rgba(231, 191, 143, 0.09);
    color: var(--ff-gold-bright);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.home-hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.85rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ff-ink);
    margin: 0 0 1.25rem;
}

.home-hero-title .home-gold-gradient {
    background: linear-gradient(135deg, #f9e4ad 0%, #e7bf8f 52%, #d49b4b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero-subtitle {
    font-size: clamp(1.05rem, 1.45vw, 1.22rem);
    line-height: 1.65;
    color: var(--ff-ink-soft);
    max-width: 38rem;
    margin: 0 0 1.85rem;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.home-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 0.65rem;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #f6d77a, #dca755);
    color: #1c1509;
    border: 1px solid #f9e4ad;
    box-shadow: 0 8px 26px rgba(231, 191, 143, 0.28);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-btn-primary:hover,
.home-btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(246, 215, 122, 0.42);
    filter: brightness(1.04);
    color: #1c1509;
}

.home-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.88rem 1.55rem;
    border-radius: 0.65rem;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(14, 22, 27, 0.68);
    color: var(--ff-gold);
    border: 1px solid var(--ff-gold-line);
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.home-btn-secondary:hover,
.home-btn-secondary:focus-visible {
    transform: translateY(-2px);
    background: rgba(231, 191, 143, 0.14);
    border-color: var(--ff-gold-bright);
    color: #fff6e5;
}

.home-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    font-size: 0.88rem;
    color: var(--ff-ink-muted);
}

.home-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.home-trust-strip i {
    color: var(--ff-gold);
}

/* Full-viewport transparent Three.js 3D dice overlay */
.home-dice-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    pointer-events: none;
    overflow: hidden;
}

/* Right hero column: live framed tabletop preview + full-window 3D dice trigger + Tod DM vignette */
.home-hero-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jumbo.home-hero-jumbo .home-live-preview-card {
    border-radius: 1rem;
    border: 1px solid var(--ff-gold-line);
    background: #0d151a;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(231, 191, 143, 0.08);
}

.jumbo.home-hero-jumbo .home-demo-viewport {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0b1116;
}

.jumbo.home-hero-jumbo .home-demo-camera {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    transform: scale(1.36) translate(-4%, -10%);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.jumbo.home-hero-jumbo .home-demo-map-img {
    position: static !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    opacity: 1 !important;
    filter: none !important;
    margin: 0 !important;
}

.home-demo-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.home-demo-sneak-path {
    fill: none;
    stroke: #6ce5ff;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-dasharray: 2.2 1.8;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: drop-shadow(0 0 3px rgba(108, 229, 255, 0.85));
}

.home-demo-sneak-path.is-active {
    opacity: 0.95;
}

.home-demo-strike-bolt {
    stroke: #ffe07d;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-dasharray: 25;
    stroke-dashoffset: 25;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(255, 214, 92, 0.95));
}

.home-demo-strike-bolt.is-firing {
    animation: ff-demo-bolt 0.45s ease-out forwards;
}

@keyframes ff-demo-bolt {
    0% { opacity: 1; stroke-dashoffset: 25; }
    65% { opacity: 1; stroke-dashoffset: 0; }
    100% { opacity: 0; stroke-dashoffset: -12; }
}

/* Tabletop Tokens inside Zoomed Demo */
.home-demo-token {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    z-index: 4;
    transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1), top 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, transform 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.home-demo-token--hero {
    border: 2.5px solid #9df0b3;
    background: #172721;
    box-shadow: 0 0 0 2px rgba(157, 240, 179, 0.25), 0 4px 14px rgba(0, 0, 0, 0.75);
}

.jumbo.home-hero-jumbo .home-demo-token-img {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    filter: none !important;
    margin: 0 !important;
}

.home-demo-hidden-badge {
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.05rem 0.36rem;
    border-radius: 999px;
    background: #0d161b;
    border: 1px solid #6ce5ff;
    color: #9bf1ff;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-demo-token--enemy {
    border: 2.5px solid #ef7068;
    background: radial-gradient(circle at 35% 30%, #a5342d, #5c1915);
    color: #fff2ef;
}

.home-demo-token--enemy.is-defeated {
    opacity: 0.58;
    background: #3d1d1c;
    border-color: rgba(239, 112, 104, 0.55);
    transform: translate(-50%, -50%) scale(0.92);
}

.home-demo-token-skull {
    display: none;
    font-size: 0.85rem;
    color: #ffb8b2;
}

.home-demo-token--enemy.is-defeated .home-demo-token-code {
    display: none;
}

.home-demo-token--enemy.is-defeated .home-demo-token-skull {
    display: inline-flex;
}

.home-demo-alert-badge {
    display: none;
    position: absolute;
    top: -11px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f6d77a;
    color: #201507;
    font-size: 0.65rem;
    font-weight: 900;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(246, 215, 122, 0.9);
}

.home-demo-token--enemy.is-alert {
    box-shadow: 0 0 0 4px rgba(239, 112, 104, 0.4), 0 4px 14px rgba(0, 0, 0, 0.8);
}

.home-demo-token--enemy.is-alert .home-demo-alert-badge {
    display: inline-flex;
}

.home-demo-token--ally {
    border: 2.5px solid #6ec6e8;
    background: radial-gradient(circle at 35% 30%, #2b6982, #153746);
    color: #e9f9ff;
}

.home-demo-damage-pop {
    position: absolute;
    transform: translate(-50%, 0);
    padding: 0.14rem 0.45rem;
    border-radius: 0.35rem;
    background: rgba(164, 34, 28, 0.94);
    border: 1px solid #ffd57e;
    color: #fff8e6;
    font-size: 0.68rem;
    font-weight: 800;
    z-index: 6;
    opacity: 0;
    pointer-events: none;
}

.home-demo-damage-pop.is-visible {
    animation: ff-demo-damage 1.3s ease-out forwards;
}

@keyframes ff-demo-damage {
    0% { opacity: 0; transform: translate(-50%, 6px) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -6px) scale(1.08); }
    75% { opacity: 1; transform: translate(-50%, -14px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -20px) scale(0.95); }
}

/* Crisp HUD Overlays on the Zoomed Demo */
.home-demo-combat-pill {
    position: absolute;
    top: 0.65rem;
    left: 0.7rem;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: rgba(126, 26, 22, 0.92);
    border: 1px solid rgba(255, 168, 158, 0.65);
    color: #ffe9e6;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.home-demo-roll-card {
    position: absolute;
    top: 0.65rem;
    right: 0.7rem;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.65rem;
    border-radius: 0.5rem;
    background: rgba(11, 18, 22, 0.9);
    border: 1px solid var(--ff-gold-line);
    backdrop-filter: blur(6px);
    font-size: 0.74rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.home-demo-roll-label {
    color: var(--ff-ink-muted);
    font-weight: 600;
}

.home-demo-roll-detail {
    color: var(--ff-ink);
    font-weight: 700;
}

.home-demo-roll-result {
    padding: 0.08rem 0.42rem;
    border-radius: 0.3rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: rgba(58, 168, 114, 0.25);
    color: #9bf0c0;
    border: 1px solid rgba(93, 214, 152, 0.55);
}

.home-demo-roll-card[data-tone="crit"] .home-demo-roll-result {
    background: rgba(246, 215, 122, 0.24);
    color: #ffefc0;
    border-color: rgba(246, 215, 122, 0.65);
}

.home-demo-prompt-bar {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.6rem;
    background: rgba(10, 17, 22, 0.9);
    border: 1px solid rgba(231, 191, 143, 0.35);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
    text-align: left;
}

.home-demo-you-tag {
    flex-shrink: 0;
    padding: 0.14rem 0.45rem;
    border-radius: 0.35rem;
    background: linear-gradient(135deg, #f6d77a, #dca755);
    color: #1c1509;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-demo-prompt-text {
    font-size: 0.84rem;
    line-height: 1.35;
    color: var(--ff-ink);
    font-weight: 500;
}

.home-demo-progress-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(231, 191, 143, 0.14);
    z-index: 8;
}

.home-demo-progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e7bf8f, #f6d77a);
    transform-origin: left center;
    transform: scaleX(0);
}

.home-demo-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.home-demo-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(231, 191, 143, 0.25);
    transition: width 0.25s ease, background-color 0.25s ease;
}

.home-demo-dot.is-done {
    background: rgba(231, 191, 143, 0.6);
}

.home-demo-dot.is-active {
    width: 20px;
    background: var(--ff-gold-bright);
}

.home-dice-controls {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.home-mod-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.22rem 0.4rem;
    border-radius: 0.5rem;
    background: rgba(14, 22, 27, 0.85);
    border: 1px solid rgba(231, 191, 143, 0.26);
}

.home-mod-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ff-ink-muted);
    padding: 0 0.25rem;
}

.home-mod-btn {
    width: 24px;
    height: 24px;
    border-radius: 0.35rem;
    border: 1px solid rgba(231, 191, 143, 0.25);
    background: rgba(231, 191, 143, 0.1);
    color: var(--ff-gold-bright);
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.home-mod-btn:hover:not(:disabled) {
    background: rgba(246, 215, 122, 0.24);
    border-color: var(--ff-gold-bright);
}

.home-mod-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.home-mod-value {
    min-width: 1.9rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ff-ink);
}

.home-d20-roll-chip.is-naughty {
    background: rgba(217, 102, 168, 0.22);
    border-color: rgba(244, 143, 199, 0.7);
    color: #ffd1eb;
}

@media (max-width: 575.98px) {
    .home-demo-roll-label {
        display: none;
    }

    .home-demo-prompt-text {
        font-size: 0.78rem;
    }

    .home-live-preview-bar {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.home-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #9bf0c0;
    font-weight: 600;
    font-size: 0.74rem;
}

.home-live-dot i {
    font-size: 0.48rem;
}

.home-live-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.95rem;
    background: linear-gradient(180deg, #111c23, #0e161c);
    border-top: 1px solid rgba(231, 191, 143, 0.2);
}

.home-roll-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 0.5rem;
    border: 1px solid var(--ff-gold-line);
    background: rgba(231, 191, 143, 0.14);
    color: var(--ff-gold-bright);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
}

.home-roll-trigger:hover:not(:disabled),
.home-roll-trigger:focus-visible {
    background: rgba(246, 215, 122, 0.25);
    border-color: var(--ff-gold-bright);
    transform: translateY(-1px);
}

.home-roll-trigger:disabled {
    opacity: 0.65;
    cursor: wait;
}

.home-d20-roll-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 0.45rem;
    background: rgba(58, 168, 114, 0.2);
    border: 1px solid rgba(93, 214, 152, 0.45);
    color: #9bf0c0;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
}

.home-d20-roll-chip.is-crit {
    background: rgba(246, 215, 122, 0.22);
    border-color: rgba(246, 215, 122, 0.7);
    color: #ffefc0;
}

.home-d20-roll-chip.is-fumble {
    background: rgba(229, 115, 107, 0.2);
    border-color: rgba(229, 115, 107, 0.6);
    color: #ffb9b3;
}

.jumbo.home-hero-jumbo .home-tod-vignette {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    padding: 1rem 1.15rem;
    border-radius: 0.9rem;
    background: rgba(14, 22, 27, 0.9);
    border: 1px solid var(--ff-gold-line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    overflow: hidden;
    text-align: left;
}

.jumbo.home-hero-jumbo .home-tod-avatar {
    position: static !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px;
    max-width: 56px !important;
    min-height: 56px;
    max-height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--ff-gold);
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    filter: none !important;
    opacity: 1 !important;
}

.home-tod-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.home-tod-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--ff-gold-bright);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-tod-tag {
    font-size: 0.72rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: rgba(231, 191, 143, 0.14);
    color: var(--ff-gold);
}

.home-tod-quote {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ff-ink-soft);
}

/* Section 2: Proof Stats Strip */
.home-stats-band {
    background: #121c22;
    border-bottom: 1px solid rgba(231, 191, 143, 0.16);
    padding: 2rem 0;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    text-align: center;
}

.home-stats-grid > div {
    position: relative;
    padding: 0.25rem 0.5rem;
}

.home-stats-grid > div:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15%;
    bottom: 15%;
    right: -0.625rem;
    width: 1px;
    background: rgba(231, 191, 143, 0.16);
}

.home-stat-value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--ff-gold-bright);
    line-height: 1.1;
}

.home-stat-label {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ff-ink-muted);
}

/* Shared Section Rhythm — refined editorial Title Case headings (overrides global uppercase h2) */
.home-section {
    padding: clamp(3.25rem, 6vw, 5.25rem) 0;
}

.home-section h2,
.home-cta-banner h2 {
    text-transform: none !important;
    letter-spacing: -0.02em !important;
    line-height: 1.16;
}

.home-section--alt {
    background: linear-gradient(180deg, rgba(14, 22, 27, 0.72), rgba(20, 31, 38, 0.5));
    border-top: 1px solid rgba(231, 191, 143, 0.12);
    border-bottom: 1px solid rgba(231, 191, 143, 0.12);
}

.home-section-head {
    max-width: 48rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.home-section-head h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: var(--ff-ink);
    margin: 0 0 0.75rem;
}

.home-section-head p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ff-ink-soft);
    margin: 0;
}

/* Section 3: Play Solo DnD Campaigns Gallery Container */
.home-campaigns-shell {
    background: rgba(14, 22, 27, 0.56);
    border: 1px solid var(--ff-gold-muted);
    border-radius: 1.1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.home-campaigns-shell .character-card-title {
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--ff-ink);
    margin-bottom: 0.55rem;
}

.home-campaigns-shell .character-card {
    border-color: rgba(231, 191, 143, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-campaigns-shell .character-card:hover {
    transform: translateY(-3px);
    border-color: var(--ff-gold);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}

/* Section 4: Live Tabletop Showcase */
.home-tabletop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: center;
}

.home-showcase-frame {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--ff-gold-line);
    background: #0c1216;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

.home-showcase-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #10191f;
    border-bottom: 1px solid rgba(231, 191, 143, 0.16);
    font-size: 0.8rem;
    color: var(--ff-ink-muted);
}

.home-chrome-dots {
    display: inline-flex;
    gap: 0.4rem;
}

.home-chrome-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(231, 191, 143, 0.35);
}

.home-showcase-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.home-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 1.5rem 0 1.75rem;
}

.home-feature-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.95rem 1.05rem;
    border-radius: 0.75rem;
    background: rgba(21, 33, 40, 0.78);
    border: 1px solid rgba(231, 191, 143, 0.16);
}

.home-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.65rem;
    background: rgba(231, 191, 143, 0.12);
    border: 1px solid var(--ff-gold-muted);
    color: var(--ff-gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.home-feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ff-ink);
    margin: 0 0 0.25rem;
}

.home-feature-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ff-ink-soft);
    margin: 0;
}

/* Section 5: Interactive Battlemap Before/After Slider (Intact <-> Ruined) */
.home-compare-wrap {
    max-width: 1020px;
    margin: 0 auto;
}

.home-compare-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1192 / 960;
    max-height: 680px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--ff-gold-line);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
    user-select: none;
    touch-action: none;
    background: #0d151a;
    --compare-pos: 50%;
}

.home-compare-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.home-compare-after {
    clip-path: inset(0 0 0 var(--compare-pos));
}

.home-compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare-pos);
    width: 3px;
    background: linear-gradient(180deg, #f9e4ad, #e7bf8f, #f9e4ad);
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 18px rgba(246, 215, 122, 0.8);
}

.home-compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6d77a, #d89f4b);
    color: #1a1207;
    border: 2px solid #fff5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.home-compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
}

.home-compare-label {
    position: absolute;
    top: 1rem;
    z-index: 3;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(11, 18, 22, 0.84);
    border: 1px solid var(--ff-gold-line);
    color: var(--ff-gold-bright);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.home-compare-label--left {
    left: 1rem;
}

.home-compare-label--right {
    right: 1rem;
}

.home-compare-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}

.home-compare-presets {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-preset-btn {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--ff-gold-muted);
    background: rgba(14, 22, 27, 0.7);
    color: var(--ff-ink-soft);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.home-preset-btn:hover,
.home-preset-btn.active {
    background: rgba(231, 191, 143, 0.18);
    border-color: var(--ff-gold);
    color: var(--ff-gold-bright);
}

/* Section 6: Bento Creator Toolkit Grid */
.home-bento-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.home-bento-featured {
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--ff-bg-card);
    border: 1px solid var(--ff-gold-muted);
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-bento-featured:hover {
    transform: translateY(-4px);
    border-color: var(--ff-gold);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
    color: inherit;
}

.home-bento-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0e161b;
    border-bottom: 1px solid rgba(231, 191, 143, 0.14);
}

.home-bento-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-bento-featured:hover .home-bento-media img {
    transform: scale(1.03);
}

.home-bento-body {
    padding: 1.35rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-bento-kicker {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ff-gold);
    margin-bottom: 0.4rem;
}

.home-bento-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ff-ink);
    margin: 0 0 0.5rem;
}

.home-bento-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ff-ink-soft);
    margin: 0 0 1rem;
}

.home-bento-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ff-gold-bright);
    font-weight: 700;
    font-size: 0.9rem;
}

.home-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.home-tool-card {
    display: flex;
    flex-direction: column;
    padding: 1.35rem;
    border-radius: 0.9rem;
    background: var(--ff-bg-card);
    border: 1px solid rgba(231, 191, 143, 0.18);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.home-tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--ff-gold);
    background: var(--ff-bg-card-hover);
    color: inherit;
}

.home-tool-card-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.home-tool-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ff-ink);
    margin: 0;
}

.home-tool-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ff-ink-soft);
    margin: 0 0 0.9rem;
}

/* Section 7: 3-Step Flow */
.home-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-step-card {
    padding: 1.65rem 1.5rem;
    border-radius: 0.95rem;
    background: rgba(14, 22, 27, 0.65);
    border: 1px solid var(--ff-gold-muted);
    position: relative;
}

.home-step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6d77a, #d89f4b);
    color: #1c1408;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.home-step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ff-ink);
    margin: 0 0 0.5rem;
}

.home-step-card p {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--ff-ink-soft);
    margin: 0;
}

/* Section 8: FAQ Accordion (shared styling reusable on Dashboard & Monster Generator too) */
.ff-faq-accordion {
    max-width: 54rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ff-faq-item {
    border-radius: 0.8rem;
    background: rgba(14, 22, 27, 0.72);
    border: 1px solid rgba(231, 191, 143, 0.2);
    overflow: hidden;
}

.ff-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ff-ink);
}

.ff-faq-item summary::-webkit-details-marker {
    display: none;
}

.ff-faq-item summary::after {
    content: "+";
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ff-gold);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.ff-faq-item[open] summary::after {
    content: "−";
}

.ff-faq-item[open] {
    border-color: var(--ff-gold-line);
}

.ff-faq-answer {
    padding: 0 1.35rem 1.2rem;
    color: var(--ff-ink-soft);
    font-size: 0.96rem;
    line-height: 1.65;
}

.ff-faq-answer p {
    margin: 0;
}

/* Section 9: Final CTA */
.home-cta-banner {
    border-radius: 1.15rem;
    padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(231, 191, 143, 0.2), transparent 65%),
                linear-gradient(135deg, #121c22, #1b2a33);
    border: 1px solid var(--ff-gold-line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.home-cta-banner h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.55rem);
    font-weight: 800;
    color: var(--ff-ink);
    margin: 0 0 0.85rem;
}

.home-cta-banner p {
    max-width: 40rem;
    margin: 0 auto 1.75rem;
    font-size: 1.05rem;
    color: var(--ff-ink-soft);
    line-height: 1.65;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .home-hero-grid,
    .home-tabletop-grid,
    .home-bento-top {
        grid-template-columns: 1fr;
    }

    .home-bento-grid,
    .home-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-stats-grid > div::after {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .home-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        padding: 0.3rem 0.75rem;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-btn-primary,
    .home-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .home-d20-badge {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        font-size: 0.76rem;
        padding: 0.45rem 0.65rem;
    }

    .home-compare-label {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
        padding: 0.26rem 0.6rem;
        top: 0.65rem;
    }

    .home-compare-label--left {
        left: 0.65rem;
    }

    .home-compare-label--right {
        right: 0.65rem;
    }

    .home-compare-handle {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .home-bento-grid,
    .home-steps-grid {
        grid-template-columns: 1fr;
    }

    .home-compare-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .home-compare-presets {
        justify-content: center;
    }
}
