:root {
    --bg-1: #07090d;
    --bg-2: #0c121c;
    --panel: rgba(16, 22, 32, 0.9);
    --panel-2: rgba(24, 32, 45, 0.95);
    --text: #f4f5f8;
    --muted: #9aa3b2;
    --accent: #7df3c4;
    --accent-2: #6aa9ff;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(700px 300px at 15% 0%, rgba(125, 243, 196, 0.12), transparent 60%),
        radial-gradient(600px 400px at 90% 10%, rgba(106, 169, 255, 0.12), transparent 55%),
        linear-gradient(160deg, var(--bg-1), var(--bg-2) 50%, #05070c 100%);
}

.page {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 28px 0 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    color: var(--muted);
}

.topbar__label {
    color: var(--muted);
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(125, 243, 196, 0.25);
    background: rgba(125, 243, 196, 0.08);
}

.back-link:hover {
    background: rgba(125, 243, 196, 0.16);
}

.hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    color: var(--muted);
}

h1.title {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.subtitle {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.seed {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: right;
    min-width: 160px;
}

.seed__label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.seed__value {
    font-size: 20px;
    font-weight: 700;
}

.content {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 26px;
    align-items: start;
}

.canvas-card,
.controls-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.canvas-frame {
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(125, 243, 196, 0.12), rgba(106, 169, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.canvas-frame canvas {
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(27, 23, 18, 0.35);
    display: block;
}

.canvas-hint {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

.controls-title {
    font-size: 18px;
    margin-bottom: 14px;
}

.controls {
    display: grid;
    gap: 12px;
}

.btn {
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--accent);
    color: #091016;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 22px rgba(125, 243, 196, 0.28);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(125, 243, 196, 0.35);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.btn--ghost:hover {
    box-shadow: 0 10px 18px rgba(106, 169, 255, 0.2);
}

.shortcuts {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shortcut {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    border: 1px dashed rgba(255, 255, 255, 0.14);
}

/* Loading Section Styles */
.loading-section {
    padding: 60px 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(125, 243, 196, 0.05), rgba(106, 169, 255, 0.05));
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.loading-header {
    width: 100%;
}

.loading-title {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: 0.05em;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.loader-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.4s ease-in-out infinite;
}

.loader-circle:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading-text {
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .content {
        grid-template-columns: 1fr;
    }

    .seed {
        text-align: left;
        width: 100%;
    }

    .loading-section {
        padding: 40px 24px;
    }

    .loading-title {
        font-size: 18px;
    }
}

