:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff4de;
    background: #1b0303;
    color-scheme: dark;
    font-synthesis: none;
    --gold: #ffd77e;
    --gold-dim: #b67428;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    background:
        radial-gradient(ellipse at 48% 49%, #630d10 0%, transparent 54%),
        radial-gradient(ellipse at 5% 5%, #43080c 0%, transparent 37%),
        radial-gradient(ellipse at 96% 100%, #4b0908 0%, transparent 52%),
        #190303;
}

.panel {
    --corner: 16px;
    --frame-shape: polygon(var(--corner) 0, calc(100% - var(--corner)) 0, 100% var(--corner),
        100% calc(100% - var(--corner)), calc(100% - var(--corner)) 100%, var(--corner) 100%,
        0 calc(100% - var(--corner)), 0 var(--corner));
    position: relative;
    isolation: isolate;
    width: min(100%, 49rem);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 3.25rem);
    padding: clamp(1.4rem, 4vw, 2.4rem);
    filter: drop-shadow(0 14px 24px #0c0000bf);
}

.panel::before, .panel::after {
    content: "";
    position: absolute;
    clip-path: var(--frame-shape);
    pointer-events: none;
}

.panel::before {
    z-index: -2;
    inset: 0;
    background: linear-gradient(122deg, #b26520 0%, #ffe5a5 9%, #a8672a 30%, #ffefbb 49%,
        #ce8130 65%, #ffe6a5 87%, #a25b20 100%);
}

.panel::after {
    z-index: -1;
    inset: 3px;
    --corner: 14px;
    background:
        radial-gradient(ellipse at 48% 0%, #a3231f 0%, transparent 56%),
        linear-gradient(167deg, #962325 0%, #5a0b10 23%, #400608 68%, #310305 100%);
    box-shadow: inset 0 0 0 1px #b5693b;
}

.brand {
    display: block;
    width: clamp(7.5rem, 18vw, 10.5rem);
    height: auto;
    margin: -0.5rem 0 0.2rem -0.35rem;
}

h1 {
    margin: 0 0 0.45rem;
    color: #ffe2a1;
    font-size: clamp(1.35rem, 3.3vw, 1.95rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.16;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #9d4b0e, 0 3px 6px #280202;
}

.intro p { margin: 0; font-size: 1rem; line-height: 1.5; }
form { margin: 0; min-width: 0; }
button, input { font: inherit; }
button { cursor: pointer; }

.verification-button {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: clamp(0.625rem, 1.8vw, 1.25rem);
    padding: 0.8rem clamp(0.85rem, 2.8vw, 1.6rem);
    border-radius: 14px;
    border: 2px solid var(--gold);
    color: #ffebbe;
    background: linear-gradient(180deg, #681211, #330506);
    box-shadow: inset 0 0 0 1px #8f3a19, 0 0 14px #ffac362a;
    font-size: clamp(1rem, 2.8vw, 1.45rem);
    font-weight: 750;
    text-align: start;
}

.check-square {
    flex: 0 0 34px;
    height: 34px;
    border: 2px solid var(--gold);
    border-radius: 7px;
    background: #290404;
    box-shadow: inset 0 0 5px #f6b95644, 0 0 6px #ffb24e66;
}

.verification-button:hover { background: linear-gradient(180deg, #80201c, #4e0809); }
:focus-visible { outline: 3px solid #fff3b0; outline-offset: 4px; }
.challenge { display: grid; gap: 0.5rem; }
.challenge label { font-weight: 700; }
.challenge-media, .challenge-submit { display: flex; align-items: center; gap: 0.7rem; }
.challenge-media img { max-width: calc(100% - 65px); height: auto; border: 1px solid var(--gold-dim); border-radius: 6px; }
.challenge-media a { color: var(--gold); display: inline-grid; align-items: center; min-height: 44px; white-space: nowrap; }
.challenge audio { width: 100%; max-width: 20rem; height: 44px; }
.challenge input { min-width: 3rem; flex: 1; }
.challenge input, .challenge button { min-height: 44px; border-radius: 7px; padding: 0.4rem 0.75rem; }
.challenge input { color: #fff4de; background: #290404; border: 1px solid var(--gold-dim); letter-spacing: 0.12em; }
.challenge button { color: #421009; background: linear-gradient(#ffe9a0, #eeb331); border: 1px solid var(--gold); font-weight: 750; }
.error { color: #ffd1ae; font-size: 0.9rem; margin: 0; }

@media (max-width: 520px) {
    .panel { grid-template-columns: 1fr; }
}

@media (orientation: landscape) and (max-height: 350px) {
    .panel { padding-block: 1rem; }
}
