:root {
  --bg: #f4f8fb;
  --paper: #ffffff;
  --ink: #12232f;
  --muted: #4b6272;
  --line: #d7e2ea;
  --brand: #0c7f7a;
  --brand-strong: #0f5f79;
  --brand-soft: #e4f5f4;
  --accent: #f2994a;
  --shadow: 0 14px 34px rgba(18, 35, 47, 0.09);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 100% -12%, #d6ebff 0%, transparent 64%),
    radial-gradient(960px 560px at -8% 108%, #dcf5ef 0%, transparent 66%),
    var(--bg);
  line-height: 1.72;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(215, 226, 234, 0.95);
}

.topbar-inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-dot {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: url("../tapco-token.png") center center / contain no-repeat;
  box-shadow: 0 4px 12px rgba(184, 127, 5, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.brand-token {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-inline-start: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}

.nav-links a {
  padding: 8px 9px;
  border-radius: 10px;
  color: #274658;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #eaf3f8;
  color: #173242;
}

.lang-switch {
  display: inline-flex;
  background: #eef4f8;
  border: 1px solid #d8e4ec;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.lang-switch button {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #37586b;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: #fff;
  color: #102530;
  box-shadow: 0 1px 4px rgba(16, 37, 48, 0.12);
}

.page {
  width: min(var(--content), calc(100% - 32px));
  margin: 28px auto 46px;
  flex: 1;
}

.hero,
.card,
.notice,
.ad-slot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(20px, 4vw, 34px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2.45rem);
  line-height: 1.2;
}

.hero p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 76ch;
}

.grid-two {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 22px;
  align-items: start;
}

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

.hero-text-only .hero-copy {
  max-width: 980px;
  padding-top: 0;
}

.hero-copy {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.hero-visual {
  background: linear-gradient(160deg, #0f5f79 0%, #0c7f7a 48%, #7ad6c6 100%);
  border-radius: 24px;
  padding: 18px;
  max-height: 520px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 48px rgba(12, 95, 121, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-visual::before {
  width: 240px;
  height: 240px;
  top: -80px;
  right: -60px;
}

.hero-visual::after {
  width: 180px;
  height: 180px;
  bottom: -70px;
  left: -30px;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-visual .game-screenshot {
  max-width: 240px;
  max-height: 480px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  object-fit: contain;
}

.stats-grid,
.feature-grid,
.article-grid,
.info-grid {
  display: grid;
  gap: 14px;
}

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

.feature-grid,
.article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.stat-card,
.feature-card,
.article-card,
.info-card {
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(18, 35, 47, 0.06);
}

.stat-card strong,
.feature-card h3,
.article-card h3,
.info-card h3 {
  display: block;
  color: var(--ink);
}

.stat-card strong {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #19556d;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

.article-card p,
.feature-card p,
.info-card p,
.stat-card p {
  margin: 0;
  color: var(--muted);
}

.article-card a,
.feature-card a,
.info-card a {
  color: var(--brand-strong);
  font-weight: 700;
}

.content-ad {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed #b8cddb;
  background: linear-gradient(180deg, #fbfeff, #f0f8fd);
  color: #4b6272;
  text-align: center;
}

.content-ad strong {
  display: block;
  margin-bottom: 8px;
  color: #183549;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}

.article-body {
  display: grid;
  gap: 18px;
}

.article-body section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.article-body h2 {
  margin: 0 0 10px;
}

.article-body p {
  margin: 0 0 12px;
  color: var(--muted);
}

.article-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #4a6878;
  font-size: 0.9rem;
}

.faq-group {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 16px;
  font-weight: 700;
  color: #173242;
}

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

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
  background: #f8fcff;
}

.faq-answer {
  padding: 14px 16px 16px;
  color: var(--muted);
}

.inline-illustration {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: block;
}

.cookie-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 80;
}

.cookie-banner-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  background: rgba(18, 35, 47, 0.96);
  color: #f3f8fb;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(18, 35, 47, 0.26);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner-copy {
  display: grid;
  gap: 6px;
  max-width: 760px;
}

.cookie-banner-title {
  font-size: 1rem;
}

.cookie-banner-text {
  margin: 0;
  color: rgba(243, 248, 251, 0.82);
}

.cookie-banner-link {
  color: #9de7dc;
  font-weight: 700;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card {
  padding: 18px;
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf8f5;
  border: 1px solid #cae8de;
  color: #17563f;
  font-weight: 700;
  font-size: 0.82rem;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: 2px solid #b9dde8;
  border-color: #98c9da;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 11px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.btn-secondary {
  color: #1f3b4b;
  background: #eef5f9;
  border: 1px solid #d6e3eb;
}

.btn:hover {
  filter: brightness(1.03);
}

.notice {
  padding: 12px 14px;
  color: #234458;
  background: #f5fbff;
  border-color: #d8eaf5;
}

.ad-slot {
  margin-top: 12px;
  min-height: 150px;
  padding: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #4d6676;
  background:
    repeating-linear-gradient(
      -45deg,
      #f8fcff,
      #f8fcff 14px,
      #f1f8fd 14px,
      #f1f8fd 28px
    );
}

.page-list {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--muted);
}

.page-list li {
  margin: 7px 0;
}

.footer {
  border-top: 1px solid #d7e3eb;
  background: #f8fcff;
}

.footer-inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  display: grid;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #2d4e62;
  padding: 7px 9px;
  border-radius: 8px;
}

.footer-links a:hover {
  background: #eaf3f9;
}

.footer small {
  color: #5d7687;
}

.lang-block {
  display: none;
}

/* Show blocks that match the current language set on <html lang="..."> */
html[lang="en"] .lang-block[data-lang="en"],
html[lang="ar"] .lang-block[data-lang="ar"],
html[lang="tr"] .lang-block[data-lang="tr"] {
  display: block;
}

.lang-rtl {
  direction: rtl;
  text-align: right;
}

.lang-ltr {
  direction: ltr;
  text-align: left;
}

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

  .hero-split,
  .article-layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .feature-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    position: absolute;
    inset-inline: 12px;
    top: 70px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-wrap[data-open="true"] {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .page,
  .footer-inner {
    width: calc(100% - 20px);
  }

  .row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }
}

/* ─── Game Screenshot Gallery ────────────────────────────────────── */
.game-screens-gallery {
  display: grid;
  gap: 28px;
}

.game-screen-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.game-screen-card.reverse {
  grid-template-columns: 1fr 320px;
}

.game-screen-card.reverse .game-screen-img-wrap,
.game-screen-card.reverse .game-screen-imgs-double {
  order: 2;
}

.game-screen-card.reverse .game-screen-text {
  order: 1;
}

.game-screen-img-wrap {
  background: #0d1525;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-screen-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.game-screen-imgs-double {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.game-screen-text h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--ink);
}

.game-screen-text p {
  color: var(--muted);
  margin: 0 0 10px;
}

.game-screen-text .page-list {
  color: var(--muted);
  margin: 0 0 10px;
}

.screen-badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.more-hint {
  font-size: 0.85rem;
  color: var(--brand);
  font-style: italic;
  margin-top: 6px !important;
}

@media (max-width: 720px) {
  .game-screen-card,
  .game-screen-card.reverse {
    grid-template-columns: 1fr;
  }
  .game-screen-card.reverse .game-screen-img-wrap,
  .game-screen-card.reverse .game-screen-imgs-double,
  .game-screen-card.reverse .game-screen-text {
    order: unset;
  }
  .game-screen-imgs-double {
    grid-template-columns: 1fr;
  }
}
