@font-face { font-family: Anton; src: url('/fontes/anton-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Manrope; src: url('/fontes/manrope-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fontes/manrope-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fontes/jetbrains-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --dark: #231e1e; --panel: #2f2928; --cream: #f2eee4; --lime: #d7d72e;
  --muted: #d6cec3; --rule: #4a4240; --edge: #8f867d;
  --display: Anton, Impact, sans-serif; --mono: 'JetBrains Mono', monospace;
  color-scheme: dark; color: var(--cream); background: var(--dark); font: 500 1rem/1.55 Manrope, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100svh; margin: 0; position: relative; isolation: isolate; }
.frame { max-width: 48rem; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.site-header { border-bottom: 3px solid var(--rule); }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: 1rem; }
.signature, .environment, .time, .progress-info { font: 700 .75rem/1.45 var(--mono); }
.environment, .time { color: var(--muted); }
.environment { text-align: right; }
main { padding-block: clamp(1.5rem, 5vh, 3.5rem) 5rem; }
.welcome { padding-top: clamp(1.75rem, 8vh, 5rem); }
h1, h2 { font: 400 clamp(2.4rem, 8vw, 5rem)/1.08 var(--display); text-transform: uppercase; margin: 0; overflow-wrap: break-word; }
h1 span, #done h2 { display: block; color: var(--lime); }
.welcome p:not(.time) { margin: 1.4rem 0 1.75rem; max-width: 32ch; font-size: clamp(1rem, 2.5vw, 1.25rem); }
.welcome .time { margin-top: 1rem; }
.texture { pointer-events: none; position: absolute; z-index: -1; bottom: 0; right: 0; width: min(62vw, 25rem); height: 10rem; opacity: .26; background: radial-gradient(circle, var(--lime) 12%, transparent 15%) 0 0 / 18px 18px; mask-image: radial-gradient(ellipse at bottom right, black, transparent 70%); }
button, input, textarea { font: inherit; }
button { cursor: pointer; font-weight: 700; border: 2px solid transparent; min-height: 3rem; padding: .65rem 1.05rem; }
button:disabled { cursor: default; opacity: .6; }
button.primary { background: var(--lime); color: var(--dark); display: inline-flex; justify-content: space-between; gap: 1rem; align-items: center; }
button.secondary { border-color: var(--edge); color: var(--cream); background: var(--panel); }
button:hover:not(:disabled) { border-color: var(--cream); }
button:focus-visible, input:focus-visible, textarea:focus-visible, audio:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
h2:focus { outline: none; }
.progress-info { display: flex; justify-content: space-between; align-items: end; gap: .75rem; color: var(--muted); }
#count { white-space: nowrap; }
progress { display: block; width: 100%; height: .4rem; margin: .65rem 0 1.65rem; border: 0; appearance: none; background: var(--rule); color: var(--lime); }
progress::-webkit-progress-bar { background: var(--rule); }
progress::-webkit-progress-value { background: var(--lime); }
progress::-moz-progress-bar { background: var(--lime); }
.question h2 { font-size: clamp(2.2rem, 8vw, 3.75rem); }
.fields { display: grid; gap: 1.35rem; margin-top: 1.3rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend, .field-label { display: block; padding: 0; font-weight: 700; margin-bottom: .45rem; }
.question p { margin: .45rem 0 0; color: var(--muted); }
.hint, .option small { font-size: .88rem; color: var(--muted); }
input:not([type=radio], [type=checkbox], [type=file]), textarea {
  width: 100%; min-height: 3rem; border: 1px solid var(--edge); padding: .75rem; background: var(--panel); color: var(--cream); border-radius: 0;
}
textarea { min-height: 7rem; resize: vertical; display: block; }
.choice-list { display: grid; gap: .45rem; }
.option { min-height: 3rem; display: flex; align-items: flex-start; gap: .8rem; background: var(--panel); border: 1px solid var(--edge); padding: .6rem .75rem; cursor: pointer; }
.option input { flex: none; width: 1.15rem; height: 1.15rem; margin: .18rem 0 0; accent-color: var(--lime); }
.option:has(input:checked) { border-color: var(--lime); }
.option small { display: block; margin-top: .12rem; }
.other { margin-top: .7rem; }
.actions { display: flex; justify-content: space-between; gap: .75rem; border-top: 3px solid var(--rule); margin-top: 1.75rem; padding-top: 1rem; }
.audio { margin-top: .75rem; }
.audio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .6rem; }
.audio audio { display: block; width: min(100%, 23rem); margin-top: .6rem; }
.file { position: relative; overflow: hidden; display: inline-flex; align-items: center; border: 2px solid var(--edge); padding: .6rem .95rem; min-height: 3rem; font-weight: 700; cursor: pointer; background: var(--panel); }
.file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.file:focus-within { outline: 3px solid var(--lime); outline-offset: 3px; }
#error { color: #ffc5b8; font-weight: 700; margin-top: 1rem; }
