:root {
  --ink: #101314;
  --ink-2: #18201e;
  --paper: #f6f8fb;
  --paper-2: #e8eef6;
  --muted: #68717b;
  --line: #d7dde6;
  --green: #11457e;
  --green-2: #1d5fa8;
  --red: #d7141a;
  --red-2: #ef3d42;
  --gold: #d3a321;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(16, 19, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.site-shell {
  min-height: 100vh;
  opacity: 0;
  pointer-events: none;
}

body.age-ok .site-shell {
  opacity: 1;
  pointer-events: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 243, 234, 0.92);
  border-bottom: 1px solid rgba(222, 212, 191, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--paper);
  background: linear-gradient(135deg, var(--green), var(--red));
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.4rem);
}

.main-nav a {
  position: relative;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0.65rem;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 28px rgba(0, 104, 71, 0.24);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--green-2);
}

.button--secondary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 28px rgba(201, 42, 42, 0.22);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--red-2);
}

.button--ghost {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button--card {
  width: 100%;
  color: var(--ink);
  background: var(--gold);
}

.button--small {
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: end;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(5rem, 10vh, 8rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 6vh, 4rem);
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 19, 20, 0.92) 0%, rgba(16, 19, 20, 0.66) 48%, rgba(16, 19, 20, 0.2) 100%),
    linear-gradient(0deg, rgba(16, 19, 20, 0.72), transparent 46%);
  z-index: 1;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__content,
.hero__panel {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: 5rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: 3rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero__lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 1rem;
}

.hero__notice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  max-width: 700px;
  padding: 0.8rem 0;
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero__panel {
  align-self: end;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(16, 19, 20, 0.58);
  backdrop-filter: blur(12px);
}

.hero__panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.hero__panel span {
  color: rgba(255, 255, 255, 0.7);
}

.hero__panel strong {
  color: var(--gold);
  font-size: 1.05rem;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-band div {
  min-height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 1.2rem 1rem;
  background: var(--white);
  text-align: center;
}

.trust-band strong {
  color: var(--green);
  font-size: 1.55rem;
  line-height: 1;
}

.trust-band span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.section__heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section__heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.section--games {
  background: var(--paper);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.game-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(16, 19, 20, 0.08);
}

.game-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.game-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
}

.game-card__body p {
  color: var(--muted);
  flex: 1;
}

.game-card__tag {
  align-self: flex-start;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.72fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  color: var(--white);
  background: var(--ink);
}

.responsible-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.responsible-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.responsible-links a {
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
}

.responsible-links a:hover,
.responsible-links a:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.rules-list {
  display: grid;
  gap: 0.85rem;
}

.rules-list div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.rules-list span {
  color: var(--gold);
  font-weight: 900;
}

.rules-list p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.section--faq {
  background: var(--paper-2);
}

.faq-list {
  max-width: 980px;
}

.faq-item {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.faq-item svg {
  transition: transform 180ms ease;
}

.faq-item[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-panel {
  display: none;
  padding: 0.3rem 1rem 1.1rem;
  color: var(--muted);
}

.faq-panel.is-open {
  display: block;
}

.section--contact {
  background: var(--paper);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.8fr);
  gap: clamp(1.2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card a {
  color: var(--green);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
  color: var(--ink);
  background: #fbf8f1;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(0, 104, 71, 0.18);
  border-color: var(--green);
}

.site-footer {
  color: var(--paper);
  background: var(--ink);
}

.footer-warning {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--ink);
  background: var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h3 {
  color: var(--gold);
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid a {
  display: block;
  margin: 0.4rem 0;
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--white);
}

.copyright {
  margin: 0;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.age-gate,
.access-denied {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(rgba(16, 19, 20, 0.76), rgba(16, 19, 20, 0.92)),
    url("../img/legacy-undead-dragon.webp") center / cover no-repeat;
}

.age-gate.is-hidden,
.access-denied {
  display: none;
}

.access-denied.is-visible {
  display: grid;
}

.age-gate__panel,
.access-denied__panel {
  width: min(100%, 540px);
  padding: clamp(1.2rem, 5vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: var(--white);
  background: rgba(16, 19, 20, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  text-align: center;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
  font-size: 1.35rem;
}

.age-gate__panel p,
.access-denied__panel p {
  color: rgba(255, 255, 255, 0.78);
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: var(--green);
  font-weight: 800;
}

.cookie-banner div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-modal {
  position: fixed;
  inset: 3vh 3vw;
  z-index: 300;
  display: none;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.game-modal.is-open {
  display: grid;
}

.game-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--white);
  background: #111817;
}

.game-modal__bar strong,
.game-modal__bar span {
  display: block;
}

.game-modal__bar span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
}

.game-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #060606;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.page-hero {
  padding: clamp(5rem, 10vw, 7rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 19, 20, 0.94), rgba(16, 19, 20, 0.7)),
    url("../img/rise-of-olympus-1000.jpeg") center / cover no-repeat;
}

.page-hero__inner {
  max-width: 820px;
}

.legal-content {
  max-width: 980px;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.legal-content h2 {
  font-size: 1.7rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content a {
  color: var(--green);
  font-weight: 800;
}

.legal-content section {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 980px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__panel {
    max-width: 520px;
  }

  .game-grid,
  .section--split,
  .contact-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem clamp(1rem, 4vw, 3rem) 1rem;
    background: rgba(247, 243, 234, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .main-nav a {
    padding: 0.75rem 0;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero__actions,
  .age-gate__actions,
  .cookie-banner,
  .cookie-banner div {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .game-card {
    grid-template-rows: 190px 1fr;
  }

  .game-card img {
    height: 190px;
  }

  .game-modal {
    inset: 0;
    border-radius: 0;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .site-header {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .trust-band {
    grid-template-columns: 1fr;
  }

  .hero__panel div,
  .rules-list div {
    grid-template-columns: 1fr;
  }
}
