/* One Dollar Dynasty — site styles (game palette: deep navy + gold). */
:root {
  --bg: #0b0e26;
  --bg2: #151a45;
  --panel: rgba(24, 30, 69, 0.82);
  --panel-solid: #181e45;
  --stroke: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --dim: rgba(255, 255, 255, 0.74);
  --gold: #ffc93c;
  --gold-deep: #f29a0e;
  --money: #2ef29a;
  --diamond: #4fd2ff;
  --danger: #ff5470;
  --purple: #8c6cff;
  --pink: #ff5fa2;
  --radius: 18px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 70% -10%, #3b2a8f 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, #241c6b 0%, transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: "Fredoka", "Outfit", sans-serif; line-height: 1.2; margin: 0 0 0.5em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 14, 38, 0.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 19px; color: #fff; white-space: nowrap; }
.brand img { width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--dim); padding: 6px 10px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav a.on { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.lang {
  appearance: none; -webkit-appearance: none;
  background: var(--panel-solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffc93c'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #fff; border: 1px solid var(--stroke); border-radius: 10px;
  padding: 7px 28px 7px 10px; font: inherit; font-size: 14px; cursor: pointer;
}
.menu-btn { display: none; background: none; border: 1px solid var(--stroke); color: #fff; border-radius: 10px; padding: 6px 10px; font-size: 18px; cursor: pointer; }

@media (max-width: 760px) {
  .menu-btn { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--stroke); padding: 8px 16px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
  .brand { font-size: 16px; }
  .lang { max-width: 118px; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 36px 16px; text-align: center; }
.hero .logo { width: min(300px, 70%); height: auto; aspect-ratio: 900 / 373; object-fit: contain; margin: 0 auto 16px; filter: drop-shadow(0 8px 28px rgba(255, 201, 60, 0.25)); }
.hero-video {
  display: block; width: 100%; max-width: 880px; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  margin: 0 auto 28px; border-radius: 22px; border: 1px solid var(--stroke); background: var(--panel-solid);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 60px rgba(255, 201, 60, 0.18), 0 0 120px rgba(140, 108, 255, 0.18);
}
@media (max-width: 420px) { .hero-video { border-radius: 14px; margin-bottom: 22px; } }
.hero h1 { font-size: clamp(30px, 5.2vw, 52px); }
.hero h1 .gold { color: var(--gold); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--dim); max-width: 720px; margin: 0 auto 26px; }
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px; padding: 9px 18px; min-width: 190px; text-align: left;
}
.badge:hover { text-decoration: none; border-color: var(--gold); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge small { display: block; font-size: 11px; opacity: 0.8; line-height: 1.1; }
.badge b { display: block; font-size: 18px; line-height: 1.15; }
.badge.soon { opacity: 0.75; cursor: default; }
.soon-note { color: var(--dim); font-size: 14px; margin-top: 10px; }

/* ---------- sections ---------- */
section { padding: 30px 0; }
.sec-title { text-align: center; font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 22px; }
.sec-title span { color: var(--gold); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 20px; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--gold)); }
.card .ico { font-size: 34px; line-height: 1; margin-bottom: 10px; }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--dim); font-size: 15.5px; }

/* screenshots: img/screens/<lang>/01..08.jpg (site.js picks by language) */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.shot { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--stroke); background: var(--panel-solid); display: flex; align-items: center; justify-content: center; color: var(--dim); }
.shot img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.25s; }
.shot img:hover { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; background: rgba(5, 6, 20, 0.88); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 12px; }

.cta { text-align: center; background: linear-gradient(135deg, rgba(255, 201, 60, 0.18), rgba(140, 108, 255, 0.18)); border: 1px solid var(--stroke); border-radius: 24px; padding: 30px 18px; }
.cta h2 { font-size: clamp(22px, 3.2vw, 30px); }
.cta p { color: var(--dim); margin: 0 0 18px; }

/* ---------- documents ---------- */
.doc { padding: 36px 0 20px; }
.doc .paper { background: var(--panel); border: 1px solid var(--stroke); border-radius: 22px; padding: clamp(18px, 4vw, 40px); }
.doc h1 { font-size: clamp(28px, 4.2vw, 40px); color: var(--gold); }
.doc .updated { color: var(--dim); font-size: 14px; margin-bottom: 18px; }
.doc h2 { font-size: 22px; margin-top: 1.6em; color: #fff; }
.doc h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); margin-right: 10px; vertical-align: middle; }
.doc p, .doc li { color: rgba(255, 255, 255, 0.86); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 0.3em 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--stroke); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: rgba(255, 255, 255, 0.06); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.toc a { font-size: 13.5px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke); color: var(--dim); padding: 4px 10px; border-radius: 999px; }
.toc a:hover { color: #fff; text-decoration: none; }
.note { border-left: 4px solid var(--gold); background: rgba(255, 201, 60, 0.08); padding: 12px 14px; border-radius: 10px; margin: 14px 0; }
.note.red { border-color: var(--danger); background: rgba(255, 84, 112, 0.1); }

/* ---------- delete flow ---------- */
.box { background: var(--panel-solid); border: 1px solid var(--stroke); border-radius: 18px; padding: 20px; margin: 18px 0; }
.box h3 { margin-top: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 12px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--gold); color: #1b1300; min-height: 46px;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid var(--stroke); }
.btn.white { background: #fff; color: #222; }
.btn.black { background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn.red { background: var(--danger); color: #fff; }
.btn svg { width: 20px; height: 20px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.field { display: block; width: 100%; margin: 6px 0 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--stroke); background: #0f1335; color: #fff; font: inherit; }
.field:focus { outline: 2px solid var(--gold); border-color: transparent; }
.msg { margin-top: 12px; padding: 10px 14px; border-radius: 10px; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(255, 84, 112, 0.15); color: #ffc2cc; }
.msg.ok { background: rgba(46, 242, 154, 0.12); color: #b8ffe0; }
.who { font-weight: 700; color: var(--money); word-break: break-all; }
.hidden { display: none !important; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--stroke); margin-top: 40px; padding: 26px 0 34px; color: var(--dim); font-size: 14.5px; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
footer a { color: var(--dim); }
footer a:hover { color: #fff; }
