:root {
    --bg: #f5f0e7;
    --paper: #fffdf9;
    --paper-strong: #ffffff;
    --ink: #181817;
    --muted: #6c6860;
    --line: #dcd5c9;
    --line-dark: #bdb5a8;
    --coral: #ff6f61;
    --yellow: #f6c453;
    --blue: #5b8def;
    --green: #72b58c;
    --shadow: 0 20px 55px rgba(36, 31, 24, .08);
    --radius: 24px;
    --radius-sm: 15px;
    --shell: 1180px;
    --focus: 0 0 0 4px rgba(91, 141, 239, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link {
    position: fixed; top: 10px; left: 10px; z-index: 1000;
    padding: 11px 16px; border-radius: 10px; background: var(--ink); color: #fff;
    transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky; top: 0; z-index: 80;
    border-bottom: 1px solid rgba(220, 213, 201, .72);
    background: rgba(245, 240, 231, .9);
    backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.025em; }
.brand span { font-size: 1.08rem; }
.brand img { flex: 0 0 auto; }
.main-nav { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.main-nav a {
    position: relative; padding: 10px 12px; border-radius: 12px;
    color: #4e4b46; font-weight: 700; font-size: .94rem;
    transition: background .18s ease, color .18s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { background: rgba(255,255,255,.72); color: var(--ink); }
.main-nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 4px; background: var(--coral); }
.header-play { padding: 11px 18px; border-radius: 13px; background: var(--ink); color: #fff; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease; }
.header-play:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(24,24,23,.17); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.72); align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 20px; height: 2px; border-radius: 4px; background: var(--ink); }

main { min-height: 60vh; }
.eyebrow { display: inline-block; color: #665f54; font-size: .77rem; font-weight: 900; letter-spacing: .14em; }
.section-kicker { margin-bottom: 8px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.04em; }
h1 { font-size: clamp(2.55rem, 5.2vw, 5.45rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.35rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 14px; font-weight: 850; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; box-shadow: var(--focus); }
.button-primary { background: var(--coral); color: var(--ink); border-color: #e75c50; }
.button-dark { background: var(--ink); color: #fff; }
.button-secondary { background: var(--paper); border-color: var(--line); }
.button-ghost { background: transparent; border-color: var(--line-dark); }
.button-small { min-height: 40px; padding: 9px 14px; border-radius: 11px; font-size: .9rem; }
.button[disabled] { opacity: .48; cursor: not-allowed; transform: none; }

.hero { padding: 72px 0 48px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); align-items: center; gap: clamp(38px, 7vw, 92px); }
.hero-copy h1 { max-width: 760px; margin: 18px 0 24px; }
.hero-copy h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero-copy h1 em::after { content: ""; position: absolute; left: 2%; right: 0; bottom: .04em; height: .16em; z-index: -1; border-radius: 20px; background: var(--yellow); transform: rotate(-1.5deg); }
.hero-copy > p { max-width: 670px; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: #5c584f; font-size: .89rem; font-weight: 700; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.hero-board { position: relative; min-height: 530px; }
.hero-board::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; top: 30px; left: 40px; background: rgba(246,196,83,.28); filter: blur(2px); }
.pixel-board { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); gap: 12px; transform: rotate(2.4deg); }
.pixel-tile { min-height: 82px; border-radius: 22px; border: 2px solid var(--ink); box-shadow: 8px 9px 0 var(--ink); transition: transform .2s ease; }
.pixel-tile:nth-child(1), .pixel-tile:nth-child(9), .pixel-tile:nth-child(17) { background: var(--coral); }
.pixel-tile:nth-child(2), .pixel-tile:nth-child(8), .pixel-tile:nth-child(19) { background: var(--yellow); }
.pixel-tile:nth-child(4), .pixel-tile:nth-child(13), .pixel-tile:nth-child(21) { background: var(--blue); }
.pixel-tile:nth-child(5), .pixel-tile:nth-child(11), .pixel-tile:nth-child(24) { background: var(--green); }
.pixel-tile.is-dark { background: var(--ink); }
.pixel-tile.is-paper { background: var(--paper); }
.pixel-tile.is-wide { grid-column: span 2; }
.pixel-tile.is-tall { grid-row: span 2; }
.pixel-tile.play-tile { display: grid; place-items: center; background: var(--ink); color: #fff; }
.pixel-tile.play-tile svg { width: 54%; fill: currentColor; }
.hero-board:hover .pixel-tile:nth-child(3n) { transform: translateY(-5px); }

.trust-strip { padding: 20px 0 64px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.56); }
.trust-item { padding: 22px 26px; display: flex; gap: 15px; align-items: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-icon { width: 45px; height: 45px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); font-size: 1.15rem; }
.trust-item strong { display: block; }
.trust-item small { display: block; color: var(--muted); margin-top: 2px; }

.section { padding: 76px 0; }
.section-white { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-heading h2 { max-width: 720px; margin: 8px 0 0; }
.section-heading p { max-width: 490px; margin-bottom: 5px; }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card { position: relative; min-height: 295px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-strong); box-shadow: 0 10px 30px rgba(36,31,24,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-dark); }
.game-card a { display: flex; flex-direction: column; min-height: inherit; padding: 28px; }
.game-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.game-icon { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 18px; border: 1px solid rgba(24,24,23,.18); }
.game-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.game-card[data-accent="coral"] .game-icon { background: var(--coral); }
.game-card[data-accent="blue"] .game-icon { background: var(--blue); }
.game-card[data-accent="yellow"] .game-icon { background: var(--yellow); }
.game-card[data-accent="green"] .game-icon { background: var(--green); }
.game-number { font-size: .75rem; font-weight: 900; letter-spacing: .13em; color: #7a756d; }
.game-card h3 { margin: 31px 0 10px; font-size: clamp(1.5rem, 2.5vw, 2.15rem); }
.game-card p { max-width: 420px; margin-bottom: 26px; }
.game-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .88rem; font-weight: 800; }
.game-card-arrow { width: 41px; height: 41px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 1.18rem; transition: transform .2s ease; }
.game-card:hover .game-card-arrow { transform: translateX(4px); }

.daily-panel { display: grid; grid-template-columns: 1fr .72fr; gap: 24px; }
.streak-card, .rank-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-strong); padding: 30px; }
.streak-card { background: var(--ink); color: #fff; }
.streak-card p { color: #c8c5be; }
.streak-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.streak-value { font-size: 4.4rem; line-height: 1; font-weight: 950; letter-spacing: -.08em; }
.streak-label { color: #aaa59b; font-weight: 800; }
.day-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 30px; }
.day-dot { aspect-ratio: 1; border: 1px solid #494946; border-radius: 12px; display: grid; place-items: center; color: #8f8d87; font-size: .78rem; font-weight: 800; }
.day-dot.done { background: var(--green); border-color: var(--green); color: var(--ink); }
.rank-list { display: grid; gap: 13px; margin-top: 22px; }
.rank-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-index { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--bg); font-size: .82rem; font-weight: 900; }
.rank-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 780; }
.rank-score { font-variant-numeric: tabular-nums; font-weight: 900; }
.empty-state { padding: 28px 0; text-align: center; color: var(--muted); }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.6); }
.how-index { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 13px; box-shadow: 4px 4px 0 var(--ink); font-weight: 950; }
.how-card h3 { margin: 28px 0 10px; }

.cta-band { margin: 70px auto 0; border-radius: 30px; overflow: hidden; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 9px 10px 0 var(--ink); }
.cta-inner { min-height: 250px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px; }
.cta-inner h2 { max-width: 680px; margin: 0; }

.page-hero { padding: 72px 0 42px; }
.page-hero h1 { max-width: 890px; margin: 13px 0 20px; font-size: clamp(2.8rem, 5vw, 5rem); }
.page-hero p { max-width: 720px; font-size: 1.13rem; }

/* Game page */
.game-page { padding: 46px 0 90px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 26px; }
.game-shell { border: 1px solid var(--line); border-radius: 28px; background: var(--paper-strong); overflow: hidden; box-shadow: var(--shadow); }
.game-header { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.game-title-wrap { display: flex; align-items: center; gap: 15px; }
.game-title-wrap .game-icon { width: 48px; height: 48px; border-radius: 15px; }
.game-title-wrap h1 { margin: 0 0 2px; font-size: clamp(1.4rem, 3vw, 2rem); }
.game-title-wrap p { margin: 0; font-size: .87rem; }
.game-meta { display: flex; align-items: center; gap: 9px; }
.meta-pill { padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: #5b574f; font-size: .76rem; font-weight: 850; }
.game-stage { min-height: 590px; padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; align-items: center; }
.game-instructions { width: min(100%, 680px); display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; color: var(--muted); font-size: .91rem; }
.game-instructions strong { color: var(--ink); }
.game-status { min-height: 30px; margin: 14px 0 3px; color: #5f5b54; font-weight: 750; text-align: center; }
.game-status.is-error { color: #a72e2e; }
.game-status.is-success { color: #22613c; }
.game-controls { width: min(100%, 650px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 17px; }
.guess-form { width: min(100%, 600px); display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 19px; }
.text-input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-dark); border-radius: 14px; background: #fff; color: var(--ink); }
.text-input::placeholder { color: #aaa59d; }
.hint-box { width: min(100%, 650px); margin-top: 14px; padding: 13px 16px; border-radius: 13px; background: #f7f2e8; border: 1px solid var(--line); color: #615d56; font-size: .9rem; }
.hint-box[hidden] { display: none; }

.reveal-frame { width: min(100%, 650px); aspect-ratio: 4 / 3; position: relative; overflow: hidden; border: 2px solid var(--ink); border-radius: 22px; background: #ddd; box-shadow: 7px 7px 0 var(--ink); }
.reveal-frame canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.reveal-levels { width: min(100%, 650px); display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin-top: 19px; }
.reveal-levels span { height: 7px; border-radius: 10px; background: var(--line); }
.reveal-levels span.active { background: var(--coral); }

.nonogram-wrap { width: min(100%, 610px); overflow: auto; padding: 10px; }
.nonogram-board { display: grid; margin: 0 auto; user-select: none; touch-action: manipulation; }
.nonogram-clue { display: grid; place-items: center; min-height: 45px; padding: 4px; color: #56514a; font-size: .72rem; font-weight: 850; text-align: center; }
.nonogram-clue.col { align-items: end; line-height: 1.2; }
.nonogram-cell { aspect-ratio: 1; min-width: 48px; border: 1px solid #b8b2a8; background: #fff; cursor: pointer; position: relative; }
.nonogram-cell:hover { background: #f4f0e8; }
.nonogram-cell.filled { background: var(--ink); }
.nonogram-cell.marked::before, .nonogram-cell.marked::after { content: ""; position: absolute; left: 15%; right: 15%; top: 48%; height: 2px; background: #9a948a; }
.nonogram-cell.marked::before { transform: rotate(45deg); }
.nonogram-cell.marked::after { transform: rotate(-45deg); }
.nonogram-tools { display: flex; gap: 8px; margin-top: 20px; }
.tool-toggle.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.word-clue { width: min(100%, 430px); aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.word-clue img { width: 100%; height: 100%; object-fit: cover; }
.word-board { display: grid; gap: 7px; margin: 23px 0 17px; }
.word-row { display: flex; gap: 7px; justify-content: center; }
.word-cell { width: clamp(42px, 7vw, 58px); aspect-ratio: 1; display: grid; place-items: center; border: 2px solid #c8c2b7; border-radius: 10px; background: #fff; font-size: clamp(1.25rem, 4vw, 1.75rem); font-weight: 950; text-transform: uppercase; transform-style: preserve-3d; transition: transform .25s ease, background .2s ease, color .2s ease; }
.word-cell.filled { border-color: #817c73; }
.word-cell.correct { background: var(--green); border-color: #4c8a64; }
.word-cell.present { background: var(--yellow); border-color: #c69a34; }
.word-cell.absent { background: #89857e; border-color: #77736c; color: #fff; }
.keyboard { width: min(100%, 690px); display: grid; gap: 7px; }
.keyboard-row { display: flex; justify-content: center; gap: 6px; }
.key { min-width: 38px; height: 49px; padding: 0 10px; border: 0; border-radius: 9px; background: #e2ddd4; font-size: .88rem; font-weight: 900; cursor: pointer; }
.key.wide { min-width: 70px; font-size: .72rem; }
.key.correct { background: var(--green); }
.key.present { background: var(--yellow); }
.key.absent { background: #89857e; color: #fff; }

.map-frame { width: min(100%, 650px); aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid var(--ink); border-radius: 22px; background: #edf3f7; box-shadow: 7px 7px 0 var(--ink); }
.map-frame img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: filter .3s ease, transform .3s ease; }

.game-sidebar { display: grid; gap: 18px; }
.side-card { border: 1px solid var(--line); border-radius: 21px; background: rgba(255,255,255,.65); padding: 22px; }
.side-card h2 { margin-bottom: 13px; font-size: 1.12rem; letter-spacing: -.02em; }
.side-card p { font-size: .9rem; }
.side-score { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.side-score:last-child { border-bottom: 0; }
.side-score strong { font-size: .92rem; }
.side-score span { font-weight: 900; font-variant-numeric: tabular-nums; }
.rules-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.rules-list li { display: flex; gap: 10px; color: #5d5952; font-size: .89rem; }
.rules-list li::before { content: ""; width: 8px; height: 8px; flex: 0 0 auto; margin-top: 7px; border-radius: 50%; background: var(--coral); }

.result-panel { width: min(100%, 650px); margin: auto; padding: clamp(24px, 5vw, 44px); border: 2px solid var(--ink); border-radius: 25px; background: var(--yellow); box-shadow: 8px 8px 0 var(--ink); text-align: center; }
.result-panel[hidden] { display: none; }
.result-badge { width: 68px; height: 68px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 20px; background: var(--ink); color: #fff; font-size: 1.7rem; }
.result-panel h2 { margin-bottom: 10px; font-size: clamp(2rem, 5vw, 3rem); }
.result-panel p { color: #4d4638; }
.result-score { margin: 18px 0; font-size: clamp(3.5rem, 8vw, 5.4rem); line-height: .9; font-weight: 950; letter-spacing: -.08em; }
.result-score small { display: block; margin-top: 10px; font-size: .85rem; letter-spacing: .04em; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 22px 0; }
.result-stat { padding: 13px 8px; border: 1px solid rgba(24,24,23,.27); border-radius: 13px; background: rgba(255,255,255,.25); }
.result-stat strong { display: block; font-size: 1.12rem; }
.result-stat span { font-size: .74rem; font-weight: 800; color: #645c49; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.nickname-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin: 18px auto 0; max-width: 500px; }
.share-box { margin-top: 18px; padding: 14px; border: 1px solid rgba(24,24,23,.24); border-radius: 14px; background: rgba(255,255,255,.32); word-break: break-all; font-size: .83rem; }
.share-box[hidden] { display: none; }

.duel-card { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.duel-player { text-align: center; }
.duel-avatar { width: 68px; height: 68px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 20px; background: var(--blue); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-size: 1.4rem; font-weight: 950; }
.duel-player:last-child .duel-avatar { background: var(--coral); }
.duel-score { font-size: 2.2rem; font-weight: 950; letter-spacing: -.05em; }
.duel-vs { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 950; }

/* Leaderboard */
.leaderboard-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.leaderboard-tabs a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.6); font-weight: 800; font-size: .9rem; }
.leaderboard-tabs a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.leaderboard-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper-strong); }
.leaderboard-table th, .leaderboard-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.leaderboard-table th { background: #eee8dd; color: #5e5a52; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.leaderboard-table tr:last-child td { border-bottom: 0; }
.leaderboard-table td:last-child, .leaderboard-table th:last-child { text-align: right; }
.medal { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--bg); font-weight: 900; }
.medal.gold { background: var(--yellow); }
.medal.silver { background: #d8dce1; }
.medal.bronze { background: #d9a170; }

/* Content/legal */
.content-wrap { width: min(calc(100% - 40px), 860px); margin: 0 auto; padding: 68px 0 92px; }
.content-wrap h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.content-wrap h2 { margin-top: 42px; font-size: 1.65rem; letter-spacing: -.025em; }
.content-wrap h3 { margin-top: 28px; }
.content-wrap p, .content-wrap li { color: #57534c; }
.content-wrap a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.content-wrap ul { padding-left: 20px; }
.content-card { margin: 28px 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.contact-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
.legal-page { width: min(calc(100% - 40px), 1040px); }
.legal-page > h1 { max-width: 900px; }
.legal-lead { max-width: 860px; margin-top: 18px; font-size: 1.08rem; line-height: 1.75; }
.legal-summary { margin: 30px 0 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-strong); }
.legal-summary > div { min-width: 0; padding: 19px 20px; border-right: 1px solid var(--line); }
.legal-summary > div:last-child { border-right: 0; }
.legal-summary span, .legal-summary strong, .legal-summary a { display: block; }
.legal-summary span { margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.legal-summary strong, .legal-summary a { overflow-wrap: anywhere; font-size: .9rem; line-height: 1.45; }
.legal-grid { display: grid; gap: 13px; margin: 24px 0; }
.legal-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legal-card { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.62); }
.legal-card h3 { margin: 0 0 8px; font-size: 1rem; }
.legal-card p { margin: 0; font-size: .9rem; line-height: 1.65; }
.legal-table { margin: 24px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-strong); }
.legal-table-row { display: grid; grid-template-columns: minmax(175px, .72fr) minmax(0, 2fr); border-bottom: 1px solid var(--line); }
.legal-table-row:last-child { border-bottom: 0; }
.legal-table-row > * { min-width: 0; padding: 15px 18px; overflow-wrap: anywhere; }
.legal-table-row > * + * { border-left: 1px solid var(--line); }
.legal-table-row strong { font-size: .88rem; }
.legal-table-row span { color: #57534c; font-size: .88rem; line-height: 1.6; }
.legal-table-head { background: #eee8dd; }
.legal-table-head span { color: #5e5a52; font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.cookie-table-row { grid-template-columns: minmax(190px, 1.05fr) minmax(120px, .7fr) minmax(0, 2fr); }
.legal-list { display: grid; gap: 9px; }
.legal-list li { line-height: 1.65; }
.legal-callout { margin: 28px 0; padding: 21px 23px; border: 1px solid #9dbbb4; border-radius: 17px; background: #eaf6f2; }
.legal-callout strong { display: block; margin-bottom: 6px; }
.legal-callout p { margin: 0; }
.gdpr-request-card, .cookie-control-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gdpr-request-card p, .cookie-control-card p { margin: 5px 0 0; }
.gdpr-request-card .button, .cookie-control-card .button { flex: 0 0 auto; text-decoration: none; }

.ad-shell { min-height: 90px; margin: 24px 0; overflow: hidden; border-radius: 14px; }

.site-footer { padding: 64px 0 28px; background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 50px; }
.brand-footer { margin-bottom: 17px; }
.footer-brand p { max-width: 280px; color: #aaa79f; }
.footer-contact { display: inline-block; margin-top: 8px; color: #fff; font-size: .88rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.footer-column { display: flex; flex-direction: column; gap: 9px; }
.footer-column h2 { margin-bottom: 7px; color: #8c8982; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-column a, .footer-link-button { color: #d3d0c9; font-size: .92rem; }
.footer-column a:hover, .footer-link-button:hover { color: #fff; }
.footer-link-button { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.footer-bottom { margin-top: 55px; padding-top: 23px; border-top: 1px solid #343431; display: flex; justify-content: space-between; gap: 20px; color: #85827c; font-size: .8rem; }

.cookie-panel { position: fixed; inset: 0; z-index: 200; padding: 22px; display: grid; place-items: end center; background: rgba(24,24,23,.52); backdrop-filter: blur(6px); }
.cookie-panel[hidden] { display: none; }
.cookie-card { width: min(100%, 980px); max-height: calc(100vh - 44px); padding: 27px; overflow-y: auto; border: 1px solid var(--line); border-radius: 25px; background: var(--paper-strong); box-shadow: 0 25px 80px rgba(0,0,0,.24); outline: none; }
.cookie-card:focus-visible { box-shadow: 0 0 0 3px rgba(24,24,23,.18), 0 25px 80px rgba(0,0,0,.24); }
.cookie-intro { max-width: 790px; }
.cookie-card h2 { margin: 7px 0 8px; font-size: 1.7rem; }
.cookie-card p { margin-bottom: 18px; }
.cookie-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cookie-option { min-width: 0; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; }
.cookie-option.is-required { background: #ece8df; cursor: default; }
.cookie-options strong, .cookie-options small { display: block; }
.cookie-options small { margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.cookie-options input { width: 21px; height: 21px; flex: 0 0 auto; accent-color: var(--ink); }
.cookie-meta { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .75rem; }
.cookie-meta a { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { margin-top: 17px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.cookie-action-button { min-height: 46px; padding: 11px 14px; border: 1px solid var(--ink); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: .82rem; font-weight: 900; transition: background .16s ease, color .16s ease, transform .16s ease; }
.cookie-action-button:hover, .cookie-action-button:focus-visible { background: var(--ink); color: #fff; }
.cookie-action-button:active { transform: translateY(1px); }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 13px 16px; border-radius: 13px; background: var(--ink); color: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.18); font-size: .9rem; animation: toast-in .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 980px) {
    .main-nav { position: fixed; top: 78px; left: 20px; right: 20px; display: none; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 12px 14px; }
    .menu-toggle { display: flex; }
    .header-play { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-board { width: min(100%, 610px); min-height: 500px; margin: 0 auto; }
    .game-layout { grid-template-columns: 1fr; }
    .game-sidebar { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .header-inner { min-height: 70px; }
    .main-nav { top: 70px; left: 14px; right: 14px; }
    .hero { padding-top: 48px; }
    .hero-board { min-height: 400px; }
    .pixel-board { gap: 8px; }
    .pixel-tile { min-height: 60px; border-radius: 15px; box-shadow: 5px 6px 0 var(--ink); }
    .trust-grid, .game-grid, .daily-panel, .how-grid { grid-template-columns: 1fr; }
    .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
    .trust-item:last-child { border-bottom: 0; }
    .section { padding: 58px 0; }
    .section-heading { display: block; }
    .section-heading p { margin-top: 14px; }
    .cta-inner { display: block; padding: 30px; }
    .cta-inner .button { margin-top: 24px; }
    .game-header { align-items: flex-start; }
    .game-meta { display: none; }
    .game-stage { min-height: 520px; padding: 20px 14px 30px; }
    .game-sidebar { grid-template-columns: 1fr; }
    .guess-form, .nickname-row { grid-template-columns: 1fr; }
    .guess-form .button, .nickname-row .button { width: 100%; }
    .nonogram-cell { min-width: 42px; }
    .duel-card { grid-template-columns: 1fr; }
    .duel-vs { margin: auto; }
    .leaderboard-table th:nth-child(3), .leaderboard-table td:nth-child(3) { display: none; }
    .cookie-options { grid-template-columns: 1fr; }
    .cookie-actions { grid-template-columns: 1fr; }
    .cookie-meta { align-items: flex-start; flex-direction: column; }
    .legal-summary, .legal-grid-two { grid-template-columns: 1fr; }
    .legal-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .legal-summary > div:last-child { border-bottom: 0; }
    .legal-table-row, .cookie-table-row { grid-template-columns: 1fr; }
    .legal-table-row > * + * { border-left: 0; border-top: 1px solid var(--line); }
    .legal-table-head { display: none; }
    .gdpr-request-card, .cookie-control-card { align-items: stretch; flex-direction: column; }
    .gdpr-request-card .button, .cookie-control-card .button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 22px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { display: block; }
    .footer-bottom span { display: block; margin-top: 5px; }
}

@media (max-width: 480px) {
    .cookie-panel { padding: 8px; }
    .cookie-card { max-height: calc(100vh - 16px); padding: 19px 16px; border-radius: 18px; }
    .cookie-card h2 { font-size: 1.35rem; }
    .cookie-option { min-height: 68px; padding: 11px 12px; }
    .legal-page { width: min(calc(100% - 28px), 1040px); }
    .legal-table-row > * { padding: 13px 14px; }
    .brand span { font-size: .98rem; }
    h1 { font-size: 2.55rem; }
    .hero-actions .button { width: 100%; }
    .hero-board { min-height: 330px; }
    .pixel-tile { min-height: 48px; border-width: 1.5px; }
    .game-card a { padding: 22px; }
    .game-card { min-height: 270px; }
    .result-stats { grid-template-columns: 1fr 1fr; }
    .result-stat:last-child { grid-column: 1 / -1; }
    .key { min-width: 30px; height: 44px; padding: 0 5px; font-size: .77rem; }
    .key.wide { min-width: 52px; }
    .nonogram-cell { min-width: 37px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
/* PixelPlay 1.0.2 - game interaction and spacing fixes */
[hidden] { display: none !important; }

.game-stage.is-complete { justify-content: center; }
.game-stage.is-complete > :not(.result-panel):not(script) { display: none !important; }

.reveal-frame canvas.is-updating,
.map-frame canvas.is-updating { animation: clarify-pulse .28s ease; }

@keyframes clarify-pulse {
    0% { opacity: .72; transform: scale(.995); }
    100% { opacity: 1; transform: scale(1); }
}

.map-frame { position: relative; }
.map-frame canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }

.nonogram-guide {
    width: min(100%, 650px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 16px;
    margin: 0 0 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f7f2e8;
    text-align: left;
}
.nonogram-guide strong { display: block; margin-bottom: 5px; }
.nonogram-guide p { margin: 0; font-size: .88rem; line-height: 1.45; }
.nonogram-examples { display: grid; gap: 7px; }
.nonogram-examples span {
    padding: 8px 10px;
    border: 1px solid rgba(24,24,23,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.62);
    color: #56514a;
    font-size: .78rem;
    line-height: 1.35;
}
.nonogram-examples b { color: var(--ink); }
.nonogram-examples i {
    display: inline-block;
    margin: 0 5px;
    color: var(--ink);
    font-style: normal;
    letter-spacing: .08em;
}
.nonogram-wrap { padding-top: 4px; }
.nonogram-corner {
    position: relative;
    min-width: 62px;
    overflow: hidden;
    color: #8b857c;
    font-size: .55rem;
    letter-spacing: .06em;
}
.nonogram-corner::after {
    content: "";
    position: absolute;
    inset: 50% -8px auto -8px;
    height: 1px;
    background: var(--line-dark);
    transform: rotate(38deg);
    transform-origin: center;
}
.nonogram-corner span:first-child { align-self: end; justify-self: start; }
.nonogram-corner span:last-child { align-self: start; justify-self: end; }
.nonogram-clue { transition: background .18s ease, color .18s ease, opacity .18s ease; }
.nonogram-clue.col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 1px; }
.nonogram-clue.row { display: flex; justify-content: center; align-items: center; gap: 3px; }
.nonogram-clue.is-complete {
    color: #22613c;
    background: rgba(114,181,140,.2);
    border-radius: 8px;
}
.clue-separator { color: #aaa49a; }
.nonogram-cell {
    display: block;
    padding: 0;
    border-radius: 0;
    transition: background .12s ease, box-shadow .12s ease;
}
.nonogram-cell:focus-visible { position: relative; z-index: 2; }
.nonogram-cell.filled { box-shadow: inset 0 0 0 1px var(--ink); }
.nonogram-tools {
    width: min(100%, 650px);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
}
.nonogram-tools .button { white-space: nowrap; }
.nonogram-note {
    width: min(100%, 650px);
    margin: 11px 0 0;
    color: #777168;
    font-size: .78rem;
    line-height: 1.4;
    text-align: center;
}

.result-panel { margin: 0 auto; }
.result-panel .eyebrow { margin: 3px 0 9px; }
.result-panel h2 { margin: 0 0 12px; }
.result-panel p { margin-bottom: 0; }
.result-score { margin: 24px 0 20px; }
.result-stats { margin: 24px 0 0; }
.nickname-row {
    align-items: stretch;
    margin: 26px auto 0;
}
.nickname-row .button { min-height: 52px; }
.result-actions {
    margin-top: 18px;
    align-items: stretch;
}
.result-actions .button { min-height: 44px; }
.share-box { margin-top: 20px; }

@media (max-width: 760px) {
    .nonogram-guide { grid-template-columns: 1fr; }
    .nonogram-tools .button { flex: 1 1 calc(50% - 8px); }
    .result-actions .button { flex: 1 1 calc(50% - 8px); }
}

@media (max-width: 480px) {
    .nonogram-guide { padding: 14px; }
    .nonogram-tools .button,
    .result-actions .button { flex-basis: 100%; width: 100%; }
    .result-panel { padding-left: 19px; padding-right: 19px; }
}

/* PixelPlay 2.0 - Pixel Rift */
:root {
    --rift-bg: #090b13;
    --rift-panel: #111522;
    --rift-panel-2: #171c2b;
    --rift-line: rgba(255,255,255,.12);
    --rift-text: #f6f4ee;
    --rift-muted: #aeb4c7;
    --rift-cyan: #7df6dc;
    --rift-pink: #ff6682;
    --rift-violet: #b45cff;
    --rift-gold: #f8d064;
}

.rift-page { padding: 48px 0 92px; background: radial-gradient(circle at 20% 0, rgba(91,141,239,.1), transparent 38%), var(--bg); }
.rift-page-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 28px; }
.rift-page-head h1 { margin: 8px 0 13px; font-size: clamp(3rem, 6vw, 5.7rem); }
.rift-page-head p { max-width: 760px; margin: 0; font-size: 1.06rem; }
.rift-head-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 350px; }
.rift-head-badges span { padding: 8px 11px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255,255,255,.62); color: #575149; font-size: .74rem; font-weight: 850; }
.rift-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 22px; }
.rift-console { min-width: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 27px; background: var(--rift-bg); color: var(--rift-text); box-shadow: 10px 11px 0 var(--ink), 0 28px 70px rgba(15,17,28,.18); }
.rift-console-head { min-height: 66px; padding: 13px 16px 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--rift-line); background: #0d101a; }
.rift-console-title { display: flex; align-items: center; gap: 11px; }
.rift-console-title strong, .rift-console-title small { display: block; }
.rift-console-title strong { font-size: .92rem; }
.rift-console-title small { margin-top: 1px; color: #8e95a8; font-size: .69rem; }
.rift-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rift-cyan); box-shadow: 0 0 0 5px rgba(125,246,220,.11), 0 0 18px rgba(125,246,220,.7); }
.rift-console-actions { display: flex; gap: 7px; }
.rift-icon-button { width: 39px; height: 39px; padding: 0; display: grid; place-items: center; border: 1px solid var(--rift-line); border-radius: 11px; background: #171b27; color: #fff; font-weight: 900; cursor: pointer; }
.rift-icon-button:hover { background: #22283a; }
.rift-icon-button:disabled { opacity: .35; cursor: not-allowed; }
.rift-icon-button.is-muted { color: var(--rift-pink); }
.rift-hud { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--rift-line); background: #111522; }
.rift-hud-item { min-width: 0; padding: 11px 12px 12px; border-right: 1px solid var(--rift-line); text-align: center; }
.rift-hud-item:last-child { border-right: 0; }
.rift-hud-item span { display: block; margin-bottom: 2px; color: #7f879c; font-size: .58rem; font-weight: 900; letter-spacing: .11em; }
.rift-hud-item strong { display: block; overflow: hidden; color: #fff; font-size: clamp(.82rem, 1.5vw, 1.06rem); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.rift-hud-item strong.is-critical { color: var(--rift-pink); animation: rift-critical .7s ease-in-out infinite alternate; }
@keyframes rift-critical { to { text-shadow: 0 0 16px rgba(255,102,130,.9); } }
.rift-canvas-wrap { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #090b13; }
.rift-canvas-wrap canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; touch-action: none; outline: none; }
.rift-canvas-wrap canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--rift-cyan); }
.rift-overlay { position: absolute; inset: 0; z-index: 8; padding: clamp(14px, 3vw, 28px); display: grid; place-items: center; overflow: auto; background: rgba(6,8,15,.82); backdrop-filter: blur(8px); }
.rift-overlay[hidden] { display: none !important; }
.rift-overlay-card { width: min(100%, 690px); padding: clamp(22px, 4vw, 36px); border: 1px solid rgba(255,255,255,.15); border-radius: 24px; background: linear-gradient(145deg, rgba(28,33,49,.98), rgba(14,17,28,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.45); color: #fff; text-align: center; }
.rift-overlay-card .eyebrow { color: var(--rift-cyan); }
.rift-overlay-card h2 { margin: 8px 0 10px; font-size: clamp(1.75rem, 4vw, 3rem); }
.rift-overlay-card > p { max-width: 620px; margin: 0 auto 22px; color: var(--rift-muted); }
.rift-mode-picker { width: min(100%, 760px); }
.rift-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 23px; }
.rift-mode-card { min-height: 210px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--rift-line); border-radius: 19px; background: #121725; color: #fff; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.rift-mode-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); background: #1a2030; }
.rift-mode-card.is-daily:hover { border-color: rgba(125,246,220,.65); }
.rift-mode-card.is-endless:hover { border-color: rgba(180,92,255,.7); }
.rift-mode-index { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(125,246,220,.12); color: var(--rift-cyan); font-weight: 950; }
.rift-mode-card.is-endless .rift-mode-index { background: rgba(180,92,255,.13); color: #d49cff; }
.rift-mode-card strong { margin: 18px 0 7px; font-size: 1.35rem; }
.rift-mode-card small { color: #a9b0c2; line-height: 1.45; }
.rift-mode-card b { margin-top: auto; padding-top: 18px; color: #fff; font-size: .84rem; }
.rift-territory-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 18px 0 4px; }
.rift-territory-guide > div { min-width: 0; padding: 11px 9px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; column-gap: 9px; border: 1px solid var(--rift-line); border-radius: 13px; background: rgba(255,255,255,.035); text-align: left; }
.rift-territory-guide strong, .rift-territory-guide small { min-width: 0; display: block; }
.rift-territory-guide strong { color: #fff; font-size: .72rem; }
.rift-territory-guide small { margin-top: 2px; color: #8f97aa; font-size: .61rem; line-height: 1.3; }
.rift-guide-swatch { position: relative; width: 34px; height: 34px; grid-row: span 2; overflow: hidden; border-radius: 9px; }
.rift-guide-swatch.is-safe { border: 2px solid var(--rift-cyan); background: linear-gradient(145deg, #5b3676 0 48%, #f0b85d 48% 66%, #223047 66%); box-shadow: 0 0 12px rgba(125,246,220,.22); }
.rift-guide-swatch.is-corrupt { border: 1px solid #333a51; background: radial-gradient(circle at 67% 34%, rgba(180,92,255,.42) 0 3px, transparent 4px), linear-gradient(145deg, #15192a, #090b13); }
.rift-guide-swatch.is-trail { border: 1px solid #3f465b; background: #111522; }
.rift-guide-swatch.is-trail::after { content: ""; position: absolute; left: 14px; top: 4px; width: 6px; height: 26px; border-radius: 2px; background: #fff4ca; box-shadow: 0 0 8px rgba(255,244,202,.5); }
.rift-control-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 22px 0 15px; }
.rift-control-guide > div { min-height: 92px; padding: 13px 10px; border: 1px solid var(--rift-line); border-radius: 14px; background: rgba(255,255,255,.035); }
.rift-control-guide kbd { min-width: 31px; margin: 0 2px 8px; padding: 5px 7px; display: inline-block; border: 1px solid #4f586f; border-bottom-width: 3px; border-radius: 7px; background: #242a3b; color: #fff; font: 800 .65rem Inter, sans-serif; }
.rift-control-guide span { display: block; color: #aeb4c7; font-size: .72rem; }
.rift-mobile-guide { color: #8991a5 !important; font-size: .75rem; }
.rift-ready-card .button { margin: 5px 4px; }
.rift-loading-card { width: min(100%, 480px); display: flex; align-items: center; justify-content: center; gap: 16px; }
.rift-loader { width: 32px; height: 32px; flex: 0 0 auto; border: 3px solid rgba(255,255,255,.14); border-top-color: var(--rift-cyan); border-radius: 50%; animation: rift-spin .75s linear infinite; }
@keyframes rift-spin { to { transform: rotate(360deg); } }
.rift-upgrade-panel { width: min(100%, 830px); }
.rift-upgrade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 21px; }
.rift-upgrade-card { min-height: 250px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--rift-line); border-radius: 17px; background: #121725; color: #fff; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.rift-upgrade-card:hover { transform: translateY(-5px); border-color: var(--rift-cyan); background: #1a2131; }
.rift-upgrade-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; background: rgba(125,246,220,.12); color: var(--rift-cyan); font-size: 1.2rem; font-weight: 950; }
.rift-upgrade-card small { margin-top: 18px; color: #818aa0; font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.rift-upgrade-card strong { margin-top: 4px; font-size: 1.05rem; }
.rift-upgrade-card p { margin: 9px 0 16px; color: #aeb4c7; font-size: .78rem; line-height: 1.45; }
.rift-upgrade-card b { margin-top: auto; color: var(--rift-cyan); font-size: .75rem; }
.rift-pause-card { width: min(100%, 450px); }
.rift-pause-card .button { margin: 4px; }
.rift-result-overlay { align-items: start; padding: 11px; }
.rift-result-card { width: min(100%, 690px); margin: auto; padding: 17px 22px 18px; }
.rift-result-card h2 { margin: 4px 0 5px; font-size: clamp(1.55rem, 3.2vw, 2.35rem); }
.rift-result-card > p { margin-bottom: 8px; }
.rift-result-mark { width: 44px; height: 44px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 13px; background: var(--rift-cyan); color: #111522; font-size: 1.15rem; font-weight: 950; }
.rift-result-mark[data-result="loss"] { background: var(--rift-pink); color: #fff; }
.rift-final-score { margin: 9px 0 11px; }
.rift-final-score strong, .rift-final-score span { display: block; }
.rift-final-score strong { font-size: clamp(2.8rem, 6vw, 4.45rem); line-height: .9; letter-spacing: -.07em; }
.rift-final-score span { margin-top: 6px; color: #858da1; font-size: .61rem; font-weight: 900; letter-spacing: .15em; }
.rift-final-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.rift-final-stats > div { padding: 8px 6px; border: 1px solid var(--rift-line); border-radius: 11px; background: rgba(255,255,255,.035); }
.rift-final-stats strong, .rift-final-stats span { display: block; }
.rift-final-stats strong { font-size: .98rem; }
.rift-final-stats span { margin-top: 3px; color: #7f879c; font-size: .55rem; font-weight: 900; letter-spacing: .08em; }
.rift-save-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 10px; }
.rift-save-row .text-input { border-color: #465067; background: #0e121d; color: #fff; }
.rift-save-status { min-height: 18px; margin: 5px 0 0 !important; color: #8f98ab !important; font-size: .68rem; }
.rift-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.rift-result-actions .button-primary { color: #151817; }
.rift-mobile-controls { padding: 13px 15px; display: none; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--rift-line); background: #0d101a; }
.rift-dpad { width: 166px; display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 48px); gap: 7px; }
.rift-dpad button { border: 1px solid var(--rift-line); border-radius: 13px; background: #202638; color: #fff; font-size: 1.15rem; font-weight: 900; touch-action: manipulation; }
.rift-dpad button:active { background: #343c54; transform: scale(.96); }
.rift-dpad button:first-child { grid-column: 2; }
.rift-dpad button:nth-child(2) { grid-column: 1; grid-row: 2; }
.rift-dpad span { grid-column: 2; grid-row: 2; }
.rift-dpad button:nth-child(4) { grid-column: 3; grid-row: 2; }
.rift-dpad button:last-child { grid-column: 2; grid-row: 2; transform: translateY(55px); }
.rift-pulse-button { width: 100px; height: 100px; flex: 0 0 auto; border: 2px solid #343d53; border-radius: 50%; background: radial-gradient(circle, #20283b, #111522); color: #818a9f; box-shadow: inset 0 0 0 6px rgba(255,255,255,.025); font-weight: 950; }
.rift-pulse-button span, .rift-pulse-button strong { display: block; }
.rift-pulse-button span { font-size: .72rem; letter-spacing: .07em; }
.rift-pulse-button strong { margin-top: 3px; font-size: .78rem; }
.rift-pulse-button.is-ready { border-color: var(--rift-cyan); color: var(--rift-cyan); box-shadow: 0 0 24px rgba(125,246,220,.3), inset 0 0 0 6px rgba(125,246,220,.07); animation: rift-pulse-ready .8s ease-in-out infinite alternate; }
@keyframes rift-pulse-ready { to { transform: scale(1.035); } }
.rift-status-strip { min-height: 50px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rift-line); background: #0c0f18; }
.rift-status-strip > div:first-child { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 9px; }
.rift-status-strip strong { overflow: hidden; color: #aeb4c7; font-size: .72rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.rift-status-light { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #687086; }
.rift-status-light[data-tone="ready"] { background: var(--rift-cyan); box-shadow: 0 0 12px rgba(125,246,220,.7); }
.rift-status-light[data-tone="success"] { background: var(--rift-gold); box-shadow: 0 0 12px rgba(248,208,100,.7); }
.rift-status-light[data-tone="danger"] { background: var(--rift-pink); box-shadow: 0 0 12px rgba(255,102,130,.75); }
.rift-board-legend { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; }
.rift-board-legend span { display: inline-flex; align-items: center; gap: 5px; color: #8f97aa; font-size: .58rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.rift-board-legend i { position: relative; width: 12px; height: 12px; flex: 0 0 auto; display: inline-block; border-radius: 3px; }
.rift-board-legend i.is-safe { border: 1px solid var(--rift-cyan); background: #5b4177; box-shadow: 0 0 6px rgba(125,246,220,.34); }
.rift-board-legend i.is-corrupt { border: 1px solid #394158; background: #0d101c; }
.rift-board-legend i.is-trail { border: 1px solid #4a5166; background: #171b27; }
.rift-board-legend i.is-trail::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 8px; border-radius: 1px; background: #fff4ca; }
.rift-energy-track { width: 180px; height: 7px; flex: 0 0 auto; overflow: hidden; border-radius: 999px; background: #242a3a; }
.rift-energy-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #5b8def, var(--rift-cyan)); transition: width .18s ease; }
.rift-sidebar { display: grid; gap: 14px; }
.rift-side-card { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.7); }
.rift-side-card h2 { margin: 7px 0 9px; font-size: 1.12rem; }
.rift-side-card p { margin-bottom: 0; font-size: .84rem; }
.rift-mission-card { background: var(--ink); color: #fff; }
.rift-mission-card .eyebrow { color: #96928b; }
.rift-mission-card p { color: #b8b5ae; }
.rift-mission-progress { height: 8px; margin: 18px 0 8px; overflow: hidden; border-radius: 999px; background: #343431; }
.rift-mission-progress span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--rift-cyan); transition: width .18s ease; }
.rift-mission-card small { color: #8e8b84; font-weight: 800; }
.rift-side-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rift-side-title > strong { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--bg); font-size: .75rem; }
.rift-side-title > a { color: #5d5851; font-size: .68rem; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.rift-active-upgrades { display: grid; gap: 7px; margin-top: 13px; }
.rift-active-upgrades > div { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.rift-active-upgrades > div span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #e8f6f1; font-size: .72rem; font-weight: 900; }
.rift-active-upgrades > div strong { min-width: 0; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.rift-active-upgrades > div b { color: #6d6860; font-size: .7rem; }
.rift-active-upgrades > p { font-size: .78rem; }
.rift-mini-board { display: grid; gap: 1px; margin-top: 12px; }
.rift-mini-board > div { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rift-mini-board > div:last-child { border-bottom: 0; }
.rift-mini-board span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: var(--bg); font-size: .66rem; font-weight: 900; }
.rift-mini-board strong { min-width: 0; overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.rift-mini-board b { font-size: .72rem; font-variant-numeric: tabular-nums; }
.rift-mini-board > p { font-size: .78rem; }
.rift-rule-list { margin: 14px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.rift-rule-list li { position: relative; padding-left: 16px; color: #605b54; font-size: .76rem; }
.rift-rule-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--coral); }

/* Pixel Rift homepage */
.rift-hero { padding: 62px 0 52px; overflow: hidden; }
.rift-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .92fr); align-items: center; gap: clamp(42px, 7vw, 88px); }
.rift-hero-copy h1 { margin: 15px 0 22px; font-size: clamp(3.1rem, 6.4vw, 6.25rem); }
.rift-hero-copy h1 span { color: var(--coral); }
.rift-hero-copy > p { max-width: 690px; font-size: clamp(1.06rem, 1.7vw, 1.23rem); }
.rift-hero-copy .hero-note { margin-top: 25px; }
.rift-preview { position: relative; padding: 14px; border: 2px solid var(--ink); border-radius: 26px; background: var(--ink); box-shadow: 10px 11px 0 rgba(24,24,23,.22); transform: rotate(1.2deg); }
.rift-preview::before { content: ""; position: absolute; width: 330px; height: 330px; z-index: -1; left: -55px; top: -45px; border-radius: 50%; background: rgba(180,92,255,.13); filter: blur(3px); }
.rift-preview-top { padding: 1px 3px 12px; display: flex; justify-content: space-between; color: #b4bac9; font-size: .68rem; font-weight: 850; }
.rift-preview-screen { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid #434b61; border-radius: 16px; background:
    linear-gradient(90deg, transparent 49.2%, rgba(255,255,255,.035) 49.2% 50.8%, transparent 50.8%),
    linear-gradient(transparent 49.2%, rgba(255,255,255,.035) 49.2% 50.8%, transparent 50.8%),
    radial-gradient(circle at 72% 24%, #f8d064 0 9%, transparent 9.5%),
    linear-gradient(#342d70 0 42%, #6d3c75 42% 56%, #15152b 56% 100%);
    background-size: 7.15% 11.1%, 7.15% 11.1%, auto, auto;
}
.rift-preview-corrupt { position: absolute; inset: 15% 8% 9% 29%; border: 8px solid #0e1120; background: repeating-linear-gradient(45deg, #0d101c 0 14px, #18172d 14px 28px); box-shadow: inset 0 0 0 1px rgba(180,92,255,.25); clip-path: polygon(0 0,100% 0,100% 100%,28% 100%,28% 70%,0 70%); }
.rift-preview-trail { position: absolute; width: 36%; height: 33%; left: 26%; top: 47%; border-left: 6px solid #fff4ca; border-bottom: 6px solid #fff4ca; box-shadow: 0 0 12px rgba(255,244,202,.55); }
.rift-preview-player { position: absolute; width: 16px; height: 16px; left: 61%; top: calc(80% - 5px); background: var(--rift-cyan); transform: rotate(45deg); box-shadow: 0 0 18px rgba(125,246,220,.8); }
.rift-preview-enemy { position: absolute; width: 27px; height: 27px; right: 19%; top: 38%; background: var(--rift-pink); clip-path: polygon(50% 0,65% 31%,100% 50%,65% 69%,50% 100%,35% 69%,0 50%,35% 31%); box-shadow: 0 0 18px rgba(255,102,130,.8); animation: rift-preview-float 2.1s ease-in-out infinite alternate; }
@keyframes rift-preview-float { to { transform: translate(-20px, 24px) rotate(40deg); } }
.rift-preview-hud { padding: 12px 3px 1px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.rift-preview-hud div { padding: 8px; border: 1px solid #3a4052; border-radius: 9px; color: #fff; text-align: center; }
.rift-preview-hud span, .rift-preview-hud strong { display: block; }
.rift-preview-hud span { color: #7f879b; font-size: .52rem; font-weight: 900; letter-spacing: .1em; }
.rift-preview-hud strong { margin-top: 2px; font-size: .86rem; }
.rift-feature-strip { padding: 20px 0 65px; }
.rift-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.56); }
.rift-feature-grid > div { padding: 19px 21px; border-right: 1px solid var(--line); }
.rift-feature-grid > div:last-child { border-right: 0; }
.rift-feature-grid strong, .rift-feature-grid small { display: block; }
.rift-feature-grid strong { font-size: .9rem; }
.rift-feature-grid small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.rift-mode-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.rift-showcase-card { min-height: 330px; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 25px; background: #fff; }
.rift-showcase-card.is-dark { background: var(--ink); color: #fff; }
.rift-showcase-card.is-dark p { color: #aaa79f; }
.rift-showcase-card .game-icon { margin-bottom: 35px; background: var(--coral); }
.rift-showcase-card.is-dark .game-icon { border-color: #4b4b47; background: var(--rift-violet); }
.rift-showcase-card h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.rift-showcase-card p { max-width: 510px; }
.rift-showcase-card .button { align-self: flex-start; margin-top: auto; }
.rift-upgrade-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.rift-upgrade-cloud span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .76rem; font-weight: 800; }
.classic-game-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.classic-game-card { min-height: 205px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.68); transition: transform .18s ease, border-color .18s ease; }
.classic-game-card:hover { transform: translateY(-4px); border-color: var(--line-dark); }
.classic-game-card .game-icon { width: 46px; height: 46px; border-radius: 14px; }
.classic-game-card h3 { margin: 22px 0 8px; font-size: 1.08rem; }
.classic-game-card p { font-size: .79rem; }
.classic-game-card b { margin-top: auto; font-size: .74rem; }

@media (max-width: 1080px) {
    .rift-layout { grid-template-columns: 1fr; }
    .rift-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .rift-mission-card { grid-row: span 2; }
    .rift-hero-grid { grid-template-columns: 1fr; }
    .rift-preview { width: min(100%, 760px); margin: 0 auto; }
    .classic-game-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 800px) {
    .rift-page { padding-top: 34px; }
    .rift-page-head { display: block; }
    .rift-head-badges { margin-top: 18px; justify-content: flex-start; }
    .rift-hud { grid-template-columns: repeat(3,1fr); }
    .rift-hud-item:nth-child(3) { border-right: 0; }
    .rift-hud-item:nth-child(-n+3) { border-bottom: 1px solid var(--rift-line); }
    .rift-canvas-wrap { aspect-ratio: 3 / 2; }
    .rift-mobile-controls { display: flex; min-height: 176px; }
    .rift-status-strip { align-items: stretch; flex-direction: column; }
    .rift-board-legend { justify-content: flex-start; }
    .rift-energy-track { width: 100%; }
    .rift-upgrade-grid { grid-template-columns: 1fr; }
    .rift-upgrade-card { min-height: 165px; }
    .rift-mode-grid { grid-template-columns: 1fr; }
    .rift-mode-card { min-height: 180px; }
    .rift-territory-guide { grid-template-columns: repeat(3, 1fr); }
    .rift-territory-guide > div { padding: 9px 7px; grid-template-columns: 28px minmax(0,1fr); column-gap: 7px; }
    .rift-guide-swatch { width: 28px; height: 28px; }
    .rift-guide-swatch.is-trail::after { left: 11px; top: 3px; height: 20px; }
    .rift-territory-guide small { display: none; }
    .rift-control-guide { grid-template-columns: 1fr; }
    .rift-control-guide > div { min-height: 66px; }
    .rift-final-stats { grid-template-columns: repeat(2,1fr); }
    .rift-feature-grid { grid-template-columns: repeat(2,1fr); }
    .rift-feature-grid > div:nth-child(2) { border-right: 0; }
    .rift-feature-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .rift-mode-showcase { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .rift-page .shell { width: min(calc(100% - 16px), var(--shell)); }
    .rift-console { border-radius: 19px; box-shadow: 5px 6px 0 var(--ink); }
    .rift-console-head { min-height: 58px; padding: 10px 11px 10px 14px; }
    .rift-hud-item { padding: 8px 6px 9px; }
    .rift-hud-item span { font-size: .49rem; }
    .rift-hud-item strong { font-size: .78rem; }
    .rift-canvas-wrap { min-height: 430px; aspect-ratio: auto; }
    .rift-canvas-wrap canvas { position: absolute; top: 50%; left: 0; width: 100%; height: auto; aspect-ratio: 3 / 2; transform: translateY(-50%); }
    .rift-overlay { padding: 8px; }
    .rift-overlay-card { padding: 16px 12px; border-radius: 17px; }
    .rift-overlay-card h2 { font-size: 1.42rem; }
    .rift-overlay-card > p { margin-bottom: 11px; font-size: .76rem; }
    .rift-mode-picker > p { display: none; }
    .rift-mode-grid { grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
    .rift-mode-card { min-height: 126px; padding: 11px; }
    .rift-mode-card .rift-mode-index { width: 34px; height: 34px; border-radius: 10px; }
    .rift-mode-card strong { margin: 9px 0 3px; font-size: .98rem; }
    .rift-mode-card small { display: none; }
    .rift-mode-card b { padding-top: 8px; font-size: .66rem; }
    .rift-ready-card .rift-control-guide { display: none; }
    .rift-territory-guide { gap: 5px; margin-top: 10px; }
    .rift-territory-guide > div { padding: 7px 5px; grid-template-columns: 22px minmax(0,1fr); column-gap: 5px; border-radius: 9px; }
    .rift-territory-guide strong { font-size: .61rem; line-height: 1.2; }
    .rift-guide-swatch { width: 22px; height: 22px; border-radius: 6px; }
    .rift-guide-swatch.is-trail::after { left: 8px; top: 2px; width: 4px; height: 16px; }
    .rift-mobile-guide { display: block !important; margin-bottom: 10px !important; }
    .rift-upgrade-card { min-height: 145px; padding: 13px; }
    .rift-upgrade-icon { width: 38px; height: 38px; }
    .rift-upgrade-card small { margin-top: 10px; }
    .rift-upgrade-card p { margin: 5px 0 8px; }
    .rift-result-card { padding: 12px 10px 13px; }
    .rift-result-card h2 { font-size: 1.35rem; }
    .rift-result-mark { width: 36px; height: 36px; margin-bottom: 4px; }
    .rift-final-score { margin: 7px 0 8px; }
    .rift-final-score strong { font-size: 2.55rem; }
    .rift-final-stats > div { padding: 6px 4px; }
    .rift-save-row { grid-template-columns: 1fr; margin-top: 7px; }
    .rift-save-row .button, .rift-save-row .text-input { min-height: 40px; }
    .rift-result-actions { margin-top: 5px; }
    .rift-result-actions .button { min-height: 38px; padding: 8px 11px; }
    .rift-mobile-controls { min-height: 164px; padding: 10px 12px; }
    .rift-dpad { width: 145px; grid-template-columns: repeat(3,42px); grid-template-rows: repeat(2,42px); gap: 6px; }
    .rift-dpad button:last-child { transform: translateY(48px); }
    .rift-pulse-button { width: 88px; height: 88px; }
    .rift-sidebar { grid-template-columns: 1fr; }
    .rift-mission-card { grid-row: auto; }
    .rift-hero { padding-top: 44px; }
    .rift-preview { padding: 9px; border-radius: 18px; box-shadow: 6px 7px 0 rgba(24,24,23,.22); }
    .rift-feature-grid { grid-template-columns: 1fr; }
    .rift-feature-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .rift-feature-grid > div:last-child { border-bottom: 0; }
    .classic-game-grid { grid-template-columns: 1fr; }
}

@media (hover: none) and (pointer: coarse) {
    .rift-mobile-controls { display: flex; }
}
