:root {
  color-scheme: light;
  --page-bg: #f7f5ef;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #1d1c24;
  --text: #605e66;
  --muted: #817f87;
  --border: #dedbd2;
  --lime: #c7ff31;
  --lime-dark: #8bbd00;
  --purple: #8b5cf6;
  --purple-soft: #e8ddff;
  --coral: #ff6647;
  --yellow: #ffd45c;
  --black: #111116;
  --shadow: 0 10px 30px rgb(34 30 24 / 8%);
  --shadow-hard: 5px 5px 0 #1d1c24;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #17161b;
  --surface: #211f26;
  --surface-strong: #29262f;
  --ink: #fbfaf5;
  --text: #cbc7d2;
  --muted: #9d98aa;
  --border: #3f3a49;
  --purple-soft: #372950;
  --black: #09090c;
  --shadow: 0 12px 35px rgb(0 0 0 / 25%);
  --shadow-hard: 5px 5px 0 #c7ff31;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 10%, rgb(139 92 246 / 8%), transparent 30rem),
    var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: #111;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 252px;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 2px 0 18px rgb(20 18 28 / 8%);
}

.sidebar__top {
  position: relative;
  padding: 22px 20px 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.05;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--lime);
  color: #18151f;
  transform: rotate(-4deg);
}

.brand__mark svg {
  width: 35px;
  height: 35px;
}

.brand__words {
  font-size: 17px;
  letter-spacing: -.02em;
}

.brand__words strong {
  color: var(--purple);
  font-size: 20px;
}

.sidebar__close {
  display: none !important;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 14px;
}

.side-nav::before {
  margin: 0 10px 5px;
  color: var(--muted);
  content: "FIND YOUR FLAVOR";
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

.side-nav__item {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  padding: 8px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
  text-align: left;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.side-nav__item:hover {
  background: var(--page-bg);
  color: var(--ink);
  transform: translateX(3px);
}

.side-nav__item.is-active {
  background: var(--lime);
  color: #19171e;
}

.side-nav__item.is-active::before {
  position: absolute;
  left: -14px;
  width: 5px;
  height: 26px;
  border-radius: 0 10px 10px 0;
  background: var(--purple);
  content: "";
}

.side-nav__icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 9px;
  font-size: 15px;
}

.sidebar__note {
  position: relative;
  margin: auto 20px 24px;
  padding: 16px 15px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--purple-soft);
  color: var(--ink);
  font-size: 12px;
  transform: rotate(-1.5deg);
}

.sidebar__note p {
  margin: 0 0 0 15px;
}

.status-dot {
  position: absolute;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-dark);
  box-shadow: 0 0 0 4px rgb(199 255 49 / 25%);
}

.page-shell {
  min-width: 0;
  margin-left: 252px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 2.6vw, 40px);
  border-bottom: 1px solid rgb(125 120 110 / 14%);
  background: color-mix(in srgb, var(--page-bg) 89%, transparent);
  backdrop-filter: blur(18px);
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

.menu-button,
.brand--mobile {
  display: none;
}

.search-wrap {
  position: relative;
  width: min(620px, 58vw);
  margin: 0 auto;
}

.search {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgb(23 20 31 / 4%);
}

.search:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgb(139 92 246 / 12%);
}

.search svg {
  width: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 2;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search input::placeholder {
  color: var(--muted);
}

kbd {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--page-bg);
  color: var(--muted);
  font-size: 12px;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 50;
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.search-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.search-result:hover {
  background: var(--page-bg);
}

.search-result img {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.theme-icon {
  font-size: 22px;
}

main {
  padding: 0 clamp(16px, 2.6vw, 40px) 70px;
}

.marquee {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  padding: clamp(30px, 4vw, 54px) 0 26px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.12;
}

h1 {
  max-width: 800px;
  margin-bottom: 0;
  font-size: clamp(38px, 4.4vw, 72px);
  letter-spacing: -.055em;
}

h1 em {
  position: relative;
  display: inline-block;
  color: var(--purple);
  font-style: normal;
}

h1 em::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8c41-6 80 3 116-2 31-4 48-1 80-3' fill='none' stroke='%23c7ff31' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  content: "";
}

.marquee > p {
  max-width: 390px;
  margin-bottom: 7px;
  font-size: 15px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 25px;
}

.game-column {
  min-width: 0;
}

.player-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: #08080b;
  box-shadow: var(--shadow-hard);
  isolation: isolate;
}

