:root {
  --bg: #f4f7f4;
  --surface: #ffffff;
  --surface-soft: #eef5ef;
  --ink: #17211f;
  --muted: #5b6964;
  --line: #d9e4dc;
  --nav: #10211f;
  --nav-soft: #193330;
  --accent: #1d766f;
  --accent-2: #58c4a5;
  --warm: #f4b942;
  --danger: #df5b57;
  --shadow: 0 16px 40px rgba(21, 43, 36, 0.11);
}

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 185, 66, 0.24), transparent 22rem),
    radial-gradient(circle at 88% 4%, rgba(88, 196, 165, 0.22), transparent 24rem),
    linear-gradient(180deg, #f7f2df 0, var(--bg) 21rem);
}

body.is-game-page {
  background:
    linear-gradient(180deg, #132421 0, #172a26 23rem, var(--bg) 23rem);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #14584f;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1230px;
}

.site-shell {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(16, 33, 31, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(14, 28, 25, 0.16);
  backdrop-filter: blur(12px);
}

.site-nav {
  min-height: 70px;
}

.nav-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo {
  display: block;
  width: 188px;
  height: auto;
  padding: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--nav-soft);
  color: #fff;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 1 1 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.nav-item {
  position: relative;
  margin: 0;
}

#mainNav,
.top-nav {
  background: var(--nav);
}

.nav-link,
#mainNav .navbar-nav li.nav-item a.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: #dceae5;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus,
#mainNav .navbar-nav li.nav-item a.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.search-bar {
  display: flex;
  align-items: center;
  width: min(360px, 34vw);
  min-width: 240px;
  height: 42px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.search-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0 12px;
  font-size: 14px;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-submit {
  width: 46px;
  height: 100%;
  border: 0;
  color: #10211f;
  background: var(--accent-2);
}

.category-rail {
  background: #142825;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.category-rail .container {
  min-height: 44px;
  display: flex;
  align-items: center;
}

nav.greedy {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

ul.links,
ul.list-categories {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-categories a,
ul.links a {
  flex: none;
}

.list-categories li,
ul.links li,
nav.greedy button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #d5e5df;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.list-categories li:hover,
ul.links li:hover,
nav.greedy button:hover {
  color: #10211f;
  background: var(--warm);
  border-color: var(--warm);
}

nav.greedy button {
  margin-left: 8px;
}

nav.greedy button.hidden {
  display: none;
}

nav.greedy button::after {
  content: attr(count);
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--nav);
  font-size: 12px;
}

ul.hidden-links {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 220px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--nav);
  box-shadow: var(--shadow);
}

ul.hidden-links.hidden {
  display: none;
}

ul.hidden-links li {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.page-wrap {
  padding: 26px 0 52px;
}

.home-stage {
  padding: 28px 0 26px;
}

.home-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: 26px;
  align-items: stretch;
}

.home-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 370px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(29, 118, 111, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker,
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-copy h1 {
  max-width: 760px;
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
  font-weight: 850;
  letter-spacing: 0;
  color: #13211e;
}

.home-copy p {
  max-width: 670px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn-primary-action,
.btn-secondary-action,
.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn-primary-action {
  color: #10211f;
  background: var(--warm);
}

.btn-primary-action:hover {
  color: #10211f;
  background: #ffc956;
}

.btn-secondary-action {
  color: var(--accent);
  background: #e5f2ed;
  border-color: #c7ded4;
}

.btn-secondary-action:hover {
  color: #0f514b;
  background: #d7ebe3;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
}

.hero-stats div,
.meta-strip div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero-stats strong,
.meta-strip strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.hero-stats span,
.meta-strip span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.featured-play-card {
  position: relative;
  display: block;
  min-height: 370px;
  overflow: hidden;
  border-radius: 8px;
  background: #0e1816;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.featured-play-card img {
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.featured-play-card:hover img {
  transform: scale(1.04);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(11, 22, 20, 0.06), rgba(11, 22, 20, 0.88));
}

.featured-kicker {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-2);
}

.featured-title {
  margin: 5px 0 14px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 850;
}

.featured-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: #10211f;
  background: var(--warm);
  font-weight: 850;
}

.quick-links {
  margin-bottom: 28px;
}

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

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(21, 43, 36, 0.06);
}

.quick-links a:hover {
  border-color: var(--accent-2);
  color: #0e514a;
}

.layout-with-sidebar,
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.main-column,
.play-column {
  min-width: 0;
}

.side-column,
.game-side-column {
  min-width: 0;
}

.game-section,
.game-info-card,
.seo-panel,
.sidebar-card,
.game-player-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(21, 43, 36, 0.07);
}

.game-section {
  padding: 18px;
  margin-bottom: 24px;
}

.section-heading,
.info-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2,
.info-header h2,
.game-info-card h2,
.seo-panel h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: 0;
}

.section-link {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--accent);
  background: #e8f4ef;
  font-size: 13px;
  font-weight: 800;
}

.game-grid {
  row-gap: 18px;
}

.item-grid {
  padding-left: 8px;
  padding-right: 8px;
}

.game-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dce7df;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 22px rgba(21, 43, 36, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  color: var(--ink);
  box-shadow: 0 16px 28px rgba(21, 43, 36, 0.12);
}

.game-card-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e5eee9;
}

.game-card-media img,
img.small-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-body {
  display: block;
  padding: 10px;
}

.game-card-title {
  display: block;
  min-height: 38px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 850;
  overflow: hidden;
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.training-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 152px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-soft);
}

.training-card:hover {
  color: var(--ink);
  border-color: var(--accent-2);
  background: #e3f2ec;
}

.training-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #10211f;
  background: var(--warm);
}

.training-name {
  color: var(--ink);
  font-weight: 850;
}

.training-desc {
  color: var(--muted);
  font-size: 13px;
}

.sidebar-card {
  padding: 16px;
  margin-bottom: 20px;
}

.sticky-card {
  position: sticky;
  top: 132px;
}

.sidebar-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.compact-game-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compact-game-list a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}

.compact-game-list a:hover {
  color: var(--accent);
}

.compact-game-list img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: #dfe9e3;
}

.compact-game-list span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-note p {
  color: var(--muted);
  margin-bottom: 14px;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.tip-list i {
  color: var(--accent);
  margin-right: 6px;
}

.game-player-card {
  overflow: hidden;
  margin-bottom: 18px;
  background: #0a1110;
  border-color: rgba(255, 255, 255, 0.08);
}

.game-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 18px;
  color: #d5e5df;
  background: #0f1c1a;
}

.play-badge {
  color: var(--accent-2);
}

.play-url {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.game-hero-copy {
  min-width: 0;
}

.game-hero-copy h1 {
  margin: 6px 0 6px;
  color: #fff;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
}

.game-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.hero-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.hero-tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #dff5ec;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 800;
}

.hero-play-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.game-iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 520px;
  background: #050808;
}

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

.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #101c1a;
  color: #fff;
}

.game-toolbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.game-toolbar-title img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.game-toolbar-title h1,
.game-toolbar-title strong {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 850;
}

.game-toolbar-title p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  color: #dceae5;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.tool-button:hover {
  color: #10211f;
  background: var(--warm);
}

.primary-tool {
  color: #10211f;
  background: var(--warm);
}

.game-info-card {
  padding: 20px;
  margin-bottom: 20px;
}

.single-description,
.single-instructions,
.seo-panel p {
  color: #34413d;
  font-size: 16px;
}

.single-description p:last-child,
.single-instructions p:last-child,
.seo-panel p:last-child {
  margin-bottom: 0;
}

.info-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.info-block h3,
.seo-panel h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.stats-vote {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.score-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #10211f;
  background: var(--warm);
  font-size: 13px;
  font-weight: 850;
}

.icon-vote {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  background: #f3faf6;
  cursor: pointer;
}

.icon-vote:hover {
  color: #10211f;
  background: var(--accent-2);
}

.color-red {
  color: var(--danger);
}

.vote-status {
  width: 100%;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}

.cat-list,
.game-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.cat-link,
.tag-item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--accent);
  background: #e8f4ef;
  font-size: 13px;
  font-weight: 800;
}

.cat-link:hover,
.tag-item:hover {
  color: #10211f;
  background: var(--warm);
}

.share-row {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.share-row a,
.social-share a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
}

.share-row a:hover {
  background: #14584f;
}

.seo-panel {
  padding: 22px;
  margin-bottom: 24px;
}

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

.seo-panel ul {
  margin: 0;
  padding-left: 20px;
  color: #34413d;
}

.seo-panel li {
  margin-bottom: 8px;
}

.standard-game-content .content-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.content-steps {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #34413d;
}

.content-steps li {
  margin-bottom: 8px;
}

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

.controls-grid div {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5faf7;
}

.controls-grid strong,
.controls-grid span {
  display: block;
}

.controls-grid strong {
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 900;
}

.controls-grid span {
  color: var(--muted);
  font-size: 14px;
}

.feature-list,
.tips-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.tips-list li {
  position: relative;
  min-height: 44px;
  padding: 10px 12px 10px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #34413d;
  background: #f7fbf8;
}

.feature-list li::before,
.tips-list li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.compact-info-block {
  margin-top: 16px;
  padding-top: 16px;
}

.game-details-card .tag-item {
  pointer-events: none;
}

.footer {
  padding: 38px 0;
  color: #d8e6e0;
  background: #10211f;
}

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

.footer-brand img {
  width: 190px;
  margin-bottom: 12px;
}

.footer p {
  color: #a9bbb5;
  margin: 0;
}

.footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

.footer a {
  display: block;
  color: #b7cbc4;
  margin-bottom: 8px;
  font-weight: 700;
}

.footer a:hover {
  color: var(--warm);
}

.copyright {
  padding: 14px 0;
  color: #9eb4ad;
  background: #0a1514;
  text-align: center;
  font-size: 13px;
}

.copyright a {
  color: var(--warm);
}

