/* GlobleGame.org site shell. Colours mirror the game's theme.css so the page and the game read as one surface. */

:root {
  --s-bg: #f3f7fc;
  --s-surface: #ffffff;
  --s-surface-2: #eef3fa;
  --s-surface-3: #e2eaf5;
  --s-border: #dbe4f0;
  --s-text: #0f1b2d;
  --s-muted: #5d6d84;
  --s-primary: #1f6fe0;
  --s-primary-2: #1557b8;
  --s-hot: #ff6a1a;
  --s-win: #00c853;
  --s-shadow: 0 1px 2px rgba(15, 40, 80, 0.06), 0 10px 30px -14px rgba(15, 40, 80, 0.22);
  --s-shadow-lg: 0 2px 6px rgba(15, 40, 80, 0.06), 0 22px 44px -18px rgba(15, 40, 80, 0.32);
  --s-radius: 18px;
  --s-hdr: 56px;
  --s-font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

html.dark {
  --s-bg: #0b1220;
  --s-surface: #131c2e;
  --s-surface-2: #182339;
  --s-surface-3: #22304a;
  --s-border: #24324c;
  --s-text: #e8eef8;
  --s-muted: #93a3bb;
  --s-primary: #4c8dff;
  --s-primary-2: #77a8ff;
  --s-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  --s-shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 22px 44px -18px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

html,
body {
  background: var(--s-bg);
  color: var(--s-text);
  font-family: var(--s-font);
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* The game stylesheet loads later and sets body { font-family: Montserrat }, which the site no longer ships. */
body.site {
  font-family: var(--s-font);
}

a {
  color: var(--s-primary);
}

.ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.ic-sm {
  width: 16px;
  height: 16px;
}

[hidden] {
  display: none !important;
}

/* ---------- header ---------- */

.site-hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--s-hdr);
  background: color-mix(in srgb, var(--s-bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--s-border);
}

.site-hdr.is-home {
  position: relative;
}

.site-hdr-in {
  height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--s-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.site-logo-globe {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.75) 0 8%, transparent 9%),
    radial-gradient(circle at 62% 60%, #ff8a3d 0 22%, transparent 23%),
    radial-gradient(circle at 35% 30%, #8fd0ff 0%, #2f86e8 45%, #0f3f8f 100%);
  box-shadow: inset -3px -3px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(47, 134, 232, 0.15);
}

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

.site-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--s-muted);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--s-surface-2);
  color: var(--s-text);
}

.site-hdr-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.site-btn .ic {
  width: 16px;
  height: 16px;
}

.site-btn-primary,
.site-btn-play {
  background: linear-gradient(135deg, #2f86e8, var(--s-primary-2));
  color: #fff !important;
  box-shadow: 0 8px 20px -10px rgba(31, 111, 224, 0.8);
}

.site-btn-play {
  padding: 8px 14px;
  font-size: 14px;
}

.site-btn-primary:hover,
.site-btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(31, 111, 224, 0.9);
}

/* <details> dropdowns */
.site-dd {
  position: relative;
}

.site-dd > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--s-border);
  background: var(--s-surface);
  color: var(--s-text);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.site-dd > summary::-webkit-details-marker {
  display: none;
}

.site-dd > summary:hover,
.site-dd[open] > summary {
  border-color: var(--s-primary);
}

.site-dd > summary img {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.site-dd[open] > summary .ic-sm {
  transform: rotate(180deg);
}

.site-dd-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 220px;
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--s-border);
  background: var(--s-surface);
  box-shadow: var(--s-shadow-lg);
  animation: site-pop 0.14s ease-out;
}

@keyframes site-pop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.site-dd-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--s-text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.site-dd-menu a:hover {
  background: var(--s-surface-2);
}

.site-dd-menu a.is-active {
  color: var(--s-primary);
  background: color-mix(in srgb, var(--s-primary) 10%, transparent);
}

