:root {
  --bg: #f4f5f8;
  --panel: #ffffff;
  --panel-soft: #fafafd;
  --ink: #272936;
  --muted: #7b7f8d;
  --muted-dark: #5f6372;
  --line: #e2e4eb;
  --line-strong: #d2d5df;
  --accent: #ff5c68;
  --accent-dark: #e94755;
  --purple: #7659e8;
  --cyan: #18b8d1;
  --yellow: #f2bf3f;
  --green: #38ad7b;
  --blue: #4c82e9;
  --pink: #e77ead;
  --navy: #252937;
  --shadow: 0 5px 18px rgba(38, 41, 54, 0.07);
  --shadow-hover: 0 10px 26px rgba(38, 41, 54, 0.15);
  --content-max: 1540px;
  --sidebar-width: 190px;
  --right-rail-width: 218px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

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

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

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
}

h2 {
  font-size: 1.2rem;
  font-weight: 800;
}

h3 {
  font-size: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
  transform: translateY(-160%);
}

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

.nav-scrim {
  display: none;
}

.nav-scrim[hidden] {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(38, 41, 54, 0.05);
}

.topbar-inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 32px), var(--content-max));
  min-height: 64px;
  margin: 0 auto;
  gap: 18px;
}

.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--accent-dark);
  font-size: 1.22rem;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 34px;
  height: 24px;
  padding: 2px 4px;
  color: #fff;
  background: var(--navy);
  border-radius: 6px 8px 6px 8px;
  transform: rotate(-5deg);
}

.logo-badge span {
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.logo-badge span:first-child {
  color: var(--cyan);
}

.logo-badge span:last-child {
  color: var(--yellow);
}

.top-search {
  display: flex;
  flex: 1 1 390px;
  max-width: 520px;
  height: 40px;
  color: var(--ink);
  background: #f1f2f5;
  border: 1px solid transparent;
  border-radius: 21px;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.top-search:focus-within {
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(76, 130, 233, 0.12);
}

.top-search input {
  min-width: 0;
  flex: 1;
  padding: 0 8px 0 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.top-search input::placeholder {
  color: #9b9eaa;
}

.search-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 42px;
  justify-content: center;
  padding: 0 15px;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 750;
  cursor: pointer;
  background: var(--accent);
  border: 0;
  border-radius: 20px;
}

.search-button:hover {
  background: var(--accent-dark);
}

.search-glyph {
  font-size: 1.32rem;
  line-height: 0.7;
  transform: rotate(-20deg);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  white-space: nowrap;
}

.top-nav a {
  padding: 8px 10px;
  color: var(--muted-dark);
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 7px;
}

.top-nav a:hover,
.top-nav a.is-active {
  color: var(--accent-dark);
  background: #fff0f1;
}

.top-nav-dropdown {
  position: relative;
}

.top-nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-caret {
  color: #a3a6b1;
  font-size: 0.78rem;
  line-height: 1;
  transform: translateY(-1px);
}

.top-nav-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: -8px;
  z-index: 30;
  width: 304px;
  max-height: min(72vh, 540px);
  padding: 10px;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(38, 41, 54, 0.16);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 130ms ease, transform 130ms ease, visibility 130ms ease;
}

.top-nav-menu::before {
  position: absolute;
  top: -3px;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
}

.top-nav-dropdown:hover .top-nav-menu,
.top-nav-dropdown:focus-within .top-nav-menu {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.top-nav-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 5px 8px;
  border-bottom: 1px solid var(--line);
}

.top-nav-menu-head strong {
  color: var(--ink);
  font-size: 0.75rem;
}

.top-nav-menu-head a,
.top-nav-menu-footer {
  color: var(--accent-dark) !important;
  background: transparent !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
}

.top-nav-menu-head a {
  padding: 2px 0 !important;
}

.top-nav-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 7px 0;
}

.top-nav-menu-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  padding: 7px 6px !important;
  color: var(--muted-dark) !important;
  background: transparent !important;
  border-radius: 5px;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
}

.top-nav-menu-grid a:hover,
.top-nav-menu-grid a:focus-visible {
  color: var(--accent-dark) !important;
  background: #fff1f2 !important;
}

.top-nav-menu-grid small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.top-nav-menu-footer {
  display: flex;
  justify-content: space-between;
  padding: 9px 6px 2px !important;
  border-top: 1px solid var(--line);
}

.header-action,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  background: var(--accent);
  border: 0;
  border-radius: 7px;
  box-shadow: 0 4px 10px rgba(255, 92, 104, 0.2);
}

.header-action:hover,
.primary-button:hover {
  background: var(--accent-dark);
  box-shadow: 0 7px 15px rgba(255, 92, 104, 0.26);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  border: 0;
}

.mobile-nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
}

.hamburger,
.hamburger i {
  display: block;
}

.hamburger {
  width: 20px;
}

.hamburger i {
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  border-radius: 2px;
}

.page-frame {
  width: min(calc(100% - 32px), var(--content-max));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.site-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--right-rail-width);
  align-items: start;
  gap: 18px;
}

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

.site-sidebar,
.right-rail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.site-sidebar {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 12px 10px 13px;
}

.site-sidebar::-webkit-scrollbar {
  width: 5px;
}

.site-sidebar::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 5px;
}

.sidebar-section + .sidebar-section {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.sidebar-heading {
  padding: 0 8px 7px;
  color: #a0a3ae;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 9px;
  padding: 5px 8px;
  color: var(--muted-dark);
  font-size: 0.84rem;
  font-weight: 680;
  border-radius: 6px;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  color: var(--accent-dark);
  background: #fff1f2;
}

.sidebar-link small {
  margin-left: auto;
  color: #a3a6b1;
  font-size: 0.69rem;
  font-weight: 700;
}

.nav-symbol {
  display: inline-flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #fff;
  font-size: 0.79rem;
  font-weight: 900;
  line-height: 1;
  border-radius: 6px;
}

.symbol-home {
  background: var(--accent);
}

.symbol-new {
  background: var(--cyan);
}

.symbol-popular {
  background: var(--yellow);
  color: #72520a;
}

.symbol-category {
  background: var(--purple);
  font-size: 0.56rem;
}

.symbol-tag {
  background: var(--green);
}

.sidebar-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px 3px 39px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 750;
}

