:root {
    color-scheme: dark;
    --ink: #fffaf2;
    --muted: #c8d8ea;
    --quiet: #91a9c0;
    --gold: #ffd257;
    --gold-deep: #e5a82f;
    --cyan: #5be7f2;
    --teal: #38c9c7;
    --violet: #a56cff;
    --blue: #5f8fff;
    --page: #06172f;
    --card: rgba(7, 22, 49, 0.9);
    --panel: rgba(5, 20, 44, 0.7);
    --border: rgba(255, 255, 255, 0.14);
    --shadow: rgba(0, 0, 0, 0.48);
    --content-width: 76rem;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--page);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 9%, rgba(91, 231, 242, 0.15), transparent 28rem),
        radial-gradient(circle at 88% 21%, rgba(165, 108, 255, 0.22), transparent 32rem),
        radial-gradient(circle at 50% 105%, rgba(255, 170, 90, 0.14), transparent 38rem),
        linear-gradient(155deg, #06152b 0%, #0b2450 49%, #260f46 100%);
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: 0.5;
    background-image:
        radial-gradient(circle at 15% 22%, #fff 0 1px, transparent 1.6px),
        radial-gradient(circle at 78% 17%, #ffdca0 0 1px, transparent 1.8px),
        radial-gradient(circle at 63% 71%, #8befff 0 1px, transparent 1.6px),
        radial-gradient(circle at 31% 84%, #fff 0 1px, transparent 1.5px),
        radial-gradient(circle at 91% 62%, #d8b5ff 0 1px, transparent 1.7px);
    background-size: 190px 190px, 270px 270px, 230px 230px, 310px 310px, 360px 360px;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.7rem 1rem;
    border-radius: 0.7rem;
    color: #06172f;
    background: var(--cyan);
    font-weight: 800;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.content-width {
    width: min(calc(100% - 2rem), var(--content-width));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(calc(100% - 2rem), var(--content-width));
    min-height: 5.5rem;
    margin: 0 auto;
    padding: 0.8rem 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 1 12rem;
}

.site-brand img {
    display: block;
    width: 12rem;
    height: auto;
    filter: drop-shadow(0 0.45rem 0.75rem rgba(0, 0, 0, 0.5));
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.8rem, 2.5vw, 1.8rem);
}

.site-nav a {
    color: #d9e7f4;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.site-nav a:hover {
    color: #fff;
}

.nav-store-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.nav-store-badge {
    display: inline-grid;
    place-items: center;
    line-height: 0;
    transition: transform 160ms ease, filter 160ms ease;
}

a.nav-store-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.nav-store-badge img {
    display: block;
    width: auto;
}

.nav-store-badge-apple img {
    height: 40px;
}

.nav-store-badge-google img {
    height: 40px;
}

main {
    display: grid;
    gap: clamp(3.8rem, 8vw, 7rem);
    padding: 1rem 0 clamp(4rem, 8vw, 7rem);
}

.eyebrow,
.section-kicker,
.mode-overline {
    margin: 0 0 0.65rem;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
.challenge-title {
    font-family: Georgia, "Times New Roman", serif;
    text-wrap: balance;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 12ch;
    margin-bottom: 1.25rem;
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
    text-shadow: 0 0.2rem 0.9rem rgba(0, 0, 0, 0.48);
}

h2 {
    margin-bottom: 0.9rem;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

h3 {
    margin-bottom: 0.45rem;
    font-size: 1.35rem;
    line-height: 1.15;
}

.shared-link-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(255, 210, 87, 0.35);
    border-radius: 1rem;
    color: #f3e8c0;
    background: rgba(67, 45, 8, 0.45);
    text-align: center;
}

.challenge-invitation {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(1.4rem, 4vw, 3.2rem);
    border: 1px solid rgba(91, 231, 242, 0.28);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 8% 15%, rgba(91, 231, 242, 0.18), transparent 25rem),
        linear-gradient(135deg, rgba(13, 50, 79, 0.94), rgba(30, 10, 61, 0.94));
    box-shadow:
        0 1.8rem 4rem rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.challenge-invitation::after {
    position: absolute;
    inset: -10rem -5rem auto auto;
    width: 19rem;
    aspect-ratio: 1;
    border: 1px solid rgba(165, 108, 255, 0.28);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 4rem rgba(165, 108, 255, 0.2);
    pointer-events: none;
}

.challenge-copy,
.challenge-summary {
    position: relative;
    z-index: 1;
}

.challenge-title {
    max-width: 13ch;
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 5vw, 4.1rem);
    font-weight: 700;
    line-height: 0.98;
}

.challenge-intro {
    max-width: 37rem;
    margin-bottom: 1.4rem;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.6;
}

.challenge-install {
    display: grid;
    justify-items: start;
    gap: 0.55rem;
}

.challenge-install-title {
    margin: 0;
    color: #f8fbff;
    font-size: 0.92rem;
    font-weight: 800;
}

.challenge-store-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.challenge-store-badge {
    display: inline-grid;
    place-items: center;
    line-height: 0;
    transition: transform 160ms ease, filter 160ms ease;
}

a.challenge-store-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.challenge-store-badge img {
    display: block;
    width: auto;
}

.challenge-store-badge-apple img {
    height: 44px;
}

.challenge-store-badge-google img {
    height: 44px;
}

.challenge-return-note {
    max-width: 30rem;
    margin: 0.15rem 0 0;
    color: #9db5cb;
    font-size: 0.76rem;
    line-height: 1.45;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0.75rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #2f1b04;
    background: linear-gradient(180deg, #ffe783, var(--gold) 55%, var(--gold-deep));
    box-shadow: 0 0.8rem 1.7rem rgba(229, 168, 47, 0.2);
}

.button-secondary {
    border-color: rgba(91, 231, 242, 0.42);
    color: #eefcff;
    background: rgba(9, 37, 66, 0.72);
}

.challenge-trust {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 1.25rem 0 0;
    color: #aeeedc;
    font-size: 0.82rem;
    font-weight: 800;
}

.status-dot {
    width: 0.55rem;
    aspect-ratio: 1;
    border-radius: 50%;
    color: #55e6bd;
    background: currentColor;
    box-shadow: 0 0 0.75rem currentColor;
}

.challenge-summary {
    padding: clamp(1.1rem, 3vw, 1.6rem);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 50% 0, rgba(91, 231, 242, 0.1), transparent 65%),
        rgba(3, 15, 37, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-align: center;
}

.mode-pill {
    display: inline-flex;
    margin: 0 auto 0.9rem;
    padding: 0.38rem 0.75rem;
    border: 1px solid rgba(165, 108, 255, 0.48);
    border-radius: 999px;
    color: #eadfff;
    background: rgba(106, 52, 172, 0.23);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.target {
    display: grid;
    justify-items: center;
    gap: 0.2rem;
}

.target-caption {
    color: #aac1d8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.target-result {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.45rem;
    color: var(--gold);
}

.target-value {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 7vw, 4.5rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 0 1.4rem rgba(255, 210, 87, 0.2);
}

.target-unit {
    font-size: 0.95rem;
    font-weight: 800;
}

.target-explanation {
    max-width: 28rem;
    margin: 0.65rem auto 1rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0;
}

.rules-grid div {
    min-width: 0;
    padding: 0.7rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.035);
}

.rules-grid dt {
    margin-bottom: 0.2rem;
    color: #829bb4;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.rules-grid dd {
    margin: 0;
    color: #f5f9ff;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}

.product-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    min-height: min(46rem, calc(100vh - 7.5rem));
    padding: clamp(2rem, 6vw, 5.5rem);
    border: 1px solid var(--border);
    border-radius: 2.4rem;
    background:
        linear-gradient(90deg, rgba(4, 18, 43, 0.97) 0%, rgba(9, 28, 62, 0.86) 48%, rgba(28, 10, 58, 0.65) 100%),
        url("/that-numbers-game/assets/game-sky.png") center 45% / cover;
    box-shadow:
        0 2.2rem 5rem var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    isolation: isolate;
    overflow: hidden;
}

.product-hero::after {
    position: absolute;
    inset: auto -12% -48% 35%;
    z-index: -1;
    height: 85%;
    border-radius: 50%;
    content: "";
    background: rgba(165, 108, 255, 0.2);
    filter: blur(5rem);
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-intro {
    max-width: 36rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    line-height: 1.62;
    text-wrap: pretty;
}

.store-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.store-badge {
    display: inline-grid;
    place-items: center;
    min-height: 4rem;
    text-decoration: none;
    transition: transform 160ms ease, filter 160ms ease;
}

a.store-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.store-badge img {
    display: block;
    width: auto;
}

.store-badge-apple img {
    height: 52px;
}

.store-badge-google img {
    height: 52px;
}

.store-availability {
    grid-auto-flow: row;
    row-gap: 0.28rem;
    text-decoration: none;
}

.store-availability-copy {
    display: grid;
    gap: 0.08rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.store-availability-copy strong {
    color: var(--cyan);
    font-size: 0.75rem;
    letter-spacing: 0.065em;
}

.store-coming-soon {
    cursor: default;
    user-select: none;
}

.store-coming-soon > img {
    opacity: 0.56;
    filter: saturate(0.72);
}

.store-coming-soon .store-availability-copy strong {
    color: var(--gold);
}

.nav-store-badge.store-availability {
    min-width: 8.8rem;
}

.nav-store-badge .store-availability-copy {
    font-size: 0.58rem;
}

.nav-store-badge .store-availability-copy strong {
    font-size: 0.65rem;
}

.challenge-store-badge .store-availability-copy {
    font-size: 0.62rem;
}

.challenge-store-badge .store-availability-copy strong {
    font-size: 0.7rem;
}

.platforms {
    margin: 0.55rem 0 0;
    color: #a9bdd0;
    font-size: 0.78rem;
    font-weight: 700;
}

.download-reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0;
    margin: 0.35rem 0 0;
    padding: 0;
    color: #e6f2ff;
    font-size: 0.82rem;
    font-weight: 800;
    list-style: none;
}

.download-reassurance li + li::before {
    margin: 0 0.55rem;
    color: var(--gold);
    content: "\00b7";
}

.hero-visual {
    display: grid;
    place-items: center;
    min-height: 34rem;
}

.hero-phone {
    position: relative;
    z-index: 2;
    width: min(78%, 19rem);
    margin: 0;
    transform: rotate(2deg);
    animation: hero-float 5s ease-in-out infinite;
}

.hero-orbit {
    position: absolute;
    z-index: 0;
    width: 23rem;
    aspect-ratio: 1;
    border: 1px solid rgba(91, 231, 242, 0.32);
    border-radius: 50%;
    box-shadow: 0 0 3rem rgba(91, 231, 242, 0.16);
    animation: orbit-pulse 4s ease-in-out infinite;
}

.hero-orbit-two {
    width: 31rem;
    border-color: rgba(165, 108, 255, 0.22);
    animation-delay: -2s;
}

.phone-frame {
    padding: 0.4rem;
    border: 1px solid rgba(255, 210, 87, 0.46);
    border-radius: 1.8rem;
    background: linear-gradient(145deg, rgba(255, 235, 153, 0.2), rgba(46, 18, 78, 0.75));
    box-shadow:
        0 1.5rem 3rem rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    overflow: hidden;
}

.phone-frame img,
.phone-frame video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.45rem;
}

.hero-gameplay-video {
    background: #06172f;
}

.phone-frame img.hero-gameplay-poster {
    display: none;
}

.section-block {
    display: grid;
    gap: clamp(1.7rem, 4vw, 3rem);
}

.section-heading {
    max-width: 46rem;
}

.section-heading > p:last-child {
    max-width: 40rem;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.62;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step-grid li {
    position: relative;
    min-height: 14rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 100% 0, rgba(91, 231, 242, 0.1), transparent 12rem),
        rgba(7, 25, 53, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.step-grid li::after {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 2.6rem;
    aspect-ratio: 1;
    border: 1px solid rgba(165, 108, 255, 0.25);
    border-radius: 0.55rem;
    content: "";
    transform: rotate(12deg);
    box-shadow: 0 0 1.5rem rgba(165, 108, 255, 0.13);
}

.step-number {
    display: grid;
    place-items: center;
    width: 2rem;
    aspect-ratio: 1;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(255, 210, 87, 0.5);
    border-radius: 50%;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.step-grid p,
.mode-card > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mode-card {
    position: relative;
    min-height: 17rem;
    padding: clamp(1.4rem, 3vw, 2rem) clamp(6.5rem, 12vw, 9rem) clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: rgba(7, 23, 50, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.mode-card::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: radial-gradient(circle at 95% 15%, var(--mode-glow), transparent 14rem);
}

.mode-card img {
    position: absolute;
    top: 50%;
    right: clamp(1rem, 3vw, 2rem);
    width: clamp(5rem, 9vw, 7.2rem);
    transform: translateY(-50%);
    filter: drop-shadow(0 0.7rem 0.8rem rgba(0, 0, 0, 0.35));
}

.mode-card h3,
.mode-card p {
    position: relative;
}

.mode-card-teal { --mode-glow: rgba(56, 201, 199, 0.22); }
.mode-card-violet { --mode-glow: rgba(165, 108, 255, 0.25); }
.mode-card-blue { --mode-glow: rgba(95, 143, 255, 0.24); }
.mode-card-gold { --mode-glow: rgba(255, 210, 87, 0.2); }

.mode-overline {
    margin-bottom: 0.55rem;
    color: #b9d8ee;
    font-size: 0.68rem;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.8rem, 2vw, 1.35rem);
    align-items: start;
}

.screenshot-card {
    margin: 0;
}

.screenshot-card:nth-child(even) {
    margin-top: 3rem;
}

.screenshot-card figcaption {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 0.35rem 0;
}

.screenshot-card figcaption strong {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}

.screenshot-card figcaption span {
    color: var(--quiet);
    font-size: 0.78rem;
    line-height: 1.45;
}

.download-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 20rem;
    padding: clamp(2rem, 6vw, 4.5rem);
    border: 1px solid rgba(255, 210, 87, 0.25);
    border-radius: 2rem;
    background:
        linear-gradient(90deg, rgba(4, 17, 40, 0.96), rgba(20, 10, 49, 0.78)),
        url("/that-numbers-game/assets/game-sky.png") center 63% / cover;
    box-shadow:
        0 1.8rem 4rem rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.download-section::after {
    position: absolute;
    right: 20%;
    bottom: -7rem;
    width: 16rem;
    aspect-ratio: 1;
    border: 1px solid rgba(91, 231, 242, 0.25);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 4rem rgba(91, 231, 242, 0.18);
}

.download-copy,
.download-section .store-actions {
    position: relative;
    z-index: 1;
}

.download-copy {
    max-width: 35rem;
}

.download-copy h2 {
    margin-bottom: 0.7rem;
}

.download-copy > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 0 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer > div {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.site-footer img {
    width: 2.8rem;
    aspect-ratio: 1;
    border-radius: 0.7rem;
}

.site-footer p {
    display: grid;
    gap: 0.2rem;
    margin: 0;
}

.site-footer p strong {
    font-family: Georgia, "Times New Roman", serif;
}

.site-footer p span,
.site-footer nav {
    color: var(--quiet);
    font-size: 0.78rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.2rem;
}

.site-footer nav a {
    text-underline-offset: 0.22em;
}

/* Privacy page */

.legal-page main {
    gap: 0;
    padding-top: 1.5rem;
}

.legal-card {
    width: min(calc(100% - 2rem), 54rem);
    margin-inline: auto;
    padding: clamp(1.4rem, 5vw, 3.3rem);
    border: 1px solid var(--border);
    border-radius: 2rem;
    background:
        linear-gradient(145deg, rgba(16, 54, 88, 0.68), rgba(23, 8, 52, 0.86)),
        var(--card);
    box-shadow:
        0 2rem 5rem rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.legal-header {
    text-align: center;
}

.legal-header h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(2.4rem, 8vw, 4.2rem);
}

.legal-header .updated {
    margin: 0.75rem 0 0;
    color: var(--quiet);
    font-size: 0.88rem;
}

.legal-card .summary {
    margin-top: 1.7rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(91, 231, 242, 0.24);
    border-radius: 1rem;
    background: rgba(5, 20, 44, 0.58);
}

.legal-card h2 {
    margin: 2.2rem 0 0.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    letter-spacing: 0;
    line-height: 1.2;
}

.legal-card h2:first-of-type {
    border-top: 0;
}

.legal-card p,
.legal-card li {
    color: var(--muted);
    line-height: 1.66;
}

.legal-card p {
    margin-bottom: 0.7rem;
}

.legal-card ul {
    padding-left: 1.25rem;
}

.legal-card li + li {
    margin-top: 0.45rem;
}

.legal-card a {
    color: var(--cyan);
    text-underline-offset: 0.18em;
}

.legal-card code {
    color: #e9ddff;
}

.legal-card .footnote {
    margin-top: 2rem;
    color: var(--quiet);
    font-size: 0.85rem;
}

[hidden] {
    display: none !important;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-0.5rem) rotate(1deg); }
}

@keyframes orbit-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.96); }
    50% { opacity: 0.9; transform: scale(1.03); }
}

@media (max-width: 62rem) {
    .challenge-invitation,
    .product-hero {
        grid-template-columns: 1fr;
    }

    .product-hero {
        min-height: auto;
    }

    .hero-copy {
        max-width: 43rem;
    }

    .hero-visual {
        min-height: 31rem;
    }

    .hero-phone {
        width: min(58%, 18rem);
    }

    .screenshot-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 45rem;
    }

    .download-section {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 44rem) {
    .site-header {
        align-items: center;
        flex-direction: column;
        gap: 0.45rem;
    }

    .site-brand {
        flex-basis: auto;
    }

    .site-brand img {
        width: 8.5rem;
    }

    .site-nav {
        justify-content: center;
        width: 100%;
    }

    .nav-section-link {
        display: none;
    }

    main {
        gap: 4rem;
        padding-top: 0.5rem;
    }

    .shared-link-notice {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .challenge-invitation,
    .product-hero,
    .download-section,
    .legal-card {
        border-radius: 1.45rem;
    }

    .challenge-install .button {
        width: 100%;
    }

    .challenge-store-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.15rem;
    }

    .download-reassurance {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .download-reassurance li + li::before {
        margin: 0 0.45rem 0 0;
    }

    .product-hero {
        padding: 1.5rem;
    }

    .hero-visual {
        min-height: 27rem;
    }

    .hero-phone {
        width: min(66%, 16rem);
    }

    .hero-orbit {
        width: 18rem;
    }

    .hero-orbit-two {
        width: 24rem;
    }

    .store-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.1rem;
    }

    .step-grid,
    .mode-grid {
        grid-template-columns: 1fr;
    }

    .step-grid li {
        min-height: 12rem;
    }

    .mode-card {
        min-height: 15rem;
        padding-right: 7rem;
    }

    .mode-card img {
        width: 5.5rem;
    }

    .screenshot-gallery {
        gap: 1rem;
    }

    .screenshot-card:nth-child(even) {
        margin-top: 1.5rem;
    }

    .screenshot-card figcaption span {
        display: none;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

@media (max-width: 25rem) {
    .rules-grid,
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    .screenshot-card:nth-child(even) {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-gameplay-video {
        display: none;
    }

    .phone-frame img.hero-gameplay-poster {
        display: block;
    }
}