.site-lang-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 380px;
}

.site-lang-menu img {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.site-burger {
  display: none;
}

.site-burger > summary {
  width: 38px;
  justify-content: center;
  padding: 0;
}

.site-burger-menu a .ic {
  color: var(--s-primary);
}

/* ---------- game page ---------- */

body.site-home .gl-app {
  height: calc(100svh - var(--s-hdr));
}

/* The site header already carries the brand. */
body.site .gl-brand {
  visibility: hidden;
}

.site-main {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
}

.site-main.site-wide {
  max-width: 1120px;
}

.site-card {
  background: var(--s-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  padding: 24px 26px;
}

.site-h1 {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.site-lead {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--s-muted);
}

.site-h2 {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.site-h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.site-muted {
  margin: 0 0 16px;
  color: var(--s-muted);
  font-size: 16px;
  line-height: 1.6;
}

.site-card p {
  line-height: 1.65;
}

.site-card > p:last-child {
  margin-bottom: 0;
}

/* intro */
.site-intro {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(255, 106, 26, 0.12), transparent 60%),
    radial-gradient(500px 220px at 0% 100%, rgba(31, 111, 224, 0.12), transparent 60%),
    var(--s-surface);
}

.site-chips {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--s-surface-2);
  border: 1px solid var(--s-border);
  font-size: 14px;
  font-weight: 700;
}

.site-chips .ic {
  width: 16px;
  height: 16px;
  color: var(--s-primary);
}

/* heat legend */
.site-heat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-heat-bar {
  flex: 1;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff 0%, rgb(255, 222, 189) 30%, rgb(255, 181, 106) 54%, rgb(255, 128, 0) 92%, rgb(190, 10, 10) 99%, rgb(170, 0, 0) 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 40, 80, 0.12);
}

.site-heat-win {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--s-win);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 200, 83, 0.9);
}

.site-heat-win .ic {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.site-heat-scale {
  position: relative;
  height: 18px;
  margin: 6px 40px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--s-muted);
}

.site-heat-scale span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.site-heat-scale span:nth-child(1) { left: 0; transform: none; }
.site-heat-scale span:nth-child(2) { left: 54%; }
.site-heat-scale span:nth-child(3) { left: 92%; }
.site-heat-scale span:nth-child(4) { left: 100%; transform: translateX(-100%); }

.site-heat-labels {
  display: flex;
  margin-top: 8px;
  font-weight: 800;
  font-size: 14px;
}

.site-heat-labels span:nth-child(2) {
  margin-left: auto;
  margin-right: 14px;
  color: #c2410c;
}

html.dark .site-heat-labels span:nth-child(2) {
  color: #ff8a3d;
}

.site-heat-labels .is-win {
  color: var(--s-win);
}

.site-heat-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(15, 40, 80, 0.12);
}

.site-heat-chip.is-win {
  background: var(--s-win);
  color: #fff;
}

/* steps */
.site-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.site-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.site-steps p {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.site-step-num {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--s-hot), #ffb35c);
  box-shadow: 0 6px 14px -6px rgba(255, 106, 26, 0.8);
}

/* explore */
.site-explore > .site-h3 {
  margin: 6px 4px 12px;
}

.site-explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.site-explore-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--s-radius);
  border: 1px solid var(--s-border);
  background: var(--s-surface);
  box-shadow: var(--s-shadow);
  color: var(--s-text);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.site-explore-item > span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}

.site-explore-item b {
  font-size: 17px;
}

.site-explore-item small {
  color: var(--s-muted);
  font-size: 14px;
  line-height: 1.45;
}

.site-explore-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--s-shadow-lg);
  border-color: color-mix(in srgb, var(--c) 55%, var(--s-border));
}

/* app */
.site-app {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(31, 111, 224, 0.1), rgba(255, 106, 26, 0.1)), var(--s-surface);
}

