@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --ink: #14213d;
  --muted: #64748b;
  --line: #e8eef7;
  --white: #ffffff;
  --surface: #f7faff;
  --radius: 28px;
  --shadow: 0 12px 35px rgba(24, 67, 130, .07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  min-width: 320px;
}

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

button, input, select {
  font: inherit;
}

button, a, select {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  width: min(1180px, calc(100% - 36px));
  margin: 20px auto 0;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.6px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}

.language-select {
  max-width: 145px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--blue-light);
  border: 1px solid #dbeafe;
  border-radius: 13px;
  outline: none;
  cursor: pointer;
}

.hero {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 30px;
  padding: 65px 30px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(147,197,253,.35), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(96,165,250,.18), transparent 30%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero-tag,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  max-width: 780px;
  margin: 22px auto 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.12;
}

.hero h1 span {
  color: var(--blue);
}

.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.primary-button,
.secondary-button,
.game-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
  cursor: pointer;
}

.primary-button,
.game-button {
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.primary-button:hover,
.game-button:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(37,99,235,.2);
}

.secondary-button {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.secondary-button:hover {
  border-color: #bfdbfe;
  background: var(--blue-light);
}

.content-section {
  width: min(1180px, calc(100% - 36px));
  margin: 48px auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -1px;
}

.section-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.search-wrap {
  width: min(100%, 390px);
  position: relative;
}

.search-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 18px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  box-shadow: 0 5px 18px rgba(24,67,130,.04);
}

.search-wrap input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,.1);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

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

.game-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(24,67,130,.045);
  transition: transform .22s ease, box-shadow .22s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 17px 38px rgba(24,67,130,.11);
}

.game-art {
  min-height: 190px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #dbeafe, #eff6ff 55%, #bfdbfe);
  border-radius: 23px;
}

.game-art img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.game-art-placeholder {
  color: #1d4ed8;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -3px;
}

.game-category {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 7px 11px;
  color: #1d4ed8;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(219,234,254,.9);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.game-info {
  padding: 19px 4px 3px;
}

.game-info h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.35;
}

.game-info p {
  min-height: 44px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.game-meta span {
  padding: 6px 10px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
}

.game-button {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
}

.empty-state {
  display: none;
  padding: 35px 20px;
  color: var(--muted);
  text-align: center;
  background: white;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
}

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

.info-card {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.info-card .info-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 14px;
  font-size: 20px;
}

.info-card h3 {
  margin: 15px 0 7px;
  font-size: 16px;
}

.info-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.site-footer {
  margin-top: 65px;
  padding: 35px 18px;
  color: var(--muted);
  background: white;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 15px 0;
}

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

[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .site-header,
[dir="rtl"] .section-heading {
  direction: rtl;
}


[dir="rtl"] .section-title,
[dir="rtl"] .game-group-title {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .search-wrap input {
  padding: 0 18px 0 48px;
}

[dir="rtl"] .search-icon {
  left: auto;
  right: 18px;
}

[dir="rtl"] .game-category {
  left: auto;
  right: 12px;
}

@media (max-width: 850px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .site-header {
    width: calc(100% - 22px);
    margin-top: 11px;
    padding: 12px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 11px;
  }

  .language-select {
    font-size: 11px;
    max-width: 125px;
  }

  .hero {
    width: calc(100% - 22px);
    margin-top: 22px;
    padding: 48px 19px;
    border-radius: 27px;
  }

  .hero h1 {
    letter-spacing: -1.5px;
  }

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

  .content-section {
    width: calc(100% - 22px);
    margin: 38px auto;
  }

  .section-heading {
    align-items: stretch;
  }

  .search-wrap {
    width: 100%;
  }

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

  .game-art,
  .game-art img {
    min-height: 205px;
    height: 205px;
  }

  .game-card {
    border-radius: 25px;
  }
}

/* HTML compatibility aliases */
.top-panel { 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.eyebrow { 
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1764d8;
  font-weight: 700;
  font-size: 0.8rem;
}
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  background: #1764d8;
  color: #fff;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #1764d833;
}
.games-section { padding: 40px 0; }
.section-title { margin-bottom: 24px; }

.game-group-title {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid #dce6f2;
}

.game-group-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.info-section { padding: 36px 0; }
@media (max-width: 600px) {
  .top-panel { justify-content: center; }
  .game-list { grid-template-columns: 1fr; }
}


/* FREEGAME RADAR carousel */
.fgr-carousel {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  height: clamp(250px, 38vw, 440px);
  margin: 28px auto 34px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  background: #0b1730;
  box-shadow: 0 16px 42px rgba(24, 67, 130, .14);
}
.fgr-carousel-track,
.fgr-slide {
  position: absolute;
  inset: 0;
}
.fgr-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}
.fgr-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.fgr-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 35%;
}
.fgr-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 13, 30, .88), rgba(5, 13, 30, .48) 48%, rgba(5, 13, 30, .05));
}
.fgr-slide-content {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 6vw, 76px);
  bottom: clamp(48px, 7vw, 78px);
  max-width: 520px;
  color: #fff;
}
.fgr-slide-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
.fgr-slide-content h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -1.5px;
  text-shadow: 0 3px 18px rgba(0,0,0,.25);
}
.fgr-slide-content p {
  margin: 0 0 20px;
  color: #e2e8f0;
  font-size: clamp(12px, 1.5vw, 15px);
}
.fgr-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.fgr-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: #0f172a;
  background: rgba(255,255,255,.92);
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0,0,0,.16);
}
.fgr-prev { left: 16px; }
.fgr-next { right: 16px; }
.fgr-dots {
  position: absolute;
  z-index: 4;
  bottom: 17px;
  left: 50%;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}
