:root {
    --bg-1: #050b18;
    --bg-2: #0b1328;
    --bg-3: #111d3c;
    --surface: rgba(15, 23, 47, 0.62);
    --surface-strong: rgba(12, 19, 38, 0.9);
    --surface-glass: rgba(11, 18, 37, 0.72);
    --text: #f4f8ff;
    --muted: #99adc9;
    --line: rgba(136, 182, 255, 0.17);
    --line-strong: rgba(115, 228, 229, 0.28);
    --brand: #56b8ff;
    --brand-dark: #2d5bdb;
    --teal: #29e2d1;
    --violet: #8f7dff;
    --shadow: 0 28px 90px rgba(3, 8, 20, 0.5);
    --glow-soft: 0 0 0 1px rgba(116, 224, 255, 0.08), 0 0 36px rgba(41, 226, 209, 0.08);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shell-width: 1220px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    color: var(--text);
    font-family: "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at center, #0b1220 0%, #08101b 44%, #05080f 100%);
    line-height: 1.5;
}

.site-body {
    min-height: 100vh;
}

button,
input {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
}

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

img {
    max-width: 100%;
    height: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shell {
    width: 100%;
    max-width: min(1400px, calc(100% - 2 * clamp(20px, 5vw, 72px)));
    margin: 0 auto;
    padding-inline: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #9ee7ff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(41, 226, 209, 0.18), rgba(86, 184, 255, 0.88));
}

.lead,
.section-copy {
    color: var(--muted);
    line-height: 1.65;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(160, 196, 255, 0.22);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease;
}

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

.button-primary {
    background: linear-gradient(135deg, var(--brand-dark), var(--teal));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 30px rgba(7, 14, 32, 0.22);
}

.button-secondary {
    background: rgba(15, 23, 46, 0.78);
    color: var(--text);
}

.button-primary:hover,
.button-secondary:hover {
    box-shadow: 0 18px 34px rgba(7, 14, 32, 0.26);
}

.cookie-banner {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    left: max(18px, env(safe-area-inset-left));
    z-index: 40;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    max-width: min(980px, calc(100% - 36px));
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid rgba(136, 182, 255, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%),
        rgba(7, 14, 29, 0.92);
    backdrop-filter: blur(18px) saturate(125%);
    box-shadow: 0 20px 56px rgba(3, 8, 20, 0.46), var(--glow-soft);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 180ms ease, transform 180ms ease;
}

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

.cookie-banner-copy {
    display: grid;
    gap: 8px;
    max-width: 620px;
}

.cookie-banner-title {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cookie-banner-text {
    margin: 0;
    color: rgba(238, 244, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.6;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-banner-link,
.cookie-banner-button {
    min-width: 132px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px) saturate(130%);
    background: linear-gradient(180deg, rgba(6, 10, 22, 0.92) 0%, rgba(6, 10, 22, 0.72) 100%);
    border-bottom: 1px solid rgba(136, 182, 255, 0.1);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
    width: 100%;
    padding-block: 10px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
}

.site-brand img {
    flex: 0 0 auto;
}

.site-brand span {
    min-width: 0;
}

.site-brand strong {
    display: block;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.site-brand small {
    display: block;
    max-width: 360px;
    color: rgba(244, 248, 255, 0.62);
    font-size: 0.82rem;
    line-height: 1.4;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    color: rgba(244, 248, 255, 0.76);
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(41, 226, 209, 0.14), rgba(143, 125, 255, 0.12));
    box-shadow: 0 0 0 1px rgba(115, 228, 229, 0.08);
    outline: none;
}

.site-nav-cta {
    margin-left: 8px;
    background: linear-gradient(135deg, rgba(45, 91, 219, 0.92), rgba(41, 226, 209, 0.88));
    color: #fff !important;
}

.site-nav-toggle {
    position: relative;
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(136, 182, 255, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(24, 36, 68, 0.92) 0%, rgba(14, 24, 46, 0.82) 100%);
}

.site-nav-toggle span,
.site-nav-toggle span::before,
.site-nav-toggle span::after {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transform: translateX(-50%);
}

.site-nav-toggle span {
    top: 50%;
}

.site-nav-toggle span::before {
    top: -6px;
}

.site-nav-toggle span::after {
    top: 6px;
}

.fullscreen-wheel {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.panel-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.wheel-surface {
    position: relative;
    min-height: auto;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    --theme-accent: #00d1b2;
    --theme-accent-dark: #173f7a;
    --theme-icon: #ffd400;
}

.wheel-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.026) 0 1px,
            transparent 1px 5px
        );
    mix-blend-mode: soft-light;
    opacity: 0.22;
}

.wheel-surface::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.036) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.12));
    opacity: 0.16;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 67% 48%, rgba(41, 226, 209, 0.16), transparent 18%),
        radial-gradient(circle at 61% 42%, rgba(143, 125, 255, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(7, 12, 26, 0.08) 0%, rgba(7, 12, 26, 0.24) 46%, rgba(5, 10, 22, 0.8) 100%);
}