.dropdown-menu,
ul.user-links {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  min-width: 220px;
  padding: 8px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

ul.user-links {
  list-style: none;
}

ul.user-links.hidden {
  display: none;
}

ul.user-links li,
.nav-item-child {
  padding: 10px 12px;
  color: var(--ink);
}

.user-avatar {
  width: 40px;
  height: 40px;
  margin-left: 6px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
}

.user-avatar img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.banner-ads {
  text-align: center;
  margin: 14px 0;
}

.content-wrapper,
.game-container,
.bottom-container {
  margin: 24px 0;
}

.page-title,
.singlepage-title,
h3.item-title,
h4.widget-title {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
}

.category-description,
.section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.pagination-wrapper {
  margin: 24px 0 36px;
}

.comment-profile-avatar,
.comment-user-avatar,
.comment-avatar {
  width: 48px;
  height: 48px;
}

.comment-profile-avatar img,
.comment-user-avatar img,
.comment-avatar img {
  border-radius: 50%;
}

.post-comment-btn-wrapper {
  margin-top: 10px;
}

.btn-primary {
  border-color: var(--accent);
  background-color: var(--accent);
}

.btn-primary:hover {
  border-color: #14584f;
  background-color: #14584f;
}

.load-more-games-wrapper {
  text-align: center;
  margin: 20px 0 40px;
}

.table-responsive {
  overflow-x: auto;
}

@media (max-width: 1199px) {
  .layout-with-sidebar,
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 20px;
  }

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

@media (max-width: 991px) {
  .site-shell {
    position: static;
  }

  .nav-inner {
    flex-wrap: wrap;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-logo {
    width: 166px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-menu {
    flex: 0 0 100%;
    width: 100%;
    align-items: stretch;
    gap: 12px;
    padding-top: 10px;
  }

  .nav-menu:not(.show) {
    display: none;
  }

  .nav-menu.show {
    display: flex;
    flex-direction: column;
  }

  .nav-links {
    align-items: stretch;
    gap: 6px;
  }

  .nav-link,
  #mainNav .navbar-nav li.nav-item a.nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
  }

  .search-bar {
    width: 100%;
    min-width: 0;
  }

  .category-rail .container {
    overflow-x: auto;
  }

  .home-stage-grid,
  .layout-with-sidebar,
  .game-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-copy,
  .featured-play-card,
  .featured-play-card img {
    min-height: auto;
  }

  .featured-play-card {
    aspect-ratio: 16 / 9;
  }

  .featured-play-card img {
    height: 100%;
  }

  .side-column,
  .game-side-column {
    order: 2;
  }

  .sticky-card {
    position: static;
  }

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

  .toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .tool-button {
    flex: 1 1 auto;
  }

  .game-iframe-container {
    min-height: 420px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

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

  .home-stage {
    padding-top: 8px;
  }

  .home-copy {
    padding: 22px;
  }

  .home-copy h1 {
    font-size: 34px;
  }

  .home-copy p {
    font-size: 16px;
  }

  .hero-stats,
  .meta-strip,
  .quick-links-inner,
  .seo-columns {
    grid-template-columns: 1fr;
  }

  .quick-links-inner {
    gap: 8px;
  }

  .quick-links a {
    justify-content: flex-start;
    padding: 0 14px;
  }

  .game-section,
  .game-info-card,
  .seo-panel,
  .sidebar-card {
    padding: 14px;
  }

  .section-heading,
  .info-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2,
  .info-header h2,
  .game-info-card h2,
  .seo-panel h2 {
    font-size: 21px;
  }

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

  .game-iframe-container {
    min-height: 320px;
  }

  .game-toolbar-title h1 {
    font-size: 19px;
  }

  .tool-button span {
    display: none;
  }

  .tool-button {
    flex: 0 0 44px;
    padding: 0;
  }
}

@media (max-width: 575px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-logo {
    width: 154px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary-action,
  .btn-secondary-action {
    width: 100%;
  }

  .featured-play-card {
    aspect-ratio: 4 / 3;
  }

  .featured-overlay {
    padding: 18px;
  }

  .featured-title {
    font-size: 23px;
  }

  .item-grid {
    padding-left: 6px;
    padding-right: 6px;
  }

  .game-grid {
    row-gap: 12px;
  }

  .game-card-title {
    font-size: 13px;
  }

  .game-card-meta {
    font-size: 11px;
  }

  .game-player-top {
    min-height: 42px;
    padding: 0 12px;
  }

  .game-iframe-container {
    min-height: 260px;
  }

  .game-toolbar-title img {
    width: 46px;
    height: 46px;
  }

  .stats-vote {
    justify-content: flex-start;
  }

  .vote-status {
    text-align: left;
  }

  .footer {
    padding: 28px 0;
  }
}

/* Playful homepage */
.arcade-home {
  padding-top: 18px;
}

.playground-stage {
  padding: 12px 0 18px;
}

.playground-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.big-play-tile {
  position: relative;
  min-height: 430px;
  display: block;
  overflow: hidden;
  border: 4px solid #10211f;
  border-radius: 8px;
  background: #10211f;
  box-shadow: 0 18px 0 rgba(16, 33, 31, 0.16);
}

.big-play-tile img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  image-rendering: auto;
  transition: transform 0.2s ease;
}

.big-play-tile:hover img {
  transform: scale(1.035);
}

.big-play-content {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: block;
  max-width: 620px;
  padding: 18px;
  border: 3px solid #10211f;
  border-radius: 8px;
  color: #10211f;
  background: rgba(255, 248, 219, 0.94);
  box-shadow: 8px 8px 0 rgba(16, 33, 31, 0.28);
}

.mini-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 2px solid #10211f;
  border-radius: 8px;
  background: #58c4a5;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.big-play-title {
  display: block;
  margin-top: 10px;
  color: #10211f;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
  font-weight: 950;
}

.big-play-copy {
  display: block;
  margin: 8px 0 14px;
  color: #31413d;
  font-size: 17px;
  font-weight: 750;
}

.big-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 3px solid #10211f;
  border-radius: 8px;
  color: #10211f;
  background: #f4b942;
  font-size: 18px;
  font-weight: 950;
}

.home-right-stack {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.playful-brand-card {
  padding: 22px;
  border: 4px solid #10211f;
  border-radius: 8px;
  color: #10211f;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0 25%, transparent 25% 50%, rgba(255, 255, 255, 0.42) 50% 75%, transparent 75%),
    #58c4a5;
  background-size: 28px 28px;
  box-shadow: 8px 8px 0 rgba(16, 33, 31, 0.16);
}

.playful-brand-card h1 {
  margin: 0 0 8px;
  color: #10211f;
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
}

.playful-brand-card p {
  margin: 0;
  color: #17312e;
  font-size: 16px;
  font-weight: 800;
}

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

.mini-picks a {
  position: relative;
  min-height: 140px;
  overflow: hidden;
  border: 3px solid #10211f;
  border-radius: 8px;
  color: #fff;
  background: #10211f;
  box-shadow: 5px 5px 0 rgba(16, 33, 31, 0.14);
}

.mini-picks img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.2s ease;
}

.mini-picks a:hover img {
  transform: scale(1.05);
}

.mini-picks span {
  position: absolute;
  inset: auto 8px 8px 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #10211f;
  background: #fff8db;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.training-strip {
  margin: 6px 0 22px;
}

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

.training-bubble {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid #10211f;
  border-radius: 8px;
  color: #10211f;
  box-shadow: 5px 5px 0 rgba(16, 33, 31, 0.14);
  font-weight: 950;
}

.training-bubble:hover {
  color: #10211f;
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 rgba(16, 33, 31, 0.18);
}

.training-bubble i {
  font-size: 24px;
}

.tone-yellow {
  background: #f4b942;
}

.tone-mint {
  background: #58c4a5;
}

.tone-blue {
  background: #7dc7ff;
}

.tone-red {
  background: #ff7b6e;
}

.tone-purple {
  background: #b49cff;
}

.tone-green {
  background: #a8df65;
}

.shelf-section {
  margin-bottom: 24px;
  padding: 16px;
  border: 3px solid #10211f;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 8px 8px 0 rgba(16, 33, 31, 0.1);
}

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

.shelf-heading span {
  color: #1d766f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.shelf-heading h2 {
  margin: 2px 0 0;
  color: #10211f;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
}

.shelf-heading a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 2px solid #10211f;
  border-radius: 8px;
  color: #10211f;
  background: #f4b942;
  font-size: 13px;
  font-weight: 950;
}

.arcade-home .game-card {
  border: 3px solid #10211f;
  background: #fff8db;
  box-shadow: 5px 5px 0 rgba(16, 33, 31, 0.13);
}

.arcade-home .game-card:hover {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0 rgba(16, 33, 31, 0.18);
}

.arcade-home .game-card-media {
  border-bottom: 3px solid #10211f;
  background: #e8f4ef;
}

.arcade-home .game-card-body {
  padding: 9px;
}

.arcade-home .game-card-title {
  color: #10211f;
  font-weight: 950;
}

.arcade-home .game-card-meta {
  color: #1d766f;
}

.home-seo-copy {
  max-width: 900px;
  margin: 8px auto 34px;
  padding: 18px;
  border: 3px solid #10211f;
  border-radius: 8px;
  background: #fff8db;
  box-shadow: 6px 6px 0 rgba(16, 33, 31, 0.11);
}

.home-seo-copy h2 {
  margin: 0 0 8px;
  color: #10211f;
  font-size: 24px;
  font-weight: 950;
}

.home-seo-copy p {
  margin: 0 0 8px;
  color: #34413d;
  font-weight: 700;
}

.home-seo-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .playground-grid {
    grid-template-columns: 1fr;
  }

  .big-play-tile,
  .big-play-tile img {
    min-height: 360px;
  }

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

@media (max-width: 767px) {
  .big-play-tile,
  .big-play-tile img {
    min-height: 310px;
  }

  .big-play-content {
    inset: auto 12px 12px 12px;
    padding: 14px;
    box-shadow: 5px 5px 0 rgba(16, 33, 31, 0.24);
  }

  .big-play-title {
    font-size: 31px;
  }

  .big-play-copy {
    font-size: 14px;
  }

  .mini-picks {
    grid-template-columns: 1fr 1fr;
  }

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

  .shelf-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .shelf-heading h2 {
    font-size: 24px;
  }
}

