:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #141414;
  --gold: #d4af37;
  --gold-soft: #f5e6a8;
  --gold-mid: #e8c547;
  --gold-deep: #a8891e;
  --text: #f7f1dc;
  --muted: #b8a66a;
  --border: #2a2410;
  --content-pad: clamp(14px, 3vw, 28px);
  --site-width: min(1080px, 92%);
  --gradient: linear-gradient(135deg, #fff1b0 0%, #d4af37 45%, #a8891e 100%);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(212, 175, 55, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 30%, rgba(232, 197, 71, 0.06), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  padding-bottom: 92px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header */
.site-header {
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  padding: 12px var(--content-pad);
  width: var(--site-width);
}

.brand {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
}

.header-left {
  align-items: center;
  display: flex;
  flex: 1;
  gap: clamp(16px, 3vw, 36px);
  min-width: 0;
}

.header-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.header-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 12px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--text);
}

.header-nav a.active {
  background: rgba(212, 175, 55, 0.12);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
  color: var(--gold-soft);
}

.header-auth {
  align-items: center;
  display: flex;
  gap: 10px;
}

.header-auth .btn {
  min-width: 148px;
  padding-left: 16px;
  padding-right: 16px;
  text-align: center;
}

.btn {
  align-items: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 12px 22px;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-login {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--gold);
  color: var(--gold);
}

.btn-login:hover {
  background: rgba(212, 175, 55, 0.12);
}

.btn-register {
  background: var(--gradient);
  color: #000000;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.btn-register:hover {
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.5);
}

/* Banner */
.primary-banner {
  margin: 16px auto 0;
  overflow: hidden;
  padding: 0 var(--content-pad);
  width: var(--site-width);
}

.primary-banner img {
  aspect-ratio: 1200 / 468;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}

/* Page */
.page-wrap {
  margin: 0 auto;
  padding: 20px var(--content-pad) 48px;
  width: var(--site-width);
}

/* Info table */
.info-table-wrap {
  margin-bottom: 24px;
}

.image-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 36px;
}

.image-grid-item {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: block;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.image-grid-item:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.2);
  transform: translateY(-3px);
}

.image-grid-item img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.info-table {
  border-collapse: collapse;
  overflow: hidden;
  table-layout: fixed;
  width: 100%;
}

.info-table th {
  background: linear-gradient(180deg, #1a1608, #0a0a0a);
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 16px 18px;
  text-align: center;
  text-transform: uppercase;
}

.info-table td {
  border: 1px solid var(--border);
  padding: 13px 16px;
  vertical-align: top;
}

.info-table tr:nth-child(odd) td {
  background: #111111;
}

.info-table tr:nth-child(even) td {
  background: #0a0a0a;
}

.info-table td:first-child {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  width: 34%;
}

.info-table td:last-child {
  color: var(--gold-soft);
}

.star {
  color: var(--gold);
  margin-right: 4px;
}

/* Article */
.article {
  background: linear-gradient(180deg, #111111, #0a0a0a);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 40px);
}

.article h1 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 18px;
  text-align: center;
}

.article h2 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  margin: 32px 0 14px;
  text-align: center;
}

.article h3 {
  color: var(--gold-soft);
  font-size: 1.05rem;
  margin: 22px 0 10px;
}

.article p {
  color: #ffffff;
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.article p a {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article p a:hover {
  color: var(--gold);
}

.article ul {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
}

.article li {
  color: var(--gold-soft);
  padding: 8px 0 8px 28px;
  position: relative;
}

.article li::before {
  color: var(--gold-soft);
  content: "★";
  left: 0;
  position: absolute;
}

.article strong {
  color: var(--gold-soft);
}

/* Sub pages */
.sub-page {
  background: linear-gradient(180deg, #111111, #0a0a0a);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 40px);
}

.sub-page h1 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  margin-bottom: 16px;
  text-align: center;
}

.sub-page h2 {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.sub-page p {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.sub-page ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.sub-page li {
  color: #ffffff;
  padding: 6px 0 6px 22px;
  position: relative;
}

.sub-page li::before {
  color: var(--gold);
  content: "★";
  left: 0;
  position: absolute;
}

.sub-page a {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.game-block {
  border-left: 3px solid var(--gold-deep);
  margin: 14px 0;
  padding-left: 16px;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.faq-item {
  background: #111111;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  align-items: center;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-size: 0.98rem;
  font-weight: 600;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 16px 18px;
  transition: color 0.2s, background 0.2s;
}

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

.faq-item summary:hover {
  background: rgba(212, 175, 55, 0.06);
}

.faq-item[open] summary {
  color: var(--gold);
}

.faq-icon {
  background: #1a1608;
  border: 1px solid var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  height: 28px;
  position: relative;
  width: 28px;
}

.faq-icon::before,
.faq-icon::after {
  background: var(--gold);
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  height: 2px;
  width: 12px;
}

.faq-icon::after {
  height: 12px;
  width: 2px;
}

.faq-item[open] .faq-icon::after {
  display: none;
}

.faq-answer {
  border-top: 1px solid var(--border);
  padding: 0 18px 16px;
}

.faq-answer p {
  color: #ffffff;
  margin: 14px 0 0;
}

.contact-list a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 auto;
  padding: 28px var(--content-pad) 20px;
  text-align: center;
  width: var(--site-width);
}

.site-footer strong {
  color: var(--gold);
}

/* Sticky bottom bar */
.sticky-cta {
  background: #000000;
  border-top: 2px solid var(--gold);
  bottom: 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  left: 0;
  position: fixed;
  right: 0;
  z-index: 200;
}

.sticky-cta a {
  align-items: center;
  background: transparent;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 4px;
  justify-content: center;
  letter-spacing: 0.02em;
  min-height: 72px;
  padding: 8px 4px;
  text-align: center;
  text-transform: none;
  transition: background 0.2s, color 0.2s;
}

.sticky-cta a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-soft);
}

.sticky-cta a img {
  display: block;
  height: 40px;
  object-fit: contain;
  width: 40px;
}

.sticky-cta a span {
  line-height: 1.1;
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-left {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .header-nav {
    justify-content: center;
    width: 100%;
  }

  .header-nav a {
    font-size: 0.78rem;
    padding: 8px 10px;
  }

  .brand-logo {
    height: 38px;
  }

  .btn {
    font-size: 0.78rem;
    padding: 11px 16px;
  }

  .info-table td:first-child {
    white-space: normal;
    width: 40%;
  }

  .info-table td {
    font-size: 0.86rem;
    padding: 10px 12px;
  }

  .sticky-cta a {
    font-size: 0.65rem;
    min-height: 68px;
  }

  .sticky-cta a img {
    height: 36px;
    width: 36px;
  }

  .image-grid {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .image-grid {
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .header-auth {
    width: 100%;
  }

  .header-auth .btn {
    flex: 1;
    min-width: 0;
  }

  .info-table {
    table-layout: fixed;
    width: 100%;
  }

  .info-table th {
    font-size: 1.05rem;
    padding: 12px 10px;
  }

  .info-table td {
    font-size: 0.78rem;
    padding: 9px 8px;
    vertical-align: top;
    word-break: break-word;
  }

  .info-table td:first-child {
    color: var(--muted);
    white-space: normal;
    width: 36%;
  }

  .info-table td:last-child {
    width: 64%;
  }
}
