        :root {
            --bg: #070b10;
            --panel: #101923;
            --panel2: #0c131b;
            --line: #223244;
            --text: #e8f7ff;
            --muted: #7f95a8;
            --cyan: #00e5ff;
            --green: #00ff9c;
            --red: #ff4d6d;
            --yellow: #ffd166;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            background:
                radial-gradient(circle at top, rgba(0, 229, 255, .12), transparent 35%),
                var(--bg);
            color: var(--text);
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        .app {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        header {
            padding: 18px 24px;
            border-bottom: 1px solid var(--line);
            background: rgba(8, 14, 22, .9);
        }

        .title {
            margin: 0;
            font-size: 24px;
            letter-spacing: .08em;
        }

        .subtitle {
            margin: 6px 0 0;
            color: var(--muted);
            font-size: 14px;
        }

        .layout {
            flex: 1;
            display: grid;
            grid-template-columns: 260px 1fr 300px;
            gap: 14px;
            padding: 14px;
        }

        .panel {
            background: linear-gradient(180deg, var(--panel), var(--panel2));
            border: 1px solid var(--line);
            border-radius: 16px;
            box-shadow: 0 0 24px rgba(0, 229, 255, .08);
            overflow: hidden;
        }

        .panel h2 {
            margin: 0;
            padding: 12px 14px;
            font-size: 13px;
            letter-spacing: .12em;
            color: var(--cyan);
            border-bottom: 1px solid var(--line);
        }

        .status-list {
            padding: 14px;
            display: grid;
            gap: 10px;
        }

        .stat {
            padding: 12px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: rgba(255, 255, 255, .03);
        }

        .stat-label {
            color: var(--muted);
            font-size: 12px;
        }

        .stat-value {
            margin-top: 4px;
            font-size: 22px;
            font-weight: 700;
        }

        .rank {
            font-size: 42px;
            color: var(--green);
            text-shadow: 0 0 18px rgba(0, 255, 156, .45);
        }

        .progress-track {
            width: 100%;
            height: 8px;
            margin-top: 10px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: rgba(255, 255, 255, .04);
            overflow: hidden;
        }

        .progress-bar {
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, var(--cyan), var(--green));
            transition: width .25s ease;
        }

        .game-panel {
            min-height: 600px;
            display: flex;
            flex-direction: column;
        }

        .play-area {
            position: relative;
            flex: 1;
            margin: 14px;
            border: 1px solid var(--line);
            border-radius: 18px;
            background:
                linear-gradient(rgba(255, 255, 255, .025) 50%, transparent 50%),
                radial-gradient(circle at center, rgba(0, 229, 255, .08), transparent 45%),
                #070d13;
            background-size: 100% 4px, auto, auto;
            overflow: hidden;
            user-select: none;
        }

        .focus-dot {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            border: 2px solid var(--cyan);
            box-shadow: 0 0 20px rgba(0, 229, 255, .65);
        }

        .focus-dot::after {
            content: "";
            position: absolute;
            inset: 6px;
            border-radius: 50%;
            background: var(--cyan);
        }

        .target-mark {
            position: absolute;
            font-size: clamp(48px, 8vw, 96px);
            font-weight: 900;
            color: var(--green);
            text-shadow: 0 0 26px rgba(0, 255, 156, .75);
            animation: pop .18s ease-out;
        }

        .target-top {
            top: 8%;
            left: 50%;
            transform: translateX(-50%);
        }

        .target-bottom {
            bottom: 8%;
            left: 50%;
            transform: translateX(-50%);
        }

        .target-left {
            left: 8%;
            top: 50%;
            transform: translateY(-50%);
        }

        .target-right {
            right: 8%;
            top: 50%;
            transform: translateY(-50%);
        }

        .center-message {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            text-align: center;
            pointer-events: none;
        }

        .main-text {
            font-size: clamp(34px, 6vw, 72px);
            font-weight: 800;
            letter-spacing: .08em;
        }

        .sub-text {
            margin-top: 12px;
            color: var(--muted);
        }

        .start-btn {
            margin-top: 22px;
            border: 1px solid var(--cyan);
            background: rgba(0, 229, 255, .12);
            color: var(--cyan);
            border-radius: 999px;
            padding: 12px 26px;
            font-weight: 700;
            cursor: pointer;
            pointer-events: auto;
        }

        .log-list {
            height: calc(100vh - 160px);
            overflow-y: auto;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .log-item {
            padding: 10px;
            border-left: 3px solid var(--cyan);
            background: rgba(255, 255, 255, .04);
            border-radius: 8px;
            font-size: 13px;
        }

        .log-item.good {
            border-left-color: var(--green);
        }

        .log-item.bad {
            border-left-color: var(--red);
        }

        .log-time {
            color: var(--muted);
            font-size: 11px;
        }

        .result-card {
            text-align: center;
        }

        .result-card strong {
            display: block;
            color: var(--green);
            font-size: clamp(42px, 7vw, 86px);
            text-shadow: 0 0 28px rgba(0, 255, 156, .6);
        }

        .result-card span {
            display: block;
            margin-top: 10px;
            color: var(--cyan);
            font-size: clamp(22px, 4vw, 42px);
        }

        .result-grid {
            margin-top: 20px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }

        .result-mini {
            padding: 12px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: rgba(255, 255, 255, .04);
            font-size: 14px;
        }

        footer {
            padding: 16px;
            color: var(--muted);
            text-align: center;
            font-size: 12px;
            border-top: 1px solid var(--line);
        }

        footer p {
            margin: 0;
        }

        .footer-links {
            margin-top: 10px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px 14px;
        }

        .footer-links a {
            color: var(--cyan);
            text-decoration: none;
        }

        .footer-links a:hover {
            text-decoration: underline;
        }

        @keyframes pop {
            from {
                opacity: 0;
                scale: .8;
            }

            to {
                opacity: 1;
                scale: 1;
            }
        }

        @media (max-width: 980px) {
            .layout {
                grid-template-columns: 1fr;
            }

            .log-list {
                height: 260px;
            }

            .result-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .page-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) minmax(120px, 180px);
    gap: 14px;
    padding: 14px;
}

.app {
    min-width: 0;
    min-height: calc(100vh - 28px);
}

.side-ad {
    min-width: 0;
}

.ad-box {
    position: sticky;
    top: 14px;
    min-height: 600px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    box-shadow: 0 0 24px rgba(0, 229, 255, .08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ad-label {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .12em;
    text-align: center;
}

.ad-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
    background:
        linear-gradient(rgba(255, 255, 255, .025) 50%, transparent 50%),
        rgba(255, 255, 255, .02);
    background-size: 100% 4px;
}

.ad-box .adsbygoogle {
    width: 100%;
    min-height: 560px;
}

.save-btn {
    margin-top: 20px;
    border: 1px solid var(--green);
    background: rgba(0, 255, 156, .12);
    color: var(--green);
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0, 255, 156, .18);
    pointer-events: auto;
}

.save-btn:hover {
    background: rgba(0, 255, 156, .18);
    box-shadow: 0 0 26px rgba(0, 255, 156, .35);
}

@media (max-width: 1280px) {
    .page-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .side-ad {
        display: none;
    }

    .app {
        min-height: 100vh;
    }
}

.difficulty-select {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-size: 14px;
    appearance: none;
-webkit-appearance: none;
-moz-appearance: none;

background-color: #101923;
color: #e8f7ff;

background-image:
linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
linear-gradient(135deg, var(--cyan) 50%, transparent 50%);

background-position:
calc(100% - 18px) calc(50% - 3px),
calc(100% - 12px) calc(50% - 3px);

background-size: 6px 6px;
background-repeat: no-repeat;
}

.focus-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% + 42px));
    color: var(--yellow);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: .08em;
    text-shadow: 0 0 18px rgba(255, 209, 102, .45);
    pointer-events: none;
}

