:root {
            color-scheme: dark;
            --bg: #12070d;
            --panel: rgba(42, 12, 24, 0.92);
            --panel-2: rgba(63, 18, 37, 0.95);
            --line: rgba(255,255,255,0.08);
            --text: #fff3f8;
            --muted: rgba(255, 224, 236, 0.78);
            --accent: #ff8fbe;
        }

        * { box-sizing: border-box; }

        html, body {
            margin: 0;
            min-height: 100%;
            background:
                radial-gradient(circle at top, rgba(150, 47, 88, 0.28), transparent 42%),
                linear-gradient(180deg, #1b0912 0%, #12070d 100%);
            color: var(--text);
            font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        body {
            padding: 18px;
        }

        body.is-embedded {
            padding: 0;
            background: transparent;
        }

        .page {
            width: min(1180px, 100%);
            margin: 0 auto;
            display: grid;
            gap: 16px;
        }

        body.is-embedded .page {
            width: 100%;
            margin: 0;
            gap: 12px;
        }

        .hidden {
            display: none !important;
        }

        body.is-embedded .hero {
            display: none;
        }

        body.is-embedded .side-card {
            display: none;
        }

        .hero {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            flex-wrap: wrap;
            padding: 16px 18px;
            border-radius: 22px;
            border: 1px solid var(--line);
            background: linear-gradient(180deg, rgba(58, 15, 30, 0.94), rgba(29, 10, 18, 0.96));
            box-shadow: 0 18px 42px rgba(0,0,0,0.22);
        }

        body.is-embedded .hero {
            border-radius: 18px;
            box-shadow: none;
        }

        .hero__text h1 {
            margin: 0 0 6px;
            font-size: clamp(1.35rem, 2.2vw, 2rem);
        }

        .hero__text p {
            margin: 0;
            color: var(--muted);
            line-height: 1.6;
        }

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

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 42px;
            padding: 10px 16px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.1);
            background: linear-gradient(180deg, rgba(255, 123, 180, 0.96), rgba(181, 44, 103, 0.94));
            color: #fff8fb;
            text-decoration: none;
            font-weight: 800;
            letter-spacing: 0.01em;
            cursor: pointer;
        }

        .btn--ghost {
            background: rgba(255,255,255,0.06);
        }

        .stage-tools {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
            justify-content: space-between;
            padding: 12px 14px 0;
        }

        .stage-tools__hint {
            margin: 0;
            color: var(--muted);
            font-size: 0.92rem;
        }

        body.is-embedded .stage-tools {
            padding: 10px 10px 0;
        }

        body.is-embedded .stage-tools__hint {
            display: none;
        }

        .layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
            gap: 16px;
        }

        body.is-embedded .layout {
            grid-template-columns: 1fr;
        }

        .stage-card, .side-card {
            border-radius: 24px;
            border: 1px solid var(--line);
            background: linear-gradient(180deg, var(--panel), var(--panel-2));
            box-shadow: 0 18px 42px rgba(0,0,0,0.18);
        }

        body.is-embedded .stage-card,
        body.is-embedded .side-card {
            box-shadow: none;
        }

        .stage-card {
            padding: 16px;
        }

        .stage {
            width: 100%;
            min-height: min(78vh, 760px);
            border-radius: 18px;
            overflow: hidden;
            background: #090406;
            border: 1px solid rgba(255,255,255,0.08);
        }

        #ruffle-container, #ruffle-container > * {
            width: 100%;
            height: 100%;
        }

        .ruffle-player-host {
            display: block;
            width: 100%;
            height: 100%;
        }

        .side-card {
            padding: 16px;
            display: grid;
            gap: 14px;
            align-content: start;
        }

        .thumb {
            width: 100%;
            border-radius: 18px;
            border: 1px solid rgba(255,255,255,0.08);
            object-fit: cover;
        }

        .side-card h2 {
            margin: 0;
            font-size: 1rem;
        }

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

        .side-card ul {
            margin: 0;
            padding-left: 18px;
        }

        .status {
            padding: 12px 14px;
            border-radius: 14px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.08);
            color: var(--muted);
            font-size: 0.94rem;
        }

        .status--error {
            color: #ffd7e6;
            border-color: rgba(255, 140, 180, 0.28);
            background: rgba(99, 20, 47, 0.38);
        }

        .status--ok {
            color: #ffeef5;
            border-color: rgba(255, 183, 215, 0.24);
        }

        @media (max-width: 980px) {
            .layout {
                grid-template-columns: 1fr;
            }
        }