.player-preview,
.player-loading {
  position: absolute;
  inset: 0;
}

.player-preview {
  display: grid;
  place-items: center;
}

.player-preview__blur {
  position: absolute;
  inset: -25px;
  width: calc(100% + 50px);
  height: calc(100% + 50px);
  filter: blur(25px);
  object-fit: cover;
  opacity: .65;
  transform: scale(1.08);
}

.player-preview__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-preview__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(5 5 9 / 20%), rgb(5 5 9 / 85%));
}

.player-preview__content {
  position: relative;
  display: flex;
  width: min(520px, 88%);
  align-items: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
  transform: translateY(-12px);
}

.player-preview__badge {
  margin-bottom: 12px;
  padding: 5px 11px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  background: rgb(0 0 0 / 28%);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.player-preview__icon {
  width: 108px;
  height: 108px;
  margin-bottom: 15px;
  border: 4px solid #fff;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgb(0 0 0 / 35%);
  object-fit: cover;
  transform: rotate(-3deg);
}

.player-preview h2 {
  max-width: 600px;
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -.035em;
}

.player-preview p {
  margin-bottom: 20px;
  color: rgb(255 255 255 / 82%);
  font-size: 14px;
}

.play-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 28px;
  border: 2px solid #fff;
  border-radius: 16px;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgb(255 255 255 / 13%), 0 10px 25px rgb(255 75 46 / 36%);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.play-button:hover {
  box-shadow: 0 0 0 7px rgb(255 255 255 / 15%), 0 13px 30px rgb(255 75 46 / 45%);
  transform: translateY(-3px) rotate(-1deg);
}

.play-button span {
  font-size: 15px;
}

.player-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.player-loading {
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  background: #0d0c12;
  color: #fff;
  text-align: center;
}

.player-loading p {
  color: #aaa6b2;
}

.reel-loader {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  place-items: center;
  border: 7px dashed var(--lime);
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
}

.reel-loader span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--purple);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.player-slow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgb(0 0 0 / 78%);
  color: #fff;
  font-size: 12px;
}

.player-slow p {
  margin: 0;
}

