@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

:root {
  --brand: #1e4d8c;
  --brand-dark: #163a6b;
  --brand-deep: #0f2d54;
  --brand-soft: #e8f0fa;
  --brand-soft-2: #cdddf0;
  --brand-mark: #93c5fd;
  --ink: #0f172a;
  --muted: #475569;
  --line: #c9d4e3;
  --page-tint: #e4ebf5;
  --surface: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--page-tint);
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.main-wrapper {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface);
}

@media (min-width: 425px) {
  .main-wrapper {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    max-width: 425px;
  }
}

.main-content {
  padding: 12px;
}

@media (min-width: 425px) {
  .main-content {
    padding: 12px 12px;
  }
}

.search-box {
  display: flex;
  overflow: hidden;
  border-radius: 14px;
  background: var(--page-tint);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  width: 100%;
  min-width: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.search-input::-webkit-scrollbar {
  height: 4px;
}

.search-input::-webkit-scrollbar-track {
  background: var(--page-tint);
  border-radius: 2px;
}

.search-input::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 2px;
}

.search-input::placeholder {
  color: #8a93a8;
}

.search-btn {
  width: 52px;
  flex-shrink: 0;
  border: none;
  background: var(--brand);
  color: white;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.search-btn:hover {
  opacity: 0.9;
}

.ads-container {
  width: calc(100% + 24px);
  margin-left: -12px;
  margin-right: -12px;
  margin-bottom: 14px;
  background: var(--page-tint);
  padding: 5px 0;
  border: 1px solid var(--line);
  border-left: none;
  border-right: none;
}

.ad-label {
  text-align: center;
  font-size: 10px;
  letter-spacing: 3px;
  color: #8a93a8;
  margin-bottom: 8px;
}

.ad-unit-wrapper {
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-unit-wrapper ins.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 250px;
  background: transparent;
}

@media (max-width: 424px) {
  .ad-unit-wrapper {
    min-height: 250px;
  }

  .ad-unit-wrapper ins.adsbygoogle {
    min-height: 250px;
  }
}

@media (min-width: 425px) and (max-width: 768px) {
  .ad-unit-wrapper {
    min-height: 90px;
  }

  .ad-unit-wrapper ins.adsbygoogle {
    min-height: 90px;
  }
}

.card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.discover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #e5e9f2;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: 0.2s;
}

.discover-item:hover {
  color: var(--brand);
}

.discover-item:last-child {
  border-bottom: none;
}

.coin-card {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(18, 34, 31, 0.05);
}

.earn-coins-wrap {
  position: relative;
  width: 100%;
}

.coin-ad-label {
  position: absolute;
  right: -10px;
  top: 10%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}

.coin-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.coin-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.earn-coins-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  border-radius: 999px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s,
    box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(30, 77, 140, 0.25);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.earn-coins-btn span {
  letter-spacing: 1px;
}

@media (hover: hover) {
  .earn-coins-btn:hover {
    box-shadow: 0 6px 18px rgba(30, 77, 140, 0.35);
  }
}

.earn-coins-btn:active {
  transform: scale(0.96);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-coin-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.play-btn,
.more-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  border-radius: 999px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 4px 12px rgba(30, 77, 140, 0.25);
}

.play-btn:hover,
.more-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.category-title-sec {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.category-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.category-btn {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: var(--page-tint);
  color: var(--brand-deep);
  border-radius: 12px;
  padding: 14px 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.category-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  /* SVGs are white — tint them brand blue on light buttons */
  filter: brightness(0) saturate(100%) invert(24%) sepia(55%) saturate(1100%)
    hue-rotate(194deg) brightness(92%) contrast(92%);
  transition: filter 0.25s;
}

@media (hover: hover) {
  .category-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    border-left-color: var(--brand);
    color: #ffffff;
  }

  .category-btn:hover .category-icon {
    filter: brightness(0) invert(1);
  }
}