@media (max-width: 575px) {
  .arcade-home {
    padding-top: 10px;
  }

  .big-play-tile,
  .big-play-tile img {
    min-height: 280px;
  }

  .playful-brand-card h1 {
    font-size: 32px;
  }

  .mini-picks {
    gap: 10px;
  }

  .mini-picks a,
  .mini-picks img {
    min-height: 118px;
  }

  .training-bubble {
    min-height: 76px;
  }

  .shelf-section {
    padding: 12px;
    box-shadow: 5px 5px 0 rgba(16, 33, 31, 0.1);
  }
}

/* Featured-play landing homepage */
.landing-home {
  padding-top: 16px;
}

.featured-play-section {
  padding: 8px 0 22px;
}

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

.featured-main {
  min-width: 0;
}

.homepage-player-card {
  overflow: hidden;
  border: 4px solid #10211f;
  border-radius: 8px;
  background: #0b1413;
  box-shadow: 10px 10px 0 rgba(16, 33, 31, 0.14);
}

.homepage-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 25%, transparent 25% 50%, rgba(255, 255, 255, 0.08) 50% 75%, transparent 75%),
    #10211f;
  background-size: 26px 26px;
}

.homepage-player-head h1 {
  margin: 8px 0 0;
  color: #fff8db;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 950;
}

.homepage-open-game {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 2px solid #fff8db;
  border-radius: 8px;
  color: #10211f;
  background: #f4b942;
  font-size: 13px;
  font-weight: 950;
}

.homepage-open-game:hover {
  color: #10211f;
  background: #ffd66d;
}

.homepage-game-frame {
  min-height: 540px;
  border-top: 4px solid #10211f;
  border-bottom: 4px solid #10211f;
}

.homepage-player-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fff8db;
}

.featured-game-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.featured-game-summary img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 3px solid #10211f;
  border-radius: 8px;
  object-fit: cover;
  background: #e8f4ef;
}

.featured-game-summary strong {
  display: block;
  color: #10211f;
  font-size: 16px;
  font-weight: 950;
}

.featured-game-summary span {
  display: block;
  color: #40504c;
  font-size: 13px;
  font-weight: 750;
}

.homepage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.home-action-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 3px solid #10211f;
  border-radius: 8px;
  color: #10211f;
  background: #fff;
  font-size: 13px;
  font-weight: 950;
}

.home-action-button.primary {
  background: #f4b942;
}

.home-action-button:hover {
  color: #10211f;
  transform: translateY(-1px);
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed rgba(16, 33, 31, 0.45);
  border-radius: 8px;
  color: rgba(16, 33, 31, 0.62);
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ad-rectangle {
  width: 100%;
  min-height: 250px;
}

.ad-leaderboard {
  max-width: 970px;
  min-height: 250px;
  margin: 18px auto 0;
}

.side-hot-card {
  padding: 14px;
  border: 3px solid #10211f;
  border-radius: 8px;
  background: #fff8db;
  box-shadow: 6px 6px 0 rgba(16, 33, 31, 0.11);
}

.side-hot-card h2 {
  margin: 0 0 12px;
  color: #10211f;
  font-size: 19px;
  font-weight: 950;
}

.side-hot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-hot-list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #10211f;
  font-size: 14px;
  font-weight: 900;
}

.side-hot-list a:hover {
  color: #1d766f;
}

.side-hot-list img {
  width: 58px;
  height: 58px;
  border: 2px solid #10211f;
  border-radius: 8px;
  object-fit: cover;
  background: #e8f4ef;
}

.side-hot-list span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.training-strip-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.training-strip-head span {
  color: #1d766f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.training-strip-head h2 {
  margin: 2px 0 0;
  color: #10211f;
  font-size: 24px;
  font-weight: 950;
}

.homepage-empty-state {
  min-height: 360px;
  padding: 28px;
  border: 4px solid #10211f;
  border-radius: 8px;
  background: #fff8db;
}

.homepage-empty-state h1 {
  margin: 0 0 8px;
  color: #10211f;
  font-weight: 950;
}

.home-seo-inner {
  max-height: 260px;
  overflow: hidden;
}

@media (max-width: 1199px) {
  .featured-play-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .homepage-game-frame {
    min-height: 470px;
  }
}

@media (max-width: 1024px) {
  .featured-play-layout {
    grid-template-columns: 1fr;
  }

  .featured-side {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
  }

  .ad-leaderboard {
    min-height: 90px;
    max-width: 728px;
  }
}