.text-button {
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.action-card {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.game-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.game-identity img {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 13px;
  object-fit: cover;
}

.game-identity span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.game-identity h2 {
  overflow: hidden;
  max-width: 340px;
  margin: 0;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 5px;
}

.action-button {
  display: flex;
  min-width: 48px;
  height: 52px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.action-button:hover,
.action-button[aria-pressed="true"] {
  background: var(--purple-soft);
  color: var(--purple);
  transform: translateY(-3px);
}

.action-button > span {
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.action-button small {
  font-size: 9px;
  font-weight: 750;
}

.hot-rail {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 39px);
  letter-spacing: -.035em;
}

.section-heading p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.section-heading--compact {
  margin-bottom: 14px;
}

.section-heading--compact h2 {
  font-size: 25px;
}

.scribble-arrow {
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 30px;
  transform: rotate(12deg);
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.hot-card,
.game-card {
  position: relative;
  display: block;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.hot-card__image,
.game-card__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--purple-soft);
}

.hot-card__image {
  aspect-ratio: 1;
}

.hot-card img,
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.hot-card:hover img,
.game-card:hover img {
  transform: scale(1.06);
}

.hot-card__play,
.game-card__play {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 5px 14px rgb(0 0 0 / 25%);
  opacity: 0;
  transform: scale(.75);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hot-card__play {
  right: 8px;
  bottom: 8px;
  width: 35px;
  height: 35px;
  font-size: 11px;
}

.hot-card:hover .hot-card__play,
.game-card:hover .game-card__play {
  opacity: 1;
  transform: scale(1);
}

.hot-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 2px 0;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hot-card.is-current .hot-card__image {
  box-shadow: 0 0 0 3px var(--lime);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 25px;
  margin-top: 32px;
}

.content-card,
.quick-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-card {
  padding: clamp(23px, 3vw, 38px);
}

.content-card h2 {
  max-width: 760px;
  margin-bottom: 11px;
  font-size: clamp(29px, 3.4vw, 46px);
  letter-spacing: -.04em;
}

.accent-line {
  width: 52px;
  height: 6px;
  margin-bottom: 23px;
  border-radius: 10px;
  background: var(--lime);
  transform: rotate(-2deg);
}

.content-card .lede {
  max-width: 820px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.78;
}

.content-card h3 {
  margin: 31px 0 9px;
  font-size: 22px;
}

.feature-list {
  display: grid;
  gap: 11px;
  margin: 17px 0 25px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-list span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 27px;
}

.tag {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--page-bg);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.source-note {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 12px;
}

.quick-card {
  position: sticky;
  top: 98px;
  overflow: visible;
  padding: 28px 23px 23px;
  background: var(--yellow);
  color: #25211b;
  transform: rotate(1deg);
}

.quick-card__tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 75px;
  height: 27px;
  background: rgb(255 255 255 / 55%);
  transform: translateX(-50%) rotate(-3deg);
}

.quick-card .eyebrow {
  color: #6541c6;
}

.quick-card h2 {
  margin-bottom: 19px;
  color: #25211b;
  font-size: 31px;
}

.quick-card dl {
  margin: 0 0 22px;
}

.quick-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgb(37 33 27 / 25%);
}

.quick-card dt {
  font-weight: 850;
}

.quick-card dd {
  margin: 0;
  text-align: right;
}

.secondary-play {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border: 2px solid #25211b;
  border-radius: 13px;
  background: #25211b;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 900;
}

.secondary-play:hover {
  background: var(--purple);
}

.collection-section {
  margin-top: 58px;
  scroll-margin-top: 100px;
}

body.is-category-view .game-layout,
body.is-category-view .content-grid {
  display: none;
}

body.is-category-view .marquee {
  min-height: 300px;
  align-items: center;
  padding-bottom: 42px;
  border-bottom: 1px dashed var(--border);
}

body.is-category-view .collection-section {
  margin-top: 34px;
}

body.is-category-view .manifesto {
  margin-top: 52px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 21px;
}

.filter-chip {
  min-height: 39px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 24px);
}

.game-card__image {
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgb(26 22 35 / 8%);
  transition: border-color 180ms ease, transform 180ms ease;
}

.game-card:hover .game-card__image {
  border-color: var(--lime-dark);
  transform: translateY(-5px);
}

.game-card__play {
  right: 12px;
  bottom: 12px;
  width: 43px;
  height: 43px;
}

.game-card__meta {
  padding: 10px 3px 2px;
}

.game-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 15px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.game-card.is-current .game-card__image {
  border-color: var(--purple);
  box-shadow: 5px 5px 0 var(--purple-soft);
}

.empty-state {
  padding: 50px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.empty-state > span {
  color: var(--purple);
  font-family: var(--font-display);
  font-size: 46px;
}

.manifesto {
  position: relative;
  overflow: hidden;
  margin-top: 70px;
  padding: clamp(33px, 5vw, 65px);
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow-hard);
}

.manifesto::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 18%) 1px, transparent 1px);
  background-size: 17px 17px;
  content: "";
}

.manifesto p {
  position: relative;
  max-width: 800px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 70px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .98;
}

.manifesto p span {
  color: var(--lime);
}

.manifesto__sticker {
  position: absolute;
  right: 5%;
  bottom: 17%;
  display: grid;
  width: 105px;
  height: 105px;
  place-items: center;
  border: 3px solid #18151f;
  border-radius: 50%;
  background: var(--yellow);
  color: #18151f;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transform: rotate(11deg);
}

footer {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr;
  align-items: center;
  gap: 25px;
  padding: 28px clamp(16px, 2.6vw, 40px);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.brand--footer small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
}

footer nav {
  display: flex;
  gap: 17px;
  font-size: 12px;
  font-weight: 800;
}

footer nav a:hover {
  color: var(--purple);
}

footer > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

dialog {
  width: min(440px, calc(100% - 30px));
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-hard);
}

