:root {
  --bg: #0b0d10;
  --panel: rgba(14, 17, 21, 0.92);
  --panel-solid: #10141a;
  --panel-soft: #151b23;
  --line: #29a9ff;
  --line-soft: rgba(41, 169, 255, 0.42);
  --text: #ffffff;
  --muted: #c9d4df;
  --blue: #42b8ff;
  --blue-dark: #1789d1;
  --gold: #ffb32c;
  --green: #44d07b;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --max: 1410px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  background:
    radial-gradient(circle at 12% 20%, rgba(41, 169, 255, 0.12), transparent 24%),
    radial-gradient(circle at 78% 8%, rgba(255, 179, 44, 0.11), transparent 20%),
    linear-gradient(rgba(11, 13, 16, 0.78), rgba(11, 13, 16, 0.92)),
    #0b0d10;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(135deg, transparent 0 64%, rgba(255, 255, 255, 0.1) 65% 66%, transparent 67%),
    linear-gradient(45deg, transparent 0 68%, rgba(255, 179, 44, 0.17) 69% 70%, transparent 71%);
  background-size: 220px 180px, 260px 220px;
}

a {
  color: inherit;
}

.page-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding-top: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 auto;
  padding: 0 16px;
  background: rgba(8, 10, 13, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-bar {
  width: min(var(--max), 100%);
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 162px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #fff;
  text-decoration: none;
  font-size: 0;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: none;
}

.logo img {
  width: 154px;
  height: auto;
  display: block;
}

.search {
  display: flex;
  align-items: center;
  width: min(430px, 100%);
  justify-self: center;
  height: 40px;
  border-radius: 999px;
  background: #2b2b2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
  color: var(--text);
  font-size: 0.94rem;
}

.search button,
.pill,
.icon-button {
  border: 0;
  color: #051019;
  background: var(--blue);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(66, 184, 255, 0.28), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.search button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-right: 2px;
  font-size: 0.92rem;
}

.top-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.pill:hover,
.search button:hover,
.icon-button:hover {
  transform: translateY(-2px);
  background: #65c7ff;
}

.mobile-links {
  display: none;
}

.ad-container {
  min-height: 90px;
  margin: 20px 0;
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius);
  background: rgba(16, 20, 26, 0.7);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 768px) {
  .ad-container {
    min-height: 250px;
  }
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 18px;
  align-items: start;
}

.game-stage,
.panel,
.sidebar-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.game-stage {
  position: relative;
  overflow: hidden;
}

.game-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(66, 184, 255, 0.46), transparent 22%),
    linear-gradient(135deg, #3185bb, #4bbce4);
}

.game-shell.is-playing {
  aspect-ratio: 16 / 9;
}

.game-shell.is-playing::before {
  display: none;
}

.game-shell::before {
  content: "TAG";
  position: absolute;
  inset: -8% 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 900;
  filter: blur(6px);
}

.game-cover,
.game-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.game-frame {
  overflow: hidden;
}

.game-shell.is-playing .game-frame {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  transform-origin: top left;
}

.game-shell.is-fit-frame {
  aspect-ratio: auto;
}

.game-shell.is-fit-frame .game-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--game-native-width, 1040px) !important;
  height: var(--game-native-height, 600px) !important;
  transform: scale(var(--game-scale, 1)) !important;
  transform-origin: top left;
}

.game-cover {
  object-fit: cover;
}

.game-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

.fullscreen-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  min-height: 34px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(6, 17, 26, 0.76);
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.fullscreen-button:hover,
.fullscreen-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  background: rgba(23, 137, 209, 0.9);
  outline: 0;
}

.game-load-message {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 7;
  transform: translateX(-50%);
  max-width: min(520px, calc(100% - 32px));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  background: rgba(6, 17, 26, 0.84);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.game-load-message.is-error {
  border-color: rgba(255, 179, 44, 0.75);
  color: #ffe8b8;
}

.game-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #000;
  display: grid;
  place-items: center;
}

.game-stage:fullscreen .game-shell {
  width: 100vw;
  height: 100vh !important;
  aspect-ratio: auto;
  border-radius: 0;
}

.game-stage:fullscreen .game-frame,
.game-stage:fullscreen .game-cover {
  width: 100% !important;
  height: 100% !important;
}

