.home-showcase { margin: 0 0 24px; padding: clamp(14px, 3vw, 28px); border: 1px solid #474474; border-radius: 18px; background: linear-gradient(130deg, #24203c, #172b3b); color: #fff; }
.home-greeting, .home-slide-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-greeting { margin-bottom: 14px; flex-wrap: wrap; }
.home-greeting h2 { margin: 0; }
.home-greeting a { color: #c4b8ff; }
.home-slide { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: clamp(14px, 3vw, 32px); }
.home-slide[hidden], .home-slide-controls[hidden] { display: none; }
.home-slide img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.home-slide h3 { font-size: clamp(1.25rem, 3vw, 2.25rem); margin: 0; }
.home-slide p { color: #dddaee; margin: 8px 0 16px; }
.home-slide-controls { justify-content: flex-end; margin-top: 12px; }
.home-slide-controls button, .home-christmas-button { padding: 6px 12px; border: 1px solid #8175ba; border-radius: 8px; background: #302658; color: white; cursor: pointer; }
.home-christmas-button { margin-bottom: 18px; }
.home-christmas { width: min(800px, calc(100% - 24px)); padding: 0; border: 1px solid #8175ba; border-radius: 16px; overflow: hidden; color: white; background: #10152b; }
.home-christmas::backdrop { background: #080c18c9; }
.home-christmas img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; animation: home-flight 6s ease-in-out infinite alternate; }
.home-christmas > div { position: relative; margin-top: -80px; padding: 12px; text-align: center; background: #10152be8; }
@keyframes home-flight { from { transform: scale(1.08) translate(-2%, 1%); } to { transform: scale(1.08) translate(2%, -1%); } }
@media (max-width: 640px) { .home-slide { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .home-christmas img { animation: none; } }

.juke-home { --bg: #101225; --line: #ffffff19; --lime: #c5b2ff; background: var(--bg); }
.juke-home .rail { background: #0e1020; }
.juke-home .rail-link.active { background: #292345; }
.home-welcome { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(16px, 4vw, 42px); align-items: center; margin: 18px 0 30px; }
.home-intro h1 { margin: 0; font-size: clamp(1.7rem, 3.5vw, 3rem); color: #fff; line-height: 1.1; }
.home-intro p { margin: 12px 0; color: #cecce2; }
.home-intro small { display: block; color: #cecce2; }
.home-welcome .home-showcase { margin: 0; }
.home-catalog-heading { margin: 0 0 15px; }
.juke-home .game-grid { min-height: 0; }
@media (min-width: 860px) {
    .juke-home .rail { width: 200px; align-items: stretch; padding: 0 14px; }
    .juke-home .rail > .brand-mark { align-self: flex-start; }
    .juke-home .rail nav { gap: 5px; padding: 0; }
    .juke-home .rail-link { flex-direction: row; justify-content: flex-start; padding: 11px 12px; gap: 12px; }
    .juke-home .rail-link small { font-size: 13px; }
    .juke-home .site { margin-left: 200px; }
    .juke-home:has(.home-welcome) .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 859px) { .home-welcome { grid-template-columns: 1fr; } }

.juke-home .rail { overflow-y: auto; }
.portal-panel { position: fixed; inset: 0; margin: auto; width: min(680px, calc(100% - 24px)); max-height: 85vh; overflow: auto; padding: 22px; border: 1px solid #7565ae; border-radius: 16px; color: #fff; background: #1b2038; }
.portal-panel::backdrop { background: #080c18c9; }
.portal-panel h2 { margin: 0 34px 8px 0; }
.portal-panel p { color: #d3cee8; }
.portal-close { position: absolute; top: 9px; right: 12px; }
.portal-close button { background: transparent; color: white; border: 0; cursor: pointer; font-size: 24px; }
.portal-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.portal-panel-grid section, .portal-panel-grid fieldset { margin: 0; min-width: 0; padding: 12px; border: 1px solid #4f496e; border-radius: 10px; }
.portal-panel-grid h3 { margin: 0 0 8px; }
.portal-panel-grid label { display: block; margin: 6px 0; }
.portal-panel-grid input, .portal-panel-grid select { max-width: 100%; }
.portal-calls { grid-column: 1 / -1; }
@media (max-width: 600px) { .portal-panel-grid { grid-template-columns: 1fr; } }

.showcase-preview { display: block; width: 100%; min-width: 0; margin: 0; color: #ddd6f4; }
.showcase-preview canvas, video.showcase-preview { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #171d39; }
.showcase-preview figcaption { margin-top: 4px; font-size: .75rem; }
.home-slide:has(.showcase-preview) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 12px; }
.home-slide:has(.showcase-preview) .showcase-details { grid-column: 1 / -1; }
@media (max-width: 520px) { .home-slide:has(.showcase-preview) { grid-template-columns: 1fr; } }

.portal-community { margin: 24px 0; padding: 20px; border: 1px solid #474474; border-radius: 16px; background: #1b2038; color: #fff; }
.portal-community h2 { margin: 0; }
.portal-community section { background: #222744; scroll-margin-top: 85px; }
.portal-community p { color: #d3cee8; }
.portal-panel { color-scheme: dark; }
.portal-panel-grid input:not([type="checkbox"]):not([type="range"]), .portal-panel-grid select { padding: 6px; border: 1px solid #8175ba; border-radius: 6px; background: #222744; color: #fff; }

.juke-home .rail button.rail-link { appearance: none; border: 0; background: transparent; cursor: pointer; font-family: inherit; text-align: inherit; }