/* Shared styles for the informational pages of domino-partners.net
   (rules, strategy, faq, glossary, variants, history, about, contact, terms,
   privacy, embed). Keeps a single, consistent look and navigation across the
   whole site so every page is clearly part of one site. */

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

html { scroll-behavior: smooth; }

body {
  background: #0d1420;
  color: #dce6f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: #ffd76a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Site header / navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1d2740;
}
.site-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.site-brand span {
  background: linear-gradient(120deg, #ffd76a, #ff8a5c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.site-nav-links a {
  color: #b9c7dd;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.site-nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.site-nav-links a.play {
  color: #fff;
  background: linear-gradient(120deg, #ff8a3c, #ff6a00);
  font-weight: 600;
}
.site-nav-links a.play:hover { filter: brightness(1.1); }

/* ---------- Content ---------- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 22px 72px;
}
.page-head {
  margin-bottom: 30px;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #ffd76a, #ff8a5c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  color: #93a5c0;
  font-size: 17px;
  margin-bottom: 8px;
}
h2 {
  color: #3aa6ff;
  font-size: 22px;
  margin: 34px 0 10px;
  padding-top: 8px;
}
h3 {
  color: #c9d8ef;
  font-size: 17px;
  margin: 22px 0 6px;
}
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 24px; }
li { margin-bottom: 8px; }
strong { color: #fff; }
code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #141c2b;
  padding: 1px 6px;
  border-radius: 6px;
  color: #ffd76a;
}
hr {
  border: none;
  border-top: 1px solid #1d2740;
  margin: 34px 0;
}
blockquote {
  border-left: 3px solid #ffd76a;
  margin: 18px 0;
  padding: 6px 0 6px 18px;
  color: #b9c7dd;
  font-style: italic;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
th, td {
  border: 1px solid #22304a;
  padding: 9px 12px;
  text-align: left;
}
th { background: #141c2b; color: #ffd76a; }
tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

.back {
  display: inline-block;
  margin-bottom: 22px;
  color: #93a5c0;
  text-decoration: none;
  border: 1px solid #2a3850;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
}
.back:hover { color: #fff; border-color: #ffd76a; text-decoration: none; }

.card {
  border: 1px solid #22304a;
  border-radius: 16px;
  padding: 22px;
  margin: 22px 0;
  background: rgba(58, 166, 255, 0.05);
}
.card.orange { background: rgba(255, 138, 60, 0.06); border-color: #2a2f3a; }

.cta {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 30px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3c, #ff6a00);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.08); text-decoration: none; }
.cta-box { margin-top: 40px; padding: 26px; border: 1px solid #2a3850; border-radius: 16px; background: rgba(58, 166, 255, 0.06); }

/* FAQ */
.faq-q {
  font-weight: 700;
  color: #fff;
  margin: 22px 0 6px;
  font-size: 17px;
}
.faq-q::before { content: "Q. "; color: #ffd76a; }
.faq-a::before { content: "A. "; color: #3aa6ff; }

/* Glossary */
.glossary-term {
  font-weight: 700;
  color: #ffd76a;
  margin: 20px 0 2px;
  font-size: 17px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #1d2740;
  padding: 26px 22px 48px;
  text-align: center;
  color: #93a5c0;
  font-size: 14px;
  line-height: 1.9;
}
.site-footer nav { margin-bottom: 10px; }
.site-footer a {
  color: #93a5c0;
  text-decoration: none;
  margin: 0 8px;
  white-space: nowrap;
}
.site-footer a:hover { color: #ffd76a; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-nav-inner { flex-direction: column; align-items: flex-start; }
  .site-nav-links a { padding: 5px 9px; font-size: 13px; }
  h1 { font-size: 27px; }
}
