body.page-home,
body.page-game {
  background:
    radial-gradient(circle at 15% -20%, rgba(77, 196, 255, 0.16), transparent 35%),
    radial-gradient(circle at 95% -15%, rgba(45, 225, 194, 0.14), transparent 38%),
    linear-gradient(180deg, var(--ui-bg, #080d1a) 0%, #050a14 100%);
  color: var(--ui-text, #e8f2ff);
}

:root[data-theme="light"] body.page-home,
:root[data-theme="light"] body.page-game {
  background:
    radial-gradient(circle at 12% -24%, rgba(96, 124, 161, 0.08), transparent 34%),
    radial-gradient(circle at 90% -8%, rgba(77, 104, 141, 0.08), transparent 38%),
    linear-gradient(180deg, #f4f6f9 0%, #eef2f7 100%);
}

.app-wrapper {
  min-height: 100svh;
}

.app-shell {
  width: min(1720px, 100%);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px);
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 16px;
  box-sizing: border-box;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-hero {
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  padding: clamp(16px, 2.4vw, 28px);
  background:
    radial-gradient(circle at 85% 15%, rgba(45, 225, 194, 0.2), transparent 35%),
    radial-gradient(circle at 12% 88%, rgba(77, 196, 255, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(10, 19, 37, 0.9) 0%, rgba(19, 33, 61, 0.9) 100%);
  box-shadow: var(--ui-shadow);
}

:root[data-theme="light"] .home-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(84, 117, 159, 0.08), transparent 35%),
    radial-gradient(circle at 12% 88%, rgba(78, 106, 145, 0.08), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 253, 0.98) 100%);
  border-color: rgba(23, 43, 73, 0.13);
  box-shadow: 0 12px 26px rgba(17, 35, 59, 0.1);
}

.home-hero__game {
  position: relative;
  display: block;
  width: 100%;
  min-height: clamp(190px, 28vw, 320px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(159, 211, 255, 0.4);
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(6, 16, 34, 0.34);
}

.home-hero__game img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.home-hero__game-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(45, 225, 194, 0.22), transparent 38%),
    linear-gradient(to right, rgba(6, 12, 24, 0.78) 0%, rgba(6, 12, 24, 0.36) 48%, rgba(6, 12, 24, 0.65) 100%);
}

.home-hero__game-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(14px, 2vw, 26px);
}

.home-hero__game-content h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.05;
  max-width: min(620px, 85%);
}

.home-hero__game-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(178, 228, 255, 0.58);
  background: linear-gradient(145deg, #4dc4ff 0%, #6b7bff 100%);
  color: #ffffff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 18px;
  box-shadow: 0 10px 22px rgba(36, 88, 194, 0.44);
}

:root[data-theme="light"] .home-hero__game {
  border-color: rgba(32, 56, 94, 0.2);
}

:root[data-theme="light"] .home-hero__game-overlay {
  background:
    radial-gradient(circle at 80% 30%, rgba(59, 94, 140, 0.1), transparent 38%),
    linear-gradient(to right, rgba(9, 20, 39, 0.72) 0%, rgba(9, 20, 39, 0.34) 48%, rgba(9, 20, 39, 0.66) 100%);
}

.home-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--ui-highlight);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0;
  color: var(--ui-text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}



.home-hero p {
  margin: 12px 0 0;
  color: var(--ui-text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 760px;
}

.home-hero__badges {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-hero__badges span {
  border-radius: 999px;
  border: 1px solid var(--ui-border);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ui-text);
}

:root[data-theme="light"] .home-hero__badges span {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(27, 48, 79, 0.14);
  color: #2f425f;
}

.home-search-inline {
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(140deg, rgba(13, 24, 44, 0.7), rgba(22, 38, 66, 0.76));
}

:root[data-theme="light"] .home-search-inline {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.98));
  border-color: rgba(23, 43, 73, 0.13);
}

.home-search-empty {
  margin: 10px 0 0;
  color: var(--ui-text-muted);
  font-size: 14px;
}

.home-categories-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 10px;
  padding: 2px;
}

.home-category-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--ui-border);
  padding: 8px 13px;
  text-decoration: none;
  color: var(--ui-text-muted);
  background: rgba(255, 255, 255, 0.06);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.home-category-pill:hover {
  color: var(--ui-text);
  border-color: rgba(131, 207, 255, 0.56);
}

