:root {
  --bg: #f2f3f1;
  --surface: #ffffff;
  --surface-muted: #f6f3ec;
  --line: #d9d7d0;
  --text: #171715;
  --muted: #62615d;
  --green: #1f704c;
  --green-deep: #123f2a;
  --felt: #166c45;
  --felt-dark: #073a25;
  --red: #b72d2d;
  --blue: #184d7f;
  --gold: #c4963a;
  --button: #ffffff;
  --shadow: 0 22px 54px rgba(11, 25, 17, 0.22);
  --soft-shadow: 0 12px 34px rgba(19, 33, 24, 0.12);
  --app-height: 100dvh;
  --header-height: 58px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(183, 45, 45, 0.055), transparent 23rem),
    radial-gradient(circle at 92% 0%, rgba(24, 77, 127, 0.07), transparent 24rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
}

body:has(.home-page) {
  background:
    linear-gradient(90deg, rgba(16, 29, 43, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 29, 43, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 10% 6%, rgba(196, 150, 58, 0.09), transparent 24rem),
    radial-gradient(circle at 88% 3%, rgba(24, 77, 127, 0.065), transparent 28rem),
    linear-gradient(180deg, #fbfaf7 0%, #f5f2eb 48%, #eef0ed 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(16, 29, 43, 0.12);
  display: grid;
  gap: clamp(10px, 2vw, 20px);
  grid-template-columns: auto 1fr auto;
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 8px clamp(14px, 2.8vw, 30px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.brand::before {
  background:
    linear-gradient(135deg, #ffffff 0 56%, #f8edd8 56% 100%);
  border: 2px solid #101d2b;
  border-radius: 5px;
  box-shadow:
    5px 3px 0 var(--red),
    0 2px 8px rgba(16, 29, 43, 0.18);
  content: "";
  display: inline-block;
  height: 22px;
  transform: rotate(-6deg);
  width: 16px;
}

.site-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
  min-width: 0;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: clamp(0.8rem, 1.05vw, 0.93rem);
  padding: 9px clamp(7px, 1vw, 12px);
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a[aria-current="page"] {
  background: #eef1f5;
  color: #101d2b;
  font-weight: 700;
}

.site-nav a:hover {
  background: rgba(16, 29, 43, 0.07);
  color: #101d2b;
}

.language-picker {
  align-items: center;
  display: flex;
  gap: 8px;
}

.language-picker span {
  color: var(--muted);
  font-size: 0.8rem;
}

select {
  background: var(--button);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  min-height: 34px;
  padding: 0 8px;
}

.play-section {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 16% 0%, rgba(255, 248, 234, 0.14), transparent 28rem),
    linear-gradient(135deg, #123f2a 0%, #09281d 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  display: flex;
  flex-direction: column;
  height: calc(var(--app-height) - var(--header-height));
  min-height: 0;
  overflow: hidden;
  padding: clamp(10px, 1.8vw, 18px);
}

.game-menu {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 244, 232, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 10px;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.56);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto 12px;
  max-width: 1220px;
  padding: 11px 13px;
  width: 100%;
}

.title-block {
  align-items: center;
  display: flex;
  gap: 18px;
  min-width: 0;
}

.game-retention-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.daily-game-badge,
.favorite-game-button {
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  min-height: 32px;
  padding: 7px 11px;
}

.daily-game-badge {
  background: rgba(196, 150, 58, 0.18);
  border: 1px solid rgba(196, 150, 58, 0.36);
  color: #6f4e0f;
}

.favorite-game-button {
  background: #ffffff;
  border: 1px solid rgba(18, 63, 42, 0.2);
  color: var(--green-deep);
  cursor: pointer;
}

.favorite-game-button[aria-pressed="true"] {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #ffffff;
}

.game-retention-strip {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto 10px;
  max-width: 1220px;
  width: 100%;
}

.daily-challenge-panel {
  align-items: stretch;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.22), transparent 10rem),
    linear-gradient(135deg, #123f2a 0%, #0d3429 48%, #101d2b 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 0.66fr);
  margin: 0 auto 10px;
  max-width: 1220px;
  padding: 12px 14px;
  width: 100%;
}

.daily-challenge-panel span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.daily-challenge-panel strong {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.05;
}

.daily-challenge-panel p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  margin: 0;
}

.daily-challenge-copy {
  display: grid;
  gap: 7px;
}

.daily-challenge-tools {
  display: grid;
  gap: 9px;
}

.daily-challenge-tools dl {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

.daily-challenge-tools div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  min-width: 0;
  padding: 8px;
}

.daily-challenge-tools dt {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.daily-challenge-tools dd {
  color: #ffffff;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.daily-challenge-actions,
.daily-archive-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.daily-challenge-actions a,
.daily-challenge-actions button,
.daily-archive-links a,
.daily-archive-links button {
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  min-height: 30px;
  padding: 7px 10px;
  text-decoration: none;
}

.daily-challenge-actions a,
.daily-challenge-actions button[data-daily-replay] {
  background: #ffffff;
  border: 0;
  color: #123f2a;
}

.daily-challenge-actions button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  cursor: pointer;
}

.daily-archive-links a,
.daily-archive-links button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.daily-share-status {
  font-size: 0.78rem;
  min-height: 1em;
}

.game-retention-stat {
  background: rgba(255, 252, 244, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  display: grid;
  gap: 2px;
  min-height: 46px;
  padding: 8px 10px;
}

.game-retention-stat span {
  color: #56635b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-retention-stat strong {
  color: #121714;
  font-size: 1rem;
  line-height: 1.05;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.1;
  margin-bottom: 0;
}

.variant-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.variant-links a {
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 34px;
  padding: 7px 11px;
  text-decoration: none;
}

.variant-links a[aria-current="page"] {
  background: var(--green);
  border-color: var(--green);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16);
  color: #ffffff;
}

.engine-controls {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  min-height: 34px;
}

.engine-controls button,
.engine-controls span {
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 34px;
  padding: 7px 11px;
}

.engine-controls button:disabled {
  color: #a7ada5;
  cursor: default;
}

.engine-controls button {
  color: var(--green-deep);
  cursor: pointer;
}

.engine-controls button[data-control="new"] {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #ffffff;
}

.engine-controls button[data-control="undo"]:not(:disabled) {
  background: #fff8ea;
  border-color: rgba(196, 150, 58, 0.58);
  color: #6b4b0b;
}

.engine-controls button:hover {
  border-color: var(--green);
}

.engine-controls:empty {
  display: none;
}

.game-layout {
  display: grid;
  flex: 1 1 auto;
  margin: 0 auto;
  max-width: 1220px;
  min-height: 0;
  padding: 0 0 2px;
  width: 100%;
}

.game-board-column {
  display: grid;
  gap: 12px;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.stats-panel[hidden] {
  display: none;
}

.game-root {
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.12), transparent 22rem),
    linear-gradient(135deg, var(--felt), var(--felt-dark));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 42px rgba(0, 0, 0, 0.12),
    0 24px 62px rgba(0, 0, 0, 0.26);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.game-root.is-loading::after {
  color: rgba(255, 255, 255, 0.74);
  content: "Loading game...";
  font-weight: 800;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.game-root canvas {
  display: block;
  height: 100% !important;
  width: 100% !important;
}

.engine-empty-state {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  inset: 12px;
  position: absolute;
}

.game-win-banner {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 57, 35, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  color: var(--text);
  left: 50%;
  max-width: min(360px, calc(100% - 32px));
  padding: 22px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 4;
}

.game-win-banner[hidden] {
  display: none;
}

.game-win-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.game-win-banner p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.game-win-banner button {
  background: var(--green);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 0 18px;
}

.stats-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 220px;
}

.mobile-content-jump {
  display: none;
}

.ad-slot[hidden],
.ad-slot:not([hidden]) {
  display: none;
}

body[data-ad-layout="enabled"] .ad-slot:not([hidden]) {
  background: rgba(250, 250, 245, 0.94);
  border: 1px solid rgba(18, 63, 42, 0.16);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: block;
  overflow: hidden;
}

body[data-ad-layout="enabled"] .ad-slot-side:not([hidden]) {
  min-height: 100%;
}

body[data-ad-layout="enabled"] .ad-slot-content:not([hidden]) {
  margin: clamp(22px, 4vw, 36px) auto 0;
  max-width: 970px;
  min-height: 90px;
  width: 100%;
}

@media (min-width: 1180px) {
  body[data-ad-layout="enabled"] .game-layout:has(.ad-slot-side:not([hidden])) {
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    max-width: 1560px;
  }
}

@media (max-width: 1179px) {
  body[data-ad-layout="enabled"] .ad-slot-side:not([hidden]) {
    display: none;
  }
}

.game-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 239, 0.94));
  border: 1px solid rgba(18, 63, 42, 0.1);
  border-radius: 10px;
  box-shadow: var(--soft-shadow);
  margin: clamp(16px, 3vw, 32px) auto;
  max-width: 1180px;
  padding: clamp(24px, 5vw, 56px) clamp(18px, 6vw, 74px);
}