.toolbar-left {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
    width: min(100%, clamp(300px, 25vw, 360px));
    max-width: 100%;
    padding: 16px;
    border: 1px solid rgba(136, 182, 255, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%),
        linear-gradient(180deg, rgba(11, 18, 38, 0.86) 0%, rgba(8, 14, 31, 0.72) 100%);
    backdrop-filter: blur(22px) saturate(120%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 44px rgba(5, 10, 24, 0.36),
        0 0 0 1px rgba(115, 228, 229, 0.06);
    pointer-events: auto;
}

.toolbar-copy {
    display: grid;
    gap: 6px;
}

.theme-selector-block,
.wheel-builder-card {
    display: grid;
    gap: 10px;
    padding: 15px;
    border: 1px solid rgba(136, 182, 255, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.theme-selector-head,
.builder-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.theme-selector-title {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.theme-selector-copy {
    margin: 4px 0 0;
    color: rgba(244, 248, 255, 0.62);
    font-size: 0.86rem;
    line-height: 1.5;
}

.hero-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.hero-inline-links a,
.inline-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.hero-inline-links a:hover,
.hero-inline-links a:focus-visible,
.inline-link:hover,
.inline-link:focus-visible {
    color: #fff;
    text-decoration: underline;
    outline: none;
}

.toolbar-title {
    margin: 0;
    font-size: clamp(1.28rem, 1.55vw, 1.68rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.toolbar-text {
    margin: 0;
    color: rgba(238, 244, 255, 0.72);
    font-size: 0.94rem;
    line-height: 1.58;
}

.theme-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.icon-button,
.ghost-button,
.icon-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(136, 182, 255, 0.18);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(24, 36, 68, 0.92) 0%, rgba(14, 24, 46, 0.82) 100%);
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 180ms ease;
}

.icon-button:hover,
.ghost-button:hover,
.icon-add-button:hover,
.entry-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(115, 228, 229, 0.28);
    box-shadow: 0 10px 24px rgba(7, 15, 31, 0.36), 0 0 18px rgba(41, 226, 209, 0.08);
}

.icon-button.is-active {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-accent-dark) 78%, #071220), var(--theme-accent));
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--theme-accent) 24%, transparent),
        0 10px 26px color-mix(in srgb, var(--theme-accent) 14%, transparent);
}

.theme-dot {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.theme-dot-classic {
    border-radius: 50%;
    background: linear-gradient(135deg, #2457ff, #00c6b7);
}

.theme-dot-pastel {
    border-radius: 5px;
    background: linear-gradient(135deg, #ff8a00, #ff006e);
}

.theme-dot-neon {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #39ff14, #00f5ff);
}

.theme-dot-metal {
    border-radius: 4px;
    background: linear-gradient(135deg, #d9e1ea, #506070);
}

.theme-dot-metal::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.76);
}

.music-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.music-icon::before,
.music-icon::after {
    content: "";
    position: absolute;
}

.music-icon::before {
    left: 6px;
    top: 1px;
    width: 4px;
    height: 15px;
    background: currentColor;
    border-radius: 2px;
    box-shadow: 7px -4px 0 0 currentColor;
}

.music-icon::after {
    left: 2px;
    bottom: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 9px 0 0 0 currentColor;
}

.music-button.is-muted::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 4px;
    background: #ff2f67;
    border-radius: 999px;
    transform: rotate(-45deg);
}

.music-button.is-muted {
    background: linear-gradient(135deg, #5a1830, #8f1d45);
    border-color: rgba(255, 47, 103, 0.42);
    color: #ffdbe7;
    box-shadow: 0 0 0 6px rgba(255, 47, 103, 0.16);
}

.music-button {
    pointer-events: auto;
}

.menu-button {
    pointer-events: auto;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.menu-button span::before {
    transform: translateY(-6px);
}

.menu-button span::after {
    transform: translateY(6px);
}

.wheel-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 360px) minmax(0, 1.35fr);
    align-items: center;
    min-height: min(100vh, 940px);
    gap: clamp(18px, 2.4vw, 32px);
    padding:
        clamp(34px, 6vh, 68px)
        clamp(20px, 5vw, 72px)
        clamp(40px, 8vh, 88px);
    width: 100%;
}

.wheel-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    justify-content: center;
    align-content: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.wheel-core {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: min(100%, 980px);
    min-width: 0;
    justify-self: center;
    z-index: 2;
    pointer-events: auto;
}

.wheel-core::before,
.wheel-core::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.wheel-core::before {
    width: min(100%, 980px);
    aspect-ratio: 1;
    background:
        radial-gradient(circle, color-mix(in srgb, var(--theme-accent) 24%, transparent) 0%, transparent 60%);
    filter: blur(24px);
    opacity: 0.92;
}

.wheel-core::after {
    width: min(100%, 980px);
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 14%, transparent);
    box-shadow:
        0 0 0 28px color-mix(in srgb, var(--theme-accent) 4%, transparent),
        0 0 120px color-mix(in srgb, var(--theme-accent) 12%, transparent);
    opacity: 0.5;
}