.memory-check {
    margin-top: 20px;
}

.memory-check p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 15px;
}

.memory-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.memory-btn {
    min-width: 64px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    color: var(--text);
    padding: 12px 18px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .12s ease,
        border-color .12s ease,
        box-shadow .12s ease;
}

.memory-btn:hover {
    transform: translateY(-2px);
    border-color: var(--yellow);
    box-shadow: 0 0 18px rgba(255, 209, 102, .25);
}

.memory-btn {
    pointer-events: auto;
}

.play-area.noise::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    mix-blend-mode: screen;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,.05) 0px,
            rgba(255,255,255,.05) 2px,
            transparent 2px,
            transparent 2px
        );

    animation: scanMove 3s linear infinite;
}

.play-area.noise::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .18;

    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,.25) 0 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,.2) 0 1px, transparent 1px);

    background-size: 120px 120px;
    animation: noiseShift .4s infinite steps(2);
}

@keyframes scanMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(6px);
    }
}

@keyframes noiseShift {
    0% {
        transform: translate(0,0);
    }

    25% {
        transform: translate(1px,-1px);
    }

    50% {
        transform: translate(-1px,1px);
    }

    75% {
        transform: translate(1px,1px);
    }

    100% {
        transform: translate(0,0);
    }
}
.difficulty-select option {
    background: #101923;
    color: #e8f7ff;
}

