:root {
    --orange: #f56300;
    --orange-light: #ff8533;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 1.2em;
}

body {
    font-family: 'Google Sans', 'Chiron Hei HK', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: #fff;
    margin: 0;
    scroll-behavior: smooth;
}

/* ── Navbar ── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

#navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.nav-logo {
    min-width: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
}

.nav-logo span {
    color: var(--orange);
}

.nav-logo img {
    /* Match the previous wordmark's width despite the taller artwork. */
    width: 6.94rem;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

#navbar .btn-orange {
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-orange {
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
}

.btn-orange:hover {
    background: var(--orange-light);
    transform: translateY(-1px);
}

.btn-orange-lg {
    font-size: 1.05rem;
    padding: 14px 40px;
}

/* ── Hero ── */
#hero {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 18%, rgba(245, 99, 0, 0.26) 0%, rgba(90, 34, 0, 0.42) 34%, rgba(20, 10, 0, 0.9) 62%, #000 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

.hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    text-align: center;
    z-index: 2;
}

.hero-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1em;
}

.hero-logos img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.hero-x {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    font-weight: 300;
}

.hero-title-wrap {
    margin: 0 0 2em;
}

.hero-logotype {
    width: clamp(16.2rem, 46.27vw, 34.7rem);
    max-width: calc(100vw - 2rem);
    height: auto;
    object-fit: contain;
    transform: translateY(1.5rem);
}

.hero-title {
    font-size: clamp(5rem, 13vw, 11rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0 0 20px;
}

.hero-title .white {
    color: #fff;
}

.hero-title .orange {
    background: linear-gradient(135deg, #f56300, #ffaa00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 400;
    margin-bottom: 36px;
    letter-spacing: 0.01em;
}

.hero-avatar {
    position: absolute;
    bottom: 0;
    z-index: 1;
    height: clamp(340px, 55vh, 620px);
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.16s linear, opacity 0.16s linear;
}

.hero-avatar.ian {
    left: 0;
    transform: translateX(-8%);
}

.hero-avatar.amy {
    right: 0;
    transform: translateX(8%);
}

/* ── Info Section ── */
#info {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    z-index: 10;
    width: 100%;
    padding: 6rem 0;
}

.info-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 72rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
}

.info-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.info-card {
    background: rgba(28, 28, 30, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 2rem;
    text-align: left;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.info-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(245, 99, 0, 0.1);
    border: 1px solid rgba(245, 99, 0, 0.2);
    border-radius: 14px;
    color: var(--orange);
    margin-bottom: 24px;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.5rem;
    letter-spacing: 0.025em;
}

.info-card p {
    margin: 0;
    line-height: 1.6;
}

.info-detail {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

.info-detail strong {
    color: #fff;
    font-weight: 600;
}

.info-time-highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-top: 6px;
}

.price {
    font-size: 1.4rem;
    color: var(--orange);
    font-weight: 800;
    display: block;
    margin-top: 6px;
}

.info-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 20px 0;
    border-radius: 1px;
}

.info-link {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.info-link:hover {
    color: var(--orange-light);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.info-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 6px;
    line-height: 1.5;
}

.agenda-timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.agenda-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.agenda-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    line-height: 1.4;
    flex-shrink: 0;
}

.agenda-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-weight: 500;
}

.agenda-desc small {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
    font-weight: 400;
}

/* ── About Section ── */
#about {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

#about .bg {
    position: absolute;
    inset: 0;
    background-image: url('./source/assets/AIcohol_intro.jpg');
    background-size: cover;
    background-position: center top;
    filter: brightness(0.7);

}

#about .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 50%);
}

.about-content {
    position: relative;
    display: flex;
    z-index: 2;
    width: 100%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: max(60px, 4.5rem) 8vw 50px;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    align-items: flex-end;
}

.about-content p {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.5;
    margin: 0 0 10px;
}

.about-text p {
    color: #fff;
    margin: 0 0 .5em;
    line-height: 1.8em;
}

.about-text .about-eyebrow {
    margin: 0 0 0.7rem;
    color: rgba(255, 245, 232, 0.9);
    font-size: clamp(0.76rem, 2vw, 0.9rem);
    line-height: 1.5;
    letter-spacing: 0.025em;
}

.about-text .about-headline {
    position: relative;
    isolation: isolate;
    margin: 0 0 1rem;
    color: #fff3de;
    font-weight: 700;
    line-height: 1.12;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.about-headline::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -2rem -1.5rem -1.5rem;
    background: radial-gradient(ellipse at center, rgba(17, 8, 2, 0.78) 0%, rgba(17, 8, 2, 0.5) 40%, rgba(17, 8, 2, 0) 73%);
    pointer-events: none;
}

