:root {
    color-scheme: dark;
    --bg: #070416;
    --bg-soft: #0f0829;
    --surface: rgba(20, 12, 49, 0.78);
    --surface-strong: #17103a;
    --surface-light: rgba(255, 255, 255, 0.075);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 216, 100, 0.35);
    --text: #fffaf0;
    --muted: #aaa3c5;
    --gold: #ffd25f;
    --gold-strong: #ffad27;
    --pink: #ff4ec7;
    --violet: #8f5cff;
    --cyan: #45d7ff;
    --success: #48e2a3;
    --danger: #ff816f;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 16px;
    --shell: min(1180px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #08051b;
    scroll-behavior: smooth;
    scroll-padding-top: 126px;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100%;
    background:
        radial-gradient(circle at 15% 8%, rgba(92, 48, 197, 0.26), transparent 30rem),
        radial-gradient(circle at 88% 22%, rgba(255, 55, 184, 0.14), transparent 25rem),
        linear-gradient(180deg, #08051b 0%, #060311 58%, #09051b 100%);
    color: var(--text);
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 74%);
    z-index: -3;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

::selection {
    background: rgba(255, 210, 95, 0.28);
    color: white;
}

.section-shell,
.header-shell,
.footer-shell {
    width: var(--shell);
    margin-inline: auto;
}

.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 3px;
    background: rgba(255,255,255,.05);
}

.page-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--pink), var(--violet));
    box-shadow: 0 0 18px rgba(255, 78, 199, 0.7);
}

.ambient {
    position: fixed;
    width: 560px;
    height: 560px;
    border-radius: 999px;
    opacity: 0.16;
    z-index: -2;
    pointer-events: none;
}

.ambient-one {
    top: 6vh;
    left: -240px;
    background: radial-gradient(circle, var(--violet) 0%, rgba(143, 92, 255, 0) 68%);
}

.ambient-two {
    top: 48vh;
    right: -280px;
    background: radial-gradient(circle, var(--pink) 0%, rgba(255, 78, 199, 0) 68%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    background: linear-gradient(to bottom, rgba(7, 4, 22, .96), rgba(7, 4, 22, .78));
    border-bottom: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(24px) saturate(130%);
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 210, 95, .24);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 242, 164, .96), rgba(255, 178, 42, .9)),
        rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.58), 0 16px 36px rgba(255, 174, 38, .16);
    transition: transform .22s ease, filter .22s ease;
}

.brand:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.brand-title {
    color: #281600;
    font-size: 18px;
    font-weight: 1000;
    line-height: 1;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #3b2200;
    font-weight: 1000;
    font-size: 24px;
    background: linear-gradient(145deg, #fff3ab, #ffbb31 50%, #ef781d);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 24px rgba(255, 175, 39, .26);
}

.brand-copy {
    display: grid;
    line-height: 1.12;
}

.brand-copy strong {
    font-size: 19px;
    letter-spacing: .02em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .2em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 17px;
    color: var(--muted);
    border-radius: 13px;
    font-size: 14px;
    font-weight: 760;
    transition: .24s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,.065);
}

.nav-link.is-active {
    color: #291600;
    background: linear-gradient(135deg, #fff2a4, var(--gold-strong));
    box-shadow: 0 8px 24px rgba(255, 174, 38, .2);
}

.language-toggle {
    flex: 0 0 auto;
    min-width: 52px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(255, 210, 95, .28);
    border-radius: 13px;
    color: #2d1900;
    background: linear-gradient(135deg, #fff1a1, #ffb12b);
    cursor: pointer;
    font-size: 13px;
    font-weight: 1000;
    transition: .22s ease;
}

.language-toggle:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.nav-icon {
    font-size: 10px;
    opacity: .66;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
    min-height: 720px;
    padding-top: 68px;
    padding-bottom: 66px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--pink));
    box-shadow: 0 0 10px rgba(255, 210, 95, .7);
}

.hero h1,
.gallery-copy h1 {
    margin: 21px 0 21px;
    font-size: clamp(42px, 5.2vw, 74px);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.hero h1 em,
.gallery-copy h1 em {
    color: transparent;
    font-style: normal;
    background: linear-gradient(100deg, #fff7ba, var(--gold), #ff8c43, var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-lead,
.gallery-copy > p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.referral-panel {
    position: relative;
    margin-top: 31px;
    padding: 18px 20px 17px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 21px;
    background:
        linear-gradient(135deg, rgba(255,210,95,.11), transparent 58%),
        rgba(22, 13, 49, .82);
    box-shadow: 0 18px 50px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.07);
}

.referral-panel::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -58px;
    top: -58px;
    border-radius: 999px;
    background: var(--gold);
    filter: blur(48px);
    opacity: .12;
}

.referral-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d6cee8;
    font-size: 13px;
}

.referral-badge {
    padding: 4px 9px;
    color: #3d2300;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff1a2, #ffb93a);
    font-size: 11px;
    font-weight: 900;
}

.referral-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 11px;
}

.referral-value-row code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: white;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: .055em;
}

.referral-value-row code.is-missing {
    font-family: inherit;
    letter-spacing: 0;
}

.copy-button,
.inline-copy button {
    flex: 0 0 auto;
    border: 0;
    cursor: pointer;
    transition: .2s ease;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    color: #251500;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffe890, #ffb32d);
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(255, 180, 45, .18);
}

.copy-button:hover,
.inline-copy button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.referral-panel > p {
    margin: 9px 0 0;
    color: #a9a1bd;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 900;
    transition: transform .22s ease, filter .22s ease, border-color .22s ease;
}

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

.button-primary {
    color: #2d1800;
    background: linear-gradient(135deg, #fff1a0, var(--gold-strong));
    box-shadow: 0 15px 34px rgba(255, 171, 38, .22);
}

.button-secondary {
    color: white;
    border-color: var(--line);
    background: rgba(255,255,255,.055);
}

.button-secondary:hover {
    border-color: rgba(255,255,255,.26);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 26px;
    color: #9891ad;
    font-size: 12px;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.trust-row b {
    color: var(--gold);
    font-size: 10px;
}

.hero-visual {
    position: relative;
    isolation: isolate;
}

.hero-image-frame {
    position: relative;
    padding: 10px;
    border: 1px solid rgba(255, 217, 106, .34);
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.025));
    box-shadow: 0 40px 110px rgba(0,0,0,.53), 0 0 80px rgba(136, 73, 255, .12);
    transform: rotate(1.4deg);
}