.wheel-result-bubble {
    position: absolute;
    left: 50%;
    top: 16px;
    z-index: 5;
    transform: translate(-50%, -8px);
    pointer-events: none;
    width: 100%;
    max-width: min(360px, calc(100% - 32px));
    margin: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.02) 100%),
        rgba(18, 28, 46, 0.5);
    padding: 12px 18px 14px;
    backdrop-filter: blur(12px) saturate(135%);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
    overflow-wrap: anywhere;
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 240ms ease, transform 240ms ease;
}

.wheel-panel[data-theme-surface="classic"] .wheel-stage,
.wheel-surface[data-theme-surface="classic"] .wheel-stage {
    background:
        radial-gradient(circle at 64% 46%, rgba(41, 226, 209, 0.16), transparent 18%),
        radial-gradient(circle at 54% 40%, rgba(86, 184, 255, 0.12), transparent 26%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 54px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 54px),
        linear-gradient(135deg, #071120 0%, #102653 44%, #0b6a6f 100%);
}

.wheel-panel[data-theme-surface="pastel"] .wheel-stage,
.wheel-surface[data-theme-surface="pastel"] .wheel-stage {
    background:
        radial-gradient(circle at 64% 46%, rgba(255, 173, 79, 0.16), transparent 18%),
        radial-gradient(circle at 58% 42%, rgba(255, 79, 163, 0.12), transparent 24%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 54px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 54px),
        linear-gradient(135deg, #21102e 0%, #6f2155 48%, #c4552d 100%);
}

.wheel-panel[data-theme-surface="neon"] .wheel-stage,
.wheel-surface[data-theme-surface="neon"] .wheel-stage {
    background:
        radial-gradient(circle at 64% 46%, rgba(57, 255, 20, 0.14), transparent 18%),
        radial-gradient(circle at 58% 42%, rgba(0, 245, 255, 0.14), transparent 24%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 54px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 54px),
        linear-gradient(180deg, #07131f 0%, #0f1030 48%, #040814 100%);
}

.wheel-panel[data-theme-surface="metal"] .wheel-stage,
.wheel-surface[data-theme-surface="metal"] .wheel-stage {
    background:
        radial-gradient(circle at 64% 46%, rgba(56, 189, 248, 0.15), transparent 18%),
        radial-gradient(circle at 58% 42%, rgba(148, 163, 184, 0.12), transparent 24%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 54px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 54px),
        linear-gradient(135deg, #0f1724 0%, #3a495d 52%, #0d6b69 100%);
}

.result-burst,
.confetti-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.result-burst.is-active {
    animation: stage-flash 600ms ease;
}

.confetti-piece {
    position: absolute;
    top: -10%;
    width: 12px;
    height: 24px;
    border-radius: 4px;
    opacity: 0.95;
    animation: confetti-fall 6.4s linear forwards;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.24);
    will-change: transform, opacity;
}

.home-ad {
    position: absolute;
    z-index: 3;
    width: min(336px, calc(100vw - 36px));
    min-height: 280px;
    padding: 12px;
    border: 1px solid rgba(136, 182, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10, 16, 34, 0.8) 0%, rgba(9, 15, 31, 0.66) 100%);
    backdrop-filter: blur(20px) saturate(115%);
    box-shadow: 0 18px 44px rgba(5, 10, 24, 0.34);
}

.home-ad-right {
    right: max(18px, env(safe-area-inset-right));
    top: 248px;
}

.home-ad-bottom-left {
    left: max(18px, env(safe-area-inset-left));
    bottom: max(18px, env(safe-area-inset-bottom));
}

.home-ad-inline,
.home-ad-footer {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    min-height: 0;
}

.home-ad-label {
    margin: 0 0 10px;
    color: rgba(238, 244, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-ad .home-adsbygoogle,
.home-ad-placeholder {
    width: 100%;
    min-height: 250px;
    border-radius: 12px;
}

.home-ad .home-adsbygoogle {
    margin-top: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.02) 100%),
        rgba(255, 255, 255, 0.05);
}

.home-ad-placeholder {
    display: grid;
    place-items: center;
    gap: 6px;
    align-content: center;
    border: 1px dashed color-mix(in srgb, var(--theme-accent) 54%, rgba(255, 255, 255, 0.3));
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 16px),
        color-mix(in srgb, var(--theme-accent-dark) 60%, rgba(10, 16, 34, 0.74));
    color: var(--text);
    text-align: center;
}

.home-ad-placeholder strong {
    font-size: 1.1rem;
}

.home-ad-placeholder span {
    color: rgba(238, 244, 255, 0.72);
    font-size: 0.86rem;
}

.wheel-canvas {
    width: min(100%, clamp(440px, 62vw, 920px));
    max-width: 920px;
    aspect-ratio: 1 / 1;
    display: block;
    filter:
        drop-shadow(0 40px 54px rgba(0, 0, 0, 0.24))
        drop-shadow(0 0 26px color-mix(in srgb, var(--theme-accent) 12%, transparent));
    pointer-events: none;
}

.wheel-center-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(84px, 10vw, 126px);
    height: clamp(84px, 10vw, 126px);
    min-width: 82px;
    min-height: 82px;
    border: 6px solid rgba(255, 255, 255, 0.76);
    border-radius: 32px;
    background:
        linear-gradient(145deg, #0f172e 0%, var(--theme-accent-dark) 54%, var(--theme-accent) 100%);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.24),
        inset 0 8px 18px rgba(255, 255, 255, 0.12),
        0 0 26px color-mix(in srgb, var(--theme-accent) 42%, transparent);
    cursor: pointer;
    z-index: 4;
    appearance: none;
    pointer-events: auto;
    transition: transform 160ms ease, opacity 160ms ease;
}

.wheel-center-button:hover {
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.28),
        inset 0 8px 18px rgba(255, 255, 255, 0.14),
        0 0 30px color-mix(in srgb, var(--theme-accent) 50%, transparent);
}

