*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #08080a;
    --bg-card: #0e0e12;
    --bg-input: #131318;
    --bg-hover: #1a1a22;
    --border: #1f1f2a;
    --border-hover: #2d2d3d;
    --text: #e4e4e8;
    --text-dim: #6b6b7b;
    --text-muted: #44445a;
    --accent: #ff6b35;
    --accent-light: #ff8f5e;
    --accent-glow: rgba(255, 107, 53, 0.12);
    --accent-glow-strong: rgba(255, 107, 53, 0.25);
    --success: #22c55e;
    --danger: #ef4444;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════ */
/*  BACKGROUND EFFECTS                     */
/* ═══════════════════════════════════════ */

.bg-noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

.bg-gradient-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 107, 53, 0.08), transparent);
    z-index: 0;
    pointer-events: none;
}

.bg-lines {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-lines::before,
.bg-lines::after {
    content: '';
    position: absolute;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    opacity: 0.04;
    width: 1px;
    height: 100%;
    animation: scanline 8s ease-in-out infinite;
}

.bg-lines::before {
    left: 20%;
    animation-delay: 0s;
}

.bg-lines::after {
    left: 75%;
    animation-delay: 4s;
}

@keyframes scanline {

    0%,
    100% {
        opacity: 0;
        transform: translateY(-100%);
    }

    50% {
        opacity: 0.06;
        transform: translateY(100%);
    }
}

/* ═══════════════════════════════════════ */
/*  LAYOUT                                 */
/* ═══════════════════════════════════════ */

.page {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════ */
/*  HERO                                   */
/* ═══════════════════════════════════════ */

.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 28px;
    background: var(--accent-glow);
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.hero h1 .glow {
    background: linear-gradient(135deg, #ff6b35, #ff9a5c, #ff6b35);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero .subtitle {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    color: var(--text-muted);
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero p {
    margin-top: 20px;
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 36px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text);
}

.hero-stat .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Space Mono', monospace;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 48px auto 0;
}

/* ═══════════════════════════════════════ */
/*  ALERTS                                 */
/* ═══════════════════════════════════════ */

.alert {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.alert-error ul {
    list-style: none;
}

.alert-error li {
    color: var(--danger);
    font-size: 0.85rem;
    padding: 2px 0;
}

/* ═══════════════════════════════════════ */
/*  FORM SECTIONS                          */
/* ═══════════════════════════════════════ */

.app-form {
    padding-bottom: 40px;
}

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    margin-bottom: 20px;
    position: relative;
    transition: border-color 0.3s ease;
}

.form-section:hover {
    border-color: var(--border-hover);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.section-info h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.section-info p {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ═══════════════════════════════════════ */
/*  FORM FIELDS                            */
/* ═══════════════════════════════════════ */

.field {
    margin-bottom: 22px;
}

.field:last-child {
    margin-bottom: 0;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {

    .row,
    .row-3 {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 28px 20px;
    }

    .hero {
        padding: 60px 0 40px;
    }
}

label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 7px;
    color: var(--text);
}

label .req {
    color: var(--accent);
}

label .opt {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.72rem;
    font-style: italic;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--border-hover);
}

textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b6b7b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.char-count {
    text-align: right;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    margin-top: 4px;
}

/* ═══════════════════════════════════════ */
/*  PLAYSTYLE CARDS                        */
/* ═══════════════════════════════════════ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

@media (max-width: 700px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 400px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card-option {
    position: relative;
}

.card-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.card-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.card-label:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.card-label .emoji {
    font-size: 1.6rem;
}

.card-label .name {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.card-option input:checked+.card-label {
    border-color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 4px 16px rgba(255, 107, 53, 0.1);
}

.card-option input:checked+.card-label .name {
    color: var(--accent-light);
}

/* ═══════════════════════════════════════ */
/*  ACTIVITY CARDS                         */
/* ═══════════════════════════════════════ */

.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════ */
/*  TOGGLE                                 */
/* ═══════════════════════════════════════ */

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.toggle-label {
    font-size: 0.88rem;
    font-weight: 500;
}

.toggle-label span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 400;
    margin-top: 2px;
}

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--text-dim);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toggle input:checked~.toggle-track {
    background: var(--accent);
}

.toggle input:checked~.toggle-thumb {
    left: 25px;
    background: #fff;
}

/* ═══════════════════════════════════════ */
/*  SUBMIT                                 */
/* ═══════════════════════════════════════ */

.submit-section {
    text-align: center;
    padding: 20px 0;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #ff6b35, #e85d2c);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(255, 107, 53, 0.3);
}

.btn-submit:hover::before {
    transform: translateX(100%);
}

.btn-submit:active {
    transform: translateY(0);
}

.submit-note {
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════ */
/*  FOOTER                                 */
/* ═══════════════════════════════════════ */

.leaf {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}