/* Mega888 Wonder - modern clean colorful portal (homes layout, fresh UI) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-page: #e8f1ff;
    --bg-page-2: #f3e9ff;
    --shell: #ffffff;
    --ink: #1a2332;
    --muted: #5b6b7c;
    --line: #d7e3f4;
    --primary: #2f6bff;
    --primary-deep: #1d4ed8;
    --accent: #7c3aed;
    --accent-soft: #ede9fe;
    --teal: #0d9488;
    --teal-soft: #ccfbf1;
    --coral: #f97316;
    --gold: #f59e0b;
    --success: #16a34a;
    --danger: #dc2626;
    --header-1: #312e81;
    --header-2: #1d4ed8;
    --header-3: #0ea5e9;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(47, 107, 255, 0.10), 0 2px 8px rgba(26, 35, 50, 0.06);
    --shadow-soft: 0 4px 16px rgba(26, 35, 50, 0.06);
    --shell-w: 1040px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(124, 58, 237, 0.16), transparent 55%),
        radial-gradient(900px 420px at 100% 0%, rgba(14, 165, 233, 0.18), transparent 50%),
        linear-gradient(180deg, var(--bg-page), var(--bg-page-2) 40%, #eef6ff 100%);
    min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { color: var(--accent); text-decoration: underline; }
a:visited { color: var(--primary-deep); }
img { border: 0; max-width: 100%; height: auto; vertical-align: middle; }
code {
    font-size: 0.9em;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #ddd6fe;
}

.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--primary); color: #fff; padding: 8px 12px; z-index: 100;
    border-radius: 8px;
}
.skip:focus { left: 12px; top: 12px; }

/* Top bar */
#topbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid rgba(215, 227, 244, 0.9);
}
#topbar .inner {
    width: var(--shell-w); max-width: calc(100% - 24px);
    margin: 0 auto;
    padding: 10px 4px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px;
}
#topbar a { color: var(--primary); text-decoration: none; margin: 0 4px; font-weight: 700; }
#topbar a:hover { color: var(--accent); }
#topbar .sep { color: #a8b8cc; margin: 0 2px; }

/* Shell */
#shell {
    width: var(--shell-w); max-width: calc(100% - 24px);
    margin: 16px auto 36px;
    background: var(--shell);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Header */
#header {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.12), transparent 40%),
        linear-gradient(120deg, var(--header-1) 0%, var(--header-2) 48%, var(--header-3) 100%);
    padding: 18px 0 14px;
    position: relative;
}
#header::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #f59e0b, #22d3ee, #a78bfa);
}
#header .brand-row {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 14px; padding: 0 22px 4px;
}
#header .logo-link {
    display: inline-flex; align-items: center; gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    padding: 8px 12px;
    border: 0;
    border-radius: 14px;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
#header .logo-link img { display: block; height: 36px; width: auto; }
#header .logo-text {
    font-size: 16px; font-weight: 800; color: #1e293b; line-height: 1.15;
    letter-spacing: -0.02em;
}
#header .logo-text span {
    color: var(--accent);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
#header .tagline {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    text-align: right;
}
#header .tagline strong {
    color: #fff;
    display: block;
    font-size: 15px;
    letter-spacing: -0.01em;
    font-weight: 800;
}
#header .tagline span { opacity: .9; }

/* Nav */
#nav {
    background: #f8fbff;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
    width: 100%;
}
#nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    width: 100%;
    align-items: center;
}
#nav li { margin: 0; flex: 1 1 auto; min-width: 0; }
#nav a {
    display: block;
    padding: 10px 12px;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
    white-space: nowrap;
}
#nav a:hover, #nav a:focus {
    background: #eef4ff;
    color: var(--primary-deep);
    border-color: #c7d7fe;
}
#nav a.active {
    background: #fff;
    color: var(--primary-deep);
    border-color: #bfdbfe;
    box-shadow: var(--shadow-soft);
}
#nav a.cta-nav {
    background: linear-gradient(135deg, var(--coral), #fb923c 40%, var(--gold));
    color: #1a1000;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}
#nav a.cta-nav:hover {
    filter: brightness(1.05);
    color: #000;
}