.category-btn:active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  border-left-color: var(--brand-deep);
  color: #ffffff;
}

.category-btn:active .category-icon {
  filter: brightness(0) invert(1);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.game-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(18, 34, 31, 0.05);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.game-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--page-tint);
}

.game-content {
  padding: 10px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.game-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  letter-spacing: -0.02em;
}

.game-users {
  color: #16a34a;
  font-size: 12px;
  margin-bottom: 4px;
}

.game-entry {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.entry-coin-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.play-btn {
  padding: 11px;
  font-size: 13px;
  border-radius: 12px;
}

.more-btn {
  margin-top: 16px;
  border-radius: 12px;
}

.about-section {
  padding: 18px 14px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  text-align: center;
  margin: 14px 0;
  box-shadow: 0 2px 10px rgba(18, 34, 31, 0.05);
}

.about-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.about-text {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

footer,
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 20px 14px 16px;
  width: 100%;
  box-sizing: border-box;
}

.footer-brand {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-link {
  text-decoration: none;
  display: inline-block;
}

.footer-brand-name {
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, transparent 62%, var(--brand-mark) 62%);
  padding: 0 2px;
}

.footer-brand-tag {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2);
  border-radius: 14px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.footer-col-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--brand-dark);
  border-color: var(--brand);
  background: var(--brand-soft);
}

.copyright {
  text-align: center;
  color: #8a93a8;
  font-size: 12px;
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid #eef1f7;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.copyright a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.copyright a:hover {
  text-decoration: underline;
}

@media (max-width: 360px) {
  footer,
  .site-footer {
    padding: 16px 10px 14px;
  }

  .footer-col {
    padding: 10px;
  }

  .footer-col a {
    font-size: 12px;
    padding: 6px 10px;
  }
}

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: #8a93a8;
  font-size: 14px;
  grid-column: span 2;
}

.error-message {
  text-align: center;
  padding: 40px;
  color: #dc2626;
  font-size: 14px;
  grid-column: span 2;
  background: rgba(220, 38, 38, 0.08);
  border-radius: 12px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.error-message p {
  margin-bottom: 15px;
}

.retry-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.no-games {
  text-align: center;
  padding: 40px;
  color: #8a93a8;
  font-size: 14px;
  grid-column: span 2;
  background: var(--page-tint);
  border-radius: 12px;
  word-wrap: break-word;
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

.sticky-header {
  background: var(--surface);
  padding: 8px 12px 12px 12px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(18, 34, 31, 0.05);
  width: 100%;
  overflow: hidden;
}

.sticky-header.is-fixed {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sticky-header:has(.header-logo) {
  background: var(--brand-deep);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(18, 34, 31, 0.05);
}

.category-page-header {
  padding: 12px 12px 0;
}

.header-category-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  background: var(--surface);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  margin: 0;
  letter-spacing: -0.02em;
}

.header-category-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(24%) sepia(55%) saturate(1100%)
    hue-rotate(194deg) brightness(92%) contrast(92%);
}

.sticky-header .search-box {
  margin-bottom: 0;
}

body.games-page {
  background: var(--page-tint);
}

body.games-page .main-wrapper {
  background:
    radial-gradient(
      100% 40% at 50% 0%,
      rgba(30, 77, 140, 0.1),
      transparent 55%
    ),
    var(--page-tint);
}

body.games-page .sticky-header {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 10px 12px;
}

body.games-page .search-box {
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  margin-bottom: 0;
  overflow: hidden;
}

body.games-page .search-input {
  padding: 12px 16px;
  font-size: 14px;
}

body.games-page .search-btn {
  width: 48px;
  border-radius: 0;
  background: var(--brand);
}

body.games-page .coin-card {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border: none;
  border-top: none;
  border-radius: 18px;
  padding: 14px 14px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(30, 77, 140, 0.28);
  text-align: left;
}

body.games-page .coin-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.games-page .coin-count {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0;
  min-width: 0;
}

body.games-page .coin-count-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.games-page .coin-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

body.games-page .coin-count [data-coin-balance] {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

body.games-page .coin-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

body.games-page .earn-coins-wrap {
  position: relative;
  width: auto;
  flex-shrink: 0;
}

body.games-page .earn-coins-btn {
  width: auto;
  min-width: 96px;
  padding: 11px 16px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand-deep);
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

body.games-page .earn-coins-btn span {
  letter-spacing: 0.04em;
}

body.games-page .btn-coin-icon {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  body.games-page .earn-coins-btn:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    opacity: 0.96;
  }
}

body.games-page .earn-coins-btn:active {
  background: var(--brand-soft);
  transform: scale(0.96);
}

body.games-page .coin-ad-label {
  right: -6px;
  top: -2px;
  transform: none;
  background: #fbbf24;
  color: #0f172a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 6px;
}

body.games-page .category-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 14px 14px;
  margin-bottom: 14px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
}

