:root {
    --bg: #0a0908;
    --surface: rgba(255, 255, 255, 0.03);
    --accent: #ff8c42;
    --accent-glow: rgba(255, 140, 66, 0.3);
    --text: #fefae0;
    --text-dim: #bdae93;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.bg-glow.bottom {
    top: auto;
    bottom: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.2) 0%, transparent 70%);
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.container {
    width: 95%;
    max-width: 650px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.6s ease-out;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 15px;
    color: var(--text-dim);
    margin-top: 4px;
}

.toggles {
    background: rgba(0, 0, 0, 0.4);
    padding: 6px;
    border-radius: 14px;
    display: flex;
}

.mode-pill {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: 0.2s ease;
}

.mode-pill.active {
    background: var(--accent);
    color: #000;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
}

.stat-card .label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
    letter-spacing: 0.8px;
}

.stat-card .val {
    font-size: 24px;
    font-weight: 700;
}

.test-zone {
    height: 320px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.1s, transform 0.2s;
    position: relative;
}

.app.visual.go .test-zone {
    background: var(--accent);
    border-color: #fff;
}

.app.visual.go .main-msg,
.app.visual.go .sub-msg {
    color: #000;
}

.inner-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-msg {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
    text-align: center;
    width: 100%;
}

.sub-msg {
    color: var(--text-dim);
    font-size: 18px;
    text-align: center;
}

.footer {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.study-note {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

.study-note b {
    color: var(--text);
}

.study-note a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.credit {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-dim);
    opacity: 0.8;
}

.credit a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.credit a:hover {
    color: var(--accent);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}