.portal {
    --site-ink: #102a38;
    --site-accent: #065675;
    --site-line: #c8dce4;
    --portal-gutter: clamp(1rem, 3vw, 2.75rem);
    max-width: 88rem;
    color: var(--site-ink);
    padding: clamp(1rem, 2vw, 1.75rem) max(var(--portal-gutter), env(safe-area-inset-right))
        max(1.5rem, env(safe-area-inset-bottom)) max(var(--portal-gutter), env(safe-area-inset-left));
}
.portal :is(h1, h2, p) { overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.portal-header { display: grid; gap: .85rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--site-line); }
.portal-header-top, .portal-header-tools { display: flex; align-items: center; justify-content: space-between; gap: .65rem 1.25rem; }
.portal-header-top, .portal-header-tools { flex-wrap: wrap; }
.portal-brand { --link-color: var(--site-accent); font-size: clamp(1.55rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.035em; }
.portal-language { position: relative; min-width: 0; }
.portal-flag-defs { position: absolute; }
.portal-flag { flex: 0 0 auto; width: 1.35rem; height: .9rem; border-radius: .15rem; box-shadow: 0 0 0 1px #102a3826; }
.portal-language summary {
    display: flex; align-items: center; gap: .55rem; min-height: 2.75rem;
    padding: .25rem .8rem; border: 1px solid var(--site-line); border-radius: .55rem;
    color: var(--site-accent); background: #fff; font-weight: 700; box-sizing: border-box; cursor: pointer;
}
.portal-language summary::-webkit-details-marker { display: none; }
.portal-language summary::after {
    content: ''; flex: 0 0 .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0;
    margin-inline-start: .15rem; transform: translateY(-.12rem) rotate(45deg);
}
.portal-language[open] summary::after { transform: translateY(.12rem) rotate(225deg); }
.portal-language summary:is(:hover, :focus-visible), .portal-language[open] summary {
    color: var(--link-hover-color); border-color: #c57d4c; background: var(--link-hover-bg);
}
.portal-language summary:focus-visible { outline: 3px solid var(--site-accent); outline-offset: 3px; }
.portal-language nav {
    position: absolute; z-index: 5; inset-block-start: calc(100% + .4rem); inset-inline-end: 0;
    width: min(13.5rem, 77vw); max-height: min(70vh, 25rem); overflow: auto;
    border: 1px solid var(--site-line); border-radius: .65rem; background: #fff;
    box-shadow: 0 .6rem 1.7rem #102a3826;
}
.portal-language ul { margin: 0; padding: .35rem; list-style: none; }
.portal-language a { display: flex; align-items: center; gap: .65rem; min-height: 2.5rem; padding: .3rem .65rem; border-radius: .35rem; }
.portal-language a[aria-current="page"] { background: #e0f0f6; }
.portal-language a:is(:hover, :focus-visible) { background: var(--link-hover-bg); outline-offset: -2px; }
.portal-menu-toggle, .portal-back-to-top { display: none; }
.portal-nav, .portal-quick { display: flex; flex-wrap: wrap; gap: .35rem .65rem; align-items: center; }
.portal-nav a, .portal-quick a { font-size: .95rem; line-height: 1.3; padding: .55rem .5rem; border-radius: .35rem; }
.portal-nav a[aria-current="page"] { background: #e0f0f6; font-weight: 700; }
.portal-nav a:is(:hover, :focus-visible), .portal-quick a:is(:hover, :focus-visible) { background: var(--link-hover-bg); }
.portal-search { display: flex; flex: 1 1 17rem; min-width: 0; max-width: 26rem; gap: .5rem; }
.portal-search input { flex: 1; width: 100%; min-width: 0; padding: .5rem .65rem; border: 1px solid var(--site-line); border-radius: .45rem; font: inherit; }
.portal-search button, .portal-button {
    display: inline-flex; align-items: center; justify-content: center; padding: .45rem .75rem;
    min-height: 2.75rem; box-sizing: border-box; border: 1px solid transparent; border-radius: .45rem;
    font: inherit; font-weight: 700; color: #fff; background: var(--site-accent); cursor: pointer;
}
.portal-button[aria-pressed="true"] { background: #e0f0f6; color: var(--site-accent); border-color: var(--site-accent); }
a.portal-button { --link-color: #fff; --link-hover-color: var(--link-button-hover-color); }
a.portal-button:is(:hover, :focus-visible) { background: var(--link-button-hover-bg); }
.portal-main { padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.portal-hero {
    display: grid; align-items: center; gap: clamp(1.5rem, 3.5vw, 3.5rem);
    padding: clamp(1.2rem, 4vw, 3.5rem); border: 1px solid #184b56; border-radius: 1.4rem; color: #f8fffc;
    background: radial-gradient(ellipse at 92% 10%, #11666b 0%, transparent 65%), linear-gradient(130deg, #0a222f, #103e4a);
    box-shadow: 0 .85rem 2rem #123a461a;
}
.portal-hero-copy { min-width: 0; }
.portal-hero h1 {
    margin: 0 0 .85rem; font-size: clamp(2.1rem, 4.1vw, 4rem); font-weight: 820;
    line-height: 1.1; letter-spacing: -.05em; text-wrap: balance;
}
.portal-hero h1 span { display: block; margin-top: .12em; color: #daff8d; }
.portal-hero p { max-width: 35ch; margin: 0 0 1.4rem; color: #d2e8e9; font-size: clamp(1rem, 1.45vw, 1.17rem); text-wrap: pretty; }
.portal-hero-copy:lang(ko) { word-break: keep-all; }
.portal-hero .portal-button {
    --link-color: #162e25; --link-hover-color: #162e25;
    gap: 1.2rem; min-height: 3.1rem; padding: .55rem 1rem .55rem 1.18rem; border-radius: .65rem; background: #daff8d;
}
.portal-hero a.portal-button:is(:hover, :focus-visible) { background: #f4ffcf; }
.portal-hero .portal-button span { font-size: 1.25em; line-height: 1; }
.portal-hero a:focus-visible { outline-color: #daff8d; }
.portal-hero-games {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.5rem, 1.25vw, .85rem);
    padding: 0; margin: 0; list-style: none; min-width: 0;
}
.portal-hero-games li { min-width: 0; }
.portal-hero-games[data-count="1"] li, .portal-hero-games[data-count="3"] li:first-child { grid-column: 1 / -1; }
.portal-hero-games a {
    --link-color: #fff; --link-hover-color: #daff8d;
    display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; overflow: hidden;
    border: 1px solid #93dfdc70; border-radius: .85rem; background: #0b2937;
    box-shadow: 0 .4rem .85rem #04182045;
}
.portal-hero-games a:is(:hover, :focus-visible) { border-color: #daff8d; }
.portal-hero-games img { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 16 / 10; object-fit: cover; background: #175263; }
.portal-hero-games li:first-child { align-self: center; }
.portal-hero-games li:first-child a { grid-template-rows: auto auto; height: auto; }
.portal-hero-games li:first-child img { height: auto; aspect-ratio: auto; object-fit: contain; }
.portal-hero-game-title {
    display: flex; justify-content: space-between; align-items: center; gap: .35rem; padding: .5rem .65rem;
    font-size: clamp(.8rem, 1.4vw, .98rem); line-height: 1.3; font-weight: 750; overflow-wrap: anywhere;
}
.portal-hero-game-title span { color: #daff8d; flex: none; }
@media (min-width: 48.0625rem) {
    .portal-hero:has(.portal-hero-games) { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
    .portal-hero-games[data-count="3"] { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
    .portal-hero-games[data-count="3"] li:first-child { grid-column: auto; grid-row: span 2; }
}
.portal-section { margin-block: clamp(2rem, 4vw, 3.4rem); }
.portal-section h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin: 0 0 .9rem; }
.portal-categories, .portal-local-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .65rem; margin: .75rem 0; }
.portal-categories a, .portal-local-list a { display: inline-block; padding: .32rem .7rem; border: 1px solid var(--site-line); border-radius: 2rem; background: #fff; }
.portal-categories a:is(:hover, :focus-visible), .portal-local-list a:is(:hover, :focus-visible) { background: var(--link-hover-bg); border-color: #c57d4c; }
.portal-grid { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: clamp(.85rem, 2vw, 1.5rem); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portal-grid li { min-width: 0; }
.portal-card { display: grid; height: 100%; border-radius: .7rem; border: 1px solid var(--site-line); overflow: hidden; background: #fff; }
.portal-card:is(:hover, :focus-visible) { background: var(--link-hover-bg); border-color: #c57d4c; }
.portal-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #d9ebf1; }
.portal-card-text { display: grid; align-content: start; gap: .35rem; padding: clamp(.75rem, 1.4vw, 1.1rem); }
.portal-card-text span { color: #3c5c6a; font-size: .88rem; }
.portal-page-heading h1, .portal-game h1, .portal-policy h1 { font-size: clamp(1.8rem, 4.5vw, 3.3rem); }
.portal-game-lead {
    display: flex; align-items: flex-end; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
    padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem);
    border-radius: 1rem; color: #fff; background: linear-gradient(115deg, #103849, #125550 85%);
}
.portal-game-lead.has-artwork { position: relative; isolation: isolate; overflow: hidden; background: #103849; }
.portal-game-lead.has-artwork::before {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background: linear-gradient(90deg, #103849fa, #114547df 48%, #12555066);
}
.portal-game-lead-artwork {
    position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 62%; filter: brightness(.72);
}
.portal-game-copy { flex: 1 1 20rem; min-width: 0; }
.portal-game-lead h1 { margin: 0 0 .4rem; }
.portal-game-lead p { margin: 0; color: #edf9f8; }
.portal-game-lead .portal-categories { margin: 0 0 .8rem; gap: .4rem; }
.portal-game-lead .portal-categories a {
    --link-color: #eefaf8; padding: .2rem .65rem; border-color: #b8e8e680;
    background: #edfffb15; font-size: .875rem;
}
.portal-game-lead .portal-categories a:is(:hover, :focus-visible) { border-color: #ffe3ca; background: var(--link-hover-bg); }
.portal-game-lead :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.portal-game-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.portal-game-guide-link, .portal-game-favorite { gap: .5rem; border-color: #b8e8e680; background: #edfffb15; }
.portal-game-favorite[aria-pressed="true"] svg { fill: currentColor; }
.portal-game-favorite:is(:hover, :focus-visible) { color: var(--link-hover-color); background: var(--link-hover-bg); }
.portal-game-layout { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); margin-top: clamp(1rem, 2.6vw, 1.75rem); align-items: start; }
.portal-play { min-width: 0; }
.portal-play .game-player { max-width: none; margin: 0; border-radius: 1rem; }
.portal-play .game-player:is(.is-expanded, :fullscreen) { border-radius: 0; }
.portal-play .game-status { color: #294c5a; }
.portal-play .game-stage:empty + .portal-game-poster {
    display: grid; place-items: center; padding: clamp(.55rem, 1.4vw, 1rem);
    border: 1px solid #cfdee4; border-radius: .75rem;
    background: radial-gradient(ellipse at 50% 40%, #e5f4f3, #d2e6e9);
}
.portal-game-poster img { display: block; width: min(100%, clamp(13rem, 33vw, 25rem)); height: auto; border-radius: .55rem; box-shadow: 0 .4rem 1.2rem #102a3829; }
.portal-play .game-stage > :is(.arcade-stage, .puzzle-stage, .merge-garden, .solitaire-stage) { width: 100%; max-width: none; }
.portal-play .solitaire-column .solitaire-card { max-width: none; }
.portal-play .game-player:is(.is-expanded, :fullscreen) > .game-stage { max-width: min(72rem, max(38rem, calc((100dvh - 13rem) * 1.38))); }
.portal-game-guide { display: grid; gap: .75rem; min-width: 0; scroll-margin-top: 1rem; }
.portal-detail { padding: clamp(.85rem, 1.8vw, 1.3rem); border: 1px solid var(--site-line); border-radius: .8rem; background: #fff; }
.portal-detail-instructions { border-inline-start: .3rem solid var(--site-accent); background: #eef7f8; }
.portal-detail h2 { margin: 0 0 .4rem; color: #123d50; font-size: clamp(1.12rem, 2vw, 1.35rem); }
.portal-detail p { margin: 0; color: #294c5a; }
.portal-detail-steps { margin: 0; padding-inline-start: 1.45rem; color: #294c5a; }
.portal-detail-steps li + li { margin-block-start: .65rem; }
.portal-detail-steps li::marker { color: var(--site-accent); font-weight: 750; }
.portal-related { padding-top: clamp(1rem, 2vw, 1.5rem); border-top: 1px solid var(--site-line); }
@media (min-width: 58rem) {
    .portal-game-layout { grid-template-columns: minmax(0, 2.15fr) minmax(17rem, 1fr); }
}
.portal-game-layout.portal-game-layout-demo { grid-template-columns: minmax(0, 1fr); }
.portal-play .game-player.game-player-demo {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(.85rem, 2vw, 1.75rem); align-items: start;
    padding: 0; border: 0; background: transparent; box-shadow: none;
}
.game-demo-board { min-width: 0; padding: clamp(.65rem, 2vw, 1.25rem); border: 1px solid var(--site-line); border-radius: 1rem; background: #fff; }
.game-player-demo .game-toolbar { margin-top: 0; }
.game-player-demo .game-status { min-block-size: 2.8em; line-height: 1.4; }
.game-player-demo .game-stage:empty + .game-demo-idle { display: block; }
.game-demo-poster {
    position: relative; overflow: hidden; aspect-ratio: 1; box-sizing: border-box;
    border: 1px solid #adc5d1; border-radius: .6rem; background: radial-gradient(ellipse at 45% 30%, #f0faf6, #d5e9ec);
}
.game-demo-idle[data-family="arcade"] .game-demo-poster { aspect-ratio: 18 / 13; }
.game-demo-idle[data-family="cards"] .game-demo-poster { aspect-ratio: 16 / 10; }
.game-demo-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.game-demo-idle-controls { min-height: 2.75rem; margin-top: .55rem; }
.game-demo-idle-controls span {
    display: grid; place-items: center; min-width: 2.8rem; min-height: 2.75rem; box-sizing: border-box;
    border: 1px solid var(--site-line); border-radius: .45rem; color: #617e8a; background: #f0f6f8;
    font-size: 1.15rem; font-weight: 650;
}
.game-demo-sidebar {
    --game-sidebar-gap: clamp(1rem, 1.6vw, 1.5rem);
    display: grid; gap: var(--game-sidebar-gap); min-width: 0; padding: clamp(.85rem, 2vw, 1.35rem);
    border: 1px solid var(--site-line); border-radius: 1rem; background: #fff;
}
.game-player-demo .game-player-header { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--game-sidebar-gap); }
.game-player-demo .game-scores, .game-player-demo .game-player-header .game-actions, .game-demo-help {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem;
}
.game-player-demo .game-player-header .game-actions, .game-demo-help { padding-block-start: var(--game-sidebar-gap); border-block-start: 1px solid var(--site-line); }
.game-player-demo .game-scores div { min-width: 0; padding: .35rem .45rem; text-align: center; background: transparent; }
.game-player-demo .game-scores div + div { border-inline-start: 1px solid var(--site-line); border-radius: 0; }
.game-player-demo .game-scores dd { font-size: clamp(1.4rem, 2.5vw, 2rem); overflow-wrap: anywhere; }
.game-demo-sidebar :is(.game-actions, .game-demo-help) > button { overflow-wrap: anywhere; min-width: 0; line-height: 1.3; }
.game-demo-help > button { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; }
.game-demo-help > button:is(:hover, :focus-visible), .game-demo-sidebar .portal-game-favorite:is(:hover, :focus-visible) {
    color: var(--link-hover-color); background: var(--link-hover-bg);
}
.game-demo-dialog {
    box-sizing: border-box; width: min(34rem, calc(100% - 2rem)); max-height: min(85dvh, 46rem);
    padding: clamp(1rem, 3vw, 1.65rem); border: 1px solid var(--site-line); border-radius: 1rem;
    color: var(--site-ink); background: #fff; box-shadow: 0 1rem 3rem #0e263744; overflow: auto;
}
.game-demo-dialog::backdrop { background: #0b2038a8; }
.game-demo-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.game-demo-dialog-head h2, .game-demo-dialog p { margin: 0; }
.game-demo-dialog-head button { min-width: 2.75rem; padding: 0; font-size: 1.4rem; line-height: 1; }
.game-demo-result { text-align: center; }
.game-demo-result h2 { margin: 0 0 .75rem; }
.game-demo-result output { display: block; font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.game-demo-result .game-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.25rem; }
.portal-play .game-player.game-player-demo:is(.is-expanded, :fullscreen) {
    background: #e9f3f6; border-radius: 0; padding: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right))
        max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
}
.portal-play .game-player-demo:is(.is-expanded, :fullscreen) > :is(.game-demo-board, .game-demo-sidebar) { max-width: none; margin: 0; }
@media (min-width: 58rem) {
    .portal-play .game-player.game-player-demo { grid-template-columns: minmax(0, 2.35fr) minmax(16rem, 1fr); }
}
@media (max-width: 22rem) {
    .game-player-demo .game-toolbar { gap: .35rem; }
    .game-demo-help > button { padding-inline: .3rem; }
}
.portal-prose { white-space: pre-wrap; max-width: 66ch; }
.portal-policy { max-width: 68ch; }
.portal-empty { margin-top: 1rem; padding: .85rem 1rem; border: 1px solid var(--site-line); border-radius: .6rem; color: #335664; background: #eef6f8; }
.portal-pagination {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: .4rem; margin-block-start: clamp(1.5rem, 3vw, 2.25rem);
}
.portal-pagination :is(.portal-page-number, .portal-page-step) {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    min-width: 2.75rem; min-height: 2.75rem; padding: .3rem .65rem;
    border: 1px solid var(--site-line); border-radius: .65rem; background: #fff;
    font-weight: 700; font-variant-numeric: tabular-nums;
}
.portal-pagination .portal-page-step { gap: .6rem; padding-inline: .8rem; font-size: .92rem; }
.portal-pagination [aria-current="page"] { color: #fff; background: var(--site-accent); border-color: var(--site-accent); }
.portal-pagination a:is(:hover, :focus-visible) { background: var(--link-hover-bg); border-color: #c57d4c; }
.portal-page-gap { padding-inline: .12rem; color: #52707c; }
.portal-page-arrow { width: .48rem; height: .48rem; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
[rel="prev"] .portal-page-arrow { transform: rotate(-135deg); }
@media (max-width: 36rem) {
    .portal-pagination { gap: .25rem; }
    .portal-pagination :is(.portal-page-number, .portal-page-step) { min-width: 2.25rem; padding-inline: .25rem; }
    .portal-page-text { display: none; }
}
.portal-ad { margin: 3rem auto; max-width: 48rem; }
.portal-ad ins { display: block; }
.portal-footer {
    padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2.4rem) 0;
    border: 1px solid var(--site-line); border-radius: .85rem; background: #e9f3f6;
}
.portal-footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.portal-footer-top p { margin: .35rem 0 0; color: #3c5c6a; }
.portal-footer ul { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .6rem; margin: 0; padding: 0; list-style: none; }
.portal-footer nav :is(a, button) {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: .2rem .45rem;
    box-sizing: border-box; border: 0; border-radius: .35rem; font: inherit; font-weight: 700;
}
.portal-footer button { background: transparent; color: var(--site-accent); cursor: pointer; }
.portal-footer nav :is(a, button):is(:hover, :focus-visible) { color: var(--link-hover-color); background: var(--link-hover-bg); }
.portal-footer-bottom { margin: 1rem 0 0; padding-block: .85rem; border-top: 1px solid var(--site-line); color: #3c5c6a; font-size: .875rem; }
@media (max-width: 58rem) {
    .portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.portal-related .portal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 58rem) {
    .portal-related .portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
    .portal { padding-top: 0; }
    .portal-header {
        position: sticky; inset-block-start: 0; z-index: 10; background: #f4f8fa; gap: .55rem;
        margin-inline: calc(-1 * max(var(--portal-gutter), env(safe-area-inset-left)))
            calc(-1 * max(var(--portal-gutter), env(safe-area-inset-right)));
        padding: max(.6rem, env(safe-area-inset-top)) max(var(--portal-gutter), env(safe-area-inset-right))
            .6rem max(var(--portal-gutter), env(safe-area-inset-left));
    }
    .portal-header-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem .45rem; }
    .portal-language { grid-column: 2; grid-row: 1; }
    .portal-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
    .portal-menu-toggle:not([hidden]) {
        display: inline-grid; place-items: center; grid-column: 3; grid-row: 1; padding: 0;
        min-width: 2.75rem; min-height: 2.75rem; color: var(--site-accent);
        border: 1px solid var(--site-line); border-radius: .55rem; background: #fff; cursor: pointer;
    }
    .portal-menu-toggle:is(:hover, :focus-visible, [aria-expanded="true"]) {
        color: var(--link-hover-color); border-color: #c57d4c; background: var(--link-hover-bg);
    }
    .portal-menu-toggle:focus-visible { outline: 3px solid var(--site-accent); outline-offset: 3px; }
    .portal-menu-toggle[aria-expanded="false"] .portal-menu-close-icon,
    .portal-menu-toggle[aria-expanded="true"] .portal-menu-open-icon,
    .portal-header:has(.portal-menu-toggle:not([hidden])[aria-expanded="false"]) .portal-header-tools { display: none; }
    .portal-header-tools {
        display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem;
        padding: .25rem .7rem .7rem; max-height: min(60vh, 30rem); overflow: auto;
        border: 1px solid var(--site-line); border-radius: .7rem; background: #fff;
    }
    .portal-nav, .portal-quick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
    .portal-nav a, .portal-quick a {
        display: flex; align-items: center; min-height: 2.75rem; box-sizing: border-box; overflow-wrap: anywhere;
    }
    .portal-nav a {
        justify-content: space-between; gap: .75rem; padding-inline: .65rem .9rem;
        border-bottom: 1px solid var(--site-line); border-radius: 0;
    }
    .portal-nav a::after {
        content: ''; flex: 0 0 .45rem; height: .45rem; border: solid currentColor;
        border-width: 2px 2px 0 0; transform: rotate(45deg);
    }
    .portal-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: .45rem; }
    .portal-quick a {
        --link-color: var(--site-accent);
        justify-content: center; padding-inline: .35rem; text-align: center; font-weight: 700;
        border: 1px solid currentColor; border-radius: .5rem;
    }
    .portal-quick a:first-child {
        --link-color: #fff; --link-hover-color: var(--link-button-hover-color);
        border-color: transparent; background: var(--site-accent);
    }
    .portal-quick a:first-child:is(:hover, :focus-visible) { background: var(--link-button-hover-bg); }
    .portal-hero { gap: 1rem; }
    .portal-hero-games li:not(:first-child) { display: none; }
    .portal-hero-games, .portal-grid, .portal-related .portal-grid { grid-template-columns: minmax(0, 1fr); }
    .portal-back-to-top:not([hidden]) {
        display: inline-flex; align-items: center; gap: .35rem; position: fixed; z-index: 9;
        inset-inline-end: max(1rem, env(safe-area-inset-right)); inset-block-end: max(1rem, env(safe-area-inset-bottom));
        min-height: 2.75rem; padding: .4rem .85rem; border: 1px solid #fff; border-radius: 2rem;
        font: inherit; font-size: .9rem; font-weight: 700; color: #fff; background: var(--site-accent);
        box-shadow: 0 .25rem .9rem #102a3833; cursor: pointer;
    }
    .portal-back-to-top:is(:hover, :focus-visible) { background: var(--link-button-hover-bg); }
    .portal-back-to-top:focus-visible { outline: 3px solid var(--site-accent); outline-offset: 3px; }
}
