/* ==========================================================================
   New Theme — Forest Green Gaming Portal (#428750)
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   CSS Reset (lightweight)
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer,
header, hgroup, menu, nav, output, ruby, section,
summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
a img { border: none; }
article, aside, details, figcaption, figure, footer, header,
hgroup, main, menu, nav, section, summary { display: block; }

/* --------------------------------------------------------------------------
   Theme Tokens
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #428750;
  --color-primary-dark: #2f6b3c;
  --color-primary-darker: #234f2c;
  --color-primary-light: #6ca579;
  --color-primary-pale: #e3f1e6;
  --color-accent: #f5c542;
  --color-bg: #f7f8f5;
  --color-bg-soft: #eef2ec;
  --color-surface: #ffffff;
  --color-text: #1d2a23;
  --color-text-soft: #5d6d63;
  --color-text-muted: #8a9890;
  --color-border: #e0e6e1;
  --color-danger: #d65a4a;
  --shadow-sm: 0 2px 6px rgba(34, 79, 44, 0.06);
  --shadow-md: 0 8px 24px rgba(34, 79, 44, 0.10);
  --shadow-lg: 0 16px 40px rgba(34, 79, 44, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
                'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --max-width: 1240px;
  --header-height: 76px;
}

/* --------------------------------------------------------------------------
   Base typography
   -------------------------------------------------------------------------- */
html { font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(66, 135, 80, 0.18) 0, transparent 35%),
    radial-gradient(circle at 88% 92%, rgba(66, 135, 80, 0.14) 0, transparent 38%),
    var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  font-weight: 400;
  line-height: 1.6;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1, .h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
}
h2, .h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
}
h3, .h3 { font-size: 1.25rem; font-weight: 600; }
h4, .h4 { font-size: 1rem; font-weight: 600; }

p { margin-top: 0.75em; }
p a { color: var(--color-primary-dark); text-decoration: none; }
p a:hover { text-decoration: underline; }

a { color: var(--color-primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary); }

