/* HACKSTAGE jury dashboard. Same visual language as hackstage.ai: Montserrat 900 display, Helvetica text,
   mono uppercase labels, white pill buttons that turn yellow, hairline rows, one yellow accent. */
@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat-display.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #050506; --fg: #ffffff; --fg2: #dcdcde; --fg3: #b9b9bb; --dim: #8b8b8d; --faint: #4a4a4c;
  --hair: rgba(255, 255, 255, 0.14); --hair-2: rgba(255, 255, 255, 0.36); --fill: rgba(255, 255, 255, 0.045);
  --accent: #ffd400; --red: #ff5a4a;
  --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gut: clamp(16px, 3.4vw, 52px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-site: cubic-bezier(0.76, 0, 0.24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--fg);
  font: 400 16px/1.4 var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #050506; }
[hidden] { display: none !important; }

/* type */
.mark { font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: -0.02em; text-decoration: none; color: var(--fg); margin-left: -0.055em; }
.d { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.88; }
.d8 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; }
.m { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.dim { color: var(--dim); }
.fg2 { color: var(--fg2); }
.num { font-family: var(--display); font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* buttons: pills, like the site */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; text-decoration: none; user-select: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 140ms var(--ease-out), opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.35; pointer-events: none; }
.btn--ghost { background: none; color: var(--fg); border-color: var(--hair-2); }
.btn--quiet { background: none; color: var(--fg2); border-color: transparent; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #050506; }
.btn--danger { background: none; color: var(--red); border-color: rgba(255, 90, 74, 0.45); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 10.5px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 12.5px; letter-spacing: 0.12em; }
.btn--arrow::after { content: '→'; font-size: 15px; letter-spacing: 0; transition: transform 0.25s; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
  .btn--ghost:hover, .btn--quiet:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
  .btn--danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
  .btn--arrow:hover::after { transform: translateX(4px); }
}

/* segmented: outlined pill group */
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--hair-2); border-radius: 999px; }
.seg button {
  height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--fg2);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, transform 140ms var(--ease-out);
}
.seg button:active { transform: scale(0.96); }
.seg button[aria-pressed='true'] { background: var(--fg); color: var(--bg); }
.seg button[aria-pressed='true'].is-live { background: var(--accent); color: #050506; }
@media (hover: hover) and (pointer: fine) { .seg button:not([aria-pressed='true']):hover { color: var(--fg); } }

/* tags: outlined mono labels instead of filled chips */
.tag {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--hair);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg2); white-space: nowrap;
}
.tag--accent { border-color: var(--accent); color: var(--accent); }
.tag--fill { background: var(--accent); border-color: var(--accent); color: #050506; }
.tag--red { border-color: rgba(255, 90, 74, 0.5); color: var(--red); }
.tag button { border: 0; background: none; padding: 0; color: var(--dim); font-size: 14px; line-height: 1; }

/* the yellow strip from the site's first screen */
.strip {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 32px; padding: 0 12px;
  background: var(--accent); color: #050506; font: 500 11px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap;
}
.strip i { width: 7px; height: 7px; border-radius: 50%; background: #050506; animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* fields, as on the application form */
.field { display: grid; gap: 8px; }
.field > span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg2); }
.input, .textarea, .select {
  width: 100%; min-height: 46px; background: var(--fill); border: 1px solid var(--hair-2); border-radius: 10px;
  padding: 11px 14px; color: var(--fg); font-size: 16px; line-height: 1.3; outline: 0; appearance: none; -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--fg); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.textarea { resize: vertical; min-height: 104px; line-height: 1.4; }
.select { padding-right: 34px; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 13px center; }

/* 1 to 10 */
.scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.scale button {
  height: 50px; padding: 0; border: 1px solid var(--hair-2); border-radius: 10px; background: var(--fill); color: var(--fg2);
  font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: -0.03em;
  transition: transform 120ms var(--ease-out), background-color 0.15s, color 0.15s, border-color 0.15s;
}
.scale button:active { transform: scale(0.92); }
.scale button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #050506; }
.scale[aria-disabled='true'] { pointer-events: none; opacity: 0.5; }
@media (hover: hover) and (pointer: fine) { .scale button:not([aria-pressed='true']):hover { border-color: var(--fg); color: var(--fg); } }
@media (max-width: 370px) { .scale { gap: 3px; } .scale button { height: 46px; font-size: 15px; border-radius: 8px; } }

/* timer digits: Montserrat with fixed-width cells so the clock never jitters */
.clock { display: inline-flex; font-family: var(--display); font-weight: 900; letter-spacing: -0.04em; line-height: 0.82; transition: color 0.3s; }
.clock span { display: inline-block; width: 0.66em; text-align: center; }
.clock span.c { width: 0.28em; }
.clock span.p { width: 0.5em; }
.t-warn { color: var(--accent); }
.t-over { color: var(--red); }
.tbar { height: 3px; background: var(--hair); overflow: hidden; }
.tbar i { display: block; height: 100%; background: var(--fg); transform-origin: left; will-change: transform; transition: background-color 0.3s; }
.tbar i.t-warn { background: var(--accent); }
.tbar i.t-over { background: var(--red); }

/* toast */
.toasts { position: fixed; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; pointer-events: none; z-index: 80; padding: 0 16px; }
.toast {
  pointer-events: auto; max-width: 440px; padding: 13px 20px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font: 500 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  transition: opacity 260ms ease, transform 260ms var(--ease-out);
}
.toast.is-red { background: var(--red); color: #fff; }
@starting-style { .toast { opacity: 0; transform: translateY(12px); } }
.toast.is-out { opacity: 0; transform: translateY(8px); transition-duration: 180ms; }

/* modal: same box as the cookie notice on the site */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 6, 0.72); transition: opacity 200ms ease; }
.box { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; display: grid; gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 16px; background: #0b0b0d; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  transition: transform 240ms var(--ease-out), opacity 200ms ease; }
@starting-style { .modal { opacity: 0; } .box { opacity: 0; transform: scale(0.97); } }

/* the point cloud from the site, drawn on a canvas for the waiting screens */
.cloud { position: absolute; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .btn:active, .seg button:active, .scale button:active { transform: none; }
}
