@font-face {
  font-family: AlpacaPixel;
  src: url('../fonts/PPNeueBit-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: AlpacaSans;
  src: url('../fonts/HaasGrotDisp-Roman.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #020002;
  --red: #ee4131;
  --green: #29a97c;
  --yellow: #f9fe52;
  --line: #302c32;
  --muted: #aaa6b0;
  font-family: AlpacaSans, 'Helvetica Neue', Arial, sans-serif;
  color: #f4f4f4;
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }
.page-width { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 25px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 30px/.85 AlpacaPixel, monospace; }
.brand img { filter: invert(1); }
.brand-year { display: block; color: var(--red); margin-top: 5px; font-size: 22px; }
.event-link { border: 1px solid var(--line); padding: 13px 16px; font: 11px ui-monospace, monospace; text-decoration: none; }
.event-link span { color: var(--green); margin-left: 18px; }
.event-link:hover { border-color: var(--green); }
.portal { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; padding-block: 54px; flex: 1; }
.hero { min-width: 0; }
.eyebrow { font: 10px/1.6 ui-monospace, monospace; letter-spacing: .08em; color: var(--green); margin: 0 0 24px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: var(--green); }
.hero h1 { margin: 0; font: 700 clamp(78px, 8.8vw, 122px)/.78 AlpacaPixel, monospace; letter-spacing: -.015em; }
.hero h1 span { color: var(--red); }
.hero-copy { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 26px 0; }
.hero-art { position: relative; height: 160px; overflow: hidden; background-color: var(--green); background-image: linear-gradient(#02000214 1px, transparent 1px), linear-gradient(90deg, #02000214 1px, transparent 1px); background-size: 24px 24px; }
.hero-art img { position: absolute; width: 160px; height: auto; right: 36px; top: 5px; transform: rotate(-9deg); }
.art-caption { position: absolute; left: 16px; bottom: 16px; max-width: 140px; font: 700 10px/1.7 ui-monospace, monospace; color: var(--bg); }
.art-cross { position: absolute; top: 8px; left: 16px; font: 700 28px AlpacaPixel, monospace; color: var(--bg); }
.access-panel { min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--red); background: #0c0a0d; }
.panel-topline, .panel-bottomline { display: flex; justify-content: space-between; gap: 12px; padding: 17px 24px; font: 9px ui-monospace, monospace; letter-spacing: .05em; color: var(--muted); }
.panel-topline { border-bottom: 1px solid var(--line); }
.panel-topline span:last-child { color: var(--red); }
.panel-bottomline { border-top: 1px solid var(--line); font-size: 8px; }
.panel-content { padding: 36px; }
.panel-eyebrow { font-size: 9px; margin-bottom: 14px; }
.panel-content h2 { font: 700 clamp(42px, 4.3vw, 58px)/.9 AlpacaPixel, monospace; margin: 0; overflow-wrap: anywhere; }
.title-dot { color: var(--red); }
.panel-copy { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 17px 0 30px; }
.field { margin-bottom: 22px; }
.form-label { display: block; margin-bottom: 10px; font: 10px ui-monospace, monospace; letter-spacing: .05em; }
.form-control { width: 100%; min-height: 48px; background: var(--bg); color: #fff; border: 1px solid #4a424d; border-radius: 0; padding: 12px 14px; }
.form-control:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.form-control:autofill { box-shadow: inset 0 0 0 1000px #141018; -webkit-text-fill-color: #fff; }
.button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 49px; padding: 15px 18px; margin-top: 30px; border: 1px solid var(--red); border-radius: 0; font: 700 11px ui-monospace, monospace; text-decoration: none; cursor: pointer; }
.button span { font-size: 19px; line-height: .8; }
.button-primary { background: var(--red); color: #020002; }
.button-primary:hover { background: var(--yellow); border-color: var(--yellow); }
.button-secondary { color: #f4f4f4; background: transparent; border-color: #645a69; }
.button-secondary:hover { color: var(--yellow); border-color: var(--yellow); }
.session-active { color: var(--green); }
.notice { padding: 18px; margin: 24px 0; border-left: 3px solid; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }
.notice-error { border-color: var(--red); background: #ee413112; color: #ffb5ab; }
.notice-success { border-color: var(--green); background: #29a97c12; }
.notice h3 { margin: 0 0 8px; color: var(--green); font: 700 30px AlpacaPixel, monospace; }
.notice code { color: var(--yellow); font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; padding-block: 22px; font: 9px/1.6 ui-monospace, monospace; color: var(--muted); letter-spacing: .04em; }
.skip-link { position: absolute; left: 15px; top: 0; padding: 12px; background: var(--yellow); color: var(--bg); transform: translateY(-120%); z-index: 1; }
.skip-link:focus { transform: translateY(0); }
.dashboard { flex: 1; padding-block: 64px 80px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 38px; }
.dashboard-heading .eyebrow { margin-bottom: 14px; }
.dashboard-heading h1 { font: 700 clamp(64px, 6vw, 88px)/.9 AlpacaPixel, monospace; margin: 0; }
.dashboard-heading .panel-copy { margin-bottom: 0; overflow-wrap: anywhere; }
.dashboard-heading > .event-link { flex-shrink: 0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
.profile-card, .flag-card { background: #0c0a0d; border: 1px solid var(--line); min-width: 0; }
.profile-card { border-top: 3px solid var(--green); }
.flag-card { border-top: 3px solid var(--red); }
.profile-content, .flag-content { padding: 36px; }
.profile-identity { display: flex; gap: 20px; align-items: center; }
.profile-identity > div:last-child { min-width: 0; }
.profile-avatar { display: grid; place-items: center; flex-shrink: 0; width: 74px; height: 74px; border: 1px solid var(--green); background: #29a97c18; color: var(--green); font: 700 64px/1 AlpacaPixel, monospace; }
.profile-identity h2 { font: 700 48px/1 AlpacaPixel, monospace; overflow-wrap: anywhere; margin: 0 0 8px; }
.account-badge { color: var(--muted); font: 10px ui-monospace, monospace; }
.profile-details { margin: 28px 0 0; }
.profile-details > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-top: 1px solid var(--line); padding: 18px 0; }
.profile-details > div:last-child { padding-bottom: 0; }
.profile-details dt { color: var(--muted); font: 9px ui-monospace, monospace; }
.profile-details dd { margin: 0; font-size: 14px; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.flag-symbol { display: block; color: var(--yellow); font: 700 48px/1.2 AlpacaPixel, monospace; margin-bottom: 32px; }
.flag-content .eyebrow { margin-bottom: 14px; }
.flag-content h2, .dialog-content h2 { font: 700 clamp(44px, 4.5vw, 64px)/.95 AlpacaPixel, monospace; margin: 0; }
.flag-content .panel-copy { max-width: 300px; }
.flag-content .button { margin-top: 38px; }
.flag-dialog { width: min(480px, calc(100% - 40px)); max-height: calc(100svh - 40px); padding: 0; color: #f4f4f4; background: #0c0a0d; border: 1px solid #645a69; border-top: 3px solid var(--red); overflow-wrap: anywhere; }
.flag-dialog::backdrop { background: #020002cc; backdrop-filter: blur(4px); }
.dialog-content { padding: 32px; }
.dialog-content .eyebrow { margin-bottom: 14px; }
.denied-label { color: #ffb5ab; }
.dialog-content .panel-copy strong { color: var(--yellow); font-weight: 400; }
@media (max-width: 1000px) {
  .page-width { width: calc(100% - 64px); }
  .portal { gap: 40px; }
  .panel-content { padding: 28px; }
  .hero h1 { font-size: 90px; }
}
@media (max-width: 720px) {
  .page-width { width: calc(100% - 40px); }
  .site-header { padding-block: 20px; }
  .brand { font-size: 26px; gap: 9px; }
  .brand img { width: 27px; height: 31px; }
  .brand-year { font-size: 19px; }
  .event-link { font-size: 9px; padding: 11px; }
  .event-link span { margin-left: 5px; }
  .portal { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 36px; }
  .eyebrow { font-size: 9px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(68px, 13.6vw, 96px); }
  .hero h1 br { display: none; }
  .hero-copy { font-size: 15px; margin: 18px 0 0; }
  .hero-art { display: none; }
  .panel-content { padding: 28px 24px; }
  .panel-content h2 { font-size: 49px; }
  .panel-eyebrow { margin-bottom: 12px; }
  .site-footer { font-size: 8px; flex-wrap: wrap; gap: 8px; }
  .dashboard { padding-block: 36px 48px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 26px; }
  .dashboard-heading h1 { font-size: 62px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .profile-content, .flag-content, .dialog-content { padding: 26px 24px; }
  .profile-details > div { gap: 14px; }
  .profile-details dd { font-size: 13px; }
  .profile-avatar { width: 58px; height: 58px; font-size: 48px; }
  .flag-symbol { margin-bottom: 24px; }
}
