/* ============================================
   2048 PARTY EDITION — Shared Stylesheet
   style.css

   ⚠️ WORDPRESS USERS:
   If your site runs WordPress, style.css may be
   blocked. Each HTML page already has this CSS
   embedded inline as a fallback — so the game
   works even without this file loading.

   ✏️ Edit colors, fonts, spacing here
   ============================================ */

/* ── CSS VARIABLES (easy to customise) ── */
:root {
  --bg: #0f0e17;         /* Page background */
  --surf: #1a1a2e;       /* Card / nav background */
  --surf2: #16213e;      /* Inner card background */
  --surf3: #0f3460;      /* Deepest surface / empty tile */
  --p1: #e74c3c;         /* Player 1 accent (red) */
  --p2: #3498db;         /* Player 2 accent (blue) */
  --gold: #f1c40f;       /* Gold / highlight colour */
  --txt: #eeeeee;        /* Primary text */
  --mut: #888888;        /* Muted / secondary text */
  --accent: #9b59b6;     /* Purple accent */
  --green: #2ecc71;      /* Success green */
  --radius: 10px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── NAVIGATION ── */
nav {
  width: 100%;
  background: var(--surf);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #f7c59f, #e74c3c, #9b59b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  text-decoration: none;
}
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 6px;
  padding: 5px 11px;
  color: var(--txt);
  cursor: pointer;
  font-size: .78rem;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-btn:hover, .nav-btn.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── MAIN & PAGE LAYOUT ── */
main.page-main {
  width: 100%;
  max-width: 860px;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.page-hero {
  text-align: center;
  padding: 32px 20px 8px;
}
.page-hero h1 {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f7c59f, #e74c3c, #9b59b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.page-hero p {
  color: #aaa;
  font-size: .9rem;
}
.page-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── CONTENT SECTIONS ── */
.page-section {
  background: var(--surf);
  border-radius: 12px;
  padding: 20px 22px;
}
.page-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.page-section h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 4px;
}
.page-section p {
  font-size: .87rem;
  color: #ccc;
  line-height: 1.75;
}
.page-section ul,
.page-section ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.page-section li {
  font-size: .87rem;
  color: #ccc;
  line-height: 1.7;
}
.page-section a {
  color: var(--accent);
  text-decoration: none;
}
.page-section a:hover { text-decoration: underline; }
.page-section strong { color: var(--txt); }
.page-section code {
  background: var(--surf2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .82rem;
  color: var(--gold);
}

/* ── BUTTONS ── */
.ibtn {
  background: var(--surf);
  border: 1.5px solid var(--surf3);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--txt);
  cursor: pointer;
  font-size: .82rem;
  font-family: inherit;
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
}
.ibtn:hover { border-color: var(--accent); background: var(--surf2); }

/* ── AD SLOTS ── */
.ad-slot {
  width: 100%;
  max-width: 728px;
  background: var(--surf);
  border: 1px dashed rgba(255,255,255,.09);
  border-radius: 8px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mut);
  font-size: .72rem;
  margin: 6px 0;
}

/* ── FOOTER ── */
footer {
  width: 100%;
  background: var(--surf);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px;
  text-align: center;
  margin-top: auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: .8rem;
}
.footer-links a:hover { text-decoration: underline; }
footer p {
  font-size: .76rem;
  color: var(--mut);
  line-height: 1.8;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .page-hero h1 { font-size: 1.5rem; }
  nav { padding: 8px 12px; }
  main.page-main { padding: 0 12px 32px; }
  .page-section { padding: 16px; }
}