.hero-image-frame::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 215, 98, .8), rgba(255, 67, 192, .35), rgba(72, 206, 255, .55));
    filter: blur(19px);
    opacity: .36;
}

.hero-image-frame img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 31px;
}

.hero-glow {
    position: absolute;
    inset: auto 16% -22px;
    height: 44px;
    z-index: -1;
    background: linear-gradient(90deg, var(--pink), var(--gold), var(--cyan));
    filter: blur(30px);
    opacity: .42;
}

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    background: rgba(14, 8, 38, .82);
    box-shadow: 0 18px 46px rgba(0,0,0,.4);
    backdrop-filter: blur(18px);
    font-size: 12px;
    font-weight: 800;
}

.floating-card-top {
    top: 9%;
    left: -28px;
}

.floating-card-bottom {
    right: -28px;
    bottom: 9%;
}

.floating-card-bottom strong {
    color: var(--gold);
    font-size: 30px;
    line-height: 1;
}

.floating-card-bottom span {
    color: #c9c2d9;
    line-height: 1.28;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(72,226,163,.1), 0 0 14px rgba(72,226,163,.7);
}

.quick-guide {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.035);
    box-shadow: var(--shadow);
}

.quick-guide a {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 130px;
    padding: 24px;
    border-right: 1px solid var(--line);
    transition: .24s ease;
}

.quick-guide a:last-child {
    border-right: 0;
}

.quick-guide a:hover {
    background: linear-gradient(145deg, rgba(255,210,95,.09), rgba(143,92,255,.08));
}

.quick-guide a > span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
}

.quick-guide strong {
    margin-top: 4px;
    font-size: 18px;
}

.quick-guide small {
    color: var(--muted);
    font-size: 11px;
}

.tutorial-layout {
    display: grid;
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding-top: 105px;
}

.chapter-nav {
    position: sticky;
    top: 116px;
    display: grid;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(16, 9, 39, .75);
    backdrop-filter: blur(20px);
}

.chapter-nav > p {
    margin: 0 0 8px;
    padding: 0 8px;
    color: #7e7892;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.chapter-nav > a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 0 10px;
    color: #a49db7;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

.chapter-nav > a span {
    color: #6e6880;
    font-size: 10px;
}

.chapter-nav > a:hover,
.chapter-nav > a.is-active {
    color: white;
    background: rgba(255,255,255,.07);
}

.chapter-nav > a.is-active span {
    color: var(--gold);
}

.side-help {
    display: grid;
    margin-top: 12px;
    padding: 14px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(143,92,255,.16), rgba(255,78,199,.1));
}

.side-help span {
    color: var(--muted);
    font-size: 10px;
}

.side-help strong {
    margin-top: 2px;
    font-size: 12px;
}

.tutorial-content {
    min-width: 0;
}

.tutorial-chapter {
    margin-bottom: 130px;
}

.chapter-heading {
    margin-bottom: 36px;
}

.chapter-heading > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.chapter-heading > div p {
    margin: 0;
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .17em;
}

.chapter-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #2a1700;
    border-radius: 13px;
    background: linear-gradient(135deg, #fff2a0, #ffad28);
    font-size: 12px;
    font-weight: 1000;
    box-shadow: 0 12px 28px rgba(255, 178, 42, .18);
}

.chapter-heading h2 {
    margin: 19px 0 6px;
    font-size: clamp(29px, 4vw, 45px);
    line-height: 1.15;
    letter-spacing: -.03em;
}

.chapter-heading > p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.step-card {
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(280px, .95fr);
    align-items: center;
    gap: clamp(28px, 5vw, 60px);
    margin-bottom: 30px;
    padding: clamp(18px, 2.4vw, 28px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 0 0, rgba(143,92,255,.11), transparent 36%),
        rgba(255,255,255,.034);
    box-shadow: 0 25px 70px rgba(0,0,0,.2);
    overflow: hidden;
}

.step-card-reverse .step-media {
    order: 2;
}

.step-media {
    position: relative;
    min-width: 0;
}

.step-media::before {
    content: "示意图";
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 2;
    padding: 4px 9px;
    color: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(5,3,16,.58);
    backdrop-filter: blur(8px);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.step-media img {
    width: 100%;
    aspect-ratio: 1.16 / 1;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 23px;
    box-shadow: 0 24px 50px rgba(0,0,0,.28);
}

.step-copy {
    min-width: 0;
    padding: 6px;
}

.step-index {
    display: inline-flex;
    padding: 5px 9px;
    color: var(--gold);
    border: 1px solid rgba(255,210,95,.2);
    border-radius: 999px;
    background: rgba(255,210,95,.055);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
}

.step-copy h3 {
    margin: 15px 0 9px;
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.23;
    letter-spacing: -.02em;
}

.step-copy > p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.step-copy strong {
    color: white;
}

.highlight-text {
    color: var(--gold) !important;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.inline-copy {
    display: flex;
    align-items: stretch;
    margin-top: 18px;
    border: 1px solid rgba(255,210,95,.26);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,210,95,.05);
}

.inline-copy code {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    padding: 0 14px;
    overflow-wrap: anywhere;
    color: white;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 900;
    letter-spacing: .05em;
}

.inline-copy button {
    min-height: 46px;
    padding: 0 14px;
    color: #2c1800;
    background: linear-gradient(135deg, #fff1a1, #ffb12b);
    font-size: 12px;
    font-weight: 900;
}

.inline-copy-static code {
    min-height: 46px;
    font-family: inherit;
    letter-spacing: 0;
}

.micro-note {
    margin-top: 8px !important;
    color: #777087 !important;
    font-size: 10px !important;
}

.notice {
    position: relative;
    margin-top: 18px;
    padding: 12px 13px 12px 43px;
    color: #c8c2d6;
    border: 1px solid rgba(69,215,255,.17);
    border-radius: 13px;
    background: rgba(69,215,255,.06);
    font-size: 11px;
    line-height: 1.65;
}

.notice > span {
    position: absolute;
    left: 13px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #02232d;
    border-radius: 999px;
    background: var(--cyan);
    font-size: 11px;
    font-weight: 1000;
}

.notice strong {
    font-weight: 800;
    color: #e9e4f5;
}

.notice-warning {
    border-color: rgba(255,129,111,.18);
    background: rgba(255,129,111,.065);
}

.notice-warning > span {
    color: #35100a;
    background: var(--danger);
}

.success-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 11px;
    color: #bff8dc;
    border: 1px solid rgba(72,226,163,.18);
    border-radius: 999px;
    background: rgba(72,226,163,.07);
    font-size: 11px;
    font-weight: 800;
}

.success-chip span {
    color: var(--success);
}

.security-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.security-list span {
    position: relative;
    padding-left: 20px;
    color: #c5bed4;
    font-size: 12px;
}

.security-list span::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
}