@media (max-width: 767px) {
  .landing-home {
    padding-top: 10px;
  }

  .homepage-player-head,
  .homepage-player-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .homepage-open-game,
  .homepage-actions,
  .home-action-button {
    width: 100%;
  }

  .homepage-actions {
    flex-direction: column;
  }

  .homepage-game-frame {
    min-height: 360px;
  }

  .featured-side {
    grid-template-columns: 1fr;
  }

  .ad-rectangle,
  .ad-leaderboard {
    min-height: 250px;
    max-width: 300px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .training-strip-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .homepage-player-card {
    box-shadow: 5px 5px 0 rgba(16, 33, 31, 0.14);
  }

  .homepage-player-head {
    padding: 12px;
  }

  .homepage-player-head h1 {
    font-size: 28px;
  }

  .homepage-game-frame {
    min-height: 300px;
  }

  .homepage-player-foot {
    padding: 12px;
  }

  .featured-game-summary img {
    width: 48px;
    height: 48px;
  }
}

/* Home sidebar category layout */
.home-content-container {
  max-width: 1500px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.home-category-sidebar {
  min-width: 0;
}

.home-sidebar-panel {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 104px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  padding: 10px;
  border: 3px solid #10211f;
  border-radius: 8px;
  background: #fff8db;
  box-shadow: 6px 6px 0 rgba(16, 33, 31, 0.11);
}

.home-sidebar-title {
  margin: 8px 4px 2px;
  color: #1d766f;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-sidebar-link {
  min-height: 38px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  color: #10211f;
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 900;
}

.home-sidebar-link i {
  width: 20px;
  text-align: center;
  color: #1d766f;
}

.home-sidebar-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-sidebar-link:hover {
  color: #10211f;
  border-color: #10211f;
  background: #f4b942;
}

.home-main-column {
  min-width: 0;
}

.home-main-column .featured-play-section {
  padding: 0 0 18px;
}

.home-main-column .featured-play-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.home-main-column .homepage-game-frame {
  min-height: 500px;
}

.home-main-column .homepage-player-head,
.home-main-column .homepage-player-foot {
  padding: 12px 14px;
}

.home-main-column .ad-leaderboard {
  min-height: 110px;
  margin-top: 14px;
}

.home-main-column .shelf-section {
  margin-bottom: 18px;
  padding: 14px;
}

.home-main-column .shelf-heading {
  margin-bottom: 12px;
}

.home-main-column .shelf-heading h2 {
  font-size: 24px;
}

.home-main-column .game-grid {
  row-gap: 14px;
}

.home-main-column .item-grid {
  padding-left: 6px;
  padding-right: 6px;
}

.home-main-column .game-card-body {
  padding: 8px;
}

.home-main-column .home-seo-copy {
  max-width: none;
  margin-bottom: 22px;
}

@media (min-width: 1500px) {
  .home-content-container {
    max-width: 1560px;
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .home-main-column .featured-play-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 1199px) {
  .home-content-container {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 14px;
  }

  .home-main-column .featured-play-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .home-main-column .homepage-game-frame {
    min-height: 440px;
  }

  .home-sidebar-link {
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 1024px) {
  .home-content-container {
    grid-template-columns: 1fr;
  }

  .home-sidebar-panel {
    position: sticky;
    top: 75px;
    z-index: 12;
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    scrollbar-width: none;
  }

  .home-sidebar-panel::-webkit-scrollbar {
    display: none;
  }

  .home-sidebar-title {
    display: none;
  }

  .home-sidebar-link {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .home-main-column .featured-play-layout {
    grid-template-columns: 1fr;
  }

  .home-main-column .featured-side {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 767px) {
  .home-content-container {
    gap: 12px;
  }

  .home-sidebar-panel {
    top: 70px;
    border-width: 2px;
    box-shadow: 4px 4px 0 rgba(16, 33, 31, 0.1);
  }

  .home-main-column .homepage-player-head,
  .home-main-column .homepage-player-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-main-column .homepage-game-frame {
    min-height: 340px;
  }

  .home-main-column .featured-side {
    grid-template-columns: 1fr;
  }

  .home-main-column .ad-rectangle,
  .home-main-column .ad-leaderboard {
    min-height: 250px;
    max-width: 300px;
  }

  .home-main-column .shelf-section {
    padding: 12px;
  }
}

@media (max-width: 575px) {
  .home-content-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .home-sidebar-link {
    min-width: 118px;
    min-height: 36px;
  }

  .home-main-column .homepage-game-frame {
    min-height: 290px;
  }

  .home-main-column .shelf-heading h2 {
    font-size: 22px;
  }
}

/* SEO-first iteration */
.homepage-player-subtitle {
  max-width: 620px;
  margin: 8px 0 0;
  color: rgba(255, 248, 219, 0.78);
  font-size: 14px;
  font-weight: 750;
}

.category-page {
  padding-top: 18px;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 20px;
  border: 3px solid #10211f;
  border-radius: 8px;
  background: #fff8db;
  box-shadow: 7px 7px 0 rgba(16, 33, 31, 0.1);
}

.category-hero h1 {
  margin: 6px 0 8px;
  color: #10211f;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 950;
}

.category-hero p {
  max-width: 820px;
  margin: 0;
  color: #34413d;
  font-weight: 700;
}

.category-hero-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  padding: 16px;
  border: 3px solid #10211f;
  border-radius: 8px;
  color: #10211f;
  background: #58c4a5;
  text-align: center;
}

.category-hero-stats strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}

.category-hero-stats span {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 900;
}

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

.category-main {
  min-width: 0;
}

.category-side {
  min-width: 0;
}

.category-side-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-side-list a {
  min-height: 40px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  color: #10211f;
  background: #fff8db;
  font-size: 13px;
  font-weight: 900;
}

.category-side-list a:hover,
.category-side-list a.is-current {
  border-color: #10211f;
  background: #f4b942;
}

.category-seo-panel,
.faq-panel {
  margin-bottom: 18px;
}

.faq-list {
  margin-top: 16px;
}

.faq-list h3 {
  margin: 14px 0 5px;
  color: #10211f;
  font-size: 17px;
  font-weight: 950;
}

.faq-list p {
  margin: 0 0 8px;
}

.footer-minimal {
  padding: 22px 0;
}

.footer-minimal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-minimal .footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-minimal .footer-brand img {
  width: 150px;
  margin: 0;
  flex: 0 0 auto;
}

.footer-minimal .footer-brand p {
  max-width: 560px;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.footer-legal a,
.footer-minimal a {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 991px) {
  .category-layout,
  .category-hero {
    grid-template-columns: 1fr;
  }

  .category-side .sticky-card {
    position: static;
  }
}

@media (max-width: 767px) {
  .category-hero {
    padding: 16px;
  }

  .category-hero-stats {
    min-height: 90px;
  }

  .footer-minimal-inner,
  .footer-minimal .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
    width: 100%;
  }

  .footer-minimal {
    margin-left: 0;
    padding: 16px 0;
  }

  .footer-minimal-inner {
    gap: 12px;
  }

  .footer-minimal .footer-brand img {
    width: 120px;
  }

  .footer-minimal .footer-brand p {
    max-width: none;
    font-size: 12px;
    line-height: 1.4;
  }

  .footer-legal a,
  .footer-minimal a {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--portal-panel-2);
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
  }

  .legal-hero {
    padding: 16px;
  }

  .legal-hero h1 {
    font-size: 22px;
  }

  .legal-hero p {
    font-size: 13px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .legal-side {
    position: static;
  }

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

  .legal-link-list a {
    min-height: 42px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    justify-content: center;
  }
}

/* UX/UI polish iteration: compact mobile-first game portal layout */
body {
  background:
    linear-gradient(180deg, #f2f6f4 0, #f7f8f2 360px, #f4f7f4 100%);
}

.site-shell {
  background: rgba(13, 31, 29, 0.94);
  box-shadow: 0 8px 24px rgba(12, 31, 28, 0.12);
}

.home-content-container {
  gap: 14px;
}

.home-main-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-category-rail {
  display: none;
}

.home-main-column .featured-play-section,
.featured-play-section {
  padding: 0;
}

.featured-play-layout,
.home-main-column .featured-play-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
}

.homepage-player-card {
  border: 1px solid rgba(16, 33, 31, 0.1);
  background: #0c1514;
  box-shadow: 0 16px 38px rgba(14, 31, 28, 0.16);
}

.homepage-player-head {
  min-height: 104px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(88, 196, 165, 0.22), transparent 58%),
    #0f1f1c;
}

.homepage-player-head h1 {
  max-width: 760px;
  margin: 5px 0 0;
  color: #fffdf2;
  font-size: clamp(1.7rem, 2.5vw, 2.45rem);
  line-height: 1.04;
  font-weight: 900;
}

.homepage-player-subtitle {
  max-width: 640px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.homepage-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.homepage-tag-row span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #e4f8ef;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.homepage-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  flex: 0 0 auto;
}

.homepage-open-game {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
}

.homepage-open-game.primary {
  border-color: transparent;
  color: #10211f;
  background: #f6c34f;
}

.homepage-open-game.secondary {
  color: #effbf5;
  background: rgba(255, 255, 255, 0.09);
}

.homepage-game-frame {
  min-height: clamp(360px, calc(100vh - 280px), 560px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-main-column .homepage-game-frame {
  min-height: clamp(360px, calc(100vh - 278px), 520px);
}

.homepage-player-foot {
  padding: 10px 14px;
  background: #ffffff;
}

.featured-game-summary img {
  width: 46px;
  height: 46px;
  border: 1px solid #dce7df;
}

.featured-game-summary strong {
  color: #17211f;
  font-size: 14px;
  font-weight: 850;
}

.featured-game-summary span {
  color: #5b6964;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

.home-action-button {
  min-height: 36px;
  border: 1px solid #dce7df;
  background: #f7faf8;
  box-shadow: none;
}

.home-action-button.primary {
  border-color: transparent;
  background: #f6c34f;
}

.ad-slot {
  border: 1px dashed #cbdad1;
  color: #82918c;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.ad-rectangle {
  min-height: 180px;
}

.home-main-column .ad-leaderboard,
.ad-leaderboard {
  min-height: 82px;
  margin-top: 12px;
}

.side-hot-card,
.shelf-section,
.home-seo-copy,
.category-hero,
.category-hero-stats {
  border: 1px solid #dce7df;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(21, 43, 36, 0.07);
}

.side-hot-card {
  padding: 12px;
}

.side-hot-card h2 {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 900;
}

.side-hot-list {
  gap: 8px;
}

.side-hot-list a {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 9px;
  font-size: 13px;
}

.side-hot-list img {
  width: 50px;
  height: 50px;
  border: 1px solid #dce7df;
}

.home-sidebar-panel {
  top: 82px;
  padding: 8px;
  border: 1px solid #dce7df;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(21, 43, 36, 0.07);
  backdrop-filter: blur(12px);
}

.home-sidebar-link {
  min-height: 36px;
  border: 1px solid transparent;
  color: #24332f;
  background: rgba(246, 250, 247, 0.88);
  font-size: 12.5px;
  font-weight: 800;
}

.home-sidebar-link:hover {
  border-color: #b9d0c3;
  background: #e8f4ef;
}

.home-sidebar-link i {
  color: #1d766f;
}

.shelf-section {
  margin-bottom: 0;
  padding: 14px;
}

.shelf-heading {
  align-items: center;
  margin-bottom: 12px;
}

.shelf-heading span,
.training-strip-head span,
.home-sidebar-title {
  color: #22736c;
  font-size: 11px;
  letter-spacing: 0.02em;
  font-weight: 850;
}

.shelf-heading h2,
.home-main-column .shelf-heading h2 {
  font-size: 22px;
  line-height: 1.12;
  font-weight: 900;
}

.shelf-heading a {
  min-height: 32px;
  border: 1px solid #d3e1d8;
  color: #143e39;
  background: #f2f8f4;
  font-size: 12px;
  box-shadow: none;
}

.arcade-home .game-card,
.game-card {
  border: 1px solid #dce7df;
  background: #fff;
  box-shadow: 0 6px 18px rgba(21, 43, 36, 0.07);
}

.arcade-home .game-card:hover,
.game-card:hover {
  transform: translateY(-2px);
  border-color: #a9cabc;
  box-shadow: 0 12px 24px rgba(21, 43, 36, 0.11);
}

.arcade-home .game-card-media,
.game-card-media {
  border-bottom: 1px solid #e2ebe6;
  background: #edf4f0;
}

.arcade-home .game-card-body,
.home-main-column .game-card-body,
.game-card-body {
  padding: 8px;
}

.arcade-home .game-card-title,
.game-card-title {
  min-height: 36px;
  color: #17211f;
  font-size: 13.5px;
  line-height: 1.28;
  font-weight: 850;
}

.arcade-home .game-card-meta,
.game-card-meta {
  margin-top: 6px;
  color: #66766f;
  font-size: 11.5px;
  font-weight: 750;
}

.home-seo-copy {
  margin: 0;
  padding: 16px;
}

.home-seo-inner {
  max-height: none;
}

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

.category-hero {
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px;
}

.category-hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  font-weight: 900;
}

.category-hero-stats {
  border-color: #c7dfd2;
  background: linear-gradient(135deg, #dff5ec, #f8fbf7);
}

.category-side-list a {
  border: 1px solid #dce7df;
  background: #fff;
  font-weight: 800;
}

.category-side-list a:hover,
.category-side-list a.is-current {
  border-color: #a9cabc;
  background: #e8f4ef;
}

.game-player-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(7, 17, 15, 0.18);
}

.game-player-top {
  min-height: 110px;
  padding: 14px 16px;
}

.game-hero-copy h1 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 900;
}

.game-hero-copy p {
  line-height: 1.42;
}

.game-iframe-container {
  min-height: clamp(360px, calc(100vh - 260px), 620px);
}

.standard-game-content .game-info-card,
.standard-game-content .seo-panel,
.standard-game-content .sidebar-card {
  border: 1px solid #dce7df;
  box-shadow: 0 10px 28px rgba(21, 43, 36, 0.07);
}

@media (min-width: 1280px) {
  .home-content-container {
    grid-template-columns: 176px minmax(0, 1fr);
  }

  .home-main-column .featured-play-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}

@media (max-width: 1199px) {
  .featured-play-layout,
  .home-main-column .featured-play-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .homepage-game-frame,
  .home-main-column .homepage-game-frame {
    min-height: clamp(340px, calc(100vh - 270px), 480px);
  }
}

@media (max-width: 1024px) {
  .home-content-container {
    display: flex;
    flex-direction: column;
  }

  .home-main-column {
    order: 1;
  }

  .home-category-sidebar {
    display: none;
  }

  .mobile-category-rail {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 1px 0 3px;
    scrollbar-width: none;
  }

  .mobile-category-rail::-webkit-scrollbar {
    display: none;
  }

  .mobile-category-pill {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid #dce7df;
    border-radius: 8px;
    color: #24332f;
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(21, 43, 36, 0.05);
    white-space: nowrap;
  }

  .mobile-category-pill i {
    color: #1d766f;
  }

  .home-sidebar-panel {
    position: relative;
    top: auto;
    z-index: 1;
    margin-bottom: 2px;
  }

  .home-main-column .featured-side,
  .featured-side {
    display: none;
  }

  .homepage-game-frame,
  .home-main-column .homepage-game-frame {
    min-height: clamp(360px, calc(100vh - 230px), 520px);
  }

  .home-main-column .ad-leaderboard,
  .ad-leaderboard {
    min-height: 70px;
  }
}

@media (max-width: 991px) {
  .site-shell {
    position: sticky;
  }

  .site-nav,
  .nav-inner {
    min-height: 56px;
  }

  .nav-inner {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .site-logo {
    width: 146px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-menu {
    padding-top: 8px;
  }
}

@media (max-width: 767px) {
  body {
    background: #f4f7f4;
  }

  .page-wrap,
  .landing-home,
  .arcade-home {
    padding-top: 8px;
  }

  .home-content-container {
    gap: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .home-main-column {
    gap: 12px;
  }

  .homepage-player-card {
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(14, 31, 28, 0.14);
  }

  .homepage-player-head {
    min-height: 92px;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  .homepage-player-head h1 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
    line-height: 1.08;
  }

  .homepage-player-subtitle {
    margin-top: 4px;
    font-size: 12.5px;
  }

  .homepage-tag-row {
    gap: 5px;
    margin-top: 7px;
  }

  .homepage-tag-row span {
    min-height: 22px;
    padding: 0 7px;
    font-size: 10.5px;
  }

  .homepage-head-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .homepage-open-game,
  .homepage-open-game.primary,
  .homepage-open-game.secondary {
    width: 100%;
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .homepage-game-frame,
  .home-main-column .homepage-game-frame {
    min-height: clamp(300px, calc(100svh - 220px), 430px);
  }

  .homepage-player-foot {
    padding: 8px 10px;
  }

  .featured-game-summary {
    gap: 8px;
  }

  .featured-game-summary img {
    width: 38px;
    height: 38px;
  }

  .featured-game-summary strong {
    font-size: 12.5px;
  }

  .featured-game-summary span,
  .homepage-actions {
    display: none;
  }

  .home-main-column .ad-leaderboard,
  .ad-leaderboard {
    min-height: 56px;
    max-width: none;
    margin-top: 8px;
  }

  .home-sidebar-panel {
    flex-direction: row;
    overflow-x: auto;
    padding: 7px;
    scrollbar-width: none;
  }

  .home-sidebar-panel::-webkit-scrollbar {
    display: none;
  }

  .home-sidebar-link {
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 34px;
    padding: 0 9px;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 6px;
    font-size: 12px;
  }

  .shelf-section {
    padding: 10px;
  }

  .shelf-heading {
    margin-bottom: 10px;
  }

  .shelf-heading h2,
  .home-main-column .shelf-heading h2 {
    font-size: 18px;
  }

  .shelf-heading span {
    font-size: 10px;
  }

  .shelf-heading a {
    min-height: 30px;
    padding: 0 9px;
  }

  .game-grid {
    row-gap: 10px;
    margin-left: -4px;
    margin-right: -4px;
  }

  .item-grid {
    padding-left: 4px;
    padding-right: 4px;
  }

  .arcade-home .game-card-body,
  .home-main-column .game-card-body,
  .game-card-body {
    padding: 7px;
  }

  .arcade-home .game-card-title,
  .game-card-title {
    min-height: 32px;
    font-size: 12.5px;
    line-height: 1.25;
  }

  .arcade-home .game-card-meta,
  .game-card-meta {
    margin-top: 4px;
    font-size: 10.5px;
  }

  .home-seo-copy {
    padding: 12px;
  }

  .home-seo-copy h2 {
    font-size: 18px;
  }

  .home-seo-copy p {
    font-size: 13px;
    line-height: 1.45;
  }

  .category-page {
    padding-top: 8px;
  }

  .category-hero {
    gap: 10px;
    padding: 12px;
  }

  .category-hero h1 {
    font-size: 26px;
  }

  .category-hero p {
    font-size: 13.5px;
  }

  .category-hero-stats {
    min-height: 70px;
    padding: 10px;
  }

  .category-hero-stats strong {
    font-size: 30px;
  }

  .category-side-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .category-side-list::-webkit-scrollbar {
    display: none;
  }

  .category-side-list a {
    flex: 0 0 auto;
    min-width: 116px;
  }

  .game-player-top {
    min-height: 118px;
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .game-hero-copy h1 {
    font-size: 25px;
  }

  .hero-play-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-play-actions .tool-button,
  .hero-play-actions .primary-tool {
    width: 100%;
    flex: 1 1 auto;
  }

  .game-iframe-container {
    min-height: clamp(300px, calc(100svh - 250px), 430px);
  }
}

@media (max-width: 575px) {
  .container,
  .home-content-container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .homepage-player-head {
    min-height: 86px;
  }

  .homepage-game-frame,
  .home-main-column .homepage-game-frame {
    min-height: clamp(280px, calc(100svh - 210px), 390px);
  }

  .home-main-column .ad-leaderboard,
  .ad-leaderboard {
    min-height: 48px;
  }

  .home-sidebar-link {
    min-width: 96px;
  }

  .shelf-section {
    padding: 8px;
  }

  .shelf-heading h2,
  .home-main-column .shelf-heading h2 {
    font-size: 17px;
  }

  .homepage-player-foot {
    min-height: 52px;
  }

  .game-card {
    box-shadow: 0 4px 14px rgba(21, 43, 36, 0.06);
  }

  .game-iframe-container {
    min-height: clamp(280px, calc(100svh - 240px), 390px);
  }
}

@media (max-width: 380px) {
  .homepage-tag-row {
    display: none;
  }

  .homepage-player-head h1 {
    font-size: 21px;
  }

  .homepage-game-frame,
  .home-main-column .homepage-game-frame {
    min-height: clamp(260px, calc(100svh - 188px), 360px);
  }
}

/* Game box redesign: theme-only presentation layer */
:root {
  --box-bg: #f3f6f2;
  --box-ink: #10201d;
  --box-muted: #5e6c66;
  --box-line: #d8e4dc;
  --box-card: #ffffff;
  --box-nav: #0f241f;
  --box-accent: #45d6a8;
  --box-accent-2: #ffc947;
  --box-red: #ff5c7a;
  --box-shadow: 0 10px 26px rgba(18, 40, 34, 0.08);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  color: var(--box-ink);
  background: var(--box-bg);
}

.site-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--box-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.site-nav,
.nav-inner {
  min-height: 58px;
}

.nav-inner {
  gap: 12px;
}

.site-logo {
  width: 154px;
}

.nav-utility {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.install-app-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e6f6ef;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 850;
}

.install-app-button.is-ready {
  color: #10201d;
  background: var(--box-accent-2);
}

.user-avatar {
  margin: 0;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.category-rail {
  background: #17332d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.category-rail .container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.category-rail .container::-webkit-scrollbar {
  display: none;
}

.category-rail a,
.category-rail .nav-link,
.category-rail li a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 8px;
  color: #d9eee6;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.app-page {
  padding: 12px 0 28px;
}

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

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

.homepage-shell {
  background:
    linear-gradient(180deg, rgba(69, 214, 168, 0.12), transparent 250px),
    var(--box-bg);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 12px;
}

.home-hero-copy,
.featured-strip,
.game-shelf,
.collection-header,
.content-panel,
.seo-copy-panel,
.empty-panel {
  border: 1px solid var(--box-line);
  border-radius: 8px;
  background: var(--box-card);
  box-shadow: var(--box-shadow);
}

.home-hero-copy {
  padding: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #147866;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.home-hero h1,
.collection-header h1,
.play-title-group h1 {
  margin: 0;
  color: var(--box-ink);
  letter-spacing: 0;
  font-weight: 950;
}

.home-hero h1 {
  max-width: 680px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.home-hero p,
.collection-header p,
.play-title-group p,
.content-panel p,
.seo-copy-panel p {
  margin: 8px 0 0;
  color: var(--box-muted);
  line-height: 1.5;
}

.featured-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--box-ink);
}

.featured-strip:hover {
  color: var(--box-ink);
  border-color: #9ed8c5;
  transform: translateY(-1px);
}

.featured-strip img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.featured-strip small,
.featured-strip em {
  display: block;
  color: #147866;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.featured-strip strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--box-ink);
  font-size: 18px;
  line-height: 1.12;
  font-weight: 950;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-strip > .fa {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--box-ink);
  background: var(--box-accent-2);
}

.category-chip-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 12px;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.category-chip-rail::-webkit-scrollbar {
  display: none;
}

.category-chip {
  min-height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--box-line);
  border-radius: 8px;
  color: #23352f;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 40, 34, 0.05);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.category-chip:hover,
.category-chip.is-current {
  color: var(--box-ink);
  border-color: #9ed8c5;
  background: #ddf7ee;
}

.category-chip i {
  color: #16826d;
}

.game-shelf {
  margin: 0 0 14px;
  padding: 14px;
}

.shelf-title-row {
  min-height: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.shelf-title-row span {
  display: block;
  color: #16826d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.shelf-title-row h2 {
  margin: 2px 0 0;
  color: var(--box-ink);
  font-size: 24px;
  line-height: 1.08;
  font-weight: 950;
}

.shelf-title-row a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #164a40;
  background: #e7f6ef;
  font-size: 13px;
  font-weight: 850;
}

.game-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.game-tile-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
}

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

.game-tile-link {
  position: relative;
  min-width: 0;
  display: block;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--box-line);
  border-radius: 8px;
  color: var(--box-ink);
  background: #fff;
  box-shadow: 0 6px 16px rgba(18, 40, 34, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.game-tile-link:hover {
  transform: translateY(-2px);
  color: var(--box-ink);
  border-color: #9ed8c5;
  box-shadow: 0 12px 24px rgba(18, 40, 34, 0.11);
}

.game-tile-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #dfeae4;
}

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

.game-tile-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 8px;
  color: #111e1b;
  background: var(--box-accent-2);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.game-tile-body {
  display: block;
  padding: 9px;
}

.game-tile-title {
  min-height: 36px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--box-ink);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.game-tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  color: #68756f;
  font-size: 11.5px;
  font-weight: 800;
}

.game-tile-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 16px;
}

.collection-header h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
}

.collection-count {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  color: var(--box-ink);
  background: #ddf7ee;
  text-align: center;
}

.collection-count strong {
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
}

.collection-count span {
  color: #426158;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.play-stage {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #071411;
  box-shadow: 0 18px 42px rgba(7, 20, 17, 0.18);
}

.play-stage-header {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(69, 214, 168, 0.18), transparent 58%),
    #10231f;
}

.play-title-group {
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.play-title-group img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.play-title-group h1 {
  color: #fff;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.06;
}

.play-title-group p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.play-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.play-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  color: #eaf8f3;
  background: rgba(255, 255, 255, 0.09);
  font-size: 13px;
  font-weight: 900;
}

.play-action.primary {
  color: #10201d;
  background: var(--box-accent-2);
}

.play-tag-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 9px 14px;
  background: #10231f;
  scrollbar-width: none;
}

.play-tag-row::-webkit-scrollbar {
  display: none;
}

.play-tag-row span {
  min-height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #dff7ef;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
}

.play-frame {
  position: relative;
  width: 100%;
  min-height: clamp(460px, calc(100vh - 210px), 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050908;
  isolation: isolate;
  touch-action: manipulation;
}

.play-frame-inner {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  max-height: 100%;
  background: #050908;
  transform: translateZ(0);
  flex: 0 0 auto;
}

.play-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: top left;
}

.play-frame[data-responsive="1"] .play-frame-inner,
.play-frame[data-responsive="1"] iframe {
  width: 100%;
  height: 100%;
}

.play-frame.is-unavailable {
  min-height: 360px;
}

.game-unavailable-panel {
  width: min(460px, calc(100% - 32px));
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #dff7ef;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
}

.game-unavailable-panel i {
  font-size: 28px;
  color: var(--box-accent-2);
}

.game-unavailable-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.15;
}

.game-unavailable-panel p {
  margin: 0;
  color: #b8cec7;
  font-size: 15px;
  line-height: 1.45;
}

.game-center-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  min-width: 128px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: #10201d;
  background: var(--box-accent-2);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  font-size: 16px;
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.game-center-play.is-hidden,
.play-frame.is-playing .game-center-play {
  opacity: 0;
  pointer-events: none;
}

.play-meta-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 8px 14px;
  color: #d9eee6;
  background: #10231f;
  font-size: 13px;
  font-weight: 800;
}

.play-meta-bar a {
  margin-left: auto;
  color: var(--box-accent-2);
}

.game-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.game-main-content,
.game-side-panel {
  min-width: 0;
}

.content-panel,
.seo-copy-panel,
.empty-panel {
  margin-bottom: 14px;
  padding: 16px;
}

.content-panel h2,
.seo-copy-panel h2,
.empty-panel h2 {
  margin: 0 0 10px;
  color: var(--box-ink);
  font-size: 24px;
  line-height: 1.16;
  font-weight: 950;
}

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

.score-pill {
  min-height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: #10201d;
  background: #ddf7ee;
  font-size: 13px;
  font-weight: 900;
}

.content-steps,
.feature-list,
.tips-list {
  margin: 0;
  padding-left: 20px;
  color: #34433e;
}

.content-steps li,
.feature-list li,
.tips-list li {
  margin-bottom: 7px;
}

.controls-grid,
.seo-columns,
.two-col-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.controls-grid div {
  min-height: 82px;
  padding: 12px;
  border-radius: 8px;
  background: #f2f8f5;
}

.controls-grid strong,
.controls-grid span {
  display: block;
}

.controls-grid strong {
  margin-bottom: 4px;
  color: #123d35;
  font-size: 15px;
  font-weight: 950;
}

.controls-grid span {
  color: #596a64;
  font-size: 13px;
  line-height: 1.4;
}

.detail-list {
  display: grid;
  gap: 8px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--box-line);
}

