/* Gopa Games – shared site styles */
:root {
  --bg: #0d1020;
  --bg-2: #12162a;
  --card: #171b31;
  --card-2: #1d2240;
  --line: #272d4a;
  --text: #eef0f7;
  --body: #d5d9e8;
  --muted: #9aa1b9;
  --accent: #f5b83d;
  --accent-2: #ff8a3d;
  --danger: #ef5350;
  --ok: #4caf7a;
  --radius: 18px;
  --wrap: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(245, 184, 61, .12), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(98, 112, 255, .14), transparent 60%);
  pointer-events: none;
}
a { color: var(--accent); }
img, svg { display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 16, 32, .75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(39, 45, 74, .7);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #1a1300; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(245, 184, 61, .3);
}
.logo span span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.btn { color: #1a1300; padding: 9px 16px; margin-left: 6px; }
.nav a.btn:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1300; }
@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1300; text-decoration: none; font-weight: 700;
  padding: 12px 22px; border-radius: 12px; border: none; cursor: pointer; font: inherit; font-weight: 700;
  box-shadow: 0 8px 24px rgba(245, 184, 61, .22);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245, 184, 61, .32); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.lg { padding: 15px 28px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero .eyebrow, .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: rgba(245, 184, 61, .1); border: 1px solid rgba(245, 184, 61, .25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 850; }
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 600px; margin: 20px auto 0; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; scroll-margin-top: 50px; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 560px; }

/* ---------- Game cards ---------- */
.games { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.game {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.game:hover { transform: translateY(-4px); border-color: #363d63; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.game-art { height: 190px; position: relative; display: grid; place-items: center; overflow: hidden; }
.game-art svg { width: 84px; height: 84px; position: relative; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(23, 27, 49, .85)); }
.art-crownfall { background: radial-gradient(circle at 30% 20%, #6a5cff, transparent 55%), radial-gradient(circle at 80% 90%, #ff5f6d, transparent 55%), #2a1f5c; }
.art-farm { background: radial-gradient(circle at 25% 25%, #7ee081, transparent 55%), radial-gradient(circle at 85% 85%, #ffd166, transparent 55%), #2a6b3f; }
.game-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-size: 1.45rem; margin-bottom: 8px; }
.game-body p { color: var(--muted); margin-bottom: 22px; flex: 1; }
.tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag.live { color: var(--ok); background: rgba(76, 175, 122, .12); }
.tag.soon { color: var(--accent); background: rgba(245, 184, 61, .12); }
.game-body .btn { align-self: flex-start; }

/* ---------- Games-first home layout ---------- */
.games-top { padding-top: 40px; }
.games-stack { display: grid; gap: 28px; }
.game-wide { flex-direction: row; }
.game-wide .game-art { flex: 0 0 38%; height: auto; min-height: 260px; }
.game-wide .game-art svg { width: 110px; height: 110px; }
.game-wide .game-art::after { background: linear-gradient(90deg, transparent 55%, rgba(23, 27, 49, .85)); }
.game-wide .game-body { padding: 32px 34px; justify-content: center; }
.game-wide h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.1; margin-bottom: 10px; }
.game-wide .game-body p { flex: 0; }
.store-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; max-width: 560px; }
.game-body .store-row .store-btn { align-self: stretch; }
.btn.store-btn { gap: 14px; text-align: left; line-height: 1.15; padding: 16px 22px; justify-content: flex-start; min-height: 64px; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: .78rem; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.store-btn.btn-crownfall { background: linear-gradient(135deg, #6a5cff, #ff5f6d); color: #fff; box-shadow: 0 8px 24px rgba(106, 92, 255, .3); }
.store-btn.btn-crownfall:hover { box-shadow: 0 12px 30px rgba(106, 92, 255, .42); }
.store-btn.btn-farm { background: linear-gradient(135deg, #7ee081, #3fa35a); color: #0d2614; box-shadow: 0 8px 24px rgba(126, 224, 129, .25); }
.store-btn.btn-farm:hover { box-shadow: 0 12px 30px rgba(126, 224, 129, .38); }
@media (max-width: 760px) {
  .game-wide { flex-direction: column; }
  .game-wide .game-art { min-height: 180px; }
  .game-wide .game-art::after { background: linear-gradient(180deg, transparent 50%, rgba(23, 27, 49, .85)); }
  .game-wide .game-body { padding: 24px 22px 28px; }
  .store-row { grid-template-columns: 1fr; max-width: none; gap: 12px; }
}
.game .meta { color: var(--muted); font-size: .9rem; }

/* ---------- Feature grid ---------- */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(245, 184, 61, .12); color: var(--accent); margin-bottom: 16px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta { padding: 24px 0 72px; }
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 24px; padding: 56px 24px;
  background: linear-gradient(135deg, #1e2346, #191d38);
  border: 1px solid var(--line);
}
.cta-box::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 61, .22), transparent 65%); pointer-events: none;
}
.cta-box h2 { position: relative; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.cta-box p { position: relative; color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.cta-box .btn { position: relative; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 64px 0 36px; }
.page-head h1 { font-size: clamp(2rem, 5.5vw, 3rem); letter-spacing: -.015em; line-height: 1.1; }
.page-head p { color: var(--muted); margin-top: 12px; font-size: 1.08rem; max-width: 640px; }
.page-head .updated { font-size: .95rem; margin-top: 10px; }

/* ---------- Document pages (privacy / terms) ---------- */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; padding-bottom: 72px; }
.toc { position: sticky; top: 92px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-size: .9rem; }
.toc strong { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.toc ol { list-style: none; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 8px; border-radius: 8px; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); min-width: 0; }
.doc h2 { font-size: 1.25rem; margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--text); scroll-margin-top: 90px; }
.doc h2:first-of-type { margin-top: 28px; }
.doc h2 .n { color: var(--accent); margin-right: 6px; }
.doc p, .doc li { color: var(--body); }
.doc p { margin-bottom: 12px; }
.doc ul { margin: 0 0 12px 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.box { background: rgba(245, 184, 61, .07); border: 1px solid rgba(245, 184, 61, .25); border-radius: 14px; padding: 18px 20px; margin: 18px 0; }
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 600px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border: none; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}

/* ---------- Forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); }
label { display: block; font-weight: 600; margin: 18px 0 7px; }
label:first-child { margin-top: 0; }
label .opt { color: var(--muted); font-weight: 400; }
input[type=email], input[type=text], select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #0f1325; color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 184, 61, .15); }
textarea { min-height: 140px; resize: vertical; }
.hint { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row-2 label { margin-top: 18px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-weight: 400; color: var(--body); }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
form .btn { margin-top: 24px; width: 100%; justify-content: center; padding: 15px; }
form .btn.danger { background: var(--danger); color: #fff; box-shadow: 0 8px 24px rgba(239, 83, 80, .25); }
.msg { border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; }
.msg.ok { background: rgba(76, 175, 122, .12); border: 1px solid var(--ok); }
.msg.err { background: rgba(239, 83, 80, .12); border: 1px solid var(--danger); }
.msg ul { margin: 6px 0 0 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Two-column page layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; padding-bottom: 72px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.side { display: grid; gap: 16px; }
.info { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.info h3 { font-size: 1.05rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.info h3 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.info p, .info li { color: var(--muted); font-size: .95rem; }
.info ul { margin: 6px 0 0 18px; }
.info li { margin-bottom: 4px; }
.info a { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: rgba(10, 12, 25, .6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
.footer-grid p { color: var(--muted); font-size: .95rem; margin-top: 12px; max-width: 280px; }
.footer-grid h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--body); text-decoration: none; font-size: .95rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