.wheel-center-button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.wheel-center-button::before {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.1);
}

.wheel-center-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-42%, -50%);
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 20px solid var(--theme-icon);
    z-index: 1;
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--theme-accent) 70%, transparent));
}

.wheel-center-button.is-spinning {
    cursor: wait;
    opacity: 0.82;
}

.wheel-pointer {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 38px solid var(--theme-accent);
    z-index: 1;
    filter:
        drop-shadow(0 8px 14px rgba(0, 0, 0, 0.24))
        drop-shadow(0 0 10px color-mix(in srgb, var(--theme-accent) 58%, transparent));
}

.wheel-pointer::before {
    content: "";
    position: absolute;
    left: -8px;
    top: -44px;
    width: 16px;
    height: 12px;
    border-radius: 999px 999px 3px 3px;
    background: linear-gradient(180deg, var(--theme-accent), var(--theme-accent-dark));
}

.entry-mini-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.entry-secondary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.entry-mini-form input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(136, 182, 255, 0.14);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(249, 252, 255, 0.98) 0%, rgba(230, 239, 252, 0.94) 100%);
    color: #162033;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.entry-mini-form input::placeholder {
    color: rgba(22, 32, 51, 0.45);
}

.entry-mini-form input:focus {
    border-color: rgba(41, 226, 209, 0.42);
    box-shadow: 0 0 0 4px rgba(41, 226, 209, 0.12);
}

.icon-add-button {
    background: linear-gradient(135deg, #2457ff, #00c6b7);
    color: #fff;
    border-color: transparent;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(36, 87, 255, 0.24);
}

.entry-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
    padding: 2px 0 0;
    max-width: 100%;
}