dialog::backdrop {
  background: rgb(12 10 17 / 65%);
  backdrop-filter: blur(5px);
}

dialog form {
  position: relative;
  display: flex;
  padding: 30px;
  flex-direction: column;
  gap: 12px;
}

dialog h2 {
  margin-bottom: 0;
  font-size: 30px;
}

dialog p,
dialog label {
  font-size: 13px;
}

dialog label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 10px;
  background: var(--page-bg);
  cursor: pointer;
  font-size: 22px;
}

.play-button--small {
  margin-top: 10px;
  border-color: var(--ink);
  font-size: 15px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 320px;
  padding: 12px 17px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
  color: #18151f;
  font-size: 13px;
  font-weight: 850;
}

.legal-page {
  min-height: 100vh;
}

.legal-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 70px;
}

.legal-shell .brand {
  margin-bottom: 50px;
}

.legal-card {
  padding: clamp(25px, 5vw, 50px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin-bottom: 20px;
  font-size: clamp(38px, 7vw, 64px);
}

.legal-card h2 {
  margin-top: 35px;
}

.draft-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: #25211b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

@media (max-width: 1250px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .hot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hot-card__image {
    aspect-ratio: 4 / 3;
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1102px) {
  .sidebar {
    width: min(310px, 86vw);
    transform: translateX(-105%);
    transition: transform 240ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar__close {
    position: absolute;
    top: 17px;
    right: 13px;
    display: grid !important;
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgb(13 11 17 / 55%);
    backdrop-filter: blur(3px);
  }

  .page-shell {
    margin-left: 0;
  }

  .menu-button,
  .brand--mobile {
    display: inline-flex;
  }

  .menu-button {
    display: grid;
    gap: 4px;
  }

  .menu-button span {
    width: 19px;
    height: 2px;
    border-radius: 4px;
    background: currentColor;
  }

  .brand--mobile .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand--mobile .brand__words {
    display: none;
  }
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    position: relative;
    top: 0;
    width: min(100%, 500px);
  }

  .action-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    width: 100%;
    justify-content: center;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer .brand {
    justify-content: center;
  }

  footer nav {
    justify-content: center;
  }

  footer > p {
    text-align: center;
  }
}

@media (max-width: 700px) {
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
  }

  .search-wrap {
    order: 3;
    width: 100%;
  }

  .theme-button {
    margin-left: auto;
  }

  .search kbd {
    display: none;
  }

  main {
    padding: 0 13px 50px;
  }

  .marquee {
    display: block;
    padding: 27px 2px 20px;
  }

  .marquee > p {
    margin-top: 20px;
  }

  body.is-category-view .marquee {
    min-height: 0;
    padding-bottom: 30px;
  }

  .player-card {
    min-height: min(67vw, 430px);
    border-width: 2px;
    border-radius: 17px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .player-preview__icon {
    width: 72px;
    height: 72px;
    margin-bottom: 9px;
    border-radius: 17px;
  }

  .player-preview__content {
    transform: none;
  }

  .player-preview__badge,
  .player-preview p {
    display: none;
  }

  .player-preview h2 {
    margin-bottom: 13px;
    font-size: 21px;
  }

  .play-button {
    min-height: 48px;
    padding: 9px 22px;
    font-size: 17px;
  }

  .player-slow {
    left: 8px;
    right: 8px;
    justify-content: center;
  }

  .player-slow p {
    display: none;
  }

  .game-identity {
    width: 100%;
  }

  .game-identity h2 {
    max-width: calc(100vw - 115px);
  }

  .actions {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .action-button {
    min-width: 54px;
  }

  .hot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-card {
    padding: 22px 19px;
  }

  .content-card .lede {
    font-size: 15px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-heading--compact {
    flex-direction: row;
  }

  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .game-grid {
    gap: 14px;
  }

  .game-card__image {
    aspect-ratio: 1;
  }

  .manifesto__sticker {
    position: relative;
    right: auto;
    bottom: auto;
    width: 80px;
    height: 80px;
    margin-top: 25px;
  }
}

@media (max-width: 430px) {
  .game-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-card h3 {
    font-size: 13px;
  }

  .game-card p {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
