/* JustBlock Ocean: the app's cream, powder blue and navy. */
:root {
  color-scheme: dark;
  --ink: #041322;
  --white: #fff7e7;
  --lime: #88b8f4;
  --blue: #88b8f4;
  --blocks: #80cffd;
  --gold: #ffc851;
  --coral: #ff8177;
  --muted: #bdc7cd;
  --panel: #13212f;
  --raised: #222f3d;
  --border: #365272;
  --wrap: 1240px;
}
html { scrollbar-gutter: stable; }
body.arena-home { background: var(--ink); color: var(--white); }
.wrap, .section-inner { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
main > section { min-width: 0; }
img { height: auto; }
.icon { display: inline-block; flex: none; width: 24px; height: 24px; background: currentColor; mask-position: center; mask-repeat: no-repeat; mask-size: contain; }
.icon-user { mask-image: url('/assets/site/arena-icons/user.svg'); }
.icon-calendar { mask-image: url('/assets/site/arena-icons/calendar-event.svg'); }
.icon-map { mask-image: url('/assets/site/arena-icons/map.svg'); }
.icon-friends { mask-image: url('/assets/site/arena-icons/users-group.svg'); }
.icon-arrow { mask-image: url('/assets/site/arena-icons/arrow-right.svg'); }
.icon-menu { mask-image: url('/assets/site/arena-icons/menu-2.svg'); }
.icon-refresh { mask-image: url('/assets/site/arena-icons/refresh.svg'); }
.icon-check { mask-image: url('/assets/site/arena-icons/check.svg'); }

.site-header { position: sticky; top: 0; padding-top: 20px; background: linear-gradient(#041322eb, #04132200); }
.header-inner { min-height: 88px; gap: 24px; padding: 15px 24px; border: 1px solid var(--border); border-radius: 28px; background: #091d3df2; box-shadow: inset 0 1px #ffffff08; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.arena-home section[id], .arena-home main[id] { scroll-margin-top: 132px; }
.brand { gap: 11px; color: var(--white); font: 600 2rem/1 var(--display-font); letter-spacing: -0.05em; }
.brand img { width: 48px; height: 48px; border-radius: 14px; object-fit: contain; }
.brand > span > span, .brand .brand-accent { color: var(--blue); }
.site-nav { margin-left: auto; gap: clamp(18px, 2.7vw, 38px); }
.arena-home .site-nav a { color: var(--muted); font-size: 1rem; }
.arena-home .site-nav a:hover, .arena-home .site-nav a[aria-current] { color: var(--white); }
.button, .header-action { min-height: 56px; gap: 14px; padding: 15px 25px; border: 1px solid transparent; border-radius: 18px; font: 600 1rem/1.3 var(--display-font); white-space: normal; }
.button.primary, .header-action { color: var(--ink); background: var(--blue); border-color: #b4d5fc; box-shadow: inset 0 1px #ffffff70, 0 3px 0 #365a80; }
.button.primary:hover, .header-action:hover { background: #a4c9f7; }
.button.secondary { color: var(--blue); background: #091d3d66; border-color: var(--blue); box-shadow: none; }
.button.secondary:hover { background: var(--raised); }
.button .icon { width: 21px; height: 21px; }
.site-header .header-action { flex: none; min-height: 48px; margin-left: 12px; padding: 12px 23px; font-size: 0.9375rem; border-radius: 22px; }
.mobile-nav { position: static; }
.mobile-nav summary { min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 15px; color: var(--blue); background: var(--panel); }
.mobile-nav summary > .icon { width: 22px; height: 22px; }
.mobile-nav nav { top: calc(100% + 8px); left: 32px; right: 32px; border-color: var(--border); color: var(--white); background: var(--panel); }
.mobile-nav nav a { min-height: 44px; color: var(--white); }
.mobile-nav nav a:hover, .mobile-nav nav a:focus-visible { color: var(--blue); background: var(--raised); }

.hero { position: relative; height: auto; min-height: 0; max-height: none; background: radial-gradient(ellipse at 80% 48%, #102e5555, transparent 57%); }
.hero::after, .journey::before, .daily::before, .how::before, .release::before { display: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: 28px; height: auto; min-height: 0; padding-block: 64px 48px; }
.hero-copy { position: relative; z-index: 1; width: auto; max-width: none; min-height: 0; }
.hero h1 { margin: 0; font: 600 clamp(3.375rem, 6.5vw, 6rem)/1.02 var(--display-font); letter-spacing: -0.055em; overflow-wrap: anywhere; }
.hero h1 > span { display: block; white-space: normal; }
.hero h1 > span:last-child { color: var(--blue); }
.hero-lead { max-width: 550px; margin: 27px 0 29px; color: var(--muted); font-size: 1.1875rem; line-height: 1.65; }
.hero-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 14px; margin: 0; padding: 0; }
.hero-actions .button { min-width: 0; flex: 0 1 auto; }
.hero-note { max-width: 520px; margin: 22px 0 0; color: var(--muted); font-size: 0.8125rem; }
.hero-visual, .hero-art { position: relative; inset: auto; z-index: 0; display: grid; place-items: center; width: 100%; max-width: 520px; justify-self: end; overflow: visible; }
.hero-visual::before, .hero-art::before { content: ''; position: absolute; z-index: -1; inset: 12% -6% -2%; border-radius: 50%; background: radial-gradient(ellipse, #2868b535, transparent 67%); }
.hero-visual::after, .hero-art::after { content: ''; position: absolute; z-index: -1; top: 13%; right: 3%; width: 28px; aspect-ratio: 1; border: 1px solid #88b8f43d; border-radius: 7px; background: #88b8f411; transform: rotate(17deg); box-shadow: -380px 290px 0 -5px #ffc8511c; }
.hero-visual img, .hero-art img { position: relative; display: block; width: 100%; height: auto; max-height: none; object-fit: contain; object-position: center; transform: none; filter: drop-shadow(0 20px 30px #00000030); }

.mode-chooser { padding: 10px 0 60px; border: 0; background: var(--ink); }
.mode-chooser h2 { margin: 0 0 20px; color: var(--muted); font: 600 1.125rem/1.4 var(--display-font); letter-spacing: 0; }
.mode-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.mode-shortcut { display: grid; grid-template-columns: 50px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-width: 0; min-height: 124px; padding: 19px 17px; border: 1px solid var(--border); border-radius: 23px; background: linear-gradient(150deg, #172e43, var(--panel)); box-shadow: inset 0 1px #ffffff08; text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.mode-shortcut.featured { padding: 19px 17px; border: 1px solid #628bb8; }
.mode-shortcut > img { width: 50px; height: 58px; object-fit: contain; }
.mode-shortcut > .icon:first-child { width: 42px; height: 42px; color: var(--blue); }
.mode-shortcut > span:not(.icon) { min-width: 0; }
.mode-shortcut strong { display: block; color: var(--white); font: 600 1.375rem/1.2 var(--display-font); }
.mode-shortcut small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.mode-shortcut > .icon:last-child { width: 18px; height: 18px; color: var(--blue); }
.mode-shortcut:hover { border-color: var(--blue); background: var(--raised); transform: translateY(-3px); }

.section { padding-block: 86px; border-top: 1px solid #36527270; }
.section h2, .feature-copy h2 { margin: 0; color: var(--white); font: 600 clamp(2.5rem, 4.5vw, 4rem)/1.08 var(--display-font); letter-spacing: -0.045em; text-wrap: balance; overflow-wrap: anywhere; }
.section-heading { max-width: 750px; margin-bottom: 34px; }
.section-heading p { margin: 18px 0 0; color: var(--muted); font-size: 1.0625rem; }
.eyebrow, .section .section-label, .mode-label { margin: 0 0 18px; color: var(--blue); font: 700 0.6875rem/1.5 var(--body-font); letter-spacing: 0.14em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 12px; color: var(--blue); text-decoration: none; font: 600 0.9375rem/1.4 var(--display-font); }
.text-link .icon { width: 19px; height: 19px; }
.text-link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 5px; }
.game { background: #091d3d44; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 80px; }
.game-copy h2 { font-size: clamp(2.5rem, 4.7vw, 4.25rem); }
.game-copy > p:not(.eyebrow) { max-width: 430px; margin: 23px 0; color: var(--muted); line-height: 1.7; }
.game-copy > p.small-note { margin-top: 23px; font-size: 0.8125rem; }

/* Solo retains its drag controls, invalid previews and short clear feedback. */
.demo { width: min(100%, 460px); justify-self: end; min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: 26px; color: var(--white); background: var(--panel); box-shadow: 0 16px 45px #00000025, inset 0 1px #ffffff08; }
.demo-head { align-items: flex-start; gap: 12px; }
.demo-head > div { min-width: 0; flex: 1; }
.demo-title { color: var(--white); font-size: 1.375rem; line-height: 1.3; }
.demo-scores { display: flex; flex-wrap: wrap; gap: 5px 18px; }
.demo-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 0.75rem; }
.demo-score strong { margin: 0; color: var(--blue); font-size: 1.5rem; }
.demo-best strong { color: var(--white); font-size: 1rem; }
.demo-reset { min-height: 44px; max-width: 120px; gap: 7px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 15px; color: var(--blue); background: var(--raised); font-size: 0.6875rem; line-height: 1.3; }
.demo-reset:hover { color: var(--white); background: #2b4158; }
.demo-reset .icon { width: 17px; height: 17px; }
.demo-board-wrap { position: relative; display: grid; min-width: 0; }
.demo-board { grid-area: 1 / 1; align-self: start; padding: 7px; gap: 3px; border: 1px solid var(--border); border-radius: 12px; background: #21364c; touch-action: none; }
.demo-cell { min-width: 0; background: #132536; border: 1px solid #2c435b; border-radius: 4px; transition: background-color 120ms ease; }
.demo-cell:nth-child(9n + 3), .demo-cell:nth-child(9n + 6) { border-right: 3px solid #4b6580; }
.demo-cell:nth-child(n + 19):nth-child(-n + 27), .demo-cell:nth-child(n + 46):nth-child(-n + 54) { border-bottom: 3px solid #4b6580; }
.demo-cell[data-tone], .demo-piece[data-tone], .demo-piece-preview[data-tone] { --tone: var(--blocks); }
.demo-cell.occupied { background: var(--blocks); box-shadow: inset 0 -3px #00000029, inset 0 2px #ffffff75; }
.demo-cell.preview { background: var(--blocks); opacity: 0.55; transform: none; box-shadow: inset 0 0 0 2px #c6eaff; }
.demo-cell.will-clear { background: #ffe2a0; opacity: 1; box-shadow: inset 0 0 0 2px #fff0cf; }
.demo-cell.invalid { background: #873f44; outline-color: var(--coral); }
.demo-cell:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }
.demo-cell.just-cleared { animation: solo-clear 160ms ease-out; }
.demo-tray { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 18px; }
.demo-piece { min-height: 108px; padding: 10px 4px; border-radius: 15px; border-color: transparent; background: #172c40; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.demo-piece:hover { background: #223d56; transform: none; }
.demo-piece[aria-pressed='true'] { border-color: var(--blue); background: #223d56; }
.demo-piece.used { visibility: hidden; }
.demo-piece.dragging { opacity: 0.22; cursor: grabbing; }
.demo-piece.no-space { opacity: 0.26; }
.demo-piece-label { display: none; }
.demo-piece-preview { --piece-cell: 18px; grid-template-columns: repeat(var(--piece-cols, 1), var(--piece-cell)); grid-template-rows: repeat(var(--piece-rows, 1), var(--piece-cell)); gap: 3px; }
.demo-piece-square.filled { background: var(--blocks); box-shadow: inset 0 -2px #00000029, inset 0 2px #ffffff75; }
.demo-drag-ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; will-change: transform; filter: drop-shadow(0 5px 8px #00000080); }
.demo-drag-ghost.invalid-ghost { opacity: 0.68; }
.demo-drag-ghost.invalid-ghost .filled { background: var(--coral); }
.demo.is-dragging, .demo.is-dragging * { cursor: grabbing; }
.demo-feedback { position: absolute; inset: 40% 0 auto; z-index: 2; pointer-events: none; color: #ffe2a0; text-align: center; font: 600 clamp(1.375rem, 3vw, 2rem)/1.1 var(--display-font); text-shadow: 0 2px 8px var(--ink); animation: solo-feedback 220ms ease-out; }
.demo-over { grid-area: 1 / 1; position: relative; z-index: 3; display: flex; flex-direction: column; align-items: stretch; justify-content: center; min-height: 310px; padding: 23px; border: 1px solid #88b8f480; border-radius: 12px; background: #091b2cf7; text-align: center; }
.demo-over-kicker { margin: 0 0 8px; color: var(--blue); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.demo-over h3 { margin: 0; font: 600 1.6875rem/1.15 var(--display-font); }
.demo-final-score { margin-top: 12px; color: var(--blue); font: 600 3.375rem/1 var(--display-font); font-variant-numeric: tabular-nums; }
.demo-final-builds { margin: 7px 0 14px; color: var(--muted); font-size: 0.75rem; }
.demo-breakdown { margin: 0 0 17px; font-size: 0.75rem; }
.demo-breakdown > div { display: flex; justify-content: space-between; gap: 16px; margin-block: 5px; }
.demo-breakdown dt { color: var(--muted); }
.demo-breakdown dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-result-actions { display: grid; gap: 10px; width: 100%; }
.demo-again, .demo-view { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; gap: 9px; padding: 12px 16px; border: 1px solid transparent; border-radius: 15px; font: 600 0.9375rem/1.3 var(--display-font); cursor: pointer; touch-action: manipulation; }
.demo-again { color: var(--ink); background: var(--blue); border-color: #b4d5fc; }
.demo-again:hover { background: #a4c9f7; }
.demo-again:active { background: #70a2e0; }
.demo-again .icon { width: 18px; height: 18px; }
.demo-view { color: var(--white); background: var(--raised); border-color: var(--border); }
.demo-view:hover { border-color: var(--blue); background: #2b4158; }
.demo-over[hidden], .demo-feedback[hidden] { display: none; }
.demo-status { min-height: 0; color: var(--white); font-size: 0.8125rem; }
.demo-note { color: var(--muted); }
[data-blocked='true'] .demo-status { color: #ffb6ae; }
@keyframes solo-clear { from { background: #ffe2a0; } to { background: #132536; } }
@keyframes solo-feedback { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.modes { color: var(--white); background: var(--ink); }
.mode-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.mode-tabs button { min-height: 48px; padding: 12px 23px; border: 1px solid var(--border); border-radius: 16px; color: var(--white); background: var(--panel); font: 600 0.9375rem/1.3 var(--display-font); }
.mode-tabs button:hover { color: var(--blue); background: var(--raised); transform: none; }
.mode-tabs button[aria-pressed='true'], .mode-tabs button.is-active { color: var(--ink); background: var(--blue); border-color: #b4d5fc; }
.mode-tabs button .icon { width: 18px; height: 18px; }
.mode-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; min-height: 0; gap: 60px; padding: 46px 52px; border: 1px solid var(--border); border-radius: 26px; background: linear-gradient(125deg, #172b42, var(--panel)); }
.mode-panel + .mode-panel { margin-top: 0; }
.mode-panel[hidden] { display: none; }
.mode-copy h3 { color: var(--white); font: 600 clamp(2.25rem, 3.6vw, 3.5rem)/1.08 var(--display-font); letter-spacing: -0.045em; }
.mode-copy > p:not(.mode-label) { color: var(--muted); margin-block: 21px; }
.mode-facts { gap: 10px 20px; margin: 0 0 12px; color: var(--white); }
.mode-facts li::before { background: var(--gold); border-radius: 50%; }
.mode-art { min-width: 0; margin: 0; gap: 14px; }
.mode-art figcaption { color: var(--muted); font-size: 0.75rem; line-height: 1.5; text-align: center; }
.phone-frame { display: block; width: min(100%, 270px); margin: 0 auto; border: 9px solid #020d19; border-radius: 36px; background: var(--ink); box-shadow: 0 0 0 1px #547598, 0 18px 40px #00000040; overflow: hidden; }
.phone-frame img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 26px; }
.mode-art .phone-frame { width: min(100%, 232px); }
.mode-art .phone-frame img { max-height: 500px; object-fit: contain; }
.mode-art > img { display: block; width: min(100%, 430px); height: auto; max-height: 500px; margin: 0 auto; object-fit: contain; }

.feature-layout, .journey-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 80px; }
.feature-layout.reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.feature-copy, .feature-visual { min-width: 0; }
.feature-copy > p:not(.section-label), .journey-copy > p:not(.section-label), .daily-copy > p:not(.section-label) { max-width: 530px; margin-block: 23px; color: var(--muted); line-height: 1.7; }
.feature-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; margin: 0; }
.feature-visual .phone-frame { flex: none; margin: 0; min-width: 0; }
.feature-visual figcaption, .screen-caption { color: var(--muted); font-size: 0.75rem; line-height: 1.5; text-align: center; }
.feature-art { display: block; width: min(45%, 260px); max-width: 400px; height: auto; object-fit: contain; }
.feature-visual > .feature-art:only-child { width: min(100%, 400px); }
.feature-list { display: grid; padding: 0; margin: 28px 0 0; list-style: none; }
.feature-list > li { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 4px 15px; padding-block: 19px; border-top: 1px solid var(--border); }
.feature-list > li > span:first-child { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; min-height: 38px; border: 1px solid var(--border); border-radius: 12px; color: var(--gold); background: var(--panel); font: 600 0.875rem/1 var(--display-font); }
.feature-list strong { color: var(--white); font: 600 1.1875rem/1.3 var(--display-font); }
.feature-list h3 { margin: 0; color: var(--white); font: 600 1.1875rem/1.3 var(--display-font); }
.feature-list > li > strong, .feature-list > li > p { grid-column: 2; }
.feature-list p { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.progress { background: linear-gradient(135deg, #091d3d55, var(--ink)); }
.extra-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
.extra-features > * { min-width: 0; padding-top: 23px; border-top: 1px solid var(--border); }
.extra-features h3 { margin: 0 0 11px; font: 600 1.375rem/1.3 var(--display-font); }
.extra-features p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.7; }
.extra-features .icon { margin-bottom: 13px; color: var(--blue); }
.gear { background: #091d3d44; }
.gear-showcase { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 26px; background: var(--panel); }
.gear-showcase img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 16px; }
.gear-showcase figcaption { margin: 13px 8px 5px; color: var(--muted); font-size: 0.75rem; text-align: center; }
.journey { color: var(--white); background: #091d3d44; }
.journey-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
.journey-picture { width: 100%; max-width: none; margin: 0; justify-self: center; }
.journey-picture img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; border: 1px solid var(--border); border-radius: 22px; }
.journey-picture figcaption { margin-top: 13px; color: var(--muted); font-size: 0.75rem; line-height: 1.5; text-align: center; }
.journey-path { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; margin-top: 46px; }
.journey-path::before { top: 27px; background: var(--border); }
.journey-path li::before { background: var(--border); }
.journey-node { width: 56px; height: 56px; border: 1px solid #6c83a0; border-radius: 13px 13px 13px 4px; color: var(--white); background: var(--panel); box-shadow: inset 3px 0 #ffc85160, 0 3px 0 #020d19; }
.journey-path li:nth-child(2n) .journey-node { transform: none; }
.journey-path small, .journey-caption { color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.journey-caption { margin-top: 30px; }
.daily { color: var(--white); background: var(--ink); }
.daily .phone-frame { max-width: 260px; }

.how { color: var(--white); background: var(--ink); }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; margin: 38px 0 0; padding: 0; list-style: none; }
.step { display: block; padding-top: 23px; border-top: 1px solid var(--border); }
.step-number { display: block; margin-bottom: 23px; color: var(--blue); font: 600 1.5rem/1 var(--display-font); }
.step h3 { margin-bottom: 13px; color: var(--white); font: 600 1.5rem/1.2 var(--display-font); }
.step p { max-width: none; color: var(--muted); font-size: 0.9375rem; }
.release { color: var(--white); background: #091d3d66; }
.release-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: start; }
.release-status { color: var(--gold); font-size: 0.8125rem; }
.release-copy > p:not(.release-status):not(.kicker) { max-width: 520px; color: var(--muted); margin-block: 23px; }
.release-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.release-faq { padding: 28px; border: 1px solid var(--border); border-radius: 26px; color: var(--white); background: var(--panel); }
.release-faq > h3 { margin: 0 0 14px; font: 600 1.375rem/1.3 var(--display-font); }
.faq-entry { border-color: var(--border); }
.faq-entry summary { min-height: 44px; color: var(--white); }
.faq-entry summary::after { color: var(--blue); }
.faq-entry p { color: var(--muted); }
.site-footer { color: var(--white); background: var(--ink); border: 0; }
.footer-inner { padding-block: 35px; border-color: var(--border); }
.site-footer .brand { color: var(--white); font-size: 1.75rem; }
.site-footer p, .site-footer small { color: var(--muted); }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap !important; border: 0 !important; }
:where(a, button, summary):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.button.primary:focus-visible, .demo-again:focus-visible { outline-color: var(--gold); }

@media (max-width: 1100px) {
  .header-inner { gap: 19px; padding-inline: 20px; }
  .brand { font-size: 1.75rem; }
  .site-nav { gap: 23px; }
  .site-header .header-action { margin-left: 0; padding-inline: 19px; }
  .hero-inner { gap: 22px; }
  .hero-lead { font-size: 1.0625rem; }
  .hero-actions .button { padding-inline: 21px; font-size: 0.9375rem; }
  .mode-shortcut { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 18px 15px; }
  .mode-shortcut.featured { padding: 18px 15px; }
  .mode-shortcut > img { width: 42px; height: 50px; }
  .mode-shortcut > .icon:last-child { display: none; }
  .mode-shortcut strong { font-size: 1.25rem; }
  .game-layout, .feature-layout, .feature-layout.reverse { gap: 44px; }
  .journey-layout { gap: 40px; }
  .mode-panel { gap: 40px; padding: 38px; }
  .release-inner { gap: 42px; }
}
@media (max-width: 900px) {
  .header-inner > .site-nav { display: none; }
  .site-header .header-action { margin-left: auto; }
  .mobile-nav { display: block; }
  .hero-inner { grid-template-columns: 1fr 0.85fr; gap: 15px; padding-block: 54px 42px; }
  .hero h1 { font-size: clamp(3.375rem, 7.3vw, 4.5rem); }
  .hero-actions { gap: 12px; }
  .hero-actions .button { min-height: 52px; padding-inline: 18px; }
  .hero-visual::after, .hero-art::after { box-shadow: none; }
  .mode-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-shortcut { grid-template-columns: 50px minmax(0, 1fr) 18px; padding: 19px 21px; }
  .mode-shortcut.featured { padding: 19px 21px; }
  .mode-shortcut > img { width: 50px; height: 58px; }
  .mode-shortcut > .icon:last-child { display: block; }
  .game-layout { gap: 36px; }
  .demo { padding: 20px; }
  .demo-piece-preview { --piece-cell: 14px; }
  .mode-panel { gap: 30px; padding: 32px; }
  .feature-layout, .feature-layout.reverse, .journey-layout { gap: 35px; }
  .journey-path { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 27px 10px; }
  .journey-path::before { display: none; }
  .journey-path li::before { top: 27px; }
  .feature-visual { gap: 8px; }
  .feature-art { width: 35%; }
  .extra-features { gap: 24px; }
  .how-steps { gap: 26px; }
  .release-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 700px) {
  .wrap, .section-inner { width: calc(100% - 48px); }
  .site-header { padding-top: 16px; }
  .arena-home section[id], .arena-home main[id] { scroll-margin-top: 116px; }
  .header-inner { min-height: 76px; gap: 12px; padding: 13px 16px; border-radius: 25px; }
  .brand { gap: 9px; font-size: 1.625rem; }
  .brand img { width: 42px; height: 42px; border-radius: 12px; }
  .site-header .header-action { min-height: 44px; padding: 11px 15px; font-size: 0.8125rem; }
  .mobile-nav nav { left: 24px; right: 24px; }
  .hero-inner { display: grid; grid-template-columns: 1fr; gap: 33px; height: auto; padding-block: 43px 31px; }
  .hero-copy { display: block; min-height: 0; max-width: 560px; }
  .hero h1 { font-size: clamp(3.375rem, 10.6vw, 4.75rem); line-height: 1.03; }
  .hero-lead { max-width: 520px; margin-block: 22px 25px; font-size: 1rem; line-height: 1.65; }
  .hero-actions .button { flex: 0 1 auto; min-height: 53px; padding: 14px 21px; font-size: 0.9375rem; }
  .hero-note { font-size: 0.75rem; margin-top: 20px; }
  .hero-visual, .hero-art { width: min(100%, 410px); justify-self: center; }
  .hero-visual::after, .hero-art::after { top: 15%; right: 0; }
  .mode-chooser { padding-block: 14px 48px; }
  .mode-chooser h2 { font-size: 1rem; }
  .mode-shortcuts { gap: 12px; }
  .mode-shortcut { position: relative; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 12px; padding: 17px 16px 39px; min-height: 0; border-radius: 21px; }
  .mode-shortcut.featured { padding: 17px 16px 39px; }
  .mode-shortcut > img { width: 44px; height: 48px; }
  .mode-shortcut > span:not(.icon) { grid-column: 1 / -1; }
  .mode-shortcut > .icon:last-child { position: absolute; right: 16px; bottom: 15px; }
  .mode-shortcut strong { font-size: 1.375rem; }
  .mode-shortcut small { font-size: 0.8125rem; }
  .section { padding-block: 62px; }
  .section h2, .feature-copy h2 { font-size: clamp(2.5rem, 8vw, 3.25rem); line-height: 1.09; }
  .section-heading { margin-bottom: 29px; }
  .section-heading p { font-size: 1rem; }
  .game-layout, .feature-layout, .feature-layout.reverse, .journey-layout { grid-template-columns: 1fr; gap: 36px; }
  .game-copy { text-align: left; }
  .game-copy h2 br { display: none; }
  .game-copy > p { max-width: 530px; }
  .demo { justify-self: center; width: min(100%, 460px); padding: 24px; box-shadow: 0 16px 45px #00000025; }
  .demo-piece-preview { --piece-cell: 18px; }
  .mode-tabs { gap: 8px; margin-bottom: 22px; }
  .mode-tabs button { flex: 1 1 calc(25% - 8px); padding: 12px 15px; font-size: 0.875rem; }
  .mode-tabs button .icon { display: none; }
  .mode-panel { grid-template-columns: 1fr; gap: 32px; padding: 28px; border-radius: 24px; }
  .mode-copy h3 { font-size: 2.5rem; }
  .mode-art .phone-frame { width: min(100%, 230px); }
  .feature-copy > p:not(.section-label), .journey-copy > p:not(.section-label), .daily-copy > p:not(.section-label) { margin-block: 20px; }
  .feature-visual { width: 100%; gap: 15px; }
  .feature-art { width: 35%; }
  .feature-list > li { gap: 4px 13px; padding-block: 18px; }
  .extra-features { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .extra-features > * { padding-top: 22px; }
  .gear-showcase { padding: 9px; border-radius: 21px; }
  .gear-showcase img { border-radius: 13px; }
  .journey-picture { width: 100%; max-width: 620px; }
  .journey-picture img { max-height: none; border-radius: 18px; }
  .journey-path { gap: 24px 7px; margin-top: 35px; }
  .journey-node { width: 48px; height: 48px; font-size: 1rem; }
  .journey-path li::before { top: 23px; }
  .journey-path small { font-size: 0.625rem; }
  .how-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 33px; }
  .step { display: block; }
  .step-number { margin-bottom: 17px; }
  .step h3 { font-size: 1.5rem; }
  .release-actions .button { min-height: 53px; }
  .release-faq { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; padding-block: 30px; }
  .footer-inner nav { justify-content: flex-start; gap: 23px; }
  .footer-inner small { text-align: left; }
}
@media (max-width: 420px) {
  .wrap, .section-inner { width: calc(100% - 40px); }
  .header-inner { gap: 9px; padding-inline: 13px; }
  .brand { gap: 7px; font-size: 1.5rem; }
  .brand img { width: 38px; height: 38px; }
  .site-header .header-action { display: none; }
  .mobile-nav { margin-left: auto; }
  .mobile-nav nav { left: 20px; right: 20px; }
  .hero-inner { gap: 29px; padding-top: 36px; }
  .hero h1 { font-size: clamp(2.75rem, 13.4vw, 3.5rem); letter-spacing: -0.05em; }
  .hero-actions { gap: 11px; }
  .hero-actions .button { flex: 1 1 100%; width: 100%; }
  .hero-visual, .hero-art { width: min(100%, 350px); }
  .mode-shortcuts { gap: 11px; }
  .mode-shortcut, .mode-shortcut.featured { padding-inline: 15px; }
  .mode-shortcut strong { font-size: 1.25rem; }
  .section { padding-block: 53px; }
  .section h2, .feature-copy h2 { font-size: 2.375rem; }
  .demo { padding: 18px; border-radius: 23px; }
  .demo-title { font-size: 1.25rem; }
  .demo-reset { gap: 5px; padding-inline: 10px; }
  .demo-piece-preview { --piece-cell: 14px; }
  .demo-piece { min-height: 100px; }
  .demo-tray { gap: 6px; }
  .demo-over { padding: 18px; }
  .demo-final-score { font-size: 2.75rem; }
  .demo-again, .demo-view { min-height: 44px; }
  .mode-panel { padding: 24px 20px; }
  .mode-copy h3 { font-size: 2.125rem; }
  .mode-tabs button { flex: 1 1 calc(50% - 8px); }
  .feature-list strong { font-size: 1.125rem; }
  .feature-list p { font-size: 0.875rem; }
  .phone-frame { max-width: 250px; border-width: 8px; border-radius: 33px; }
  .feature-visual { flex-wrap: wrap; gap: 24px; }
  .feature-art { width: min(70%, 240px); }
  .journey-node { width: 43px; height: 47px; }
  .release-faq { padding: 22px; }
}
@media (max-width: 360px) {
  .wrap, .section-inner { width: calc(100% - 32px); }
  .header-inner { padding-inline: 12px; }
  .brand { font-size: 1.375rem; }
  .brand img { width: 36px; height: 36px; }
  .mobile-nav nav { left: 16px; right: 16px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-lead { font-size: 0.9375rem; }
  .mode-shortcut, .mode-shortcut.featured { padding-inline: 13px; }
  .mode-shortcut small { font-size: 0.75rem; }
  .demo { padding: 15px; }
  .demo-head { gap: 8px; }
  .demo-title { font-size: 1.125rem; }
  .demo-reset { max-width: 90px; padding-inline: 8px; font-size: 0.625rem; }
  .demo-reset .icon { width: 14px; height: 14px; }
  .demo-scores { gap: 5px 10px; }
  .demo-board { gap: 2px; padding: 5px; }
  .demo-tray .demo-piece-preview { --piece-cell: 11px; gap: 2px; }
  .demo-piece { min-height: 90px; }
  .demo-over { padding: 17px 14px; }
  .demo-over h3 { font-size: 1.375rem; }
  .demo-final-score { font-size: 2.375rem; }
  .demo-breakdown { font-size: 0.6875rem; }
  .journey-node { width: 39px; height: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
  .button:hover, .header-action:hover, .mode-shortcut:hover, .demo-piece:hover, .mode-tabs button:hover { transform: none; }
}