.entry-chip-list:empty::before {
    content: "Todavía no agregaste opciones. Podés cargar manualmente o usar una plantilla predefinida.";
    color: rgba(244, 248, 255, 0.54);
    line-height: 1.6;
}

.entry-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(136, 182, 255, 0.14);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(249, 252, 255, 0.98) 0%, rgba(230, 239, 252, 0.94) 100%);
    color: #162033;
    cursor: pointer;
    white-space: nowrap;
    max-width: 100%;
    box-shadow: 0 8px 18px rgba(6, 15, 34, 0.12);
}

.entry-chip span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-chip img,
.entry-chip-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.entry-chip img {
    object-fit: cover;
}

.entry-chip-badge {
    background: linear-gradient(135deg, #2457ff, #00c6b7);
}

.entry-chip strong {
    font-size: 1rem;
    line-height: 1;
}

.ghost-button {
    font-size: 1.2rem;
    font-weight: 800;
}

.compact-toggle {
    min-width: 0;
}

.compact-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    flex: 0 0 auto;
}

.mode-toggle {
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(136, 182, 255, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.98) 0%, rgba(232, 239, 248, 0.92) 100%);
    color: #162033;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mode-toggle.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #2457ff, #00c6b7);
    color: #fff;
    box-shadow: 0 10px 24px rgba(36, 87, 255, 0.22);
}

.mode-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 226, 209, 0.24);
    box-shadow: 0 10px 22px rgba(6, 15, 34, 0.12);
}

.wheel-result-bubble.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.wheel-result-bubble.is-leaving {
    opacity: 0;
    transform: translate(-50%, -9px);
}

.result-pill,
.result-card p {
    margin: 0 0 8px;
    color: rgba(235, 243, 255, 0.72);
    line-height: 1.5;
}

.result-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.result-main {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.result-heading,
.result-main h2 {
    margin: 0 0 2px;
    font-size: clamp(1.28rem, 2vw, 1.76rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: #ffffff;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    overflow-wrap: anywhere;
}

.result-card [data-result-copy] {
    margin: 0;
    color: rgba(235, 243, 255, 0.74);
    font-size: 0.8rem;
    line-height: 1.42;
}

.home-ad-section {
    padding: 0;
}

.seo-copy {
    max-width: 780px;
    margin-bottom: 0;
}

.seo-copy h2 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.seo-copy p,
.seo-list,
.faq-item p,
.site-footer p {
    color: var(--muted);
    line-height: 1.78;
}

.seo-band {
    position: relative;
    padding: 56px 0 0;
}

.seo-band::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 240px;
    background: linear-gradient(180deg, rgba(5, 10, 22, 0.84) 0%, rgba(6, 12, 24, 0.42) 52%, transparent 100%);
    pointer-events: none;
}

.seo-layout {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    padding-bottom: 56px;
    width: 100%;
}

.seo-section {
    padding: 30px 34px;
    border: 1px solid rgba(136, 182, 255, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, rgba(11, 18, 38, 0.78) 0%, rgba(10, 16, 34, 0.54) 100%);
    box-shadow: 0 24px 60px rgba(4, 8, 18, 0.18);
    backdrop-filter: blur(14px) saturate(120%);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.seo-section-intro {
    padding: 34px 38px;
}

.seo-grid-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.seo-panel,
.seo-highlight,
.faq-item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, rgba(11, 18, 38, 0.8) 0%, rgba(10, 16, 34, 0.58) 100%);
}

.seo-panel:hover,
.faq-item:hover {
    transform: translateY(-4px);
    border-color: rgba(115, 228, 229, 0.2);
    box-shadow:
        0 30px 64px rgba(4, 8, 18, 0.24),
        0 0 24px rgba(41, 226, 209, 0.06);
}

.seo-highlight {
    border-color: rgba(255, 195, 82, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 24px 60px rgba(4, 8, 18, 0.2);
}

.ad-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.92fr);
    gap: 22px;
    align-items: center;
    padding: 24px 26px;
    border: 1px solid rgba(136, 182, 255, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, rgba(9, 16, 34, 0.74) 0%, rgba(10, 16, 34, 0.58) 100%);
    box-shadow: 0 20px 50px rgba(4, 8, 18, 0.14);
}

.ad-shell-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.ad-shell-copy p:last-child {
    margin-bottom: 0;
}

.seo-list {
    margin: 0;
    padding-left: 22px;
}

.seo-list li + li {
    margin-top: 12px;
}

.seo-list strong {
    color: var(--text);
}

