#supermario .sml-landing {
    color-scheme: dark;
    font-family: Inter, Arial, sans-serif;
    font-synthesis: none;
    --bg: #161927;
    --surface: #1b2030;
    --ink: #fbf5e8;
    --muted: #bdc3d7;
    --line: #363d53;
    --accent: #ffb85e;
    --lime: #c7f073;
    color: var(--ink);
    background: var(--bg);
}
.sml-landing * { box-sizing: border-box; }

.sml-landing h1, .sml-landing h2, .sml-landing h3, .sml-landing p, .sml-landing ol, .sml-landing ul, .sml-landing figure, .sml-landing dl, .sml-landing dd { margin: 0; }
.sml-landing a { color: inherit; text-decoration: none; }
.sml-landing button { font: inherit; color: inherit; cursor: pointer; }
.sml-landing a:focus-visible, .sml-landing button:focus-visible, .sml-landing summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.sml-landing p { line-height: 1.58; }
.sml-shell { width: min(100% - 56px, 1200px); margin-inline: auto; }

.sml-hero {
    position: relative; isolation: isolate; background: #222a51; overflow: hidden;
    box-shadow: 0 0 0 100vmax #222a51; clip-path: inset(0 -100vmax);
}
.sml-hero-art { position: absolute; z-index: -1; inset: 0 0 0 24%; }
.sml-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 61% 66%; image-rendering: pixelated; display: block; }
.sml-hero-art::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg,#222a51 0%,#222a51db 19%,#242d5c57 43%, transparent 66%,transparent 95%,#222a51 100%),
                linear-gradient(0deg,#1c233b 0%,transparent 25%,transparent 78%,#2129519e 100%);
}
.sml-hero-inner { min-height: 526px; display: flex; align-items: center; position: relative; padding-block: 61px 53px; }
.sml-back { position: absolute; top: 19px; left: 0; font-size: 13px; font-weight: 710; color: #e0e4f7; }
.sml-hero-copy { max-width: 515px; }
.sml-edition { color: var(--accent); text-transform: uppercase; letter-spacing: .17em; font-size: 13px; font-weight: 850; margin-bottom: 13px; }
.sml-hero h1 { font-size: clamp(57px, 6.35vw, 91px); font-weight: 900; letter-spacing: -.084em; line-height: .88; text-wrap: balance; }
.sml-hero h1 span { display: block; color: #ffd08a; }
.sml-hero-copy > p:not(.sml-edition) { max-width: 38ch; margin-top: 19px; font-size: 17px; color: #e3e5f3; }
.sml-hero-actions, .sml-coop-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 21px; }
.sml-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 11px 15px; border-radius: 7px; font-size: 14px; font-weight: 780; border: 1px solid transparent; }
.sml-primary { color: #21170f; background: var(--accent); }
.sml-primary:hover { background: #ffd295; }
.sml-outline { background: #12172859; border-color: #727c9b; }
.sml-outline:hover { background: #ffffff17; }
.sml-button[disabled] { opacity: .55; cursor: wait; }
.sml-quiet { font-size: 14px; font-weight: 720; text-decoration: underline; text-underline-offset: 4px; }
.sml-quiet:hover { color: var(--accent); }
.sml-android { display: inline-block; margin-top: 17px; }
.sml-scene-label { position: absolute; bottom: 21px; right: 0; display: flex; gap: 9px; align-items: center; color: #eaeef8; font-size: 12px; font-weight: 700; }
.sml-scene-label span { padding: 5px 8px; background: #171d30e8; border: 1px solid #ffffff32; border-radius: 4px; }

.sml-jump { background: #191d2d; position: sticky; top: 0; z-index: 3; box-shadow: 0 1px var(--line); }
.sml-jump nav { min-height: 51px; display: flex; align-items: center; gap: clamp(12px,3vw,41px); }
.sml-jump a { padding-block: 15px; font-size: 14px; font-weight: 710; color: var(--muted); }
.sml-jump a:hover { color: var(--ink); }
.sml-section { padding-block: clamp(31px,5vw,65px); }
.sml-landing h2 { font-size: clamp(30px, 4.2vw, 60px); font-weight: 860; letter-spacing: -.064em; line-height: .99; }
.sml-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.sml-section-heading p, .sml-room-head p, .sml-control-copy > p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.sml-section-heading p { max-width: 49ch; }
.sml-coop-actions { margin: 0; justify-content: flex-end; }
.sml-journey { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; margin-top: 33px; }
.sml-journey li { display: flex; align-items: start; gap: 14px; padding: 22px 21px 0 0; border-top: 1px solid var(--line); position: relative; }
.sml-journey li:not(:first-child) { padding-left: 14px; }
.sml-journey li::before { content: ''; width: 22px; border-top: 2px solid var(--accent); position: absolute; top: -1px; left: 0; }
.sml-journey b { flex: 0 0 35px; height: 36px; display: grid; place-items: center; border-radius: 7px; background: #323249; color: #ffce92; }
.sml-journey h3 { font-size: 18px; letter-spacing: -.02em; margin: 0 0 5px; }
.sml-journey p { font-size: 14px; color: var(--muted); }

.sml-room-section { background: #202538; border-block: 1px solid #373e54; }
.sml-room-section .sml-section { padding-block: 32px; }
.sml-room-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.sml-room-head h2 { font-size: clamp(28px,3.4vw,46px); }
.sml-room-head p { margin-top: 7px; }
.sml-room-status { font-size: 15px; color: var(--muted); }
.sml-room-status:not(:empty), .sml-room-list:not(:empty) { margin-top: 21px; }
.sml-room-list { padding: 0; list-style: none; display: grid; }
.sml-room-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 21px; align-items: center; padding: 13px 0; border-top: 1px solid #49516a; }
.sml-room-row:last-child { border-bottom: 1px solid #49516a; }
.sml-room-row h3 { font-size: 16px; font-weight: 740; overflow-wrap: anywhere; }
.sml-room-lock { color: var(--muted); font-size: 12px; margin-top: 4px; }
.sml-room-count { color: var(--lime); font-size: 14px; font-weight: 780; white-space: nowrap; }
.sml-room-row .sml-button { min-height: 40px; min-width: 88px; }
.sml-room-count.full, .sml-room-unavailable { color: var(--muted); }
.sml-room-unavailable { font-size: 13px; min-width: 88px; text-align: right; }
.sml-rooms-footer { padding-top: 19px; }

.sml-controls { display: grid; grid-template-columns: 1.27fr .73fr; gap: clamp(20px,4vw,57px); align-items: center; }
.sml-game-view { overflow: hidden; background: #1b2031; border: 1px solid #454f6d; border-radius: 10px; }
.sml-game-view img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.sml-game-view figcaption { padding: 10px 14px; font-size: 12px; color: var(--muted); }
.sml-controls h2 { font-size: clamp(29px,3.5vw,46px); }
.sml-control-list { display: grid; gap: 7px; margin-block: 15px; }
.sml-control-list > div { display: flex; align-items: center; gap: 12px; }
.sml-control-list dt { min-width: 43px; padding: 3px 7px; text-align: center; border: 1px solid #5a6584; border-radius: 4px; color: var(--accent); font-size: 13px; font-weight: 820; }
.sml-control-list dd { font-size: 14px; color: #dce1f4; }
.sml-faq { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; }
.sml-faq h2 { font-size: clamp(28px,3.4vw,46px); }
.sml-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.sml-faq details:first-child { padding-top: 0; }
.sml-faq summary { font-weight: 700; cursor: pointer; }
.sml-faq details p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.sml-faq details a { display: inline-block; margin-top: 8px; }
@media (max-width: 930px) {
    .sml-hero-art { left: 15%; }
    .sml-hero-copy { max-width: min(500px,65vw); }
    .sml-section-heading { align-items: start; }
    .sml-coop-actions { flex: 0 0 216px; }
    .sml-coop-actions .sml-button { width: 100%; }
}
@media (max-width: 700px) {
    .sml-shell { width: calc(100% - 40px); }
    .sml-hero-art { inset: 0 0 auto; height: 260px; }
    .sml-hero-art img { object-position: 52% 60%; }
    .sml-hero-art::after { background: linear-gradient(0deg,#222a51 0%,#222a51a8 12%,transparent 51%,transparent 73%,#2129519e 100%); }
    .sml-hero-inner { min-height: 0; display: block; padding-block: 19px 26px; }
    .sml-back { position: static; display: inline-flex; background: #141a2be0; border-radius: 5px; padding: 7px 9px; }
    .sml-hero-copy { margin-top: 144px; max-width: none; }
    .sml-hero h1 { font-size: clamp(50px, 13vw, 75px); }
    .sml-hero h1 span { display: inline; }
    .sml-hero-copy > p:not(.sml-edition) { font-size: 15px; margin-top: 13px; }
    .sml-edition { font-size: 11px; margin-bottom: 8px; }
    .sml-scene-label { top: 152px; bottom: auto; font-size: 10px; }
    .sml-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 17px; }
    .sml-hero-actions .sml-button { padding-inline: 10px; gap: 6px; min-height: 46px; font-size: 13px; }
    .sml-jump nav { min-height: 45px; gap: clamp(8px,2.6vw,19px); }
    .sml-jump a { font-size: 12px; padding-block: 12px; }
    .sml-section-heading, .sml-faq { display: grid; grid-template-columns: 1fr; gap: 16px; }
    .sml-coop-actions { justify-content: start; }
    .sml-journey { grid-template-columns: 1fr; margin-top: 20px; }
    .sml-journey li, .sml-journey li:not(:first-child) { padding: 14px 0; }
    .sml-journey li:not(:first-child)::before { content: none; }
    .sml-journey h3 { font-size: 16px; }
    .sml-room-head { align-items: start; gap: 9px; }
    .sml-room-head p { font-size: 13px; }
    .sml-room-head .sml-button { min-height: 38px; font-size: 12px; padding-inline: 9px; gap: 6px; }
    .sml-room-row { gap: 10px; }
    .sml-room-row .sml-button { font-size: 13px; min-width: 0; padding-inline: 10px; gap: 5px; }
    .sml-room-row h3 { font-size: 14px; }
    .sml-controls { grid-template-columns: 1fr; }
    .sml-game-view { margin-inline: -20px; border-radius: 0; }
    .sml-control-copy > p { font-size: 15px; }
}

/* The existing theme continues to style the admission dialogs and shared header. */
#supermario { max-width: 1280px; width: 100%; margin-inline: auto; padding: 0; }
.supermario-site { background: #161927; }
#supermario .sml-landing [id] { scroll-margin-top: 64px; }
#supermario .sml-landing a { color: inherit; }
#supermario .sml-landing .sml-primary { color: #21170f; }
#supermario .sml-landing .sml-hero h1 {
    color: var(--ink); font: 900 clamp(57px,6.35vw,91px)/.88 Inter,Arial,sans-serif;
    letter-spacing: -.084em; text-wrap: balance; text-shadow: none; margin: 0;
}
#supermario .sml-landing .sml-hero h1 span { color: #ffd08a; }
#supermario .sml-landing h2 {
    font-size: clamp(30px, 4.2vw, 60px); font-weight: 860; letter-spacing: -.064em; line-height: .99;
}
#supermario .sml-landing .sml-room-head h2, #supermario .sml-landing .sml-faq h2 { font-size: clamp(28px,3.4vw,46px); }
#supermario .sml-landing .sml-controls h2 { font-size: clamp(29px,3.5vw,46px); }
#supermario .sml-landing .sml-faq details {
    background: transparent; border-radius: 0; border: 0; border-bottom: 1px solid var(--line);
    margin: 0; padding: 14px 0;
}
#supermario .sml-landing .sml-faq details:first-child { padding-top: 0; }
#supermario .sml-landing .sml-jump nav { height: auto; }
#supermario .sml-landing .sml-jump a { border-bottom: 0; }
@media (max-width: 700px) {
    #supermario .sml-landing .sml-hero h1 { font-size: clamp(50px,13vw,75px); }
}

.supermario-site .header { background: #131624; gap: 42px; }
.supermario-site .site-footer { background: #131623; }
@media (max-width: 930px) {
    .supermario-site .header { gap: 24px; }
}
@media (701px <= width <= 760px) {
    .supermario-site .header { gap: 14px; }
    .supermario-site #header-nav { gap: 12px; }
}
@media (max-width: 700px) {
    body.supermario-site { padding-bottom: 0; }
    .supermario-site .mobile-nav { display: none; }
    .supermario-site .header {
        position: relative; z-index: 5; padding-inline: 20px; min-height: 72px;
        height: 72px; flex-wrap: nowrap; gap: 10px;
    }
    .supermario-site .header .brand { font-size: 23px; }
    .supermario-site .header-menu-button {
        display: grid; place-items: center; width: 44px; height: 44px;
        padding: 0; background: transparent; border: 0; flex: none;
    }
    .supermario-site .header-menu-button img { filter: brightness(0) invert(.94); }
    .supermario-site #header-nav {
        display: none; position: absolute; top: 71px; left: 0; right: 0;
        height: auto; background: #171c2c; padding: 8px 20px; gap: 0;
    }
    .supermario-site #header-nav.is-open { display: grid; }
    .supermario-site #header-nav a { min-height: 44px; border: 0; }
    .supermario-site .languages > a { min-width: 31px; }
}