/* Breadcrumb */
#breadcrumb {
    background: linear-gradient(90deg, #f5f3ff, #eff6ff);
    border-bottom: 1px solid var(--line);
    padding: 10px 22px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}
#breadcrumb a { color: var(--primary); font-weight: 700; }
#breadcrumb strong { color: var(--ink); }

/* Hero */
#hero {
    padding: 16px 18px 8px;
    background: linear-gradient(180deg, #f0f7ff, #fff);
    border-bottom: 1px solid var(--line);
}
#hero .banner-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    background: #0f172a;
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
#hero .banner-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Main grid */
#main {
    display: table;
    width: 100%;
    table-layout: fixed;
}
#content {
    display: table-cell;
    width: 68%;
    vertical-align: top;
    padding: 22px 24px 32px;
    border-right: 1px solid var(--line);
}
#content.full {
    width: 100%;
    border-right: 0;
}
#sidebar {
    display: table-cell;
    width: 32%;
    vertical-align: top;
    padding: 18px 14px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}

h1 {
    font-size: 28px;
    color: var(--ink);
    border-bottom: 0;
    padding-bottom: 0;
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 800;
    position: relative;
}
h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 10px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--accent), #22d3ee);
}
h2.page-subhead {
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 14px;
    line-height: 1.4;
}
h2 {
    font-size: 16px;
    color: #1e3a8a;
    background: linear-gradient(90deg, #eef2ff, #ecfeff 55%, #fff);
    border-left: 4px solid var(--primary);
    border-bottom: 0;
    border-radius: 0 12px 12px 0;
    padding: 10px 14px;
    margin: 26px 0 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
    scroll-margin-top: 18px;
}
h3 {
    font-size: 14px;
    color: #334155;
    margin: 16px 0 8px;
    border-bottom: 0;
    padding-bottom: 0;
    font-weight: 800;
}
p { margin: 0 0 12px; color: #334155; }
ul, ol { margin: 0 0 14px 18px; color: #334155; }
li { margin-bottom: 6px; }
strong { color: #0f172a; }

.lead {
    font-size: 15px;
    color: #334155;
    background: linear-gradient(135deg, #fff7ed, #fefce8);
    border: 1px solid #fed7aa;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}
.updated { font-size: 12px; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.notice {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    padding: 12px 14px;
    margin: 14px 0;
    font-size: 13px;
    border-radius: var(--radius-sm);
}
.notice strong { color: var(--primary-deep); }
.notice.warn {
    background: #fff7ed;
    border-color: #fdba74;
}

/* Buttons */
.btn-row { margin: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-hero {
    margin: 14px 0 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 440px;
}
.btn-hero-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1;
}
.btn-hero-divider::before,
.btn-hero-divider::after {
    content: "";
    flex: 1 1 auto;
    border-top: 1px dashed #cbd5e1;
}
.btn-hero-divider span { flex: 0 0 auto; }
.btn-hero .btn-download {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
    letter-spacing: .01em;
}
.btn-hero-links {
    margin: 2px 0 0;
    text-align: center;
    font-size: 13px;
}
.btn-hero-links a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.btn-hero-links a:hover { color: var(--accent); text-decoration: underline; }
.btn-hero-links .sep { margin: 0 8px; color: #94a3b8; }

.btn {
    display: inline-block;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    text-decoration: none !important;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-primary {
    background: linear-gradient(135deg, #fb923c, #f97316 45%, #ea580c);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}
.btn-primary:hover { color: #fff !important; }
.btn-secondary {
    background: linear-gradient(135deg, #60a5fa, #2563eb 50%, #1d4ed8);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}
.btn-secondary:hover { color: #fff !important; }
.btn-green {
    background: linear-gradient(135deg, #34d399, #10b981 45%, #059669);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.25);
}
.btn-green:hover { color: #fff !important; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { display: block; text-align: center; }

/* Tables */
.platform-table, .data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 12px 0 16px;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.platform-table th, .data-table th {
    background: linear-gradient(135deg, #312e81, #2563eb 60%, #0284c7);
    color: #fff;
    text-align: left;
    padding: 11px 12px;
    border: 0;
    font-size: 12px;
    font-weight: 700;
}
.platform-table td, .data-table td {
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 11px 12px;
    background: #fff;
    vertical-align: top;
}
.platform-table td:last-child,
.data-table td:last-child,
.platform-table th:last-child,
.data-table th:last-child { border-right: 0; }
.platform-table tr:nth-child(even) td,
.data-table tr:nth-child(even) td { background: #f8fbff; }
.platform-table .os, .data-table .os {
    font-weight: 800; color: var(--primary-deep); white-space: nowrap;
}

/* Boxes */
.box {
    border: 1px solid var(--line);
    background: #fff;
    margin: 0 0 14px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.box .box-h {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 14px;
    border-bottom: 0;
}
.box .box-b { padding: 14px; font-size: 14px; }
.box.gold .box-h {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
}
.box.green .box-h {
    background: linear-gradient(135deg, #10b981, #0d9488);
}

/* FAQ */
.faq-item {
    border: 1px solid var(--line);
    margin-bottom: 10px;
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.faq-item h3 {
    margin: 0;
    border: 0;
    background: linear-gradient(90deg, #eef2ff, #f0f9ff);
    padding: 12px 14px;
    font-size: 13px;
    color: #1e3a8a;
}
.faq-item p {
    padding: 12px 14px;
    margin: 0;
    font-size: 14px;
}

/* Steps */
.steps { list-style: none; margin-left: 0; counter-reset: step; }
.steps li {
    position: relative;
    padding: 12px 14px 12px 52px;
    margin-bottom: 10px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute; left: 12px; top: 12px;
    width: 28px; height: 28px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    line-height: 28px;
    text-align: center;
    border-radius: 999px;
    border: 0;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

/* Cards */
.cards {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 12px 0;
    margin: 8px -12px 16px;
}
.card {
    display: table-cell;
    width: 33.33%;
    vertical-align: top;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.card .ch {
    background: linear-gradient(135deg, #312e81, #2563eb);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 12px;
    text-align: center;
    border-bottom: 0;
}
.card .cb { padding: 14px 12px; text-align: center; font-size: 13px; }
.card .meta { color: var(--muted); margin: 6px 0 12px; font-size: 12px; }

.download-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 0 0 22px;
}
.download-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.download-card .ch {
    background: linear-gradient(135deg, #312e81, #2563eb 55%, #06b6d4);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 12px;
    text-align: center;
}
.download-card:nth-child(2) .ch {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}
.download-card:nth-child(3) .ch {
    background: linear-gradient(135deg, #059669, #0ea5e9);
}
.download-card .cb {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    font-size: 13px;
}
.download-card .meta {
    color: var(--muted);
    margin: 6px 0 12px;
    font-size: 12px;
    min-height: 52px;
    line-height: 1.5;
}
.platform-download-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding: 11px 14px;
    font-size: 13px;
}

/* Sidebar widgets */
.widget {
    border: 1px solid var(--line);
    background: #fff;
    margin-bottom: 14px;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.widget h3 {
    margin: 0;
    border: 0;
    background: linear-gradient(135deg, #312e81, #2563eb);
    color: #fff;
    font-size: 12px;
    padding: 11px 14px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 800;
}
.widget:nth-child(2) h3 {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}
.widget:nth-child(3) h3 {
    background: linear-gradient(135deg, #0d9488, #0284c7);
}
.widget:nth-child(4) h3 {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
}
.widget .wbody { padding: 14px; font-size: 13px; }
.widget ul { margin: 0 0 0 16px; }
.widget li { margin-bottom: 6px; }
.widget .icon-app {
    display: block;
    margin: 0 auto 10px;
    width: 84px;
    height: auto;
    border: 0;
    background: #0f172a;
    padding: 8px;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-list li { margin: 0 0 8px; }
.dl-list a {
    display: block;
    text-align: center;
    text-decoration: none !important;
    font-weight: 800;
    padding: 11px 8px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff !important;
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.25);
}
.dl-list li:nth-child(2) a {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}
.dl-list li:nth-child(3) a {
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 8px 16px rgba(5, 150, 105, 0.22);
}
.dl-list a:hover { filter: brightness(1.05); }
.meta-list { list-style: none; margin: 0; padding: 0; font-size: 12px; color: #475569; }
.meta-list li {
    padding: 7px 0;
    border-bottom: 1px dashed #dbe4f0;
    display: flex; justify-content: space-between; gap: 8px;
}
.meta-list li:last-child { border-bottom: 0; }
.meta-list span { color: var(--primary-deep); font-weight: 800; }

.badges { margin: 8px 0 0; }
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    margin: 0 4px 4px 0;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
}

.banks-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0 0;
}
.banks-logos img {
    display: block;
    height: 28px;
    width: auto;
    background: #fff;
    border: 1px solid var(--line);
    padding: 5px 8px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 14px 0;
}
.game-tile {
    border: 1px solid var(--line);
    background: #fff;
    text-align: center;
    padding: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    color: #1e3a8a;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.game-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
}
.game-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0f172a;
}
.game-tile .gt-body { padding: 10px 8px 0; }
.game-tile h3 {
    margin: 0 0 4px;
    font-size: 13px;
    color: #1e293b;
}
.game-tile .rtp { color: var(--muted); font-weight: 600; margin-top: 2px; }
.game-tile a {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary-deep);
    text-decoration: none;
}
.game-tile a:hover { background: var(--primary); color: #fff; }

.cta-box {
    border: 0;
    background: linear-gradient(135deg, #fff7ed, #eff6ff);
    margin: 22px 0 8px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid #fed7aa;
}
.cta-box .box-h {
    background: linear-gradient(135deg, #f97316, #ea580c 40%, #7c3aed);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 16px;
}
.cta-box .box-b { padding: 16px; font-size: 14px; }
.cta-box .btn-row { margin-bottom: 0; }

/* Footer */
#footer {
    clear: both;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 55%, #312e81);
    color: #cbd5e1;
    font-size: 13px;
    border-top: 0;
    padding: 22px;
}
#footer a { color: #fde68a; text-decoration: none; font-weight: 700; }
#footer a:hover { text-decoration: underline; color: #fff; }
#footer .fcols { display: table; width: 100%; margin-bottom: 14px; }
#footer .fcol {
    display: table-cell; width: 25%; vertical-align: top; padding-right: 14px;
}
#footer h4 {
    color: #fff; font-size: 13px; margin: 0 0 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35); padding-bottom: 6px;
    font-weight: 800;
}
#footer ul { list-style: none; margin: 0; padding: 0; }
#footer li { margin-bottom: 5px; }
#footer .copy {
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    padding-top: 12px;
    text-align: center;
    color: #94a3b8;
}
#footer .copy strong { color: #e2e8f0; }

.k { color: var(--primary-deep); font-weight: 800; }

@media screen and (max-width: 900px) {
    body { overflow-x: hidden; }
    #shell { margin: 10px auto 24px; border-radius: 18px; }
    #topbar .inner, #shell { width: 100%; max-width: calc(100% - 16px); }
    #main, #content, #sidebar, #footer .fcols, #footer .fcol {
        display: block; width: 100%;
    }
    #content { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 16px 24px; }
    #sidebar { padding: 16px; }
    #header .tagline { text-align: left; }
    #header .brand-row { padding: 0 16px 4px; }
    #nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #nav::-webkit-scrollbar { display: none; height: 0; }
    #nav ul { flex-wrap: nowrap; width: max-content; min-width: 100%; }
    #nav li { flex: 0 0 auto; }
    #nav a { padding: 10px 14px; font-size: 13px; }
    .cards, .card { display: block; width: 100%; }
    .card { margin-bottom: 12px; }
    .download-cards { grid-template-columns: 1fr; gap: 12px; }
    .download-card .meta { min-height: 0; }
    #footer .fcol { padding: 0 0 14px; }
    .btn-hero { max-width: none; }
    #hero .banner-frame { aspect-ratio: 16 / 9; }
    h1 { font-size: 24px; }
}

@media screen and (max-width: 480px) {
    #content { padding: 16px 14px 22px; }
    #sidebar { padding: 14px; }
    #header { padding: 14px 0 12px; }
    #header .brand-row { gap: 10px; }
    #header .tagline { font-size: 12px; }
    h1 { font-size: 22px; }
    .lead, .notice { padding: 12px; }
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
