/* NoGame.ro — root game selector. Dark theme, Metin2-adjacent palette. */
:root {
  --bg: #0c0a08;
  --panel: #141210;
  --border: #33302a;
  --gold: #e8b44a;
  --text: #d9cfbc;
  --muted: #9a8f7d;
  --green: #2f6b33;
  --green-hover: #3d8a43;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
}

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

a { color: var(--gold); text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: 1px solid rgba(232, 180, 74, .35);
  background: rgba(12, 10, 8, .92);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand img { width: 150px; display: block; }

.lang-switch {
  display: inline-flex;
  border: 1px solid #6b5836;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, .45);
}
.lang-opt {
  padding: 6px 12px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
}
.lang-opt:hover { color: var(--gold); }
.lang-opt.is-active { background: var(--gold); color: #1a140d; }

/* Top-bar account area (right side, next to the language switch) */
.topbar-side {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-side .account-link {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}
.topbar-side .account-link:hover { color: var(--gold); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 6px 12px; font-size: .74rem; }

/* ---------- Intro ---------- */
.intro { text-align: center; padding: 56px 0 28px; }
.intro-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold);
  font-size: 2.4rem;
  margin: 0 0 10px;
  letter-spacing: .5px;
}
.intro-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Game grid ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding-bottom: 8px;
}

.games-heading {
  margin: 34px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
a.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .65);
}

.card-cover {
  position: relative;
  height: 190px;
  background-color: #1a1712;
  background-size: cover;
  background-position: center 35%;
}

/* Per-game cover art (real key art, supplied per game). */
.g-metin2    .card-cover { background-image: linear-gradient(180deg, rgba(12,10,8,.05), rgba(12,10,8,.72)), url("games/metin2.png"); }
.g-zp        .card-cover { background-image: linear-gradient(180deg, rgba(12,10,8,.05), rgba(12,10,8,.72)), url("games/zombie-plague.png"); }
.g-minecraft .card-cover { background-image: linear-gradient(180deg, rgba(12,10,8,.05), rgba(12,10,8,.72)), url("games/minecraft.jpg?v=3"); }
.g-cs2       .card-cover { background-image: linear-gradient(180deg, rgba(12,10,8,.05), rgba(12,10,8,.72)), url("games/cs2.png"); }
.g-palworld  .card-cover { background-image: linear-gradient(180deg, rgba(12,10,8,.05), rgba(12,10,8,.72)), url("games/palworld.png?v=2"); }

.mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .18);
  user-select: none;
}

/* Status chip overlaid on the cover */
.chip { position: absolute; top: 12px; left: 12px; z-index: 2; box-shadow: 0 1px 6px rgba(0,0,0,.5); }

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 18px;
  width: 100%;
  flex: 1;
}
.card-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.card-title {
  font-family: Georgia, "Times New Roman", serif;
  color: #f3ead6;
  font-size: 1.3rem;
}
.card-desc { color: var(--muted); font-size: .88rem; }

.card-side { margin-top: auto; width: 100%; }
.card-side .btn { display: block; text-align: center; }

.badge {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.badge-available { background: var(--green); color: #e2f6e5; }
.badge-wip { background: #4a3c19; color: #f0d59a; border: 1px solid #8a6d2a; }

/* Work-in-progress cards: dimmed, not clickable */
.card.is-wip { opacity: .72; filter: grayscale(.2); cursor: default; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #eafbe9;
  border: 1px solid #1d4a22;
}
a.card:hover .btn-primary { background: var(--green-hover); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 22px 0;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
.site-footer p { margin: 4px 0; }
.site-footer .muted { color: #6d6455; }
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.footer-legal-links a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-links a:hover { color: var(--gold); }

/* ---------- Cookie policy page ---------- */
.policy { max-width: 860px; margin: 0 auto; padding: 8px 0 48px; }
.policy h2 {
  margin: 1.8em 0 .5em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  text-align: left;
  color: var(--gold);
}
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--text); }
.policy ul { padding-left: 1.25em; margin: 0 0 1em; }
.policy li { margin-bottom: .5em; }
.policy .table-scroll { overflow-x: auto; margin: 0 0 10px; }
.policy-table {
  width: 100%;
  min-width: 640px;
  border: 2px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
}
.policy-table th,
.policy-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.policy-table thead th {
  background: rgba(0, 0, 0, .35);
  color: var(--gold);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.policy-table tbody tr:last-child td { border-bottom: 0; }
.policy-table td .muted { font-weight: 400; }
.policy-consent {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.policy-consent:hover { background: rgba(232, 180, 74, .12); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .games { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* Phone: compact two-row header — logo on top, controls centred beneath. */
@media (max-width: 620px) {
  .topbar-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
  }
  .brand img { width: 148px; }
  .topbar-side {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .intro { padding: 34px 0 22px; }
  .intro-title { font-size: 1.9rem; }
  .intro-lead { font-size: 1rem; }

  .games { grid-template-columns: 1fr; gap: 16px; }
  .card-cover { height: 170px; }
  .card-body { padding: 14px 16px 16px; }

  .policy { padding-bottom: 32px; }
}

@media (max-width: 380px) {
  .brand img { width: 132px; }
  .intro-title { font-size: 1.7rem; }
}