.about-headline-name {
    display: block;
    color: #ffe8c2;
    font-size: clamp(1.2rem, 2.3vw, 1.55rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.about-headline-return {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0.35rem auto 0;
    padding-bottom: 0.4rem;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    line-height: 1.18;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.about-headline-return::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 0.18rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), #ffa45c);
}

.text-orange {
    color: var(--orange);
}

/* ── Register Section ── */
#register {
    background: #000;
    padding: 80px 24px 100px;
    display: flex;
    justify-content: center;
}

.reg-card {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 2.5rem;
    padding: 48px 40px;
    width: 100%;
    min-width: 0;
    max-width: 1000px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

/* Step indicator */
.step-track {
    display: flex;
    align-items: center;
    max-width: 400px;
    margin: 0 auto 40px;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.step-dot .circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
}

.step-dot.active .circle {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.step-dot.done .circle {
    border-color: #2563eb;
    color: #2563eb;
    background: transparent;
}

.step-dot span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.step-dot.active span {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.step-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 12px;
    margin-bottom: 22px;
}

/* Form layout */
.form-step-inner {
    max-width: 600px;
    margin: 0 auto;
}

.form-heading {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.form-subtext {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    margin: 0 0 28px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 16px;
}

.form-group-lg {
    margin-bottom: 28px;
}

.form-actions {
    display: flex;
    gap: 12px;
}

.form-actions-mt {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.form-confirm {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.form-confirm input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    margin-top: 2px;
    transition: border-color 0.2s, background 0.2s;
}

.form-confirm input[type="checkbox"]:checked {
    background: #2563eb;
    border-color: #2563eb;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.form-confirm span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

/* Form inputs */
.field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 8px;
}

.field-help {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    line-height: 1.6;
}

.ranking-questions {
    margin-top: 24px;
}

.ranking-questions .field-help-note {
    display: block;
    margin-top: 2px;
    font-size: 0.7rem;
    line-height: 1.5;
}

.ranking-questions .field-textarea {
    min-height: 150px;
    resize: vertical;
}

.field-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.field-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.field-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.field-input--center {
    text-align: center;
}

select.field-input {
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b3b3b3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    color-scheme: dark;
}

.field-textarea {
    resize: none;
}

#pastBackground {
    min-height: 130px;
    resize: vertical;
}

.field-error {
    margin: 6px 0 0;
    font-size: 0.75rem;
    color: #f87171;
}

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

.detail-extra {
    margin-top: 16px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 16px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn-mt {
    margin-top: 8px;
}

.btn-flex-1 {
    flex: 1;
}

.btn-flex-2 {
    flex: 2;
}

/* Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(99, 179, 237, 0.3);
    border-top-color: #63b3ed;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

/* ── Step 3: AI Sommelier ── */
.sommelier-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sommelier-avatar {
    width: 84px;
    object-fit: contain;
    flex-shrink: 0;
}

.sommelier-name {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
}

.sommelier-subtitle {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.recom-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}

.recom-loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
}

.recom-reason {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.8;
    margin: 0 0 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.recom-error {
    color: #fbbf24;
    font-size: 0.85rem;
    padding: 8px 0;
}

.recom-hint {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    margin: 12px 0 0;
}

/* ── Ranking ── */
.ranking-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 16px 18px;
    border-radius: 14px;
    cursor: move;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    -webkit-user-select: none;
    user-select: none;
}

.rank-item:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.rank-item-top {
    background: rgba(37, 99, 235, 0.10);
    border-color: rgba(37, 99, 235, 0.30);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.08);
}

.rank-item-top:hover {
    border-color: rgba(37, 99, 235, 0.50);
}

.rank-badge {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rank-badge-top {
    color: #fff;
    background: rgba(37, 99, 235, 0.55);
    border-color: rgba(37, 99, 235, 0.6);
}

.rank-item-grip {
    flex-shrink: 0;
}

.rank-item.sortable-chosen {
    border-color: rgba(37, 99, 235, 0.6);
    background: rgba(37, 99, 235, 0.15);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.2);
    transform: scale(1.02);
}

.rank-item.sortable-drag {
    opacity: 0.9;
}

.ranking-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 6px 0;
}

.rank-item-content {
    flex: 1;
    min-width: 0;
}

.rank-item-title {
    font-weight: 700;
    font-size: 0.88rem;
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

.rank-item-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Step 3 two-col layout */
.step3-grid {
    display: grid;
    /* Let content wrap within each track instead of setting its minimum width. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.step3-grid > * {
    min-width: 0;
}

@media (max-width: 980px) {
    .step3-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ── Success Screen ── */
.success-screen {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-heading {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 12px;
}

.success-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.success-icon.closed-icon {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
}

/* ── Result Message ── */
.result-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

.result-message-error {
    border: 1px solid rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

/* ── Notice Section ── */
#notice {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 24px 48px;
    max-width: 800px;
    margin: 0 auto;
}

.notice-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--orange);
    margin: 0 0 24px;
    text-align: center;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}

.notice-list li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.notice-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

.notice-list li strong {
    color: rgba(255, 255, 255, 0.95);
}

.notice-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.notice-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.notice-links a:hover {
    color: var(--orange);
}

.notice-links a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

.notice-links a svg.globe {
    fill: none;
    stroke: currentColor;
}

/* ── Footer ── */
footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 24px;
    text-align: center;
}

.footer-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 980px) {
    .info-cards {
        grid-template-columns: 1fr;
    }

    .hero-avatar.ian {
        height: 260px;
        transform: translateX(-15%);
    }

    .hero-avatar.amy {
        height: 260px;
        transform: translateX(15%);
    }

    #navbar {
        padding: 14px 20px;
    }

    .reg-card {
        padding: 32px;
        border-radius: 1.5rem;
    }
}

