@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Spectral:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --header-h: 104px;
  --ink: #1f1b16;
  --ink-soft: #3a332b;
  --cream: #f6efe3;
  --paper: #fbf7ef;
  --gold: #c4a36a;
  --gold-dark: #9c7a3b;
  --emerald: #2c4b3f;
  --emerald-dark: #182b24;
  --sky: #d9ecf2;
  --shadow: 0 35px 80px rgba(31, 27, 22, 0.22);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Spectral", "Palatino Linotype", "Book Antiqua", serif;
  color: var(--ink);
  background: #15110e;
}

body.modal-open {
  overflow: hidden;
}

body.splash-done .splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: visible;
}

main {
  flex: 1 0 auto;
}


.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.35;
  z-index: 0;
}

.page::before {
  background: radial-gradient(circle, rgba(196, 163, 106, 0.4), rgba(196, 163, 106, 0));
  top: -200px;
  left: -100px;
}

.page::after {
  background: radial-gradient(circle, rgba(44, 75, 63, 0.35), rgba(44, 75, 63, 0));
  width: 420px;
  height: 420px;
  bottom: 0;
  right: -100px;
}

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

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

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(24, 21, 18, 0.92), rgba(6, 5, 4, 0.98));
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.splash-inner {
  display: grid;
  gap: 24px;
  place-items: center;
}

.splash-logo img {
  width: clamp(200px, 48vw, 420px);
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}

