/* Fonts and design tokens */
@font-face {
  font-family: BoldenVan;
  src: url("/assets/fonts/BoldenVan.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Fungis;
  src: url("/assets/fonts/FUNGIS-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  --navy: #030932;
  --navy-soft: #091249;
  --blue: #00b2ff;
  --blue-light: #35bcff;
  --ink: #f8fbff;
  --muted: #aab9db;
  --line: #233169;
  --card: #0b164b;
  --max: 1240px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--navy);
  font:
    16px/1.55 Fungis,
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
:where(a, button, summary, input, select):focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 4px;
  border-radius: 6px;
}
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::marker {
  content: "";
}
h1,
h2,
h3 {
  margin: 0;
  font-family: BoldenVan, Fungis, sans-serif;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
p {
  overflow-wrap: anywhere;
}
.muted,
.activity-intro {
  color: var(--muted);
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: white;
  color: var(--navy);
  border-radius: 8px;
}
.skip-link:focus {
  top: 16px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared layout */
.header-inner,
.games-section,
.footer-main {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}
.games-section {
  padding-block: 72px 96px;
  scroll-margin-top: 96px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-light);
  font:
    13px BoldenVan,
    sans-serif;
  letter-spacing: 0.18em;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}
.section-heading h1 {
  font-size: clamp(36px, 4.5vw, 60px);
}
.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.site-footer {
  background: #02072a;
  border-top: 1px solid #142058;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 64px;
  padding-block: 56px;
}
.footer-brand img {
  width: 150px;
  height: auto;
}
.footer-brand p {
  max-width: 280px;
  color: var(--muted);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.footer-links > div {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}
.footer-links h2 {
  font-size: 16px;
  margin-bottom: 4px;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.footer-links a:hover {
  color: var(--blue-light);
}
.copyright {
  border-top: 1px solid #142058;
  padding: 20px;
  text-align: center;
  color: #8b9ac1;
  font-size: 13px;
}

/* Navigation and dropdowns */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #030932f2;
  border-bottom: 1px solid #1b285e;
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 88px;
}
.brand {
  flex: 0 0 auto;
}
.brand img {
  width: 150px;
  height: auto;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
}
.desktop-nav > a,
.nav-dropdown > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  white-space: nowrap;
  border-radius: 10px;
}
.desktop-nav [aria-current="page"] {
  background: #00b2ff12;
  color: var(--blue-light);
}
.desktop-nav > a:hover,
.nav-dropdown > summary:hover {
  background: #ffffff08;
  color: var(--blue-light);
}
.header-controls {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.nav-dropdown,
.profile-dropdown,
.mobile-navigation {
  position: relative;
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  border: 1px solid #34457e;
  border-radius: 18px;
  background: #0b164b;
  box-shadow: 0 16px 48px #0008;
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
}
.explore-panel {
  left: 0;
  right: auto;
  width: 240px;
}
.dropdown-panel a,
.profile-action {
  display: flex;
  width: 100%;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.dropdown-panel a:hover,
.profile-action:hover {
  background: #ffffff08;
  color: var(--blue-light);
}
.dropdown-panel [aria-current="page"] {
  color: var(--blue-light);
  background: #00b2ff12;
}
.dropdown-eyebrow {
  margin: 10px 12px 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 7px;
  margin: -4px 2px 0;
}
details[open] > summary .chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}
.mobile-navigation {
  display: none;
}
.mobile-navigation > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}
.menu-icon {
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  border-top: 2px solid currentColor;
}

/* Account: names are constrained in the header, unrestricted in the panel */
.account-actions {
  width: 220px;
  max-width: 220px;
  min-width: 0;
  font-size: 14px;
}
.account-placeholder {
  display: block;
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(110deg, #101b50, #18285b, #101b50);
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 8px 12px;
  border: 1px solid #334677;
  border-radius: 12px;
  background: #0b164b;
}
.profile-button:hover {
  border-color: var(--blue);
}
.account-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #00b2ff22;
  position: relative;
  overflow: hidden;
}
.account-icon::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--blue-light);
  border-radius: 50%;
  top: 5px;
  left: 9px;
}
.account-icon::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 10px;
  background: var(--blue-light);
  border-radius: 10px 10px 0 0;
  bottom: 3px;
  left: 5px;
}
.profile-panel {
  width: 320px;
}
.profile-name {
  margin: 8px 12px 6px;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.profile-address {
  margin: 0 12px 16px;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.logout-button {
  font: inherit;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink);
}
.profile-error {
  margin: 0 12px;
  font-size: 13px;
  color: #ffc9ae;
}
.profile-error:not(:empty) {
  margin-block: 12px;
}
.account-status {
  color: #ffc9ae;
  font-size: 14px;
  text-align: center;
}
.account-status:empty {
  display: none;
}

/* Reusable controls */
.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #248cd6;
  border-radius: 12px;
  background: linear-gradient(135deg, #008acc, #087beb);
  color: white;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.account-button:hover:not(:disabled) {
  border-color: var(--blue-light);
  background: #008acc;
}
.account-button.secondary {
  background: #0a1441;
  border-color: #34457e;
}
.login-button {
  width: 100%;
}
.activity-filters select,
.activity-filters input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  background: #071039;
  border: 1px solid #334677;
  border-radius: 10px;
  color: var(--ink);
}
.activity-filters select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, #aab9db 50%),
    linear-gradient(135deg, #aab9db 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}
.activity-filters input[type="date"] {
  min-inline-size: 0;
}

/* Game catalogue */
[hidden] {
  display: none !important;
}
.platform-tabs {
  display: flex;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  margin-bottom: 28px;
  background: #050c2c;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.platform-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 11px;
  color: var(--muted);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.platform-tab:hover {
  color: var(--ink);
  background: #13204e;
}
.platform-tab[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, #1276e8, #0b4dae);
  box-shadow: 0 5px 18px #007fff22;
}
.platform-symbol {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}
.platform-count {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 20px;
  background: #ffffff14;
  color: inherit;
  font:
    12px Fungis,
    sans-serif;
  text-align: center;
}
.platform-note {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 16px;
}
.catalog-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.catalog-toolbar .platform-note {
  margin-bottom: 7px;
}
.catalog-updated {
  color: #94a8cf;
  font-size: 12px;
  margin: 0;
}
.catalog-store-link {
  color: var(--blue-light);
  white-space: nowrap;
  font-size: 14px;
  padding-block: 6px;
}
.catalog-error .catalog-store-link {
  display: block;
  margin-top: 20px;
}
.catalog-search {
  display: grid;
  gap: 8px;
  max-width: 440px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}
.catalog-search input {
  min-height: 48px;
  width: 100%;
  padding: 12px 16px;
  color: var(--ink);
  background: #07103d;
  border: 1px solid #31467d;
  border-radius: 12px;
  font: inherit;
}
.catalog-search input::placeholder {
  color: #94a8cf;
}
.catalog-message {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}
.catalog-message:empty {
  display: none;
}
.game-grid.store-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.store-card {
  display: flex;
  flex-direction: column;
}
.store-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #17255d;
  isolation: isolate;
}
.store-cover-backdrop {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(16px) brightness(0.45);
  z-index: -1;
}
.store-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.store-card .game-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}
.store-title-row {
  display: flex;
  align-items: start;
  gap: 12px;
  min-width: 0;
}
.store-title-row > div {
  min-width: 0;
}
.store-title-row h3 {
  font-size: 25px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.store-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
  border-radius: 12px;
  background: #030932;
}
.store-genre {
  color: var(--blue-light);
  font-size: 12px;
  margin: 0 0 5px;
}
.store-card .store-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  margin-block: 18px 24px;
}
.store-card .card-link {
  margin-top: auto;
  font-size: 14px;
  gap: 8px;
}
.catalog-more {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.catalog-loading,
.catalog-error {
  padding: 60px 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #08113e;
}
.catalog-error h2 {
  font-size: 30px;
}
.catalog-error p {
  color: var(--muted);
}
.catalog-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #31467d;
  border-top-color: var(--blue-light);
  border-radius: 50%;
  animation: catalog-spin 0.8s linear infinite;
}
@keyframes catalog-spin {
  to {
    transform: rotate(360deg);
  }
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.game-card {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(155deg, #101c55, #08113e);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px #0003;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: #3b60b8;
}
.game-image {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #17255d;
}
.game-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #07103d88, transparent 55%);
  pointer-events: none;
}
.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.game-card:hover .game-image img {
  transform: scale(1.035);
}
.play-badge {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #f8fbff;
  color: #07103d;
  font-size: 13px;
  box-shadow: 0 6px 20px #0005;
}
.play-badge b {
  color: #1481ff;
  margin-left: 5px;
}
.game-content {
  padding: 28px;
}
.game-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.game-title-row h3 {
  font-size: clamp(26px, 3vw, 36px);
}
.game-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #4670cf;
  border-radius: 50%;
  color: var(--blue-light);
  font-size: 11px;
}
.game-content > p {
  margin: 18px 0;
  color: #bac7e5;
}
.how-to {
  display: grid;
  gap: 7px;
  padding: 17px 18px;
  background: #050c32aa;
  border: 1px solid #1d2d64;
  border-radius: 16px;
}
.how-to strong {
  color: var(--blue-light);
  font:
    14px BoldenVan,
    sans-serif;
  letter-spacing: 0.05em;
}
.how-to span {
  color: #d5def3;
  font-size: 14px;
}
.card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.card-link span {
  color: var(--blue);
  font-size: 22px;
}
.card-link:hover {
  color: var(--blue-light);
}