.seo-list-compact li + li {
    margin-top: 8px;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
}

.faq-item {
    padding: 24px;
    border: 1px solid rgba(160, 196, 255, 0.12);
    border-radius: 22px;
    cursor: default;
}

.faq-item h3 {
    margin-bottom: 12px;
    font-size: 1.08rem;
    line-height: 1.4;
    color: #f4f8ff;
}

.platform-section {
    padding: 48px 0;
    width: 100%;
}

.section-intro {
    max-width: 760px;
}

.section-intro h2,
.content-card h2,
.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.section-intro p,
.content-card p,
.page-hero p,
.feature-card p,
.step-card p,
.preset-card p {
    color: var(--muted);
    line-height: 1.76;
}

.section-split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.feature-grid,
.steps-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
}

.feature-card,
.step-card,
.content-card,
.preset-card {
    padding: 24px;
    border: 1px solid rgba(136, 182, 255, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, rgba(11, 18, 38, 0.78) 0%, rgba(10, 16, 34, 0.54) 100%);
    backdrop-filter: blur(14px) saturate(120%);
    box-shadow: 0 22px 52px rgba(4, 8, 18, 0.16);
}

.feature-card h3,
.step-card h3,
.preset-card h3 {
    margin: 0 0 12px;
    font-size: 1.18rem;
    line-height: 1.2;
}

.step-card span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(45, 91, 219, 0.92), rgba(41, 226, 209, 0.88));
    color: #fff;
    font-weight: 800;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 22px;
    align-items: stretch;
}

.preset-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.preset-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.preset-card:hover {
    transform: translateY(-4px);
    border-color: rgba(115, 228, 229, 0.2);
    box-shadow:
        0 30px 64px rgba(4, 8, 18, 0.24),
        0 0 24px rgba(41, 226, 209, 0.06);
}

.preset-category {
    margin: 0;
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.preset-card-description {
    display: -webkit-box;
    min-height: calc(1.76em * 3);
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.preset-tags {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 72px;
}

.preset-tags li {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(244, 248, 255, 0.8);
    font-size: 0.84rem;
}

.preset-card-actions {
    margin-top: auto;
    padding-top: 2px;
}

.preset-card-actions .button {
    width: 100%;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    border: 1px solid rgba(136, 182, 255, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(45, 91, 219, 0.16), rgba(41, 226, 209, 0.12)),
        linear-gradient(180deg, rgba(11, 18, 38, 0.78) 0%, rgba(10, 16, 34, 0.54) 100%);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.content-page {
    padding: 28px 0 40px;
}

.page-hero {
    padding: 32px 0 10px;
}

.page-hero h1 {
    max-width: 860px;
}

.page-hero p {
    max-width: 760px;
}

.content-shell {
    padding: 18px 0;
}

.content-shell > .content-card,
.content-shell > .faq-list-full,
.content-shell > .steps-grid,
.content-shell > .preset-grid,
.content-shell > .contact-grid {
    width: 100%;
    max-width: 1400px;
}

.legal-page,
.faq-list-full {
    display: grid;
    gap: 18px;
}

.legal-page h2,
.faq-list-full h2 {
    margin: 0 0 10px;
    font-size: 1.28rem;
    line-height: 1.2;
}

.faq-list-full {
    grid-template-columns: 1fr;
}

.site-footer {
    position: relative;
    padding: 34px 0 28px;
    border-top: 1px solid rgba(136, 182, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(41, 226, 209, 0.05) 0%, rgba(7, 12, 24, 0.1) 14%, rgba(7, 12, 24, 0.88) 100%);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(41, 226, 209, 0.32), rgba(143, 125, 255, 0.28), transparent);
}

.footer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(210px, 0.78fr));
    gap: 28px;
    align-items: start;
    width: 100%;
}