.detail-list span {
  color: var(--box-muted);
  font-size: 12px;
  font-weight: 850;
}

.detail-list strong {
  color: var(--box-ink);
  font-size: 13px;
  text-align: right;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-cloud span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  color: #164a40;
  background: #e7f6ef;
  font-size: 12px;
  font-weight: 800;
}

.sticky-side-panel {
  position: sticky;
  top: 76px;
}

.compact-game-list {
  display: grid;
  gap: 9px;
}

.compact-game-list a {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--box-ink);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.compact-game-list img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.compact-game-list span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.faq-list {
  margin-top: 14px;
}

.faq-list h3 {
  margin: 14px 0 4px;
  color: var(--box-ink);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 950;
}

.faq-list p {
  margin: 0 0 8px;
}

.footer-minimal {
  padding: 22px 0;
  background: #eef4f0;
}

.footer-minimal-inner {
  justify-content: center;
  text-align: center;
}

body:has(#cookie-notice),
body:has(.cookie-notice),
body:has(.cc-window) {
  padding-bottom: 0;
}

#cookie-notice,
.cookie-notice,
.cc-window,
.cookie-consent,
.cookies-consent,
.cookie-banner,
.cookie-bar,
.cookie-popup,
[class*="cookie"][class*="bar"],
[id*="cookie"][id*="bar"] {
  max-height: 112px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
}

body .btn-cookie-accept,
body .btn-cookie-decline {
  min-height: 34px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
}

@media (max-width: 991px) {
  .site-nav,
  .nav-inner {
    min-height: 56px;
  }

  .nav-inner {
    flex-wrap: nowrap;
  }

  .nav-utility {
    margin-left: 0;
    order: 2;
  }

  .install-app-button {
    min-width: 42px;
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .install-app-button span,
  .user-avatar {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: #10231f;
  }

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

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

  .game-side-panel {
    display: none;
  }

  .play-stage-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .play-actions {
    display: flex;
  }

  .play-meta-bar a {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .app-page {
    padding-top: 8px;
  }

  .app-container,
  .game-stage-container {
    width: min(100% - 16px, 1240px);
  }

  .site-logo {
    width: 146px;
  }

  .category-rail {
    display: none;
  }

  .home-hero-copy {
    padding: 12px;
  }

  .home-hero h1 {
    font-size: 26px;
    max-width: 320px;
  }

  .home-hero p {
    max-width: 330px;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.38;
  }

  .home-hero {
    gap: 8px;
    margin-bottom: 8px;
  }

  .home-hero .eyebrow {
    margin-bottom: 4px;
    font-size: 10.5px;
  }

  .featured-strip {
    grid-template-columns: 58px minmax(0, 1fr) 38px;
    padding: 9px;
    min-height: 76px;
  }

  .featured-strip img {
    width: 58px;
    height: 58px;
  }

  .featured-strip strong {
    font-size: 15px;
  }

  .category-chip {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .category-chip-rail {
    margin-bottom: 8px;
    gap: 7px;
  }

  .game-shelf {
    padding: 9px;
  }

  .shelf-title-row {
    margin-bottom: 10px;
  }

  .shelf-title-row h2 {
    font-size: 19px;
  }

  .shelf-title-row a {
    min-height: 32px;
  }

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

  .game-tile-body {
    padding: 8px;
  }

  .game-tile-title {
    min-height: 34px;
    font-size: 13px;
  }

  .game-tile-meta {
    font-size: 11px;
  }

  .collection-header {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .collection-header h1 {
    font-size: 30px;
  }

  .collection-count {
    min-height: 58px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .collection-count strong {
    font-size: 28px;
  }

  .play-stage-header {
    min-height: 62px;
    padding: 8px;
  }

  .play-title-group {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
  }

  .play-title-group img {
    width: 42px;
    height: 42px;
  }

  .play-title-group h1 {
    font-size: 20px;
  }

  .play-title-group p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.28;
    display: none;
  }

  .play-action {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .play-tag-row {
    padding: 5px 8px;
  }

  .play-tag-row span {
    min-height: 24px;
    font-size: 11px;
  }

  .play-frame {
    min-height: clamp(430px, calc(100svh - 142px), 620px);
  }

  .game-center-play {
    min-width: 118px;
    min-height: 48px;
    font-size: 15px;
  }

  .play-meta-bar {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .content-panel,
  .seo-copy-panel,
  .empty-panel {
    padding: 13px;
  }

  .content-panel h2,
  .seo-copy-panel h2,
  .empty-panel h2 {
    font-size: 21px;
  }

  .controls-grid,
  .seo-columns,
  .two-col-panel {
    grid-template-columns: 1fr;
  }

  #cookie-notice,
  .cookie-notice,
  .cc-window,
  .cookie-consent,
  .cookies-consent,
  .cookie-banner,
  .cookie-bar,
  .cookie-popup,
  [class*="cookie"][class*="bar"],
  [id*="cookie"][id*="bar"] {
    max-height: 86px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  body .btn-cookie-accept,
  body .btn-cookie-decline {
    min-height: 32px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 380px) {
  .app-container,
  .game-stage-container {
    width: min(100% - 14px, 1240px);
  }

  .home-hero h1,
  .collection-header h1 {
    font-size: 27px;
  }

  .game-tile-grid,
  .game-tile-grid.compact {
    gap: 7px;
  }

  .game-tile-title {
    font-size: 12.5px;
  }

  .play-title-group h1 {
    font-size: 22px;
  }

  .play-frame {
    min-height: clamp(350px, calc(100svh - 168px), 520px);
  }
}

/* Game box final player and ad layout */
.home-playground {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.home-player-card,
.home-queue-panel {
  overflow: hidden;
  border: 1px solid var(--box-line);
  border-radius: 8px;
  background: #071411;
  box-shadow: var(--box-shadow);
}

.home-player-top {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(69, 214, 168, 0.18), transparent 58%),
    #10231f;
}

.home-game-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.home-game-identity img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.home-game-identity span,
.home-queue-title span {
  display: block;
  color: #50d3a6;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 950;
  text-transform: uppercase;
}

.home-game-identity h1 {
  margin: 2px 0 0;
  overflow: hidden;
  color: #fff;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-player-actions {
  display: flex;
  gap: 8px;
}

.home-player-actions a,
.home-player-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #eaf8f3;
  background: rgba(255, 255, 255, 0.09);
  font-size: 13px;
  font-weight: 900;
}

.home-game-frame {
  position: relative;
  width: 100%;
  min-height: clamp(500px, calc(100vh - 180px), 740px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050908;
  isolation: isolate;
  touch-action: manipulation;
}

.home-game-frame-inner {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  max-height: 100%;
  background: #050908;
  transform: translateZ(0);
  flex: 0 0 auto;
}

.home-game-frame iframe,
.play-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: top left;
}

.home-game-frame[data-responsive="1"] .home-game-frame-inner,
.home-game-frame[data-responsive="1"] iframe,
.play-frame[data-responsive="1"] .play-frame-inner,
.play-frame[data-responsive="1"] iframe {
  width: 100%;
  height: 100%;
}

.home-player-foot {
  min-height: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 7px 12px;
  color: #d9eee6;
  background: #10231f;
  font-size: 12.5px;
  font-weight: 850;
}

.home-queue-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  background: #10231f;
}

.home-queue-title {
  padding: 12px 12px 8px;
  color: #fff;
}

.home-queue-title strong {
  display: block;
  margin-top: 3px;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 950;
}

.home-queue-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
  overflow: auto;
  max-height: calc(100vh - 182px);
}

.home-queue-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 30px;
  gap: 9px;
  align-items: center;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.home-queue-item:hover {
  color: #fff;
  border-color: rgba(80, 211, 166, 0.42);
  background: rgba(80, 211, 166, 0.12);
}

.home-queue-item img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.home-queue-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.18;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-queue-item small {
  display: block;
  margin-top: 4px;
  color: #a8cfc1;
  font-size: 11px;
  font-weight: 800;
}

.home-queue-item > .fa {
  color: var(--box-accent-2);
}

.ad-widget-zone {
  margin: 0 0 14px;
  text-align: center;
}

.ad-widget-zone > * {
  max-width: 100%;
}

.top-ad-zone,
.home-ad-zone,
.home-player-bottom-zone,
.game-player-bottom-zone,
.bottom-ad-zone,
.homepage-bottom-zone,
.category-ad-zone {
  display: flex;
  justify-content: center;
}

.game-content-mid-zone {
  margin: 2px 0 16px;
}

.game-sidebar-ad-zone {
  position: sticky;
  top: 76px;
}

.play-frame {
  min-height: clamp(500px, calc(100vh - 176px), 760px);
}

.game-center-play {
  display: none;
}

@media (max-width: 991px) {
  .home-playground {
    grid-template-columns: 1fr;
  }

  .home-queue-panel {
    display: none;
  }
}

@media (max-width: 767px) {
  .home-player-top {
    min-height: 58px;
    padding: 7px 8px;
  }

  .home-game-identity {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
  }

  .home-game-identity img {
    width: 38px;
    height: 38px;
  }

  .home-game-identity span {
    font-size: 9.5px;
  }

  .home-game-identity h1 {
    font-size: 18px;
  }

  .home-player-actions a,
  .home-player-actions button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }

  .home-player-actions a span,
  .home-player-actions button span {
    display: none;
  }

  .home-game-frame {
    min-height: clamp(430px, calc(100svh - 132px), 640px);
  }

  .home-player-foot {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 11.5px;
  }

  .play-frame {
    min-height: clamp(430px, calc(100svh - 132px), 660px);
  }

  .game-player-bottom-zone,
  .home-player-bottom-zone {
    margin-bottom: 10px;
  }
}

/* LevelDevil-style game portal final layout */
:root {
  --portal-bg: #111315;
  --portal-panel: #191c20;
  --portal-panel-2: #22262b;
  --portal-line: rgba(255, 255, 255, 0.1);
  --portal-text: #f4f6f8;
  --portal-muted: #a7afb8;
  --portal-accent: #ff4d27;
  --portal-accent-2: #ffc247;
  --portal-radius: 10px;
}

html,
body {
  background: var(--portal-bg) !important;
}

body {
  color: var(--portal-text);
  font-size: 14px;
  line-height: 1.45;
}

body.is-game-page,
body.is-home-page,
body.is-list-page {
  background: var(--portal-bg) !important;
}

.box-sidebar {
  position: fixed;
  z-index: 1040;
  top: 0;
  bottom: 0;
  left: 0;
  width: 74px;
  overflow: hidden;
  border-right: 1px solid var(--portal-line);
  background: #15181c;
  transition: width 0.18s ease;
}

.box-sidebar:hover {
  width: 250px;
}

.box-sidebar-logo {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.box-sidebar-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.box-sidebar-nav {
  display: grid;
  gap: 4px;
  padding: 8px 10px 18px;
}

.box-sidebar-nav a {
  height: 44px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--portal-muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.box-sidebar-nav a:hover {
  color: #fff;
  background: var(--portal-panel-2);
}

.box-sidebar-nav i {
  width: 28px;
  text-align: center;
  color: var(--portal-accent-2);
  font-size: 18px;
}

.site-shell {
  position: sticky;
  top: 0;
  z-index: 1030;
  margin-left: 74px;
  border: 0;
  background: var(--portal-bg);
  box-shadow: none;
  backdrop-filter: none;
}

.site-nav,
.nav-inner {
  min-height: 58px;
}

.nav-inner {
  width: min(100% - 28px, 1280px);
  margin: 0 auto;
  padding: 0;
  gap: 12px;
}

.brand-lockup {
  display: none;
}

.nav-toggle {
  display: none !important;
}

.nav-menu {
  display: flex !important;
  flex: 1 1 auto;
  justify-content: center;
}

.search-bar {
  width: min(520px, 52vw);
  min-width: 280px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--portal-panel);
}

.search-input {
  color: var(--portal-text);
  font-size: 14px;
}

.search-submit {
  color: #fff;
  background: transparent;
}

.nav-utility {
  margin-left: 0;
}

.install-app-button {
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--portal-panel);
  font-size: 13px;
  font-weight: 850;
}

.install-app-button.is-hinting {
  color: #111315;
  background: var(--portal-accent-2);
}

.app-toast {
  position: fixed;
  z-index: 1100;
  left: 50%;
  bottom: 18px;
  width: min(360px, calc(100% - 28px));
  padding: 12px 14px;
  border-radius: 10px;
  color: #111315;
  background: var(--portal-accent-2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.category-rail {
  display: none;
}

.footer-minimal {
  display: block;
  margin-left: 74px;
  border-top: 1px solid var(--portal-line);
  background: var(--portal-bg);
}

.app-page {
  margin-left: 74px;
  padding: 8px 0 32px;
}

.app-container,
.game-stage-container {
  width: min(100% - 28px, 1280px);
}

.homepage-shell {
  background: var(--portal-bg);
}

.home-playground,
.game-play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.home-player-card,
.play-stage,
.home-queue-panel,
.game-prime-rail,
.rail-module,
.game-shelf,
.content-panel,
.seo-copy-panel,
.empty-panel {
  border: 0 !important;
  border-radius: var(--portal-radius) !important;
  background: var(--portal-panel) !important;
  box-shadow: none !important;
}

.home-player-top,
.play-stage-header {
  min-height: 66px;
  padding: 10px 12px;
  color: #fff;
  background: var(--portal-panel);
}

.play-stage-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.home-game-identity,
.play-title-group {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
}

.home-game-identity img,
.play-title-group img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.home-game-identity span,
.play-title-group .eyebrow,
.home-queue-title span,
.rail-title span,
.shelf-title-row span {
  color: var(--portal-accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-game-identity h1,
.play-title-group h1 {
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
}

.play-title-group p {
  max-width: 760px;
  margin-top: 3px;
  color: var(--portal-muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.home-player-actions a,
.home-player-actions button,
.play-action {
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--portal-panel-2);
  font-size: 12px;
}

.play-tag-row {
  gap: 6px;
  padding: 8px 12px;
  background: var(--portal-panel);
}

.play-tag-row span {
  min-height: 26px;
  border: 0;
  color: var(--portal-muted);
  background: var(--portal-panel-2);
  font-size: 11.5px;
}

.home-game-frame,
.play-frame {
  height: clamp(360px, 54vh, 540px);
  min-height: 0 !important;
  background: #050505;
}

.home-game-frame-inner,
.play-frame-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: #050505;
}

.home-game-frame iframe,
.play-frame iframe,
.home-game-frame[data-responsive="1"] iframe,
.play-frame[data-responsive="1"] iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  transform: none !important;
}

.game-launch-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 18px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.72)),
    #070707;
  cursor: pointer;
}

.game-launch-layer img {
  width: min(180px, 42vw);
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.game-launch-layer strong {
  max-width: min(520px, calc(100% - 24px));
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 950;
}

.game-launch-layer button {
  min-width: 132px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--portal-accent);
  box-shadow: 0 0 24px rgba(255, 77, 39, 0.38);
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}

.home-game-frame.is-loaded .game-launch-layer,
.play-frame.is-loaded .game-launch-layer {
  opacity: 0;
  pointer-events: none;
}

.home-player-foot,
.play-meta-bar {
  min-height: 44px;
  gap: 10px;
  padding: 8px 12px;
  color: var(--portal-muted);
  background: var(--portal-panel);
  font-size: 12px;
  border-top: 1px solid var(--portal-line);
}

.play-meta-bar a {
  display: none;
}

.home-queue-panel,
.game-prime-rail {
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.game-prime-rail {
  display: grid;
  gap: 12px;
}

.home-queue-title,
.rail-title {
  padding: 12px 12px 8px;
}

.home-queue-title strong,
.rail-title strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 950;
}

.home-queue-list,
.rail-game-list {
  display: grid;
  gap: 8px;
  max-height: 424px;
  overflow: auto;
  padding: 0 10px 10px;
}

.home-queue-item,
.rail-game-list a {
  min-height: 58px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  gap: 9px;
  align-items: center;
  padding: 6px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--portal-panel-2);
}

.home-queue-item img,
.rail-game-list img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.home-queue-item strong,
.rail-game-list span {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rail-game-list i,
.home-queue-item > .fa {
  color: var(--portal-accent);
}

.detail-list div {
  border-color: var(--portal-line);
}

.detail-list span {
  color: var(--portal-muted);
}

.detail-list strong {
  color: #fff;
}

.ad-widget-zone {
  margin: 0 0 14px;
}

.ad-widget-zone:empty {
  display: none !important;
}

.ad-widget-zone > * {
  max-width: 100%;
}

.top-ad-zone,
.home-player-bottom-zone,
.game-player-bottom-zone,
.home-ad-zone,
.bottom-ad-zone,
.homepage-bottom-zone {
  min-height: 0;
  justify-content: center;
}

.top-ad-zone:not(:empty),
.home-player-bottom-zone:not(:empty),
.game-player-bottom-zone:not(:empty),
.home-ad-zone:not(:empty),
.bottom-ad-zone:not(:empty),
.homepage-bottom-zone:not(:empty) {
  min-height: 90px;
  display: flex;
  align-items: center;
  border-radius: var(--portal-radius);
  background: var(--portal-panel);
}

.prime-ad-zone:not(:empty) {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--portal-radius);
  background: var(--portal-panel);
}

.category-chip-rail {
  margin: 0 0 14px;
  padding: 2px 0 6px;
}

.category-chip {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--portal-muted);
  background: var(--portal-panel);
  box-shadow: none;
  font-size: 12px;
}

.category-chip:hover,
.category-chip.is-current {
  color: #fff;
  background: var(--portal-panel-2);
}

.game-shelf {
  margin: 0 0 16px;
  padding: 14px;
}

.shelf-title-row {
  min-height: 30px;
  margin-bottom: 12px;
}

.shelf-title-row h2,
.content-panel h2,
.seo-copy-panel h2,
.empty-panel h2 {
  color: #fff;
  font-size: 21px;
  line-height: 1.15;
}

.shelf-title-row a {
  min-height: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--portal-panel-2);
  font-size: 12px;
}

.game-slider-row {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.game-slider-row::-webkit-scrollbar {
  display: none;
}

.game-slider-row .game-tile {
  flex: 0 0 158px;
  scroll-snap-align: start;
}

.game-tile-link {
  border: 0;
  border-radius: 10px;
  background: var(--portal-panel-2);
  box-shadow: none;
}

.game-tile-link:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: none;
}

.game-tile-media {
  aspect-ratio: 16 / 10;
  background: #111;
}

.game-tile-body {
  padding: 8px 9px 9px;
}

.game-tile-title {
  min-height: 34px;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.22;
  font-weight: 850;
}

.game-tile-meta {
  margin-top: 6px;
  color: var(--portal-muted);
  font-size: 11px;
}

.game-content-layout,
.game-content-layout.is-single {
  display: block;
  max-width: 940px;
  margin-top: 16px;
}

.content-panel,
.seo-copy-panel {
  margin-bottom: 14px;
  padding: 16px;
  color: var(--portal-muted);
}

.legal-page {
  padding-bottom: 40px;
}

.legal-container {
  max-width: 1120px;
}

.legal-hero {
  margin-bottom: 14px;
  padding: 22px;
  border-radius: var(--portal-radius);
  color: #fff;
  background: var(--portal-panel);
}

.legal-hero span {
  display: block;
  margin-bottom: 6px;
  color: var(--portal-accent-2);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 950;
}

.legal-hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--portal-muted);
  font-size: 14px;
}

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