select.field-input option {
    background: #1c1c1e;
}

/* ── Utility ── */
.hidden {
    display: none;
}

/* Step transition */
.form-step {
    animation: stepFadeIn 0.4s ease-out;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* AI result reveal */
.recom-reveal {
    animation: recomReveal 0.5s ease-out;
}

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

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

/* ── About text ── */
.about-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.625;
    font-weight: 300;
}

.about-text>*+* {
    margin-top: 1.5rem;
}

.bold-white {
    font-weight: 700;
    color: #fff;
}

.bold-orange {
    font-weight: 700;
    color: var(--orange);
}

.bold-orange-lg {
    font-weight: 700;
    color: var(--orange);
    font-size: 1.5rem;
    margin: 0 0.25rem;
}

@media (min-width: 768px) {
    .about-text {
        font-size: 1.25rem;
    }
}

/* ── Info section header ── */
.info-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.info-section-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.025em;
    margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
    .info-section-title {
        font-size: 2.25rem;
    }
}

.info-section-divider {
    width: 4rem;
    height: 4px;
    background: var(--orange);
    margin: 0 auto;
    border-radius: 9999px;
    opacity: 0.8;
}

/* ── Info card internals ── */
.info-card-price {
    justify-content: space-between;
    height: 100%;
}

.card-flex-col-6 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-flex-col-4 {
    display: flex;
    flex-direction: column;
}

.card-flex-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.card-flex-1 {
    flex: 1;
}

.card-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.card-icon-sm {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: rgba(245, 99, 0, 0.7);
    margin-top: 2px;
}

.card-icon-arrow {
    width: 1rem;
    height: 1rem;
    margin-left: -0.25rem;
    color: var(--orange);
    opacity: 0;
    transition: opacity 0.2s;
}

.card-date {
    color: rgb(255, 255, 255);
    font-weight: 500;
    letter-spacing: 0.025em;
    margin: 0;
}

.card-time {
    color: #fb923c;
    font-weight: 700;
    margin: 2px 0 0;
    letter-spacing: 0.05em;
}

.card-hr {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.25rem 0;
}

.card-location-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.card-location-link:hover {
    color: #fb923c;
}

.card-location-link:hover .card-icon-arrow {
    opacity: 1;
}

.card-location-sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.25rem 0 0;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

@media (max-width: 640px) {
    .price-row {
        flex-direction: column;
    }
}

.price-row-highlight {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
}

.price-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.price-value-main {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fb923c;
}

.price-value-sub {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 1024px) {
    .price-value-main {
        font-size: 1.5rem;
    }

    .price-value-sub {
        font-size: 1.25rem;
    }
}

.card-note-box {
    margin: 1rem 0;
    border-radius: 0.75rem;
}

.card-note-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #CCC;
    line-height: 1.625;
}

.card-note-inner p {
    margin: 0;
}

/* ── Agenda Cards ── */
.agenda {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.agenda-card {
    display: flex;
    align-items: center;
    gap: 1em;
    transition: background 0.2s, border-color 0.2s;
}

.agenda-time {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--orange);
    font-variant-numeric: tabular-nums;
    min-width: 3rem;
    text-align: center;
}

.agenda-divider {
    width: 2px;
    align-self: stretch;
    border-radius: 1px;
    background: linear-gradient(180deg, var(--orange), rgba(245, 99, 0, 0.2));
    flex-shrink: 0;
}