.site-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex: 0 0 auto;
  box-shadow: var(--s-shadow);
}

.site-app-text {
  flex: 1 1 auto;
  min-width: 0;
}

.site-app-text .site-h3 {
  margin-bottom: 4px;
}

.site-app-text p {
  margin: 0;
  color: var(--s-muted);
  line-height: 1.5;
}

.site-app-badge {
  display: inline-block;
  margin-top: 12px;
  line-height: 0;
}

.site-app-badge img {
  width: 160px;
  height: auto;
}

.site-app-qr {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
}

.site-app-qr img {
  display: block;
  width: 132px;
  height: 132px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--s-border);
  box-shadow: var(--s-shadow);
}

.site-app-qr figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--s-muted);
}

/* other games */
.site-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 12px;
}

.site-game {
  --c: var(--s-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(160px 90px at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%),
    var(--s-surface-2);
  border: 1px solid var(--s-border);
  color: var(--s-text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.site-game::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--c);
  opacity: 0;
  transition: opacity 0.18s;
}

.site-game:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 50%, var(--s-border));
  box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--c) 80%, transparent);
}

.site-game:hover::after {
  opacity: 1;
}

.site-game-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.site-game-top img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--c) 90%, transparent), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.site-game-cat {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c) 80%, var(--s-text));
  background: color-mix(in srgb, var(--c) 14%, transparent);
}

.site-game b {
  font-size: 16px;
  line-height: 1.2;
}

.site-game small {
  color: var(--s-muted);
  font-size: 13px;
  line-height: 1.35;
  min-height: 2.7em;
}

.site-game-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: color-mix(in srgb, var(--c) 85%, var(--s-text));
}

.site-game-cta .ic {
  transition: transform 0.18s;
}

.site-game:hover .site-game-cta .ic {
  transform: translateX(3px);
}

/* share */
.site-share-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.site-share-head .site-h3 {
  margin: 0;
}

.site-share-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--s-primary);
  background: color-mix(in srgb, var(--s-primary) 12%, transparent);
}

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

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.share-native {
  background: linear-gradient(135deg, #2f86e8, var(--s-primary-2));
  box-shadow: 0 8px 20px -10px rgba(31, 111, 224, 0.8);
}

.share-x { background: #0f1419; }
html.dark .share-x { background: #2a3447; }
.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #26a5e4; }
.share-vk { background: #0077ff; }
.share-reddit { background: #ff4500; }

.share-copy {
  background: var(--s-surface-2);
  color: var(--s-text);
  border: 1px solid var(--s-border);
}

.share-copy.is-done {
  background: var(--s-win);
  border-color: var(--s-win);
  color: #fff;
}

/* ---------- GeoGuesser promo ---------- */

.site-promo-wrap {
  max-width: 860px;
  margin: 12px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}

.site-promo {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--s-radius);
  background: linear-gradient(120deg, #0f8f5a 0%, #12a05c 35%, #1a9be6 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 34px -16px rgba(18, 120, 90, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(18, 120, 90, 0.85);
}

.site-promo-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.site-promo-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-promo-text b {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.site-promo-text span {
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.95;
}

.site-promo-cta {
  flex: 0 0 auto;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fff;
  color: #0f7f50;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}

/* ---------- ads ---------- */

.site-ad {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.site-ad .banner {
  margin-top: 12px;
}

.site-ad:empty,
.site-ez:empty {
  display: none;
}

.site-ez {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--s-border);
  background: var(--s-surface);
  color: var(--s-muted);
  font-size: 14px;
  padding-bottom: env(safe-area-inset-bottom);
}

.site-footer-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 16px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 28px;
}

.site-footer-brand p {
  margin: 12px 0 16px;
  line-height: 1.6;
  max-width: 320px;
}

.site-footer-badge img {
  width: 140px;
  height: auto;
}

.site-footer h4 {
  margin: 4px 0 12px;
  color: var(--s-text);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a {
  color: var(--s-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--s-primary);
}

.site-footer-langs > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-footer-langs a {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--s-border);
  font-size: 13px;
}

.site-footer-langs a.is-active {
  color: var(--s-primary);
  border-color: var(--s-primary);
}

.site-footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
  border-top: 1px solid var(--s-border);
  text-align: center;
  font-size: 13px;
}

/* ---------- content pages ---------- */

.site-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 4px -4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--s-muted);
}

.site-crumbs a {
  color: var(--s-muted);
  text-decoration: none;
}

.site-crumbs a:hover {
  color: var(--s-primary);
}

.site-hero {
  padding: 10px 4px 4px;
}

.site-hero .site-lead {
  max-width: 720px;
}

.site-hero .site-btn {
  margin-top: 18px;
}

.site-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}

.site-hero-icon .ic {
  width: 26px;
  height: 26px;
}

.site-article .site-card p,
.site-article .site-card li {
  font-size: 16.5px;
}

.site-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.site-list li + li {
  margin-top: 6px;
}

.site-table-wrap {
  overflow-x: auto;
  margin: 8px 0 14px;
}

.site-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.site-table th,
.site-table td {
  padding: 10px 10px;
  text-align: left;
  border-bottom: 1px solid var(--s-border);
  vertical-align: middle;
}

.site-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s-muted);
}