.completion-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: -55px;
    margin-bottom: 110px;
    padding: clamp(27px, 4vw, 48px);
    border: 1px solid rgba(255,210,95,.29);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 85% 15%, rgba(255,78,199,.16), transparent 35%),
        linear-gradient(135deg, rgba(255,210,95,.11), rgba(143,92,255,.11));
    box-shadow: var(--shadow);
}

.completion-card > div {
    max-width: 690px;
}

.completion-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #06251a;
    border-radius: 15px;
    background: linear-gradient(135deg, #b8ffe0, var(--success));
    font-size: 23px;
    font-weight: 1000;
    box-shadow: 0 12px 30px rgba(72,226,163,.2);
}

.completion-card p {
    margin: 18px 0 4px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.completion-card h2 {
    margin: 0 0 7px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.18;
}

.completion-card > div > span:last-child {
    color: var(--muted);
    font-size: 13px;
}

.gallery-hero {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(480px, 1.2fr);
    align-items: center;
    gap: 72px;
    min-height: 650px;
    padding-top: 70px;
    padding-bottom: 70px;
}

.gallery-copy h1 {
    font-size: clamp(47px, 6vw, 80px);
}

.gallery-feature {
    position: relative;
    min-width: 0;
}

.gallery-feature::before {
    content: "";
    position: absolute;
    inset: 7% -6% -7% 12%;
    z-index: -1;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--pink), var(--gold));
    filter: blur(70px);
    opacity: .24;
}

.gallery-feature img {
    width: 100%;
    aspect-ratio: 1.3 / 1;
    object-fit: cover;
    object-position: 50% 48%;
    border: 9px solid rgba(255,255,255,.07);
    border-radius: 34px;
    box-shadow: 0 40px 90px rgba(0,0,0,.43);
}

.gallery-feature-label {
    position: absolute;
    left: 24px;
    bottom: 23px;
    display: grid;
    gap: 2px;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(6,3,19,.68);
    backdrop-filter: blur(14px);
}

.gallery-feature-label span {
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.gallery-feature-label strong {
    font-size: 14px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 80px;
}

.promo-tile {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.04);
    box-shadow: 0 22px 65px rgba(0,0,0,.24);
    transition: transform .28s ease, border-color .28s ease;
}

.promo-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(255,210,95,.28);
}

.promo-tile-wide {
    grid-column: 1 / -1;
}

.promo-tile img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
}

.promo-tile-wide img {
    aspect-ratio: 2.35 / 1;
}

.image-replace-note {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 100px;
    padding: 18px 20px;
    border: 1px dashed rgba(255,255,255,.16);
    border-radius: 17px;
    background: rgba(255,255,255,.025);
}

.image-replace-note span {
    flex: 0 0 auto;
    padding: 6px 10px;
    color: #2b1800;
    border-radius: 999px;
    background: var(--gold);
    font-size: 10px;
    font-weight: 900;
}

.image-replace-note p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.image-replace-note code {
    color: white;
}

.rules-hero {
    display: grid;
    grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(36px, 6vw, 78px);
    min-height: 650px;
    padding-top: 70px;
    padding-bottom: 54px;
}

.rules-visual {
    position: relative;
    min-width: 0;
}

.rules-visual::before {
    content: "";
    position: absolute;
    inset: 8% -8% -6% 16%;
    z-index: -1;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 210, 95, .48), rgba(255, 78, 199, .28), rgba(69, 215, 255, .22));
    filter: blur(60px);
    opacity: .36;
}

.rules-visual img {
    width: 100%;
    max-height: 640px;
    object-fit: contain;
    border: 8px solid rgba(255,255,255,.07);
    border-radius: 30px;
    background: rgba(6, 3, 19, .6);
    box-shadow: 0 34px 90px rgba(0,0,0,.44);
}

.rules-intro h1 {
    margin: 21px 0 18px;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.06;
    letter-spacing: -.04em;
}

.rules-intro h1 em {
    color: transparent;
    font-style: normal;
    background: linear-gradient(100deg, #fff7ba, var(--gold), #ff8c43, var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
}

.rules-intro p {
    max-width: 610px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.rules-content {
    display: grid;
    gap: 22px;
    padding-bottom: 90px;
}

.rules-summary-grid,
.rules-calculation-grid,
.rules-player-grid,
.rules-lower-grid {
    display: grid;
    gap: 22px;
    align-items: start;
}

.rules-summary-grid {
    grid-template-columns: 1.08fr .92fr 1.08fr;
}

.rules-calculation-grid,
.rules-player-grid,
.rules-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-stack {
    display: grid;
    gap: 22px;
}

.rules-card {
    padding: clamp(20px, 2.4vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 0 0, rgba(255,210,95,.08), transparent 34%),
        rgba(255,255,255,.035);
    box-shadow: 0 22px 62px rgba(0,0,0,.2);
}

.rules-card-accent {
    border-color: rgba(69, 215, 255, .22);
    background:
        linear-gradient(135deg, rgba(69,215,255,.08), rgba(143,92,255,.08)),
        rgba(255,255,255,.035);
}

.rules-card h2 {
    margin: 0 0 12px;
    color: white;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.18;
}

.rules-card p,
.rules-steps {
    color: #c9c2d9;
    font-size: 14px;
    line-height: 1.78;
}

.rules-card p {
    margin: 0;
}

.rules-card p + p,
.rule-list p + p {
    margin-top: 10px;
}

.rules-card strong {
    color: white;
}

.role-pair {
    display: grid;
    gap: 10px;
}

.role-pair div {
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
}

.role-pair strong {
    color: var(--gold);
    font-size: 13px;
}

.role-pair span {
    color: #c9c2d9;
    font-size: 13px;
    line-height: 1.58;
}

.rules-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
}

.rule-example {
    margin-top: 12px !important;
    color: var(--gold) !important;
    font-weight: 900;
}

.rules-table {
    display: grid;
    grid-template-columns: minmax(64px, .5fr) minmax(72px, .45fr) minmax(0, 1.8fr);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(255,255,255,.035);
}

.rules-table span,
.rules-table strong,
.rules-table em {
    padding: 12px 13px;
    border-bottom: 1px solid rgba(255,255,255,.075);
    font-size: 13px;
    line-height: 1.35;
}

.rules-table span {
    color: var(--gold);
    font-weight: 900;
}

.rules-table strong {
    color: white;
    font-weight: 900;
}

.rules-table em {
    color: #bfb8cf;
    font-style: normal;
}

.rules-table span:nth-last-child(-n+3),
.rules-table strong:nth-last-child(-n+2),
.rules-table em:last-child {
    border-bottom: 0;
}

.benefits-showcase {
    padding-top: 72px;
    padding-bottom: 90px;
}

.benefits-heading {
    margin-bottom: 34px;
}

.benefits-heading h1 {
    margin-bottom: 0;
}

.benefit-wall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.benefit-poster {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 210, 95, .22);
    border-radius: 20px;
    background: rgba(255,255,255,.035);
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

@media (hover: hover) {
    .benefit-poster:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 210, 95, .42);
        box-shadow: 0 30px 84px rgba(0,0,0,.34);
    }
}