.legal-content h2 {
  margin: 22px 0 8px;
  color: #fff;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 950;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 16px 0 6px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.legal-content p,
.legal-content li,
.legal-meta-panel p {
  color: var(--portal-muted);
  font-size: 14px;
  line-height: 1.65;
}

.legal-content ul {
  margin: 8px 0 14px;
  padding-left: 20px;
}

.legal-content a,
.legal-side a,
.footer-legal a {
  color: #fff;
}

.legal-side {
  position: sticky;
  top: 74px;
}

.legal-link-list {
  display: grid;
  gap: 8px;
}

.legal-link-list a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--portal-muted);
  background: var(--portal-panel-2);
  font-size: 13px;
  font-weight: 850;
}

.legal-link-list a.is-current,
.legal-link-list a:hover {
  color: #fff;
  background: #2c333a;
}

.content-panel p,
.seo-copy-panel p {
  color: var(--portal-muted);
  font-size: 14px;
}

.content-steps,
.feature-list,
.tips-list {
  color: var(--portal-muted);
}

.controls-grid div {
  background: var(--portal-panel-2);
}

.controls-grid strong {
  color: #fff;
}

.controls-grid span {
  color: var(--portal-muted);
}

.score-pill,
.tag-cloud span {
  color: #fff;
  background: var(--portal-panel-2);
}