.site-table tr.is-win td {
  background: color-mix(in srgb, var(--s-win) 8%, transparent);
}

.site-tips {
  display: grid;
  gap: 14px;
}

.site-tip {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.site-tip .site-h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.site-tip p {
  margin: 0;
}

.site-tip-num {
  flex: 0 0 auto;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffb35c, var(--s-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 44px;
}

.site-faq {
  padding: 8px 26px;
}

.site-faq details {
  border-bottom: 1px solid var(--s-border);
}

.site-faq details:last-child {
  border-bottom: 0;
}

.site-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  cursor: pointer;
}

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

.site-faq summary h2 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.site-faq-chev {
  color: var(--s-muted);
  transition: transform 0.2s;
}

.site-faq details[open] .site-faq-chev {
  transform: rotate(180deg);
  color: var(--s-primary);
}

.site-faq details p {
  margin: -4px 0 18px;
  color: var(--s-muted);
  font-size: 16px;
  line-height: 1.65;
}

.site-cta {
  text-align: center;
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(31, 111, 224, 0.12), transparent 70%),
    var(--s-surface);
}

.site-cta p {
  color: var(--s-muted);
}

/* countries index */
.site-filter {
  position: sticky;
  top: calc(var(--s-hdr) + 8px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--s-border);
  background: var(--s-surface-2);
  color: var(--s-muted);
}

.site-search:focus-within {
  border-color: var(--s-primary);
}

.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--s-text);
  font: inherit;
  font-size: 16px;
}

.site-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-filter-chips button {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--s-border);
  background: var(--s-surface);
  color: var(--s-text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.site-filter-chips button span {
  color: var(--s-muted);
  font-weight: 600;
}

.site-filter-chips button.is-active {
  background: var(--s-primary);
  border-color: var(--s-primary);
  color: #fff;
}

.site-filter-chips button.is-active span {
  color: rgba(255, 255, 255, 0.8);
}

.site-cont .site-h2 {
  margin: 10px 4px 12px;
}

.site-count {
  font-size: 15px;
  color: var(--s-muted);
  font-weight: 700;
}

.site-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.site-country {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--s-border);
  background: var(--s-surface);
  color: var(--s-text);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.site-country:hover {
  transform: translateY(-2px);
  border-color: var(--s-primary);
  box-shadow: var(--s-shadow);
}

.site-country img {
  width: 36px;
  height: 27px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}

.site-country span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.site-country b {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-country small {
  color: var(--s-muted);
  font-size: 13px;
}

.site-empty {
  text-align: center;
  color: var(--s-muted);
  padding: 30px 0;
}

/* country page */
.site-c-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  background:
    radial-gradient(500px 260px at 100% 50%, rgba(255, 106, 26, 0.12), transparent 70%),
    var(--s-surface);
}

.site-c-id {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.site-c-flag {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--s-shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.06);
  flex: 0 0 auto;
}

.site-c-hero .site-h1 {
  margin-bottom: 2px;
}

.site-c-formal {
  margin: 0;
  color: var(--s-muted);
  font-weight: 700;
}

.site-c-hero .site-chips {
  margin-top: 12px;
}

.site-c-shape {
  flex: 0 0 auto;
  width: 260px;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(255, 106, 26, 0.3));
}