.home-category-pill--active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(145deg, #4dc4ff 0%, #6b7bff 100%);
}

.home-games-section {
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  padding: clamp(14px, 2vw, 24px);
  background: linear-gradient(145deg, rgba(14, 24, 43, 0.82), rgba(19, 33, 59, 0.8));
  box-shadow: var(--ui-shadow);
}

:root[data-theme="light"] .home-games-section {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 253, 0.98));
  border-color: rgba(23, 43, 73, 0.13);
  box-shadow: 0 12px 26px rgba(17, 35, 59, 0.1);
}

.home-section-title {
  margin: 0 0 14px;
  color: var(--ui-text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

.home-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  grid-auto-rows: 94px;
  grid-auto-flow: row dense;
  align-content: start;
  gap: 14px;
}

.home-game-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(159, 206, 255, 0.28);
  background: linear-gradient(145deg, rgba(18, 31, 54, 0.9), rgba(27, 44, 76, 0.9));
  box-shadow: 0 8px 18px rgba(5, 14, 31, 0.36);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="light"] .home-game-card {
  border-color: rgba(26, 48, 81, 0.14);
  background: linear-gradient(145deg, #ffffff, #f3f6fb);
  box-shadow: 0 7px 16px rgba(28, 49, 80, 0.1);
}

.home-game-card:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 14px 30px rgba(18, 44, 85, 0.42);
}

.home-game-card--small {
  grid-column: span 1;
  grid-row: span 1;
}

.home-game-card--medium {
  grid-column: span 2;
  grid-row: span 2;
}

.home-game-card--large {
  grid-column: span 2;
  grid-row: span 2;
}

.home-game-card-media,
.home-game-card-overlay {
  position: absolute;
  inset: 0;
}

.home-game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-game-card-overlay {
  z-index: 2;
  opacity: 0;
  background: linear-gradient(to top, rgba(4, 7, 12, 0.92) 0%, rgba(6, 15, 29, 0.15) 54%);
  transition: opacity 0.18s ease;
}

.home-game-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 8px;
  color: #f4faff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.home-game-card:hover .home-game-card-overlay,
.home-game-card:hover .home-game-card-title {
  opacity: 1;
}

.app-sidebar {
  min-width: 0;
  position: relative;
}

.app-sidebar__panel {
  position: sticky;
  top: 86px;
  max-height: calc(100svh - 102px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(145, 209, 255, 0.3);
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 225, 194, 0.17), transparent 36%),
    radial-gradient(circle at 92% 4%, rgba(109, 123, 255, 0.28), transparent 34%),
    linear-gradient(155deg, rgba(11, 20, 38, 0.96), rgba(17, 31, 56, 0.94));
  box-shadow: 0 20px 40px rgba(4, 11, 25, 0.5);
  padding: 14px;
}

:root[data-theme="light"] .app-sidebar__panel {
  border-color: rgba(21, 44, 76, 0.15);
  background:
    radial-gradient(circle at 10% 2%, rgba(90, 122, 164, 0.08), transparent 35%),
    radial-gradient(circle at 94% 4%, rgba(76, 107, 148, 0.08), transparent 34%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 253, 0.98));
  box-shadow: 0 14px 30px rgba(20, 39, 69, 0.12);
}

.app-sidebar__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .app-sidebar__panel::before {
  border-color: rgba(22, 44, 76, 0.07);
}

.app-sidebar__panel::-webkit-scrollbar {
  width: 8px;
}

.app-sidebar__panel::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(77, 196, 255, 0.6), rgba(107, 123, 255, 0.62));
}

.app-sidebar__brand {
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(134, 202, 255, 0.24);
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

:root[data-theme="light"] .app-sidebar__brand {
  border-color: rgba(70, 119, 190, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 248, 255, 0.9));
}

.app-sidebar__brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: linear-gradient(145deg, #2de1c2 0%, #4a77ff 52%, #6f48f0 100%);
  box-shadow: 0 10px 20px rgba(55, 100, 218, 0.45);
}

