:root {
    --bg: #080706;
    --bg-soft: #12100c;
    --panel: rgba(20, 16, 10, 0.92);
    --gold: #f4c96b;
    --gold-soft: #ffe3a1;
    --text: #fff8e8;
    --muted: #cdbd99;
    --danger: #ff7676;
    --success: #7dffb2;
    --border: rgba(244, 201, 107, 0.28);
    --shadow: rgba(244, 201, 107, 0.22);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 20% 10%, rgba(244, 201, 107, 0.18), transparent 28rem),
        radial-gradient(circle at 80% 0%, rgba(255, 227, 161, 0.08), transparent 24rem),
        linear-gradient(145deg, #040403, var(--bg));
}

.page-shell {
    width: min(760px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0;
}

.hero-card,
.panel {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44), 0 0 42px var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-card {
    padding: 30px;
    margin-bottom: 18px;
    overflow: hidden;
    position: relative;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -80px;
    top: -80px;
    border-radius: 999px;
    background: rgba(244, 201, 107, 0.18);
    filter: blur(4px);
}

.eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--gold-soft);
    background: rgba(244, 201, 107, 0.08);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

h2 {
    margin-bottom: 10px;
    color: var(--gold-soft);
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 54ch;
}

.status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.status span {
    color: var(--muted);
}

.status.is-open strong {
    color: var(--success);
}

.status.is-closed strong {
    color: var(--danger);
}

.panel {
    padding: 24px;
}

.upload-form {
    display: grid;
    gap: 16px;
}

.file-box {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 34px 18px;
    border: 1px dashed rgba(244, 201, 107, 0.5);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(244, 201, 107, 0.09), rgba(244, 201, 107, 0.03));
    cursor: pointer;
    text-align: center;
}

.file-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1a1205;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    font-size: 2.2rem;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(244, 201, 107, 0.28);
}

.file-title {
    font-size: 1.18rem;
    font-weight: 800;
}

.file-subtitle {
    color: var(--muted);
    font-size: 0.94rem;
}

.file-box input[type="file"] {
    width: 100%;
    max-width: 420px;
    color: var(--muted);
}

.submit-button {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 16px 18px;
    color: #1a1205;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(244, 201, 107, 0.2);
}

.submit-button:active {
    transform: translateY(1px);
}

.notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.notice p:last-child {
    margin-bottom: 0;
}

.notice.success {
    color: var(--success);
    background: rgba(125, 255, 178, 0.08);
}

.notice.error,
.error-panel {
    color: #ffe1e1;
    background: rgba(255, 118, 118, 0.08);
}

.muted-panel {
    color: var(--muted);
}

.rules {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.rules p:last-child {
    margin-bottom: 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 520px) {
    .page-shell {
        width: min(100% - 18px, 760px);
        padding: 16px 0;
    }

    .hero-card,
    .panel {
        border-radius: 22px;
    }

    .hero-card {
        padding: 22px;
    }

    .panel {
        padding: 18px;
    }
}
