/* Shared styles for the studio page and the game sections.
   The Durak pages still carry their own inline copy of this look. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --navy: #1a2a4a;
  --blue-deep: #0E4F7A;
  --blue: #1C7FBC;
  --blue-light: #58B6F0;
  --cream: #FFE4C4;
  --ink: #2d2017;
  --paper: #fff7ef;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--navy);
  line-height: 1.6;
}

a { color: #145D8A; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

/* ---- Top bar (inside the hero) ---- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}

.brand {
  color: var(--cream);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.9;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand:hover { opacity: 1; }

.lang-switch { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lang-switch a {
  background: rgba(255,228,196,0.1);
  border: 1px solid rgba(255,228,196,0.2);
  color: rgba(255,228,196,0.7);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}
.lang-switch a:hover,
.lang-switch a.active {
  background: rgba(255,228,196,0.2);
  color: var(--cream);
  border-color: rgba(255,228,196,0.4);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 20px 72px;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--navy) 40%, var(--blue) 100%);
  position: relative;
  overflow: hidden;
}
.hero.compact { min-height: 62vh; }

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(88, 182, 240, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(118, 75, 162, 0.08) 0%, transparent 60%);
  animation: drift 20s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-5%, 3%); }
}
.hero > * { position: relative; z-index: 1; }
.hero > .topbar { position: absolute; }

.hero-art {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin-bottom: 4px;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.45));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 800;
  color: var(--cream);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero .tagline {
  font-size: clamp(16px, 3vw, 22px);
  color: rgba(255, 228, 196, 0.8);
  max-width: 560px;
  margin-bottom: 32px;
}

.pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 228, 196, 0.12);
  border: 1px solid rgba(255, 228, 196, 0.2);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
}

/* ---- Store badges and "coming soon" ---- */
.store-badges { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; align-items: center; }
.store-badge { display: inline-block; transition: transform 0.15s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 54px; display: block; }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 228, 196, 0.45);
  color: var(--cream);
  font-weight: 700;
}
.soon {
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.soon strong { white-space: nowrap; }
.soon.on-light, .band-light .soon { border-color: rgba(14, 79, 122, 0.4); color: var(--blue-deep); }
.soon small { font-weight: 400; opacity: 0.8; font-size: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--blue-light), #145D8A);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost {
  background: rgba(255, 228, 196, 0.1);
  border: 1px solid rgba(255, 228, 196, 0.25);
  color: var(--cream);
  box-shadow: none;
}

/* ---- Sections ---- */
section { max-width: 1100px; margin: 0 auto; padding: 80px 20px; }
.band-light { background: linear-gradient(180deg, #EBEEE9, var(--cream)); }
.band-dark { background: linear-gradient(135deg, var(--blue-deep) 0%, var(--navy) 100%); color: var(--cream); }

.section-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  opacity: 0.75;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 16px;
}

/* ---- Cards on dark bands ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: rgba(255, 228, 196, 0.08);
  border: 1px solid rgba(255, 228, 196, 0.12);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.2s, background 0.2s;
}
.feature-card:hover { transform: translateY(-4px); background: rgba(255, 228, 196, 0.12); }
.feature-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--cream); }
.feature-card p { font-size: 15px; color: rgba(255, 228, 196, 0.72); line-height: 1.5; }

.band-light .feature-card {
  background: var(--paper);
  border-color: rgba(45,32,23,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.band-light .feature-card:hover { background: #fff; }
.band-light .feature-card h3 { color: #1b2d4b; }
.band-light .feature-card p { color: #4a3f36; }

/* ---- Cards on light bands ---- */
.stack { max-width: 880px; margin: 0 auto; display: grid; gap: 20px; }
.note-card {
  background: var(--paper);
  border: 1px solid rgba(45,32,23,0.08);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.note-card h3 { font-size: 20px; margin-bottom: 8px; }
.note-card p + p { margin-top: 10px; }

/* ---- Numbered rules ---- */
.rules { counter-reset: rule; }
.rules .feature-card { position: relative; padding-top: 30px; }
.rules .feature-card::before {
  counter-increment: rule;
  content: counter(rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--blue-deep);
  font-weight: 800;
}

/* ---- Game cards on the studio page ---- */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--paper);
  border: 1px solid rgba(45,32,23,0.08);
  border-radius: 24px;
  padding: 32px 26px;
  box-shadow: 0 14px 40px rgba(20, 39, 70, 0.14);
}
.game-card .art {
  width: 150px; height: 150px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}
.game-card h3 { font-size: 26px; font-weight: 800; color: #1b2d4b; margin-bottom: 8px; }
.game-card p { margin-bottom: 20px; max-width: 420px; }
.game-card .store-badge img { height: 46px; }
.game-card .more { margin-top: 20px; font-weight: 700; text-decoration: none; }
.game-card .more:hover { text-decoration: underline; }
.game-card .grow { flex: 1; }

/* ---- FAQ ---- */
.faq details {
  background: var(--paper);
  border: 1px solid rgba(45,32,23,0.08);
  border-radius: 14px;
  padding: 16px 20px;
}
.band-dark .faq details {
  background: rgba(255, 228, 196, 0.08);
  border-color: rgba(255, 228, 196, 0.14);
  color: rgba(255, 228, 196, 0.85);
}
.band-dark .faq summary { color: var(--cream); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 10px; }

.center { text-align: center; }

/* ---- Footer ---- */
footer {
  background: #0a1a3a;
  color: rgba(255, 228, 196, 0.6);
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
}
footer a { color: rgba(255, 228, 196, 0.8); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--cream); }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-copy { margin-top: 16px; opacity: 0.6; }

/* ---- Small screens ---- */
@media (max-width: 600px) {
  .hero { min-height: 88vh; padding: 88px 16px 56px; }
  .hero-art { width: 170px; height: 170px; }
  .topbar { padding: 14px 14px; align-items: flex-start; }
  .brand { font-size: 15px; padding-top: 4px; }
  .lang-switch { gap: 6px; }
  .lang-switch a { padding: 5px 9px; font-size: 12px; }
  .store-badge img { height: 46px; }
  section { padding: 60px 16px; }
  .features-grid, .games { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .hero-art { animation: none; }
  .feature-card, .btn, .store-badge { transition: none; }
}