img { display: block; max-width: 100%; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn, .btn-highlight, .btn-primary, .btn-neutral, .btn-transparent,
button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  background-color: var(--color-primary);
  color: #fff;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  margin: 0;
  text-decoration: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, background-color .2s;
}
.btn:hover, .btn-highlight:hover, .btn-primary:hover, .btn-neutral:hover,
.btn-transparent:hover, button.btn:hover, a.btn:hover {
  transform: translateY(-1px);
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn-highlight { background-color: var(--color-accent); color: var(--color-text); }
.btn-highlight:hover { background-color: #e8b530; color: var(--color-text); }

.btn-neutral {
  background-color: var(--color-bg-soft);
  color: var(--color-primary-dark);
  box-shadow: none;
}
.btn-neutral:hover { background-color: var(--color-primary-pale); color: var(--color-primary-darker); }

.btn-transparent {
  background-color: transparent;
  color: var(--color-text);
  box-shadow: none;
}

.btn-container {
  margin: 28px 0 48px;
  text-align: center;
}
.btn-container .btn { padding: 12px 36px; }

/* --------------------------------------------------------------------------
   Header / Top Navigation
   -------------------------------------------------------------------------- */
header.main {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

header.main .main-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
  position: relative;
}

/* Logo */
header.main .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
}
header.main .logo svg { width: 46px; height: 46px; }
header.main .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
header.main .logo-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

/* Top horizontal navigation (replaces dropdown hamburger) */
header.main nav.main {
  display: flex !important;
  position: static;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  width: auto;
  background: transparent;
  box-shadow: none;
  float: none;
  justify-content: center;
}
header.main nav.main ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
header.main nav.main ul > li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border: 0;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
header.main nav.main ul > li a:hover,
header.main nav.main ul > li a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
header.main nav.main ul > li a img {
  height: 16px;
  width: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
header.main nav.main ul > li a:hover img { opacity: 1; }

/* Hide the hamburger trigger / open icon on desktop */
header.main .menuHolder label.openIcon,
header.main .menuHolder input#navigationTrigger { display: none; }
header.main .menuHolder { position: static; }

/* Language select */
header.main .language-select {
  position: static;
  width: auto;
  height: 40px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
}
header.main .language-select .value {
  position: static;
  padding: 0 14px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
header.main .language-select .value:before { display: none; }
header.main .language-select select {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 900px) {
  header.main .main-section { flex-wrap: wrap; height: auto; padding: 14px 16px; gap: 12px; }
  header.main nav.main {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
  header.main nav.main ul { flex-wrap: nowrap; padding-bottom: 4px; }
  header.main nav.main ul > li a { padding: 6px 12px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Hero section (added in markup)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin: 28px auto 0;
  padding: 56px 32px;
  max-width: var(--max-width);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(34, 79, 44, 0.92) 0%, rgba(66, 135, 80, 0.78) 100%),
    radial-gradient(circle at 80% 20%, rgba(245, 197, 66, 0.25), transparent 40%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  margin-bottom: 12px;
  position: relative;
}
.hero .hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(245, 197, 66, 0.2);
  color: var(--color-accent);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
}
.hero p {
  max-width: 620px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  margin-bottom: 24px;
}
.hero .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  position: relative;
  margin-top: 8px;
}
.hero .hero-stats > div {
  display: flex;
  flex-direction: column;
}
.hero .hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.hero .hero-stats span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

@media (max-width: 750px) {
  .hero { padding: 36px 20px; margin: 16px 10px 0; border-radius: var(--radius-md); }
}

/* --------------------------------------------------------------------------
   Main content wrapper
   -------------------------------------------------------------------------- */
.app-container { width: 100%; overflow: hidden; }
#app { position: relative; transform: translate3d(0,0,0); }

.main-section {
  margin: 0 auto;
  width: var(--max-width);
  box-sizing: border-box;
  padding: 0 20px;
}

.content {
  background: transparent;
  padding: 36px 0 60px;
}
.content .main-section { margin-top: 0; margin-bottom: 0; }

.content p a.highlight {
  display: inline-block;
  padding: 2px 6px;
  background: var(--color-primary-pale);
  color: var(--color-primary-darker);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.static .content ul { list-style: disc; padding-left: 18px; }
.static .content a { color: var(--color-primary-dark); }

/* --------------------------------------------------------------------------
   Section headings (used by index.js etc.)
   -------------------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
}
.section-header h2 img {
  height: 26px;
  width: 26px;
  display: inline-block;
  filter: hue-rotate(60deg) saturate(1.2);
}
.section-header a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 14px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.section-header a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Override the h1.h2 class style (used in JS) so it inherits the section header look */
.main-section h1.h2 { all: unset; display: none; }

/* --------------------------------------------------------------------------
   Game grid (replaces old ul.games)
   -------------------------------------------------------------------------- */
ul.games {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
ul.games:last-child { margin-bottom: 0; }

ul.games li {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  width: auto;
  float: none;
}
ul.games li a {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
ul.games li a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

ul.games li .icon {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  border-radius: 0;
  background: var(--color-bg-soft);
}
ul.games li .icon img {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
ul.games li .clamp { display: none; }

ul.games li .name-container {
  display: flex;
  height: auto;
  padding: 14px 14px 16px;
  align-items: center;
  justify-content: flex-start;
}
ul.games li .name {
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

ul.games li .badge-new,
ul.games li .badge-hot {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  z-index: 2;
  backdrop-filter: blur(6px);
}
ul.games li .badge-new { background: rgba(66, 135, 80, 0.95); color: #fff; }
ul.games li .badge-hot { background: rgba(245, 197, 66, 0.95); color: var(--color-text); }

ul.games .btn-block { display: none; }

/* Responsive grid */
@media (max-width: 1024px) {
  ul.games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 750px) {
  ul.games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 400px) {
  ul.games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer.main {
  margin-top: 60px;
  padding: 56px 0 28px;
  background: linear-gradient(180deg, var(--color-primary-darker) 0%, #183820 100%);
  color: rgba(255, 255, 255, 0.85);
}
footer.main a { color: #fff; }
footer.main .footer-content {
  position: relative;
  margin: 0 auto;
  max-width: var(--max-width);
  min-width: 320px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  padding: 0 20px;
}
footer.main .footer-content .footer-brand h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 12px;
}
footer.main .footer-content .footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

footer.main section.tags nav.main {
  background: transparent;
  float: none;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}
footer.main section.tags nav.main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0; padding: 0;
}
footer.main section.tags nav.main ul li {
  padding: 0;
}
footer.main section.tags nav.main ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 13px;
  text-transform: none;
  color: rgba(255, 255, 255, 0.85);
  transition: background-color .2s, color .2s;
  line-height: 1.2;
}
footer.main section.tags nav.main ul li a:hover {
  background: var(--color-primary-light);
  color: #fff;
  border-color: var(--color-primary-light);
}
footer.main section.tags nav.main ul li a img {
  height: 14px; width: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
footer.main section.tags nav.main ul li a:hover img { opacity: 1; }

footer.main .copyright {
  grid-column: 1 / -1;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
footer.main .copyright a {
  color: var(--color-accent);
  text-decoration: none;
  margin: 0 6px;
  font-weight: 600;
}
footer.main .copyright a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  footer.main .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 750px) {
  footer.main section.tags nav.main ul li a {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
   Detail page
   -------------------------------------------------------------------------- */
.game header {
  margin-bottom: 36px;
}
.game header .background {
  position: relative;
  background-size: cover;
  overflow: hidden;
  background-position: center center;
  text-align: center;
  border-radius: var(--radius-lg);
}
.game header .background .backgroundDarken {
  padding: 60px 24px;
  background:
    linear-gradient(180deg, rgba(34, 79, 44, 0.55) 0%, rgba(34, 79, 44, 0.85) 100%);
}
.game header .background .backgroundDarken .main-section { margin: 0 auto; }
.game header .icon {
  display: block;
  width: 140px;
  height: 140px;
  max-width: 100%;
  margin: 0 auto 20px;
  border: 4px solid #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  object-fit: cover;
}
.game header h1 {
  color: #fff;
  margin-bottom: 8px;
}
.game header .game-meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.game header .game-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.game .play-btn-container {
  position: relative;
  height: auto;
  margin: 28px 0 0;
  display: flex;
  justify-content: center;
}
.game .play-btn-container:before,
.game .play-btn-container:after { display: none; }
.game .play-btn-container .play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  width: auto;
  height: auto;
  font-size: 18px;
  line-height: 1;
  padding: 16px 48px;
  background: var(--color-accent);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  text-transform: none;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}
.game .play-btn-container .play-btn:hover {
  background: #e8b530;
  color: var(--color-text);
  transform: translateY(-2px);
}

.game .game-infos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 36px 0;
}
.game .game-description {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 28px;
}
.game .game-description p {
  margin: 0;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}
.game .game-categories { margin-top: 12px; }
.game .game-categories ul {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.game .game-categories ul li {
  background: var(--color-primary-pale);
  margin: 0;
  border-radius: var(--radius-pill);
}
.game .game-categories ul li a {
  display: inline-block;
  padding: 6px 14px;
  text-decoration: none;
  color: var(--color-primary-darker);
  font-weight: 600;
  font-size: 13px;
}
.game .game-categories ul li a:hover { color: var(--color-accent); }

.game .game-languages ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 15px -5px 0;
}
.game .game-languages ul li {
  text-align: center;
  padding: 5px;
  max-width: 50px;
}
.game .game-languages ul li a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.game .similarGames { margin: 48px 0; }
.game .similarGames h2 { margin-bottom: 20px; text-align: left; }

.game .for-companies { margin: 40px 0; text-align: center; }
.game .for-companies .btn-primary { display: inline-block; margin-top: 15px; }

.game .icon-downloads {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.game .icon-downloads figure {
  position: relative;
  overflow: hidden;
  height: 160px;
  margin: 0;
}
.game .icon-downloads figure:before { display: none; }
.game .icon-downloads figure img {
  position: absolute;
  box-sizing: border-box;
  bottom: 0; left: 0; right: 0;
  margin-bottom: 20px;
  border: 3px solid #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.game .icon-downloads figure figcaption {
  position: absolute;
  font-family: var(--font-body);
  right: 0; bottom: 0; left: 0;
  height: 20px; line-height: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-soft);
}

.game .more-info-btn {
  display: inline-block;
  width: auto;
  margin: 0 auto;
}

.game .textarea-autogrow { position: relative; margin-top: 20px; }
.game .textarea-autogrow .aff-iliate-link,
.game .textarea-autogrow .shadow {
  margin: 0;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5em;
  font-weight: 400;
  font-family: var(--font-body);
  word-break: break-all;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
}
.game .textarea-autogrow .shadow { opacity: 0; }
.game .textarea-autogrow .aff-iliate-link {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Tiles & info cards
   -------------------------------------------------------------------------- */
.tile, .tile-highlight, .tile-primary, .tile-info, .tile-neutral {
  display: block;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: all .2s ease;
  box-shadow: var(--shadow-sm);
}
.tile .hint { height: 0; margin-top: 0; overflow: hidden; transition: all .2s linear; }
.tile p { text-align: left; }
.tile.withSpacing { margin-top: 40px; }

.tile.active {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}
.tile.active .hint { margin-top: 20px; }

.tile.teaser {
  padding: 14px;
  min-height: 60px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.tile.teaser img, .tile.teaser svg {
  float: none;
  width: 52px;
  height: 52px;
}
.tile.teaser header {
  margin-left: 0;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
}
.tile.teaser p {
  margin: 4px 0 0;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: var(--color-text-soft);
}

.tile-highlight { background: var(--color-accent); color: var(--color-text); border-color: transparent; }
.tile-primary { background: var(--color-primary); color: #fff; border-color: transparent; }
.tile-info {
  margin-top: -20px;
  background: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.tile-neutral { background: var(--color-bg-soft); color: var(--color-primary-dark); border-color: transparent; }

/* Tile list */
.tile-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile-list li { box-sizing: border-box; padding: 0; float: none; width: auto; }
.tile-list li .tile-neutral { margin-bottom: 0; }
nav.main .tile-list { margin: 0; padding: 0; }
nav.main .tile-list li { padding: 0; float: none; width: 100%; }
nav.main .tile-list li .tile-neutral { background: #fff; }
nav.main .tile-list li:last-child .tile-neutral { margin-bottom: 0; }

@media (max-width: 750px) {
  .tile-list { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .tile-list li .teaser.tile-neutral { min-height: 50px; }
  .tile-list li .teaser { margin-bottom: 10px; }
  .content .tile-list li .teaser header { margin-bottom: 10px; }
}

@media (min-width: 751px) and (max-width: 1000px) {
  nav.main .tile-neutral { margin-bottom: 10px; }
  .tile-list { gap: 10px; }
  .tile-list li { float: none; width: auto; }
  .tile-list li .teaser.tile-neutral { min-height: 50px; }
}

/* --------------------------------------------------------------------------
   Inputs / textareas
   -------------------------------------------------------------------------- */
input, textarea {
  box-sizing: border-box;
  margin-top: 20px;
  border: 1px solid var(--color-border);
  outline: none;
  font-size: 1em;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 10px 14px;
}
textarea { width: 100%; padding: 10px; resize: none; line-height: 1.5; }

* { -webkit-tap-highlight-color: rgba(0,0,0,0) !important; outline: none !important; }

/* --------------------------------------------------------------------------
   Consent / Cookie banner
   -------------------------------------------------------------------------- */
.consent-box-holder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(34, 79, 44, 0.45);
  backdrop-filter: blur(8px);
}
.consent-box {
  background-color: #fff;
  opacity: 1;
  max-width: 32em;
  width: calc(100% - 32px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  margin: 16px;
  font-size: 15px;
  text-align: center;
  border: 1px solid var(--color-border);
}
.consent-box-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  border: 0;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.consent-box-message { text-align: left; color: var(--color-text-soft); }
.consent-box-message strong {
  color: var(--color-text);
  display: block;
  margin-bottom: 8px;
}
.consent-box-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  padding: 12px 36px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  background-color: var(--color-primary);
  color: #fff;
  margin-top: 16px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color .2s, transform .2s;
}
.consent-box-button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}
.consent-box-links {
  margin-top: 18px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.consent-box-links a {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Privacy / Static page wrapper
   -------------------------------------------------------------------------- */
.static-page {
  max-width: 820px;
  margin: 60px auto;
  padding: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.static-page h1 {
  margin-bottom: 18px;
  color: var(--color-primary-darker);
}
.static-page h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}
.static-page p { color: var(--color-text-soft); line-height: 1.75; }
.static-page b, .static-page strong { color: var(--color-text); }
.static-page a.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Teaser / External sections
   -------------------------------------------------------------------------- */
section.externalTeaser {
  margin: 0 0 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
section.externalTeaser .main-section { margin: 0 auto; }
section.externalTeaser ul { display: block; padding: 0; }
section.externalTeaser ul li {
  width: 100%;
  padding: 0;
}
section.externalTeaser ul li a {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  padding: 24px;
  color: var(--color-primary-dark);
  text-align: center;
  text-decoration: none;
}
section.externalTeaser ul li a .btn-highlight {
  margin: 16px 0 0;
  white-space: nowrap;
  align-self: center;
}
section.externalTeaser ul li + li a { margin-top: 0; border-top: 1px solid var(--color-border); }

section.previewTeaser {
  border: 1px solid var(--color-primary-light);
  padding: 4px;
  margin-bottom: 40px;
  display: none;
  border-radius: var(--radius-md);
  overflow: hidden;
}
section.previewTeaser a {
  display: flex;
  align-items: flex-start;
  padding: 14px;
  text-decoration: none;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
}
section.previewTeaser a img {
  width: 25%;
  max-width: 150px;
  margin-right: 20px;
  border-radius: var(--radius-sm);
}
section.previewTeaser a .details h2 {
  text-align: left;
  color: #fff;
}
section.previewTeaser a .details h2 em {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  margin-right: 5px;
  color: var(--color-text);
  text-transform: uppercase;
  font-size: 55%;
  font-weight: 700;
  vertical-align: bottom;
  font-style: normal;
}

@media (max-width: 750px) {
  .main-section { width: 100%; padding: 0 16px; }
  .content .main-section { margin-top: 0; margin-bottom: 0; }
  section.previewTeaser a {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  section.previewTeaser a .details h2 { text-align: center; }
  section.previewTeaser a img {
    margin-bottom: 10px;
    width: auto;
    min-width: 0;
    height: 100px;
  }
  .static-page { margin: 30px 12px; padding: 24px; }
}

/* --------------------------------------------------------------------------
   Loading animation
   -------------------------------------------------------------------------- */
@keyframes faPulse { 0% { opacity: 0 } to { opacity: .8 } }
@keyframes faBounce {
  0%, 80%, to { transform: scale(0); }
  40% { transform: scale(1); }
}
.dgmlwU {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  animation: faPulse .2s cubic-bezier(.25,.1,.25,1) both;
  z-index: 100001;
}
.AFSJx {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.AFSJx div {
  width: 18px;
  height: 18px;
  margin: 0 4px;
  border-radius: 100%;
  background: #fff;
  animation: 1.4s ease-in-out 0s infinite normal both running faBounce;
}
.AFSJx div:nth-child(2) { animation-delay: -.16s; }

/* --------------------------------------------------------------------------
   Back to top button
   -------------------------------------------------------------------------- */
.backToTop {
  background: var(--color-primary) !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: var(--shadow-md) !important;
  transition: transform .2s, background-color .2s !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.backToTop:hover { background: var(--color-primary-dark) !important; transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Fullscreen game overlay (created in detail.js → startGame())
   -------------------------------------------------------------------------- */
.app-module {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #000;
  overflow: hidden;
}
.app-module #gameIframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
.app-module img.setting {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  z-index: 2;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Footer links (shared across all pages)
   -------------------------------------------------------------------------- */
footer.main .footer-links {
  text-align: center;
  padding: 24px 20px 36px;
  color: #8a9890;
  font-size: 13px;
}
footer.main .footer-links a {
  color: #2f6b3c;
  text-decoration: none;
  font-weight: 600;
  margin: 0 6px;
}
footer.main .footer-links a:hover { text-decoration: underline; }
footer.main .footer-links span { color: #c0cac2; }
