:root {
  color-scheme: dark;
  --bg: #151719;
  --surface: #212427;
  --ink: #f4f5f6;
  --muted: #bec2c7;
  --line: #45494d;
  --accent: #ff936b;
  --action: #ff713f;
  --error: #ffb1a2;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.6 Arial,
    Helvetica,
    sans-serif;
}
::selection {
  background: #ff936b;
  color: #151719;
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
a,
input,
textarea,
select,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
input,
textarea {
  caret-color: var(--accent);
}
input::placeholder,
textarea::placeholder {
  color: #aeb3b8;
}
button {
  border: 0;
}
button,
input,
textarea,
select {
  border-radius: 8px;
}
button:hover {
  filter: brightness(1.08);
}
button:active {
  transform: translateY(1px);
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
}
h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 0 0 20px;
}
h2 {
  font-size: 26px;
  margin: 0 0 14px;
}
h3 {
  font-size: 21px;
  margin: 0 0 8px;
}
p {
  margin: 0 0 18px;
  max-width: 70ch;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.header,
.footer {
  max-width: 1120px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header {
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  font-size: 23px;
  letter-spacing: -0.02em;
}
.wordmark strong {
  font-size: 25px;
}
.wordmark strong span {
  color: var(--accent);
}
.wordmark-divider {
  color: #727980;
}
.header-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}
.languages {
  display: flex;
  gap: 3px;
}
.languages button {
  padding: 9px 11px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
}
.languages button[aria-pressed='true'] {
  color: var(--ink);
  background: #34383c;
}
.quiet {
  background: transparent;
  color: var(--muted);
  padding: 8px 0;
  min-height: 44px;
  font-size: 14px;
}
.footer {
  border-top: 1px solid var(--line);
  min-height: 76px;
  color: var(--muted);
  font-size: 13px;
}
.footer a {
  text-decoration: none;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 58px 28px 72px;
  min-height: calc(100dvh - 165px);
}
.skip {
  position: fixed;
  z-index: 50;
  left: 12px;
  top: 12px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-180%);
}
.skip:focus {
  transform: none;
}
.loading {
  padding: 40px 0;
  color: var(--muted);
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 1fr);
  gap: 90px;
  align-items: start;
  padding: 44px 0 68px;
}
.login-intro {
  padding-top: 8px;
}
.login-intro h1 {
  max-width: 550px;
}
.login-intro p {
  font-size: 18px;
  max-width: 38ch;
  color: var(--muted);
}
.login-intro .note {
  margin-top: 36px;
  font-size: 14px;
}
.access-form {
  background: var(--surface);
  border-radius: 14px;
  padding: 30px;
}
.access-form h2 {
  font-size: 23px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
}
.field label,
.field-label,
legend {
  font-size: 15px;
  font-weight: 700;
}
input:not([type='radio']):not([type='checkbox']),
textarea,
select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  background: #171a1c;
  border: 1px solid #646b72;
  color: var(--ink);
  font-size: 16px;
}
textarea {
  resize: vertical;
  min-height: 115px;
}
input[type='file'] {
  font-size: 14px;
}
input[type='file']::file-selector-button {
  background: #343a40;
  color: var(--ink);
  border: 0;
  padding: 9px 12px;
  border-radius: 5px;
  margin-right: 12px;
  font: inherit;
  cursor: pointer;
}
input[type='password'] {
  letter-spacing: 0.06em;
}
.primary,
.secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.primary {
  background: var(--action);
  color: #18100b;
}
.secondary {
  background: #343a40;
  color: var(--ink);
}
.access-form .primary {
  width: 100%;
}
.hint {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}
.error {
  color: var(--error);
  font-size: 14px;
  margin: 12px 0 0;
}
.status {
  color: var(--accent);
  font-size: 14px;
  margin: 12px 0;
}
.section-intro {
  margin-bottom: 38px;
}
.section-intro p {
  color: var(--muted);
}
.empty {
  border-top: 1px solid var(--line);
  padding: 38px 0 24px;
  max-width: 730px;
}
.empty p {
  color: var(--muted);
}
.game-list {
  display: grid;
  gap: 0;
}
.game-row {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.game-copy {
  max-width: 65ch;
}
.game-row h2 {
  font-size: 25px;
  margin: 0 0 10px;
}
.game-row p {
  margin: 0 0 8px;
  color: var(--muted);
}
.version {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.game-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.toolbar h1 {
  font-size: 23px;
  margin: 0;
}
.toolbar p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  background: transparent;
  padding: 5px 0;
  min-height: 44px;
  font-size: 14px;
}
.player iframe {
  display: block;
  background: #0c0e10;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%;
  height: calc(100dvh - 250px);
  min-height: 360px;
}
.player-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
main:has(.player:not([hidden])) {
  max-width: 1500px;
  padding-top: 22px;
  padding-bottom: 28px;
}
.feedback-page {
  max-width: 760px;
  margin: auto;
}
.feedback-page h1 {
  font-size: 36px;
}
.feedback-form {
  margin-top: 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.rating {
  border: 0;
  margin: 0 0 28px;
  padding: 0;
  min-width: 0;
}
.rating legend {
  margin-bottom: 10px;
}
.rating-options {
  display: flex;
  gap: 10px;
}
.rating-options label {
  position: relative;
  flex: 1;
  max-width: 70px;
}
.rating-options input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.rating-options span {
  display: grid;
  place-items: center;
  min-height: 50px;
  background: #252a2e;
  border: 1px solid #646b72;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.rating-options input:checked + span {
  border-color: var(--accent);
  background: #5a3224;
  color: #ffbc9e;
}
.rating-options input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.rating-help {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.required-note {
  font-size: 13px;
  color: var(--muted);
}
.form-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}
.privacy {
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}
.success {
  max-width: 650px;
  padding: 42px 0;
}
.success h1 {
  font-size: 38px;
}
.success p {
  color: var(--muted);
}
.admin-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.admin-tabs button {
  background: transparent;
  color: var(--muted);
  min-height: 52px;
  padding: 9px 0;
  border-radius: 0;
  font-weight: 700;
}
.admin-tabs button[aria-pressed='true'] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.upload-form {
  max-width: 750px;
  margin: 32px 0 0;
}
.upload-form h2 {
  margin-top: 38px;
}
.upload-guide {
  padding: 18px 22px;
  background: var(--surface);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}
.upload-guide code {
  font-family: monospace;
  color: var(--ink);
}
progress {
  width: 100%;
  height: 12px;
  accent-color: var(--accent);
  margin-top: 18px;
}
.admin-game-row {
  align-items: start;
}
.admin-game-row .game-actions {
  flex-shrink: 0;
}
.badge {
  color: var(--accent);
  font-size: 13px;
}
.feedback-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.feedback-summary p {
  margin: 0;
  color: var(--muted);
}
.response {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}
.response summary {
  position: relative;
  padding-right: 30px;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.response summary > .icon {
  position: absolute;
  right: 0;
  top: 4px;
  color: var(--accent);
}
.response[open] summary > .icon {
  transform: rotate(180deg);
}
.choice {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
  min-width: 0;
}
.choice legend {
  margin-bottom: 10px;
}
.choice-options {
  display: grid;
  gap: 9px;
}
.choice-options label {
  display: flex;
  align-items: start;
  gap: 12px;
  min-height: 48px;
  padding: 10px 13px;
  background: #252a2e;
  border: 1px solid #646b72;
  border-radius: 8px;
}
.choice-options input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--accent);
}
.choice-options label:has(input:checked) {
  border-color: var(--accent);
  background: #5a3224;
}
@media (max-width: 360px) {
  .header {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 10px;
    gap: 6px;
  }
  .header-actions {
    margin-left: auto;
    flex-wrap: wrap;
    gap: 10px;
  }
  .wordmark {
    flex-basis: 100%;
  }
}
.response summary h3 {
  font-size: 19px;
  margin: 0 0 6px;
}
.response time {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.scores {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  margin: 20px 0;
}
.scores strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.response dl {
  display: grid;
  gap: 16px;
}
.response dt {
  font-size: 14px;
  font-weight: 700;
}
.response dd {
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-size: 15px;
}
.response .context {
  font-size: 13px;
  color: var(--muted);
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #51585f;
  border: 2px solid var(--bg);
  border-radius: 8px;
}
@media (max-width: 760px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 4px 0 12px;
  }
  .login-intro p {
    font-size: 16px;
    max-width: 50ch;
  }
  .login-intro .note {
    margin-top: 16px;
  }
  .access-form {
    max-width: 520px;
    width: 100%;
    padding: 25px;
  }
  .header,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header {
    min-height: 76px;
  }
  .header-actions {
    gap: 13px;
  }
  .wordmark {
    font-size: 20px;
    gap: 8px;
  }
  .wordmark strong {
    font-size: 22px;
  }
  .languages button {
    padding: 8px 9px;
  }
  main {
    padding: 38px 20px 50px;
    min-height: calc(100dvh - 152px);
  }
  .game-row {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .game-actions .primary {
    flex: 1;
  }
  .game-actions .secondary {
    flex: 1;
  }
  .toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .toolbar .game-actions {
    margin-left: auto;
  }
  .player iframe {
    height: calc(100dvh - 275px);
    min-height: 300px;
  }
  .feedback-page h1 {
    font-size: 31px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .response summary {
    flex-direction: column;
    gap: 4px;
  }
  .admin-game-row .game-actions {
    width: 100%;
  }
  .feedback-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }
  .form-actions button {
    width: 100%;
  }
  .section-intro {
    margin-bottom: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  button:active {
    transform: none;
  }
}
