/* Homepage only: keep shared navigation and functional pages independent. */
.main-content.home-deck { padding: 0; width: calc(100% - var(--sidebar-collapsed-width)); height: 100vh; height: 100dvh; scroll-snap-type: y mandatory; scroll-behavior: smooth; overscroll-behavior-y: contain; outline: none; }
.home-deck *, .home-pagination { box-sizing: border-box; }
.home-deck { --home-muted: #99a8bb; --home-panel: rgba(135, 165, 210, .055); }
.home-screen { min-height: 100%; position: relative; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; overflow: clip; padding: 58px clamp(32px, 6vw, 110px); isolation: isolate; }
.home-screen::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 85% 30%, #3477e21a, transparent 60%); }
.home-screen-inner { width: min(1120px, 100%); margin: auto; }
.home-section-heading { display: flex; gap: 18px; align-items: center; font-size: 12px; letter-spacing: .15em; color: var(--home-muted); margin-bottom: 36px; }
.home-section-number { font: 12px ui-monospace, monospace; color: #6d9ce8; border: 1px solid #6d9ce840; border-radius: 50%; width: 34px; height: 34px; display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; letter-spacing: 0; }
.home-eyebrow { letter-spacing: .28em; font-size: 11px; font-weight: 650; color: #8ea8d0; margin-bottom: 22px; }
.home-welcome { background: radial-gradient(ellipse at 74% 55%, #24397160, transparent 55%), linear-gradient(140deg, #101927, #101318 65%); color: #edf3ff; }
.home-welcome::after { content: '✦'; position: absolute; font-size: clamp(210px, 32vw, 560px); line-height: 1; right: 8%; top: 50%; transform: translateY(-50%) rotate(-15deg); color: #8cafff10; text-shadow: 0 0 90px #5b8fff18; z-index: -1; }
.home-welcome .welcome-card { max-width: 760px; }
.home-welcome .welcome-card h1 { font-size: clamp(64px, 8.5vw, 142px); letter-spacing: -.065em; line-height: .95; margin: 24px 0 30px; color: #edf3ff; background: none; -webkit-text-fill-color: currentColor; }
.home-welcome h1 > span:not(.home-title-dot) { color: #83aaff; }
.home-title-dot { color: #c7b7ff; }
.home-welcome .welcome-card > p:not(.home-eyebrow) { color: #a3b3ca !important; font-size: clamp(14px, 1.5vw, 18px) !important; }
.home-primary { display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; margin-top: 10px; border: 1px solid #8bacff60; background: #dfe9ff; border-radius: 9px; text-decoration: none; font-size: 14px; font-weight: 700; color: #16233d; transition: background .2s, transform .2s; }
.home-primary:hover { background: white; transform: translateY(-2px); }
.home-primary[aria-disabled="true"] { background: #c5cedd; color: #364255; }
.home-toast { position: fixed; left: calc(50% + var(--sidebar-collapsed-width) / 2); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: max-content; max-width: calc(100vw - var(--sidebar-collapsed-width) - 36px); box-sizing: border-box; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); color: var(--text); box-shadow: 0 6px 28px #0005; font-size: 13px; line-height: 1.7; z-index: 1100; pointer-events: none; transition: opacity .3s; }
.home-welcome #guest-panel { display: inline-block; margin-left: 14px; }
.home-welcome .btn-start { background: transparent; box-shadow: none; color: #9babc3; border-radius: 8px; border: 1px solid #91a9d02b; font-size: 13px; padding: 14px 20px; }
.home-scroll { margin-top: 50px; padding: 12px 0; display: block; color: #8393ab; border: 0; background: none; font-size: 12px; cursor: pointer; }
.home-features h2 { font-size: clamp(24px, 2.6vw, 38px) !important; letter-spacing: -.035em; }
.home-features h3 { font-size: 17px !important; margin-bottom: 14px !important; }
.home-features .home-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; margin-bottom: 25px !important; }
.home-feature-grid > div { background: var(--home-panel) !important; border-radius: 14px !important; padding: 22px !important; }
.home-feature-grid h4 { font-size: 16px !important; line-height: 1.55; margin-bottom: 16px; }
.home-feature-grid p { font-size: 13px !important; color: var(--home-muted) !important; }
.home-features ul { font-size: 13px; margin-bottom: 0 !important; }
.home-notice .home-screen-inner { max-width: 900px; }
.home-notice .home-screen-inner > div:last-child { background: var(--home-panel) !important; border: 1px solid var(--border); border-left: 3px solid #7c9cef; padding: clamp(22px, 3.5vw, 50px) !important; border-radius: 16px !important; line-height: 1.95; font-size: 14px; }
.home-notice em { font-style: normal; }
.home-updates .home-screen-inner, .home-support .home-screen-inner { max-width: 820px; }
.home-updates .home-screen-inner > div:last-child, .home-support .home-screen-inner > div:last-child { background: var(--home-panel) !important; padding: clamp(24px, 4vw, 48px) !important; border-radius: 20px !important; min-width: 0 !important; }
.home-updates h3, .home-support h3 { font-size: clamp(22px, 3vw, 34px); }
.home-updates details > div { max-height: 44vh; overflow-y: auto; padding: 20px !important; }
.home-support p { line-height: 1.9; }
.home-support a[href^="mailto:"] { font-size: clamp(13px, 2.4vw, 25px) !important; overflow-wrap: anywhere; }
.home-support hr { margin: 30px 0 !important; }
.home-pagination { position: fixed; right: 15px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; z-index: 30; padding: 8px 3px; border: 1px solid #8eabcf25; border-radius: 20px; background: #10172288; backdrop-filter: blur(12px); }
.home-pagination button { width: 24px; height: 26px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; padding: 0; }
.home-pagination span { width: 5px; height: 5px; background: #8da1ba80; border-radius: 5px; transition: height .3s, background .3s; }
.home-pagination button[aria-current="true"] span { height: 16px; background: #98baff; }
.home-deck button:focus-visible, .home-deck a:focus-visible, .home-pagination button:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 5px; }
.home-games { min-height: 100%; color: white; background: #101722; padding: 0; }
.home-games::before { display: none; }
.home-backdrops, .home-game-shade, .home-backdrop { position: absolute; inset: 0; pointer-events: none; }
.home-backdrops { z-index: -3; overflow: hidden; }
.home-backdrop { background-size: cover; background-position: center; opacity: 0; filter: blur(18px); transform: scale(1.055); transition: opacity 1.4s ease, filter 1.6s ease, transform 3s ease; }
.home-backdrop.is-visible { opacity: 1; filter: blur(0); transform: scale(1); }
.home-game-shade { z-index: -2; background: linear-gradient(90deg, #070e1bce, #070e1b10 85%), linear-gradient(0deg, #070e1be8, transparent 70%, #070e1b80); }
.home-game-topline { position: absolute; top: 36px; left: 38px; right: 60px; display: flex; align-items: center; gap: 18px; color: #d3dfef; font-size: 12px; letter-spacing: .15em; }
.home-live { margin-left: auto; font-size: 10px; color: #d3dfef9c; }
.home-game-rail { position: absolute; top: 50%; left: clamp(18px, 3vw, 54px); transform: translateY(-50%); display: flex; align-items: center; flex-direction: column; gap: 15px; }
#home-game-icons { display: flex; flex-direction: column; gap: 20px; }
.home-game-icon { width: 64px; height: 64px; display: grid; place-items: center; padding: 5px; border: 1px solid #ffffff30; background: #10172270; border-radius: 50%; cursor: pointer; transition: border-color .3s, transform .3s; color: white; font-size: 12px; }
.home-game-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; opacity: .65; transition: opacity .3s; }
.home-game-icon[aria-pressed="true"] { border-color: #dbe7ff; box-shadow: 0 0 0 4px #ffffff12; transform: scale(1.09); }
.home-game-icon[aria-pressed="true"] img, .home-game-icon:hover img { opacity: 1; }
.home-rail-arrow { background: none; border: 0; color: #e4edff; font-size: 26px; width: 50px; height: 32px; cursor: pointer; line-height: 1; }
.home-rail-arrow:disabled { opacity: .3; cursor: default; }
#home-game-position { font: 10px ui-monospace, monospace; letter-spacing: .15em; color: #d8e4ff9c; }
.home-game-copy { width: calc(100% - 210px); margin: auto 65px 160px clamp(124px, 12vw, 215px); padding-top: 160px; }
.home-game-copy h2 { font-size: clamp(32px, 5.2vw, 76px); line-height: 1.18; letter-spacing: -.045em; margin: 14px 0 22px; max-width: 850px; text-shadow: 0 3px 30px #0008; }
.home-game-copy > p:not(.home-eyebrow) { font-size: 14px; color: #d4deef; }
.home-game-copy .home-eyebrow { color: #e1eaffb0; }
.home-game-footer { position: absolute; bottom: 30px; left: clamp(124px, 12vw, 215px); right: 160px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 11px; color: #d7e3f2b0; }
.home-rotation { display: flex; align-items: center; gap: 12px; }
.home-rotation-track { display: block; width: 70px; height: 2px; background: #ffffff30; }
#home-rotation-progress { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: #dfeaff; }
.home-rotation-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.home-rotation-actions button { border: 1px solid #ffffff40; border-radius: 5px; color: #e0eaff; background: #10172260; padding: 6px 9px; min-height: 30px; white-space: nowrap; font: inherit; cursor: pointer; }
.home-rotation-actions button:hover:not(:disabled) { background: #304560a0; border-color: #c8dcff80; }
.home-rotation-actions button:disabled { opacity: .4; cursor: default; }
[data-theme="light"] .home-deck { --home-muted: #56667e; --home-panel: #34588e06; }
[data-theme="light"] .home-features p, [data-theme="light"] .home-features ul, [data-theme="light"] .home-notice p, [data-theme="light"] .home-updates details > div, [data-theme="light"] .home-support p { color: #56667e !important; }
@media (max-width: 1100px) { .home-features .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) {
    .home-screen { padding: 32px 30px 32px 20px; }
    .home-section-heading { margin-bottom: 26px; font-size: 10px; gap: 12px; }
    .home-welcome .welcome-card h1 { font-size: clamp(54px, 15vw, 88px); }
    .home-welcome #guest-panel { margin-left: 0; display: block; }
    .home-welcome .btn-start { margin-top: 12px; }
    .home-features .home-feature-grid { grid-template-columns: 1fr !important; }
    .home-feature-grid > div { padding: 18px !important; }
    .home-pagination { right: 4px; padding: 6px 0; }
    .home-pagination button { width: 16px; }
    .home-games { padding: 0; }
    .home-game-topline { top: 24px; left: 18px; right: 26px; gap: 10px; font-size: 10px; }
    .home-live { display: none; }
    .home-game-rail { left: 15px; gap: 12px; }
    .home-game-icon { width: 44px; height: 44px; padding: 3px; }
    #home-game-icons { gap: 18px; }
    .home-game-copy { margin: auto 26px 180px 82px; width: calc(100% - 108px); }
    .home-game-copy h2 { font-size: clamp(27px, 7vw, 40px); }
    .home-game-copy .home-eyebrow { letter-spacing: .15em; }
    .home-game-footer { left: 82px; right: 76px; bottom: 25px; gap: 12px; }
    .home-rotation { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr); gap: 8px; font-size: 10px; }
    .home-rotation-track { grid-column: 1 / -1; width: 100%; }
    .home-rotation-actions { gap: 6px; }
    .home-rotation-actions button { padding: 6px; }
    .home-notice .home-screen-inner > div:last-child { padding: 18px !important; font-size: 13px; }
    .home-updates .home-screen-inner > div:last-child, .home-support .home-screen-inner > div:last-child { padding: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .main-content.home-deck { scroll-behavior: auto; }
    .home-backdrop { transition: none; transform: none; filter: none; }
    .home-deck *, .home-pagination * { transition-duration: 0s !important; }
}
