/* Custom Gaming Network portal v2.1.0 — bright dual portal + private-server voting feature. */
:root {
    color-scheme: light;
    --ink: #17324d;
    --muted: #4f6578;
    --blue: #246fb7;
    --yellow: #ffcb05;
    --paper: #fff;
    --outline: #b5d7ed;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: #dff4ff;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 5% 8%, rgba(255,255,255,.88), transparent 38%),
        radial-gradient(ellipse at 93% 52%, rgba(255,235,157,.62), transparent 44%),
        linear-gradient(155deg, #caedff 0%, #e7f7ff 45%, #f2fbff 72%, #fff7d9 100%);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(#2a75bb 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .075;
}
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
button[hidden] { display: none; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
    outline: 3px solid #153e83;
    outline-offset: 5px;
}
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 12px 18px;
    background: #fff;
    border: 2px solid var(--blue);
    border-radius: 10px;
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.screen-scanlines, .screen-sweep {
    position: fixed;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 20;
}
.screen-scanlines {
    top: -7px;
    bottom: 0;
    background: linear-gradient(rgba(255,255,255,.72) 1px, transparent 1px);
    background-size: 100% 7px;
    opacity: .18;
    mix-blend-mode: screen;
    animation: fine-scan 1.8s linear infinite;
}
.screen-sweep {
    /* Same white scan beam and timing as the supplied bright Pokémon theme. */
    top: -18vh;
    height: 18vh;
    opacity: .52;
    background: linear-gradient(to bottom, transparent 0%, rgba(70,197,238,.015) 22%, rgba(65,190,234,.18) 76%, rgba(255,255,255,.42) 88%, rgba(42,117,187,.12) 94%, transparent 100%);
    mix-blend-mode: screen;
    animation: pvPokemonGlobalScan 7.8s linear infinite;
}
.portal-shell { position: relative; max-width: 1280px; width: calc(100% - 64px); margin: 0 auto; }
.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 96px;
    border-bottom: 1px solid rgba(42,117,187,.16);
}
.network-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.125rem; letter-spacing: -.025em; }
.brand-emblem { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid #fff; border-radius: 17px; background: rgba(255,255,255,.8); box-shadow: 0 4px 0 #b5d9f0, 0 6px 16px #246fb70d; }
.brand-emblem img { object-fit: contain; }
.brand-secondary { display: block; margin-top: 3px; font-size: .75rem; letter-spacing: .25em; color: #53738c; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 15px; background: #ffffffb8; border: 1px solid #accbe1; border-radius: 999px; color: #315675; font-weight: 700; font-size: .8125rem; cursor: pointer; transition: background .2s, box-shadow .2s; }
.motion-toggle:hover { background: #fff; box-shadow: 0 3px 12px #21538414; }
.motion-toggle:disabled { cursor: default; }
.motion-icon { flex: 0 0 auto; }
.play-symbol { display: none; }
html[data-motion="paused"] .play-symbol { display: block; }
html[data-motion="paused"] .pause-symbol { display: none; }
.welcome { position: relative; padding: 37px 140px 38px; text-align: center; }
.eyebrow { margin: 0 0 14px; color: #416481; font-size: .75rem; font-weight: 900; letter-spacing: .16em; }
.eyebrow span { display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: #f0b90b; border-radius: 2px; transform: rotate(45deg); }
h1 { margin: 0; color: var(--ink); font-size: clamp(2.75rem, 5.2vw, 4.5rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 900; }
h1 span { display: inline-block; position: relative; color: #2576bf; text-shadow: 0 3px 0 #fff; z-index: 0; }
h1 span::after { content: ""; position: absolute; height: 11px; left: -4px; right: -7px; bottom: 1px; border-radius: 60% 30% 40% 30%; transform: rotate(-2deg); background: #ffd343; z-index: -1; }
.welcome-copy { margin: 18px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.welcome-sprite { position: absolute; width: 128px; height: 128px; object-fit: contain; image-rendering: pixelated; pointer-events: none; filter: drop-shadow(0 8px 5px #507c9d25); animation: sky-float 6s ease-in-out infinite; }
.welcome-sprite--lugia { left: 3%; top: 46px; transform: rotate(-6deg); }
.welcome-sprite--dragonite { right: 3%; top: 40px; animation-delay: -2.7s; }

.vote-feature {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 24px 0 8px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 58%, rgba(236,248,255,.96) 100%);
    border: 2px solid #9ecbeb;
    border-radius: 25px;
    box-shadow: 0 7px 0 #b8daef, 0 18px 38px rgba(29,91,126,.14);
}
.vote-feature::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 28px;
    right: 28px;
    height: 5px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(90deg, #2a75bb 0 30%, #ffcb05 30% 52%, #e65c3b 52% 73%, #37b86a 73% 100%);
    z-index: 2;
}
.vote-feature::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -155px;
    top: -185px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,211,67,.28), rgba(42,117,187,.08) 48%, transparent 69%);
    pointer-events: none;
    z-index: -1;
}
.vote-feature__intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin: 0 2px 20px; }
.vote-feature__heading { min-width: 0; }
.vote-kicker { display: flex; align-items: center; gap: 7px; margin: 0 0 7px; color: #416481; font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.vote-kicker span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: #fff3bd; border: 1px solid #f0cf56; color: #ad8115; font-size: .68rem; box-shadow: inset 0 1px 0 #fff; }
.vote-title { margin: 0; font-size: clamp(1.65rem, 2.6vw, 2.35rem); line-height: 1.08; letter-spacing: -.045em; }
.vote-title span { color: #2576bf; }
.vote-copy { flex: 0 1 520px; margin: 0 0 1px; color: #526d80; font-size: .93rem; line-height: 1.6; }
.vote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vote-card {
    --vote-accent: #2a75bb;
    --vote-accent-dark: #174e84;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 186px;
    padding: 15px 16px 16px;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    background: linear-gradient(155deg, #fff 0%, #fbfdff 68%, #eef8ff 100%);
    border: 1px solid #c5deee;
    border-radius: 17px;
    box-shadow: 0 4px 0 rgba(142,190,221,.58), 0 10px 22px rgba(38,99,139,.09), inset 0 1px 0 #fff;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.vote-card--gtop { --vote-accent: #d09a0d; --vote-accent-dark: #7d5a06; background: linear-gradient(155deg, #fff 0%, #fffdf8 68%, #fff8dd 100%); border-color: #e9d89b; box-shadow: 0 4px 0 rgba(221,196,112,.62), 0 10px 22px rgba(135,102,18,.08), inset 0 1px 0 #fff; }
.vote-card--ranked { --vote-accent: #a94717; --vote-accent-dark: #793113; background: linear-gradient(155deg, #fff 0%, #fffdfa 68%, #fff2e8 100%); border-color: #e3c7ad; box-shadow: 0 4px 0 rgba(218,190,161,.66), 0 10px 22px rgba(119,86,36,.08), inset 0 1px 0 #fff; }
.vote-card::after { content: ""; position: absolute; right: -42px; bottom: -58px; width: 125px; height: 125px; border: 18px solid color-mix(in srgb, var(--vote-accent) 10%, transparent); border-radius: 50%; pointer-events: none; }
.vote-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.vote-card__number { display: inline-grid; place-items: center; width: 31px; height: 25px; border-radius: 8px; background: color-mix(in srgb, var(--vote-accent) 11%, white); border: 1px solid color-mix(in srgb, var(--vote-accent) 27%, white); color: var(--vote-accent-dark); font-size: .68rem; font-weight: 900; letter-spacing: .04em; }
.vote-card__type { color: #6d8292; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.vote-card__brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.vote-card__badge { display: grid; place-items: center; flex: 0 0 104px; width: 104px; height: 56px; padding: 6px; border: 1px solid #d7e5ee; border-radius: 11px; background: #fff; box-shadow: inset 0 1px 2px rgba(18,60,91,.04); }
.vote-card__badge img { display: block; max-width: 92px; max-height: 42px; width: auto; height: auto; object-fit: contain; }
.vote-card__text { display: flex; flex-direction: column; min-width: 0; }
.vote-card__text strong { color: #1e3d58; font-size: .96rem; line-height: 1.18; }
.vote-card__text small { margin-top: 4px; color: #637a8c; font-size: .69rem; line-height: 1.35; }
.vote-card__cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 15px; color: var(--vote-accent-dark); font-size: .8rem; font-weight: 900; }
.vote-card__cta > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; background: var(--vote-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 0 color-mix(in srgb, var(--vote-accent-dark) 75%, black); font-size: 1rem; transition: transform .2s ease; }
.vote-feature__note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; color: #587287; font-size: .72rem; line-height: 1.45; text-align: center; }
.vote-feature__note span { color: #ad8115; }
@media (hover: hover) and (pointer: fine) {
    .vote-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--vote-accent) 44%, white); box-shadow: 0 5px 0 color-mix(in srgb, var(--vote-accent) 18%, white), 0 15px 27px rgba(38,99,139,.14), inset 0 1px 0 #fff; background: #fff; }
    .vote-card:hover .vote-card__cta > span { transform: translate(2px, -2px); }
}

.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; scroll-margin-top: 24px; }
.portal-grid:focus { outline: none; }
.game-card {
    --accent: #246fb7;
    --accent-dark: #154c88;
    --tag-bg: #eef7ff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--paper);
    border: 2px solid #9ecbeb;
    border-radius: 26px;
    box-shadow: 0 7px 0 #b8daef, 0 17px 35px #1d5b7e16;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.game-card--metalslug { --accent: #a94717; --accent-dark: #793113; --tag-bg: #fff4e7; border-color: #d7bea1; box-shadow: 0 7px 0 #e6d2b6, 0 17px 35px #77562412; }
.game-card::before { content: ""; position: absolute; height: 5px; top: -1px; left: 26px; right: 26px; background: linear-gradient(90deg, #e84545 0 25%, #ffcb05 25% 50%, #2a75bb 50% 75%, #37b86a 75%); z-index: 5; border-radius: 0 0 5px 5px; }
.game-card--metalslug::before { background: linear-gradient(90deg, #726e42 0 25%, #e6af36 25% 50%, #d96531 50% 75%, #76543b 75%); }
@media (hover: hover) and (pointer: fine) {
    .game-card:hover { transform: translateY(-5px); border-color: #6bafe0; box-shadow: 0 8px 0 #a6cfe9, 0 24px 42px #1d5b7e24; }
    .game-card--metalslug:hover { border-color: #b6976f; box-shadow: 0 8px 0 #dcc19f, 0 24px 42px #77562420; }
}
.game-art { position: relative; height: 300px; overflow: hidden; border-radius: 23px 23px 0 0; isolation: isolate; border-bottom: 1px solid #c5deee; }
.pokemon-art { background: #b6e9c4; }
.scene-backdrop { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.pokemon-backdrop { image-rendering: pixelated; object-position: 50% 62%; }
.scene-tint { position: absolute; inset: 0; background: linear-gradient(180deg, #e4f7ffed 0%, #e2f7ffd9 18%, #e3ffe421 55%, #29694826 72%, #d7f5b3ed 100%); }
.pokemon-wordmark { display: flex; align-items: center; justify-content: center; gap: 10px; position: absolute; top: 27px; left: 20px; right: 20px; }
.pokemon-wordmark img { display: block; width: min(65%, 290px); height: auto; filter: drop-shadow(0 2px 0 #fff); }
.pokemon-wordmark > span { padding: 5px 8px; border: 2px solid #224f82; border-radius: 7px; background: var(--yellow); color: #174675; box-shadow: 0 3px 0 #224f82; font-size: .875rem; font-weight: 900; letter-spacing: .025em; transform: rotate(4deg); }
.scene-kicker { position: absolute; top: 81px; left: 0; right: 0; text-align: center; color: #214c51; font-size: .75rem; font-weight: 900; letter-spacing: .18em; text-shadow: 0 1px 1px white; }
.scene-flyer { position: absolute; object-fit: contain; image-rendering: pixelated; animation: companion-float 4.8s ease-in-out infinite; filter: drop-shadow(0 7px 4px #203a4f2b); }
.scene-flyer--charizard { width: 148px; height: 148px; right: 8%; top: 85px; animation-delay: -1.3s; }
.scene-flyer--mew { width: 106px; height: 106px; left: 10%; top: 98px; animation-delay: -3.1s; }
.sprite-lineup { position: absolute; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; left: 17px; right: 17px; bottom: 4px; height: 109px; z-index: 3; }
.sprite-slot { position: relative; display: grid; align-items: end; justify-items: center; min-width: 0; height: 100%; }
.sprite-slot::before { content: ""; position: absolute; bottom: 15px; width: 52%; height: 9px; border-radius: 50%; background: #1b453827; filter: blur(2px); }
.sprite-slot img { position: relative; display: block; width: 132%; max-width: 130px; height: 120px; object-fit: contain; image-rendering: pixelated; animation: companion-idle 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.63s); transform-origin: 50% 88%; filter: drop-shadow(0 3px 0 #ffffff4d); }
.pokemon-lineup .sprite-slot:nth-child(3) img { animation-name: pikachu-hop; animation-duration: 5.5s; }
.pokemon-lineup .sprite-slot:nth-child(6) img { animation-name: companion-float; animation-duration: 4.2s; }
.metal-art { background: #51362d; border-bottom-color: #d5bb96; }
.metal-backdrop { height: auto; min-height: 220px; object-fit: cover; object-position: center top; }
.metal-horizon { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, #352f2433 66%, #322d22d9 100%); }
.metal-lineup { left: 25px; right: 25px; bottom: 7px; height: 103px; }
.metal-lineup::before { content: ""; position: absolute; left: -25px; right: -25px; bottom: -7px; height: 31px; border-top: 1px solid #f2c77344; background: linear-gradient(#856c4399, #5a4938bb); }
.metal-lineup .sprite-slot img { width: 100%; height: 100px; max-width: 87px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 3px 0 #1c201baa) drop-shadow(0 0 2px #fff5c933); animation: operative-idle 2.8s steps(2, end) infinite; animation-delay: calc(var(--i) * -.43s); }
.metal-lineup .sprite-slot::before { bottom: -1px; background: #0c191858; }
.scene-sparkles, .scene-embers { position: absolute; inset: 0; pointer-events: none; }
.scene-sparkles i, .scene-embers i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff7ab; box-shadow: 0 0 8px #fff3a3; animation: sparkle-drift 5s ease-in-out infinite; }
.scene-sparkles i:nth-child(1), .scene-embers i:nth-child(1) { left: 16%; top: 65%; animation-delay: -1s; }
.scene-sparkles i:nth-child(2), .scene-embers i:nth-child(2) { left: 40%; top: 58%; animation-delay: -3s; }
.scene-sparkles i:nth-child(3), .scene-embers i:nth-child(3) { left: 78%; top: 80%; animation-delay: -1.8s; }
.scene-sparkles i:nth-child(4), .scene-embers i:nth-child(4) { left: 58%; top: 45%; animation-delay: -4.1s; }
.scene-sparkles i:nth-child(5), .scene-embers i:nth-child(5) { left: 91%; top: 59%; animation-delay: -2.5s; }
.scene-embers i { width: 3px; height: 3px; background: #ffc975; box-shadow: 0 0 5px #ffbf6480; animation-name: ember-rise; animation-duration: 6s; }
.card-content { display: flex; flex-direction: column; flex: 1; padding: 25px 29px 21px; background: linear-gradient(145deg, #fff 68%, #f4faff); border-radius: 0 0 24px 24px; }
.game-card--metalslug .card-content { background: linear-gradient(145deg, #fff 68%, #fff9ed); }
.card-category { display: flex; align-items: center; gap: 7px; color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.category-mark { display: block; width: 8px; height: 8px; border-radius: 2px; background: #ffcb05; border: 1px solid #cb9d10; transform: rotate(-12deg); }
.game-card--metalslug .category-mark { background: #ec9b44; border-color: #a26020; }
h2 { margin: 12px 0 0; color: var(--ink); font-size: clamp(1.8rem, 2.4vw, 2.2rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.15; }
h2 span { color: var(--accent); }
.card-copy { margin: 13px 0 17px; color: var(--muted); font-size: 1rem; line-height: 1.65; max-width: 510px; }
.game-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; padding: 0; list-style: none; }
.game-tags li { background: var(--tag-bg); color: var(--accent-dark); border: 1px solid #d8e9f5; padding: 5px 11px; border-radius: 7px; font-size: .8125rem; font-weight: 700; }
.game-card--metalslug .game-tags li { border-color: #ecdcc6; }
.card-entry { margin-top: auto; }
.enter-button { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; min-height: 56px; padding: 15px 20px; color: #fff; background: linear-gradient(180deg, #2a75bb, #2468ad); border: 1px solid #1c5998; border-radius: 12px; box-shadow: 0 4px 0 #164c87, inset 0 1px 0 #ffffff38; font-size: 1rem; font-weight: 900; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.game-card--metalslug .enter-button { background: linear-gradient(180deg, #b55720, #a04416); border-color: #92421a; box-shadow: 0 4px 0 #793615, inset 0 1px 0 #ffffff38; }
.enter-button:not(.enter-button--disabled):hover { filter: brightness(.96); transform: translateY(-2px); }
.enter-button:not(.enter-button--disabled):active { transform: translateY(3px); box-shadow: none; }
.enter-arrow { font-size: 1.5rem; line-height: .8; transition: transform .2s; }
.enter-button:hover .enter-arrow { transform: translateX(3px); }
.enter-button.enter-button--disabled { background: #e6edf2; color: #546978; border-color: #bacbd6; box-shadow: 0 4px 0 #c2d0d9; cursor: default; }
.portal-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; color: #4b6879; font-size: .75rem; line-height: 1.4; }
.portal-state--unavailable { color: #80551c; }
.portal-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 37px; padding: 22px 0 27px; border-top: 1px solid rgba(42,117,187,.16); color: #557286; font-size: .8125rem; line-height: 1.5; }
.portal-footer strong { color: #2b5271; }
.footer-star { margin: 0 8px; color: #ad8115; }
@keyframes fine-scan { to { transform: translateY(7px); } }
@keyframes pvPokemonGlobalScan { to { transform: translateY(136vh); } }
@keyframes sky-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes companion-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes companion-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px) rotate(1.5deg); } }
@keyframes pikachu-hop { 0%, 60%, 77%, 100% { transform: translateY(0); } 68% { transform: translateY(-10px) rotate(-3deg); } 84% { transform: translateY(-4px); } }
@keyframes operative-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes sparkle-drift { 0%, 100% { transform: translateY(5px); opacity: .15; } 50% { transform: translateY(-15px); opacity: .85; } }
@keyframes ember-rise { 0% { transform: translate(0, 25px); opacity: 0; } 25% { opacity: .7; } 100% { transform: translate(16px, -45px); opacity: 0; } }
@media (max-width: 1050px) {
    .vote-feature { padding: 22px; }
    .vote-feature__intro { gap: 24px; }
    .vote-card { padding-left: 14px; padding-right: 14px; }
    .vote-card__brand { gap: 10px; }
    .vote-card__badge { flex-basis: 92px; width: 92px; }
    .vote-card__badge img { max-width: 82px; }
    .portal-shell { width: calc(100% - 40px); }
    .portal-grid { gap: 20px; }
    .card-content { padding: 24px 23px 20px; }
    .welcome { padding-left: 115px; padding-right: 115px; }
    .welcome-sprite--lugia { left: 0; }
    .welcome-sprite--dragonite { right: 0; }
    .game-art { height: 270px; }
    .metal-backdrop { height: 215px; min-height: 0; }
    .metal-lineup { left: 15px; right: 15px; height: 93px; }
    .metal-lineup .sprite-slot img { height: 90px; }
    .scene-flyer--charizard { top: 74px; right: 4%; width: 133px; height: 133px; }
    .scene-flyer--mew { top: 80px; left: 6%; }
    .card-copy { min-height: 5em; }
}
@media (max-width: 780px) {
    .vote-feature { margin-top: 19px; padding: 21px; }
    .vote-feature__intro { display: block; margin-bottom: 17px; }
    .vote-copy { margin-top: 10px; max-width: 540px; }
    .vote-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .vote-card { min-height: 150px; }
    .vote-card__badge { flex-basis: 104px; width: 104px; }
    .vote-card__badge img { max-width: 92px; }
    .portal-shell { max-width: 600px; width: calc(100% - 32px); }
    .masthead { min-height: 84px; }
    .portal-grid { grid-template-columns: minmax(0, 1fr); gap: 29px; }
    .welcome { padding: 35px 0 31px; }
    .welcome-sprite { width: 80px; height: 80px; top: 45px; opacity: .7; }
    .welcome-sprite--lugia { left: -5px; }
    .welcome-sprite--dragonite { right: -5px; }
    .welcome h1 { font-size: clamp(2.75rem, 7vw, 3.6rem); }
    .welcome-copy { padding: 0 30px; }
    .game-art { height: 285px; }
    .metal-backdrop { height: auto; min-height: 220px; }
    .metal-lineup .sprite-slot img { height: 100px; }
    h2 { font-size: 2rem; }
    .card-copy { min-height: 0; max-width: none; }
    .portal-footer { justify-content: center; text-align: center; margin-top: 32px; }
}
@media (max-width: 540px) {
    .vote-feature { padding: 18px 16px 17px; border-radius: 21px; }
    .vote-feature::before { left: 20px; right: 20px; }
    .vote-title { font-size: 1.65rem; }
    .vote-copy { font-size: .88rem; }
    .vote-card { min-height: 154px; border-radius: 15px; }
    .vote-card__badge { flex-basis: 88px; width: 88px; height: 52px; }
    .vote-card__badge img { max-width: 78px; max-height: 38px; }
    .vote-card__text strong { font-size: .9rem; }
    .vote-feature__note { align-items: flex-start; }
    .welcome-sprite { display: none; }
    .network-brand { gap: 8px; font-size: .9375rem; }
    .brand-emblem { width: 41px; height: 41px; border-radius: 13px; }
    .brand-emblem img { width: 28px; height: 28px; }
    .brand-secondary { font-size: .75rem; letter-spacing: .15em; }
    .masthead { gap: 8px; }
    .motion-toggle { padding: 10px; gap: 5px; font-size: .75rem; }
    .motion-icon { width: 15px; height: 15px; }
    .eyebrow { font-size: .75rem; letter-spacing: .07em; }
    .welcome-copy { padding: 0 3px; font-size: 1rem; }
    .desktop-break { display: none; }
    .game-art { height: 260px; }
    .pokemon-wordmark { top: 25px; }
    .scene-kicker { top: 71px; letter-spacing: .12em; }
    .scene-flyer--charizard { top: 79px; right: 3%; width: 116px; height: 116px; }
    .scene-flyer--mew { top: 81px; left: 3%; width: 96px; height: 96px; }
    .sprite-lineup { left: 9px; right: 9px; bottom: 0; height: 94px; }
    .sprite-slot img { height: 105px; width: 155%; }
    .metal-lineup { left: 12px; right: 12px; bottom: 8px; height: 86px; }
    .metal-lineup .sprite-slot img { height: 82px; }
    .metal-backdrop { height: 210px; min-height: 0; }
    .card-content { padding: 23px 21px 20px; }
    .enter-button { padding: 15px 16px; font-size: .9375rem; }
    .portal-state { gap: 5px; }
}
@media (max-width: 380px) {
    .portal-shell { width: calc(100% - 24px); }
    .network-brand { font-size: .875rem; }
    .brand-emblem { display: none; }
    .welcome h1 { font-size: 2.65rem; }
    h2 { font-size: 1.75rem; }
    .card-content { padding-left: 17px; padding-right: 17px; }
    .card-category { letter-spacing: .055em; }
    .game-art { height: 246px; }
    .metal-lineup .sprite-slot img { height: 72px; }
}
html[data-motion="paused"] *, html[data-motion="paused"] *::before, html[data-motion="paused"] *::after,
html.page-hidden *, html.page-hidden *::before, html.page-hidden *::after { animation-play-state: paused !important; }
html[data-motion="paused"] .screen-sweep { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .screen-sweep { display: none; }
}
