/* ==========================================================================
   UKIYO // OFFICIALLY, OFF THE CLOCK.
   Design System & Styling
   ========================================================================== */

/* --------------------------------------------------
   0. Brand Typography (@font-face)
   -------------------------------------------------- */
@font-face {
    font-family: 'Nohemi';
    src: url('../fonts/Nohemi-VF.ttf') format('truetype-variations'),
         url('../fonts/Nohemi-VF.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('../fonts/GeistMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('../fonts/GeistMono-Medium.ttf') format('truetype');
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('../fonts/GeistMono-Bold.ttf') format('truetype');
    font-weight: 700 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quirked';
    src: url('../fonts/Quirked.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------- */
:root {
    /* Brand Typography Hierarchy */
    --font-primary: 'Nohemi', 'Space Grotesk', -apple-system, sans-serif; /* Headings */
    --font-secondary: 'Geist Mono', 'Space Mono', monospace;              /* Paragraphs & Subtitles */
    --font-tertiary: 'Quirked', cursive, sans-serif;                      /* Focal Points (e.g. GET ON THE ROSTER) */

    --font-heading: var(--font-primary);
    --font-body: var(--font-secondary);
    --font-mono: var(--font-secondary);
    --font-quirked: var(--font-tertiary);

    /* Official Ukiyo Brand Colors */
    --color-periwinkle: #6d86c9;
    --color-milk: #fffcf4;
    --color-roast-black: #151515;
    --color-citrus: #cff174;

    /* Light Theme (Milk Base) */
    --bg-color: #fffcf4;
    --bg-grid: rgba(21, 21, 21, 0.045);
    --surface-color: #ffffff;
    --surface-card: rgba(255, 255, 255, 0.94);
    --surface-elevated: #f7f3e8;
    --text-primary: #151515;
    --text-secondary: #484848;
    --text-muted: #737373;
    --border-color: #151515;
    --border-subtle: rgba(21, 21, 21, 0.14);
    
    /* Brand Accents */
    --accent: #cff174;          /* Citrus Spark */
    --accent-hover: #bde858;
    --accent-glow: rgba(207, 241, 116, 0.4);
    --accent-contrast: #151515; /* Roast Black text on Citrus Spark */
    --accent-secondary: #6d86c9; /* Periwinkle */
    --highlight: #6d86c9;

    /* Shadows & Effects */
    --card-shadow: 8px 8px 0px #151515;
    --card-shadow-hover: 12px 12px 0px #6d86c9;
    --btn-shadow: 4px 4px 0px #151515;
    --btn-shadow-active: 0px 0px 0px #151515;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Overrides (Roast Black Base) */
body.theme-dark {
    --bg-color: #151515;
    --bg-grid: rgba(255, 252, 244, 0.04);
    --surface-color: #1c1c1f;
    --surface-card: rgba(28, 28, 31, 0.94);
    --surface-elevated: #26262b;
    --text-primary: #fffcf4;
    --text-secondary: #c5c2ba;
    --text-muted: #8e8b84;
    --border-color: #fffcf4;
    --border-subtle: rgba(255, 252, 244, 0.16);
    
    --accent: #cff174;
    --accent-hover: #ddf78e;
    --accent-glow: rgba(207, 241, 116, 0.45);
    --accent-contrast: #151515;
    --accent-secondary: #6d86c9;

    --card-shadow: 8px 8px 0px #6d86c9;
    --card-shadow-hover: 12px 12px 0px #cff174;
    --btn-shadow: 4px 4px 0px #6d86c9;
}

.brand-logo-img {
    height: 34px;
    width: auto;
    display: block;
    user-select: none;
    transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.03);
}

body.theme-light .brand-logo-img.logo-theme-light {
    display: block;
}
body.theme-light .brand-logo-img.logo-theme-dark {
    display: none;
}

body.theme-dark .brand-logo-img.logo-theme-light {
    display: none;
}
body.theme-dark .brand-logo-img.logo-theme-dark {
    display: block;
}

/* Dark mode image invert for black artwork */
body.theme-dark .text-logo-img,
body.theme-dark .mascot-img {
    filter: invert(1) brightness(1.1);
}

/* --------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

img, picture, svg {
    max-width: 100%;
    height: auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.font-quirked {
    font-family: var(--font-quirked);
    letter-spacing: 0.05em;
}

/* --------------------------------------------------
   3. Ambient Background Textures
   -------------------------------------------------- */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
    pointer-events: none;
    z-index: 0;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* --------------------------------------------------
   4. Ticker Marquee Bar
   -------------------------------------------------- */
.ticker-wrap {
    width: 100%;
    background: var(--text-primary);
    color: var(--bg-color);
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1.5px solid var(--border-color);
    z-index: 10;
    position: relative;
    user-select: none;
}

.ticker-content {
    display: inline-flex;
    gap: 36px;
    animation: marquee 26s linear infinite;
}

.ticker-wrap:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    font-family: var(--font-secondary) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ticker-badge {
    background: var(--color-citrus);
    color: var(--color-roast-black);
    padding: 2px 7px;
    border-radius: 2px;
    font-family: var(--font-secondary) !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --------------------------------------------------
   5. Site Header
   -------------------------------------------------- */
.site-header {
    position: relative;
    z-index: 10;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo-jp {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.45;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--color-periwinkle);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
    animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.time-label {
    color: var(--text-muted);
    font-size: 10px;
}

.time-digits {
    font-weight: 700;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    border-color: var(--border-color);
    transform: translateY(-1px);
}

.btn-icon.playing {
    border-color: var(--color-citrus);
    color: var(--color-citrus);
    box-shadow: 0 0 10px rgba(207, 241, 116, 0.35);
    animation: musicPulse 2.4s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(207, 241, 116, 0.25);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 14px rgba(207, 241, 116, 0.55);
    }
}

/* --------------------------------------------------
   6. Main Content Stage
   -------------------------------------------------- */
.main-stage {
    position: relative;
    z-index: 5;
    flex: 1;
    padding-top: 48px;
    padding-bottom: 72px;
}

.hero-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
}

.brand-seal-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    position: relative;
    user-select: none;
    cursor: pointer;
}

.seal-spin-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: rotateSeal 24s linear infinite;
    transform-origin: center center;
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.brand-seal-badge:hover .seal-spin-img {
    animation-play-state: paused;
    transform: scale(1.12);
}

@keyframes rotateSeal {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.meta-tag {
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.meta-tag-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    box-shadow: 2px 2px 0px var(--border-color);
}

.pulse-ring {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-citrus);
    position: relative;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--color-citrus);
    animation: ringPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ringPing {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* --------------------------------------------------
   7. Artwork Stage & Interactive Mascot
   -------------------------------------------------- */
.artwork-stage {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 36px;
    padding: 40px 0 32px 0;
    position: relative;
}

.headline-container {
    max-width: 680px;
}

.hero-headline {
    font-family: var(--font-quirked);
    font-size: clamp(34px, 6.2vw, 66px);
    line-height: 0.96;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
}

.text-logo-img {
    max-width: 100%;
    height: auto;
    display: block;
    user-select: none;
    transition: filter var(--transition-smooth);
}

.sub-headline {
    margin-top: 20px;
    font-family: var(--font-secondary);
    font-size: clamp(12.5px, 1.3vw, 15px);
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.sub-headline .sub-line-1 {
    display: block;
    white-space: nowrap;
}

.sub-headline .sub-line-2 {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
}

.font-primary { font-family: var(--font-primary) !important; }
.font-secondary { font-family: var(--font-secondary) !important; }
.font-tertiary { font-family: var(--font-tertiary) !important; }

.mascot-wrapper {
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: transform var(--transition-fast);
}

.mascot-img {
    width: 320px;
    max-width: 100%;
    height: auto;
    display: block;
    animation: runnerBob 2.2s ease-in-out infinite alternate;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-wrapper:hover .mascot-img {
    transform: scale(1.05) rotate(-3deg);
}

@keyframes runnerBob {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}



/* --------------------------------------------------
   8. Countdown Module
   -------------------------------------------------- */
.countdown-module {
    margin: 40px auto;
    background: var(--surface-card);
    border: 2px solid var(--border-color);
    box-shadow: 10px 10px 0px var(--color-periwinkle);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    max-width: 820px;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.countdown-module:hover {
    transform: none;
    box-shadow: 10px 10px 0px var(--color-periwinkle);
}

.countdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.cd-title {
    color: var(--text-primary);
}

.cd-status {
    color: var(--color-periwinkle);
    font-weight: 800;
}

.countdown-boxes {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
}

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.cd-num {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.cd-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-top: 8px;
}

.cd-sep {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 18px;
    opacity: 0.5;
}

/* --------------------------------------------------
   9. Waitlist Card Wrapper (Interactive Flip)
   -------------------------------------------------- */
.waitlist-card-wrapper {
    position: relative;
    max-width: 820px;
    margin: 40px auto 60px auto;
}

.card-face {
    background: var(--surface-card);
    border: 2px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card-corner-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--text-primary);
    color: var(--bg-color);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.card-heading {
    font-family: var(--font-tertiary);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.card-subtext {
    font-family: var(--font-secondary);
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 32px;
    line-height: 1.55;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.email-input {
    width: 100%;
    height: 56px;
    padding: 0 20px 0 48px;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

.email-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.email-input:focus + .input-icon {
    color: var(--accent);
}

.btn-primary {
    height: 56px;
    padding: 0 32px;
    background: var(--accent);
    color: var(--accent-contrast, #151515);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--btn-shadow);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--border-color);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--border-color);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--btn-shadow);
}

.btn-loader {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.form-feedback {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-feedback.error {
    display: block;
    color: #ef4444;
}

.form-feedback.success {
    display: block;
    color: #10b981;
}

/* Benefit Pills */
.benefit-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-subtle);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pill svg {
    color: var(--color-periwinkle);
}

/* --------------------------------------------------
   10. VIP Ticket State (Post-Signup)
   -------------------------------------------------- */
.card-ticket {
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--surface-elevated) 100%);
    border: 2px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-lg);
    position: relative;
    animation: cardAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardAppear {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ticket-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: skewX(-20deg);
    animation: shimmerPass 4s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shimmerPass {
    0% { left: -100%; }
    40%, 100% { left: 100%; }
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--border-color);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
}

.ticket-brand {
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ticket-seal-stamp {
    width: 24px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(109, 134, 201, 0.3));
}

.ticket-type {
    background: var(--color-periwinkle);
    color: #ffffff;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 2px;
}

.ticket-body {
    text-align: center;
    padding: 32px 0 24px 0;
}

.ticket-spot-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.ticket-spot-number {
    font-family: var(--font-heading);
    font-size: 68px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 8px 0;
}

.ticket-email {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
}

.ticket-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.perk-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.perk-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}

.perk-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.ticket-referral {
    margin: 28px 0 20px 0;
}

.referral-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.referral-box {
    display: flex;
    gap: 8px;
}

.referral-box input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    background: var(--surface-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

.btn-secondary {
    height: 46px;
    padding: 0 20px;
    background: var(--text-primary);
    color: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--accent);
    color: #ffffff;
}

.ticket-barcode {
    text-align: center;
    padding-top: 16px;
    border-top: 1.5px dashed var(--border-subtle);
    margin-top: 20px;
}

.barcode-svg {
    max-width: 280px;
    margin: 0 auto;
    color: var(--text-primary);
}

.barcode-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 6px;
}

.btn-text-only {
    display: block;
    margin: 24px auto 0 auto;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.btn-text-only:hover {
    color: var(--text-primary);
}

/* --------------------------------------------------
   12. Confetti Canvas
   -------------------------------------------------- */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
}

/* --------------------------------------------------
   13. Site Footer
   -------------------------------------------------- */
.site-footer {
    position: relative;
    z-index: 10;
    border-top: 1.5px solid var(--border-color);
    background: var(--surface-card);
    padding: 28px 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
}

.footer-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    height: 22px;
    width: auto;
    opacity: 0.85;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

body.theme-light .footer-logo-img.logo-theme-light {
    display: block;
}
body.theme-light .footer-logo-img.logo-theme-dark {
    display: none;
}

body.theme-dark .footer-logo-img.logo-theme-light {
    display: none;
}
body.theme-dark .footer-logo-img.logo-theme-dark {
    display: block;
}
body.theme-dark .seal-spin-img,
body.theme-dark .ticket-seal-stamp {
    filter: invert(1);
}

.footer-copy {
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* --------------------------------------------------
   14. Comprehensive Mobile Responsive System
   -------------------------------------------------- */

/* Tablet & Smaller Laptops (<= 900px) */
@media (max-width: 900px) {
    .artwork-stage {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
        padding: 24px 0;
    }

    .headline-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .sub-headline {
        margin: 16px auto 0 auto;
        font-size: 15px;
    }

    .sub-headline .sub-line-1 {
        white-space: normal;
    }

    .text-logo-img {
        margin: 0 auto;
        max-width: 440px;
    }

    .mascot-wrapper {
        margin: 0 auto;
    }

    .mascot-img {
        max-width: 280px;
        height: auto;
    }

    .countdown-boxes {
        gap: 8px;
    }

    .cd-num {
        font-size: 44px;
    }
}

/* Standard Mobile Phones (<= 640px) */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    /* Header adjustments */
    .site-header {
        padding: 12px 0;
    }

    .brand-logo-img {
        height: 28px;
    }

    .status-indicator {
        padding: 3px 8px;
        font-size: 10px;
        letter-spacing: 0.02em;
    }

    .time-widget {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .btn-icon {
        width: 35px;
        height: 35px;
    }

    /* Ticker banner */
    .ticker-wrap {
        font-size: 10px;
        padding: 6px 0;
    }

    .ticker-content {
        gap: 24px;
    }

    /* Hero stage */
    .main-stage {
        padding-top: 20px;
        padding-bottom: 48px;
    }

    .hero-top-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        margin-bottom: 16px;
        gap: 10px;
    }

    .meta-tag {
        font-size: 11px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-seal-badge {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .artwork-stage {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 0 24px 0;
        gap: 16px;
        width: 100%;
    }

    .headline-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .text-logo-img {
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .sub-headline {
        font-size: 15px;
        line-height: 1.45;
        margin-top: 12px;
        max-width: 440px;
        text-align: center;
    }

    .mascot-wrapper {
        margin: 8px auto 0 auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .mascot-img {
        max-width: 220px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    /* Countdown timer */
    .countdown-module {
        padding: 16px 12px;
        margin: 24px auto 32px auto;
        border-radius: var(--radius-md);
        box-shadow: 6px 6px 0px var(--color-periwinkle);
        width: 100%;
        box-sizing: border-box;
    }

    .countdown-header {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
        margin-bottom: 12px;
    }

    .cd-title {
        font-size: 11px;
    }

    .cd-status {
        font-size: 9px;
    }

    .countdown-boxes {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        width: 100%;
        gap: 2px;
    }

    .cd-unit {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cd-num {
        font-size: clamp(24px, 7vw, 36px);
        line-height: 1.1;
    }

    .cd-label {
        font-size: clamp(8px, 2.2vw, 10px);
        margin-top: 4px;
        letter-spacing: 0.05em;
    }

    .cd-sep {
        font-size: clamp(16px, 4.5vw, 22px);
        margin-bottom: 6px;
        flex-shrink: 0;
        opacity: 0.45;
    }

    /* Waitlist Card */
    .waitlist-card-wrapper {
        margin: 24px auto 40px auto;
        width: 100%;
        box-sizing: border-box;
    }

    .card-face {
        padding: 24px 18px;
        border-radius: var(--radius-md);
        box-shadow: 4px 4px 0px var(--border-color);
    }

    .card-corner-badge {
        position: static;
        display: inline-block;
        margin-bottom: 14px;
        font-size: 9px;
        padding: 3px 8px;
    }

    .card-heading {
        font-size: 22px;
        line-height: 1.2;
    }

    .card-subtext {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .input-wrapper {
        width: 100%;
    }

    .email-input {
        height: 52px;
        font-size: 16px; /* 16px prevents iOS Safari auto-zoom on input focus */
        padding-left: 44px;
        padding-right: 14px;
    }

    .input-icon {
        left: 14px;
    }

    .btn-primary {
        width: 100%;
        height: 52px;
        font-size: 14px;
        justify-content: center;
        box-shadow: 3px 3px 0px var(--border-color);
    }

    .benefit-pills {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding-top: 18px;
    }

    .pill {
        font-size: 12px;
    }

    /* VIP Ticket State on mobile */
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 14px;
    }

    .ticket-brand {
        font-size: 12px;
        gap: 8px;
    }

    .ticket-seal-stamp {
        width: 22px;
        height: 24px;
    }

    .ticket-type {
        font-size: 10px;
        padding: 2px 7px;
    }

    .ticket-body {
        padding: 20px 0 16px 0;
    }

    .ticket-spot-label {
        font-size: 11px;
    }

    .ticket-spot-number {
        font-size: clamp(42px, 12vw, 54px);
    }

    .ticket-email {
        font-size: 13px;
        word-break: break-all;
    }

    .ticket-perks {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        margin: 16px 0;
    }

    .referral-label {
        font-size: 10px;
        line-height: 1.4;
    }

    .referral-box {
        flex-direction: column;
        gap: 8px;
    }

    .referral-box input {
        height: 44px;
        font-size: 13px;
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
        height: 44px;
        justify-content: center;
    }

    .barcode-svg {
        max-width: 100%;
        height: 32px;
    }

    /* Footer */
    .site-footer {
        padding: 22px 0;
    }

    .footer-inner {
        gap: 10px;
    }

    .footer-logo-img {
        height: 18px;
    }

    .footer-copy {
        font-size: 11px;
        line-height: 1.4;
    }
}

/* Very Small Mobile Phones (<= 380px) */
@media (max-width: 380px) {
    .container {
        padding: 0 12px;
    }

    .brand-logo-img {
        height: 25px;
    }

    .status-indicator {
        font-size: 9px;
        padding: 2px 6px;
    }

    .meta-tag {
        font-size: 9.5px;
    }

    .brand-seal-badge {
        width: 44px;
        height: 44px;
    }

    .text-logo-img {
        max-width: 270px;
    }

    .mascot-img {
        max-width: 180px;
    }

    .countdown-boxes {
        gap: 2px;
    }

    .cd-unit {
        min-width: 42px;
    }

    .cd-num {
        font-size: 22px;
    }

    .cd-label {
        font-size: 8px;
    }

    .cd-sep {
        font-size: 16px;
    }

    .card-heading {
        font-size: 20px;
    }

    .card-face {
        padding: 20px 14px;
    }
}