.game-stage:fullscreen .game-frame {
  position: absolute;
  top: var(--game-offset-y, 0);
  left: var(--game-offset-x, 0);
}

.game-stage:fullscreen .game-shell.is-fit-frame .game-frame {
  width: var(--game-native-width, 1040px) !important;
  height: var(--game-native-height, 600px) !important;
  transform: scale(var(--game-scale, 1)) !important;
}

.game-stage:fullscreen .game-tools {
  top: 14px;
  right: 14px;
}

.game-stage:fullscreen .fullscreen-button {
  background: rgba(0, 0, 0, 0.72);
}

.faq-block details {
  border: 1px solid rgba(41, 169, 255, 0.35);
  border-radius: 10px;
  background: rgba(21, 27, 35, 0.72);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.faq-block summary {
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}

.faq-block details p {
  margin: 10px 0 0;
}

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

.catalog-card {
  border: 1px solid rgba(41, 169, 255, 0.45);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(21, 27, 35, 0.8);
  color: #fff;
  text-decoration: none;
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.catalog-card strong,
.catalog-card span {
  display: block;
  padding: 0 12px;
}

.catalog-card strong {
  padding-top: 12px;
  font-size: 1rem;
}

.catalog-card span {
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cover-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.cover-badge {
  width: min(190px, 38vw);
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 18px;
  background: linear-gradient(#67d9ff, #3bafe4);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4.45rem);
  font-weight: 900;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.34);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: clamp(160px, 27vw, 290px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.28));
}

.play-button {
  border: 0;
  min-width: 184px;
  min-height: 58px;
  border-radius: 999px;
  color: #06111a;
  background: var(--blue);
  font-size: 1.14rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.3), 0 18px 32px rgba(66, 184, 255, 0.38);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  animation: pulse 1.9s ease-in-out infinite;
}

.play-button:hover,
.play-button:focus-visible {
  transform: translateY(-3px) scale(1.03);
  background: #70ceff;
  outline: 0;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 0 rgba(0, 0, 0, 0.3), 0 18px 32px rgba(66, 184, 255, 0.32); }
  50% { box-shadow: 0 12px 0 rgba(0, 0, 0, 0.3), 0 18px 52px rgba(66, 184, 255, 0.72); }
}

.game-info {
  margin-top: 18px;
  padding: 20px;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.28rem, 2.1vw, 1.78rem);
  font-weight: 900;
}

h3 {
  margin-top: 20px;
  font-size: 1.06rem;
  font-weight: 850;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.lead {
  font-size: 1rem;
  color: #e3ebf2;
}

.rating {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 850;
  white-space: nowrap;
}

.rating .stars {
  color: var(--gold);
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  display: flex;
  gap: 10px;
  margin: 0;
  color: var(--muted);
}

.meta-list strong {
  color: var(--blue);
}

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

.icon-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.08rem;
}

.panel {
  margin-top: 18px;
  padding: 20px;
}

.panel a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

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

.toc,
.card-grid,
.game-grid,
.footer-links {
  display: grid;
  gap: 12px;
}