.footer-column {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.footer-column a {
    color: rgba(238, 244, 255, 0.76);
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease, text-shadow 180ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-credit-link:hover,
.footer-credit-link:focus-visible {
    color: #ffffff;
    transform: translateX(2px);
    text-shadow: 0 0 16px rgba(86, 184, 255, 0.14);
    outline: none;
}

.footer-heading {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-brand {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-logo {
    display: block;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
}

.footer-brand-block {
    max-width: 360px;
}

.footer-subline {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(160, 196, 255, 0.1);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-subline p {
    margin: 0;
    color: rgba(238, 244, 255, 0.64);
}

.footer-credit-link {
    color: #9ee7ff;
    font-weight: 700;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.footer-cookie-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: rgba(238, 244, 255, 0.72);
    font-weight: 700;
    cursor: pointer;
    transition: color 160ms ease, text-shadow 180ms ease;
}

.footer-cookie-link:hover,
.footer-cookie-link:focus-visible {
    color: #ffffff;
    text-shadow: 0 0 16px rgba(86, 184, 255, 0.14);
    outline: none;
}

.studio-shell {
    padding: 28px 0 48px;
}

.studio-head,
.empty-state,
.form-card,
.note-card,
.detail-card,
.adsense-card,
.experience-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.studio-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    margin-bottom: 24px;
}

.studio-head h1,
.experience-card h2,
.detail-card h2,
.form-card h2,
.note-card h2 {
    margin-bottom: 12px;
}

.studio-head h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.98;
}

.experience-card p,
.detail-card p,
.note-card p,
.note-card li {
    color: var(--muted);
}

.empty-state,
.form-card,
.note-card,
.detail-card,
.adsense-card,
.experience-card {
    padding: 24px;
}

.experience-grid,
.detail-layout,
.builder-layout {
    display: grid;
    gap: 20px;
}

.experience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.experience-meta span,
.adsense-head span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 122, 24, 0.1);
    color: var(--brand-dark);
    font-size: 0.86rem;
    font-weight: 700;
}

.experience-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.experience-foot a {
    color: inherit;
    text-decoration: none;
    font-weight: 800;
}

.builder-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    align-items: start;
}

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

.form-span-2 {
    grid-column: 1 / -1;
}

.ad-config {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.note-card ul,
.ads-list,
.entry-list {
    margin-bottom: 0;
}

.note-card ul,
.ads-list {
    padding-left: 20px;
}

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

.entry-list {
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.8;
}

.ads-list li {
    margin-bottom: 10px;
}

.ads-list strong,
.ads-list span {
    display: block;
}

.ads-list span {
    color: var(--muted);
}

.adsense-card {
    margin-top: 22px;
}

.adsense-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.adsbygoogle {
    margin-top: 18px;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-md);
}

.form-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-card input[type="text"],
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.form-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.form-card textarea {
    min-height: 140px;
    resize: vertical;
}