.benefit-media {
    line-height: 0;
}

.benefit-poster img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.benefit-caption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 20px 22px 24px;
    border-top: 1px solid rgba(255, 210, 95, .16);
    background: linear-gradient(180deg, rgba(255, 210, 95, .05), rgba(255, 255, 255, .012));
}

.benefit-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 210, 95, .34);
    background: rgba(255, 210, 95, .09);
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    white-space: nowrap;
}

.benefit-caption h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #fff;
}

.benefit-caption p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .74);
    text-wrap: pretty;
}

.playbook-hero {
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(44px, 7vw, 94px);
    min-height: 650px;
    padding-top: 70px;
    padding-bottom: 54px;
}

.playbook-hero-media {
    position: relative;
    min-width: 0;
}

.playbook-hero-media::before {
    content: "";
    position: absolute;
    inset: 11% -9% -7% 14%;
    z-index: -1;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 210, 95, .45), rgba(255, 78, 199, .26), rgba(69, 215, 255, .18));
    filter: blur(62px);
    opacity: .38;
}

.playbook-hero-media img {
    width: 100%;
    max-height: 650px;
    object-fit: contain;
    border: 8px solid rgba(255,255,255,.07);
    border-radius: 30px;
    background: rgba(6, 3, 19, .7);
    box-shadow: 0 34px 90px rgba(0,0,0,.44);
}

.playbook-hero-copy h1 {
    margin: 20px 0 18px;
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.playbook-hero-copy h1 em {
    color: transparent;
    font-style: normal;
    background: linear-gradient(100deg, #fff7ba, var(--gold), #ff8c43, var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
}

.playbook-hero-copy > p {
    max-width: 670px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.playbook-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 680px;
    margin-top: 26px;
}

.playbook-facts span {
    display: grid;
    gap: 4px;
    min-height: 82px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: rgba(255,255,255,.045);
}

.playbook-facts strong {
    color: white;
    font-size: 14px;
}

.playbook-facts small {
    color: #a9a2ba;
    font-size: 11px;
    line-height: 1.45;
}

.playbook {
    display: grid;
    gap: 56px;
    padding-bottom: 92px;
}

.playbook-jump {
    position: sticky;
    top: 86px;
    z-index: 60;
    display: flex;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: rgba(16, 9, 39, .78);
    box-shadow: 0 18px 46px rgba(0,0,0,.24);
    backdrop-filter: blur(18px);
}

.playbook-jump a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    color: #c7c0d8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.playbook-jump a:hover {
    color: white;
    background: rgba(255,255,255,.07);
}

.playbook-section {
    display: grid;
    gap: 18px;
}

.playbook-section-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    max-width: 760px;
}

.playbook-section-head > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #2a1700;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff2a0, #ffad28);
    box-shadow: 0 12px 28px rgba(255, 178, 42, .18);
    font-size: 12px;
    font-weight: 1000;
}

.playbook-section-head h2 {
    margin: 0;
    color: white;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.playbook-section-head p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.playbook-overview-grid,
.points-layout,
.duel-grid,
.support-grid {
    display: grid;
    gap: 18px;
    align-items: start;
}

.playbook-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.playbook-overview-stack,
.points-stack {
    display: grid;
    gap: 18px;
}

.playbook-overview-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.points-layout,
.duel-grid,
.support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.playbook-panel,
.duel-panel,
.notice-panel,
.flow-track {
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
        rgba(12, 7, 30, .72);
    box-shadow: 0 22px 62px rgba(0,0,0,.2);
}

.playbook-panel,
.duel-panel {
    padding: clamp(20px, 2.3vw, 30px);
}

.playbook-panel-feature {
    grid-column: 1 / -1;
    background:
        radial-gradient(circle at 10% 0, rgba(255,210,95,.12), transparent 36%),
        linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.026)),
        rgba(12, 7, 30, .72);
}

.panel-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.playbook-panel h3,
.duel-panel h3 {
    margin: 0 0 10px;
    color: white;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.16;
}

.playbook-panel p,
.duel-panel p,
.clean-list,
.notice-list {
    color: #c9c2d9;
    font-size: 14px;
    line-height: 1.76;
}

.playbook-panel p,
.duel-panel p {
    margin: 0;
}

.role-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.role-split div {
    padding: 13px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 15px;
    background: rgba(255,255,255,.035);
}

.role-split strong {
    display: block;
    margin-bottom: 5px;
    color: var(--gold);
    font-size: 13px;
}

.role-split p {
    font-size: 12.5px;
    line-height: 1.6;
}

.flow-track {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px 0;
    list-style: none;
}

.flow-track li {
    position: relative;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 6px;
    padding: 18px 26px;
}

.flow-track li + li {
    border-top: 1px solid rgba(255,255,255,.07);
}

.flow-track li > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #2b1800;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff2a0, #ffad28);
    font-size: 12px;
    font-weight: 1000;
}

.flow-track strong {
    display: block;
    margin-bottom: 5px;
    color: white;
    font-size: 16px;
}

.flow-track p {
    margin: 0;
    color: #c9c2d9;
    font-size: 13.5px;
    line-height: 1.72;
}

