:root {
    --yellow: #f5c400;
    --yellow-dark: #c99800;
    --black: #080808;
    --ink: #151515;
    --muted: #696969;
    --surface: #ffffff;
    --line: #e7e3d5;
    --page: #f7f5ee;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

@font-face {
    font-family: "Siwa";
    src: url("../fonts/siwa.woff2") format("woff2"),
         url("../fonts/siwa.woff") format("woff");
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--page);
    font-family: "Siwa", Tahoma, Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.72;
}

.hero-overlay {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(16px, 3vw, 34px);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0.34) 72%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(180deg, rgba(245, 196, 0, 0.22), transparent 34%);
}

.topbar {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.logo {
    width: clamp(74px, 10vw, 112px);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.logo-event {
    box-shadow: 0 0 0 4px rgba(245, 196, 0, 0.24);
}

.hero-grid {
    width: min(1180px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: clamp(20px, 4vw, 54px);
    align-items: center;
}

.event-copy {
    color: #fff;
}

.eyebrow {
    width: fit-content;
    margin: 0 0 18px;
    color: var(--yellow);
    font-weight: 700;
    background: rgba(245, 196, 0, 0.12);
    border: 1px solid rgba(245, 196, 0, 0.36);
    border-radius: 999px;
    padding: 9px 14px;
}

h1,
h2 {
    margin: 0;
    line-height: 1.25;
}

.event-copy h1 {
    max-width: 780px;
    color: #fff;
    font-size: clamp(36px, 6vw, 74px);
    font-weight: 900;
}

.slogan {
    margin: 22px 0 30px;
    color: #f2f2f2;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
}

.slogan strong {
    color: var(--yellow);
}

.official-link {
    width: fit-content;
    min-height: 48px;
    margin: 0 0 24px;
    padding: 7px 14px 7px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

.official-link:hover {
    color: var(--yellow);
    border-color: rgba(245, 196, 0, 0.52);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 860px;
}

.meta-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    backdrop-filter: blur(14px);
}

.icon,
.form-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--yellow);
    color: var(--black);
}

.meta-item span:not(.icon) {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    margin-bottom: 3px;
}

.meta-item strong {
    display: block;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.form-panel {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: clamp(20px, 3vw, 30px);
}

.robot-mascot {
    width: clamp(86px, 12vw, 136px);
    height: clamp(86px, 12vw, 136px);
    object-fit: contain;
    position: fixed;
    right: clamp(10px, 2vw, 24px);
    bottom: 0;
    z-index: 20;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.34));
    pointer-events: none;
}

.robot-mascot[src$="robot.png"] {
    display: block;
}

.form-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.form-heading p {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.form-heading h2 {
    color: var(--black);
    font-size: 30px;
    font-weight: 900;
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
}

label span {
    font-weight: 700;
    color: var(--black);
}

.input-wrap {
    position: relative;
    display: block;
}

.input-wrap svg {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    color: #8a7a35;
    pointer-events: none;
}

input,
select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #ddd5b8;
    border-radius: 8px;
    padding: 11px 44px 11px 12px;
    color: var(--ink);
    background: #fffdf7;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--yellow-dark);
    box-shadow: 0 0 0 4px rgba(245, 196, 0, 0.22);
}

button {
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--black);
    color: var(--yellow);
    font-weight: 900;
    cursor: pointer;
    margin-top: 4px;
    transition: transform 160ms ease, background 160ms ease;
}

button:hover {
    background: #262626;
    transform: translateY(-1px);
}

.notice {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 700;
}

.notice p {
    margin: 0;
}

.notice p + p {
    margin-top: 6px;
}

.success {
    color: #4a3900;
    background: #fff4bf;
    border: 1px solid #ecd46d;
}

.error {
    color: #8c1f1d;
    background: #fde6e4;
    border: 1px solid #f3b8b3;
}

@media (max-width: 920px) {
    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.76) 45%, rgba(0, 0, 0, 0.9) 100%),
            linear-gradient(180deg, rgba(245, 196, 0, 0.22), transparent 28%);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 34px 0 10px;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-media img {
        object-position: 43% center;
    }

    .hero-overlay {
        padding: 14px;
    }

    .topbar {
        align-items: center;
    }

    .logo {
        width: 70px;
    }

    .event-copy h1 {
        font-size: 34px;
    }

    .slogan {
        margin-bottom: 20px;
    }

    .meta-item {
        padding: 12px;
    }

    .form-panel {
        padding: 18px;
    }

    .robot-mascot {
        width: 84px;
        height: 84px;
        right: 6px;
    }

    .form-heading h2 {
        font-size: 26px;
    }

    input,
    select {
        font-size: 16px;
    }
}