.app-sidebar__brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-sidebar__brand-copy strong {
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.app-sidebar__brand-copy span {
  color: var(--ui-text-muted);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-sidebar__stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.app-sidebar__stats span {
  border-radius: 10px;
  border: 1px solid rgba(136, 203, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ui-text);
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.03em;
}

:root[data-theme="light"] .app-sidebar__stats span {
  border-color: rgba(26, 48, 81, 0.14);
  background: rgba(255, 255, 255, 0.95);
  color: #2f425f;
}

.app-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-sidebar__eyebrow {
  color: var(--ui-text-muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-sidebar__close {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--ui-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ui-text);
}

.app-sidebar__close svg {
  width: 16px;
  height: 16px;
}

.app-sidebar__all-link {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(161, 217, 255, 0.35);
  padding: 11px 12px;
  text-decoration: none;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(145deg, #46c6ff 0%, #5f78ff 100%);
  box-shadow: 0 10px 20px rgba(47, 94, 212, 0.45);
}

.app-sidebar__all-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.app-sidebar__section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(134, 202, 255, 0.16);
}

:root[data-theme="light"] .app-sidebar__section {
  border-top-color: rgba(23, 43, 73, 0.11);
}

.app-sidebar__section h3 {
  margin: 0 0 10px;
  color: var(--ui-text-muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-sidebar__list,
.app-sidebar__quick-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.app-sidebar__link,
.app-sidebar__quick-link {
  width: 100%;
  display: grid;
  gap: 9px;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(136, 203, 255, 0.16);
  text-decoration: none;
  color: var(--ui-text);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  padding: 7px;
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.app-sidebar__link {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.app-sidebar__quick-link {
  grid-template-columns: 42px minmax(0, 1fr);
}

:root[data-theme="light"] .app-sidebar__link,
:root[data-theme="light"] .app-sidebar__quick-link {
  border-color: rgba(23, 43, 73, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.app-sidebar__link img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.app-sidebar__quick-link img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.app-sidebar__label {
  color: var(--ui-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(123, 194, 255, 0.5);
}

.app-sidebar__link:hover,
.app-sidebar__quick-link:hover {
  border-color: rgba(130, 205, 255, 0.65);
  transform: translateX(2px);
}

.app-sidebar__link--active {
  border-color: rgba(106, 187, 255, 0.78);
  background: linear-gradient(145deg, rgba(66, 113, 233, 0.45), rgba(48, 186, 170, 0.3));
  box-shadow: 0 10px 18px rgba(22, 58, 123, 0.35);
}

.app-sidebar__link--active .app-sidebar__pulse {
  background: #5effd9;
  box-shadow: 0 0 0 5px rgba(94, 255, 217, 0.12);
}

.sidebar-backdrop {
  display: none;
}

body.page-game .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.page-game .app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 180;
  width: min(380px, calc(100% - 30px));
  height: 100svh;
  transform: translateX(-108%);
  transition: transform 0.2s ease;
}

body.page-game .app-sidebar__panel {
  position: relative;
  top: 0;
  height: 100%;
  max-height: none;
  border-radius: 0 22px 22px 0;
  padding-top: 16px;
}

body.page-game .app-sidebar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-game .sidebar-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  backdrop-filter: blur(3px);
  background: rgba(7, 12, 24, 0.62);
  opacity: 0;
  pointer-events: none;
  z-index: 170;
  transition: opacity 0.2s ease;
}

body.page-game.sidebar-open .app-sidebar {
  transform: translateX(0);
}

body.page-game.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.page-game .sidebar-toggle {
  display: none !important;
}

.game-arcade-layout {
  display: grid;
  width: min(1520px, 100%);
  margin: 0 auto;
  grid-template-columns: 236px minmax(0, 1fr) 236px;
  gap: 14px;
  align-items: start;
}

.game-side-rail {
  border-radius: 18px;
  border: 1px solid var(--ui-border);
  background: linear-gradient(160deg, rgba(12, 24, 44, 0.9), rgba(18, 32, 60, 0.86));
  box-shadow: var(--ui-shadow);
  padding: 10px;
}

:root[data-theme="light"] .game-side-rail {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 253, 0.98));
  border-color: rgba(23, 43, 73, 0.13);
  box-shadow: 0 12px 24px rgba(17, 35, 59, 0.1);
}

.game-side-brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(141, 208, 255, 0.32);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px;
}

:root[data-theme="light"] .game-side-brand {
  border-color: rgba(23, 43, 73, 0.16);
  background: rgba(255, 255, 255, 0.96);
}

.game-side-brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(145deg, #32d6c3 0%, #4a77ff 100%);
}

.game-side-brand__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.game-side-brand__text strong {
  color: var(--ui-text);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.game-side-brand__text em {
  color: var(--ui-text-muted);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
}

.game-side-rail__stack {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.game-side-thumb {
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(146, 210, 255, 0.28);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.game-side-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-side-thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(122, 198, 255, 0.62);
}

.game-player-shell {
  border-radius: 20px;
  border: 1px solid var(--ui-border);
  background:
    radial-gradient(circle at 10% 10%, rgba(66, 225, 194, 0.14), transparent 30%),
    linear-gradient(160deg, rgba(13, 24, 44, 0.9), rgba(18, 33, 61, 0.88));
  box-shadow: var(--ui-shadow);
  padding: 12px;
  width: 100%;
  max-width: none;
  margin: 0;
}

:root[data-theme="light"] .game-player-shell {
  background:
    radial-gradient(circle at 10% 10%, rgba(84, 117, 159, 0.08), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 253, 0.98));
  border-color: rgba(23, 43, 73, 0.13);
  box-shadow: 0 12px 24px rgba(17, 35, 59, 0.1);
}

.game-player-stage.player-stage.game-container {
  width: min(100%, 820px);
  margin: 0 auto;
}

.game-player-stage .game-iframe-container {
  border-radius: 16px;
  max-height: 60svh;
}

.game-player-meta {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--ui-border);
  background: rgba(6, 12, 24, 0.5);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

:root[data-theme="light"] .game-player-meta {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(23, 43, 73, 0.14);
}

.game-player-meta__title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-player-meta__title img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(142, 208, 255, 0.4);
}

.game-player-meta__title strong {
  display: block;
  color: var(--ui-text);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.game-player-meta__title span {
  display: block;
  color: var(--ui-text-muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.game-player-meta__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-player-meta__action {
  border-radius: 10px;
  border: 1px solid rgba(140, 207, 255, 0.35);
  text-decoration: none;
  color: #ffffff;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(145deg, #46c6ff 0%, #5f78ff 100%);
}

:root[data-theme="light"] .game-player-meta__action {
  border-color: rgba(32, 56, 94, 0.22);
  background: linear-gradient(145deg, #2e4f86 0%, #456ba8 100%);
  color: #ffffff;
}

.game-side-promo {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(141, 208, 255, 0.32);
  text-decoration: none;
  min-height: 170px;
}

.game-side-promo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.game-side-promo__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 10px;
  background: linear-gradient(to top, rgba(5, 9, 16, 0.86), rgba(5, 9, 16, 0.06));
}

.game-side-promo__content strong {
  display: block;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-side-promo__content em {
  display: block;
  color: #f3f8ff;
  font-size: 14px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 700;
}

.game-side-rail__grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.game-side-thumb--grid {
  aspect-ratio: 1 / 1;
}

.game-bottom-grid-wrap {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid var(--ui-border);
  background: linear-gradient(160deg, rgba(12, 24, 44, 0.9), rgba(18, 32, 60, 0.86));
  box-shadow: var(--ui-shadow);
  padding: 10px;
}

:root[data-theme="light"] .game-bottom-grid-wrap {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 253, 0.98));
  border-color: rgba(23, 43, 73, 0.13);
  box-shadow: 0 12px 24px rgba(17, 35, 59, 0.1);
}

.game-bottom-grid {
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  grid-auto-rows: 98px;
  grid-auto-flow: row dense;
  gap: 8px;
}

.game-bottom-card {
  border-radius: 10px;
}

.game-bottom-card .home-game-card-title {
  font-size: 11px;
  padding: 6px;
}

.game-bottom-grid .home-game-card--medium,
.game-bottom-grid .home-game-card--large {
  grid-column: span 2;
  grid-row: span 2;
}

.game-bottom-grid .home-game-card--small {
  grid-column: span 1;
  grid-row: span 1;
}

.game-bottom-grid .home-game-card-title {
  opacity: 1;
  background: linear-gradient(to top, rgba(5, 9, 16, 0.72), rgba(5, 9, 16, 0));
}

.game-bottom-grid .home-game-card-overlay {
  opacity: 0;
}

.game-bottom-thumb {
  min-height: 58px;
}

.player-hero {
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(14, 24, 44, 0.84), rgba(19, 35, 63, 0.82));
  box-shadow: var(--ui-shadow);
  padding: clamp(14px, 2vw, 24px);
}

:root[data-theme="light"] .player-hero {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 253, 0.98));
  border-color: rgba(23, 43, 73, 0.13);
  box-shadow: 0 12px 26px rgba(17, 35, 59, 0.1);
}

.player-hero__head {
  margin-bottom: 14px;
}

.player-hero__eyebrow {
  margin: 0 0 6px;
  color: var(--ui-highlight);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.player-hero h1 {
  margin: 0;
  color: var(--ui-text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.player-stage.game-container {
  position: relative;
  grid-row: auto;
  grid-column: auto;
  width: min(100%, 820px);
  margin: 0 auto;
}

.player-stage .game-iframe-container {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 62svh;
  border: 1px solid var(--ui-border);
  background: #04070e;
  position: relative;
}

.player-stage .game-iframe-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.PlayBtn {
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(178, 228, 255, 0.5);
  background: linear-gradient(145deg, #4dc4ff 0%, #6b7bff 100%);
  padding: 12px 28px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(16px, 1.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 16px 32px rgba(42, 90, 200, 0.46);
}

@media (max-width: 1280px) {
  .game-arcade-layout {
    grid-template-columns: 192px minmax(0, 1fr) 192px;
    gap: 12px;
  }

  .player-stage.game-container,
  .game-player-stage.player-stage.game-container {
    width: min(100%, 760px);
  }
}

@media (max-width: 1120px) {
  .game-arcade-layout {
    grid-template-columns: 164px minmax(0, 1fr) 164px;
  }

  .game-bottom-grid {
    grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
    grid-auto-rows: 98px;
  }
}

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

  .game-side-rail {
    padding: 8px;
  }

  .game-side-rail--left .game-side-brand {
    display: none;
  }

  .game-side-rail__stack,
  .game-side-rail__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .game-side-thumb,
  .game-side-thumb--grid {
    aspect-ratio: 1 / 1;
  }

  .game-player-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-bottom-grid {
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    grid-auto-rows: 82px;
  }

  .player-stage.game-container,
  .game-player-stage.player-stage.game-container {
    width: 100%;
  }

  .player-stage .game-iframe-container {
    max-height: none;
  }
}

.PlayBtn:hover {
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.02);
}

.home-info-card {
  border-radius: 18px;
  border: 1px solid var(--ui-border);
  background: linear-gradient(145deg, rgba(14, 24, 44, 0.86), rgba(19, 35, 63, 0.82));
  color: var(--ui-text);
  box-shadow: var(--ui-shadow);
  margin-top: 6px;
}

:root[data-theme="light"] .home-info-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 253, 0.98));
  border-color: rgba(23, 43, 73, 0.13);
  box-shadow: 0 12px 26px rgba(17, 35, 59, 0.1);
}

:root[data-theme="light"] .home-category-pill {
  border-color: rgba(23, 43, 73, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #4f617a;
}

:root[data-theme="light"] .home-category-pill:hover {
  border-color: rgba(32, 56, 94, 0.26);
  color: #1f3556;
}

:root[data-theme="light"] .home-category-pill--active {
  color: #ffffff;
  background: linear-gradient(145deg, #2e4f86 0%, #456ba8 100%);
}

:root[data-theme="light"] .app-sidebar__all-link {
  border-color: rgba(32, 56, 94, 0.22);
  background: linear-gradient(145deg, #2e4f86 0%, #456ba8 100%);
  box-shadow: 0 8px 16px rgba(24, 46, 80, 0.18);
}

:root[data-theme="light"] .app-sidebar__link--active {
  border-color: rgba(32, 56, 94, 0.34);
  background: linear-gradient(145deg, rgba(41, 76, 130, 0.12), rgba(50, 86, 143, 0.08));
  box-shadow: 0 6px 14px rgba(24, 46, 80, 0.1);
}

:root[data-theme="light"] .app-sidebar__link--active .app-sidebar__pulse {
  background: #355f9d;
  box-shadow: 0 0 0 4px rgba(53, 95, 157, 0.14);
}

:root[data-theme="light"] .PlayBtn {
  border-color: rgba(32, 56, 94, 0.28);
  background: linear-gradient(145deg, #2e4f86 0%, #456ba8 100%);
  box-shadow: 0 12px 24px rgba(24, 46, 80, 0.22);
}

.home-info-card h2,
.home-info-card p {
  color: inherit;
}

.home-info-card h2 {
  margin-bottom: 8px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 24px;
}

.home-info-card p {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--ui-text-muted);
}

.home-about {
  padding: clamp(14px, 2vw, 24px);
}

.seo-content {
  padding: clamp(14px, 2vw, 24px);
}

.seo-title {
  margin: 0 0 10px;
  color: var(--ui-text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(24px, 2.7vw, 32px);
  line-height: 1.15;
}

.seo-short {
  margin-bottom: 12px;
  color: var(--ui-text-muted);
  line-height: 1.72;
}

.seo-list {
  margin: 0 0 10px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: var(--ui-text-muted);
}

.seo-tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-tag-link {
  border-radius: 999px;
  border: 1px solid rgba(144, 209, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ui-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 7px 11px;
}

.seo-tag-link:hover {
  text-decoration: none;
  border-color: rgba(130, 205, 255, 0.64);
}

.seo-game-links {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 16px;
}

.seo-game-links a {
  color: #8fcdff;
  text-decoration: none;
  font-weight: 700;
}

.seo-game-links a:hover {
  text-decoration: underline;
}

.home-about h2,
.home-about h3 {
  color: var(--ui-text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.home-about h2 {
  margin-top: 0;
}

.home-about h3 {
  margin: 20px 0 8px;
  font-size: clamp(18px, 2vw, 22px);
}

.home-about p {
  margin-bottom: 10px;
}

.home-readmore {
  margin-top: 8px;
}

.home-readmore[open] {
  display: flex;
  flex-direction: column;
}

.home-readmore summary {
  list-style: none;
}

.home-readmore summary::-webkit-details-marker {
  display: none;
}

.home-readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(141, 208, 255, 0.34);
  background: linear-gradient(145deg, rgba(17, 31, 56, 0.9), rgba(27, 45, 77, 0.88));
  color: var(--ui-text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
  user-select: none;
}

.home-readmore-btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.18s ease;
}

.home-readmore__label-close {
  display: none;
}

.home-readmore[open] .home-readmore-btn::after {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.home-readmore[open] .home-readmore__label-open {
  display: none;
}

.home-readmore[open] .home-readmore__label-close {
  display: inline;
}

.home-readmore-content {
  margin-top: 12px;
}

.home-readmore[open] .home-readmore-btn {
  order: 2;
  margin-top: 12px;
  width: fit-content;
}

.home-readmore[open] .home-readmore-content {
  order: 1;
  margin-top: 0;
}

.home-about a {
  color: #8fcdff;
  font-weight: 700;
  text-decoration: none;
}

.home-about a:hover {
  text-decoration: underline;
}

:root[data-theme="light"] .home-about a {
  color: #2e4f86;
}

:root[data-theme="light"] .seo-tag-link {
  border-color: rgba(23, 43, 73, 0.16);
  background: rgba(255, 255, 255, 0.95);
  color: #2f425f;
}

:root[data-theme="light"] .seo-game-links a {
  color: #2e4f86;
}

:root[data-theme="light"] .home-readmore-btn {
  border-color: rgba(23, 43, 73, 0.2);
  background: linear-gradient(145deg, #ffffff, #f3f7fc);
  color: #2f425f;
}

.home-about-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.home-about-list li {
  color: var(--ui-text);
}

.home-about-list strong {
  color: var(--ui-text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.home-about-list p {
  margin: 4px 0 0;
}

.home-about-category-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.home-about-category-card {
  border-radius: 14px;
  border: 1px solid rgba(146, 210, 255, 0.28);
  background: linear-gradient(145deg, rgba(17, 30, 54, 0.88), rgba(24, 40, 70, 0.84));
  padding: 12px;
  display: grid;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(5, 14, 31, 0.3);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.home-about-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(130, 205, 255, 0.65);
  text-decoration: none;
}

.home-about-category-card span {
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.home-about-category-card .home-about-category-title {
  color: var(--ui-text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

:root[data-theme="light"] .home-about-category-card {
  border-color: rgba(23, 43, 73, 0.14);
  background: linear-gradient(145deg, #ffffff, #f3f7fc);
  box-shadow: 0 7px 16px rgba(28, 49, 80, 0.08);
}

.home-faq-panel {
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(146, 210, 255, 0.24);
  background: linear-gradient(145deg, rgba(12, 22, 41, 0.9), rgba(17, 31, 56, 0.88));
  box-shadow: 0 12px 26px rgba(5, 14, 31, 0.3);
  overflow: hidden;
}

.home-faq-item {
  border-bottom: 1px solid rgba(146, 210, 255, 0.18);
}

.home-faq-item:last-child {
  border-bottom: 0;
}

.home-faq-item summary {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 16px 64px 16px 14px;
  color: var(--ui-text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.35;
  cursor: pointer;
}

.home-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq-item summary::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(146, 210, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-50%);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.home-faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 26px;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(236, 245, 255, 0.9);
  border-bottom: 2px solid rgba(236, 245, 255, 0.9);
  transform: translateY(-62%) rotate(45deg);
  transition: transform 0.18s ease;
}

.home-faq-item summary:hover::before {
  border-color: rgba(130, 205, 255, 0.64);
}

.home-faq-item[open] summary::before {
  border-color: rgba(130, 205, 255, 0.64);
  background: rgba(128, 206, 255, 0.1);
}

.home-faq-item[open] summary::after {
  transform: translateY(-38%) rotate(-135deg);
}

.home-faq-answer {
  padding: 0 14px 14px;
}

.home-faq-answer p {
  margin: 0;
  color: var(--ui-text-muted);
  line-height: 1.7;
}

:root[data-theme="light"] .home-faq-panel {
  border-color: rgba(23, 43, 73, 0.14);
  background: linear-gradient(145deg, #ffffff, #f3f7fc);
  box-shadow: 0 12px 24px rgba(28, 49, 80, 0.08);
}

:root[data-theme="light"] .home-faq-item {
  border-bottom-color: rgba(23, 43, 73, 0.12);
}

:root[data-theme="light"] .home-faq-item summary::before {
  border-color: rgba(23, 43, 73, 0.18);
  background: rgba(23, 43, 73, 0.04);
}

:root[data-theme="light"] .home-faq-item summary::after {
  border-right-color: #2f425f;
  border-bottom-color: #2f425f;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 180;
    width: min(380px, calc(100% - 30px));
    height: 100svh;
    transform: translateX(-108%);
    transition: transform 0.2s ease;
  }

  .app-sidebar__panel {
    position: relative;
    top: 0;
    height: 100%;
    max-height: none;
    border-radius: 0 22px 22px 0;
    padding-top: 16px;
  }

  .app-sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    backdrop-filter: blur(3px);
    background: rgba(7, 12, 24, 0.62);
    opacity: 0;
    pointer-events: none;
    z-index: 170;
    transition: opacity 0.2s ease;
  }

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

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 10px;
    gap: 12px;
  }

  .home-games-section,
  .player-hero {
    border-radius: 16px;
    padding: 12px;
  }

  .home-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(90px, 1fr);
    grid-auto-flow: row dense;
    gap: 10px;
  }

  .home-game-card--medium {
    grid-column: span 2;
    grid-row: span 2;
  }

  .home-game-card--large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .home-info-card h2 {
    font-size: 20px;
  }

  .home-about {
    padding: 12px;
  }

  .home-about h3 {
    font-size: 18px;
  }

  .seo-content {
    padding: 12px;
  }

  .seo-title {
    font-size: 24px;
  }

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

  .home-readmore-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .home-about-category-grid {
    grid-template-columns: 1fr;
  }

  .home-faq-item summary {
    padding: 13px 56px 13px 12px;
    font-size: 16px;
  }

  .home-faq-item summary::before {
    right: 12px;
    width: 30px;
    height: 30px;
  }

  .home-faq-item summary::after {
    right: 23px;
  }

  .home-faq-answer {
    padding: 0 12px 12px;
  }

  .app-sidebar__stats {
    grid-template-columns: 1fr;
  }
}
