* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #15122a;
  --bg-secondary: #2a2545;
  --clr-accent: #8b5cf6;
  --clr-blue: #3b82f6;
  --clr-green: #22c55e;
  --clr-white: #fafafa;
  --clr-gray: #94a3b8;
  --mask: rgba(0, 0, 0, 0.52);
  --touch-min: 44px;
  --safe-left: env(safe-area-inset-left, 0);
  --safe-right: env(safe-area-inset-right, 0);
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.page-layout {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  background: linear-gradient(160deg, #15122a 0%, #1e1b3a 35%, #0c1445 100%);
  color: var(--clr-white);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  padding-left: max(0px, var(--safe-left));
  padding-right: max(0px, var(--safe-right));
}

.focus-jump {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  padding: 0.7rem 1rem;
  background: var(--clr-accent);
  color: white;
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform 0.2s;
}

.focus-jump:focus {
  transform: translateY(0);
}

.masthead {
  background: var(--mask);
  backdrop-filter: blur(12px);
  padding: 0.8rem 1.5rem;
  padding-top: max(0.8rem, var(--safe-top));
  position: sticky;
  top: 0;
  z-index: 100;
}

.masthead-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-link {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--clr-white);
  text-decoration: none;
}

.primary-nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.primary-nav-list a {
  color: var(--clr-gray);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.5rem 0.25rem;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.primary-nav-list a:hover {
  color: var(--clr-green);
}

.masthead-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.pill--primary {
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-blue));
  color: white;
}

.pill--cta {
  background: var(--clr-green);
  color: #0a0a0a;
  padding: 0.8rem 1.75rem;
  font-size: 1.05rem;
  min-height: 48px;
}

.pill--sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  background: var(--clr-blue);
  color: white;
  min-height: 36px;
}

.pill--outline {
  background: transparent;
  color: var(--clr-white);
  border: 1px solid var(--clr-gray);
  font-size: 0.9rem;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .pill:hover, .slot-item:hover { transform: none; }
}

.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 4vw, 1.5rem) clamp(1.5rem, 5vw, 2rem);
  padding-bottom: max(1.5rem, var(--safe-bottom));
}

.hero-article {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-caption {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--mask);
  padding: clamp(1rem, 5vw, 2.5rem);
  padding-bottom: max(1.5rem, var(--safe-bottom));
  text-align: center;
}

.hero-article h1 {
  font-size: clamp(1.45rem, 3.8vw, 2.2rem);
  margin-bottom: 0.4rem;
}

.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--clr-green);
  margin-bottom: 1rem;
}

.shortcuts {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 1.4rem;
  min-height: var(--touch-min);
  background: var(--bg-secondary);
  border-radius: 12px;
  color: var(--clr-white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.shortcut-item:hover {
  background: var(--clr-accent);
}

.shortcut-ico {
  font-size: 1.8rem;
  font-style: normal;
}

.content-prose {
  margin-bottom: 2rem;
}

.content-prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin: 1.75rem 0 0.75rem;
  color: var(--clr-blue);
  line-height: 1.25;
}

.content-prose h2:first-child {
  margin-top: 0;
}

.content-prose h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  margin: 1.35rem 0 0.55rem;
  color: var(--clr-accent);
  line-height: 1.3;
}

.content-prose p {
  margin-bottom: 0.85rem;
  color: rgba(250, 250, 250, 0.92);
}

.content-prose ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}

.content-prose li {
  margin-bottom: 0.45rem;
}

.content-prose li::marker {
  color: var(--clr-green);
}

.slot-section {
  margin-bottom: 2rem;
}

.slot-section-title {
  font-size: 1.65rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--clr-blue);
}

.slot-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 3vw, 1.25rem);
}

.slot-item {
  display: block;
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--clr-white);
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.slot-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.slot-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.slot-item-name {
  display: block;
  padding: 0.7rem;
  font-weight: 600;
  text-align: center;
}

.table-section-title {
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--bg-secondary);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
}

.info-table th,
.info-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.info-table th {
  background: rgba(139, 92, 246, 0.28);
  font-weight: 600;
}

.info-table a {
  color: var(--clr-green);
}

.page-foot {
  background: rgba(0, 0, 0, 0.38);
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 1.5rem);
  padding-bottom: max(1.5rem, var(--safe-bottom));
  margin-top: 2rem;
}

.page-foot-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
}

.foot-head {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: var(--clr-blue);
}

.foot-ul {
  list-style: none;
}

.foot-ul li {
  margin-bottom: 0.35rem;
}

.foot-ul a {
  color: var(--clr-gray);
  text-decoration: none;
  font-size: 0.88rem;
}

.foot-ul a:hover {
  color: var(--clr-green);
}

.foot-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.foot-pay img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.08);
}

@media (min-width: 768px) {
  .slot-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .slot-section-title {
    font-size: 1.8rem;
  }
}

@media (min-width: 1024px) {
  .page-foot-grid {
    gap: 2rem;
  }

  .shortcuts {
    gap: 1.25rem;
  }
}

@media (max-width: 767px) {
  .hero-article,
  .hero-caption {
    min-height: 82dvh;
    min-height: 82vh;
  }

  .masthead-inner {
    flex-direction: column;
    padding: 0.5rem 0;
  }

  .masthead {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .primary-nav-list {
    justify-content: center;
    gap: 0.25rem 0.75rem;
  }

  .shortcuts {
    gap: 0.75rem;
  }

  .slot-item-name {
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
  }

  .info-table thead {
    display: none;
  }

  .info-table tr {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  .info-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border: none;
  }

  .info-table td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 0.5rem;
    color: var(--clr-gray);
  }

  .info-table td:last-child {
    justify-content: flex-end;
  }

  .info-table--text-only td:last-child {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-article,
  .hero-caption {
    min-height: 72dvh;
    min-height: 72vh;
  }

  .hero-caption {
    padding: 1rem 0.75rem;
  }

  .hero-article h1 {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-caption .pill--cta {
    min-width: 160px;
  }

  .slot-gallery {
    gap: 0.65rem;
  }

  .page-foot-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
