:root {
    --bg-start: #f5efe3;
    --bg-end: #dce7f0;
    --panel: rgba(255, 251, 245, 0.82);
    --line: rgba(36, 37, 41, 0.1);
    --text: #1d2630;
    --muted: #5b6673;
    --accent: #c54a3c;
    --accent-dark: #8f2d25;
    --success: #0f766e;
    --empty: #8b5e34;
    --shadow: 0 18px 40px rgba(37, 39, 45, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.landing-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(197, 74, 60, 0.18), transparent 38%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.15), transparent 30%),
        linear-gradient(135deg, var(--bg-start), var(--bg-end));
}

.shell {
    width: min(1200px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.hero-card {
    background: var(--panel);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    padding: 32px;
    box-shadow: var(--shadow);
}

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

h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.02;
}

.subcopy {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.ticket-panel {
    margin-top: 28px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
}

.ticket-panel label,
.legend-panel h2 {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
}

.ticket-row {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 12px;
}

.ticket-row input,
.ticket-row button,
.modal-card button {
    border: 0;
    border-radius: 16px;
    min-height: 56px;
    font-size: 16px;
}

.ticket-row input {
    padding: 0 18px;
    border: 1px solid var(--line);
    text-transform: uppercase;
}

.ticket-row button,
.modal-card button {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(143, 45, 37, 0.22);
}

.ticket-row button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.status-message {
    min-height: 24px;
    margin: 14px 0 0;
    color: var(--muted);
}

.wheel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
    margin-top: 28px;
}

.wheel-shell {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 560px;
    padding: 20px;
}

.pointer {
    position: absolute;
    top: 28px;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -18px;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 54px solid var(--accent-dark);
    z-index: 2;
    filter: drop-shadow(0 8px 12px rgba(36, 37, 41, 0.18));
}

#wheel {
    width: min(100%, 520px);
    height: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.82), 0 28px 50px rgba(36, 37, 41, 0.16);
}

.legend-panel {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
}

.legend-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.legend-panel li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(36, 37, 41, 0.08);
}

.legend-panel li:last-child {
    border-bottom: 0;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.legend-name {
    font-weight: 600;
}

.legend-type {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(17, 24, 39, 0.38);
}

.modal.hidden,
.key-box.hidden {
    display: none;
}

.modal-card {
    width: min(480px, 100%);
    padding: 28px;
    border-radius: 24px;
    background: #fff8f1;
    box-shadow: 0 26px 52px rgba(17, 24, 39, 0.28);
}

.modal-card h2 {
    margin: 0 0 12px;
    font-size: 32px;
}

.key-box {
    padding: 16px;
    border-radius: 16px;
    background: rgba(197, 74, 60, 0.08);
    border: 1px dashed rgba(197, 74, 60, 0.4);
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 960px) {
    .wheel-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100vw - 20px, 1200px);
        padding: 16px 0 28px;
    }

    .hero-card,
    .ticket-panel,
    .legend-panel,
    .modal-card {
        padding: 20px;
    }

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

    .wheel-shell {
        min-height: auto;
    }

    .pointer {
        top: 16px;
    }
}