.form-card .form-help {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.form-card ul {
    padding-left: 18px;
    color: #b42318;
}

.form-card .mb-3 {
    margin: 0;
}

@media (max-width: 1200px) {
    .wheel-stage {
        grid-template-columns: minmax(280px, 320px) minmax(0, 1.2fr);
        gap: 20px;
    }

    .toolbar-left {
        width: min(100%, clamp(280px, 27vw, 320px));
    }

    .wheel-canvas {
        width: min(100%, clamp(420px, 56vw, 800px));
    }

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

    .seo-grid-panels,
    .ad-shell,
    .faq-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .cookie-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cookie-banner-actions {
        justify-content: flex-start;
    }

    .site-header-inner {
        min-height: 74px;
        gap: 16px;
    }

    .site-brand small {
        display: none;
    }

    .site-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text);
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border: 1px solid rgba(136, 182, 255, 0.16);
        border-radius: 20px;
        background: rgba(8, 14, 30, 0.94);
        box-shadow: 0 18px 44px rgba(5, 10, 24, 0.34), var(--glow-soft);
    }

    .site-nav[data-open="true"] {
        display: flex;
    }

    .site-nav a,
    .site-nav-cta {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .toolbar-left {
        width: 100%;
        order: 2;
    }

    .wheel-stage {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px clamp(16px, 4vw, 28px) 36px;
    }

    .wheel-hero-content {
        order: 1;
    }

    .home-ad {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 120px;
        margin: 0;
    }

    .home-ad .home-adsbygoogle,
    .home-ad-placeholder {
        min-height: 120px;
    }

    .wheel-canvas {
        width: min(100%, calc(100vw - 42px), 720px);
    }

    .wheel-center-button {
        width: clamp(84px, 14vw, 104px);
        height: clamp(84px, 14vw, 104px);
    }

    .wheel-result-bubble {
        top: 12px;
        max-width: min(320px, calc(100% - 24px));
    }

    .section-intro,
    .page-hero p,
    .page-hero h1,
    .seo-copy {
        max-width: 100%;
    }

    .studio-shell {
        padding-top: 20px;
    }

    .studio-head,
    .builder-layout,
    .experience-grid,
    .detail-layout,
    .footer-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .section-split,
    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-split .button,
    .cta-actions .button {
        width: auto;
        max-width: 100%;
    }

    .seo-band {
        padding-top: 28px;
    }

    .seo-layout {
        gap: 18px;
        padding-bottom: 36px;
    }

    .seo-section,
    .seo-section-intro,
    .ad-shell {
        padding: 22px;
        border-radius: 24px;
    }

    .footer-subline {
        margin-top: 18px;
    }

    .preset-grid,
    .feature-grid,
    .steps-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-span-2 {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .cookie-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
        padding: 16px;
        border-radius: 18px;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-link,
    .cookie-banner-button {
        flex: 1 1 100%;
        width: 100%;
    }

    .shell {
        max-width: calc(100% - 32px);
    }

    .toolbar-left {
        padding: 12px;
        border-radius: 20px;
    }

    .toolbar-title {
        font-size: 1.18rem;
    }

    .toolbar-text {
        font-size: 0.88rem;
    }

    .icon-button,
    .ghost-button,
    .icon-add-button,
    .compact-reset-button,
    .entry-mini-form input,
    .mode-toggle,
    .button {
        min-height: 46px;
    }

    .icon-button,
    .ghost-button,
    .icon-add-button,
    .compact-reset-button {
        width: 46px;
        height: 46px;
    }

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

    .compact-reset-button {
        width: 100%;
    }

    .wheel-stage {
        padding: 24px 0 28px;
    }

    .wheel-canvas {
        width: min(100%, calc(100vw - 28px), 560px);
    }

    .wheel-pointer {
        border-left-width: 16px;
        border-right-width: 16px;
        border-top-width: 28px;
    }

    .wheel-pointer::before {
        left: -6px;
        top: -33px;
        width: 12px;
        height: 10px;
    }

    .wheel-center-button {
        border-width: 4px;
        border-radius: 24px;
    }

    .wheel-center-button::before {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .wheel-center-icon {
        border-top-width: 11px;
        border-bottom-width: 11px;
        border-left-width: 16px;
    }

    .wheel-result-bubble {
        top: 10px;
        max-width: min(280px, calc(100% - 16px));
        padding: 10px 14px 12px;
    }

    .seo-section,
    .seo-section-intro,
    .ad-shell,
    .faq-item {
        padding: 18px;
        border-radius: 20px;
    }

    .feature-card,
    .step-card,
    .content-card,
    .preset-card,
    .cta-band {
        padding: 18px;
        border-radius: 20px;
    }

    .preset-grid {
        gap: 18px;
    }

    .preset-card-description {
        min-height: auto;
    }

    .preset-tags {
        min-height: 0;
    }

    .seo-copy h2 {
        font-size: clamp(1.56rem, 7vw, 2.05rem);
    }

    .footer-column a {
        min-height: 40px;
        align-items: center;
        display: inline-flex;
    }

    .footer-brand-block {
        max-width: none;
    }

    .studio-head,
    .empty-state,
    .form-card,
    .note-card,
    .detail-card,
    .adsense-card,
    .experience-card {
        padding: 18px;
    }

    .experience-foot,
    .adsense-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .site-brand {
        gap: 10px;
    }

    .site-brand strong {
        font-size: 1rem;
    }

    .entry-mini-form {
        grid-template-columns: 1fr;
    }

    .icon-add-button {
        width: 100%;
    }

    .theme-options {
        justify-content: center;
    }

    .ad-shell-copy h2 {
        font-size: 1.3rem;
    }

    .button,
    .site-nav a,
    .site-nav-cta {
        width: 100%;
    }

    .result-heading,
    .result-main h2 {
        font-size: 1.18rem;
    }
}

@keyframes result-pop {
    0% {
        transform: translateY(10px) scale(0.96);
        opacity: 0.55;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes result-glow {
    0% {
        box-shadow:
            0 18px 44px rgba(4, 10, 22, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.04),
            0 0 0 color-mix(in srgb, var(--theme-accent) 0%, transparent);
    }
    100% {
        box-shadow:
            0 18px 44px rgba(4, 10, 22, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.04),
            0 0 28px color-mix(in srgb, var(--theme-accent) 14%, transparent);
    }
}

@keyframes stage-flash {
    0% {
        background: rgba(255, 255, 255, 0);
    }
    35% {
        background: rgba(255, 255, 255, 0.38);
    }
    100% {
        background: rgba(255, 255, 255, 0);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--fall-x), 120vh, 0) rotate(var(--fall-rotate));
        opacity: 0;
    }
}