.agenda-body {
    flex: 1;
    min-width: 0;
}

.agenda-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.agenda-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0.2rem 0 0;
}

/* ── Previous Event Feedback ── */
.feedback-section {
    padding: 5rem 1.5rem 6rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(245, 99, 0, 0.08), transparent 60%), #000;
    animation: recomReveal 0.5s ease-out;
}

.feedback-wrapper {
    max-width: 72rem;
    margin: 0 auto;
}

.feedback-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.feedback-header h2 {
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.025em;
}

.feedback-divider {
    width: 4rem;
    height: 4px;
    margin: 0 auto;
    border-radius: 9999px;
    background: var(--orange);
    opacity: 0.8;
}

.feedback-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 38rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.feedback-stat {
    position: relative;
    margin: 0;
}

.feedback-stat strong {
    display: block;
    color: var(--orange-light);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    letter-spacing: -0.04em;
    transform: scale(var(--feedback-count-scale, 1));
    transform-origin: center;
}

.feedback-stat > span:not(.feedback-celebration) {
    display: block;
    margin-top: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    font-weight: 600;
    line-height: 1.5;
}

.feedback-stat strong.is-counting {
    will-change: transform;
}

.feedback-stat strong.is-celebrating {
    animation: feedbackStatCelebrate 0.65s ease-out both;
}

.feedback-celebration {
    position: absolute;
    top: clamp(1.4rem, 3.45vw, 2.3rem);
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.feedback-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 10px;
    border-radius: 2px;
    background: var(--orange-light);
    opacity: 0;
    animation: feedbackConfetti 1.1s ease-out both;
}

.feedback-confetti:nth-child(3n) {
    background: #ffd166;
    border-radius: 50%;
    width: 7px;
    height: 7px;
}

.feedback-confetti:nth-child(3n + 1) {
    background: #fff2d8;
}

@keyframes feedbackStatCelebrate {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 0 transparent;
    }

    18% {
        transform: scale(1.12);
        text-shadow: 0 0 24px rgba(255, 133, 51, 0.7);
    }

    60% {
        transform: scale(0.98);
        text-shadow: 0 0 12px rgba(255, 133, 51, 0.35);
    }
}

@keyframes feedbackConfetti {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.35);
    }

    40% {
        opacity: 1;
        transform: translate(calc(-50% + var(--burst-x) * 0.7), calc(-50% + var(--burst-y))) rotate(calc(var(--burst-spin) * 0.6));
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y) + 2rem)) rotate(var(--burst-spin));
    }
}

@media (prefers-reduced-motion: reduce) {
    .feedback-stat strong,
    .feedback-stat strong.is-celebrating {
        transform: none;
        animation: none;
    }

    .feedback-celebration {
        display: none;
    }
}

.feedback-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feedback-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
}

.feedback-quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.feedback-slide {
    display: flex;
    min-width: 0;
}

.feedback-quote {
    width: 100%;
    margin: 0;
    padding: 1.5rem;
    border: 1px solid rgba(245, 99, 0, 0.2);
    border-radius: 1.25rem;
    background: rgba(28, 28, 30, 0.88);
}

.feedback-quote-mark {
    display: block;
    height: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--orange);
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 1;
}

.feedback-quote p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.feedback-carousel.is-enhanced .feedback-marquee-viewport {
    overflow: hidden;
}

.feedback-carousel.is-enhanced .feedback-marquee-track {
    position: relative;
    display: flex;
    width: max-content;
    gap: 1.25rem;
    animation: feedbackMarquee var(--feedback-marquee-duration, 80s) linear infinite;
    animation-play-state: paused;
    will-change: transform;
}

.feedback-carousel.is-enhanced .feedback-quotes {
    display: flex;
    flex: none;
    width: max-content;
    min-width: var(--feedback-marquee-min-width, 0px);
    gap: 1.25rem;
}

.feedback-carousel.is-enhanced .feedback-slide {
    flex: 1 0 clamp(18rem, 30vw, 22rem);
    width: clamp(18rem, 30vw, 22rem);
}

.feedback-carousel.is-enhanced .feedback-quote {
    min-height: 13rem;
}

@keyframes feedbackMarquee {
    to {
        transform: translateX(calc(-1 * var(--feedback-marquee-distance, 0px)));
    }
}

