/* Tiny World Thief - website styles. Colours come from the game: deep night blue, warm lamp gold, orange buttons. */
:root {
  --bg: #0b0e1c;
  --bg2: #111528;
  --card: #141a33;
  --line: rgba(242, 194, 107, 0.22);
  --text: #fff4e2;
  --dim: #a7aecb;
  --fire: #ff9a3c;
  --gold: #ffc94a;
  --red: #ff5d5d;
  --green: #5fe08c;
  --radius: 18px;
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 14, 28, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 20px var(--head); }
.logo img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 0 2px rgba(255, 201, 74, 0.6), 0 0 14px rgba(255, 154, 60, 0.45); }
.links { display: flex; gap: 6px; }
.links a { color: var(--dim); text-decoration: none; font-weight: 800; padding: 8px 12px; border-radius: 10px; }
.links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.links a.active { color: #fff; background: rgba(255, 154, 60, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 154, 60, 0.45); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: #fff; font-size: 22px; border-radius: 10px; padding: 4px 12px; cursor: pointer; }

/* ---------- buttons, badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 16px;
  background: linear-gradient(180deg, #ffb35c, #ff8a1f);
  color: #2a1300; text-decoration: none; font: 700 19px var(--head);
  border: 2px solid #ffd7a3;
  box-shadow: 0 6px 0 #b85a00, 0 10px 24px rgba(255, 140, 30, 0.35);
  transition: transform 0.12s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border: 2px solid rgba(255, 255, 255, 0.55); box-shadow: none; }
.btn.soon { background: rgba(20, 26, 51, 0.85); color: var(--gold); border: 2px dashed rgba(255, 201, 74, 0.7); box-shadow: none; cursor: default; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.badge { display: inline-block; padding: 7px 16px; border-radius: 99px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 201, 74, 0.6); color: var(--gold); font-weight: 800; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 90px 0 140px; min-height: 640px; background-size: cover; background-position: 70% center; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1.title { font: 700 clamp(48px, 8vw, 96px)/0.95 var(--head); margin: 22px 0 0; color: #fff4e2; text-shadow: 0 5px 0 #1a1030, 0 12px 30px rgba(0, 0, 0, 0.6); }
.hero h1.title span { color: var(--gold); text-shadow: 0 5px 0 #6a3000, 0 12px 30px rgba(0, 0, 0, 0.6); }
.hero .tag { font: 600 clamp(22px, 3.4vw, 34px)/1.1 var(--head); margin: 12px 0 0; color: #fff; }
.hero p.lead { max-width: 560px; margin: 14px 0 0; font-size: 20px; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85); }

/* ---------- stats strip ---------- */
.stats { margin-top: -60px; position: relative; z-index: 2; }
.stats .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: linear-gradient(180deg, #1a2142, #111528); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: 0 0 18px rgba(255, 154, 60, 0.12); }
.stat b { display: block; font: 700 34px/1.1 var(--head); color: var(--gold); }
.stat span { color: var(--dim); font-weight: 800; font-size: 15px; }

/* ---------- sections ---------- */
section { padding: 70px 0; }
h2 { font: 700 clamp(26px, 4vw, 40px)/1.2 var(--head); margin: 0 0 8px; text-align: center; }
h2 .hot { color: var(--fire); }
.sub { text-align: center; color: var(--dim); margin: 0 auto 36px; max-width: 660px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--fire), var(--gold)); }
.card .emoji { font-size: 38px; line-height: 1; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font: 600 19px var(--head); }
.card p { margin: 0; color: var(--dim); font-size: 16px; }

/* screenshots (landscape game) */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 420px; scroll-snap-align: start; }
.shots img { width: 420px; border-radius: 18px; border: 3px solid rgba(255, 201, 74, 0.4); box-shadow: 0 0 24px rgba(255, 154, 60, 0.2); }
.shots figcaption { text-align: center; color: var(--dim); font-weight: 800; margin-top: 10px; font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 154, 60, 0.15); border: 2px solid var(--fire); color: var(--fire); font: 700 20px var(--head); margin-bottom: 12px; }
.step h3 { margin: 0 0 4px; font: 600 20px var(--head); }
.step p { margin: 0; color: var(--dim); }

/* call to action */
.cta { text-align: center; border-radius: 26px; padding: 54px 24px; background: linear-gradient(135deg, rgba(11, 14, 28, 0.85), rgba(60, 30, 10, 0.6)), url("/img/hero.jpg") center / cover; border: 2px solid var(--fire); box-shadow: 0 0 40px rgba(255, 154, 60, 0.25); }
.cta h2 { color: #fff; }
.cta .sub { margin-bottom: 26px; }

/* ---------- documents (privacy, terms, support, delete) ---------- */
.page { padding: 48px 20px 80px; }
.doc { max-width: 820px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; padding: 44px 46px; }
.doc h1 { font: 700 clamp(28px, 4.5vw, 42px)/1.2 var(--head); margin: 0 0 6px; }
.doc .date { color: var(--dim); margin-top: 0; }
.doc h2 { text-align: left; font-size: 21px; margin: 34px 0 8px; color: var(--gold); }
.doc h3 { margin: 18px 0 6px; font-size: 19px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: rgba(255, 255, 255, 0.05); }
.table-scroll { overflow-x: auto; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--dim); font-size: 15px; }
footer a { color: var(--dim); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; font-weight: 800; }
.foot-links a:hover { color: #fff; }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats .row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #151a36; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .links.open { display: flex; }
  .hero { padding: 40px 0 100px; min-height: 560px; background-position: 62% center; }
  .hero p.lead { font-size: 18px; background: rgba(11, 14, 28, 0.6); border-radius: 14px; padding: 10px 12px; }
  .shots figure { flex-basis: 300px; }
  .shots img { width: 300px; }
  section { padding: 50px 0; }
  .doc { padding: 28px 20px; border-radius: 18px; }
  .page { padding: 24px 12px 60px; }
}
@media (max-width: 480px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}