.toc {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.toc a,
.mini-card,
.tag {
  display: block;
  border: 1px solid rgba(41, 169, 255, 0.45);
  border-radius: 12px;
  background: rgba(21, 27, 35, 0.8);
  color: #fff;
  text-decoration: none;
}

.toc a {
  padding: 10px 12px;
  font-weight: 850;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
}

li {
  margin-bottom: 7px;
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.mini-card {
  padding: 14px;
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-panel {
  padding: 14px;
}

.sidebar-panel h2 {
  text-align: center;
  font-size: 1.32rem;
}

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

.game-tile {
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #071015;
  font-weight: 900;
  font-size: 1.15rem;
}

.thumb img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.thumb.yellow { background: linear-gradient(135deg, #ffe04b, #f5a000); }
.thumb.pink { background: linear-gradient(135deg, #ff5ccf, #7b61ff); }
.thumb.red { background: linear-gradient(135deg, #ff6a4d, #be2034); }
.thumb.cyan { background: linear-gradient(135deg, #54e8ff, #2b7fff); }
.thumb.lime { background: linear-gradient(135deg, #a4ff5e, #3cc56e); }

.game-tile span {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.25;
}

.breadcrumb {
  margin: 0 0 16px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.page-hero {
  padding: 22px;
}

.content-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag {
  padding: 8px 11px;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  background: rgba(8, 10, 13, 0.9);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 32px;
  color: var(--muted);
  text-align: center;
}

.footer-links {
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .nav-bar {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .search {
    justify-self: stretch;
    width: 100%;
  }

  .top-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .layout,
  .content-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-wrap {
    width: min(100% - 20px, var(--max));
  }

  .top-links {
    display: none;
  }

  .mobile-links {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 14px 0 0;
  }

  .pill {
    min-height: 38px;
    padding: 8px 14px;
  }

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

  .title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

/* Compact visual pass: keeps the same layout while reducing overall scale. */
:root {
  --radius: 13px;
  --max: 1240px;
}

body {
  font-size: 13.5px;
  line-height: 1.58;
}

.page-wrap,
.footer-inner {
  width: min(var(--max), calc(100% - 28px));
}

.page-wrap {
  padding-top: 24px;
}

.site-header {
  padding: 0 14px;
}

.nav-bar {
  min-height: 58px;
  grid-template-columns: 134px minmax(180px, 1fr) auto;
  gap: 16px;
}

.logo {
  gap: 0;
  font-size: 0;
  font-weight: 850;
  text-shadow: none;
}

.logo img {
  width: 132px;
}

.search {
  width: min(340px, 100%);
  height: 34px;
}

.search input {
  padding: 0 13px;
  font-size: 0.9rem;
}

.search button {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

.top-links {
  gap: 9px;
}

.pill {
  min-height: 32px;
  padding: 6px 13px;
  font-size: 0.9rem;
  font-weight: 800;
}

.ad-container {
  margin: 16px 0;
}

.layout {
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 14px;
}

.game-shell::before {
  font-size: clamp(4.2rem, 13vw, 10.5rem);
  font-weight: 850;
}

.cover-card {
  padding: 20px;
}

.cover-badge {
  width: min(156px, 34vw);
  border-radius: 13px;
  font-size: clamp(1.95rem, 5vw, 3.65rem);
  font-weight: 850;
}

.play-overlay {
  padding-top: clamp(120px, 21vw, 214px);
}

.play-button {
  min-width: 150px;
  min-height: 48px;
  font-size: 0.98rem;
  font-weight: 850;
}

.game-info {
  margin-top: 14px;
  padding: 15px;
}

.title-row {
  gap: 12px;
  padding-bottom: 13px;
  margin-bottom: 13px;
}

h1 {
  font-size: clamp(1.42rem, 2.65vw, 2.12rem);
  font-weight: 850;
}

h2 {
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  font-weight: 850;
}

h3 {
  margin-top: 17px;
  font-size: 0.98rem;
  font-weight: 800;
}

p {
  margin-bottom: 12px;
}

.lead {
  font-size: 0.94rem;
}

.rating {
  font-size: 0.88rem;
  font-weight: 800;
}

.meta-list {
  gap: 6px;
}

.panel {
  margin-top: 14px;
  padding: 16px;
}

.toc,
.card-grid,
.game-grid,
.footer-links {
  gap: 9px;
}

.toc a {
  padding: 8px 10px;
  font-weight: 800;
}

ul,
ol {
  margin-bottom: 13px;
  padding-left: 19px;
}

li {
  margin-bottom: 6px;
}

.card-grid {
  margin-top: 11px;
}

.mini-card {
  padding: 12px;
}

.sidebar {
  gap: 14px;
}

.sidebar-panel {
  padding: 12px;
}

.sidebar-panel h2 {
  font-size: 1.12rem;
}

.thumb {
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 850;
}

.game-tile span {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 720;
}

.breadcrumb {
  margin: 0 0 13px;
}

.page-hero {
  padding: 18px;
}

.content-page {
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 14px;
}

.tag-cloud {
  gap: 7px;
}

.tag {
  padding: 6px 9px;
  font-size: 0.84rem;
  font-weight: 760;
}

.site-footer {
  margin-top: 26px;
}

.footer-inner {
  padding: 20px 0 28px;
}

@media (max-width: 1100px) {
  .nav-bar,
  .layout,
  .content-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 13px;
  }

  .page-wrap {
    width: min(100% - 18px, var(--max));
  }

  .mobile-links {
    margin-top: 11px;
  }

  .pill {
    min-height: 30px;
    padding: 5px 11px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }
}
