/* ==========================================================================
   MIOBI — MAKE IT OR BREAK IT · Umbrella Labs — Open Decks
   Outrun/synthwave theme derived from the 2026 poster artwork:
   pink eclipse lightning, cyan grid floor, checkered race flags.
   ========================================================================== */

:root {
    --asphalt: #08080d;        /* page background */
    --carbon: #12121b;         /* panel background */
    --carbon-edge: #23233a;    /* panel borders */
    --pink: #ff2e88;           /* primary neon (poster lightning) */
    --cyan: #2ee6ff;           /* wayfinding: labels, links (grid floor) */
    --orange: #ff7a29;         /* rare accent (orange car) */
    --text: #edeff7;
    --text-dim: #a3a7bf;

    --font-display: 'Audiowide', 'Verdana', sans-serif;
    --font-body: 'Barlow', 'Arial', sans-serif;
    --font-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }

img { max-width: 100%; }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0;
    background-color: var(--asphalt);
    color: var(--text);
}

::selection { background: var(--pink); color: var(--asphalt); }

a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover { color: var(--pink); }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Sections ------------------------------------------------------------ */

section {
    margin: 0 auto;
    padding: 56px 20px;
    max-width: 960px;
}

section > p, .rules li, .contact-info { color: var(--text-dim); }
section strong { color: var(--text); }

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 28px;
    text-shadow: 0 0 28px rgba(255, 46, 136, 0.35);
}

/* Checkered-flag marker: every stage of the page starts at the flag */
h2::before {
    content: "";
    display: block;
    width: 70px;
    height: 10px;
    margin: 0 auto 16px;
    background-image: repeating-conic-gradient(var(--text) 0 90deg, transparent 0 180deg);
    background-size: 10px 10px;
    opacity: 0.9;
}

.section-sub {
    text-align: center;
    margin: -16px 0 28px;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
    position: relative;
    background: var(--asphalt) url('miobi_2026.jpg') no-repeat top center / 100% auto;
    /* full-screen on landscape viewports, but never taller than the poster
       (16:9) plus a landing zone — avoids a black gap on tall windows */
    min-height: min(100svh, 66vw);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 96px 20px 56px;
    max-width: none;
}

/* scrim: keep the poster's subject clear, land the content in the dark zone */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 8, 13, 0.25) 0%, rgba(8, 8, 13, 0) 20%),
        linear-gradient(180deg, rgba(8, 8, 13, 0) 55%, rgba(8, 8, 13, 0.45) 80%, var(--asphalt) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    animation: hero-rise 0.9s ease-out both;
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(46, 230, 255, 0.6);
    margin: 0 0 18px;
    padding: 8px 20px 8px 24px;
    background: rgba(8, 8, 13, 0.8);
    border: 1px solid var(--carbon-edge);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.hero-logo img {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.7));
}

.hero-tagline {
    font-family: var(--font-label);
    font-weight: 500;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-shadow: 0 0 14px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 34px rgba(0, 0, 0, 0.8);
    margin: 22px 0 0;
}

