@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  --bg: #0d0c11;
  --panel: #19161f;
  --line: #34303d;
  --muted: #b9b2c5;
  --ink: #f7f4fc;
  --accent: #b68aff;
  --cyan: #cbb1ee;
  --soft: #312242;
  --accent-ink: #1e1034;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}
body {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font-family: inherit;
}
button {
  background: #231c2c;
  border-color: #44364f;
  border-radius: 8px;
  font-size: 13px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #352540;
  border-color: #8c69ae;
}
.primary,
.primary:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}
.primary:hover {
  background: #c9a8ff;
  border-color: #c9a8ff;
}
a {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.workspace {
  margin-left: 0;
}
.site-header {
  height: 86px;
  max-width: none;
  padding: 0 38px;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
  gap: 28px;
  background: #100e15;
  border-bottom: 1px solid var(--line);
}
.site-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  letter-spacing: -1px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  justify-self: start;
}
.site-brand span {
  color: var(--accent);
}
.site-brand:hover {
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-self: stretch;
  gap: 23px;
  align-items: stretch;
}
.site-nav button {
  padding: 0 2px;
  border: 0;
  background: none;
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  white-space: nowrap;
}
.site-nav button.active {
  color: var(--ink);
  background: none;
  border: 0;
}
.site-nav button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
.site-nav button:hover {
  background: none;
  color: var(--ink);
}
#account {
  justify-self: end;
  gap: 10px;
}
#account .avatar {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #49325f;
  border-color: #72518e;
  object-fit: cover;
}
#account img.avatar {
  width: 31px;
  height: 31px;
  object-fit: cover;
}
#header-profile {
  max-width: 165px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 0;
  background: transparent;
  padding: 9px 2px;
  color: var(--ink);
  font-size: 12px;
}
#account-settings {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 22px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
main {
  padding: 34px 38px 40px;
  max-width: 1520px;
  min-height: calc(100vh - 164px);
}
.heading {
  margin-bottom: 28px;
  align-items: end;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
}
h1 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(40px, 4.1vw, 62px);
  font-weight: 600;
  letter-spacing: -0.7px;
  text-transform: uppercase;
  line-height: 1.04;
  margin: 9px 0 13px;
}
h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.6px;
  font-size: 22px;
}
h3 {
  letter-spacing: -0.3px;
}
.heading p {
  font-size: 14px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
}
.panel-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
}
.banner {
  background: #18131f;
  color: #d4c3e5;
  border-color: #453251;
  border-left: 3px solid #8e65b7;
  font-size: 12px;
  padding: 12px 17px;
  margin-bottom: 24px;
}
.layout {
  grid-template-columns: minmax(0, 1fr) 278px;
  gap: 28px;
  align-items: start;
}
.layout > aside {
  grid-column: 2;
  grid-row: 1;
}
.layout > #results {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.people-panel {
  display: flex;
  flex-direction: column;
  max-height: 72vh;
  overflow: hidden;
  border-top: 3px solid var(--accent);
  padding: 23px;
}
.people-panel > .panel-label,
.people-panel > h3 {
  flex-shrink: 0;
}
.people-panel h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 13px;
}
.friends-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: #76568f #19161f;
  scrollbar-width: thin;
}
.person {
  padding: 13px 0;
  gap: 10px;
  border-color: var(--line);
  font-size: 12px;
}
.person > span:not(.avatar) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.person small {
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: #393044;
  border: 1px solid #574268;
  color: #e4d8f3;
  font-weight: 600;
}
.person img.avatar {
  object-fit: cover;
  padding: 0;
}
.person input {
  accent-color: var(--accent);
  flex-shrink: 0;
}
.friends-actions {
  padding-top: 3px;
  flex-shrink: 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.friends-actions .full {
  margin-top: 12px;
  padding: 13px 10px;
  font-size: 12px;
}
.friends-actions #compare {
  display: block;
  order: 0;
}
.friends-actions {
  display: flex;
  flex-direction: column;
}
.friends-actions #add {
  order: 1;
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.friends-actions p {
  order: 2;
  font-size: 11px;
  line-height: 1.7;
  margin: 12px 0 0;
}
.layout > aside > .panel:last-child {
  background: transparent;
  padding: 18px 2px;
  border: 0;
}
.layout > aside > .panel:last-child .panel-label {
  color: var(--accent);
}
.layout > aside > .panel:last-child p {
  font-size: 11px;
}
.pill {
  background: #201728;
  border-color: #4d355f;
  color: #c4b2d5;
  font-size: 10px;
}
.pill.lime {
  background: #2b1d39;
  border-color: #785599;
  color: #d8baff;
}
.steps {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.step b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #6c527f;
  font-size: 10px;
  font-weight: 500;
}
.step.active {
  color: var(--accent);
}
.step.active b {
  background: var(--soft);
  border-color: var(--accent);
}
.decision-banner {
  display: flex;
  align-items: center;
  gap: 17px;
  background: linear-gradient(115deg, #352049, #1e1729);
  border: 1px solid #79519d;
  border-radius: 13px;
  padding: 22px 24px;
  margin-bottom: 25px;
}
.decision-symbol {
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}
.decision-banner h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 29px;
  font-weight: 600;
  margin: 0 0 5px;
  letter-spacing: 0;
}
.decision-banner p {
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
}
.decision-banner .primary {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  padding: 13px 16px;
}
.toolbar {
  gap: 12px;
}
.toolbar h2 {
  font-size: 21px;
}
.toolbar label {
  font-size: 12px;
  color: var(--muted);
}
.toolbar input {
  max-width: 280px;
}
.toolbar .check {
  margin: 0;
}
.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.game {
  background: var(--panel);
  border-color: var(--line);
  border-radius: 12px;
  transition: border-color 0.15s;
}
.game:hover {
  border-color: #75538e;
}
.game img {
  background: #2d203a;
  aspect-ratio: 1.65;
  object-fit: cover;
}
.game-body {
  padding: 18px;
}
.game .owned {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--accent);
  line-height: 1.5;
}
.game h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 9px 0;
}
.game small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.game .actions {
  gap: 7px;
  margin-top: 16px;
}
.game button {
  font-size: 11px;
  padding: 8px 10px;
  background: transparent;
  border-color: #56406b;
  color: #cbb1e8;
}
.game button.primary {
  background: #30203e;
  color: #d3afff;
  border-color: #78539b;
}
.game button.primary:hover {
  background: #442b5a;
}
.game .store {
  font-size: 10px;
  color: var(--muted);
}
.results-note {
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 17px;
}
input,
select,
textarea {
  background: #100d16;
  border-color: #493750;
  border-radius: 8px;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #a698b2;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #a97ee3;
}
.field {
  font-size: 13px;
}
.empty {
  background: #141018;
  border: 1px dashed #4b385a;
  border-radius: 13px;
  padding: 42px 23px;
}
.empty-icon {
  color: var(--accent);
}
.empty h2 {
  font-size: 22px;
}
.empty p {
  font-size: 13px;
}
.notice {
  background: #21172c;
  border-left-color: #a579d6;
  color: #d3c1e3;
  font-size: 12px;
  margin: 18px 0;
}
.session {
  border-color: var(--line);
}
.session time {
  color: var(--accent);
  font-size: 12px;
}
.hero {
  border-color: #654282;
  background:
    radial-gradient(ellipse at 80% 30%, #703aaa38, transparent 65%),
    linear-gradient(115deg, #26172f, #141019);
  border-radius: 15px;
  padding: 32px;
  margin-bottom: 24px;
  min-height: 250px;
}
.hero h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0;
}
.hero-art {
  transform: none;
}
.hero-art div {
  background: linear-gradient(140deg, #49305f, #1f152a);
  border-color: #6d4a88;
  color: var(--accent);
  height: 130px;
}
.hero-art div:nth-child(2) {
  background: linear-gradient(140deg, #67448b, #2d1c3d);
}
.game-choice-art {
  display: block;
  width: 100%;
  height: auto;
  max-width: 390px;
  justify-self: center;
  align-self: center;
}
.split {
  gap: 26px;
}
.row {
  gap: 12px;
}
.profile-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
}
.profile-preview {
  align-self: start;
  text-align: center;
}
.profile-photo {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 27px;
  border: 2px solid #79569b;
  margin: 4px auto 22px;
}
.profile-monogram {
  display: grid;
  place-items: center;
  background: #30203f;
  color: var(--accent);
  font-size: 48px;
}
.profile-preview h2 {
  overflow-wrap: anywhere;
}
.profile-preview input[type="file"] {
  font-size: 11px;
  max-width: 100%;
}
.profile-preview #account-privacy {
  margin-top: 18px;
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.community-grid .panel {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.player-card .avatar {
  width: 55px;
  height: 55px;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 14px;
}
.player-card .actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.player-card .actions button {
  font-size: 11px;
  padding: 8px 10px;
}
.group-tabs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.group-tabs button {
  background: transparent;
  color: var(--muted);
  border-radius: 30px;
  font-size: 12px;
  padding: 10px 16px;
}
.group-tabs button.primary {
  background: var(--soft);
  border-color: #8b62b6;
  color: var(--accent);
}
.group-directory {
  margin-bottom: 26px;
}
.connection-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.connection-setting .button-link {
  flex-shrink: 0;
}
.button-link {
  display: inline-block;
  padding: 12px 16px;
  background: var(--soft);
  border: 1px solid #79569b;
  border-radius: 8px;
  font-size: 13px;
}
.account-connections #account-connection-actions {
  justify-content: flex-start;
}
.account-connections #account-connection-actions button {
  flex: none;
}
.check-progress-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink);
}
.check-progress-heading strong {
  font-size: 12px;
  font-weight: 600;
}
.check-progress-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.loading-spinner {
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 2px solid #a875f538;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.checks-complete {
  color: var(--accent);
}
.mode-progress {
  display: block;
  width: 100%;
  height: 4px;
  margin: 13px 0 10px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  appearance: none;
  background: #352244;
  accent-color: var(--accent);
}
.mode-progress::-webkit-progress-bar {
  background: #352244;
  border-radius: 10px;
}
.mode-progress::-webkit-progress-value {
  background: #b68aff;
  border-radius: 10px;
}
.mode-progress::-moz-progress-bar {
  background: #b68aff;
}
.check-progress-detail {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
#compare:disabled:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid #180c2940;
  border-top-color: #180c29;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.loading:before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid #a875f538;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin: 0 auto 18px;
}
dialog {
  background: #19131f;
  border-color: #72508f;
  border-radius: 15px;
  box-shadow: 0 25px 100px #000a;
}
dialog::backdrop {
  background: #07050bb8;
  backdrop-filter: blur(5px);
}
#toast {
  background: #d0adff;
  color: #1e1034;
  font-size: 13px;
  border-radius: 10px;
  max-width: 440px;
  z-index: 50;
}
footer {
  max-width: 1444px;
  margin: 0 38px;
  padding: 20px 0;
  border-color: var(--line);
  font-size: 10px;
  letter-spacing: 1.1px;
  align-items: center;
}
footer a {
  color: var(--muted);
  letter-spacing: 0;
}
.skip {
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 100;
}
.legal {
  max-width: 850px;
  margin: 50px auto;
  padding: 30px;
}
.legal h1 {
  font-size: 46px;
}
.night-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.night-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: var(--panel);
}
.night-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 2.1;
  object-fit: cover;
}
.night-card-body {
  padding: 23px;
}
.night-card h2 {
  font-size: 23px;
  margin: 13px 0;
}
.night-card time {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.night-card p {
  font-size: 13px;
}
.night-card .primary {
  margin-top: 18px;
}
.support-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.support-link {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
  text-align: left;
}
.support-link > span:first-child {
  color: var(--accent);
  font-size: 23px;
}
.support-link strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.support-link small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.support-link > span:last-child {
  margin-left: auto;
  color: var(--accent);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1700px) {
  .grid {
    gap: 22px;
  }
  .game img {
    aspect-ratio: 1.8;
  }
}
@media (max-width: 1250px) {
  .site-header {
    padding: 0 25px;
    gap: 22px;
    grid-template-columns: auto 1fr auto;
  }
  .site-nav {
    justify-content: center;
    gap: 17px;
  }
  .site-brand {
    font-size: 19px;
  }
  #header-profile {
    max-width: 125px;
  }
  main {
    padding: 30px 27px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 23px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .people-panel {
    padding: 20px;
  }
  .game img {
    aspect-ratio: 1.8;
  }
  .decision-banner {
    padding: 19px;
  }
  .decision-banner h2 {
    font-size: 26px;
  }
  footer {
    margin: 0 27px;
  }
}
@media (max-width: 1000px) {
  .site-header {
    height: auto;
    min-height: 112px;
    grid-template-columns: 1fr auto;
    gap: 0 20px;
    padding-top: 18px;
  }
  .site-nav {
    grid-column: 1/-1;
    grid-row: 2;
    height: 49px;
    justify-content: flex-start;
    gap: 27px;
  }
  .site-brand {
    font-size: 22px;
  }
  #account {
    grid-column: 2;
    grid-row: 1;
  }
  .profile-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .night-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 17px 18px 0;
    min-height: 108px;
    gap: 0 12px;
  }
  .site-brand {
    font-size: 18px;
  }
  .site-nav {
    gap: 22px;
    overflow-x: auto;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    height: 48px;
  }
  .site-nav button {
    font-size: 12px;
    flex-shrink: 0;
  }
  #account {
    gap: 7px;
    max-width: none;
  }
  #account .avatar,
  #account img.avatar {
    width: 27px;
    height: 27px;
  }
  #header-profile {
    max-width: 100px;
    font-size: 11px;
  }
  #account-settings {
    width: 26px;
    font-size: 20px;
  }
  #header-register,
  #local-login {
    font-size: 11px;
    padding: 8px 10px;
  }
  main {
    padding: 26px 18px 30px;
  }
  .heading {
    margin-bottom: 24px;
  }
  h1 {
    font-size: 44px;
    letter-spacing: -0.4px;
  }
  .heading p {
    font-size: 13px;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 23px;
  }
  .layout > aside {
    width: 100%;
  }
  .layout > #results {
    width: 100%;
  }
  .layout > aside > .panel:last-child {
    display: none;
  }
  .people-panel {
    max-height: 58vh;
    padding: 20px;
    margin-bottom: 0;
  }
  .friends-scroll {
    min-height: 94px;
  }
  .people-panel .person {
    display: flex;
    width: 100%;
    padding-right: 0;
  }
  .friends-actions p {
    font-size: 10px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .game-body {
    padding: 13px;
  }
  .game h3 {
    font-size: 15px;
  }
  .game .owned {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  .game small {
    font-size: 10px;
  }
  .game .actions {
    gap: 5px;
  }
  .game button {
    font-size: 10px;
    padding: 8px;
  }
  .game img {
    aspect-ratio: 1.65;
  }
  .decision-banner {
    gap: 12px;
    padding: 18px;
    flex-wrap: wrap;
  }
  .decision-banner h2 {
    font-size: 25px;
  }
  .decision-banner p {
    font-size: 11px;
  }
  .decision-banner .primary {
    margin-left: 0;
    padding: 11px 14px;
  }
  .decision-symbol {
    font-size: 29px;
  }
  .toolbar {
    gap: 11px;
  }
  .toolbar h2 {
    font-size: 20px;
  }
  .toolbar input {
    max-width: none;
  }
  .toolbar .check {
    width: 100%;
  }
  .steps {
    gap: 12px;
  }
  .step {
    font-size: 10px;
    gap: 6px;
  }
  .step b {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
  .hero {
    padding: 23px;
    min-height: 0;
  }
  .hero h2 {
    font-size: 33px;
  }
  .hero-art {
    display: none;
  }
  .game-choice-art {
    max-width: 310px;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-preview {
    position: static;
  }
  .panel {
    padding: 21px;
  }
  .community-grid {
    grid-template-columns: 1fr;
  }
  .connection-setting {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .group-tabs {
    gap: 7px;
  }
  .group-tabs button {
    font-size: 11px;
    padding: 9px 13px;
  }
  .night-grid {
    grid-template-columns: 1fr;
  }
  .support-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .support-link {
    padding: 16px;
  }
  .check-progress-heading strong {
    font-size: 11px;
  }
  .check-progress-count {
    font-size: 10px;
  }
  .check-progress-detail {
    font-size: 10px;
  }
  footer {
    margin: 0 18px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 9px;
  }
  #toast {
    left: 18px;
    right: 18px;
    max-width: none;
    font-size: 12px;
  }
  .legal {
    margin: 20px auto;
  }
  .legal h1 {
    font-size: 38px;
  }
}
@media (max-width: 390px) {
  .site-brand {
    font-size: 16px;
  }
  #header-profile {
    max-width: 78px;
  }
  #account {
    gap: 5px;
  }
  .site-nav {
    gap: 21px;
  }
  h1 {
    font-size: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Keep header navigation centered above its active underline. */
.site-nav {
  margin-top: 0;
}
.site-nav button {
  align-items: center;
  justify-content: center;
}
/* Shared matches stay in two rows; additional columns scroll within results. */
.downloads-page > .heading { display:block; }
.site-header > .button-link { justify-self:end; }
.button-link.primary { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
#how-it-works { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:760px) { #how-it-works { grid-template-columns:1fr; } }
.site-nav a { display:flex; align-items:center; padding:0 2px; color:var(--muted); font-size:13px; white-space:nowrap; position:relative; text-decoration:none; }
.site-nav a:hover,.site-nav a[aria-current] { color:var(--ink); }
.site-nav a[aria-current]:after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--accent); }
.downloads-page { max-width:1200px; margin:auto; }
.download-layout { display:grid; grid-template-columns:1.2fr 1fr; gap:28px; }
.download-card { border-top:3px solid var(--accent); }
.download-card>img { margin-bottom:24px; }
.download-card h2 { font-size:28px; }
#release-status { color:var(--accent); font-weight:600; margin:24px 0; }
#release-checksum { overflow-wrap:anywhere; }
@media(max-width:760px) { .download-layout { grid-template-columns:1fr; } .site-nav a { font-size:12px; } }
.toolbar .shared-total {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 18px;
  font-size: 24px;
}
.shared-total-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.shared-total-detail {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
#cards {
  grid-template-columns: none;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 30%, 310px);
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-color: var(--accent) var(--panel);
  scrollbar-width: auto;
  scroll-snap-type: x proximity;
}
#cards > .game { scroll-snap-align: start; min-width: 0; }
#cards > .empty { grid-column: 1 / -1; grid-row: 1 / -1; }
#cards:has(> .empty) { grid-template-columns: 1fr; grid-auto-columns: auto; }
#cards:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 760px) {
  #cards { grid-auto-columns: min(270px, 82vw); }
}