.formula-chip {
    display: inline-flex;
    margin-top: 15px;
    padding: 10px 12px;
    color: #291600;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff2a0, #ffad28);
    font-size: 13px;
    font-weight: 1000;
}

.clean-list,
.notice-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.clean-list li,
.notice-list li {
    position: relative;
    padding-left: 18px;
}

.clean-list li::before,
.notice-list li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--gold);
}

.modern-table {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
}

.modern-table div {
    display: grid;
    grid-template-columns: 76px 78px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
}

.modern-table div + div {
    border-top: 1px solid rgba(255,255,255,.07);
}

.modern-table strong {
    color: var(--gold);
    font-size: 13px;
}

.modern-table b {
    color: white;
    font-size: 13px;
}

.modern-table span {
    color: #beb7cf;
    font-size: 12.5px;
    line-height: 1.45;
}

.duel-panel {
    position: relative;
    overflow: hidden;
}

.duel-panel::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -54px;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    opacity: .11;
    filter: blur(18px);
}

.duel-banker::after {
    background: var(--gold);
}

.duel-player::after {
    background: var(--cyan);
}

.notice-panel {
    display: grid;
    grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
    gap: 28px;
    align-items: start;
    padding: clamp(22px, 3vw, 34px);
    border-color: rgba(69, 215, 255, .24);
    background:
        linear-gradient(135deg, rgba(69,215,255,.08), rgba(143,92,255,.1)),
        rgba(12, 7, 30, .72);
}

.notice-panel h2 {
    margin: 0;
    color: white;
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.16;
}

.site-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.12);
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 150px;
    padding: 30px 0;
}

.footer-shell strong {
    font-size: 17px;
}

.footer-shell p {
    margin: 3px 0 0;
    color: #777186;
    font-size: 11px;
}

.footer-note {
    max-width: 410px;
    text-align: right;
}

.footer-telegram {
    flex: 0 0 auto;
    min-width: 216px;
    color: white;
    border-color: rgba(80, 190, 255, .38);
    background: linear-gradient(135deg, #2aabee, #168ad3);
    box-shadow: 0 16px 36px rgba(34, 158, 217, .26);
}

.footer-telegram:hover {
    border-color: rgba(143, 219, 255, .7);
    filter: brightness(1.06);
}

.telegram-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

.telegram-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    transform: translate(-1px, 1px);
}

.telegram-arrow {
    font-size: 13px;
    opacity: .9;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 220;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    padding: 13px 15px;
    border: 1px solid rgba(72,226,163,.24);
    border-radius: 15px;
    background: rgba(10, 25, 21, .92);
    box-shadow: 0 18px 50px rgba(0,0,0,.4);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(14px) scale(.98);
    pointer-events: none;
    transition: .25s ease;
    font-size: 12px;
    font-weight: 800;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #07261a;
    border-radius: 999px;
    background: var(--success);
    font-weight: 1000;
}

.mobile-action-bar {
    display: none;
}

.error-page {
    display: grid;
    justify-items: start;
    align-content: center;
    min-height: 65vh;
    padding-block: 80px;
}

.error-page > span {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    color: #3b130d;
    border-radius: 20px;
    background: var(--danger);
    font-size: 29px;
    font-weight: 1000;
}

.error-page h1 {
    margin: 22px 0 7px;
    font-size: 42px;
}