.feedback-carousel:focus-visible {
    outline: 2px solid var(--orange-light);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .feedback-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feedback-quotes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .feedback-section {
        padding: 3.5rem 1.25rem 4rem;
    }

    .feedback-gallery {
        gap: 0.65rem;
    }

    .feedback-quote {
        padding: 1.25rem;
    }

    .feedback-carousel.is-enhanced .feedback-slide {
        flex-basis: 78vw;
        width: 78vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feedback-section {
        animation: none;
    }

    .feedback-carousel.is-enhanced .feedback-marquee-viewport {
        overflow: visible;
    }

    .feedback-carousel.is-enhanced .feedback-marquee-track {
        display: block;
        width: auto;
        animation: none;
        transform: none;
    }

    .feedback-carousel.is-enhanced .feedback-quotes {
        display: grid;
        width: auto;
        min-width: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feedback-carousel.is-enhanced .feedback-slide {
        width: auto;
    }

    .feedback-copy {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
    .feedback-carousel.is-enhanced .feedback-quotes {
        grid-template-columns: 1fr;
    }
}

#topics {
    background: #000;
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 10;
}

.topics-wrapper {
    max-width: 72rem;
    margin: 0 auto;
}

.topics-header {
    text-align: center;
    margin-bottom: 3rem;
}

.topics-header h2 {
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.025em;
    margin: 0 0 0.75rem;
}

.topics-header-divider {
    width: 4rem;
    height: 4px;
    background: var(--orange);
    margin: 0 auto;
    border-radius: 9999px;
    opacity: 0.8;
}

.topics-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.topics-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}

.topic-category-image {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.topics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.topic-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(28, 28, 30, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.topic-card > :not(.topic-number) {
    position: relative;
    z-index: 1;
}

.topic-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.topic-photo {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(245, 99, 0, 0.4);
    flex-shrink: 0;
}

.topic-card[data-table="A"] .topic-photo,
.topic-card[data-table="D"] .topic-photo {
    object-position: 50% 20%;
}

.topic-card[data-table="H"] .topic-photo {
    object-position: 50% 40%;
}

.topic-card[data-table="E"] .topic-photo {
    object-position: 50% 30%;
}

.topic-card[data-table="J"] .topic-photo {
    object-position: 50% 15%;
}

.topic-avatars {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    isolation: isolate;
}

.topic-avatar {
    position: relative;
    z-index: 0;
    display: block;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(245, 99, 0, 0.4);
    border-radius: 50%;
    background: #1c1c1e;
}

.topic-avatar + .topic-avatar {
    margin-left: -20px;
}

.topic-avatar .topic-photo {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    transform: scale(var(--portrait-zoom, 1));
    transform-origin: var(--portrait-focus, 50% 50%);
}

.topic-avatar--yongwen {
    --portrait-zoom: 1.65;
    --portrait-focus: 50% 25%;
}

.topic-avatar--lihan {
    --portrait-zoom: 1.3;
    --portrait-focus: 50% 25%;
}

.topic-avatar--raymin {
    --portrait-zoom: 1.5;
    --portrait-focus: 50% 50%;
}

.topic-title-area {
    flex: 1;
    min-width: 0;
}

.topic-table-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.4rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.topic-category-icon {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: normal;
}

.topic-category-icon .topic-category-image {
    width: 18px;
    height: 18px;
}

.topic-number {
    position: absolute;
    top: 0.05em;
    right: 0.15em;
    z-index: 0;
    margin: 0;
    color: transparent;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(245, 99, 0, 0.22);
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.topic-title {
    margin: 0 0 0.35rem;
    color: var(--orange-light);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.topic-speaker {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.topic-pending {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.15rem 0.5rem;
    color: #ffe8c2;
    background: rgba(245, 99, 0, 0.1);
    border: 1px solid rgba(245, 99, 0, 0.3);
    border-radius: 6px;
    font-size: 0.7rem;
    line-height: 1.5;
}

.topic-focus {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.topic-exp {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topic-exp li {
    position: relative;
    padding-left: 1em;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.topic-exp li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--orange);
}

.topic-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.topic-links--people {
    align-items: flex-start;
    gap: 1rem 1.25rem;
}

.topic-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.topic-link-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.76rem;
    line-height: 1.5;
}

.topic-link-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    color: var(--orange-light);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
}

.topic-link:hover {
    color: #ffe8c2;
    background: transparent;
    border-color: transparent;
    text-decoration: none;
}

.topic-link:focus-visible {
    outline: 2px solid var(--orange-light);
    outline-offset: 3px;
}

.topic-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .topics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .topics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #topics {
        padding: 4rem 1.25rem;
    }

    .topic-card {
        padding: 1.25rem;
    }

    .topic-card-top {
        flex-wrap: wrap;
    }

    .topic-title-area {
        flex-basis: 100%;
    }
}
