/* Roman's Game hub — v2026-10-11a */
:root {
  --bg: #0a0a0f;
  --bg2: #101018;
  --gold: #c9a227;
  --gold-dim: #8a7320;
  --text: #e8e4d8;
  --muted: #9a958a;
  --card: #14141c;
  --serif: 'Cinzel', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201,162,39,0.06), transparent),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(40,40,70,0.25), transparent);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

img, video, iframe { max-width: 100%; display: block; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,162,39,0.25);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.7rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.08em;
  color: var(--gold); text-decoration: none;
}
.brand span { color: var(--text); font-size: 0.8rem; letter-spacing: 0.2em; display: block; line-height: 1; }
.nav-links { display: flex; gap: 1.1rem; list-style: none; }
.nav-links a {
  color: var(--text); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.04em;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--gold); color: var(--gold); font-size: 1.2rem; padding: 0.2rem 0.6rem; border-radius: 4px; cursor: pointer; }

/* ---- layout ---- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
section.block { padding: 3rem 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); margin: 0 auto; max-width: 800px; }

h1, h2, h3 { font-family: var(--serif); color: var(--gold); letter-spacing: 0.05em; line-height: 1.3; }
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.9rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; color: var(--text); }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---- hero ---- */
.hero { text-align: center; padding: 2.5rem 0 2rem; }
.hero-tag { font-style: italic; color: var(--muted); margin: 1rem auto 1.5rem; max-width: 640px; }
.video-frame {
  position: relative; width: 100%; max-width: 860px; margin: 0 auto;
  aspect-ratio: 16/9; background: #000; border: 1px solid rgba(201,162,39,0.35);
  border-radius: 6px; overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.btn {
  display: inline-block; font-family: var(--serif); letter-spacing: 0.12em;
  background: var(--gold); color: #0a0a0f; text-decoration: none;
  padding: 0.9rem 2.4rem; border-radius: 4px; font-size: 1.05rem; font-weight: 700;
  border: none; cursor: pointer; margin-top: 1.2rem;
}
.btn:hover { background: #ddb93a; }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: rgba(201,162,39,0.12); }

/* ---- defender cards ---- */
.def-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 1.5rem;
}
.def-card {
  background: var(--card); border: 1px solid rgba(201,162,39,0.25); border-radius: 6px;
  overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.def-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.def-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.def-card .def-name { font-family: var(--serif); color: var(--gold); text-align: center; padding: 0.6rem 0.3rem 0.2rem; font-size: 1rem; }
.def-card .def-trait { text-align: center; font-size: 0.78rem; color: var(--muted); padding: 0 0.4rem 0.8rem; }

/* ---- defender page ---- */
.def-hero { text-align: center; padding: 2rem 0 1rem; }
.def-hero img { width: 100%; max-width: 900px; margin: 0 auto 1.5rem; border-radius: 6px; border: 1px solid rgba(201,162,39,0.35); }
.def-meta { color: var(--muted); font-size: 0.95rem; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.def-nav { display: flex; justify-content: space-between; margin-top: 2.5rem; }
.def-nav a { color: var(--gold); text-decoration: none; font-family: var(--serif); }
.shorts-frame { max-width: 320px; margin: 1.5rem auto; aspect-ratio: 9/16; border: 1px solid rgba(201,162,39,0.35); border-radius: 6px; overflow: hidden; position: relative; background: #000; }
.shorts-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- watch page ---- */
.watch-item { margin-bottom: 3rem; text-align: center; }
.watch-item h3 { margin-bottom: 0.8rem; }
.watch-link { display: inline-block; margin-top: 0.6rem; color: var(--gold); font-size: 0.9rem; text-decoration: none; }
.shorts-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; margin-top: 1rem; }
.shorts-row .shorts-frame { margin: 0; max-width: none; }

/* ---- forms ---- */
.form-box { background: var(--card); border: 1px solid rgba(201,162,39,0.3); border-radius: 6px; padding: 1.8rem; max-width: 560px; margin: 1.5rem auto; }
.form-box label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.3rem; }
.form-box input[type="text"], .form-box input[type="email"], .form-box textarea {
  width: 100%; padding: 0.7rem; margin-bottom: 1rem; background: var(--bg2);
  border: 1px solid rgba(201,162,39,0.3); border-radius: 4px; color: var(--text); font-family: var(--sans);
}
.form-box textarea { min-height: 120px; resize: vertical; }

/* ---- faq ---- */
.faq-item { border-bottom: 1px solid rgba(201,162,39,0.2); margin-bottom: 0.4rem; }
.faq-q { width: 100%; background: none; border: none; color: var(--text); font-size: 1rem; text-align: left; padding: 1rem 0; cursor: pointer; font-family: var(--sans); }
.faq-q:hover { color: var(--gold); }
.faq-a { display: none; padding: 0 0 1.2rem; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* ---- lore ---- */
.chapter { margin-bottom: 2.5rem; }
.chapter h3 { border-bottom: 1px solid rgba(201,162,39,0.25); padding-bottom: 0.4rem; margin-bottom: 0.8rem; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid rgba(201,162,39,0.25); margin-top: 3rem; padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: 0.85rem; }
.site-footer a { color: var(--gold); text-decoration: none; margin: 0 0.5rem; }
.social-row { display: flex; justify-content: center; gap: 1.2rem; margin: 1rem 0; flex-wrap: wrap; }
.social-row a { color: var(--gold); text-decoration: none; font-size: 0.95rem; border: 1px solid rgba(201,162,39,0.4); padding: 0.5rem 1rem; border-radius: 4px; }
.social-row a:hover { background: rgba(201,162,39,0.12); }
.version-tag { margin-top: 1rem; font-size: 0.75rem; color: #5a564c; }

/* ---- sound toggles ---- */
.sound-toggle {
  background: none; border: 1px solid rgba(201,162,39,0.4); border-radius: 4px;
  font-size: 1.05rem; line-height: 1; padding: 0.3rem 0.5rem; cursor: pointer;
  margin-left: auto; color: var(--gold);
}
.sound-toggle:hover { background: rgba(201,162,39,0.12); }
.sound-toggle.off { opacity: 0.55; }
.ambient-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--gold); border: 1px solid rgba(201,162,39,0.5);
  border-radius: 20px; padding: 0.45rem 1.1rem; font-size: 0.9rem; cursor: pointer;
  margin: 0.5rem 0 1.5rem;
}
.ambient-toggle:hover { background: rgba(201,162,39,0.12); }
.ambient-toggle.on { background: rgba(201,162,39,0.18); }
@media (max-width: 760px) {
  .sound-toggle { position: absolute; right: 3.2rem; top: 50%; transform: translateY(-50%); margin-left: 0; }
}

/* ---- fade-in ---- */
.fade { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade.visible { opacity: 1; transform: none; }

/* ---- mobile ---- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,15,0.98); flex-direction: column; padding: 1rem;
    border-bottom: 1px solid rgba(201,162,39,0.25); gap: 0.8rem;
  }
  .nav-links.open { display: flex; }
  .def-grid { grid-template-columns: repeat(2, 1fr); }
  .shorts-row { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.6rem; }
  section.block { padding: 2rem 0; }
  .def-nav { flex-direction: column; gap: 0.8rem; text-align: center; }
}

/* ---- push notification soft prompt ---- */
.push-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 4, 10, 0.72);
  backdrop-filter: blur(3px);
}
.push-prompt {
  max-width: 26rem;
  width: 100%;
  background: #101018;
  border: 1px solid var(--gold, #c9a227);
  border-radius: 14px;
  padding: 1.5rem;
  color: #f2ead8;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}
.push-prompt h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}
.push-prompt p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
}
.push-name-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.push-name-label small { opacity: 0.6; }
.push-name-label input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #3a3a4a;
  background: #0a0a0f;
  color: #f2ead8;
  font-size: 1rem;
}
.push-types {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}
.push-types label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}
.push-types input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gold, #c9a227);
}
.push-prompt-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.push-toggle {
  background: none;
  border: 1px solid var(--gold, #c9a227);
  color: var(--gold, #c9a227);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  margin: 0.8rem 0 0.2rem;
}
.push-toggle:hover { background: rgba(201, 162, 39, 0.12); }
