/* ==========================================================================
   Pagine dei giochi — componenti comuni.
   Non contengono colori propri: li prendono dal tema del gioco
   (--g-bg, --g-surface, --g-ink, --g-accent, --g-heading, ...).
   ========================================================================== */

.game-page {
  --header-bg: var(--g-bg);
  background: var(--g-surface);
  color: var(--g-ink);
}

.game-page a:hover { color: inherit; text-decoration-color: var(--g-accent); }

.game-page :focus-visible { outline-color: var(--g-ink); }

.game-page .wordmark,
.game-page .wordmark:hover { color: var(--g-ink); }

.game-page .wordmark__c { color: color-mix(in srgb, var(--g-ink) 70%, transparent); }

.game-page .lang-switch { border-color: color-mix(in srgb, var(--g-ink) 22%, transparent); }

.game-page .lang-switch button { color: color-mix(in srgb, var(--g-ink) 75%, transparent); }

.game-page .lang-switch button[aria-pressed="true"] { background: var(--g-ink); color: var(--g-surface); }

.game-page .site-footer { border-top-color: color-mix(in srgb, var(--g-ink) 14%, transparent); }

.game-page .site-footer__inner,
.game-page .site-footer a { color: var(--g-ink); }

/* --- Apertura ------------------------------------------------------------ */

.game-hero {
  position: relative;
  background: var(--g-bg);
  overflow: hidden;
}

.game-hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 48px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: 24px 48px;
}

.game-hero__text {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(80px, 11vw, 150px);
}

.game-hero__title { margin: 0; }

.game-hero__title img { width: min(400px, 82%); }

.game-hero__tagline {
  margin: 10px 0 18px;
  font-family: var(--g-heading);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
}

.game-hero__pitch {
  max-width: 25em;
  margin: 0 0 28px;
  font-size: var(--step-1);
  line-height: 1.5;
}

.game-hero__art {
  position: relative;
  align-self: stretch;
  min-height: 460px;
}

.game-hero__hero {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 470px);
  z-index: 1;
}

.game-hero__friend {
  position: absolute;
  top: 2%;
  right: 0;
  width: min(40%, 210px);
  animation: float 6s ease-in-out infinite alternate;
}

.game-hero__hill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  width: 100%;
  height: clamp(40px, 6vw, 96px);
  fill: var(--g-surface);
}

@media (max-width: 820px) {
  .game-hero__inner { grid-template-columns: 1fr; }
  .game-hero__text { padding-bottom: 0; }
  .game-hero__art { min-height: 0; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: center; }
  .game-hero__hero { left: 8%; width: 78%; bottom: -14%; }
  .game-hero__friend { width: 30%; right: 2%; }
}

/* --- Sezioni ------------------------------------------------------------- */

.g-section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 88px) var(--gutter);
}

.g-title {
  margin: 0 0 0.75em;
  font-family: var(--g-heading);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.08;
}

.g-section h3 {
  margin: 0 0 0.4em;
  font-family: var(--g-heading);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.15;
}

/* La storia */

.g-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 40px clamp(40px, 7vw, 112px);
}

.g-story__text { max-width: 32em; font-size: var(--step-1); line-height: 1.6; }

.g-story__comic { margin: 0; }

.g-story__comic img {
  border: 2px solid var(--g-ink);
  border-radius: 24px;
  box-shadow: 0 8px 0 var(--g-ink);
  transform: rotate(1.5deg);
}

.g-story__comic figcaption {
  margin-top: 22px;
  font-size: var(--step--1);
  text-align: center;
}

@media (max-width: 760px) {
  .g-story { grid-template-columns: 1fr; }
  .g-story__comic { max-width: 420px; }
}

/* Come si gioca */

.g-howto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-howto p { margin: 0; }

.g-howto__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border: 2px solid var(--g-ink);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--g-ink);
  color: var(--g-ink);
}

.g-howto__icon svg { width: 30px; height: 30px; }

.g-howto__icon--butter { background: var(--g-butter); }

.g-howto__icon--sage { background: var(--g-sage); }

.g-howto__icon--coral { background: #fde3e3; }

.g-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 44em;
  margin: 44px 0 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--g-bg);
}

.g-note svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--g-ink); }

@media (max-width: 760px) {
  .g-howto { grid-template-columns: 1fr; }
  .g-howto li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; }
  .g-howto__icon { grid-row: span 2; margin: 0; }
}

/* Modalità */

.g-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.g-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--g-ink);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 6px 0 var(--g-ink);
}

.g-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 62%;
  border-bottom: 2px solid var(--g-ink);
}

/* Striscia della salita: quattro ambientazioni affiancate, senza ritaglio */
.g-card__media--climb { aspect-ratio: 1440 / 485; object-fit: fill; }

.g-card__body { padding: 26px clamp(22px, 3vw, 34px) 30px; }

.g-card__body > p:last-child { margin-bottom: 0; }

.g-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.g-list li { display: flex; align-items: flex-start; gap: 12px; }

.g-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--g-ink); }

.g-skies {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 18px;
  list-style: none;
  border-bottom: 2px solid var(--g-ink);
  background: var(--g-bg);
}

.g-sky {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--g-ink);
  border-radius: 14px;
  font-family: var(--g-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--g-surface);
}

.g-sky:nth-child(4),
.g-sky:nth-child(5) { grid-column: span 3; }

.g-sky svg { width: 100%; height: auto; aspect-ratio: 160 / 72; }

.g-sky span { padding: 4px 10px 6px; }

.g-sky--garden svg { background: #e7f3e2; }

.g-sky--city svg { background: #edf1e8; }

.g-sky--sunset svg { background: #f8dccd; }

.g-sky--night svg { background: #3a4666; }

.g-sky--space svg { background: #2a3050; }

@media (max-width: 860px) {
  .g-modes { grid-template-columns: 1fr; }
}

/* Schermate */

.g-section--shots { max-width: none; padding-left: 0; padding-right: 0; }

.g-section--shots .g-title {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--gutter);
}

.g-shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(170px, 44vw, 188px);
  justify-content: start;
  gap: 18px;
  margin: 0;
  padding: 6px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 20px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: thin;
}

.g-shots li { scroll-snap-align: start; }

.g-shots figure { margin: 0; }

.g-shots img {
  width: 100%;
  aspect-ratio: 480 / 1039;
  object-fit: cover;
  border: 2px solid var(--g-ink);
  border-radius: 22px;
  background: var(--g-bg);
}

.g-shots figcaption {
  margin-top: 10px;
  font-size: var(--step--1);
  text-align: center;
}

/* In breve */

.g-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 5vw, 72px);
  margin: 0;
}

.g-facts > div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 2px solid color-mix(in srgb, var(--g-ink) 14%, transparent);
}

.g-facts dt { font-weight: 650; }

.g-facts dd { margin: 0; }

@media (max-width: 760px) {
  .g-facts { grid-template-columns: 1fr; }
  .g-facts > div { grid-template-columns: 8em 1fr; }
}

/* Chiusura */

.g-cta { background: var(--g-bg); }

.g-cta__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}

.g-cta__icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 0 0 2px var(--g-ink);
}

.g-cta__text { flex: 1 1 260px; }

.g-cta__text h2 {
  margin: 0 0 4px;
  font-family: var(--g-heading);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.15;
}

.g-cta__text p { margin: 0; font-size: var(--step--1); }