.sidebar-more:hover {
  text-decoration: underline;
}

.right-rail {
  position: sticky;
  top: 82px;
  min-width: 0;
  padding: 14px 11px 12px;
}

.right-rail-header,
.shelf-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.right-rail-header {
  padding: 1px 4px 10px;
  border-bottom: 1px solid var(--line);
}

.right-rail-header h2 {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.right-rail-header a,
.shelf-header > a {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.right-rail-header a:hover,
.shelf-header > a:hover {
  text-decoration: underline;
}

.right-rail-section + .right-rail-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.right-rail-note {
  margin: 6px 4px 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.compact-list {
  display: grid;
  gap: 2px;
  padding-top: 7px;
}

.compact-game {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 7px;
}

.compact-game:hover {
  background: #f5f6fa;
}

.compact-thumb {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 850;
  background: var(--navy);
  border-radius: 5px;
}

.compact-thumb img,
.game-thumb img,
.spotlight-art img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-thumb-fallback,
.compact-thumb-fallback,
.player-cover-fallback {
  display: none;
}

.game-thumb.image-missing .game-thumb-fallback,
.game-thumb.image-failed .game-thumb-fallback,
.compact-thumb.image-missing .compact-thumb-fallback,
.compact-thumb.image-failed .compact-thumb-fallback,
.player-cover.image-missing .player-cover-fallback,
.player-cover.image-failed .player-cover-fallback {
  display: grid;
}

.image-failed [data-game-image] {
  display: none;
}

.compact-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.compact-copy strong {
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 760;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 2px 16px;
}

.section-kicker {
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-intro h1 {
  font-size: 2rem;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 620px;
  margin-top: 7px;
  color: var(--muted-dark);
  font-size: 0.94rem;
}

.intro-count {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 0;
  color: var(--muted);
  line-height: 1.15;
}

.intro-count strong {
  color: var(--purple);
  font-size: 1.75rem;
  font-weight: 850;
}

.intro-count span {
  font-size: 0.7rem;
  font-weight: 750;
}

.spotlight-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(230px, 0.95fr);
  min-height: 214px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 30px;
}

.spotlight-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  border-radius: 4px;
}

.spotlight-copy h2 {
  max-width: 420px;
  margin-top: 12px;
  font-size: 1.75rem;
  letter-spacing: 0;
}

.spotlight-copy p {
  max-width: 450px;
  margin-top: 8px;
  color: #c9cbd3;
  font-size: 0.86rem;
}

.spotlight-copy .primary-button {
  margin-top: 17px;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: none;
}

.spotlight-copy .primary-button:hover {
  background: #ffd76a;
  box-shadow: none;
}

.spotlight-art {
  position: relative;
  min-height: 214px;
  overflow: hidden;
  background: #3c4050;
}

.spotlight-art img {
  position: absolute;
  inset: 0;
  opacity: 0.92;
}

.spotlight-art::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 36%;
  content: "";
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 52% 100%, 0 100%);
}

.art-burst {
  position: absolute;
  z-index: 2;
  display: block;
  width: 44px;
  height: 9px;
  background: var(--yellow);
  transform: rotate(-28deg);
}

.burst-one {
  top: 25px;
  right: 28px;
}

.burst-two {
  right: 56px;
  bottom: 33px;
  width: 28px;
  background: var(--cyan);
  transform: rotate(28deg);
}

.art-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--yellow);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.spotlight-art.image-missing .art-placeholder,
.spotlight-art.image-failed .art-placeholder {
  display: grid;
}

.shelf-section,
.category-strip {
  margin-top: 24px;
}