/* My Activity */
.activity-section {
  padding-top: 48px;
  min-height: 72vh;
}
.activity-heading {
  margin-bottom: 32px;
}
.activity-heading h1 {
  font-size: clamp(38px, 5vw, 58px);
}
.activity-intro {
  margin: 14px 0 0;
  font-size: 17px;
}
.filter-panel {
  padding: 24px;
  background: #091342;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.activity-filters {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.4fr) minmax(130px, 1fr) minmax(130px, 1fr)
    auto;
  gap: 16px;
  align-items: end;
}
.activity-filters label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #c5d1eb;
  font-size: 13px;
}
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.validation-message {
  margin: 12px 0 0;
  font-size: 13px;
  color: #ffbe9d;
}
.activity-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-block: 24px 36px;
}
.activity-stat {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #101e53, #091342);
}
.activity-stat strong {
  font:
    32px/1.2 BoldenVan,
    sans-serif;
  color: #e9f8ff;
  overflow-wrap: anywhere;
}
.activity-stat span {
  color: var(--muted);
  font-size: 14px;
}
.is-loading strong {
  color: #6377ac;
}
.history-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.history-heading h2 {
  font-size: 30px;
}
.history-heading > span {
  font-size: 13px;
}
.session-list {
  display: grid;
  gap: 16px;
}
.activity-session {
  min-width: 0;
  background: #0a1444;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.session-main {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr) minmax(160px, auto);
  align-items: center;
  gap: 20px;
}
.session-thumbnail {
  width: 144px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--navy);
}
.session-info {
  min-width: 0;
}
.session-info h3 {
  font-size: 25px;
  margin-bottom: 8px;
}
.session-date {
  display: block;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 7px;
  background: #243866;
  color: #bfd1f1;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.session-info .status-badge {
  margin-top: 10px;
}
.status-badge.is-live {
  background: #13bfaa19;
  color: #72e5d3;
}
.activity-definitions {
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.activity-definitions p + p {
  margin-top: 8px;
}
.activity-definitions strong {
  color: var(--ink);
}
.session-summary {
  display: grid;
  gap: 4px;
  text-align: right;
  min-width: 0;
}
.session-summary strong {
  font:
    25px/1.3 BoldenVan,
    sans-serif;
  color: var(--blue-light);
  overflow-wrap: anywhere;
}
.session-summary span {
  color: #c5d1eb;
  font-size: 12px;
}
.session-summary small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.session-runs {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 8px;
}
.session-runs > summary {
  padding: 10px 0;
  color: var(--blue-light);
  font-size: 13px;
  min-height: 44px;
}
.session-runs > summary::after {
  content: " +";
}
.session-runs[open] > summary::after {
  content: " −";
}
.run-list {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}
.run-card {
  background: #060e35;
  border: 1px solid #1e2e62;
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
}
.run-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.run-heading h4 {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.run-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}
.result-group {
  margin-top: 16px;
}
.result-group h5 {
  margin: 0 0 10px;
  font-size: 12px;
  color: #9ab8eb;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.metric-grid > div {
  min-width: 0;
}
.metric-grid dt {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.metric-grid dd {
  margin: 3px 0 0;
  font-size: 15px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.metric-source,
.unity-note {
  margin: 16px 0 0;
  font-size: 11px;
  color: #93a6cd;
}
.unity-note {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.activity-state {
  padding: 40px 24px;
  border: 1px dashed #34457e;
  border-radius: 20px;
  text-align: center;
  background: #091342;
}
.activity-state h3 {
  font-size: 26px;
}
.activity-state p {
  margin: 12px auto 20px;
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
}
.activity-state .account-button {
  min-width: 140px;
}
.error-state {
  border-color: #826047;
}
.activity-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.activity-pagination > span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* Responsive layout: desktop navigation switches at 768px */
@media (max-width: 1100px) {
  .game-grid.store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-inner {
    gap: 18px;
  }
  .desktop-nav > a,
  .nav-dropdown > summary {
    padding-inline: 10px;
  }
  .account-actions {
    width: 190px;
  }
  .activity-filters {
    grid-template-columns: minmax(140px, 1.4fr) repeat(2, minmax(120px, 1fr));
  }
  .filter-actions {
    grid-column: 1 / -1;
  }
  .activity-stat {
    padding: 20px;
  }
  .activity-stat strong {
    font-size: 28px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 767px) {
  .platform-tabs {
    width: 100%;
    gap: 4px;
    padding: 5px;
  }
  .platform-tab {
    flex: 1;
    padding: 10px 8px;
    gap: 6px;
    font-size: 14px;
  }
  .platform-symbol {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
  .platform-count {
    padding-inline: 5px;
    min-width: 20px;
    font-size: 11px;
  }
  .catalog-toolbar {
    flex-direction: column;
    gap: 10px;
  }
  .catalog-search {
    max-width: none;
  }
  .header-inner {
    min-height: 76px;
    gap: 12px;
  }
  .brand img {
    width: 124px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-navigation {
    display: block;
  }
  .account-actions {
    width: 136px;
  }
  .profile-button {
    gap: 8px;
    padding: 8px;
  }
  .profile-panel {
    position: fixed;
    top: 80px;
    right: 16px;
    width: 320px;
    max-width: calc(100% - 32px);
  }
  .header-controls {
    gap: 8px;
  }
  .login-button {
    padding-inline: 8px;
    font-size: 12px;
  }
  .games-section {
    padding-block: 48px 64px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }
  .section-heading > p {
    font-size: 15px;
  }
  .game-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .activity-heading {
    margin-bottom: 24px;
  }
  .activity-filters {
    grid-template-columns: 1fr;
  }
  .activity-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
  }
  .session-main {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .session-thumbnail {
    width: 96px;
    height: 72px;
  }
  .session-summary {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .session-info h3 {
    font-size: 22px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .game-grid.store-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 430px) {
  .platform-tabs {
    gap: 2px;
    padding: 4px;
  }
  .platform-tab {
    min-width: 0;
    gap: 5px;
    padding-inline: 7px;
    font-size: 13px;
  }
  .platform-count {
    min-width: 20px;
    padding-inline: 4px;
    font-size: 11px;
  }
  .header-inner,
  .games-section,
  .footer-main {
    width: calc(100% - 32px);
  }
  .header-inner {
    gap: 8px;
  }
  .brand img {
    width: 100px;
  }
  .header-controls {
    max-width: calc(100% - 108px);
  }
  .account-actions {
    width: 112px;
  }
  .account-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  .account-icon::before {
    left: 7px;
    top: 4px;
  }
  .account-icon::after {
    left: 3px;
    bottom: 2px;
  }
  .profile-button .chevron {
    display: none;
  }
  .game-content {
    padding: 22px;
  }
  .game-title-row {
    gap: 10px;
  }
  .game-title-row h3 {
    font-size: 28px;
  }
  .filter-panel {
    padding: 18px;
  }
  .filter-actions > button {
    flex: 1;
    padding-inline: 10px;
  }
  .activity-stat {
    padding: 18px 14px;
    gap: 8px;
  }
  .activity-stat strong {
    font-size: 25px;
  }
  .activity-stat span {
    font-size: 12px;
  }
  .activity-session {
    padding: 16px;
  }
  .session-main {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }
  .session-thumbnail {
    width: 72px;
    height: 60px;
  }
  .session-info h3 {
    font-size: 20px;
  }
  .activity-pagination {
    gap: 10px;
  }
  .activity-pagination .account-button {
    padding-inline: 10px;
    font-size: 12px;
  }
  .history-heading h2 {
    font-size: 27px;
  }
  .footer-main {
    padding-block: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-spinner {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .game-card,
  .game-image img {
    transition: none;
  }
}