/* =========================
   INFO SECTION
========================= */

.info-section {
    padding: 14px;
}

.comments-section {
    padding: 14px;
}

.comments-section :where(.app-comments, .app-comment-form-section) {
    margin: 0 0 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
        var(--panel);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: 0 0 24px rgba(0, 229, 255, .05);
}

.comments-section :where(.app-comments h2, .app-comment-form-section h2) {
    color: var(--cyan);
    letter-spacing: .08em;
}

.comments-section :where(.app-comment-count, .app-comment-page-status, .app-comment-meta, .app-comments-empty, .app-comment-message, .app-comment-form label) {
    color: var(--muted);
}

.comments-section :where(.app-comment-card, .app-comment-pagination) {
    border-color: var(--line);
}

.comments-section :where(.app-comment-body, .app-comment-form input, .app-comment-form select, .app-comment-form textarea) {
    color: var(--text);
}

.comments-section :where(.app-comment-form input, .app-comment-form select, .app-comment-form textarea) {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    padding: 10px 12px;
}

.comments-section :where(.app-comment-form input::placeholder, .app-comment-form textarea::placeholder) {
    color: var(--muted);
}

.comments-section :where(.app-comment-form select option) {
    background: #101923;
    color: var(--text);
}

.comments-section :where(.app-comment-form button, .app-comment-reply-form-wrap summary) {
    color: var(--cyan);
}

.comments-section :where(.app-comment-form button) {
    border: 1px solid var(--cyan);
    border-radius: 999px;
    background: rgba(0, 229, 255, .12);
    padding: 11px 22px;
    font-weight: 700;
    cursor: pointer;
}

.comments-section :where(.app-comment-form button:hover) {
    background: rgba(0, 229, 255, .18);
}

.comments-section :where(.app-comment-admin-reply, .app-comment-reply) {
    border-color: var(--cyan);
    background: rgba(0, 229, 255, .08);
}

.comments-section :where(.app-comment-admin-reply-title, .app-comment-rating) {
    color: var(--green);
}

.comments-section :where(.app-comment-replies) {
    border-left-color: var(--line);
}

.comments-section :where(.app-comment-pagination a, .app-comment-pagination span) {
    border-color: var(--line);
    color: var(--cyan);
    background: rgba(255,255,255,.03);
}

.comments-section :where(.app-comment-pagination span) {
    border-color: var(--cyan);
    background: rgba(0, 229, 255, .14);
    color: var(--text);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.info-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
        var(--panel);
    box-shadow: 0 0 24px rgba(0, 229, 255, .05);
}

.info-card h2 {
    margin: 0 0 16px;
    color: var(--cyan);
    font-size: 18px;
    letter-spacing: .08em;
}

.guide-item + .guide-item {
    margin-top: 14px;
}

.guide-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--text);
}

.guide-item p,
.info-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
}

.note-list {
    margin: 14px 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
}

.tool-links {
    display: grid;
    gap: 10px;
}

.tool-link {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    color: var(--text);
    text-decoration: none;
    transition:
        transform .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.tool-link:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 229, 255, .18);
}

.tool-link span {
    font-size: 28px;
}

.tool-link strong {
    display: block;
    font-size: 15px;
}

.tool-link small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}
