@font-face {
  font-family: Inter;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url('/assets/fonts/barlow-condensed-800-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url('/assets/fonts/barlow-condensed-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0f1016;
  --surface: #191a23;
  --line: #2a2b36;
  --text: #f7f6fc;
  --muted: #aaaab9;
  --purple: #b99afc;
  --bright: #ddff76;
  --rail: 206px;
  --gutter: clamp(22px, 3vw, 52px);
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  background: radial-gradient(ellipse at 88% 0%, #191724 0, transparent 43%), var(--bg);
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--bright);
  outline-offset: 4px;
}
button[hidden],
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
ul,
dl {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
.icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: none;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 12px;
  padding: 12px;
  background: #14141c;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: #14151d;
  border-right: 1px solid #262732;
  padding: 0 17px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 34px 8px 44px;
  width: fit-content;
}
.brand-mark {
  width: 40px;
  height: 37px;
  flex: none;
}
.brand > span {
  font:
    italic 800 30px/0.78 'Barlow Condensed',
    Impact,
    sans-serif;
  letter-spacing: -0.025em;
}
.brand small {
  display: block;
  margin: 6px 0 0 2px;
  color: #c3a6ff;
  font:
    700 10px/1 Inter,
    sans-serif;
  letter-spacing: 0.33em;
}
.rail nav h2 {
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: #9796ab;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 12px 11px;
}
.rail nav h2:not(:first-child) {
  margin-top: 31px;
}
.nav-item {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #c3c2cf;
  font-size: 14px;
  font-weight: 550;
  margin: 3px 0;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
  color: #a9a6b9;
}
.nav-item.active {
  color: #d4bcff;
  background: #2c243b;
}
.nav-item.active .icon {
  color: #c7a1ff;
}
.nav-item:hover,
.rail-bottom button:hover {
  background: #22232e;
  color: white;
}
.nav-item small {
  font-size: 11px;
  color: #c1abdb;
  margin-left: auto;
}
.rail-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 15px 0 20px;
}
.rail-bottom button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  padding: 9px 7px;
  border-radius: 7px;
  color: #b5b3c2;
}
.rail-bottom .icon {
  width: 17px;
}
.mobile-open,
.mobile-close,
#menu-shade {
  display: none;
}
.workspace {
  margin-left: var(--rail);
  min-height: 100vh;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1710px;
  margin: auto;
  height: 74px;
  border-bottom: 1px solid #282834;
  padding-inline: var(--gutter);
}
.global-search {
  height: 37px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(405px, 66%);
  padding: 0 9px 0 13px;
  border: 1px solid #30313c;
  background: #1d1e28;
  border-radius: 8px;
  color: #a4a3b2;
}
.global-search:focus-within {
  border-color: #a98bd8;
}
.global-search .icon {
  width: 17px;
  height: 17px;
}
.global-search input {
  appearance: none;
  flex: 1;
  min-width: 0;
  background: none;
  color: #f7f6fc;
  border: 0;
  outline: none;
  font-size: 13px;
}
.global-search input:focus-visible {
  outline: none;
}
.global-search input::placeholder {
  color: #a9a6b8;
}
.global-search kbd,
.shortcut kbd,
.control-row kbd {
  border: 1px solid #40404e;
  border-radius: 4px;
  white-space: nowrap;
  background: #292a36;
  color: #c9c6d5;
  font:
    500 11px/1.4 Inter,
    sans-serif;
  padding: 2px 6px;
}
.quick-launch,
.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.quick-launch {
  border: 1px solid #3b3a48;
  border-radius: 7px;
  color: #e1dee9;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
  background: #1b1b24;
}
.quick-launch .icon {
  width: 15px;
  height: 15px;
  color: #c7a5ff;
}
.quick-launch:hover,
.button.subtle:hover {
  background: #2b2937;
}
.account-controls {
  position: relative;
  flex: none;
  z-index: 30;
}
.account-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #3b3a48;
  border-radius: 10px;
  color: #e1dee9;
  padding: 5px 10px 5px 6px;
  text-align: left;
  background: linear-gradient(145deg, #252331, #191922);
  min-height: 44px;
}
.account-trigger:hover,
.account-trigger[aria-expanded='true'] {
  border-color: #75658f;
  background: #292535;
}
.account-avatar {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #dcff8790;
  border-radius: 50%;
  background: linear-gradient(145deg, #d8ff78, #79ca9d);
  color: #171b1c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.account-trigger-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 145px;
}
.account-trigger-copy small,
.account-panel-head small {
  color: #aaa8bb;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.1;
}
.account-trigger-copy strong {
  overflow: hidden;
  color: #f6f4fc;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-chevron {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: #b7b3c5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform .16s ease;
}
.account-trigger[aria-expanded='true'] .account-chevron {
  transform: rotate(180deg);
}
.account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 26px));
  padding: 16px;
  border: 1px solid #393746;
  border-radius: 13px;
  background: radial-gradient(ellipse at top right, #302940, transparent 68%), #171720;
  box-shadow: 0 18px 55px #0009, inset 0 1px #ffffff08;
  color: var(--text);
}
.account-panel[hidden] {
  display: none;
}
.account-panel-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #34323f;
}
.account-avatar-large {
  width: 44px;
  height: 44px;
  font-size: 15px;
}
.account-panel-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.account-panel-head strong {
  overflow-wrap: anywhere;
  color: #f7f5fb;
  font-size: 15px;
  line-height: 1.2;
}
.account-panel-head p {
  margin-top: 2px;
  color: #aaa8b8;
  font-size: 11px;
  line-height: 1.45;
}
.account-menu-actions {
  display: grid;
  gap: 7px;
  padding-top: 12px;
}
.account-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  padding: 9px 11px;
  border: 1px solid #34323f;
  border-radius: 8px;
  background: #20202a;
  color: #e9e6f0;
  font-size: 12px;
  font-weight: 620;
  text-decoration: none;
}
.account-menu-link:hover {
  border-color: #716186;
  background: #292633;
}
.account-menu-primary {
  border-color: #d5f27a;
  background: #d5f27a;
  color: #1b211a;
}
.account-menu-primary:hover {
  border-color: #e1ff94;
  background: #e1ff94;
}
.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
main {
  max-width: 1710px;
  margin: 0 auto;
  padding: clamp(20px, 2.4vw, 35px) var(--gutter) 0;
  min-height: calc(100vh - 162px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.page-heading h1,
.player-title h1 {
  font-size: clamp(31px, 3.2vw, 49px);
  letter-spacing: -0.06em;
  line-height: 1.03;
  font-weight: 750;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 0 0 14px;
}
.section-heading h2,
.info-box h2,
.dialog-head h2 {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 720;
}
.section-kicker,
.ribbon,
.mode-body small {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
}
.section-kicker {
  display: block;
  color: var(--purple);
  margin-bottom: 6px;
}
.section-count {
  font-size: 12px;
  color: #b6b4c4;
}
.section-heading > a,
.text-link,
.account-note a,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c7acff;
  font-size: 13px;
  font-weight: 630;
}
.section-heading > a:hover,
.text-link:hover,
.account-note a:hover,
.back-link:hover {
  text-decoration: underline;
}
.section-heading > a .icon,
.text-link .icon,
.account-note .icon,
.back-link .icon {
  width: 15px;
  height: 15px;
}
.feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 330px;
  height: clamp(330px, 27vw, 442px);
  border-radius: 15px;
  border: 1px solid #454057;
  background: #252237;
  display: flex;
  align-items: center;
}
.feature-art,
.feature-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.feature-art {
  object-fit: cover;
  object-position: 70% 16%;
}
.feature-shade {
  background:
    linear-gradient(
      90deg,
      rgba(14, 13, 29, 0.89) 0%,
      rgba(24, 20, 39, 0.77) 24%,
      rgba(24, 21, 41, 0.33) 49%,
      transparent 69%
    ),
    linear-gradient(0deg, rgba(9, 11, 23, 0.26), transparent 32%);
}
.feature-inner {
  padding: clamp(24px, 3vw, 50px);
  max-width: 55%;
  align-self: center;
}
.ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e6d6ff;
  letter-spacing: 0.14em;
  line-height: 1.4;
}
.ribbon i {
  display: inline-block;
  width: 15px;
  height: 3px;
  background: #c9a9ff;
  transform: skew(-26deg);
}
.feature-title {
  font:
    italic 800 clamp(62px, 5.85vw, 99px) / 0.79 'Barlow Condensed',
    Impact,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.026em;
  max-width: 15ch;
  margin: 12px 0 12px;
  text-shadow: 0 2px 12px #14101b4b;
}
.feature-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12px;
  font-weight: 630;
  color: #eee6f8;
}
.feature-meta span {
  width: 3px;
  height: 3px;
  background: #b2a9bf;
  border-radius: 50%;
}
.feature-inner p {
  max-width: 385px;
  color: #dbd7e4;
  font-size: clamp(13px, 1.04vw, 16px);
  line-height: 1.52;
  letter-spacing: -0.012em;
  margin: 10px 0 19px;
}
.feature-actions,
.tile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.button {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
.button.primary {
  background: var(--bright);
  color: #1e2710;
  border: 1px solid var(--bright);
  box-shadow: 0 3px 12px #0b0e0520;
}
.button.primary:hover {
  background: #ebffa4;
}
.button.primary .icon,
.mode-play .icon {
  width: 15px;
  height: 15px;
}
.save-button,
.button.subtle {
  border: 1px solid #ffffff49;
  background: #1e202ed1;
  color: #f3f1fa;
}
.save-button .icon {
  width: 16px;
  height: 16px;
}
.save-button:hover,
.save-button[aria-pressed='true'] {
  border-color: #cfb6fa;
  background: #30273d;
}
.feature-info {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ffffff40;
  background: #12141da6;
  border-radius: 18px;
  padding: 6px 10px;
  font-size: 11px;
  color: white;
}
.feature-info .icon {
  width: 13px;
  height: 13px;
}
.feature-info:hover {
  background: #212337;
}
.mode-section,
.catalog-section,
.details-grid {
  margin-top: clamp(25px, 3vw, 45px);
}
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(13px, 1.5vw, 24px);
}
@media (min-width: 950px) {
  .modes:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mode-card,
.game-tile,
.info-box,
.empty,
.player-controls {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.mode-card,
.game-tile {
  overflow: hidden;
}
.mode-card {
  display: block;
  transition: border-color 0.15s;
}
.mode-card:hover {
  border-color: #8c73b4;
}
.mode-art,
.tile-cover {
  position: relative;
  overflow: hidden;
  display: block;
  background: #222435;
}
.mode-art {
  height: clamp(112px, 12.3vw, 202px);
}
.mode-art::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #11121e40);
}
.mode-art img,
.tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mode-art img {
  object-position: 50% 53%;
  transition: transform 0.3s;
}
.mode-card:hover .mode-art img {
  transform: scale(1.025);
}
.mode-tag {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #14141dd9;
  color: #fff;
  border: 1px solid #ffffff35;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
}
.mode-tag .icon {
  width: 13px;
  height: 13px;
}
.mode-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px 15px;
}
.mode-body small {
  display: block;
  color: #b69bdc;
  font-size: 9px;
  margin-bottom: 4px;
}
.mode-body h3,
.tile-title {
  font-size: clamp(19px, 1.75vw, 27px);
  font-weight: 710;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.mode-body p,
.tile-body p,
.page-intro,
.empty p,
.info-box p,
.account-note,
.player-tools,
.graphics-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.mode-body p {
  margin-top: 3px;
  font-size: 13px;
}
.mode-play {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  background: #2c2b37;
  border: 1px solid #444150;
  color: #e6d7ff;
  border-radius: 50%;
}
.mode-play .icon {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 17px;
}
.game-tile {
  max-width: 465px;
}
.tile-cover {
  aspect-ratio: 2.05;
}
.tile-body {
  padding: 16px;
}
.tile-meta {
  color: #bca6dc;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
.tile-body p {
  margin: 8px 0 14px;
}
.tile-actions .button {
  min-height: 34px;
  font-size: 12px;
  padding: 7px 12px;
}
.button.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}
.catalog-tools,
.genre-list,
.sorter,
.player-title,
.player-tools,
.player-tools > div,
.device {
  display: flex;
  align-items: center;
  gap: 9px;
}
.catalog-tools,
.player-title,
.player-tools {
  justify-content: space-between;
  flex-wrap: wrap;
}
.genre-list {
  flex-wrap: wrap;
}
.genre-list button {
  color: #c6c4d4;
  background: var(--surface);
  border: 1px solid #363541;
  font-weight: 550;
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 18px;
}
.genre-list button[aria-pressed='true'] {
  color: #ded1ff;
  background: #392d4c;
  border-color: #715a98;
}
.sorter {
  color: #a9a6b9;
  font-size: 12px;
}
.sorter select {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #21212b;
  color: white;
  font-size: 12px;
}
#results-count,
#library-total {
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.empty {
  padding: clamp(30px, 6vw, 72px);
  text-align: center;
}
.empty > .icon {
  margin: 0 auto 12px;
  width: 34px;
  height: 34px;
  color: var(--purple);
}
.empty h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
}
.empty p {
  margin: 8px auto 17px;
}
.not-found {
  margin-top: 5vh;
}
.back-link {
  margin-bottom: 17px;
}
.details-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}
.info-box {
  padding: 21px;
}
.info-box h2 {
  font-size: 22px;
  margin-bottom: 15px;
}
.info-box dl > div,
.control-row,
.shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #30303a;
  font-size: 13px;
}
.info-box dt {
  color: var(--muted);
}
.info-box dd {
  margin: 0;
  text-align: right;
}
.info-box p {
  margin: 16px 0 8px;
}
.back-link {
  color: #bbb7cb;
}
.player-title {
  margin: 0 0 15px;
}
.player-title h1 {
  font-size: clamp(28px, 3vw, 42px);
}
.game-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16/8.6;
  min-height: min(420px, 64vw);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: #141c25;
}
.game-stage:fullscreen {
  height: 100%;
  width: 100%;
  border: 0;
  border-radius: 0;
}
.game-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
}
.player-tools {
  margin: 13px 0;
}
.player-tools .icon {
  width: 15px;
}
.device,
.player-tools > div {
  gap: 6px;
}
.player-tools > div {
  gap: 16px;
}
.account-note {
  margin: 10px 0;
}
.account-note a {
  white-space: normal;
}
.player-controls {
  margin-top: 20px;
  padding: 14px 18px;
}
.player-controls summary {
  cursor: pointer;
  font-weight: 600;
}
.player-controls > div {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}
.graphics-note {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  background: #322c21;
  border: 1px solid #5b4c33;
  color: #f1dfae;
  margin-top: 10px;
  border-radius: 7px;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a8a5b7;
  border-top: 1px solid var(--line);
  margin: 35px var(--gutter) 0;
  padding: 16px 0;
  font-size: 12px;
}
.footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer .brand-mark {
  width: 17px;
  height: 16px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer a:hover {
  text-decoration: underline;
}
.legal-document {
  width: min(900px, 100%);
  margin: 20px auto 60px;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid #2e2c3a;
  border-radius: 14px;
  background: linear-gradient(145deg, #1b1a25, #15151d 65%);
  box-shadow: 0 18px 50px #0002;
}
.legal-document h1 {
  margin: 7px 0 8px;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -.055em;
  line-height: 1.05;
}
.legal-updated {
  margin-bottom: 26px;
  color: #aaa8bb;
  font-size: 12px;
}
.legal-document h2 {
  margin: 27px 0 9px;
  color: #f0ecfa;
  font-size: 18px;
  letter-spacing: -.025em;
}
.legal-document p,
.legal-document li {
  color: #c3c0cf;
  font-size: 14px;
  line-height: 1.75;
}
.legal-document p + p {
  margin-top: 12px;
}
.legal-document ul {
  display: grid;
  gap: 9px;
  padding-left: 21px;
  margin-top: 10px;
}
.legal-document a {
  color: #d0b5ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-document a:hover {
  color: #e4d4ff;
}
.legal-document strong {
  color: #f1eeff;
}
.legal-document .legal-related {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #34323f;
}
dialog {
  color: var(--text);
  border: 1px solid #444151;
  border-radius: 11px;
  background: #20202b;
  padding: 20px;
  width: min(390px, 90vw);
}
dialog::backdrop {
  background: #09090ebd;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.dialog-head h2 {
  font-size: 22px;
}
.toast {
  position: fixed;
  z-index: 50;
  bottom: 24px;
  right: 24px;
  max-width: min(380px, 90vw);
  padding: 11px 17px;
  border: 1px solid #5a506d;
  background: #292631;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 6px 25px #0004;
}
@media (min-width: 1750px) {
  .workspace {
    max-width: 1790px;
    margin-inline: auto;
    padding-left: var(--rail);
  }
  .rail {
    left: max(0px, calc((100vw - 1790px) / 2));
  }
}
@media (max-width: 1100px) {
  :root {
    --rail: 176px;
    --gutter: 22px;
  }
  .rail {
    padding-inline: 12px;
  }
  .brand {
    margin-left: 9px;
  }
  .nav-item {
    font-size: 13px;
  }
  .feature-inner {
    max-width: 59%;
  }
  .feature-inner p {
    max-width: 340px;
  }
  .feature-title {
    font-size: 66px;
  }
  .topbar {
    height: 64px;
  }
}
@media (max-width: 800px) {
  :root {
    --rail: 0px;
    --gutter: 19px;
  }
  .rail {
    width: 224px;
    transform: translateX(-100%);
    transition: transform 0.18s;
  }
  .rail.open {
    transform: translateX(0);
  }
  .rail .brand {
    margin-top: 28px;
  }
  .mobile-close {
    display: grid;
    position: absolute;
    right: 10px;
    top: 21px;
  }
  .mobile-open {
    display: grid;
    flex: none;
  }
  .topbar {
    gap: 9px;
  }
  .global-search {
    width: auto;
    flex: 1;
  }
  .quick-launch {
    flex: none;
  }
  .account-controls {
    z-index: 30;
  }
  .account-trigger {
    gap: 6px;
    padding: 5px;
  }
  .account-trigger-copy {
    display: none;
  }
  .account-chevron {
    width: 13px;
  }
  .account-panel {
    right: -4px;
  }
  .footer {
    align-items: flex-start;
    gap: 15px;
  }
  .footer nav {
    justify-content: flex-end;
    gap: 13px;
  }
  .mobile-close.icon-button,
  .mobile-open.icon-button {
    display: grid;
  }
  #menu-shade:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: #080910a6;
    z-index: 19;
  }
  .feature-inner {
    max-width: 62%;
  }
  .feature {
    height: 332px;
  }
  .feature-art {
    object-position: 66% 14%;
  }
  .mode-art {
    height: clamp(99px, 21vw, 155px);
  }
}
@media (min-width: 801px) {
  .mobile-open.icon-button,
  .mobile-close.icon-button {
    display: none;
  }
}
@media (max-width: 540px) {
  :root {
    --gutter: 13px;
  }
  .topbar {
    height: 56px;
  }
  .global-search {
    min-width: 0;
  }
  .global-search input {
    font-size: 12px;
  }
  .global-search kbd,
  .quick-launch span {
    display: none;
  }
  .quick-launch {
    padding: 8px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .page-heading {
    margin-bottom: 13px;
  }
  .feature {
    height: auto;
    min-height: 381px;
    align-items: end;
  }
  .feature-art {
    object-position: 75% 4%;
  }
  .feature-shade {
    background:
      linear-gradient(90deg, #18142791, transparent 85%),
      linear-gradient(0deg, #151321 0%, #181525e0 23%, #211a3440 68%, transparent);
  }
  .feature-inner {
    width: 100%;
    max-width: none;
    align-self: end;
    padding: 21px 17px 18px;
  }
  .feature-title {
    font-size: 60px;
    margin: 9px 0;
  }
  .feature-inner p {
    font-size: 13px;
    max-width: 80%;
    line-height: 1.4;
    margin: 9px 0 14px;
  }
  .feature-meta {
    font-size: 11px;
  }
  .feature-info {
    right: 9px;
    bottom: auto;
    top: 9px;
  }
  .feature-actions .button {
    padding: 9px 12px;
    min-height: 38px;
    font-size: 12px;
  }
  .modes {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .mode-art {
    height: 145px;
  }
  .mode-body {
    padding: 11px 13px;
  }
  .mode-body h3 {
    font-size: 22px;
  }
  .mode-section,
  .catalog-section,
  .details-grid {
    margin-top: 25px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .details-grid,
  .player-controls > div {
    grid-template-columns: 1fr;
  }
  .player-tools {
    gap: 9px;
  }
  .sorter {
    margin-left: auto;
  }
  .game-stage {
    min-height: 260px;
  }
  .player-title .button span {
    display: none;
  }
  .account-note {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.global-search {
  position: relative;
}
.search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border-radius: 8px;
  border: 1px solid #474251;
  background: #20202b;
  padding: 5px;
  box-shadow: 0 8px 22px #09081280;
}
.search-results a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 5px;
  font-size: 14px;
  color: #f4f0f9;
}
.search-results a:focus,
.search-results a:hover {
  background: #302a3d;
}
.search-results img {
  width: 50px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}
.search-results small {
  display: block;
  font-size: 11px;
  color: #b8aecb;
  margin-top: 2px;
}
.search-results a.all-matches {
  color: #cfb3ff;
  font-size: 12px;
}
.nav-item > span {
  white-space: nowrap;
}
.nav-item small:empty {
  display: none;
}