body.games-page .category-title-sec {
  display: block;
  text-align: left;
  margin-bottom: 14px;
}

body.games-page .category-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

body.games-page .category-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

body.games-page .category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 0;
}

body.games-page .category-btn {
  flex-direction: column;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--page-tint);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 6px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  gap: 8px;
}

body.games-page .category-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.games-page .category-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

@media (hover: hover) {
  body.games-page .category-btn:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-deep);
  }

  body.games-page .category-btn:hover .category-icon-wrap {
    transform: translateY(-1px);
  }

  body.games-page .category-btn:hover .category-icon {
    filter: brightness(0) invert(1);
  }
}

body.games-page .category-btn:active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

body.games-page .category-btn:active .category-icon-wrap {
  background: rgba(255, 255, 255, 0.2);
}

body.games-page .games-section-head {
  margin: 4px 0 12px;
}

body.games-page .games-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

body.games-page .games-section-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

body.games-page .games-grid {
  gap: 14px;
}

body.games-page .game-card {
  border: none;
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

body.games-page .game-image {
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

body.games-page .game-content {
  padding: 10px 10px 12px;
  text-align: left;
  border-top: none;
  background: var(--surface);
}

body.games-page .game-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: left;
}

body.games-page .game-entry {
  justify-content: flex-start;
  font-size: 12px;
  margin-bottom: 10px;
  color: var(--muted);
}

body.games-page .play-btn {
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: none;
}

body.games-page .more-btn {
  margin-top: 16px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--brand);
  border: 1.5px solid var(--brand);
  box-shadow: none;
}

body.games-page .more-btn:hover {
  background: var(--brand-soft);
  transform: none;
}

body.games-page .about-section {
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 20px;
  text-align: left;
  margin: 14px 0;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
}

body.games-page .about-title {
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
}

body.games-page .about-text {
  padding: 14px 16px 16px;
  font-size: 13.5px;
  text-align: left;
}

#games-section {
  scroll-margin-top: 80px;
}

@media (max-width: 360px) {
  body.games-page .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  body.games-page .category-btn {
    font-size: 11px;
    padding: 12px 8px;
  }

  body.games-page .coin-count [data-coin-balance] {
    font-size: 18px;
  }

  body.games-page .earn-coins-btn {
    min-width: 84px;
    padding: 10px 12px;
  }
}

html {
  scroll-behavior: smooth;
}

/* Landing page */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

body.landing-page {
  background: var(--page-tint);
}

body.landing-page .main-wrapper {
  background:
    radial-gradient(
      120% 60% at 50% -10%,
      rgba(30, 77, 140, 0.14),
      transparent 55%
    ),
    var(--surface);
}

.landing-hero-band {
  margin: 0 0 16px;
  padding: 22px 18px 20px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--ink);
  border: 1px solid var(--brand-soft-2);
  border-top: 3px solid var(--brand);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 18px rgba(30, 77, 140, 0.08);
}

.landing-hero {
  text-align: center;
  padding: 8px 4px 4px;
}