.site-c-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.site-c-map svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: color-mix(in srgb, var(--s-primary) 8%, var(--s-surface-2));
}

html.dark .site-c-map image {
  opacity: 0.45;
}

.site-c-hl {
  fill: var(--s-hot);
  stroke: #fff;
  stroke-width: 0.6;
  stroke-linejoin: round;
}

.site-c-dot {
  fill: var(--s-hot);
  stroke: #fff;
  stroke-width: 1.2;
}

.site-c-ring {
  fill: none;
  stroke: var(--s-hot);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: site-ring 2s ease-out infinite;
}

@keyframes site-ring {
  from {
    transform: scale(0.4);
    opacity: 1;
  }
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

.site-c-facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.site-c-facts dl > div {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--s-surface-2);
}

.site-c-facts dt {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--s-muted);
}

.site-c-facts dd {
  margin: 3px 0 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

.site-c-facts dd small {
  color: var(--s-muted);
  font-weight: 600;
}

.site-near {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-near li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--s-surface-2);
}

.site-near a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--s-text);
  font-weight: 700;
  text-decoration: none;
  min-width: 0;
}

.site-near a:hover {
  color: var(--s-primary);
}

.site-near img,
.site-pill img {
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.site-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--s-border);
  background: var(--s-surface-2);
  color: var(--s-text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.site-pill:hover {
  border-color: var(--s-primary);
  color: var(--s-primary);
}

.site-names {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 40vw), 1fr));
  gap: 8px;
}

.site-names div {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--s-surface-2);
}

.site-names span {
  font-size: 12px;
  font-weight: 700;
  color: var(--s-muted);
}

.site-names b {
  font-size: 15px;
}

.site-prevnext {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}

.site-prevnext a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--s-border);
  background: var(--s-surface);
  color: var(--s-text);
  text-decoration: none;
}

.site-prevnext a:last-child {
  text-align: right;
}

.site-prevnext a:hover {
  border-color: var(--s-primary);
}

.site-prevnext small {
  color: var(--s-muted);
  font-weight: 700;
}

.site-prevnext-all {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--s-primary) !important;
}

/* ---------- secondary pages (terms, privacy, about, dmca, 404) ---------- */

.site-doc .bg-half {
  padding: 28px 0 40px;
}

.site-doc .container {
  max-width: 820px;
}

.site-doc .row,
.site-doc [class*="col-"] {
  width: 100%;
  max-width: 100%;
}

.site-doc .page-next-level .title,
.site-doc h1.title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--s-text);
}

.site-doc .page-next-level a,
.site-doc .text-dark {
  color: var(--s-muted) !important;
}

.site-doc h2,
.site-doc h3,
.site-doc h4,
.site-doc h5 {
  color: var(--s-text);
  font-weight: 700;
  margin-top: 1.4em;
}

.site-doc p,
.site-doc li,
.site-doc .weaver_p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--s-text);
}

.site-doc .text-muted {
  color: var(--s-muted) !important;
}

.site-doc .card,
.site-doc .section .col-lg-9,
.site-doc .section .col-lg-8 {
  background: var(--s-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  padding: 24px 26px;
}

.site-doc .btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--s-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 0;
}