.splash-bar {
  width: min(360px, 72vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(196, 163, 106, 0.2);
  border: 1px solid rgba(196, 163, 106, 0.6);
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.splash-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(196, 163, 106, 0.65), rgba(196, 163, 106, 1));
  animation: splash-fill 2.2s ease forwards;
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.header-spacer {
  height: 1px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: center;
  margin-top: 18px;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

.logo img {
  width: 360px;
  height: auto;
}

.logo-text {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  justify-self: end;
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f4eadb;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.nav a {
  position: relative;
  padding-bottom: 6px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}


.btn-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.btn-image:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 10px 20px rgba(31, 27, 22, 0.35));
}

.hero {
  position: relative;
  aspect-ratio: 3 / 2;
  min-height: 520px;
  display: grid;
  place-items: center;
  color: #f7f1e6;
  background-image: url("assets/hero-bg.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0e0d0b;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 15, 15, 0.5), rgba(15, 15, 15, 0.15));
  z-index: 0;
}

@supports (background-image: image-set(url("assets/hero-bg.webp") type("image/webp"))) {
  .hero {
    background-image: image-set(
      url("assets/hero-bg.webp") type("image/webp") 1x,
      url("assets/hero-bg.png") type("image/png") 1x
    );
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  justify-items: center;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(110px, 12vw, 180px) 0 clamp(70px, 9vw, 140px);
}

.hero-center {
  max-width: 640px;
}

.hero-title {
  font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 3.5vw + 1rem, 3.6rem);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.hero-title-top,
.hero-title-bottom {
  display: block;
}

.hero-title-top {
  font-size: 0.85em;
  letter-spacing: 0.2em;
}

.hero-title-bottom {
  font-size: 1.15em;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 28px;
  color: #f0e7d7;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  justify-content: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.95rem;
}

.stat span {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  color: #fff;
}

.stat small {
  color: #d6cbb9;
}

.hero-panel {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-card {
  background: rgba(20, 24, 22, 0.78);
  border: 1px solid rgba(196, 163, 106, 0.4);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card-title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--gold);
  margin: 0 0 12px;
}

.hero-card h2 {
  margin: 0 0 12px;
  font-family: "Cinzel", serif;
}

.hero-card p {
  margin: 0 0 20px;
  color: #e4dac8;
  line-height: 1.6;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(196, 163, 106, 0.2);
  border: 1px solid rgba(196, 163, 106, 0.5);
  font-size: 0.8rem;
}

.glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(196, 163, 106, 0.6), rgba(196, 163, 106, 0));
  right: -40px;
  bottom: -40px;
  z-index: -1;
}

.section {
  position: relative;
  padding: 90px 0 120px;
  background-image: url("assets/section-bg.png");
  background-size: cover;
  background-position: center;
  scroll-margin-top: calc(var(--header-h) + 24px);
  color: #f6efe3;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 4, 0.58), rgba(8, 6, 4, 0.35));
  z-index: 0;
}

.section::after,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(40px, 7vw, 120px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  bottom: 0;
  transform: translateY(0);
  z-index: 2;
  pointer-events: none;
}

.hero::after {
  background-image: url("assets/divider-metal.png");
  transform: translateY(42%);
}

.world::after {
  background-image: url("assets/divider-fantasy.png");
  transform: translateY(30%);
}

.games::after {
  background-image: url("assets/divider-elegant.png");
  transform: translateY(42%);
}

.studio::after {
  background-image: url("assets/divider-medieval.png");
  transform: translateY(32%);
}

.news::after {
  background-image: url("assets/divider-baroque.png");
  transform: translateY(28%);
}

.section .container {
  position: relative;
  z-index: 1;
}

@supports (background-image: image-set(url("assets/section-bg.webp") type("image/webp"))) {
  .section,
  .games,
  .studio,
  .news,
  .divider {
    background-image: image-set(
      url("assets/section-bg.webp") type("image/webp") 1x,
      url("assets/section-bg.png") type("image/png") 1x
    );
  }
}

.section .section-note {
  color: #d6c8b6;
}

.section .feature-list li {
  border-bottom: 1px solid rgba(196, 163, 106, 0.5);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.section-copy h2,
.section-head h2,
.studio-panel h2,
.news h2 {
  font-family: "Cinzel", serif;
  margin: 12px 0 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.feature-list li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(156, 122, 59, 0.35);
}

.section-visual {
  display: grid;
  place-items: center;
}

.visual-stack {
  position: relative;
  width: min(700px, 90vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 18px;
}

.visual-main {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1;
}

.visual-float {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(31, 27, 22, 0.3);
  transform: none;
  z-index: 2;
}

.visual-main img,
.visual-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.games {
  background-image: url("assets/section-bg.png");
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.section-note {
  max-width: 420px;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: #fffdfa;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(156, 122, 59, 0.2);
  box-shadow: 0 16px 40px rgba(31, 27, 22, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--ink);
}

.card h3 {
  font-family: "Cinzel", serif;
  margin: 16px 0 12px;
}

.card p {
  color: var(--ink-soft);
}

.card-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(44, 75, 63, 0.1);
  color: var(--emerald);
  font-weight: 600;
  font-size: 0.78rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(31, 27, 22, 0.2);
}

.studio {
  background-image: url("assets/section-bg.png");
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.studio-panel {
  background: #fffdfa;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(156, 122, 59, 0.2);
  box-shadow: 0 16px 40px rgba(31, 27, 22, 0.12);
  color: var(--ink);
}

.studio-panel.highlight {
  background: linear-gradient(160deg, rgba(44, 75, 63, 0.92), rgba(24, 43, 36, 0.98));
  color: #f5efe4;
  border: 1px solid rgba(196, 163, 106, 0.4);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill-row span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(196, 163, 106, 0.2);
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

.quote p {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.quote span {
  color: var(--gold);
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stats-grid strong {
  font-size: 1.6rem;
  font-family: "Cinzel", serif;
}

.stats-grid span {
  display: block;
  font-size: 0.85rem;
  color: #eadfcf;
}

.news {
  background-image: url("assets/section-bg.png");
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.newsletter input {
  flex: 1 1 220px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(156, 122, 59, 0.4);
  background: #fffdfa;
  font-family: inherit;
}

.newsletter button {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: var(--emerald);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 27, 22, 0.2);
}

.news-panel {
  display: grid;
  gap: 16px;
}

.news-item {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fffdfa;
  border: 1px solid rgba(156, 122, 59, 0.2);
  color: var(--ink);
}

.news-item span {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--gold-dark);
}

.news-item h3 {
  margin: 8px 0 0;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
}

.footer {
  background: rgba(24, 43, 36, 0.88);
  color: #f1e8db;
  padding: 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  align-items: center;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.social {
  display: grid;
  gap: 12px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(196, 163, 106, 0.2);
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: transparent;
  backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.contact-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal-panel {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-width: min(920px, 92vw);
}

.contact-modal-panel img {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 600px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.contact-modal-close {
  justify-self: end;
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.contact-modal-close:focus-visible {
  outline: 2px solid rgba(196, 163, 106, 0.7);
  outline-offset: 3px;
}

.policy-main {
  padding: calc(var(--header-h) + 40px) 0 90px;
}

.policy-card {
  background: #fffdfa;
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(156, 122, 59, 0.2);
  box-shadow: 0 18px 48px rgba(31, 27, 22, 0.18);
}

.policy-card h1,
.policy-card h2 {
  font-family: "Cinzel", serif;
}

.policy-card h1 {
  margin: 8px 0 16px;
  font-size: clamp(2rem, 3vw + 1rem, 2.6rem);
}

.policy-card h2 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
}

.policy-card p {
  line-height: 1.7;
  color: var(--ink-soft);
}

.policy-card ul {
  margin: 12px 0 0 20px;
  color: var(--ink-soft);
}

.policy-card li + li {
  margin-top: 8px;
}

.policy-meta {
  margin: 0 0 20px;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .policy-card ul {
    margin-left: 18px;
  }
}

.reveal {
  animation: reveal 0.9s ease both;
}

.cards .reveal:nth-child(2) {
  animation-delay: 0.15s;
}

.cards .reveal:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes splash-fill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@media (max-width: 900px) {
  :root { --header-h: 84px; }
  .site-header {
    background: rgba(12, 11, 10, 0.82);
    backdrop-filter: blur(8px);
  }

  .header-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 14px 0;
  }

  .header-spacer {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .logo img {
    width: 160px;
    height: auto;
  }

  .hero {
    aspect-ratio: auto;
    min-height: 520px;
    background-position: center top;
  }

  .hero-grid {
    gap: 24px;
    padding: 140px 0 100px;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.1em;
  }

  .hero-title-top {
    font-size: 0.75em;
    letter-spacing: 0.18em;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero::before {
    background: linear-gradient(160deg, rgba(15, 15, 15, 0.55), rgba(15, 15, 15, 0.2));
  }

  .nav {
    display: none;
  }

  .cards .card picture {
    display: block;
  }

  .cards .card picture img {
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 480px;
  }

  .hero-grid {
    padding: 120px 0 80px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn-image img {
    width: 200px;
    height: auto;
  }

  .section {
    padding: 70px 0;
  }

  .visual-stack {
    grid-template-columns: 1fr;
  }

  .visual-float {
    width: 90%;
    margin-top: 18px;
    transform: none;
    justify-self: center;
  }

  .newsletter {
    flex-direction: column;
    align-items: center;
  }

  .newsletter input,
  .newsletter button {
    width: min(260px, 80%);
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .newsletter input {
    flex: 0 0 auto;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