.game-content h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  margin-bottom: 10px;
}

.game-content p {
  color: #354036;
  font-size: 1.03rem;
  line-height: 1.65;
  max-width: 820px;
}

.game-content-grid {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-content-grid section {
  border-top: 3px solid rgba(31, 112, 76, 0.22);
  padding-top: 16px;
}

.game-content-grid p {
  margin-bottom: 0;
}

.game-seo-guide {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
}

.game-seo-guide + .game-content-grid {
  border-top: 1px solid rgba(18, 63, 42, 0.12);
  margin-top: clamp(24px, 4vw, 36px);
  padding-top: clamp(22px, 4vw, 34px);
}

.game-guide-intro p {
  font-size: 1.08rem;
}

.game-quick-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.game-quick-facts div {
  background: #f8f6f0;
  border: 1px solid rgba(18, 63, 42, 0.11);
  border-radius: 8px;
  padding: 12px;
}

.game-quick-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.game-quick-facts dd {
  color: var(--text);
  font-weight: 780;
  line-height: 1.35;
  margin: 0;
}

.game-seo-guide ul {
  color: #354036;
  line-height: 1.62;
  margin: 0;
  max-width: 880px;
  padding-left: 22px;
}

.game-seo-guide li + li {
  margin-top: 8px;
}

.game-faqs {
  display: grid;
  gap: 14px;
}

.game-faqs > section {
  border-top: 1px solid rgba(18, 63, 42, 0.12);
  padding-top: 14px;
}

.game-faqs h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.article-page {
  background:
    radial-gradient(circle at 12% 3%, rgba(183, 45, 45, 0.045), transparent 22rem),
    radial-gradient(circle at 88% 0%, rgba(24, 77, 127, 0.06), transparent 24rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  min-height: calc(var(--app-height) - var(--header-height));
}

.seo-article {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  margin: clamp(18px, 4vw, 42px) auto;
  max-width: 1060px;
}

.seo-article h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 18px;
  max-width: 820px;
}

.seo-article section {
  margin-top: 30px;
}

.seo-article ul {
  color: #354036;
  line-height: 1.65;
  margin: 0;
  max-width: 820px;
  padding-left: 22px;
}

.seo-article li + li {
  margin-top: 7px;
}

.article-faq-item {
  border-top: 1px solid rgba(18, 63, 42, 0.12);
  margin-top: 18px;
  max-width: 820px;
  padding-top: 14px;
}

.article-faq-item h3 {
  color: #121714;
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.article-faq-item p {
  margin-bottom: 0;
}

.article-table-wrap {
  margin-top: 14px;
  max-width: 920px;
  overflow-x: auto;
}

.article-filter-panel {
  align-items: end;
  background: rgba(255, 252, 244, 0.92);
  border: 1px solid rgba(18, 63, 42, 0.13);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto auto;
  margin-top: 16px;
  max-width: 920px;
  padding: 12px;
}

.article-filter-panel label {
  display: grid;
  gap: 5px;
}

.article-filter-panel span {
  color: #56635b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-filter-panel select,
.article-filter-panel button {
  border: 1px solid rgba(18, 63, 42, 0.18);
  border-radius: 8px;
  font: inherit;
  min-height: 40px;
}

.article-filter-panel select {
  background: #ffffff;
  color: #121714;
  padding: 8px 10px;
}

.article-filter-panel button {
  background: var(--green-deep);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  padding: 8px 13px;
}

.article-filter-panel strong {
  color: #354036;
  font-size: 0.85rem;
  line-height: 1.2;
  min-width: 78px;
}

.article-table {
  background: rgba(255, 252, 244, 0.86);
  border: 1px solid rgba(18, 63, 42, 0.14);
  border-collapse: collapse;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(11, 25, 17, 0.07);
  min-width: 620px;
  overflow: hidden;
  width: 100%;
}

.article-table th,
.article-table td {
  border-bottom: 1px solid rgba(18, 63, 42, 0.11);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: rgba(18, 63, 42, 0.08);
  color: var(--green-deep);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.article-table td {
  color: #354036;
  line-height: 1.45;
}

.article-directory-table th,
.article-directory-table td {
  min-width: 92px;
}

.article-directory-table th:first-child,
.article-directory-table td:first-child {
  min-width: 150px;
}

.article-table a {
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: none;
}

.article-table a:hover {
  text-decoration: underline;
}

.article-intro {
  font-size: 1.16rem;
}

.breadcrumbs {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 8px;
  margin-bottom: 28px;
}

.breadcrumbs a {
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: none;
}

.related-pages ul {
  display: grid;
  gap: 8px;
  list-style: none;
  padding-left: 0;
}

.related-pages a {
  color: var(--green-deep);
  font-weight: 800;
}

.game-related-pages {
  border-top: 1px solid rgba(18, 63, 42, 0.12);
  margin-top: clamp(24px, 4vw, 38px);
  padding-top: clamp(20px, 3vw, 28px);
}

.game-related-pages ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-page {
  min-height: calc(var(--app-height) - var(--header-height));
}

.home-hero {
  align-items: center;
  background:
    linear-gradient(130deg, rgba(255, 248, 234, 0.13) 0 21%, transparent 21% 100%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.034) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #285c46 0%, #0f4c34 42%, #091c18 100%);
  color: #ffffff;
  display: grid;
  gap: clamp(20px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.85fr);
  min-height: clamp(430px, 62vh, 680px);
  overflow: hidden;
  padding: clamp(44px, 8vw, 96px) clamp(16px, 8vw, 120px);
  position: relative;
}

.home-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  opacity: 0.42;
  position: absolute;
}

.home-hero::after {
  background:
    linear-gradient(90deg, rgba(7, 31, 23, 0.62), transparent 38%),
    linear-gradient(180deg, transparent 72%, rgba(7, 31, 23, 0.52));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.home-hero-copy {
  max-width: 650px;
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  color: #ffffff;
  font-size: clamp(3rem, 6.8vw, 5.4rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 20px;
  max-width: 650px;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.home-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
  max-width: 650px;
}

.home-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-primary {
  align-items: center;
  background: #fff8ea;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  color: var(--green-deep);
  display: inline-flex;
  font-weight: 800;
  min-height: 50px;
  padding: 0 22px;
  text-decoration: none;
}

.home-secondary {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 7px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  min-height: 50px;
  padding: 0 20px;
  text-decoration: none;
}

.home-table-preview {
  aspect-ratio: 1.15;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.09), transparent 34%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 54px rgba(0, 0, 0, 0.16),
    0 34px 80px rgba(0, 0, 0, 0.26);
  justify-self: end;
  max-width: 520px;
  min-height: 330px;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}

.home-table-preview::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  inset: 0;
  opacity: 0.4;
  position: absolute;
}

.preview-card {
  background:
    linear-gradient(150deg, #ffffff, #fbf1df);
  border: 1px solid rgba(18, 63, 42, 0.24);
  border-radius: 8px;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  height: 54%;
  position: absolute;
  width: 30%;
}

.preview-card::before,
.preview-card::after {
  content: "";
  position: absolute;
}

.preview-card::before {
  background: var(--red);
  border-radius: 50% 50% 45% 45%;
  height: 24%;
  left: 38%;
  top: 36%;
  transform: rotate(45deg);
  width: 24%;
}

.preview-card::after {
  background: linear-gradient(135deg, var(--blue), #0e2f54);
  border-radius: 3px;
  height: 12%;
  left: 10%;
  top: 10%;
  width: 22%;
}

.preview-card-a {
  left: 13%;
  top: 31%;
  transform: rotate(-13deg);
}

.preview-card-b {
  left: 36%;
  top: 18%;
  transform: rotate(3deg);
}

.preview-card-c {
  left: 58%;
  top: 32%;
  transform: rotate(15deg);
}

.preview-chip {
  background:
    radial-gradient(circle at center, #fff8ea 0 22%, transparent 23% 100%),
    conic-gradient(from 20deg, var(--red) 0 12%, #fff8ea 12% 24%, var(--blue) 24% 36%, #fff8ea 36% 48%, var(--red) 48% 60%, #fff8ea 60% 72%, var(--blue) 72% 84%, #fff8ea 84% 100%);
  border-radius: 50%;
  bottom: 13%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  height: 58px;
  position: absolute;
  right: 15%;
  width: 58px;
}

.home-lobby,
.home-game-rows {
  margin-inline: auto;
  max-width: 1180px;
  padding-inline: clamp(16px, 4vw, 30px);
}

.home-lobby {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.82fr);
  padding-block: clamp(22px, 4.2vw, 46px);
}

.home-lobby-copy {
  align-self: center;
}

.home-lobby h1 {
  color: var(--text);
  font-size: clamp(2.35rem, 5.8vw, 4.7rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 14px;
  max-width: 760px;
  text-shadow: none;
}

.home-lobby p {
  color: #354036;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.52;
  max-width: 690px;
}

.catalog-game-tile {
  color: var(--text);
  text-decoration: none;
}

.home-game-rows {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  padding-bottom: clamp(20px, 4vw, 44px);
}

.game-row {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.game-row h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 12px;
}

.compact-game-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.catalog-game-tile {
  background: rgba(255, 252, 244, 0.94);
  border: 1px solid rgba(18, 63, 42, 0.11);
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(11, 25, 17, 0.09);
  display: grid;
  gap: 11px;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 118px;
  overflow: hidden;
  padding: 11px;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.catalog-game-tile .game-preview {
  min-height: 96px;
}

.catalog-game-tile .top-game-copy h3 {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

.catalog-game-tile:hover {
  border-color: rgba(31, 112, 76, 0.36);
  box-shadow: 0 14px 34px rgba(11, 25, 17, 0.14);
}

.catalog-game-tile:hover {
  transform: translateY(-2px);
}

.home-page {
  background:
    linear-gradient(90deg, rgba(16, 29, 43, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 29, 43, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 10% 6%, rgba(196, 150, 58, 0.09), transparent 24rem),
    radial-gradient(circle at 88% 3%, rgba(24, 77, 127, 0.065), transparent 28rem),
    linear-gradient(180deg, #fbfaf7 0%, #f5f2eb 48%, #eef0ed 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.home-lobby {
  gap: clamp(20px, 4vw, 42px);
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1fr);
  max-width: 1260px;
  padding-block: clamp(34px, 5vw, 70px) clamp(28px, 4vw, 54px);
}

.home-lobby-copy {
  align-self: center;
  max-width: 630px;
}

.home-lobby h1 {
  color: #121714;
  font-size: clamp(2.55rem, 5.4vw, 4.55rem);
  line-height: 0.92;
  margin-bottom: 16px;
  text-shadow: none;
}

.home-lobby-copy p {
  color: #323c38;
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  line-height: 1.52;
  margin-bottom: 14px;
}

.top-game-board {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.16), transparent 18rem),
    linear-gradient(135deg, #123f2a 0%, #0d3429 44%, #101d2b 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 26px 72px rgba(11, 25, 17, 0.22);
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2.4vw, 20px);
  position: relative;
}

.top-game-board::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0.56;
  pointer-events: none;
  position: absolute;
}

.top-game-board > * {
  position: relative;
  z-index: 1;
}

.top-game-board > h2 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

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

.top-game-tile {
  background: rgba(255, 252, 244, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 9px;
  box-shadow: 0 12px 26px rgba(3, 13, 9, 0.22);
  color: var(--text);
  display: grid;
  gap: 12px;
  grid-template-columns: 94px minmax(0, 1fr);
  min-height: 128px;
  overflow: hidden;
  padding: 12px;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.top-game-tile-featured {
  background:
    linear-gradient(135deg, rgba(255, 252, 244, 0.98), rgba(255, 244, 220, 0.94));
  grid-template-columns: minmax(150px, 0.52fr) minmax(0, 0.48fr);
  min-height: 230px;
  padding: 16px;
}

.top-game-tile:hover {
  border-color: rgba(255, 248, 234, 0.92);
  box-shadow: 0 18px 40px rgba(3, 13, 9, 0.3);
  transform: translateY(-2px);
}

.game-preview {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(18, 63, 42, 0.86), rgba(9, 31, 42, 0.88));
  border: 1px solid rgba(18, 63, 42, 0.14);
  border-radius: 8px;
  min-height: 104px;
  overflow: hidden;
  position: relative;
}

.top-game-tile-featured .game-preview {
  min-height: 198px;
}

.game-preview::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  opacity: 0.8;
  position: absolute;
}

.asset-card {
  aspect-ratio: 90 / 120;
  background-image: url("/assets/cards/fspider/playing_card_assets_large.png");
  background-repeat: no-repeat;
  background-size: 1300% 500%;
  border-radius: 5px;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.28);
  height: 70%;
  left: 50%;
  position: absolute;
  top: 18%;
  transform-origin: 50% 85%;
  z-index: 1;
}

.asset-card:nth-child(1) {
  transform: translateX(-82%) rotate(-12deg);
}

.asset-card:nth-child(2) {
  transform: translateX(-50%) translateY(-5%) rotate(1deg);
  z-index: 2;
}

.asset-card:nth-child(3) {
  transform: translateX(-18%) rotate(12deg);
}

.game-preview-stack .asset-card {
  height: 72%;
  left: 47%;
  top: 12%;
}

.game-preview-stack .asset-card:nth-child(1) {
  transform: translateX(-62%) translateY(-8%) rotate(-2deg);
}

.game-preview-stack .asset-card:nth-child(2) {
  transform: translateX(-50%) translateY(2%) rotate(1deg);
}

.game-preview-stack .asset-card:nth-child(3) {
  transform: translateX(-38%) translateY(12%) rotate(3deg);
}

.game-preview-row .asset-card {
  height: 66%;
  top: 18%;
  transform: translateX(-50%) rotate(0deg);
}

.game-preview-row .asset-card:nth-child(1) {
  left: 27%;
}

.game-preview-row .asset-card:nth-child(2) {
  left: 50%;
  transform: translateX(-50%) translateY(-4%) rotate(0deg);
}

.game-preview-row .asset-card:nth-child(3) {
  left: 73%;
}

.game-preview-cells .asset-card {
  height: 60%;
  top: 22%;
  transform: translateX(-50%) rotate(0deg);
}

.game-preview-cells .asset-card:nth-child(1) {
  left: 31%;
}

.game-preview-cells .asset-card:nth-child(2) {
  left: 50%;
}

.game-preview-cells .asset-card:nth-child(3) {
  left: 69%;
}

.game-preview-trick .asset-card:nth-child(1) {
  transform: translateX(-78%) translateY(8%) rotate(-18deg);
}

.game-preview-trick .asset-card:nth-child(2) {
  transform: translateX(-50%) translateY(-8%) rotate(2deg);
}

.game-preview-trick .asset-card:nth-child(3) {
  transform: translateX(-20%) translateY(10%) rotate(18deg);
}

.game-preview-triangle .asset-card {
  height: 62%;
}

.game-preview-triangle .asset-card:nth-child(1) {
  left: 50%;
  top: 8%;
  transform: translateX(-50%) rotate(0deg);
}

.game-preview-triangle .asset-card:nth-child(2) {
  left: 37%;
  top: 33%;
  transform: translateX(-50%) rotate(-4deg);
}

.game-preview-triangle .asset-card:nth-child(3) {
  left: 63%;
  top: 33%;
  transform: translateX(-50%) rotate(4deg);
}

.game-preview-peaks .asset-card {
  height: 58%;
}

.game-preview-peaks .asset-card:nth-child(1) {
  left: 30%;
  top: 18%;
  transform: translateX(-50%) translateY(8%) rotate(-9deg);
}

.game-preview-peaks .asset-card:nth-child(2) {
  left: 50%;
  top: 10%;
  transform: translateX(-50%) rotate(0deg);
}

.game-preview-peaks .asset-card:nth-child(3) {
  left: 70%;
  top: 18%;
  transform: translateX(-50%) translateY(8%) rotate(9deg);
}

.game-preview-cascade .asset-card {
  height: 62%;
  left: 48%;
  top: 12%;
}

.game-preview-cascade .asset-card:nth-child(1) {
  transform: translateX(-72%) translateY(-7%) rotate(-6deg);
}

.game-preview-cascade .asset-card:nth-child(2) {
  transform: translateX(-48%) translateY(9%) rotate(1deg);
}

.game-preview-cascade .asset-card:nth-child(3) {
  transform: translateX(-22%) translateY(25%) rotate(7deg);
}

.game-preview-reserve .asset-card:nth-child(1) {
  transform: translateX(-84%) rotate(-3deg);
}

.game-preview-reserve .asset-card:nth-child(2) {
  transform: translateX(-58%) translateY(6%) rotate(0deg);
}

.game-preview-reserve .asset-card:nth-child(3) {
  transform: translateX(-12%) translateY(-4%) rotate(9deg);
}

.top-game-tile-featured .asset-card {
  height: 76%;
  top: 14%;
}

.card-a-spades {
  background-position: 0% 50%;
}

.card-k-spades {
  background-position: 100% 50%;
}

.card-q-spades {
  background-position: 91.6667% 50%;
}

.card-j-spades {
  background-position: 83.3333% 50%;
}

.card-7-spades {
  background-position: 50% 50%;
}

.card-a-hearts {
  background-position: 0% 25%;
}

.card-7-hearts {
  background-position: 50% 25%;
}

.card-k-hearts {
  background-position: 100% 25%;
}

.card-10-hearts {
  background-position: 75% 25%;
}

.card-k-diamonds {
  background-position: 100% 75%;
}

.card-7-diamonds {
  background-position: 50% 75%;
}

.top-game-copy {
  align-content: center;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.top-game-copy > span:first-child {
  color: #6b4b0b;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-game-copy h2,
.top-game-copy h3 {
  color: var(--green-deep);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.04;
  margin: 0;
}

.top-game-tile-featured .top-game-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.top-game-detail {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.25;
}

.top-game-copy strong {
  color: #8b1f1f;
  font-size: 0.9rem;
  margin-top: 4px;
}

.home-game-search {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  max-width: 560px;
}

.home-game-search span {
  color: #26332d;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-game-search input {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 63, 42, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(11, 25, 17, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 1.04rem;
  min-height: 50px;
  padding: 0 14px;
  width: 100%;
}

.home-game-search input:focus {
  border-color: rgba(31, 112, 76, 0.7);
  outline: 3px solid rgba(31, 112, 76, 0.16);
}

.home-search-results {
  background: rgba(255, 252, 244, 0.97);
  border: 1px solid rgba(18, 63, 42, 0.13);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(11, 25, 17, 0.12);
  margin-top: 8px;
  max-width: 560px;
  overflow: hidden;
}

.home-search-results p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
  padding: 12px 14px;
}

.home-search-result-list {
  display: grid;
}

.home-search-result-list a {
  color: var(--text);
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  text-decoration: none;
}

.home-search-result-list a + a {
  border-top: 1px solid rgba(18, 63, 42, 0.1);
}

.home-search-result-list a:hover,
.home-search-result-list a:focus-visible {
  background: rgba(31, 112, 76, 0.09);
}

.home-search-result-list strong {
  color: var(--green-deep);
  font-size: 0.96rem;
}

.home-search-result-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.home-catalog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.home-catalog-stats > span {
  align-items: baseline;
  background: rgba(255, 252, 244, 0.88);
  border: 1px solid rgba(18, 63, 42, 0.12);
  border-radius: 999px;
  display: inline-flex;
  gap: 7px;
  padding: 7px 10px;
}

.home-catalog-stats strong {
  color: var(--green-deep);
  font-size: 1rem;
}

.home-catalog-stats span span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.home-discovery {
  display: grid;
  gap: clamp(18px, 2.8vw, 30px);
  grid-template-columns: 230px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1260px;
  padding: 0 clamp(16px, 4vw, 30px) clamp(22px, 4vw, 48px);
}

.home-category-sidebar {
  align-self: start;
  min-width: 0;
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.home-category-sidebar h2 {
  color: #121714;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.home-category-sidebar nav {
  background: rgba(255, 252, 244, 0.9);
  border: 1px solid rgba(18, 63, 42, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(11, 25, 17, 0.08);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 6px;
}

.home-category-link {
  align-items: center;
  border-radius: 7px;
  color: var(--muted);
  display: flex;
  font-size: 0.92rem;
  font-weight: 800;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 10px;
  text-decoration: none;
}

.home-category-link strong {
  background: rgba(18, 63, 42, 0.08);
  border-radius: 999px;
  color: var(--green-deep);
  font-size: 0.74rem;
  min-width: 28px;
  padding: 3px 7px;
  text-align: center;
}

.home-category-link[aria-current="page"],
.home-category-link:hover {
  background: var(--green-deep);
  color: #ffffff;
}

.home-category-link[aria-current="page"] strong,
.home-category-link:hover strong {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.home-discovery .home-game-rows {
  max-width: none;
  min-width: 0;
  padding: 0;
}

.home-discovery .home-section-header {
  align-items: center;
  background: rgba(255, 252, 244, 0.74);
  border: 1px solid rgba(18, 63, 42, 0.1);
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.home-result-count {
  font-weight: 800;
  justify-self: end;
}

.home-discovery .game-row {
  margin-top: clamp(16px, 2.4vw, 26px);
}

.home-discovery .game-row h2 {
  border-bottom: 1px solid rgba(18, 63, 42, 0.12);
  padding-bottom: 8px;
}

.home-discovery .game-row h2 a {
  color: inherit;
  text-decoration: none;
}

.home-discovery .game-row h2 a:hover {
  color: var(--green-deep);
}

.home-discovery .compact-game-list {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.home-discovery .catalog-game-tile {
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 96px;
  padding: 9px;
}

.home-discovery .catalog-game-tile .game-preview {
  min-height: 78px;
}

.home-discovery .catalog-game-tile .top-game-copy {
  gap: 4px;
}

.home-discovery .catalog-game-tile .top-game-copy h3 {
  font-size: 1rem;
}

.home-discovery .catalog-game-tile .top-game-detail,
.home-discovery .catalog-game-tile .top-game-copy strong {
  font-size: 0.78rem;
}

.home-retention {
  display: grid;
  gap: 16px;
  margin: 0 auto clamp(22px, 3.6vw, 42px);
  max-width: 1260px;
  padding: 0 clamp(16px, 4vw, 30px);
}

.home-retention .home-section-header {
  background: rgba(255, 252, 244, 0.76);
  border: 1px solid rgba(18, 63, 42, 0.1);
  border-radius: 10px;
  padding: 16px;
}

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

.daily-game-card {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.24), transparent 10rem),
    linear-gradient(135deg, #123f2a 0%, #0d3429 48%, #101d2b 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(11, 25, 17, 0.18);
  color: #ffffff;
  display: grid;
  gap: 12px;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 126px;
  overflow: hidden;
  padding: 12px;
  text-decoration: none;
}

.daily-game-card .game-preview {
  min-height: 102px;
}

.daily-game-card .top-game-copy > span:first-child,
.daily-game-card .top-game-detail {
  color: rgba(255, 255, 255, 0.76);
}

.daily-game-card .top-game-copy strong {
  color: #ffe3a5;
}

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

.retention-list {
  background: rgba(255, 252, 244, 0.9);
  border: 1px solid rgba(18, 63, 42, 0.11);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(11, 25, 17, 0.08);
  padding: 14px;
}

.retention-list h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.retention-list ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.retention-list li {
  align-items: center;
  border-top: 1px solid rgba(18, 63, 42, 0.09);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-top: 8px;
}

.retention-list a {
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: none;
}

.retention-list li span,
.retention-empty {
  color: #5d6761;
  font-size: 0.9rem;
  line-height: 1.4;
}

.retention-empty {
  margin-bottom: 0;
}

.home-intent-hubs {
  display: grid;
  gap: 16px;
  margin: 0 auto clamp(22px, 3.6vw, 42px);
  max-width: 1260px;
  padding: 0 clamp(16px, 4vw, 30px);
}

.home-intent-hubs .home-section-header {
  background: rgba(255, 252, 244, 0.76);
  border: 1px solid rgba(18, 63, 42, 0.1);
  border-radius: 10px;
  padding: 16px;
}

.intent-hub-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intent-hub-link {
  background: rgba(255, 252, 244, 0.9);
  border: 1px solid rgba(18, 63, 42, 0.11);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(11, 25, 17, 0.08);
  color: var(--text);
  display: grid;
  gap: 7px;
  min-height: 142px;
  padding: 14px;
  text-decoration: none;
}

.intent-hub-link strong {
  color: var(--green-deep);
  font-size: 1rem;
  line-height: 1.12;
}

.intent-hub-link span {
  color: #9c3f2b;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intent-hub-link p {
  color: #4f5a54;
  font-size: 0.88rem;
  line-height: 1.42;
  margin: 0;
}

.intent-hub-link:hover {
  border-color: rgba(31, 112, 76, 0.34);
  box-shadow: 0 16px 34px rgba(11, 25, 17, 0.13);
  transform: translateY(-1px);
}

.game-directory {
  margin: clamp(24px, 4vw, 46px) auto 0;
  max-width: 1180px;
  padding: 0 clamp(16px, 4vw, 30px) clamp(20px, 4vw, 46px);
  position: relative;
  z-index: 2;
}

.home-section-header {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.5fr) minmax(280px, 0.5fr);
  margin-bottom: 16px;
}

.home-section-header h2,
.home-categories h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: 0;
}

.home-page .home-section-header h2,
.home-page .game-row h2 {
  color: #121714;
  text-shadow: none;
}

.home-section-header p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.home-page .home-section-header p {
  color: #4f5a54;
}

.game-directory-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 244, 232, 0.94));
  border: 1px solid rgba(18, 63, 42, 0.13);
  border-radius: 10px;
  box-shadow:
    0 18px 42px rgba(11, 25, 17, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.64);
  color: var(--text);
  min-height: 230px;
  overflow: hidden;
  padding: 22px;
  position: relative;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.game-card::after {
  background: linear-gradient(90deg, var(--green), #45a26e);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.game-card::before {
  border: 1px solid rgba(18, 63, 42, 0.09);
  border-radius: 12px;
  content: "";
  height: 150px;
  opacity: 0.55;
  position: absolute;
  right: -34px;
  top: 68px;
  transform: rotate(-10deg);
  width: 112px;
}

.game-card[href]:hover {
  border-color: rgba(31, 112, 76, 0.34);
  box-shadow:
    0 24px 54px rgba(11, 25, 17, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  transform: translateY(-3px);
}

.game-card span {
  background: #edf4ee;
  border-radius: 999px;
  color: var(--green-deep);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding: 5px 9px;
}

.game-card h2 {
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  line-height: 1.05;
  margin-bottom: 8px;
  max-width: 70%;
  position: relative;
  z-index: 1;
}

.game-card p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 72%;
  position: relative;
  z-index: 1;
}

.game-card strong {
  color: var(--green-deep);
  display: inline-flex;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.game-card-art {
  bottom: 18px;
  height: 102px;
  position: absolute;
  right: 18px;
  width: 138px;
}

.game-card-art i {
  background:
    linear-gradient(145deg, #ffffff, #fbf2e3);
  border: 1px solid rgba(18, 63, 42, 0.17);
  border-radius: 7px;
  box-shadow: 0 12px 22px rgba(11, 25, 17, 0.16);
  height: 94px;
  position: absolute;
  top: 8px;
  width: 64px;
}

.game-card-art i::before {
  color: var(--red);
  content: "A";
  font-size: 0.8rem;
  font-weight: 900;
  left: 7px;
  line-height: 1;
  position: absolute;
  top: 7px;
}

.game-card-art i::after {
  background: var(--red);
  border-radius: 50% 50% 45% 45%;
  content: "";
  height: 20px;
  left: 22px;
  position: absolute;
  top: 38px;
  transform: rotate(45deg);
  width: 20px;
}

.game-card-art i:nth-child(1) {
  left: 2px;
  transform: rotate(-11deg);
}

.game-card-art i:nth-child(2) {
  left: 36px;
  top: 0;
  transform: rotate(2deg);
}

.game-card-art i:nth-child(3) {
  left: 70px;
  transform: rotate(13deg);
}

.home-lower {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  margin: 0 auto clamp(20px, 4vw, 46px);
  max-width: 1180px;
  padding: 0 clamp(16px, 4vw, 30px);
}

.home-categories {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 63, 42, 0.11);
  border-radius: 10px;
  box-shadow: var(--soft-shadow);
  padding: clamp(20px, 3.4vw, 34px);
}

.category-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.category-item {
  border-top-color: rgba(31, 112, 76, 0.32);
  border-top-style: solid;
  border-top-width: 3px;
  padding-top: 14px;
}

.category-item h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.category-item p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.home-content {
  margin-bottom: 0;
  margin-top: 0;
}

.home-content-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.home-content-grid section {
  border-top: 3px solid rgba(31, 112, 76, 0.22);
  padding-top: 14px;
}

.home-content-grid h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.home-content-grid p {
  font-size: 0.98rem;
  margin-bottom: 0;
}

@media (max-width: 1040px) {
  .home-lobby {
    grid-template-columns: 1fr;
    max-width: 800px;
  }

  .top-game-board {
    max-width: 760px;
    width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 0px;
  }

  .site-header {
    display: none;
  }

  body:has(.home-page) .site-header {
    display: grid;
    height: 52px;
    min-height: 52px;
  }

  body:has(.home-page) {
    --header-height: 52px;
  }

  body:has(.home-page) .site-nav {
    display: none;
  }

  .play-section {
    --mobile-content-peek: clamp(108px, 15svh, 156px);
    height: calc(var(--app-height) - var(--header-height) - var(--mobile-content-peek));
    min-height: 0;
    padding: 0;
    position: relative;
  }

  .mobile-content-jump {
    align-items: center;
    background: rgba(250, 250, 245, 0.96);
    border-top: 1px solid rgba(18, 63, 42, 0.12);
    color: var(--green-deep);
    display: flex;
    font-size: 0.78rem;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-content-jump::after {
    content: "";
    border-color: currentColor;
    border-style: solid;
    border-width: 0 2px 2px 0;
    display: inline-block;
    height: 6px;
    margin-left: 8px;
    transform: translateY(-2px) rotate(45deg);
    width: 6px;
  }

  .game-menu {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
    height: 100%;
    inset: 0;
    margin: 0;
    max-width: none;
    padding: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
  }

  .title-block {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    left: 10px;
    pointer-events: auto;
    position: absolute;
    right: 10px;
    top: 10px;
  }

  h1 {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
    margin: 0;
    min-width: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  }

  .variant-links {
    display: grid;
    flex: 0 0 auto;
    gap: 3px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(52vw, 190px);
  }

  .variant-links a {
    background: rgba(11, 21, 16, 0.58);
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.72rem;
    min-height: 24px;
    padding: 5px 4px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  }

  .variant-links a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.75);
    color: var(--green-deep);
    text-shadow: none;
  }

  .engine-controls {
    display: grid;
    gap: 2px;
    grid-template-columns: 1fr 1.35fr 1fr 1fr;
    inset: auto 8px calc(env(safe-area-inset-bottom, 0px) + 8px) 8px;
    min-height: 54px;
    pointer-events: auto;
    position: absolute;
  }

  .engine-controls button,
  .engine-controls span {
    background: rgba(11, 21, 16, 0.68);
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 0;
    color: #ffffff;
    font-size: 0.86rem;
    line-height: 1;
    min-height: 54px;
    padding: 7px 4px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    touch-action: manipulation;
    white-space: nowrap;
  }

  .engine-controls button[data-control="undo"] {
    background: rgba(255, 255, 255, 0.92);
    color: var(--green-deep);
    font-size: 1rem;
    font-weight: 900;
    text-shadow: none;
  }

  .engine-controls button[data-control="undo"]:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  }

  .engine-controls button:disabled {
    color: rgba(255, 255, 255, 0.45);
  }

  .engine-controls button[data-control="undo"]:disabled {
    background: rgba(255, 255, 255, 0.34);
    color: rgba(16, 57, 35, 0.55);
  }

  .game-layout {
    max-width: none;
    width: 100%;
  }

  .game-root {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .engine-empty-state {
    inset: 8px;
  }

  .game-win-banner {
    max-width: min(320px, calc(100% - 28px));
    padding: 18px;
  }

  .game-content {
    margin-top: 0;
    scroll-margin-top: 12px;
    padding: 26px 16px;
  }

  body[data-ad-layout="enabled"] .ad-slot-content:not([hidden]) {
    margin: 0 auto 18px;
    min-height: 96px;
  }

  .game-content-grid {
    grid-template-columns: 1fr;
  }

  .game-related-pages ul {
    grid-template-columns: 1fr;
  }

  .seo-article h1 {
    color: var(--text);
    font-size: 2.3rem;
    text-shadow: none;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 410px;
    padding: 46px 16px 76px;
  }

  .home-hero-copy {
    max-width: 100%;
    width: 100%;
  }

  .home-hero h1 {
    font-size: clamp(2.55rem, 11.2vw, 3.15rem);
    max-width: 100%;
  }

  .home-table-preview {
    display: none;
  }

  .home-lobby,
  .home-game-rows {
    padding-inline: 16px;
  }

  .home-lobby {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 24px 18px;
  }

  .home-lobby h1 {
    color: var(--text);
    font-size: clamp(2.2rem, 10.5vw, 3rem);
    text-shadow: none;
  }

  .home-lobby-copy p {
    color: #323c38;
  }

  .top-game-board {
    border-radius: 10px;
    padding: 12px;
  }

  .top-game-board > h2 {
    font-size: 0.78rem;
  }

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

  .top-game-tile,
  .catalog-game-tile,
  .top-game-tile-featured {
    gap: 10px;
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 104px;
    padding: 10px;
  }

  .catalog-game-tile {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 116px;
  }

  .top-game-tile-featured {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 138px;
  }

  .game-preview {
    min-height: 84px;
  }

  .top-game-tile-featured .game-preview {
    min-height: 118px;
  }

  .catalog-game-tile .game-preview {
    min-height: 96px;
  }

  .top-game-tile-featured .top-game-copy h2 {
    font-size: 1.45rem;
  }

  .top-game-copy > span:first-child {
    font-size: 0.68rem;
  }

  .top-game-detail {
    font-size: 0.78rem;
  }

  .compact-game-list {
    grid-template-columns: 1fr;
  }

  .game-directory {
    margin-top: 22px;
    padding: 0 16px 22px;
  }

  .home-section-header,
  .game-directory-grid,
  .category-list,
  .home-content-grid {
    grid-template-columns: 1fr;
  }

  .home-section-header {
    gap: 8px;
  }

  .home-discovery {
    gap: 12px;
    grid-template-columns: 1fr;
    padding: 0 16px 28px;
  }

  .home-category-sidebar {
    background: rgba(251, 250, 247, 0.94);
    border-bottom: 1px solid rgba(18, 63, 42, 0.1);
    margin: 0;
    padding: 0 0 8px;
    position: sticky;
    top: var(--header-height);
    z-index: 5;
  }

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

  .home-category-sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px;
    scrollbar-width: none;
  }

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

  .home-category-link {
    flex: 0 0 auto;
    gap: 8px;
    min-height: 36px;
    white-space: nowrap;
  }

  .home-discovery .home-section-header {
    grid-template-columns: 1fr;
    margin-bottom: 8px;
  }

  .home-result-count {
    justify-self: start;
  }

  .home-discovery .game-row {
    margin-top: 18px;
  }

  .home-discovery .catalog-game-tile {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 106px;
  }

  .home-retention {
    gap: 12px;
    margin-bottom: 24px;
    padding-inline: 16px;
  }

  .home-retention .home-section-header,
  .daily-game-list,
  .home-retention-personal,
  .home-intent-hubs .home-section-header,
  .intent-hub-list {
    grid-template-columns: 1fr;
  }

  .home-intent-hubs {
    gap: 12px;
    margin-bottom: 24px;
    padding-inline: 16px;
  }

  .intent-hub-link {
    min-height: 0;
  }

  .daily-game-card {
    grid-template-columns: 90px minmax(0, 1fr);
    min-height: 112px;
  }

  .daily-game-card .game-preview {
    min-height: 88px;
  }

  .article-filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .article-filter-panel button,
  .article-filter-panel strong {
    min-height: 36px;
  }

  .game-retention-actions {
    display: none;
  }

  .daily-challenge-panel {
    gap: 7px;
    grid-template-columns: 1fr;
    margin: 6px 6px 6px;
    padding: 8px 10px;
    width: calc(100% - 12px);
  }

  .daily-challenge-panel span {
    font-size: 0.58rem;
    margin-bottom: 2px;
  }

  .daily-challenge-panel strong {
    font-size: 0.95rem;
  }

  .daily-challenge-panel p {
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .daily-challenge-tools {
    gap: 7px;
  }

  .daily-challenge-tools dl {
    gap: 5px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-challenge-tools div {
    border-radius: 7px;
    padding: 6px;
  }

  .daily-challenge-tools dt {
    font-size: 0.52rem;
    margin-bottom: 2px;
  }

  .daily-challenge-tools dd {
    font-size: 0.7rem;
  }

  .daily-challenge-actions a,
  .daily-challenge-actions button,
  .daily-archive-links a,
  .daily-archive-links button {
    font-size: 0.66rem;
    min-height: 27px;
    padding: 5px 8px;
  }

  .daily-share-status,
  .daily-archive-links {
    display: none;
  }

  .game-retention-strip {
    gap: 4px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 6px 6px 6px;
    width: calc(100% - 12px);
  }

  .game-retention-stat {
    min-height: 36px;
    padding: 5px 6px;
  }

  .game-retention-stat span {
    font-size: 0.56rem;
    line-height: 1.05;
  }

  .game-retention-stat strong {
    font-size: 0.84rem;
  }

  .game-card {
    min-height: 210px;
  }

  .game-card h2,
  .game-card p {
    max-width: 68%;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  :root {
    --header-height: 42px;
  }

  .site-header {
    min-height: var(--header-height);
    padding-block: 4px;
  }

  .play-section {
    height: calc(var(--app-height) - var(--header-height));
    min-height: 0;
    padding: 5px 10px;
  }

  .game-menu {
    gap: 8px;
    margin-bottom: 6px;
  }

  .game-retention-strip {
    display: none;
  }

  .daily-challenge-panel {
    display: none;
  }

  h1 {
    font-size: 1rem;
  }

  .variant-links a,
  .engine-controls button,
  .engine-controls span {
    min-height: 28px;
    padding: 4px 7px;
  }
}