.fgr-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.fgr-dot.is-active {
  width: 25px;
  border-radius: 999px;
  background: #fff;
}
.fgr-arrow:focus-visible,
.fgr-dot:focus-visible,
.fgr-slide-link:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .fgr-carousel {
    width: calc(100% - 24px);
    height: 290px;
    margin: 18px auto 26px;
    border-radius: 20px;
  }
  .fgr-slide-content {
    left: 22px;
    right: 22px;
    bottom: 52px;
  }
  .fgr-slide-shade {
    background: linear-gradient(90deg, rgba(5,13,30,.82), rgba(5,13,30,.35));
  }
  .fgr-arrow {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
  .fgr-prev { left: 9px; }
  .fgr-next { right: 9px; }
}
[dir="rtl"] .fgr-slide-content {
  left: auto;
  right: clamp(24px, 6vw, 76px);
  text-align: right;
}
[dir="rtl"] .fgr-slide-shade {
  background: linear-gradient(270deg, rgba(5,13,30,.88), rgba(5,13,30,.48) 48%, rgba(5,13,30,.05));
}
@media (max-width: 600px) {
  [dir="rtl"] .fgr-slide-content {
    left: 22px;
    right: 22px;
  }
}


/* Legal and information pages */
.legal-page {
  width: min(900px, calc(100% - 36px));
  min-height: 65vh;
  margin: 40px auto;
  padding: clamp(24px, 5vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-page > .brand {
  display: inline-flex;
  margin: 0 0 30px;
  color: var(--blue);
  font-size: 17px;
}

.legal-page h1 {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.3;
}

.legal-page p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.legal-page p a {
  color: var(--blue);
  font-weight: 700;
}

.legal-page p a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .legal-page {
    width: calc(100% - 22px);
    margin: 18px auto;
    padding: 24px 19px;
    border-radius: 20px;
  }

  .legal-page > .brand {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .legal-page p {
    font-size: 14px;
  }
}


/* Compact spacing: carousel, hero, search and game content */
.fgr-carousel { margin-bottom: 8px; }

.hero {
  margin-top: 8px;
  margin-bottom: 8px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.games-section {
  padding-top: 8px;
  padding-bottom: 8px;
}

.games-section > .section-title { margin-bottom: 8px; }

.games-section > .game-group-title {
  margin-top: 8px;
  padding-top: 8px;
}

@media (max-width: 600px) {
  .fgr-carousel { margin-bottom: 5px; }

  .hero {
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 24px 14px;
  }

  .hero h1 {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: clamp(25px, 7vw, 34px);
  }

  .games-section {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .games-section > .section-title { margin-bottom: 5px; }

  .games-section > .game-group-title {
    margin-top: 5px;
    padding-top: 5px;
  }
}


/* ===== FREEGAME RADAR: DARK GAMING STOREFRONT ===== */
:root {
  --blue:#4f8cff; --blue-dark:#2563eb; --blue-light:#17243a;
  --ink:#f3f6fc; --muted:#9aa8bd; --line:#263449;
  --white:#111b2a; --surface:#080d16;
  --radius:18px; --shadow:0 14px 36px rgba(0,0,0,.28);
}
html,body {background:#080d16;color:#f3f6fc}
body {background:radial-gradient(ellipse at 50% -15%,#172943 0,#0b1320 42%,#080d16 78%)}
.top-panel,.site-header {
  width:min(1240px,calc(100% - 32px));margin:14px auto 10px;padding:13px 18px;
  background:#101a29;border:1px solid #26364c;border-radius:16px;
  box-shadow:0 8px 28px rgba(0,0,0,.22)
}
.brand {color:#f7f9ff}
.brand-mark {background:linear-gradient(135deg,#4f8cff,#2456bd)}
.main-nav {color:#a8b5c8}
.main-nav a:hover,.main-nav a.active {color:#75a7ff}
.language-select {color:#edf3ff;background:#17243a;border-color:#314662}
.language-select option {background:#111b2a;color:#fff}
.fgr-carousel {
  border:1px solid #26364c;border-radius:20px;
  box-shadow:0 18px 42px rgba(0,0,0,.32);background:#101a29
}
.fgr-slide-shade {background:linear-gradient(90deg,rgba(4,9,17,.92),rgba(4,9,17,.58) 52%,rgba(4,9,17,.08))}
.fgr-slide-kicker {color:#8db7ff}
.fgr-slide-content h2 {color:#fff}
.fgr-slide-content p {color:#d1d9e7}
.fgr-slide-link,.hero-button,.game-button {
  color:#fff;background:linear-gradient(135deg,#4387ff,#245bd0);
  border:1px solid rgba(255,255,255,.12)
}
.fgr-arrow {color:#fff;background:rgba(9,17,29,.72);border:1px solid #60718a}
.fgr-dot {background:#718198}
.fgr-dot.is-active {background:#70a4ff}
.hero {
  color:#f4f7ff;background:linear-gradient(135deg,#121f31,#0d1725 72%);
  border:1px solid #26364c;border-radius:20px;box-shadow:var(--shadow)
}
.hero h1,.hero h1 span {color:#f5f8ff}
.hero p {color:#aab7ca}
.hero-tag,.eyebrow {color:#a9caff;background:#1a2b44;border:1px solid #304968}
.games-section,.info-section {color:#f3f6fc}
.section-title,.section-heading h2,.game-group-title {color:#f3f6fc}
.section-heading p {color:#9aa8bd}
.game-group-title {border-color:#263449}
.search-wrap input {
  color:#f3f6fc;background:#111d2d;border:1px solid #30415a;box-shadow:none
}
.search-wrap input::placeholder {color:#8292a9}
.search-wrap input:focus {border-color:#4f8cff;box-shadow:0 0 0 3px rgba(79,140,255,.16)}
.search-icon {color:#9aabc2}
.game-list,.games-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.game-card {
  padding:12px;color:#edf3ff;background:#111b2a;border:1px solid #293a51;
  border-radius:17px;box-shadow:0 10px 28px rgba(0,0,0,.22)
}
.game-card:hover {border-color:#4b79bb;box-shadow:0 16px 34px rgba(0,0,0,.34)}
.game-art {min-height:160px;background:#1a2a40;border-radius:12px}
.game-art img {height:160px}
.game-art-placeholder {color:#9fc2ff}
.game-category {color:#d7e6ff;background:rgba(13,25,42,.92);border-color:#405a7b}
.game-info {padding:14px 3px 3px}
.game-info h3 {color:#f5f8ff}
.game-info p {color:#9eacc0}
.game-meta span {color:#b9c8dc;background:#1b2a3e;border:1px solid #2b405b}
.game-button {border:0}
.game-button:hover {filter:brightness(1.12)}
.empty-state {color:#aab7ca;background:#111b2a;border-color:#40516a}
footer,.site-footer {color:#9eacc0;background:#0d1624;border-top:1px solid #263449}
footer a,.site-footer a {color:#a9caff}
.legal-page {color:#edf3ff;background:#111b2a;border-color:#293a51}
.legal-page h1 {color:#f5f8ff}
.legal-page p {color:#aab7ca}
.legal-page p a {color:#83b0ff}
@media(max-width:600px) {
  .top-panel,.site-header {width:calc(100% - 20px);padding:11px 12px}
  .fgr-carousel {width:calc(100% - 20px)}
  .game-list,.games-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .game-card {padding:8px;border-radius:13px}
  .game-art {min-height:112px;border-radius:9px}
  .game-art img {height:112px}
  .game-info {padding:10px 2px 2px}
  .game-info h3 {font-size:14px;line-height:1.35}
  .game-info p {min-height:0;margin-top:5px;font-size:10px}
  .game-meta {gap:5px;margin:9px 0}
  .game-meta span {padding:4px 6px;font-size:9px}
  .game-button {min-height:40px;font-size:11px}
}
@media(max-width:360px) {
  .game-list,.games-grid {gap:8px}
  .game-art,.game-art img {height:98px;min-height:98px}
  .game-info h3 {font-size:13px}
}
