/* Royal Stars Casino — globales Stylesheet */

:root {
  --bg: #100204;
  --bg-alt: #1a0408;
  --panel: #1f0a0d;
  --gold: #d4a23a;
  --gold-light: #ffe9a8;
  --red: #b8101f;
  --red-light: #ff4d5e;
  --text: #f3e9dc;
  --text-dim: #c9b9a8;
  --border: #3a1318;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

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

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

a:hover {
  color: var(--red-light);
}

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

/* ===== Header ===== */
.site-header {
  background: linear-gradient(180deg, #1a0408 0%, #0d0203 100%);
  border-bottom: 2px solid var(--gold);
  position: relative;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.site-header .logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .logo-link img {
  height: 56px;
  width: auto;
}

.header-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.header-nav a:hover {
  background: var(--red);
  color: #fff;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-login {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-login:hover {
  background: var(--gold);
  color: #1a0408;
}

.btn-register {
  background: linear-gradient(180deg, var(--red-light), var(--red));
  color: #fff;
}

.btn-register:hover {
  background: linear-gradient(180deg, #ff6b78, #8e0c18);
  color: #fff;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: var(--text-dim);
}

.breadcrumbs a {
  color: var(--text-dim);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--gold-light);
}

.breadcrumbs li[aria-current] {
  color: var(--gold-light);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--bg);
}

.hero .wrap {
  padding-top: 20px;
  position: relative;
  max-width: var(--max-width);
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.hero-cta {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  padding: 14px 38px;
  font-size: 1.05rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

/* ===== Content ===== */
main {
  background: var(--bg);
}

article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px 50px;
}

article h1 {
  color: var(--gold-light);
  font-size: 1.9rem;
  margin-top: 0;
}

article h2 {
  color: var(--gold-light);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-top: 2.2em;
  font-size: 1.4rem;
}

article h3 {
  color: var(--red-light);
  font-size: 1.15rem;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  background: var(--panel);
}

article th,
article td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

article th {
  background: var(--red);
  color: #fff;
}

article tr:nth-child(even) td {
  background: rgba(212, 162, 58, 0.06);
}

/* ===== TOC accordion ===== */
.toc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 1.5em 0;
  padding: 4px 18px;
}

.toc summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--gold-light);
  padding: 12px 0;
  list-style: none;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s;
}

.toc[open] summary::before {
  transform: rotate(90deg);
}

.toc ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.toc li {
  margin: 6px 0;
}

/* ===== Footer ===== */
.site-footer {
  background: #0a0102;
  border-top: 2px solid var(--gold);
  padding: 30px 0 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 18px;
}

.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .site-header .wrap {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .site-header .logo-link img {
    height: 38px;
  }

  .header-nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .header-nav a {
    padding: 6px 8px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .header-actions {
    flex-shrink: 0;
    gap: 6px;
  }

  .btn {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  article h1 {
    font-size: 1.5rem;
  }

  article h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 380px) {
  .site-header .wrap {
    gap: 4px;
  }

  .site-header .logo-link img {
    height: 32px;
  }

  .header-nav a {
    padding: 5px 6px;
    font-size: 0.78rem;
  }

  .btn {
    padding: 6px 8px;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .site-header .logo-link img {
    height: 42px;
  }

  article table,
  article th,
  article td {
    font-size: 0.85rem;
  }

}

@media (max-width: 600px) {
  .hero .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 18px;
  }

  .hero-cta {
    position: static;
    transform: none;
    margin-top: 14px;
    padding: 11px 26px;
    font-size: 0.9rem;
  }
}