.hero-ticket {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 12px 22px;
    background: rgba(8, 8, 13, 0.8);
    border: 1px solid var(--carbon-edge);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-ticket .ticket-time { color: var(--pink); }

.ticket-divider {
    width: 1px;
    height: 20px;
    background: var(--carbon-edge);
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
    display: inline-block;
    margin-top: 26px;
    padding: 13px 28px;
    border: 1px solid var(--pink);
    border-radius: 8px;
    background: rgba(255, 46, 136, 0.08);
    box-shadow: 0 0 22px rgba(255, 46, 136, 0.25);
    color: var(--text);
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: var(--pink);
    color: var(--asphalt);
    box-shadow: 0 0 34px rgba(255, 46, 136, 0.55);
}

/* --- About ------------------------------------------------------------------ */

.about { text-align: center; }
.about p { max-width: 680px; margin: 0 auto; }

/* --- Rules: race briefing, numbered plates ---------------------------------- */

.rules ol {
    counter-reset: rule;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.rules li {
    counter-increment: rule;
    position: relative;
    padding: 14px 18px 14px 68px;
    background: var(--carbon);
    border: 1px solid var(--carbon-edge);
    border-radius: 10px;
    line-height: 1.6;
}

.rules li::before {
    content: counter(rule, decimal-leading-zero);
    position: absolute;
    left: 16px;
    top: 15px;
    width: 36px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 46, 136, 0.45);
    border-radius: 6px;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1rem;
    color: var(--pink);
}

.rules li strong { color: var(--cyan); font-weight: 600; }

.rules code {
    font-size: 0.95em;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(46, 230, 255, 0.12);
    color: var(--cyan);
}

/* --- Genres: class cards ------------------------------------------------------ */

.genre-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.genre-card {
    flex: 0 1 222px;
    min-width: 200px;
    padding: 22px 16px;
    text-align: center;
    background: var(--carbon);
    border: 1px solid var(--carbon-edge);
    border-radius: 10px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.genre-card:hover {
    border-color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(46, 230, 255, 0.18);
}

.genre-card h3 {
    margin: 0;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* difficulty meter: five segments, expert packages run in the redline */
.pkg-meter {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 12px 0 10px;
}

.pkg-meter .seg {
    width: 22px;
    height: 6px;
    border-radius: 2px;
    background: var(--carbon-edge);
}

.pkg-meter .seg.on {
    background: var(--pink);
    box-shadow: 0 0 8px rgba(255, 46, 136, 0.55);
}

.genre-card.expert .pkg-meter .seg.on {
    background: var(--orange);
    box-shadow: 0 0 8px rgba(255, 122, 41, 0.55);
}

.pkg-meta {
    margin: 0 0 10px;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.pkg-meta .pkg-level { color: var(--pink); }
.genre-card.expert .pkg-meta .pkg-level { color: var(--orange); }
.pkg-meta .pkg-bpm { color: var(--cyan); }

.pkg-style {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dim);
}

/* --- Schedule: day cards ------------------------------------------------------- */

.day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.day-card {
    display: grid;
    gap: 4px;
    padding: 22px;
    text-align: center;
    background: var(--carbon);
    border: 1px solid var(--carbon-edge);
    border-radius: 10px;
}

.day-label {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--cyan);
}

.day-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    text-transform: uppercase;
}

.day-date { color: var(--text-dim); }

/* --- Countdown: the starting line ---------------------------------------------- */

.countdown-strip {
    max-width: none;
    text-align: center;
    padding: 56px 0;
}

/* full-width banner: cyan glass, glowing frame lines top and bottom */
.countdown-panel {
    padding: 46px 20px 52px;
    background: rgba(46, 230, 255, 0.06);
    border-top: 1px solid rgba(46, 230, 255, 0.55);
    border-bottom: 1px solid rgba(46, 230, 255, 0.55);
    box-shadow:
        0 0 32px rgba(46, 230, 255, 0.22),
        inset 0 0 46px rgba(46, 230, 255, 0.05);
}

.countdown-label {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--cyan);
    margin: 0 0 26px;
}

.countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(18px, 4vw, 44px);
}

.count-block { display: grid; gap: 2px; min-width: 74px; }

.count-num {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 6vw, 3.6rem);
    color: var(--text);
    text-shadow: 0 0 30px rgba(255, 46, 136, 0.55);
    font-variant-numeric: tabular-nums;
}

.count-unit {
    font-family: var(--font-label);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

.count-live {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 4vw, 2rem);
    text-transform: uppercase;
    color: var(--pink);
    text-shadow: 0 0 30px rgba(255, 46, 136, 0.55);
    margin: 0;
}

/* --- Contact ---------------------------------------------------------------------- */

.contacts { text-align: center; }

.contact-info { font-size: 1.15rem; margin: 0; }

/* --- Footer ------------------------------------------------------------------------- */

footer {
    text-align: center;
    padding: 44px 20px 56px;
    color: var(--text-dim);
}

.footer-host { margin: 0; }
.footer-host strong { color: var(--text); }

footer .social-links {
    margin-top: 14px;
    font-family: var(--font-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

footer .social-links a { margin: 0 12px; text-decoration: none; }

/* --- Motion & small screens ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .hero-inner { animation: none; }
    .btn, .genre-card { transition: none; }
    .genre-card:hover { transform: none; }
}

@media (max-width: 560px) {
    section { padding: 40px 16px; }
    .hero { padding: 72px 16px 96px; }
    .hero-ticket { flex-direction: column; gap: 4px; border-radius: 16px; }
    .ticket-divider { display: none; }
    .rules li { padding-left: 60px; }
}