.landing-hero h1 {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.landing-hero h1 .highlight {
  color: var(--brand);
  background: none;
  padding: 0;
}

.landing-hero .subhead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 34ch;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.landing-hero-band .landing-hero {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
}

.landing-hero-band .landing-hero h1 {
  color: var(--ink);
}

.landing-hero-band .landing-hero h1 .highlight {
  color: var(--brand);
  background: none;
  padding: 0;
}

.landing-hero-band .landing-hero .subhead {
  color: var(--muted);
}

.play-now-section {
  margin: 12px 0 16px;
  padding: 0;
  background: transparent;
}

.landing-play-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none;
  border-radius: 999px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: pointer;
  transition: 0.25s;
  text-decoration: none;
  margin: 0;
  letter-spacing: 0.02em;
  box-shadow: 0 0 14px 2px rgba(30, 77, 140, 0.35);
  -webkit-tap-highlight-color: transparent;
  animation: playNowPulse 1.8s ease-in-out infinite;
}

@keyframes playNowPulse {
  0%,
  100% {
    box-shadow: 0 0 14px 2px rgba(30, 77, 140, 0.35);
  }
  50% {
    box-shadow: 0 0 24px 6px rgba(30, 77, 140, 0.55);
  }
}

.landing-play-btn:hover {
  animation: none;
  opacity: 0.95;
  box-shadow: 0 0 20px 4px rgba(30, 77, 140, 0.45);
}

.landing-play-btn:active {
  animation: none;
  transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  .landing-play-btn {
    animation: none;
  }
}

.finance-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 14px;
}

.finance-section,
.card.finance-section {
  padding: 0;
  overflow: hidden;
  margin-bottom: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
}

.finance-section-title {
  margin: 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none;
  border-bottom: none;
  border-left: none;
  border-top: none;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  counter-reset: tip;
}

.tip-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 16px 16px 16px 14px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 400;
  counter-increment: tip;
}

.tip-item:nth-child(odd) {
  background: var(--surface);
}

.tip-item:nth-child(even) {
  background: var(--page-tint);
}

.tip-item:last-child {
  border-bottom: none;
}

