:root {
  --bg-start: #08111f;
  --bg-mid: #102741;
  --bg-end: #d7dee8;
  --surface: rgba(244, 247, 251, 0.88);
  --surface-soft: rgba(255, 255, 255, 0.9);
  --surface-border: rgba(148, 163, 184, 0.26);
  --surface-dark: rgba(8, 17, 31, 0.74);
  --text-primary: #0f172a;
  --text-secondary: #526173;
  --text-muted: #6b7a8f;
  --text-contrast: #eff6ff;
  --primary: #103057;
  --primary-hover: #173d6a;
  --danger: #b91c1c;
  --shadow-lg: 0 26px 64px rgba(8, 17, 31, 0.2);
  --shadow-md: 0 16px 34px rgba(8, 17, 31, 0.16);
  --shadow-sm: 0 8px 18px rgba(8, 17, 31, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 15px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top center, rgba(112, 178, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 78%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 34%, var(--bg-end) 100%);
  background-attachment: fixed;
}

button,
input,
select,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: #15477c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.app-shell,
.category-page-shell,
.auth-page-shell {
  width: calc(100% - 32px);
  margin: 0 auto;
}

.screen {
  min-height: calc(100vh - 38px);
}

.boot-mask {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top center, rgba(112, 178, 255, 0.22), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(168, 127, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #eef5ff 0%, #e5eef9 52%, #d8e4f2 100%);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.boot-mask.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(100%, 420px);
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-logo {
  display: block;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-logo--hero {
  width: clamp(172px, 24vw, 220px);
  filter: none;
}

.brand-logo--large {
  width: min(280px, 46vw);
}

.brand-logo--auth {
  width: clamp(228px, 30vw, 360px);
  filter: none;
}

.brand-loader {
  position: relative;
  width: min(100%, 260px);
  height: 10px;
  border-radius: 999px;
  background: #e4ebf3;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.brand-loader span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
}

.brand-loader span:first-child {
  display: block;
  background: linear-gradient(90deg, #103057 0%, #4b9cff 100%);
  box-shadow: 0 1px 6px rgba(16, 48, 87, 0.2);
  animation: loaderProgress 1.2s ease-out infinite;
}

.brand-loader span:nth-child(2),
.brand-loader span:nth-child(3) {
  display: none;
}

@keyframes loaderProgress {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

.boot-caption {
  margin: 0;
  color: #4c5d73;
  font-size: 0.98rem;
  font-weight: 600;
}

.brand-subtitle {
  margin: 0;
  color: rgba(226, 232, 240, 0.84);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.55;
}

.section-copy,
.card-copy,
.info-banner,
.game-card__meta,
.category-card__meta {
  color: var(--text-secondary);
}

.auth-page-shell {
  width: 100%;
  min-height: 100vh;
  padding: clamp(16px, 2.7vw, 28px);
}

.auth-page {
  position: relative;
  min-height: calc(100vh - clamp(32px, 5.4vw, 56px));
  overflow: hidden;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-page::before {
  inset: 0;
  border-radius: 36px;
  background:
    radial-gradient(circle at top center, rgba(115, 187, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.auth-page::after {
  width: min(360px, 44vw);
  height: min(360px, 44vw);
  right: -110px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  opacity: 0.72;
}

.auth-layout {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-rows: auto minmax(40px, 1fr) auto;
}

.auth-layout__top {
  display: flex;
  justify-content: center;
  padding-top: clamp(48px, 7vh, 76px);
}

.auth-layout__middle {
  min-height: clamp(56px, 15vh, 180px);
}

.auth-layout__bottom {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: clamp(10px, 3vh, 34px);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(100%, 500px);
  text-align: center;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
}

.auth-panel {
  position: relative;
  width: min(100%, 470px);
  overflow: hidden;
  padding: 30px 28px 24px;
}

.auth-panel--register {
  width: min(100%, 500px);
}

.auth-panel__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(74, 167, 255, 0.18), rgba(16, 48, 87, 0.9), rgba(74, 167, 255, 0.18));
}

.auth-panel__header {
  display: grid;
  gap: 10px;
}

.auth-panel__body {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.card-eyebrow {
  color: #1d4f86;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-title,
.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.12rem);
  line-height: 1.12;
}

.card-copy,
.section-copy {
  margin: 0;
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--text-primary);
  font-size: 0.93rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field input:focus,
.field select:focus {
  border-color: rgba(74, 167, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(74, 167, 255, 0.14);
  transform: translateY(-1px);
}

.form-message {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(185, 28, 28, 0.08);
  color: var(--danger);
  font-size: 0.93rem;
  line-height: 1.4;
}

.form-message.is-success {
  background: rgba(16, 48, 87, 0.08);
  color: #103057;
}

.auth-actions {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.primary-button,
.secondary-button,
.exit-button {
  border: none;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  color: #f8fafc;
  background: linear-gradient(135deg, #103057 0%, #1d4f86 100%);
  box-shadow: var(--shadow-sm);
}

.primary-button:hover,
.secondary-button:hover,
.exit-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #245d9c 100%);
}

.primary-button:disabled,
.secondary-button:disabled,
.exit-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.secondary-button {
  min-width: 118px;
  padding: 0 18px;
  color: #eff6ff;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.exit-button {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface-dark);
  color: var(--text-contrast);
  border: 1px solid rgba(226, 232, 240, 0.18);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.exit-button:hover {
  background: rgba(10, 22, 38, 0.82);
  border-color: rgba(115, 187, 255, 0.34);
  text-decoration: none;
}

.exit-button__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #dbeafe;
}

.exit-button__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.exit-button__label {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.auth-switch a {
  font-weight: 700;
}

.dashboard-screen,
.category-page-shell {
  display: grid;
  gap: 14px;
}

.app-shell,
.category-page-shell {
  padding: 16px 0 22px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(8, 17, 31, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
}

.category-topbar__left,
.user-chip,
.user-chip__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-topbar__left {
  flex-wrap: wrap;
}

.user-chip {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.user-chip__title {
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 700;
}

.user-chip__meta {
  flex-wrap: wrap;
  color: #cbd5e1;
  font-size: 0.88rem;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(74, 167, 255, 0.18);
  color: #c7e6ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-header,
.category-header {
  padding: 18px 20px;
}

.info-banner {
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: var(--shadow-md);
}

.info-banner.is-error {
  color: var(--danger);
  background: rgba(254, 242, 242, 0.92);
}

.info-banner.is-empty {
  background: rgba(248, 250, 252, 0.92);
}

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

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

.category-card,
.game-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.category-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.game-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover,
.game-card:hover {
  transform: translateY(-3px);
}

.category-card:hover,
.game-card.is-actionable:hover {
  border-color: rgba(74, 167, 255, 0.42);
}

.media-frame {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 48, 87, 0.06), rgba(148, 163, 184, 0.16)),
    #e3ebf4;
}

.category-card .media-frame {
  aspect-ratio: 1 / 0.82;
}

.game-card .media-frame {
  aspect-ratio: 1 / 0.88;
}

.media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 10px;
}

.media-frame.is-missing img {
  display: none;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  color: #33557c;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  background:
    radial-gradient(circle at top, rgba(74, 167, 255, 0.24), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(224, 232, 241, 0.96));
}

.media-frame.is-missing .media-placeholder {
  display: flex;
}

.category-card__body,
.game-card__body {
  display: grid;
  gap: 5px;
}

.category-card__title,
.game-card__title {
  margin: 0;
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.3;
}

.category-card__title {
  font-size: 0.97rem;
}

.game-card__title {
  font-size: 0.92rem;
}

.category-card__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.79rem;
}

.game-card__meta {
  font-size: 0.76rem;
  line-height: 1.35;
}

.game-card.is-actionable {
  cursor: pointer;
}

.game-card.is-disabled {
  opacity: 0.76;
}

.empty-state {
  padding: 26px 16px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.empty-state p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 1600px) {
  .category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1380px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 1180px) {
  .app-shell,
  .category-page-shell {
    width: calc(100% - 24px);
    padding-top: 12px;
  }

  .auth-page-shell {
    padding: 18px;
  }

  .auth-page {
    min-height: calc(100vh - 36px);
  }

  .auth-layout__top {
    padding-top: 64px;
  }

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

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

@media (max-width: 860px) {
  .dashboard-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .secondary-button {
    width: 100%;
  }

  .auth-layout__middle {
    min-height: clamp(28px, 9vh, 96px);
  }

  .auth-panel,
  .auth-panel--register {
    width: min(100%, 100%);
  }

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

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

.dashboard-header--workspace {
  padding: 20px 22px;
}

.dashboard-header-bar,
.panel-header,
.workspace-actions,
.list-item__actions,
.info-pairs,
.info-pair,
.stack-form--inline {
  display: flex;
  gap: 12px;
}

.dashboard-header-bar,
.panel-header {
  align-items: center;
  justify-content: space-between;
}

.dashboard-user-block {
  display: grid;
  gap: 8px;
}

.workspace-user-name {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
}

.workspace-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

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

.workspace-card {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.info-pairs {
  flex-wrap: wrap;
}

.info-pair {
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  flex-direction: column;
}

.info-pair span,
.section-caption {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2c5b92;
}

.info-pair strong {
  font-size: 0.98rem;
  color: var(--text-primary);
}

.stack-form,
.stack-list {
  display: grid;
  gap: 12px;
}

.stack-form--inline {
  align-items: flex-end;
  flex-wrap: wrap;
}

.field--grow {
  flex: 1 1 260px;
}

.inline-code {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 48, 87, 0.1);
  color: #103057;
  font-weight: 800;
}

.list-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: grid;
  gap: 8px;
}

.list-item--empty {
  color: var(--text-secondary);
  text-align: center;
}

.list-item--unread {
  border-color: rgba(29, 79, 134, 0.42);
  background: rgba(219, 234, 254, 0.76);
}

.list-item__title {
  font-weight: 800;
  color: var(--text-primary);
}

.list-item__meta,
.list-item__detail {
  color: var(--text-secondary);
  line-height: 1.45;
}

.list-item__actions {
  flex-wrap: wrap;
  align-items: center;
}

.inline-select {
  min-height: 42px;
  min-width: 130px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

.mini-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: none;
  background: #103057;
  color: #eff6ff;
  font-weight: 700;
}

.mini-button--danger {
  background: #b91c1c;
}

@media (max-width: 1180px) {
  .workspace-grid,
  .workspace-grid--compact,
  .workspace-grid--dual,
  .workspace-grid--triple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dashboard-header-bar,
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-actions,
  .list-item__actions {
    width: 100%;
  }

  .inline-select,
  .mini-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .app-shell,
  .category-page-shell {
    width: calc(100% - 16px);
  }

  .auth-page-shell {
    padding: 12px;
  }

  .auth-page {
    min-height: calc(100vh - 24px);
  }

  .auth-layout__top {
    padding-top: 72px;
  }

  .exit-button {
    min-height: 44px;
    padding: 0 16px;
  }

  .brand-logo--hero,
  .brand-logo--large,
  .brand-logo--auth {
    width: min(240px, 62vw);
  }

  .auth-panel,
  .auth-panel--register,
  .dashboard-header,
  .category-header {
    padding: 22px 18px 20px;
  }

  .category-grid,
  .games-grid {
    grid-template-columns: 1fr;
  }
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.category-header__content {
  display: grid;
  gap: 10px;
}

.workspace-card .info-pairs {
  margin: 0;
}

@media (max-width: 860px) {
  .toolbar-actions {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .category-games-page,
  .category-games-page .category-page-shell,
  .category-games-page .dashboard-topbar,
  .category-games-page .category-topbar__left,
  .category-games-page .category-header,
  .category-games-page .games-grid {
    width: 100%;
    max-width: 100%;
  }

  .category-games-page .category-page-shell {
    width: 100%;
    padding:
      max(10px, var(--safe-top))
      calc(12px + var(--safe-right))
      calc(18px + var(--safe-bottom))
      calc(12px + var(--safe-left));
    gap: 12px;
  }

  .category-games-page .dashboard-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .category-games-page .category-topbar__left {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .category-games-page #backButton {
    width: auto;
    min-width: 0;
    padding: 0 14px;
  }

  .category-games-page .user-chip,
  .category-games-page .user-chip__meta {
    min-width: 0;
  }

  .category-games-page .user-chip__title,
  .category-games-page #pageUserEmail {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .category-games-page .toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .category-games-page .toolbar-actions .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .category-games-page .category-header {
    padding: 18px 16px;
  }

  .category-games-page .category-header__content {
    justify-items: center;
    text-align: center;
  }

  .category-games-page .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    justify-content: center;
  }

  .category-games-page .game-card,
  .category-games-page .empty-state {
    width: 100%;
    min-width: 0;
  }

  .category-games-page .game-card .media-frame {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 480px) {
  .category-games-page .category-page-shell {
    padding:
      max(8px, var(--safe-top))
      calc(10px + var(--safe-right))
      calc(16px + var(--safe-bottom))
      calc(10px + var(--safe-left));
    gap: 10px;
  }

  .category-games-page .dashboard-topbar {
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  .category-games-page .category-topbar__left {
    grid-template-columns: 1fr;
  }

  .category-games-page #backButton {
    width: 100%;
  }

  .category-games-page .user-chip {
    align-items: center;
    text-align: center;
  }

  .category-games-page .user-chip__meta {
    justify-content: center;
  }

  .category-games-page .toolbar-actions .secondary-button {
    min-height: 42px;
    padding: 0 10px;
  }

  .category-games-page .category-header {
    padding: 16px 14px;
  }

  .category-games-page .section-title {
    font-size: clamp(1.2rem, 6vw, 1.5rem);
  }

  .category-games-page .section-copy {
    font-size: 0.92rem;
  }

  .category-games-page .games-grid {
    gap: 10px;
  }

  .category-games-page .game-card {
    padding: 10px;
  }

  .category-games-page .game-card__title,
  .category-games-page .game-card__meta {
    text-align: center;
  }
}

@media (max-width: 359px) {
  .category-games-page .toolbar-actions,
  .category-games-page .games-grid {
    grid-template-columns: 1fr;
  }
}
