:root {
  color-scheme: dark;
  --forest: #101c16;
  --forest-deep: #0a1510;
  --forest-raised: #18291f;
  --paper: #e9f1e5;
  --ink: #203225;
  --cream: #fbf5df;
  --muted: #bdccbd;
  --green: #d5e89e;
  --line: #36483a;
  --line-light: #bdcbbb;
  --gutter: clamp(16px, 5vw, 72px);
  --header-height: 68px;
  --radius: 22px;
  --display: Georgia, 'Times New Roman', serif;
  font-family: system-ui, sans-serif;
  background: var(--forest);
  color: var(--cream);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
:target { scroll-margin-top: calc(var(--header-height) + 20px); }

h1, h2, h3, p { margin: 0; }
h2, .privacy-heading h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.3vw, 4.6rem);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.04em;
  text-wrap: balance;
}
h3 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
}
p + p { margin-top: .9rem; }

.wrap { width: min(1280px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 20;
  inset: 10px auto auto var(--gutter);
  padding: 10px 16px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: var(--forest-deep);
  border-bottom: 1px solid var(--line);
}
.nav-layout, .footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: calc(var(--header-height) - 1px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex: none;
  color: var(--cream);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
}
.brand img { border-radius: 10px; }
.site-header nav, .site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.7vw, 36px);
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover, nav a[aria-current] { color: var(--green); text-decoration: underline; }

.hero {
  display: grid;
  align-content: center;
  gap: 12px;
  padding-block: 18px 15px;
  min-height: calc(100svh - var(--header-height));
}
.hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(565px, calc(100svh - 185px), 770px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #203f28;
}
.hero-stage picture, .hero-art, .hero-stage::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-art { object-fit: cover; object-position: 57% center; }
.hero-stage::after {
  content: '';
  background: linear-gradient(90deg, rgba(8, 21, 14, .97) 0%, rgba(8, 21, 14, .85) 23%, rgba(8, 21, 14, .32) 50%, transparent 77%),
              linear-gradient(0deg, rgba(8, 21, 14, .67), transparent 53%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 550px);
  padding: clamp(24px, 5.4vw, 78px);
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--green);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 img { width: clamp(230px, 29vw, 420px); height: auto; }
.hero-line {
  margin-block: 18px 24px;
  color: var(--cream);
  font: 400 clamp(1.65rem, 3.2vw, 2.85rem)/1.07 var(--display);
  letter-spacing: -.035em;
}
.button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 10px 21px;
  border-radius: 9px;
  background: var(--green);
  color: #1a2b15;
  font-weight: 750;
  font-size: .95rem;
  text-align: center;
  text-decoration: none;
  transition: background .18s, transform .18s;
}
.button:hover { background: #ebf6cd; transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline-color: var(--cream); }
.hero-facts {
  display: grid;
  grid-template-columns: .8fr 1fr 1.35fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--forest-raised);
}
.hero-facts li {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  text-align: center;
}
.hero-facts li + li { border-left: 1px solid var(--line); }
.hero-facts strong { font: 400 clamp(1.2rem, 2.1vw, 1.85rem)/1 var(--display); color: var(--green); }
.hero-facts span { font-size: .875rem; color: var(--muted); }

.section {
  padding: 55px 16px;
  padding-block: clamp(55px, 8vw, 110px);
  padding-inline: var(--gutter);
}
.section > .wrap { width: min(1280px, 100%); }
.section-light { background: var(--paper); color: var(--ink); }
.section-light .eyebrow { color: #41623b; }
.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 6vw, 92px);
}
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.55; }
h2 + .lead, .privacy-heading h1 + .lead { margin-top: 18px; }
.section-heading { max-width: 720px; margin-bottom: clamp(20px, 4vw, 42px); }
.section-heading .lead, .guide-section p { color: var(--muted); }

.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 37px 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line-light);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: #41623b;
  font-size: .875rem;
  font-weight: 800;
}
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(8px, 2vw, 24px); }
.screens img {
  width: 100%;
  height: auto;
  border: 3px solid #213628;
  border-radius: clamp(11px, 2vw, 25px);
  background: var(--forest);
  box-shadow: 0 12px 28px #10261b25;
}
#come-si-gioca .screens { width: min(100%, 510px); justify-self: end; }

