/* ============================================================
   Playme Studio — shared stylesheet
   Light theme inspired by playrix.com: white background,
   bold rounded type, big rounded cards, blue/cyan accent.
   ============================================================ */

:root {
  /* Palette */
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --surface: #ffffff;
  --border: #e8e9f2;
  --text: #191b2e;
  --text-muted: #5c6079;
  --text-dim: #9497ad;

  --accent: #2563eb;          /* blue — replaces Playrix green */
  --accent-dark: #1d4ed8;
  --accent-soft: #e8f1fe;
  --accent-2: #06b6d4;
  --gradient: linear-gradient(120deg, #2563eb, #06b6d4);

  /* Typography */
  --font-display: "Nunito", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow-card: 0 6px 24px rgba(25, 27, 46, 0.07);
  --shadow-card-hover: 0 18px 44px rgba(25, 27, 46, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in 0.4s ease both;
}

/* Page enter / exit transitions */

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.page-exit {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.logo img {
  width: 38px;
  height: 38px;
}

.logo span {
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--text-muted);
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.site-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(25, 27, 46, 0.08);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.7rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background-color 0.18s, border-color 0.18s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.hero-blob-1 {
  width: 480px;
  height: 480px;
  background: var(--accent);
  top: -180px;
  left: -120px;
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-blob-2 {
  width: 420px;
  height: 420px;
  background: var(--accent-2);
  bottom: -160px;
  right: -100px;
  animation: drift 17s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.01em;
  max-width: 840px;
  margin-inline: auto;
  color: var(--text);
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 560px;
  margin: 1.4rem auto 2.2rem;
  color: var(--text-muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Section headings ---------- */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Game catalog (Playrix-style cards) ---------- */

/* Four vertical cards per row. */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 1.8rem;
}

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

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

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1.47;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.game-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-cover img {
  transform: scale(1.06);
}

/* Card footer: title + meta on top, full-width Play button below */

.game-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0.1rem;
  padding: 0.85rem 1rem 1rem;
}

.game-info {
  min-width: 0;
}

.game-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-players {
  color: var(--accent);
  font-weight: 700;
}

.play-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.3);
  transition: background-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.play-btn:hover {
  background: var(--accent-dark);
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.42);
}

.play-btn .play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #ffffff;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    animation: none;
  }

  body.page-exit {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-blob-1,
  .hero-blob-2 {
    animation: none;
  }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 4rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.05rem;
}

/* ---------- Forms (support page) ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 680px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.form-group .optional {
  color: var(--text-dim);
  font-weight: 400;
  font-family: var(--font-body);
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
}

.form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c6079' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.form-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  display: none;
}

.form-error.show {
  display: block;
}

.form-note {
  display: none;
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid #c8ddfa;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-note.show {
  display: block;
}

.form-note a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Partners page ---------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-block: 2.2rem;
}

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

.offer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.offer-card .offer-icon {
  font-size: 1.9rem;
  margin-bottom: 0.7rem;
}

.offer-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 0.45rem;
}

.offer-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.contact-panel {
  background: linear-gradient(135deg, var(--accent-soft), #e0f7fb);
  border: 1px solid #cfe2fb;
  border-radius: var(--radius);
  padding: 2.4rem;
  text-align: center;
}

.contact-panel h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.contact-panel p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.6rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-links .btn-secondary {
  background: #fff;
}

/* ---------- Privacy / legal page ---------- */

.legal {
  max-width: 780px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  margin: 2.4rem 0 0.8rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.legal ul {
  padding-left: 1.4rem;
  margin-block: 0.6rem;
}

.legal a {
  color: var(--accent);
  font-weight: 600;
}

.legal .updated {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

.notice {
  margin-top: 2rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #fff6ec;
  border: 1px solid #fadfc0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 900;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.18s;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  padding-bottom: 1.6rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
