﻿/* 기본 토큰, 리셋, 셸 레이아웃 */
@import url("https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/variable/woff2/SUIT-Variable.css");

:root {
    --bg-top: #eef6ea;
    --bg-bottom: #f8f8fb;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-muted: #f3f5fb;
    --stroke: rgba(91, 112, 152, 0.14);
    --text: #182033;
    --muted: #6d7892;
    --primary: #2f6bff;
    --primary-soft: rgba(47, 107, 255, 0.12);
    --secondary: #8f3dff;
    --accent: #13b983;
    --danger: #ff4c5e;
    --shadow-lg: 0 24px 60px rgba(27, 46, 94, 0.12);
    --shadow-sm: 0 10px 30px rgba(21, 41, 83, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    background:
            radial-gradient(circle at top left, rgba(130, 198, 125, 0.16), transparent 28rem),
            linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "SUIT Variable", "Noto Sans KR", sans-serif;
    background: transparent;
}

body.is-loading {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.app-shell {
    width: min(100%, 460px);
    min-height: 100vh;
    margin: 0 auto;
    background: rgba(248, 249, 252, 0.88);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: rgba(248, 249, 252, 0.92);
    border-bottom: 1px solid rgba(85, 104, 142, 0.08);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-lockup__symbol {
    display: block;
    width: 46px;
    height: auto;
}

.brand-lockup__wordmark {
    display: block;
    width: 120px;
    height: auto;
}

.page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 20px 112px;
}

.page--guest {
    justify-content: center;
}

.hero-card,
.result-hero,
.profile-hero,
.welcome-card,
.login-card,
.action-card,
.panel,
.code-card,
.meeting-card,
.friend-card,
.history-card,
.stat-card,
.info-item,
.venue-card {
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-sm);
}

.hero-card,
.result-hero,
.profile-hero,
.welcome-card,
.login-card {
    padding: 24px;
    border-radius: var(--radius-xl);
}

.hero-card {
    background:
            radial-gradient(circle at top right, rgba(143, 61, 255, 0.14), transparent 12rem),
            linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 255, 0.98));
}

.hero-card--brand,
.welcome-card--brand {
    text-align: center;
    background:
            radial-gradient(circle at top, rgba(95, 215, 220, 0.18), transparent 13rem),
            radial-gradient(circle at 82% 24%, rgba(255, 137, 93, 0.16), transparent 11rem),
            linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 255, 0.98));
}

.result-hero {
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.95), rgba(143, 61, 255, 0.92));
    color: #ffffff;
}

.profile-hero {
    text-align: center;
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.92), rgba(186, 43, 255, 0.92));
    color: #ffffff;
}

.welcome-card,
.login-card {
    background:
            radial-gradient(circle at top left, rgba(78, 200, 187, 0.18), transparent 12rem),
            radial-gradient(circle at bottom right, rgba(143, 61, 255, 0.16), transparent 14rem),
            linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 255, 0.98));
}

.hero-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.hero-brand .brand-lockup {
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-brand__full {
    display: block;
    width: min(100%, 272px);
    height: auto;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: inherit;
    opacity: 0.9;
}

.hero-card h1,
.result-hero h1,
.profile-hero h1,
.page-heading h1 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.25;
}

.hero-copy,
.page-heading p,
.section-heading span,
.result-hero p,
.muted-note,
.welcome-card p,
.login-card p,
.meeting-card p,
.venue-card__copy,
.venue-card__reason {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.result-hero p,
.result-hero .eyebrow,
.result-hero .result-stats {
    color: rgba(255, 255, 255, 0.92);
}

.action-grid,
.stat-grid {
    display: grid;
    gap: 14px;
}

.link-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-shell[data-view-mode="desktop"] {
    width: min(1220px, calc(100% - 48px));
    min-height: calc(100vh - 48px);
    margin: 24px auto;
    border-radius: 32px;
    overflow: clip;
}

.app-shell[data-view-mode="desktop"] .topbar {
    padding: 22px 28px;
}

.app-shell[data-view-mode="desktop"] .page {
    gap: 22px;
    padding: 28px 28px 40px;
}

.app-shell[data-view-mode="desktop"] .page--guest {
    justify-content: flex-start;
}

.app-shell[data-view-mode="desktop"] .hero-card h1,
.app-shell[data-view-mode="desktop"] .result-hero h1,
.app-shell[data-view-mode="desktop"] .profile-hero h1,
.app-shell[data-view-mode="desktop"] .page-heading h1 {
    font-size: 2.2rem;
}

