/* Mellstroy Casino — mobile-first editorial theme */
:root {
  --bg-deep: #07060a;
  --bg-panel: #12101a;
  --bg-elevated: #1a1724;
  --border: rgba(201, 162, 39, 0.22);
  --gold: #e4bc3c;
  --gold-dim: #9a7b28;
  --text: #f3f0e8;
  --text-muted: #a39e92;
  --accent-line: linear-gradient(90deg, transparent, var(--gold), transparent);
  --radius: 14px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --tap-min: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(60, 40, 100, 0.08), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(201, 162, 39, 0.06), transparent 40%);
  min-height: 100dvh;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--bg-deep);
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: max(0.65rem, env(safe-area-inset-top, 0px)) 1rem 0.65rem;
  background: rgba(7, 6, 10, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--bg-deep);
  border-radius: 10px;
  border: 1px solid rgba(255, 220, 140, 0.45);
  background: linear-gradient(180deg, #f5d56a 0%, var(--gold) 42%, #b8891f 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 4px 14px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.btn-play:hover {
  filter: brightness(1.06);
}

.btn-play:active {
  transform: translateY(1px);
  filter: brightness(0.97);
}

.btn-play:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-play--header {
  min-height: 40px;
  padding: 0 0.9rem;
  font-size: 0.68rem;
}

.btn-play--hero {
  width: 100%;
  min-height: var(--tap-min);
  margin: 0 0 0.9rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
}

@media (min-width: 380px) {
  .btn-play--header {
    min-height: 44px;
    padding: 0 1rem;
    font-size: 0.72rem;
  }
}

.brand-mark span {
  color: var(--gold);
  font-weight: 700;
}

.badge-18 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gold-dim);
  white-space: nowrap;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1rem max(3.5rem, env(safe-area-inset-bottom, 0px));
}

.hero {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}

.hero-img-link {
  display: block;
  margin: 0 0 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.hero-img-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  vertical-align: middle;
}

.hero-divider {
  height: 3px;
  width: 4rem;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 0.25rem;
}

.toc {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 2rem;
}

.toc h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--gold);
}

.toc ul {
  margin: 0;
  padding-left: 1.1rem;
}

.toc li {
  margin-bottom: 0.45rem;
}

.toc a {
  font-size: 0.92rem;
}

section.content-block {
  margin-bottom: 2.25rem;
}

section.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

section.content-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.35rem 0 0.6rem;
  color: var(--gold-dim);
}

section.content-block p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
}

section.content-block p:last-child {
  margin-bottom: 0;
}

.spec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.spec-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  vertical-align: top;
}

.spec-table th {
  font-weight: 600;
  color: var(--gold);
  width: 38%;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table td {
  color: var(--text-muted);
}

.faq details {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq summary {
  min-height: var(--tap-min);
  padding: 0.85rem 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer strong {
  color: var(--gold-dim);
}

@media (min-width: 480px) {
  main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .spec-table th {
    width: 32%;
  }
}