@media (min-width: 1320px) {
  .home-playground,
  .game-play-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .home-game-frame,
  .play-frame {
    height: 540px !important;
  }
}

@media (max-width: 991px) {
  .box-sidebar {
    display: none;
  }

  .site-shell,
  .app-page {
    margin-left: 0;
  }

  .site-nav,
  .nav-inner {
    min-height: 54px;
  }

  .nav-inner {
    width: min(100% - 18px, 1280px);
  }

  .brand-lockup {
    display: inline-flex;
  }

  .site-logo {
    width: 128px;
  }

  .nav-menu {
    position: static;
    display: flex !important;
    padding: 0;
    background: transparent;
  }

  .search-bar {
    width: min(52vw, 360px);
    min-width: 0;
  }

  .install-app-button {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .home-playground,
  .game-play-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-queue-panel,
  .game-prime-rail {
    display: block;
  }

  .home-queue-list,
  .rail-game-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    padding: 0 10px 10px;
    scrollbar-width: none;
  }

  .home-queue-list::-webkit-scrollbar,
  .rail-game-list::-webkit-scrollbar {
    display: none;
  }

  .home-queue-item,
  .rail-game-list a {
    flex: 0 0 210px;
  }

  .rail-details-module {
    display: none;
  }
}

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

  .app-page {
    padding-top: 6px;
  }

  .app-container,
  .game-stage-container {
    width: min(100% - 12px, 1280px);
  }

  .nav-inner {
    gap: 8px;
  }

  .site-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    object-position: left center;
  }

  .search-bar {
    flex: 1 1 auto;
    height: 38px;
    min-width: 0;
  }

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

  .search-submit {
    width: 38px;
  }

  .home-player-top,
  .play-stage-header {
    min-height: 56px;
    padding: 8px;
  }

  .play-stage-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-game-identity,
  .play-title-group {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
  }

  .home-game-identity img,
  .play-title-group img {
    width: 38px;
    height: 38px;
  }

  .home-game-identity h1,
  .play-title-group h1 {
    font-size: 16px;
  }

  .play-title-group p,
  .home-game-identity span,
  .play-title-group .eyebrow {
    display: none;
  }

  .home-player-actions a,
  .home-player-actions button,
  .play-action {
    min-height: 34px;
    width: 36px;
    padding: 0;
  }

  .home-player-actions span,
  .play-action span {
    display: none;
  }

  .play-tag-row {
    padding: 7px 8px;
  }

  .play-tag-row span {
    min-height: 24px;
    font-size: 11px;
  }

  .home-game-frame,
  .play-frame {
    height: clamp(340px, 58svh, 520px);
  }

  .game-launch-layer {
    gap: 10px;
    padding: 14px;
  }

  .game-launch-layer img {
    width: min(150px, 48vw);
  }

  .game-launch-layer strong {
    font-size: 18px;
  }

  .game-launch-layer button {
    min-width: 118px;
    min-height: 50px;
    border-radius: 14px;
    font-size: 18px;
  }

  .home-player-foot,
  .play-meta-bar {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .home-queue-title,
  .rail-title {
    padding: 10px 10px 7px;
  }

  .home-queue-title strong,
  .rail-title strong {
    font-size: 17px;
  }

  .home-queue-item,
  .rail-game-list a {
    flex-basis: 180px;
    min-height: 54px;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
  }

  .home-queue-item img,
  .rail-game-list img {
    width: 44px;
    height: 44px;
  }

  .game-shelf {
    padding: 10px;
    margin-bottom: 12px;
  }

  .shelf-title-row {
    margin-bottom: 9px;
  }

  .shelf-title-row h2,
  .content-panel h2,
  .seo-copy-panel h2 {
    font-size: 18px;
  }

  .game-slider-row .game-tile {
    flex-basis: 132px;
  }

  .game-tile-body {
    padding: 7px;
  }

  .game-tile-title {
    min-height: 31px;
    font-size: 12.5px;
  }

  .game-tile-meta {
    display: none;
  }

  .content-panel,
  .seo-copy-panel {
    padding: 12px;
  }

  .controls-grid,
  .seo-columns,
  .two-col-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .top-ad-zone:not(:empty),
  .home-player-bottom-zone:not(:empty),
  .game-player-bottom-zone:not(:empty),
  .home-ad-zone:not(:empty),
  .bottom-ad-zone:not(:empty),
  .homepage-bottom-zone:not(:empty) {
    min-height: 56px;
  }
}