.worlds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.worlds li, .comparison > div {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 14px;
}
.worlds li {
  display: flex;
  align-items: end;
  padding: 12px;
  aspect-ratio: 1.8;
  background: var(--forest-raised);
}
.worlds li::after {
  content: '';
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, #09160fee);
}
.worlds img, .comparison img { width: 100%; object-fit: cover; }
.worlds img { position: absolute; inset: 0; height: 100%; }
.worlds span, .comparison span {
  z-index: 1;
  color: var(--cream);
  font-weight: 750;
  overflow-wrap: anywhere;
}
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.comparison img { height: auto; aspect-ratio: 1; background: var(--forest-raised); }
.comparison span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--forest-deep);
  font-size: .875rem;
  line-height: 1.2;
}
@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: arrive .55s ease-out both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @supports (animation-timeline: view()) {
    .comparison > div:last-child img {
      animation: restore both linear;
      animation-timeline: view();
      animation-range: entry 0% cover 36%;
    }
    @keyframes restore { from { filter: saturate(.35) brightness(.76); } to { filter: none; } }
  }
}

.guide-section h2 { margin-bottom: 30px; }
.guide-layout { display: grid; grid-template-columns: minmax(170px, 245px) minmax(0, 1fr); align-items: start; gap: clamp(22px, 6vw, 84px); }
.guide-index {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  display: grid;
  gap: 1px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--forest-raised);
}
.guide-index h3 { margin-bottom: 6px; font: 750 .9rem/1.3 system-ui, sans-serif; }
.guide-index a { display: flex; align-items: center; min-height: 44px; color: var(--green); font-size: .9rem; }
.guide-block + .guide-block { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.guide-block h3 { margin-bottom: 12px; }
.power-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.power-cards li {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--forest-raised);
}
.power-cards img { width: 52px; height: 53px; object-fit: contain; }
.power-cards p { font-size: .95rem; line-height: 1.45; }
.guide-daily { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(16px, 3vw, 36px); align-items: center; }
details { padding: 8px 0; border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { min-height: 44px; padding: 9px 12px; cursor: pointer; font-weight: 650; }
summary:hover, details[open] summary { color: var(--green); }
details p { padding: 2px 12px 8px 30px; }
.site-footer { padding-block: 14px; border-top: 1px solid var(--line); background: var(--forest-deep); color: var(--muted); font-size: .875rem; }

.privacy-page { color: var(--ink); background: var(--paper); }
.privacy-main { max-width: 820px; padding-block: clamp(35px, 7vw, 80px); }
.privacy-heading { padding-bottom: 24px; }
.privacy-heading h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); }
.updated { margin-top: 12px; color: #4b6053; font-size: .9rem; }
.privacy-main section { padding: 20px 0; border-top: 1px solid var(--line-light); }
.privacy-main section h2 { margin-bottom: 10px; font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.025em; text-wrap: wrap; }
.privacy-main a { overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  #come-si-gioca .screens { justify-self: center; }
  .guide-layout { gap: 24px; }
  .guide-daily { grid-template-columns: 1fr; }
  .guide-daily .screens { width: min(100%, 380px); }
}

@media (max-width: 620px) {
  :root { --header-height: 97px; }
  .nav-layout { min-height: var(--header-height); flex-direction: column; align-items: stretch; justify-content: center; gap: 0; }
  .site-header .brand img { width: 31px; height: 31px; }
  .site-header nav { justify-content: space-between; gap: 8px; }
  .site-header nav a { font-size: .875rem; }
  .privacy-page .nav-layout { flex-direction: row; align-items: center; justify-content: space-between; min-height: 60px; }
  .privacy-page .site-header nav { gap: 8px 12px; justify-content: end; flex-wrap: wrap; }
  .hero { gap: 9px; padding-block: 12px; }
  .hero-stage { min-height: clamp(485px, calc(100svh - 196px), 660px); }
  .hero-art { object-position: center 30%; }
  .hero-stage::after { background: linear-gradient(0deg, #08150efb 4%, #08150ed6 40%, #08150e45 71%, transparent 92%); }
  .hero-copy { width: 100%; padding: 20px; }
  .hero-copy .button { width: 100%; }
  .hero-line { margin-block: 15px 18px; }
  .hero-facts { grid-template-columns: .75fr 1fr 1.2fr; }
  .hero-facts li { display: grid; align-content: start; gap: 5px; padding: 10px 8px; }
  .hero-facts span { line-height: 1.25; }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worlds li { aspect-ratio: 1.25; }
  .worlds span { font-size: .875rem; line-height: 1.2; }
  .guide-layout { grid-template-columns: 1fr; gap: 17px; }
  .guide-index { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 10px 13px; }
  .guide-index h3 { grid-column: 1 / -1; }
  .power-cards { grid-template-columns: 1fr; }
  .power-cards li { flex-direction: row; align-items: center; }
  .footer-layout { flex-wrap: wrap; }
  .site-footer nav { flex-wrap: wrap; }
}

@media (max-width: 370px) {
  .privacy-page .nav-layout { flex-direction: column; align-items: stretch; }
  .privacy-page .site-header nav { justify-content: start; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover, .button:active { transform: none; }
}