.taxonomy-panel {
  margin-top: 2px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.taxonomy-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.taxonomy-panel-head h2 {
  margin-top: 4px;
  font-size: 1.2rem;
}

.taxonomy-panel-head p:not(.section-kicker) {
  max-width: 700px;
  margin-top: 8px;
  color: var(--muted-dark);
  font-size: 0.82rem;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.taxonomy-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.taxonomy-card:hover,
.taxonomy-card:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.taxonomy-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #fff;
  background: var(--purple);
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 900;
}

.taxonomy-card:nth-child(3n + 2) .taxonomy-icon {
  color: #704c00;
  background: var(--yellow);
}

.taxonomy-card:nth-child(3n) .taxonomy-icon {
  background: var(--cyan);
}

.taxonomy-card-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.taxonomy-card-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxonomy-card-copy small {
  color: var(--muted);
  font-size: 0.67rem;
}

.taxonomy-arrow {
  color: #b0b3bd;
  font-size: 1.1rem;
  line-height: 1;
}

.tag-taxonomy-icon {
  color: #fff !important;
  background: var(--green) !important;
  font-size: 1rem;
}

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

.taxonomy-page-head {
  padding-bottom: 17px;
}

.taxonomy-layout .site-sidebar {
  max-height: calc(100vh - 100px);
}

.taxonomy-side {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.shelf-header {
  align-items: center;
  padding: 0 2px 10px;
}

.shelf-header > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  min-width: 0;
}

.shelf-header h2 {
  font-size: 1.08rem;
}

.shelf-header p {
  grid-column: 2;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.73rem;
}

.shelf-marker {
  display: block;
  grid-row: 1 / span 2;
  width: 7px;
  height: 30px;
  border-radius: 4px;
}

.marker-red {
  background: var(--accent);
}

.marker-blue {
  background: var(--blue);
}

.marker-yellow {
  background: var(--yellow);
}

.marker-purple {
  background: var(--purple);
}

.game-rail-wrap {
  position: relative;
  min-width: 0;
}

.game-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(145px, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.game-rail::-webkit-scrollbar {
  height: 5px;
}

.game-rail::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 5px;
}

.rail-arrow {
  position: absolute;
  top: 42px;
  z-index: 3;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0 0 3px;
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
}

.game-rail-wrap:hover .rail-arrow,
.rail-arrow:focus-visible {
  opacity: 1;
}

.rail-arrow:hover {
  transform: scale(1.08);
}

.rail-prev {
  left: -13px;
}

.rail-next {
  right: -13px;
}

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

.game-card-link {
  display: block;
  min-width: 0;
}

.game-thumb {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.game-thumb img {
  transition: transform 180ms ease;
}

.game-card-link:hover .game-thumb img {
  transform: scale(1.05);
}

.game-card-link:hover .game-thumb {
  box-shadow: var(--shadow-hover);
}

.game-thumb-fallback {
  display: none;
  color: var(--yellow);
  font-size: 1.2rem;
  font-weight: 900;
}

.compact-thumb-fallback {
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 850;
}

.thumb-play {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  background: rgba(37, 41, 55, 0.86);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.game-card-link:hover .thumb-play,
.game-card-link:focus-visible .thumb-play {
  opacity: 1;
  transform: translateY(0);
}

.game-card-info {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 7px 2px 0;
}

.game-card-info strong {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card-info small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-strip {
  padding: 18px 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.category-tile {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.category-tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.category-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  background: var(--purple);
  border-radius: 7px;
}

.category-tile:nth-child(3n + 2) .category-icon {
  color: #704c00;
  background: var(--yellow);
}

.category-tile:nth-child(3n) .category-icon {
  background: var(--cyan);
}

.category-tile strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-tile small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.67rem;
}

.seo-intro {
  margin-top: 27px;
  padding: 22px 2px 4px;
  border-top: 1px solid var(--line-strong);
}

.seo-intro h2 {
  font-size: 1.22rem;
}

.seo-intro p {
  max-width: none;
  margin-top: 10px;
  color: var(--muted-dark);
  font-size: 0.84rem;
  line-height: 1.7;
}

.listing-head,
.game-head {
  padding: 2px 2px 19px;
}

.breadcrumbs {
  margin-bottom: 15px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li {
  color: var(--muted);
  font-size: 0.7rem;
}

.breadcrumbs li + li::before {
  padding-right: 5px;
  color: #b0b3bd;
  content: "/";
}

.breadcrumbs a:hover {
  color: var(--accent-dark);
}

.listing-title-row,
.game-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.listing-title-row > div:first-child,
.game-heading-row > div:first-child {
  min-width: 0;
}

.listing-title-row h1,
.game-heading-row h1 {
  font-size: 1.85rem;
  letter-spacing: 0;
}

.listing-title-row p:not(.section-kicker),
.game-heading-row p:not(.section-kicker) {
  max-width: 700px;
  margin-top: 7px;
  color: var(--muted-dark);
  font-size: 0.86rem;
}

.listing-total {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  line-height: 1.1;
}

.listing-total strong {
  color: var(--purple);
  font-size: 1.7rem;
}

.listing-total span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.listing-search {
  display: flex;
  max-width: 650px;
  height: 40px;
  margin-top: 17px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.listing-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(76, 130, 233, 0.12);
}

.listing-search input {
  min-width: 0;
  flex: 1;
  padding: 0 13px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.listing-search button {
  padding: 0 15px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  background: var(--purple);
  border: 0;
  border-radius: 0 5px 5px 0;
}

.listing-search button:hover {
  background: #6548d3;
}

.listing-body {
  min-width: 0;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  color: var(--muted);
  font-size: 0.76rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.listing-toolbar-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.alphabet-filter {
  position: relative;
}

.alphabet-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 4px 9px;
  color: var(--muted-dark);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}

.alphabet-filter-toggle:hover,
.alphabet-filter-toggle[aria-expanded="true"] {
  color: var(--accent-dark);
  background: #fff0f1;
  border-color: #f1c8cc;
}

.alphabet-filter-toggle span {
  color: var(--muted);
  font-size: 0.62rem;
}

.alphabet-filter-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(7, minmax(29px, 1fr));
  gap: 4px;
  width: 253px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: 0 12px 28px rgba(38, 42, 70, 0.14);
}

.alphabet-filter-menu[hidden] {
  display: none;
}

.alphabet-filter-menu a {
  display: grid;
  min-height: 29px;
  place-items: center;
  color: var(--muted-dark);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 4px;
}

.alphabet-filter-menu a:hover,
.alphabet-filter-menu a.is-current {
  color: #fff;
  background: var(--purple);
}

.listing-mode {
  color: var(--muted-dark);
  font-size: 0.74rem;
  font-weight: 750;
}

.sort-tabs {
  display: flex;
  gap: 3px;
}

.sort-tabs a {
  padding: 5px 9px;
  color: var(--muted-dark);
  font-size: 0.74rem;
  font-weight: 750;
  border-radius: 5px;
}

.sort-tabs a:hover,
.sort-tabs a.is-active {
  color: var(--accent-dark);
  background: #fff0f1;
}

.listing-body > .game-grid {
  margin-top: 17px;
}

.category-seo-content {
  max-width: 980px;
  margin: 34px 2px 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.category-seo-content h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.25;
}

.category-seo-intro {
  max-width: 820px;
}

.category-seo-intro h2 {
  margin-top: 4px;
}

.category-seo-content p,
.category-seo-content li {
  color: var(--muted-dark);
  font-size: 0.85rem;
  line-height: 1.75;
}

.category-seo-intro p:not(.section-kicker) {
  margin-top: 11px;
}

.category-seo-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px 28px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.category-seo-section {
  min-width: 0;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--line);
}

.category-seo-section p {
  margin-top: 10px;
}

.category-seo-section ul {
  display: grid;
  gap: 5px;
  padding-left: 19px;
  margin: 12px 0 0;
}

.category-seo-references,
.category-seo-faq,
.category-seo-related {
  padding-top: 25px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}

.category-seo-references p {
  margin-top: 11px;
}

.category-seo-references strong {
  color: var(--ink);
}

.category-seo-faq details {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.category-seo-faq summary {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.category-seo-faq details p {
  max-width: 820px;
  margin: 9px 0 0;
}

.category-seo-related > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 13px;
}

.category-seo-related a {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19px 12px;
}

.directory-side {
  padding-bottom: 14px;
}

.tag-list {
  display: grid;
  gap: 2px;
  padding-top: 8px;
}

.tag-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 4px;
  color: var(--muted-dark);
  font-size: 0.76rem;
  font-weight: 680;
  border-radius: 5px;
}

.tag-list a:hover {
  color: var(--accent-dark);
  background: #fff4f4;
}

.tag-list a > span {
  color: var(--green);
  font-weight: 900;
}

.tag-list small {
  margin-left: auto;
  color: #a3a6b1;
  font-size: 0.65rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 28px;
}

.pagination a {
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  padding: 0 8px;
  color: var(--muted-dark);
  font-size: 0.76rem;
  font-weight: 800;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.pagination a:hover,
.pagination a.is-current {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 58px 20px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-size: 1.35rem;
  background: var(--cyan);
  border-radius: 50%;
}

.empty-state h2 {
  margin-top: 13px;
}

.empty-state p {
  margin-top: 5px;
  color: var(--muted);
}

.empty-state .primary-button {
  margin-top: 17px;
}

.outline-button,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid #cfc6fa;
  border-radius: 6px;
}

.outline-button:hover,
.text-button:hover {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
}

.game-head {
  padding-bottom: 17px;
}

.player-shell {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.player-stage {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #171923;
}

.ratio-standard {
  aspect-ratio: 4 / 3;
}

.ratio-wide {
  aspect-ratio: 16 / 9;
}

.ratio-square {
  aspect-ratio: 1 / 1;
}

.ratio-tall {
  aspect-ratio: 3 / 4;
}

.player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.player-shell.is-loaded .player-stage iframe {
  opacity: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--navy);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.player-shell.is-loaded .player-cover {
  visibility: hidden;
  opacity: 0;
}

.player-cover img {
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

.player-cover-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  place-items: center;
  color: var(--yellow);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(22, 24, 34, 0.58);
}

.player-cover-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
  text-align: center;
  z-index: 2;
}

.player-cover-copy > span {
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-cover-copy strong {
  max-width: 90%;
  margin-top: 6px;
  font-size: 1.45rem;
}

.player-cover-copy .primary-button {
  margin-top: 16px;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: none;
}

.player-cover-copy .primary-button:hover {
  background: #ffd76a;
  box-shadow: none;
}

.player-status {
  position: absolute;
  bottom: 9px;
  left: 12px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  pointer-events: none;
}

.player-shell.is-loaded .player-status {
  color: var(--green);
}

.player-shell.has-error .player-status {
  color: var(--yellow);
}

.player-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 48px;
  padding: 7px 10px;
  border-top: 1px solid var(--line);
}

.player-toolbar button,
.player-toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 0 9px;
  color: var(--muted-dark);
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
}

.player-toolbar button:hover,
.player-toolbar a:hover {
  color: var(--accent-dark);
  background: #fff1f2;
  border-color: #ffd4d7;
}

.player-toolbar a {
  margin-left: auto;
}

.official-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.official-panel {
  min-width: 0;
  padding: 19px 20px 21px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.official-description-panel {
  border-top: 3px solid var(--cyan);
}

.official-instructions-panel {
  border-top: 3px solid var(--purple);
}

.official-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.official-panel h2 {
  margin-top: 5px;
  font-size: 1.05rem;
}

.official-panel > p:last-child {
  margin-top: 10px;
  color: var(--muted-dark);
  font-size: 0.86rem;
  line-height: 1.7;
}

.official-instructions {
  padding: 11px 13px;
  color: var(--ink) !important;
  font-weight: 650;
  background: #f7f5ff;
  border-left: 3px solid var(--purple);
  border-radius: 4px;
}

.walkthrough-section {
  margin-top: 22px;
  padding: 19px 20px 20px;
  background: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.walkthrough-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
}

.walkthrough-header .official-label {
  color: #f2bf3f;
}

.walkthrough-header h2 {
  margin-top: 5px;
  font-size: 1.08rem;
}

.walkthrough-header p:last-child {
  max-width: 690px;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.walkthrough-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #292a35;
  font-size: 0.68rem;
  font-weight: 850;
  background: #f2bf3f;
  border-radius: 4px;
}

.walkthrough-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  margin-top: 16px;
  overflow: hidden;
  background: #11131c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}

.walkthrough-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.game-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  align-items: start;
  gap: 18px;
  margin-top: 22px;
}

.game-description,
.facts-panel {
  min-width: 0;
}

.copy-section {
  padding: 0 0 21px;
}

.copy-section + .copy-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.copy-section h2,
.facts-panel h2 {
  font-size: 1.05rem;
}

.copy-section p,
.copy-section li {
  max-width: 760px;
  margin-top: 9px;
  color: var(--muted-dark);
  font-size: 0.85rem;
  line-height: 1.68;
}

.copy-section ul {
  padding-left: 18px;
  margin: 5px 0 0;
}

.copy-section li {
  margin-top: 6px;
}

.facts-panel {
  padding: 17px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.facts-panel dl {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
}

.facts-panel dl > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.facts-panel dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.facts-panel dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.facts-panel dd a {
  color: var(--purple);
}

.facts-panel dd a:hover {
  text-decoration: underline;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}

.game-tags a {
  padding: 4px 7px;
  color: var(--purple);
  font-size: 0.67rem;
  font-weight: 750;
  background: #f1efff;
  border-radius: 4px;
}

.game-tags a:hover {
  color: #fff;
  background: var(--purple);
}

.report-box {
  padding: 17px;
  background: #fff8ed;
  border: 1px solid #f2dfb8;
  border-radius: 8px;
}

.report-box p {
  color: #766648;
}

.report-box .text-button {
  margin-top: 12px;
  color: #9a6710;
  border-color: #e8c77f;
}

.report-box .text-button:hover {
  color: #fff;
  background: #bd7f12;
  border-color: #bd7f12;
}

.related-section {
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid var(--line-strong);
}

.info-column {
  grid-column: 2;
  max-width: 900px;
}

.info-copy {
  padding: 23px 25px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.info-copy section + section {
  margin-top: 27px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.info-copy h2 {
  font-size: 1.08rem;
}

.info-copy p,
.info-copy li {
  margin-top: 10px;
  color: var(--muted-dark);
  font-size: 0.86rem;
  line-height: 1.72;
}

.info-copy ul {
  padding-left: 20px;
  margin: 4px 0 0;
}

.not-found-layout .content-column {
  grid-column: 2;
}

.game-layout .content-column {
  grid-column: 2 / -1;
}

.info-layout,
.not-found-layout {
  grid-template-columns: minmax(0, 1fr);
}

.info-layout .info-column,
.not-found-layout .content-column {
  grid-column: 1;
  width: min(100%, 900px);
  margin: 0 auto;
}

.not-found {
  padding: 55px 4px 37px;
}

.not-found-code {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.not-found h1 {
  margin-top: 8px;
  font-size: 2.1rem;
}

.not-found p {
  max-width: 520px;
  margin-top: 9px;
  color: var(--muted-dark);
}

.not-found .primary-button {
  margin-top: 18px;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  width: min(calc(100% - 32px), var(--content-max));
  min-height: 76px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 0.98rem;
}

.footer-logo .logo-badge {
  width: 29px;
  height: 21px;
  padding: 2px 3px;
}

.footer-logo .logo-badge span {
  font-size: 0.64rem;
}

.footer-inner p,
.footer-inner small {
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-inner nav {
  display: flex;
  gap: 12px;
}

.footer-inner nav a {
  color: var(--muted-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.footer-inner nav a:hover {
  color: var(--accent-dark);
}

@media (max-width: 1220px) {
  :root {
    --sidebar-width: 172px;
    --right-rail-width: 200px;
  }

  .top-nav a {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 0.8rem;
  }

  .header-action {
    display: none;
  }

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

@media (max-width: 980px) {
  .site-layout {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .info-layout,
  .not-found-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }

  .info-column,
  .not-found-layout .content-column {
    grid-column: 1;
  }

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

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

  .top-nav {
    display: none;
  }

  .top-search {
    max-width: none;
  }
}

@media (max-width: 980px) {
  body {
    font-size: 14px;
  }

  .topbar-inner,
  .page-frame,
  .footer-inner {
    width: min(calc(100% - 24px), var(--content-max));
  }

  .topbar-inner {
    gap: 9px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .site-logo {
    font-size: 1.05rem;
  }

  .logo-badge {
    width: 31px;
    height: 22px;
  }

  .top-search {
    flex-basis: 180px;
    height: 37px;
  }

  .search-label {
    display: none;
  }

  .search-button {
    width: 39px;
    padding: 0;
  }

  .page-frame {
    padding-top: 12px;
  }

  .site-layout {
    display: block;
  }

  .site-sidebar {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 45;
    width: min(280px, calc(100% - 44px));
    overflow-y: auto;
    border-radius: 0 9px 9px 0;
    box-shadow: 9px 0 24px rgba(38, 41, 54, 0.18);
    max-height: none;
    transform: translateX(-110%);
    transition: transform 180ms ease;
  }

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

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    visibility: hidden;
    background: rgba(28, 31, 43, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .nav-scrim.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .content-column {
    width: 100%;
  }

  .rail-arrow {
    display: none;
  }

  .info-column,
  .not-found-layout .content-column {
    max-width: none;
  }

  .home-intro {
    align-items: flex-start;
  }

  .home-intro h1 {
    font-size: 1.75rem;
  }

  .spotlight-panel {
    grid-template-columns: 1fr;
  }

  .spotlight-copy {
    min-height: 210px;
    padding: 25px 22px;
  }

  .spotlight-art {
    min-height: 155px;
  }

  .spotlight-art::before {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 38%;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
  }

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

  .game-info-grid {
    grid-template-columns: 1fr;
  }

  .official-info-grid {
    grid-template-columns: 1fr;
  }

  .facts-panel {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    gap: 10px 15px;
    padding: 17px 0;
  }

  .footer-inner p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-inner nav {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-wrap: wrap;
  }

  .footer-inner small {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 520px) {
  .topbar-inner {
    flex-wrap: wrap;
    min-height: 58px;
    padding: 9px 0;
  }

  .top-search {
    order: 5;
    flex: 1 0 100%;
    max-width: none;
  }

  .site-sidebar {
    top: 110px;
  }

  .home-intro {
    display: block;
    padding-bottom: 14px;
  }

  .intro-count {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 9px;
  }

  .intro-count strong {
    font-size: 1.35rem;
  }

  .listing-title-row,
  .game-heading-row {
    display: block;
  }

  .listing-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .listing-toolbar-left {
    flex-wrap: wrap;
  }

  .alphabet-filter-menu {
    width: min(253px, calc(100vw - 48px));
  }

  .taxonomy-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .listing-total {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 10px;
  }

  .game-heading-row .outline-button {
    margin-top: 14px;
  }

  .listing-title-row h1,
  .game-heading-row h1 {
    font-size: 1.55rem;
  }

  .listing-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .category-seo-content {
    margin-top: 25px;
    padding-top: 20px;
  }

  .category-seo-sections {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .category-seo-section {
    padding: 18px 0;
  }

  .category-seo-content {
    margin-top: 25px;
    padding-top: 20px;
  }

  .category-seo-sections {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .category-seo-section {
    padding: 18px 0;
  }

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

  .taxonomy-panel {
    padding: 16px 12px;
  }

  .taxonomy-grid,
  .tag-index-grid {
    grid-template-columns: 1fr;
  }

  .game-rail {
    grid-auto-columns: 145px;
    gap: 10px;
  }

  .rail-arrow {
    display: none;
  }

  .category-strip {
    padding: 16px 12px;
  }

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

  .spotlight-copy h2 {
    font-size: 1.45rem;
  }

  .player-stage {
    min-height: 220px;
  }

  .player-toolbar a {
    margin-left: 0;
  }

  .info-copy {
    padding: 18px 15px;
  }

  .not-found {
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Alphabet challenge */
.alphabet-game {
  position: relative;
  overflow: hidden;
  margin: 28px 0 38px;
  padding: 24px;
  color: #f7f9ff;
  background: #111a2e;
  border: 1px solid #253653;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(16, 25, 46, 0.18);
}

.alphabet-game::after {
  position: absolute;
  top: -48px;
  right: 24%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(75, 214, 199, 0.14);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.alphabet-game-header,
.alphabet-game-grid {
  position: relative;
  z-index: 1;
}

.alphabet-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.alphabet-brand-lockup,
.alphabet-live-pill,
.alphabet-submit-row,
.alphabet-mode-row,
.alphabet-keyboard,
.result-metrics {
  display: flex;
  align-items: center;
}

.alphabet-brand-lockup {
  gap: 12px;
}

.alphabet-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #111a2e;
  background: #f5c94a;
  border: 3px solid #f8f9ff;
  border-radius: 12px;
  box-shadow: 5px 5px 0 #47d6c7;
  transform: rotate(-4deg);
}

.alphabet-mark span {
  display: block;
  font-weight: 950;
  line-height: 0.72;
}

.alphabet-mark span:last-child {
  margin-top: 4px;
  color: #ec6479;
  font-size: 0.83rem;
}

.alphabet-eyebrow,
.alphabet-control-label,
.alphabet-stat span,
.alphabet-stage-label,
.alphabet-status,
.alphabet-submit label,
.leaderboard-footnote,
.result-metrics span {
  color: #91a1bd;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alphabet-eyebrow {
  margin-bottom: 3px;
  color: #47d6c7;
}

.alphabet-game h2,
.alphabet-game h3,
.alphabet-game p {
  margin: 0;
}

.alphabet-game h2 {
  color: #fff;
  font-size: 1.45rem;
}

.alphabet-subtitle {
  margin-top: 3px !important;
  color: #adb9cf;
  font-size: 0.82rem;
}

.alphabet-live-pill {
  gap: 7px;
  padding: 7px 10px;
  color: #b9c8df;
  background: #192640;
  border: 1px solid #2d4163;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #47d6c7;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(71, 214, 199, 0.13);
}

.alphabet-game-grid {
  display: block;
}

.alphabet-main-panel,
.alphabet-board-panel {
  background: #17223a;
  border: 1px solid #293d5f;
  border-radius: 8px;
}

.alphabet-main-panel {
  min-width: 0;
  padding: 18px;
}

.alphabet-board-panel {
  padding: 18px 15px;
}

.alphabet-board-drawer {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  background: #17223a;
  border: 1px solid #293d5f;
  border-radius: 8px;
}

.alphabet-board-toggle {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.alphabet-board-toggle::-webkit-details-marker {
  display: none;
}

.alphabet-board-toggle:focus-visible {
  outline: 2px solid #47d6c7;
  outline-offset: -3px;
}

.alphabet-board-toggle .board-trophy {
  flex: 0 0 auto;
}

.alphabet-board-toggle-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.alphabet-board-toggle-copy .alphabet-eyebrow {
  margin: 0;
}

.alphabet-board-toggle-copy strong {
  color: #fff;
  font-size: 0.94rem;
}

.alphabet-board-toggle-copy small {
  overflow: hidden;
  color: #7184a0;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alphabet-board-toggle-action {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: #47d6c7;
  font-size: 0.72rem;
  font-weight: 800;
}

.board-action-hide {
  display: none;
}

.alphabet-board-drawer[open] .board-action-show {
  display: none;
}

.alphabet-board-drawer[open] .board-action-hide {
  display: inline;
}

.board-chevron {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 0.7;
  transition: transform 140ms ease;
}

.alphabet-board-drawer[open] .board-chevron {
  transform: rotate(180deg);
}

.alphabet-board-drawer > .alphabet-board-panel {
  margin: 0 18px 18px;
  padding: 16px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #2a3d5d;
  border-radius: 0;
}

.alphabet-info {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 17px 18px 0;
  border-top: 1px solid #293d5f;
}

.alphabet-info-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.alphabet-info-header h3 {
  margin-top: 4px;
  color: #fff;
  font-size: 1.05rem;
}

.alphabet-info-note {
  max-width: 260px;
  color: #7184a0;
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: right;
}

.alphabet-info-tablist {
  display: flex;
  gap: 3px;
  margin-top: 14px;
  overflow-x: auto;
  border-bottom: 1px solid #2a3d5d;
  scrollbar-width: thin;
}

.alphabet-info-tab {
  flex: 0 0 auto;
  min-height: 35px;
  padding: 7px 11px;
  color: #9eacc3;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.alphabet-info-tab:hover,
.alphabet-info-tab:focus-visible {
  color: #fff;
  background: #203253;
  outline: 0;
}

.alphabet-info-tab.is-active {
  color: #111a2e;
  background: #47d6c7;
  border-color: #47d6c7;
}

.alphabet-info-panels {
  padding: 16px 0 3px;
}

.alphabet-info-panel[hidden] {
  display: none;
}

.alphabet-info-panel h4 {
  margin: 0;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.35;
}

.alphabet-info-panel p,
.alphabet-info-panel li {
  color: #b3c0d5;
  font-size: 0.8rem;
  line-height: 1.72;
}

.alphabet-info-panel p {
  margin-top: 9px;
}

.alphabet-info-panel strong {
  color: #edf4ff;
}

.alphabet-info-panel ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.alphabet-info-panel li + li {
  margin-top: 6px;
}

.alphabet-mode-row {
  gap: 8px;
  margin-bottom: 16px;
}

.alphabet-control-label {
  margin-right: 4px;
  color: #71839f;
}

.mode-chip,
.leaderboard-tab {
  min-width: 56px;
  min-height: 31px;
  padding: 7px 10px;
  color: #9eacc3;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1;
}

.mode-chip:hover,
.leaderboard-tab:hover {
  color: #fff;
  border-color: #3b5279;
}

.mode-chip.is-active,
.leaderboard-tab.is-active {
  color: #111a2e;
  background: #47d6c7;
  border-color: #47d6c7;
}

.alphabet-sound-toggle {
  min-height: 31px;
  margin-left: auto;
  padding: 6px 9px;
  color: #8998b3;
  background: #202f4b;
  border: 1px solid #344a6d;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
}

.alphabet-sound-toggle:hover,
.alphabet-sound-toggle:focus-visible,
.alphabet-sound-toggle.is-on {
  color: #111a2e;
  background: #f5c94a;
  border-color: #f5c94a;
  outline: 0;
}

.alphabet-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 13px;
  border-top: 1px solid #2a3d5d;
  border-bottom: 1px solid #2a3d5d;
}

.alphabet-stat {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid #2a3d5d;
}

.alphabet-stat:last-child {
  border-right: 0;
}

.alphabet-stat strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.18rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alphabet-progress-track {
  height: 5px;
  margin-bottom: 15px;
  overflow: hidden;
  background: #2a3a57;
  border-radius: 99px;
}

.alphabet-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: #47d6c7;
  border-radius: inherit;
  transition: width 120ms ease;
}

.alphabet-stage {
  position: relative;
  display: flex;
  min-height: 226px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  background: #0f1729;
  border: 1px solid #2b4164;
  border-radius: 7px;
  cursor: text;
  isolation: isolate;
}

.alphabet-stage-glow {
  position: absolute;
  z-index: -1;
  width: 170px;
  height: 170px;
  background: rgba(71, 214, 199, 0.06);
  border: 1px solid rgba(71, 214, 199, 0.12);
  border-radius: 50%;
}

.alphabet-stage-label {
  margin-bottom: 14px;
}

.alphabet-sequence {
  display: flex;
  width: 100%;
  max-width: none;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  gap: 5px;
  padding: 4px 0 7px;
  scrollbar-width: thin;
}

.alphabet-letter {
  display: grid;
  flex: 0 0 31px;
  place-items: center;
  width: 31px;
  height: 39px;
  color: #697995;
  background: #18243b;
  border: 1px solid #293d5c;
  border-radius: 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  font-weight: 800;
  transition: color 100ms ease, background 100ms ease, transform 100ms ease, border-color 100ms ease;
}

.alphabet-letter.is-current {
  color: #111a2e;
  background: #f5c94a;
  border-color: #f5c94a;
  box-shadow: 0 0 0 4px rgba(245, 201, 74, 0.12);
  transform: translateY(-3px);
}

.alphabet-letter.is-correct {
  color: #47d6c7;
  background: #153f47;
  border-color: #236d70;
}

.alphabet-letter.is-wrong {
  color: #fff;
  background: #a74b64;
  border-color: #e87589;
  transform: translateX(2px);
}

.alphabet-next-hint {
  min-height: 22px;
  margin-top: 14px !important;
  color: #91a1bd;
  font-size: 0.8rem;
}

.alphabet-start-button,
.alphabet-replay,
.alphabet-submit-row button {
  color: #111a2e;
  background: #f5c94a;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 850;
}

.alphabet-start-button {
  width: min(100%, 280px);
  min-width: 220px;
  min-height: 46px;
  margin-top: 12px;
  padding: 12px 20px;
  font-size: 0.86rem;
  box-shadow: 0 4px 0 #bd9331;
}

.alphabet-start-button:hover,
.alphabet-replay:hover,
.alphabet-submit-row button:hover {
  background: #ffda65;
}

.alphabet-start-button:active,
.alphabet-replay:active,
.alphabet-submit-row button:active {
  transform: translateY(2px);
  box-shadow: none;
}

.alphabet-status {
  position: absolute;
  right: 12px;
  bottom: 10px;
  margin: 0 !important;
  color: #61718d;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.alphabet-game.is-paused .alphabet-stage {
  border-color: #f5c94a;
  box-shadow: 0 0 0 3px rgba(245, 201, 74, 0.1);
}

.alphabet-game.is-paused .alphabet-stage-label {
  color: #f5c94a;
}

.alphabet-keyboard {
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 13px;
}

.alphabet-key {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  color: #8998b3;
  background: #202f4b;
  border: 1px solid #344a6d;
  border-radius: 4px;
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.alphabet-key:hover,
.alphabet-key.is-current {
  color: #111a2e;
  background: #47d6c7;
  border-color: #47d6c7;
}

.alphabet-key.is-used {
  color: #557780;
  background: #172d3d;
  border-color: #234c58;
}

.alphabet-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 13px;
  background: #203253;
  border: 1px solid #3a5278;
  border-radius: 6px;
}

.result-badge {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 43px;
  height: 43px;
  color: #111a2e;
  background: #47d6c7;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 950;
}

.result-copy {
  min-width: 0;
  flex: 1;
}

.result-copy h3 {
  color: #fff;
  font-size: 1.02rem;
}

.result-copy p:last-child {
  overflow: hidden;
  margin-top: 2px;
  color: #a9b8d0;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-metrics {
  gap: 14px;
}

.result-metrics div {
  text-align: right;
}

.result-metrics strong {
  display: block;
  color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
}

.result-metrics span {
  display: block;
  color: #7d91b0;
  font-size: 0.56rem;
}

.alphabet-replay {
  flex: 0 0 auto;
  padding: 9px 11px;
  font-size: 0.75rem;
}

.alphabet-submit {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 13px 0 0;
  border-top: 1px solid #3a5278;
  animation: alphabet-submit-in 220ms ease-out;
}

.alphabet-submit.is-ready {
  display: block;
}

.alphabet-submit.is-submitted {
  border-top-color: #47d6c7;
}

.alphabet-submit-title {
  margin: 0 0 2px !important;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 850;
}

.alphabet-submit label {
  display: block;
  margin-bottom: 8px;
  color: #91a1bd;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.alphabet-submit-row {
  gap: 7px;
}

.alphabet-submit-row input {
  min-width: 0;
  flex: 1;
  height: 36px;
  padding: 0 10px;
  color: #fff;
  background: #0f1729;
  border: 1px solid #3a5278;
  border-radius: 4px;
  outline: 0;
}

.alphabet-submit-row input:focus {
  border-color: #47d6c7;
  box-shadow: 0 0 0 3px rgba(71, 214, 199, 0.12);
}

.alphabet-submit-row button {
  height: 36px;
  padding: 0 12px;
  font-size: 0.74rem;
}

.alphabet-submit-row button:disabled {
  cursor: default;
  opacity: 0.55;
}

.alphabet-submit-help {
  margin-top: 7px !important;
  color: #6f829f;
  font-size: 0.68rem;
}

@keyframes alphabet-submit-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.leaderboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.leaderboard-heading h3 {
  color: #fff;
  font-size: 1.02rem;
}

.board-trophy {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #f5c94a;
  background: #2e2d34;
  border-radius: 50%;
}

.leaderboard-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid #2a3d5d;
}

.leaderboard-tabs-label {
  flex: 0 0 auto;
  margin-right: 4px;
  color: #71839f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.leaderboard-list {
  min-height: 290px;
  padding-top: 5px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 7px;
  min-height: 47px;
  border-bottom: 1px solid rgba(58, 82, 120, 0.52);
}

.leaderboard-rank {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #7e91ad;
  background: #233452;
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
}

.leaderboard-rank.gold { color: #111a2e; background: #f5c94a; }
.leaderboard-rank.silver { color: #111a2e; background: #b5c3d4; }
.leaderboard-rank.bronze { color: #111a2e; background: #dc936d; }

.leaderboard-name {
  overflow: hidden;
  color: #eaf0fb;
  font-size: 0.76rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-name small,
.leaderboard-wpm small {
  display: block;
  color: #7085a3;
  font-size: 0.58rem;
  font-weight: 600;
}

.leaderboard-time {
  color: #47d6c7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.77rem;
}

.leaderboard-wpm {
  color: #f5c94a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.leaderboard-loading {
  display: grid;
  gap: 13px;
  padding-top: 22px;
}

.loading-line {
  display: block;
  width: 100%;
  height: 12px;
  background: #233452;
  border-radius: 3px;
}

.loading-line.short { width: 78%; }

.leaderboard-empty {
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: #7285a2;
  text-align: center;
}

.leaderboard-empty strong {
  color: #dce7f7;
  font-size: 0.84rem;
}

.leaderboard-empty span {
  font-size: 0.72rem;
}

.leaderboard-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px !important;
  color: #7184a0;
  font-size: 0.57rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.alphabet-page-intro {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 10px 4px 0;
}

.alphabet-page-intro h1 {
  margin-top: 5px;
}

.alphabet-page-intro > p:last-child {
  max-width: 620px;
  margin-top: 8px;
  color: var(--muted-dark);
  font-size: 1rem;
}

.alphabet-layout .alphabet-game {
  margin-top: 0;
}

.alphabet-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 18px auto 20px;
}

.alphabet-copy-grid article {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.alphabet-copy-grid h2 {
  margin: 5px 0 9px;
}

.alphabet-copy-grid article p:last-child {
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.alphabet-game.has-wrong .alphabet-stage {
  animation: alphabet-shake 160ms ease-in-out;
}

@keyframes alphabet-shake {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-3px); }
  70% { transform: translateX(3px); }
}

@media (max-width: 1400px) {
  .alphabet-sequence {
    gap: 3px;
  }

  .alphabet-letter {
    flex-basis: 27px;
    width: 27px;
    height: 36px;
    font-size: 0.92rem;
  }
}

@media (max-width: 850px) {
  .alphabet-game {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .alphabet-game-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .alphabet-live-pill {
    position: absolute;
    top: 0;
    right: 0;
  }

  .alphabet-main-panel {
    padding: 12px;
  }

  .alphabet-sound-toggle {
    margin-left: 0;
  }

  .alphabet-info {
    padding-right: 0;
    padding-left: 0;
  }

  .alphabet-info-header {
    display: block;
  }

  .alphabet-info-note {
    max-width: none;
    margin-top: 6px;
    text-align: left;
  }

  .alphabet-info-tablist {
    margin-top: 12px;
  }

  .alphabet-mode-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

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

  .alphabet-stat:nth-child(2) {
    border-right: 0;
  }

  .alphabet-stat:nth-child(-n+2) {
    border-bottom: 1px solid #2a3d5d;
  }

  .alphabet-stage {
    min-height: 220px;
    padding: 20px 10px;
  }

  .alphabet-sequence {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }

  .alphabet-letter {
    width: 25px;
    height: 34px;
    font-size: 0.84rem;
  }

  .alphabet-key {
    width: 27px;
    height: 29px;
    font-size: 0.7rem;
  }

  .alphabet-status {
    position: static;
    margin-top: 12px !important;
  }

  .alphabet-result {
    align-items: flex-start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .result-metrics {
    width: calc(100% - 56px);
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .result-metrics div {
    text-align: left;
  }

  .alphabet-replay {
    grid-column: 1 / -1;
    width: 100%;
  }

  .alphabet-copy-grid {
    grid-template-columns: 1fr;
  }

  .alphabet-start-button {
    min-width: 0;
    width: 100%;
  }
}