.tip-item::before {
  content: counter(tip, decimal-leading-zero);
  grid-row: 1 / span 2;
  align-self: start;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1.5px solid var(--brand-soft-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 1px;
}

.tip-item strong {
  display: block;
  grid-column: 2;
  width: auto;
  color: var(--ink);
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
}

.tip-item span {
  display: block;
  grid-column: 2;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.tip-item span a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.tip-item span a:hover {
  text-decoration: underline;
}

@media (max-width: 360px) {
  .landing-hero-band {
    padding: 16px 12px 14px;
    border-radius: 18px;
  }

  .finance-list {
    gap: 14px;
  }

  .finance-section-title {
    padding: 12px 14px;
    font-size: 13px;
  }

  .tip-item {
    grid-template-columns: 30px 1fr;
    column-gap: 10px;
    padding: 14px 12px 14px 12px;
    font-size: 12.5px;
  }

  .tip-item::before {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .tip-item strong {
    font-size: 13px;
  }
}

@media (min-width: 480px) {
  .landing-hero-band {
    padding: 24px 20px 20px;
  }

  .finance-list {
    gap: 20px;
  }

  .finance-section-title {
    padding: 16px 20px;
    font-size: 15px;
  }

  .tip-item {
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
    padding: 18px 18px 18px 16px;
    font-size: 14px;
  }

  .tip-item::before {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .tip-item strong {
    font-size: 15px;
  }
}

/* Age verification */
.age-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 28px 12px;
}

.age-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.age-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 300px;
}

.age-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.age-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
  color: #ffffff;
  text-decoration: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.age-btn.is-waiting {
  pointer-events: none;
  opacity: 0.7;
}

.age-btn-yes {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.age-btn-yes:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-1px);
}

.age-btn-no {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.age-btn-no:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
}

.age-btn:active {
  transform: scale(0.96);
}

.age-reason {
  padding: 0;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
  background: var(--surface);
}

.age-reason .finance-section-title {
  border-radius: 0;
}

.age-reason-text {
  margin: 0;
  padding: 14px 16px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.age-reason-text:last-child {
  padding-bottom: 16px;
}

@media (min-width: 480px) {
  .age-reason-text {
    padding: 14px 16px 0;
    font-size: 14px;
  }

  .age-reason-text:last-child {
    padding-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .landing-hero h1 {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .game-title {
    font-size: 14px;
  }
  .game-entry {
    font-size: 12px;
  }
}

@media (max-width: 424px) {
  .main-content {
    padding: 12px;
  }

  .sticky-header {
    width: 100%;
  }

  #games-section {
    scroll-margin-top: 70px;
  }
}

@media (min-width: 425px) {
  body {
    display: flex;
    justify-content: center;
    background: var(--page-tint);
  }

  .main-wrapper {
    max-width: 425px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: var(--surface);
  }

  .main-content {
    max-width: 425px;
    margin: 0 auto;
    padding: 12px;
  }

  footer {
    max-width: 425px;
    margin: 0 auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .sticky-header {
    max-width: 425px;
    margin: 0 auto;
    left: 0;
    right: 0;
  }

  .main-content {
    padding: 12px 12px;
  }
}

/* ========== Info / legal pages (match index cards) ========== */
.highlight {
  color: var(--brand);
}

.page-body {
  padding: 12px 14px 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.page-body p {
  margin: 0 0 10px;
}

.page-body p:last-child {
  margin-bottom: 0;
}

.page-body a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.page-body a:hover {
  text-decoration: underline;
}

.page-body strong {
  color: var(--ink);
  font-weight: 700;
}

.page-body .policy-list,
.page-body .rights-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.page-body .policy-list li {
  padding: 6px 0 6px 16px;
  position: relative;
  border-bottom: 1px solid #eef1f7;
}

.page-body .policy-list li:last-child {
  border-bottom: none;
}

.page-body .policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.page-body .rights-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eef1f7;
}

.page-body .rights-list li:last-child {
  border-bottom: none;
}

.page-body .rights-list li strong {
  display: block;
  margin-bottom: 4px;
  background: linear-gradient(180deg, transparent 62%, var(--brand-mark) 62%);
  width: fit-content;
  font-weight: 800;
}

.page-body .acknowledgement,
.page-body .notice-box {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.page-body .acknowledgement {
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.15);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form button {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.95;
}

.email-link {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  word-break: break-all;
  margin: 4px 0 8px;
}

.email-link:hover {
  text-decoration: underline;
}

.form-toast {
  display: none;
  margin: 0 14px 10px;
  padding: 10px 12px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: var(--ink);
}

.form-toast.show {
  display: block;
}

.char-counter {
  text-align: right;
  font-size: 12px;
  color: #8a93a8;
  margin-top: -4px;
}

.char-counter.limit {
  color: #e53935;
  font-weight: 600;
}

.faq-list.finance-list {
  margin-bottom: 14px;
}

.faq-item.card.finance-section {
  padding: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.faq-question {
  width: 100%;
  border: none;
  margin: 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-bottom: none;
  border-top: none;
  border-left: none;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-family: inherit;
}

.faq-question::after {
  content: "▾";
  color: #ffffff;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 12px 14px 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.faq-answer a:hover {
  text-decoration: underline;
}

@media (max-width: 360px) {
  .page-body,
  .contact-form,
  .faq-answer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .faq-question {
    padding: 12px 12px 12px 14px;
    font-size: 15px;
  }
}

@media (min-width: 480px) {
  .page-body,
  .contact-form,
  .faq-answer {
    padding: 14px 16px 16px;
  }

  .faq-question {
    padding: 16px 16px 16px 18px;
    font-size: 16px;
  }
}
