:root {
    --bg: #07101f;
    --panel: rgba(9, 18, 37, 0.78);
    --panel-soft: rgba(255, 255, 255, 0.06);
    --text: #eef4ff;
    --muted: #9ca8c4;
    --line: rgba(255, 255, 255, 0.1);
    --gold: #f0c36d;
    --mint: #8fe9e2;
    --glow: #7dc6ff;
    --danger: #ff8f96;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top, rgba(113, 204, 255, 0.18), transparent 32%),
        radial-gradient(circle at 80% 15%, rgba(240, 195, 109, 0.14), transparent 24%),
        linear-gradient(180deg, #09111f, #050912 60%, #071422);
    color: var(--text);
    font-family: "Segoe UI", "Noto Sans KR", sans-serif;
}

body.js-enabled .question-card {
    display: none;
}

body.js-enabled .question-card.is-active {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
}

.mobile-stage {
    width: min(100%, 460px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px 18px 40px;
    position: relative;
}

.hero-panel,
.form-panel,
.question-shell,
.loading-panel,
.result-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(14, 24, 49, 0.92), rgba(7, 14, 28, 0.95));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-panel,
.form-panel,
.question-shell,
.loading-panel,
.result-panel {
    padding: 28px 22px;
}

.hero-panel::before,
.form-panel::before,
.question-shell::before,
.loading-panel::before,
.result-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(143, 233, 226, 0.08), transparent 42%, rgba(240, 195, 109, 0.05));
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-title,
.section-title {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-title {
    font-size: 34px;
}

.section-title {
    font-size: 28px;
}

.hero-subtitle,
.section-description,
.hero-description,
.loading-copy {
    color: var(--muted);
    line-height: 1.7;
}

.coord-visual {
    margin: 26px 0 20px;
    min-height: 320px;
    border-radius: 24px;
    position: relative;
    background:
        radial-gradient(circle at center, rgba(143, 233, 226, 0.24), transparent 33%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(143, 233, 226, 0.16);
}

.coord-rail {
    position: absolute;
    left: 12%;
    right: 12%;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(143, 233, 226, 0.18), rgba(255, 255, 255, 0.04));
}

.coord-rail--top {
    top: 28%;
}

.coord-orb,
.result-orb,
.loading-sphere {
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, #ffffff, #8fe9e2 24%, #1d6a88 62%, #061525);
    box-shadow: 0 0 30px rgba(125, 198, 255, 0.4);
}

.coord-orb {
    position: absolute;
    width: 92px;
    height: 92px;
}

.coord-orb--primary {
    top: 18%;
    left: 16%;
}

.coord-orb--secondary {
    right: 14%;
    bottom: 17%;
    width: 76px;
    height: 76px;
    background: radial-gradient(circle at 35% 30%, #fff6d0, #f0c36d 24%, #8e5a14 64%, #1f1307);
}

.coord-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 22px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.coord-caption span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.16em;
}

.coord-caption strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
}

.primary-cta,
.ghost-button,
.admin-search button {
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold), #fff2c6);
    color: #0a1120;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 16px 34px rgba(240, 195, 109, 0.28);
}

.ghost-button {
    min-height: 52px;
    border-radius: 16px;
    padding: 0 20px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.ghost-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.primary-cta:hover,
.ghost-button:hover,
.admin-search button:hover {
    transform: translateY(-1px);
}

.coord-form,
.question-form {
    display: grid;
    gap: 16px;
}

.field,
.checkbox-field {
    display: grid;
    gap: 8px;
}

.field span,
.checkbox-field span {
    color: var(--muted);
    font-size: 14px;
}

.field input,
.field select,
.admin-search input {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 0 16px;
    font-size: 15px;
}

.field small,
.checkbox-error {
    color: var(--danger);
}

.checkbox-field {
    grid-template-columns: auto 1fr;
    align-items: start;
}

.checkbox-field input {
    margin-top: 3px;
}

.form-error {
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 143, 150, 0.12);
    color: #ffd5d8;
    font-size: 14px;
}

.question-header {
    margin-bottom: 18px;
}

.question-progress {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--gold);
    font-weight: 700;
}

.question-card {
    border-radius: 24px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.question-index {
    color: var(--gold);
    margin: 0 0 8px;
}

.question-card h2 {
    margin-top: 0;
    font-size: 22px;
    line-height: 1.35;
}

.question-options {
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
}

.choice-card {
    position: relative;
    display: block;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.choice-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.choice-card:has(input:checked) {
    border-color: rgba(143, 233, 226, 0.8);
    box-shadow: 0 0 0 1px rgba(143, 233, 226, 0.25);
    background: rgba(143, 233, 226, 0.1);
}

.question-actions {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
}

.loading-panel {
    text-align: center;
}

.loading-rail {
    margin: 34px 0 20px;
    min-height: 260px;
    position: relative;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.loading-track {
    position: absolute;
    left: 12%;
    right: 12%;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.loading-track--one {
    top: 35%;
}

.loading-track--two {
    top: 58%;
}

.loading-sphere {
    width: 88px;
    height: 88px;
    position: absolute;
    top: 26%;
    left: calc(50% - 44px);
    animation: floatRail 2.8s ease-in-out infinite;
}

@keyframes floatRail {
    0%,
    100% { transform: translate(-90px, -8px) scale(0.98); }
    50% { transform: translate(90px, 54px) scale(1.04); }
}

.result-panel {
    text-align: center;
}

.result-orb-card {
    margin: 24px 0;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.05);
}

.result-orb {
    width: 120px;
    height: 120px;
    margin: 0 auto 14px;
}

.result-coord-label {
    margin: 0;
    color: var(--muted);
    letter-spacing: 0.16em;
}

.result-coord-value {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    letter-spacing: 0.08em;
}

.result-job {
    color: var(--gold);
    margin-bottom: 6px;
}

.result-summary h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.result-tags,
.result-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.result-tags li,
.result-meta span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 14px;
}

.admin-body {
    background: #f3f5fb;
    color: #172034;
}

.admin-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 18px 48px;
}

.admin-card,
.admin-page {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(19, 29, 52, 0.08);
}

.admin-login-panel {
    max-width: 460px;
    margin: 60px auto;
}

.admin-header,
.admin-meta,
.admin-search,
.detail-grid {
    display: flex;
    gap: 16px;
}

.admin-header,
.admin-search {
    justify-content: space-between;
    align-items: center;
}

.admin-meta {
    align-items: center;
}

.admin-search {
    margin: 24px 0;
}

.admin-search input {
    max-width: 340px;
}

.admin-search button {
    min-width: 88px;
    min-height: 48px;
    border-radius: 14px;
    background: #101a31;
    color: #fff;
}

.admin-table-wrap {
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e9f4;
    text-align: left;
    font-size: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 18px;
}

.detail-card {
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 20px;
    background: #f8faff;
}

.detail-card dl {
    margin: 0;
    display: grid;
    gap: 10px;
}

.detail-card dt {
    color: #72809f;
    font-size: 13px;
}

.detail-card dd {
    margin: 2px 0 0;
    font-weight: 600;
}

.error-state {
    width: min(100%, 520px);
    margin: 80px auto;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
}

@media (max-width: 720px) {
    .admin-header,
    .admin-search {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search input {
        max-width: none;
    }
}