@media (max-width: 991px) {
  .home-playground,
  .game-play-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-player-card,
  .play-stage,
  .home-queue-panel,
  .game-prime-rail,
  .rail-module,
  .home-player-top,
  .play-stage-header,
  .play-tag-row,
  .home-game-frame,
  .play-frame,
  .home-player-foot,
  .play-meta-bar {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-player-card,
  .play-stage {
    overflow: hidden !important;
  }

  .home-game-identity,
  .play-title-group,
  .home-game-identity > div,
  .play-title-group > div,
  .home-game-identity h1,
  .play-title-group h1 {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .home-game-identity h1,
  .play-title-group h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-game-frame,
  .play-frame {
    overflow: hidden !important;
  }

  .home-game-frame-inner,
  .play-frame-inner,
  .home-game-frame iframe,
  .play-frame iframe,
  .game-launch-layer {
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .install-app-button {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
}

@media (max-width: 420px) {
  .category-chip-rail {
    margin-bottom: 10px;
  }

  .category-chip {
    min-height: 32px;
    padding: 0 10px;
  }

  .home-game-frame,
  .play-frame {
    height: clamp(330px, 56svh, 500px);
  }

  .home-player-foot span:nth-child(2),
  .play-meta-bar span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 767px) {
  .legal-page {
    padding-bottom: 24px !important;
  }

  .legal-container {
    width: min(100% - 16px, 1120px) !important;
    max-width: none !important;
  }

  .legal-hero {
    margin-bottom: 10px !important;
    padding: 16px !important;
    border-radius: 10px !important;
  }

  .legal-hero h1 {
    font-size: 22px !important;
    line-height: 1.12 !important;
  }

  .legal-hero p {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .legal-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .legal-content,
  .legal-side,
  .legal-side .content-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .legal-side {
    position: static !important;
    top: auto !important;
  }

  .legal-content h2 {
    margin: 18px 0 8px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  .legal-content h3 {
    font-size: 15px !important;
  }

  .legal-content p,
  .legal-content li,
  .legal-meta-panel p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    overflow-wrap: anywhere;
  }

  .legal-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .legal-link-list a {
    min-height: 42px !important;
    justify-content: center !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  .footer-minimal {
    margin-left: 0 !important;
    padding: 16px 0 !important;
  }

  .footer-minimal-inner {
    width: min(100% - 16px, 1280px) !important;
    gap: 12px !important;
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .footer-minimal .footer-brand {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .footer-minimal .footer-brand img {
    width: 120px !important;
  }

  .footer-minimal .footer-brand p {
    max-width: none !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .footer-legal {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .footer-legal a,
  .footer-minimal a {
    display: flex !important;
    min-height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    border-radius: 8px !important;
    background: var(--portal-panel-2) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
}

@media (max-width: 360px) {
  .footer-legal,
  .legal-link-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
