@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-regular.ttf") format("truetype");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url("../fonts/inter-bold.ttf") format("truetype");
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-bold.ttf") format("truetype");
}

[hidden] { display: none !important; }

.event-page {
    color-scheme: dark;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 10% 15%, rgba(124, 58, 237, .24), transparent 42rem),
        radial-gradient(ellipse at 95% 35%, rgba(6, 182, 212, .14), transparent 36rem),
        var(--bg);
}

.event-header, .event-shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.event-header {
    margin-top: 16px;
    min-height: 72px;
    padding: 16px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(7, 8, 13, .68);
    box-shadow: 0 18px 70px rgba(0, 0, 0, .24);
}

.event-brand { display: inline-flex; flex-shrink: 0; }
.event-brand img { display: block; width: 126px; height: auto; }
.brand-caption { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.privacy-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3); }
.event-shell { flex: 1; display: flex; align-items: center; padding-block: clamp(36px, 6vw, 80px); overflow: visible; }
.event-panel {
    width: 100%;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.025));
    box-shadow: var(--shadow);
}

.event-page h1 { font-size: clamp(2.5rem, 6.5vw, 5.7rem); line-height: 1.02; overflow-wrap: anywhere; }
.title-accent { color: var(--accent-3); }
.event-page .eyebrow { margin-bottom: 28px; }
.intro { margin: 28px 0 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }
#event-message { margin: 28px 0 18px; color: var(--muted); }
#event-form { max-width: 740px; padding-top: 12px; }
.event-page label { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 12px; }
.password-row { display: flex; gap: 12px; }
.event-page input, .event-page button { font: inherit; }
.event-page input { width: 100%; min-width: 0; flex: 1; border-radius: 18px; border: 1px solid var(--line); background: rgba(7,8,13,.5); color: var(--ink); padding: 16px 20px; }
.event-page input::placeholder { color: var(--muted); }
.event-page button { min-height: 52px; padding: 15px 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; background: var(--ink); color: var(--ink-dark); cursor: pointer; }
.event-page button span { margin-left: 16px; }
.event-page button:hover { background: var(--accent-3); }
.event-page button:disabled { opacity: .5; cursor: wait; }
.event-page :focus-visible { outline: 2px solid var(--accent-3); outline-offset: 5px; }
.hint, .delivery-note { font-size: .8125rem; color: var(--muted); line-height: 1.65; }
.event-page .secondary { background: rgba(255,255,255,.04); color: var(--ink); border-color: var(--line); font-size: .8125rem; min-height: 44px; padding: 10px 18px; }
.event-page .secondary:hover { background: var(--surface-strong); border-color: var(--accent-3); }
.event-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.event-top .eyebrow { margin: 0; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 760px; color: var(--muted); }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 40px 0 24px; }
.status-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); background: rgba(255,255,255,.045); }
.card-label { margin: 0 0 28px; color: var(--accent-3); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.status-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.04em; overflow-wrap: anywhere; }
.status-card .hint { margin-bottom: 0; }
.delivery-note { margin-bottom: 0; }
.error-code { color: var(--muted); }
.error-help { max-width: 600px; color: var(--muted); }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }

@media (max-width: 600px) {
    .event-header { padding: 14px 20px; min-height: 64px; }
    .event-brand img { width: 104px; }
    .brand-caption { font-size: .6875rem; }
    .event-panel { padding: 28px 22px; border-radius: 24px; }
    .event-page .eyebrow { font-size: .65rem; letter-spacing: .08em; }
    .password-row { flex-direction: column; }
    .status-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
    .event-top { align-items: flex-start; flex-wrap: wrap; }
    .error-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .event-page .button, .event-page .text-link::after { transition: none; }
}

#event-file-list { list-style:none; padding:0; }
#event-file-list li { display:flex; gap:1rem; justify-content:space-between; align-items:center; padding:1rem 0; border-bottom:1px solid #8884; }
#event-file-list span { overflow-wrap:anywhere; min-width:0; }
#event-file-list a { color:inherit; font-weight:600; flex-shrink:0; }
