:root {
  --bg: #08111f;
  --bg-soft: #0d182c;
  --panel: rgba(13, 24, 44, 0.92);
  --panel-strong: rgba(10, 18, 33, 0.96);
  --line: rgba(216, 185, 108, 0.2);
  --line-strong: rgba(216, 185, 108, 0.38);
  --text: #f5ead0;
  --muted: #cdbb91;
  --muted-soft: #9f9480;
  --gold: #d7a13a;
  --gold-bright: #f1d487;
  --gold-soft: rgba(215, 161, 58, 0.14);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-height: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top, rgba(215, 161, 58, 0.14), transparent 24%),
    radial-gradient(circle at 20% 20%, rgba(241, 212, 135, 0.08), transparent 18%),
    linear-gradient(180deg, #06101c 0%, #08111f 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 12, 24, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215, 161, 58, 0.12);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand-name,
.brand-tagline,
.eyebrow,
.section-kicker,
h1,
h2,
h3,
h4,
.panel-label,
.info-number,
.community-link-label,
.game-status,
.game-format,
.gm-role,
.footer-title,
.results-summary strong,
.modal-subtitle {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.03em;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold-bright);
  border-radius: 999px;
}

.hero-section {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.game-card,
.gm-card,
.info-card,
.link-panel,
.announcement-inner,
.filters-panel {
  background: linear-gradient(180deg, rgba(13, 24, 44, 0.94), rgba(8, 17, 31, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 212, 135, 0.12), transparent 68%);
  pointer-events: none;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  color: var(--gold-bright);
  font-size: 0.82rem;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  max-width: 11ch;
  color: var(--text);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  color: var(--text);
}

.hero-text,
.section-text,
.info-card p,
.community-link-text,
.gm-card p,
.hero-panel-card p,
.footer-copy,
.footer-meta p,
.results-summary,
.feature-list li,
.modal-description,
.modal-list,
.modal-facts,
.game-short-description {
  color: var(--muted);
}

.hero-text {
  margin: 20px 0 0;
  max-width: 64ch;
  font-size: 1.06rem;
}

.hero-actions,
.game-card-actions,
.filters-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #221507;
  background: linear-gradient(180deg, #f0d68b 0%, #d7a13a 100%);
  box-shadow: 0 10px 28px rgba(215, 161, 58, 0.24);
}

.button-secondary {
  color: var(--gold-bright);
  background: rgba(215, 161, 58, 0.08);
  border: 1px solid var(--line-strong);
}

.button-small {
  min-height: 42px;
  padding: 0 15px;
  font-size: 0.9rem;
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 22px;
  display: grid;
  gap: 18px;
}

.hero-panel-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(215, 161, 58, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.panel-label {
  display: inline-block;
  font-size: 0.84rem;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.feature-list {
  padding-left: 20px;
  margin: 0;
}

.feature-list li + li {
  margin-top: 8px;
}

.announcement-strip {
  padding: 0 0 24px;
}

.announcement-inner {
  border-radius: 20px;
  padding: 18px 22px;
}

.announcement-inner p {
  margin: 0;
}

.announcement-inner strong {
  color: var(--gold-bright);
}

.content-section {
  padding: 36px 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
}

.section-heading {
  margin-bottom: 24px;
}

.section-text {
  margin: 12px 0 0;
  max-width: 68ch;
}

.filters-panel {
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 22px;
}

.filters-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field span {
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(215, 161, 58, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 14px;
}

.filter-field input::placeholder {
  color: var(--muted-soft);
}

.filters-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.results-summary {
  margin: 0;
}

.card-grid,
.gm-grid,
.info-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gm-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card,
.gm-card,
.info-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.game-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.game-card-heading {
  min-width: 0;
}

.game-subtitle {
  margin: 0 0 6px;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.game-status,
.game-format,
.gm-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.game-status {
  background: rgba(215, 161, 58, 0.14);
  border: 1px solid rgba(215, 161, 58, 0.28);
  color: var(--gold-bright);
}

.game-format,
.gm-role {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(215, 161, 58, 0.12);
  color: var(--muted);
}

.game-title,
.gm-name,
.info-card h3,
.modal-title {
  color: var(--text);
}

.game-title {
  font-size: 1.28rem;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-system,
.game-gm {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(215, 161, 58, 0.12);
  color: var(--muted);
}

.game-short-description,
.gm-bio {
  margin: 0;
}

.game-facts,
.modal-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fact-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(215, 161, 58, 0.08);
  border: 1px solid rgba(215, 161, 58, 0.16);
  color: var(--text);
  font-size: 0.84rem;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(215, 161, 58, 0.1);
  color: var(--muted);
  font-size: 0.8rem;
}

.game-card-actions {
  margin-top: auto;
}

.gm-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.gm-name {
  font-size: 1.14rem;
}

.gm-bio {
  font-size: 0.96rem;
}

.info-number {
  font-size: 0.86rem;
  color: var(--gold-bright);
}

.info-card h3 {
  font-size: 1.15rem;
  margin-top: 8px;
}

.info-card p {
  margin: 10px 0 0;
}

.link-panel {
  border-radius: var(--radius-xl);
  padding: 20px;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, rgba(13, 24, 44, 0.94), rgba(8, 17, 31, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.community-link {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(215, 161, 58, 0.14);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.community-link:hover,
.community-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(215, 161, 58, 0.32);
  background: rgba(215, 161, 58, 0.06);
}

.community-link-label {
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.site-footer {
  padding: 40px 0 60px;
}

.footer-inner {
  padding-top: 24px;
  border-top: 1px solid rgba(215, 161, 58, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer-title {
  font-size: 1rem;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin: 0;
}

.footer-copy,
.footer-meta p {
  margin: 4px 0 0;
  font-size: 0.94rem;
}

.empty-state {
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px dashed rgba(215, 161, 58, 0.25);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 24px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 24, 44, 0.98), rgba(8, 17, 31, 0.99));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  padding: 28px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(215, 161, 58, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-bright);
  font-size: 1.6rem;
  line-height: 1;
}

.modal-header {
  padding-right: 52px;
}

.modal-subtitle {
  margin: 0 0 8px;
  color: var(--gold-bright);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.modal-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.modal-badges,
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-badges {
  margin-top: 16px;
}

.modal-meta {
  margin-top: 18px;
}

.modal-description {
  margin-top: 22px;
}

.modal-description p {
  margin: 0 0 14px;
}

.modal-section {
  margin-top: 22px;
}

.modal-section h4 {
  margin: 0 0 10px;
  color: var(--gold-bright);
  font-size: 1rem;
}

.modal-list {
  margin: 0;
  padding-left: 20px;
}

.modal-list li + li {
  margin-top: 6px;
}

.modal-actions {
  margin-top: 24px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .hero-grid,
  .gm-grid,
  .info-grid,
  .card-grid-wide {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .filters-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 78px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 17, 31, 0.98);
    border: 1px solid rgba(215, 161, 58, 0.16);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(215, 161, 58, 0.08);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero-section {
    padding-top: 42px;
  }

  .hero-copy,
  .hero-panel,
  .announcement-inner,
  .link-panel,
  .game-card,
  .gm-card,
  .info-card,
  .filters-panel,
  .modal-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .filters-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-card-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .hero-copy,
  .hero-panel {
    border-radius: 22px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero-actions,
  .game-card-actions,
  .filters-actions,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-small {
    width: 100%;
  }

  .footer-inner,
  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-card {
    width: min(100% - 12px, 100%);
    margin: 6px auto;
    max-height: calc(100vh - 12px);
    border-radius: 18px;
    padding-top: 52px;
  }
}