/* ---------- contact form ---------- */

html.dark .fb-card {
  background: var(--s-surface) !important;
  border-color: var(--s-border) !important;
}

html.dark .fb-wrap h1,
html.dark [data-feedback-form] label {
  color: var(--s-text) !important;
}

html.dark [data-feedback-form] input,
html.dark [data-feedback-form] textarea {
  background: var(--s-surface-2) !important;
  color: var(--s-text) !important;
  border-color: var(--s-border) !important;
}

/* ---------- smartbanner ---------- */

.smartbanner {
  font-family: var(--s-font) !important;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .site-burger {
    display: block;
  }

  .site-footer-in {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-brand,
  .site-footer-langs {
    grid-column: 1 / -1;
  }

  .site-explore-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-c-grid {
    grid-template-columns: 1fr;
  }

  .site-c-hero {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .site-c-shape {
    width: 100%;
    max-width: 260px;
    max-height: 170px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  :root {
    --s-hdr: 52px;
  }

  .site-hdr-in {
    padding: 0 10px;
    gap: 10px;
  }

  .site-logo {
    font-size: 19px;
  }

  .site-btn-play span {
    display: none;
  }

  .site-btn-play {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .site-lang-menu {
    width: min(92vw, 340px);
    right: -48px;
  }

  .site-promo-wrap {
    padding: 0 10px;
  }

  .site-promo {
    flex-wrap: wrap;
    gap: 12px 14px;
    padding: 16px;
  }

  .site-promo-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .site-promo-text {
    flex-basis: calc(100% - 70px);
  }

  .site-promo-text b {
    font-size: 18px;
  }

  .site-promo-text span {
    font-size: 14px;
  }

  .site-promo-cta {
    width: 100%;
    text-align: center;
  }

  .site-main {
    padding: 6px 10px 28px;
    gap: 14px;
  }

  .site-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .site-h1 {
    font-size: 28px;
  }

  .site-h2,
  .site-h3 {
    font-size: 20px;
  }

  .site-lead {
    font-size: 16px;
  }

  .site-chips li {
    font-size: 13px;
    padding: 6px 10px;
  }

  .site-app {
    flex-wrap: wrap;
  }

  .site-app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .site-app-text {
    flex-basis: calc(100% - 80px);
  }

  .site-app-qr {
    display: none;
  }

  .site-explore-grid {
    gap: 10px;
  }

  .site-explore-item {
    padding: 14px;
  }

  .site-explore-item small {
    font-size: 13px;
  }

  .site-games {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .site-game {
    padding: 12px;
  }

  .site-game-top img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .site-game-cat {
    font-size: 10px;
    padding: 2px 6px;
  }

  .site-game b {
    font-size: 15px;
  }

  .site-game small {
    font-size: 12px;
  }

  .share-btn {
    height: 44px;
    min-width: 44px;
    padding: 0 12px;
  }

  .share-bar .share-btn span {
    font-size: 14px;
  }

  .site-heat-scale span:nth-child(2) {
    display: none;
  }

  .site-faq {
    padding: 4px 16px;
  }

  .site-faq summary h2 {
    font-size: 16px;
  }

  .site-tip {
    gap: 12px;
  }

  .site-tip-num {
    font-size: 24px;
    min-width: 32px;
  }

  .site-c-id {
    gap: 14px;
  }

  .site-c-flag {
    width: 84px;
    height: 63px;
  }

  .site-c-facts dl {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .site-country-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .site-country {
    padding: 8px 10px;
    gap: 10px;
  }

  .site-country img {
    width: 30px;
    height: 22px;
  }

  .site-country b {
    font-size: 14px;
  }

  .site-prevnext {
    grid-template-columns: 1fr 1fr;
  }

  .site-prevnext-all {
    display: none !important;
  }

  .site-footer-in {
    padding: 28px 16px 18px;
    gap: 22px;
  }
}