.error-page p {
    margin: 0 0 25px;
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .68s ease, transform .68s cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

html.is-webview-restoring .reveal {
    opacity: 1;
    transform: none;
}

.reveal-delay {
    transition-delay: .12s;
}

@media (max-width: 1050px) {
    :root {
        --shell: min(100% - 32px, 920px);
    }

    .hero {
        grid-template-columns: 1fr 430px;
        gap: 38px;
        min-height: 660px;
    }

    .hero h1 {
        font-size: clamp(40px, 5.6vw, 60px);
    }

    .tutorial-layout {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 28px;
    }

    .step-card {
        grid-template-columns: minmax(280px, 1fr) minmax(240px, .86fr);
        gap: 30px;
    }

    .gallery-hero {
        grid-template-columns: .85fr 1.15fr;
        gap: 42px;
    }

    .rules-hero {
        grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
        gap: 40px;
    }

    .benefit-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .playbook-hero {
        grid-template-columns: minmax(300px, .86fr) minmax(0, 1.14fr);
        gap: 42px;
    }

    .playbook-facts {
        grid-template-columns: 1fr;
    }

    .playbook-overview-grid {
        grid-template-columns: 1fr;
    }

    .playbook-overview-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    html {
        scroll-padding-top: 116px;
    }

    .site-header {
        padding: 8px 0;
        border-bottom: 0;
        background: linear-gradient(to bottom, rgba(7, 4, 22, .94), rgba(7, 4, 22, .62));
    }

    .header-shell {
        display: flex;
        align-items: center;
        gap: 8px;
        width: min(calc(100vw - 24px), 560px);
        padding: 6px;
        border: 1px solid rgba(255,255,255,.09);
        border-radius: 24px;
        background: rgba(16, 9, 39, .82);
        box-shadow: 0 14px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.07);
        backdrop-filter: blur(22px) saturate(140%);
    }

    .brand {
        flex: 0 0 86px;
        min-width: 0;
        min-height: 44px;
        padding: 0 12px;
        border-radius: 16px;
    }

    .brand-title {
        font-size: 16px;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        padding: 4px;
        border-radius: 17px;
        background: rgba(255,255,255,.055);
    }

    .nav-link {
        justify-content: center;
        min-width: 0;
        min-height: 38px;
        padding: 0 4px;
        border-radius: 13px;
        font-size: 11.5px;
        line-height: 1;
        white-space: nowrap;
    }

    .language-toggle {
        min-width: 42px;
        min-height: 38px;
        padding: 0 8px;
        border-radius: 13px;
        font-size: 11px;
    }

    .nav-icon {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 54px;
    }

    .hero-copy {
        text-align: center;
    }

    .eyebrow {
        justify-content: center;
    }

    .hero-lead {
        margin-inline: auto;
    }

    .referral-panel {
        max-width: 600px;
        margin-inline: auto;
        text-align: left;
    }

    .hero-actions,
    .trust-row {
        justify-content: center;
    }

    .hero-visual {
        width: min(560px, 90%);
        margin-inline: auto;
    }

    .quick-guide {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-guide a:nth-child(2),
    .quick-guide a:nth-child(4) {
        border-right: 0;
    }

    .quick-guide a:nth-child(-n+4) {
        border-bottom: 1px solid var(--line);
    }

    .tutorial-layout {
        display: block;
        padding-top: 72px;
    }

    .chapter-nav {
        position: sticky;
        top: 82px;
        z-index: 70;
        display: flex;
        gap: 6px;
        margin-bottom: 68px;
        padding: 6px;
        overflow-x: auto;
        border-radius: 15px;
        scrollbar-width: none;
    }

    .chapter-nav::-webkit-scrollbar {
        display: none;
    }

    .chapter-nav > p,
    .side-help {
        display: none;
    }

    .chapter-nav > a {
        flex: 0 0 auto;
        min-height: 39px;
        padding: 0 12px;
        white-space: nowrap;
    }

    .step-card,
    .step-card-reverse {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .step-card-reverse .step-media {
        order: initial;
    }

    .step-media img {
        aspect-ratio: 1.33 / 1;
    }

    .completion-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-hero {
        grid-template-columns: 1fr;
        gap: 42px;
        min-height: auto;
        padding-top: 60px;
    }

    .gallery-copy {
        text-align: center;
    }

    .gallery-copy .eyebrow {
        justify-content: center;
    }

    .gallery-copy > p {
        margin-inline: auto;
    }

    .promo-grid {
        gap: 18px;
    }

    .rules-hero {
        grid-template-columns: 1fr;
        gap: 34px;
        min-height: auto;
        padding-top: 58px;
    }

    .rules-visual {
        width: min(520px, 100%);
        margin-inline: auto;
    }

    .rules-intro {
        text-align: center;
    }

    .rules-intro .eyebrow {
        justify-content: center;
    }

    .rules-intro p {
        margin-inline: auto;
    }

    .rules-content {
        gap: 18px;
    }

    .rules-summary-grid,
    .rules-calculation-grid,
    .rules-player-grid,
    .rules-lower-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .rules-stack {
        gap: 18px;
    }

    .playbook-hero {
        grid-template-columns: 1fr;
        gap: 34px;
        min-height: auto;
        padding-top: 58px;
    }

    .playbook-hero-media {
        width: min(520px, 100%);
        margin-inline: auto;
    }

    .playbook-hero-copy {
        text-align: center;
    }

    .playbook-hero-copy .eyebrow {
        justify-content: center;
    }

    .playbook-hero-copy > p {
        margin-inline: auto;
    }

    .playbook-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-inline: auto;
    }

    .playbook-jump {
        top: 82px;
        overflow-x: auto;
        width: 100%;
        scrollbar-width: none;
    }

    .playbook-jump::-webkit-scrollbar {
        display: none;
    }

    .points-layout,
    .duel-grid,
    .support-grid,
    .notice-panel {
        grid-template-columns: 1fr;
    }

    .role-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    :root {
        --shell: min(calc(100vw - 28px), 440px);
        --radius-lg: 20px;
        --radius-md: 18px;
    }

    body[data-active-page="register"] {
        padding-bottom: 76px;
    }

    .header-shell {
        width: min(calc(100vw - 20px), 440px);
        gap: 7px;
        padding: 5px;
        border-radius: 22px;
    }

    .brand {
        flex-basis: 78px;
        min-height: 40px;
        padding: 0 10px;
        border-radius: 16px;
    }

    .brand-title {
        font-size: 15px;
    }

    .main-nav {
        gap: 3px;
        padding: 3px;
        border-radius: 15px;
    }

    .nav-link {
        min-height: 36px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 860;
    }

    .language-toggle {
        min-width: 39px;
        min-height: 36px;
        padding: 0 7px;
        font-size: 10.5px;
    }

    .hero {
        gap: 24px;
        min-height: auto;
        padding-top: 27px;
        padding-bottom: 34px;
    }

    .hero-copy {
        text-align: left;
    }

    .eyebrow {
        justify-content: flex-start;
        gap: 8px;
        font-size: 10.5px;
        letter-spacing: .13em;
    }

    .eyebrow span {
        width: 22px;
    }

    .hero h1 {
        margin: 13px 0 12px;
        font-size: clamp(32px, 8.8vw, 39px);
        line-height: 1.08;
        letter-spacing: -.025em;
    }

    .hero-lead {
        margin-inline: 0;
        font-size: 13.5px;
        line-height: 1.58;
    }

    .referral-panel {
        margin-top: 18px;
        padding: 13px;
        border-radius: 17px;
    }

    .referral-heading {
        font-size: 12px;
    }

    .referral-badge {
        padding: 3px 8px;
        font-size: 10px;
    }

    .referral-value-row {
        align-items: center;
        flex-direction: row;
        gap: 9px;
        margin-top: 9px;
    }

    .referral-value-row code {
        flex: 1 1 auto;
        font-size: clamp(20px, 5vw, 23px);
        line-height: 1.18;
        text-align: left;
    }

    .copy-button {
        justify-content: center;
        width: auto;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .referral-panel > p {
        margin-top: 7px;
        font-size: 11px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-top: 18px;
    }

    .button {
        width: 100%;
        min-height: 46px;
        padding: 0 12px;
        border-radius: 13px;
        font-size: 12.5px;
    }

    .trust-row {
        gap: 10px 14px;
        font-size: 10px;
    }

    .hero-visual {
        width: min(66%, 260px);
    }

    .hero-image-frame {
        padding: 6px;
        border-radius: 26px;
        transform: rotate(.8deg);
    }

    .hero-image-frame img {
        height: min(58vw, 250px);
        object-fit: cover;
        object-position: 50% 17%;
        border-radius: 20px;
    }

    .hero-glow {
        inset-inline: 12%;
        bottom: -15px;
        height: 28px;
    }

    .floating-card-top {
        top: 6%;
        left: -8px;
    }

    .floating-card-bottom {
        right: -8px;
        bottom: 5%;
        padding: 9px 11px;
        border-radius: 13px;
        font-size: 10px;
    }

    .floating-card-bottom strong {
        font-size: 24px;
    }

    .quick-guide {
        grid-auto-columns: minmax(142px, 1fr);
        grid-auto-flow: column;
        grid-template-columns: none;
        overflow-x: auto;
        border-radius: 18px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .quick-guide::-webkit-scrollbar {
        display: none;
    }

    .quick-guide a {
        min-height: 90px;
        padding: 14px 13px;
        border-right: 1px solid var(--line) !important;
        border-bottom: 0 !important;
        scroll-snap-align: start;
    }

    .quick-guide a:last-child {
        border-right: 0 !important;
    }

    .quick-guide strong {
        font-size: 14.5px;
        line-height: 1.2;
    }

    .quick-guide small {
        font-size: 10px;
        line-height: 1.35;
    }

    .tutorial-layout {
        padding-top: 42px;
    }

    .chapter-nav {
        top: 76px;
        width: min(calc(100vw - 20px), 440px);
        margin-left: calc((100vw - var(--shell)) / -2 + 4px);
        margin-bottom: 38px;
        padding: 5px;
        border-radius: 15px;
    }

    .chapter-nav > a {
        min-height: 36px;
        padding: 0 10px;
        border-radius: 11px;
        font-size: 12px;
    }

    .tutorial-chapter {
        margin-bottom: 70px;
    }

    .chapter-heading {
        margin-bottom: 20px;
    }

    .chapter-heading > div {
        gap: 10px;
    }

    .chapter-number {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 11px;
    }

    .chapter-heading > div p {
        font-size: 9px;
        letter-spacing: .13em;
    }

    .chapter-heading h2 {
        margin: 14px 0 6px;
        font-size: 26px;
        line-height: 1.18;
    }

    .chapter-heading > p {
        font-size: 12.5px;
        line-height: 1.6;
    }

    .step-card {
        gap: 14px;
        margin-bottom: 16px;
        padding: 10px;
        border-radius: 18px;
        box-shadow: 0 18px 45px rgba(0,0,0,.18);
    }

    .step-media img {
        aspect-ratio: 1.18 / 1;
        object-fit: contain;
        border-radius: 15px;
        background: rgba(7, 4, 22, .72);
        box-shadow: 0 14px 30px rgba(0,0,0,.22);
    }

    .step-media::before {
        top: 9px;
        left: 9px;
        padding: 3px 7px;
        font-size: 8px;
    }

    .step-copy {
        padding: 2px 4px 8px;
    }

    .step-index {
        padding: 4px 8px;
        font-size: 9px;
    }

    .step-copy h3 {
        margin: 11px 0 7px;
        font-size: 21px;
        line-height: 1.24;
    }

    .step-copy > p {
        font-size: 12.5px;
        line-height: 1.65;
    }

    .text-link {
        margin-top: 13px;
        font-size: 12px;
    }

    .inline-copy {
        flex-direction: column;
    }

    .inline-copy code {
        justify-content: center;
        min-height: 46px;
        font-size: 14px;
    }

    .inline-copy button {
        width: 100%;
    }

    .completion-card {
        gap: 20px;
        margin-top: -22px;
        margin-bottom: 58px;
        padding: 18px;
        border-radius: 20px;
    }

    .completion-icon {
        width: 40px;
        height: 40px;
        border-radius: 13px;
        font-size: 19px;
    }

    .completion-card p {
        margin-top: 14px;
        letter-spacing: .12em;
    }

    .completion-card h2 {
        font-size: 24px;
    }

    .gallery-hero {
        gap: 24px;
        padding-top: 32px;
        padding-bottom: 38px;
    }

    .gallery-copy {
        text-align: left;
    }

    .gallery-copy .eyebrow {
        justify-content: flex-start;
    }

    .gallery-copy h1 {
        margin: 13px 0 0;
        font-size: 38px;
        line-height: 1.08;
    }

    .gallery-feature img {
        aspect-ratio: 1 / 1;
        height: min(76vw, 330px);
        object-fit: cover;
        object-position: 50% 18%;
        border-width: 5px;
        border-radius: 22px;
    }

    .gallery-feature-label {
        left: 14px;
        bottom: 14px;
        padding: 9px 11px;
        border-radius: 12px;
    }

    .gallery-feature-label strong {
        font-size: 12px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 55px;
    }

    .promo-tile-wide {
        grid-column: auto;
    }

    .promo-tile img,
    .promo-tile-wide img {
        aspect-ratio: 1.15 / 1;
    }

    .rules-hero {
        gap: 22px;
        padding-top: 32px;
        padding-bottom: 34px;
    }

    .rules-visual {
        width: min(78vw, 330px);
    }

    .rules-visual img {
        max-height: 440px;
        border-width: 5px;
        border-radius: 22px;
    }

    .rules-intro {
        text-align: left;
    }

    .rules-intro .eyebrow {
        justify-content: flex-start;
    }

    .rules-intro h1 {
        margin: 13px 0 11px;
        font-size: 38px;
    }

    .rules-intro p {
        margin-inline: 0;
        font-size: 13.5px;
        line-height: 1.62;
    }

    .rules-content {
        gap: 16px;
        padding-bottom: 56px;
    }

    .rules-summary-grid,
    .rules-calculation-grid,
    .rules-player-grid,
    .rules-lower-grid,
    .rules-stack {
        gap: 16px;
    }

    .rules-card {
        padding: 17px;
        border-radius: 18px;
    }

    .rules-card h2 {
        font-size: 22px;
    }

    .rules-card p,
    .rules-steps {
        font-size: 12.5px;
        line-height: 1.68;
    }

    .role-pair {
        gap: 8px;
    }

    .role-pair div {
        padding: 10px 11px;
        border-radius: 12px;
    }

    .role-pair strong,
    .role-pair span {
        font-size: 12px;
    }

    .rules-steps {
        gap: 10px;
        padding-left: 18px;
    }

    .rules-table {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .rules-table span,
    .rules-table strong,
    .rules-table em {
        padding: 9px 11px;
        border-bottom: 0;
        font-size: 12px;
    }

    .rules-table span {
        padding-bottom: 2px;
    }

    .rules-table strong {
        padding-block: 2px;
    }

    .rules-table em {
        padding-top: 2px;
        border-bottom: 1px solid rgba(255,255,255,.075);
    }

    .rules-table em:last-child {
        border-bottom: 0;
    }

    .benefits-showcase {
        padding-top: 32px;
        padding-bottom: 58px;
    }

    .benefits-heading {
        margin-bottom: 22px;
        text-align: left;
    }

    .benefit-wall {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .benefit-poster {
        border-radius: 18px;
    }

    .benefit-caption {
        gap: 9px;
        padding: 17px 17px 20px;
    }

    .benefit-caption h2 {
        font-size: 1.12rem;
    }

    .benefit-caption p {
        font-size: .92rem;
        line-height: 1.6;
    }

    .playbook-hero {
        gap: 22px;
        padding-top: 32px;
        padding-bottom: 34px;
    }

    .playbook-hero-media {
        width: min(78vw, 330px);
    }

    .playbook-hero-media img {
        max-height: 440px;
        border-width: 5px;
        border-radius: 22px;
    }

    .playbook-hero-copy {
        text-align: left;
    }

    .playbook-hero-copy .eyebrow {
        justify-content: flex-start;
    }

    .playbook-hero-copy h1 {
        margin: 13px 0 11px;
        font-size: 38px;
    }

    .playbook-hero-copy > p {
        margin-inline: 0;
        font-size: 13.5px;
        line-height: 1.62;
    }

    .playbook-facts {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 18px;
    }

    .playbook-facts span {
        min-height: auto;
        padding: 12px 13px;
        border-radius: 14px;
    }

    .playbook {
        gap: 38px;
        padding-bottom: 58px;
    }

    .playbook-jump {
        top: 76px;
        padding: 5px;
        border-radius: 15px;
    }

    .playbook-jump a {
        min-height: 34px;
        padding: 0 12px;
        font-size: 11px;
    }

    .playbook-section {
        gap: 14px;
    }

    .playbook-section-head {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .playbook-section-head > span {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 11px;
    }

    .playbook-section-head h2 {
        font-size: 26px;
    }

    .playbook-section-head p {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .playbook-overview-grid,
    .playbook-overview-stack,
    .points-layout,
    .points-stack,
    .duel-grid,
    .support-grid {
        gap: 14px;
    }

    .playbook-panel,
    .duel-panel,
    .notice-panel {
        padding: 17px;
        border-radius: 18px;
    }

    .playbook-panel h3,
    .duel-panel h3 {
        font-size: 21px;
    }

    .playbook-panel p,
    .duel-panel p,
    .clean-list,
    .notice-list {
        font-size: 12.5px;
        line-height: 1.68;
    }

    .panel-kicker {
        font-size: 10px;
    }

    .role-split div {
        padding: 11px;
        border-radius: 13px;
    }

    .flow-track {
        border-radius: 18px;
    }

    .flow-track li {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 15px;
    }

    .flow-track li > span {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 10px;
    }

    .flow-track strong {
        font-size: 14px;
    }

    .flow-track p {
        font-size: 12.5px;
        line-height: 1.66;
    }

    .formula-chip {
        padding: 9px 10px;
        font-size: 12px;
    }

    .modern-table div {
        grid-template-columns: 58px 60px minmax(0, 1fr);
        gap: 7px;
        padding: 11px 10px;
    }

    .modern-table strong,
    .modern-table b,
    .modern-table span {
        font-size: 11.5px;
    }

    .notice-panel {
        gap: 16px;
    }

    .notice-panel h2 {
        font-size: 24px;
    }

    .image-replace-note {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 70px;
    }

    .footer-shell {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding: 28px 0 96px;
    }

    .footer-telegram {
        width: 100%;
        min-width: 0;
    }

    .footer-note {
        text-align: left;
    }

    .toast {
        right: 12px;
        bottom: 82px;
        left: 12px;
        min-width: 0;
        padding: 11px 13px;
        border-radius: 13px;
    }

    .mobile-action-bar {
        position: fixed;
        right: auto;
        bottom: 0;
        left: 50%;
        z-index: 150;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 126px;
        gap: 8px;
        width: min(100%, 440px);
        padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
        border-top: 1px solid rgba(255,255,255,.11);
        border-radius: 20px 20px 0 0;
        background: rgba(7,4,22,.91);
        box-shadow: 0 -15px 50px rgba(0,0,0,.38);
        backdrop-filter: blur(22px);
        transform: translateX(-50%);
    }

    .mobile-copy,
    .mobile-action-bar > a {
        min-height: 48px;
        border: 0;
        border-radius: 13px;
        cursor: pointer;
    }

    .mobile-copy {
        display: grid;
        justify-items: start;
        align-content: center;
        min-width: 0;
        padding: 6px 12px;
        color: white;
        background: rgba(255,255,255,.075);
        text-align: left;
    }

    .mobile-copy small {
        color: #8f889e;
        font-size: 8.5px;
    }

    .mobile-copy strong {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 13px;
        letter-spacing: .035em;
        white-space: nowrap;
    }

    .mobile-copy-static {
        cursor: default;
    }

    .mobile-copy-static strong {
        font-family: inherit;
        letter-spacing: 0;
    }

    .mobile-action-bar > a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: #2e1900;
        background: linear-gradient(135deg, #fff0a0, #ffad28);
        font-size: 12px;
        font-weight: 900;
    }

    .error-page h1 {
        font-size: 34px;
    }
}

@media (max-width: 380px) {
    .brand {
        flex-basis: 72px;
        padding-inline: 8px;
    }

    .brand-title {
        font-size: 14px;
    }

    .nav-link {
        font-size: 10.5px;
    }

    .language-toggle {
        min-width: 36px;
        padding-inline: 5px;
        font-size: 10px;
    }

    .referral-value-row {
        align-items: stretch;
        flex-direction: column;
    }

    .referral-value-row code {
        text-align: center;
    }

    .copy-button {
        width: 100%;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .mobile-action-bar {
        grid-template-columns: minmax(0, 1fr) 112px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Touch devices (Telegram in-app browser, mobile Safari/Chrome): drop live
   backdrop-filter blur. It keeps large GPU backing stores alive, which makes
   iOS jettison the WebView's render process on minimize and is slow to
   re-composite on resume — the cause of the white screen on reopen. */
@media (pointer: coarse) {
    .site-header,
    .floating-card,
    .chapter-nav,
    .step-media::before,
    .gallery-feature-label,
    .playbook-jump,
    .toast {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .site-header {
        background: rgba(7, 4, 22, 0.97) !important;
    }
}

@media print {
    .site-header,
    .page-progress,
    .ambient,
    .mobile-action-bar,
    .toast,
    .chapter-nav,
    .site-footer,
    .hero-actions {
        display: none !important;
    }

    body {
        color: #111;
        background: #fff;
    }

    .hero,
    .tutorial-layout {
        display: block;
        width: 100%;
    }

    .hero-visual {
        max-width: 420px;
        margin: 30px auto;
    }

    .step-card {
        break-inside: avoid;
        border-color: #ddd;
        background: #fff;
        box-shadow: none;
    }
}
