:root {
  color-scheme: dark;
  --bg: #090c11;
  --surface: #11161e;
  --surface-2: #171d26;
  --text: #f4f6f8;
  --muted: #969eaa;
  --line: rgba(255, 255, 255, 0.1);
  --warm: #d8ad67;
  --football: #55b67b;
  --ruins: #d69b54;
  --max: 1380px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(91, 111, 137, 0.13), transparent 36rem),
    linear-gradient(180deg, #0b0f15 0%, #080b0f 72%, #07090c 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -2;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.08;
  pointer-events: none;
}

.ambient-one {
  top: 28%;
  left: -23rem;
  background: #3ca66a;
}

.ambient-two {
  right: -23rem;
  bottom: 4%;
  background: #d28a3f;
}

.topbar {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.identity-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.identity-text {
  display: grid;
  gap: 1px;
}

.identity-text strong {
  font-size: 13px;
  letter-spacing: .04em;
}

.identity-text small,
.topbar-note {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  width: min(calc(100% - 48px), 1080px);
  min-height: min(680px, 72vh);
  margin: 0 auto;
  padding: clamp(86px, 12vh, 150px) 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--warm);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero h1 span {
  color: #aeb5be;
}

.hero-copy {
  max-width: 720px;
  margin: 30px auto 0;
  color: #aeb5be;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  text-wrap: balance;
}

.scroll-cue {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #c5cbd2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .25s ease, border-color .25s ease;
}

.scroll-cue:hover .scroll-arrow {
  transform: translateY(4px);
  border-color: rgba(255,255,255,.28);
}

.games-section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 50px 0 96px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: -.025em;
}

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

.game-card {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
  isolation: isolate;
}

.game-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.game-cover {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .65s ease;
}

.game-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7,10,14,.08) 0%, rgba(7,10,14,.33) 38%, rgba(7,10,14,.94) 79%, rgba(7,10,14,.985) 100%),
    linear-gradient(110deg, rgba(7,10,14,.32), transparent 55%);
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}

.game-card-football::after {
  background: linear-gradient(180deg, transparent 50%, rgba(40, 137, 78, .2));
}

.game-card-ruins::after {
  background: linear-gradient(180deg, transparent 50%, rgba(174, 102, 42, .23));
}

.game-content {
  position: absolute;
  inset: auto 0 0;
  padding: 42px;
}

.game-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.rc-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.45));
}

.game-brand h3 {
  margin: 2px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -.035em;
}

.game-kicker {
  margin: 0;
  color: #d5d9df;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.game-brand-ruins {
  margin-bottom: 16px;
}

.ruins-logo {
  width: min(340px, 82%);
  height: auto;
  filter: drop-shadow(0 5px 18px rgba(0,0,0,.55));
}

.game-description {
  max-width: 540px;
  margin: 0;
  color: #d0d4da;
  font-size: 15px;
  line-height: 1.65;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.game-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(5,8,12,.42);
  color: #cdd2d8;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.game-cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 999px;
  background: rgba(9,12,17,.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.game-card-football .game-cta { border-color: rgba(85,182,123,.5); }
.game-card-ruins .game-cta { border-color: rgba(214,155,84,.5); }

.game-link:hover .game-cover,
.game-link:focus-visible .game-cover {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.02);
}

.game-card:hover::after,
.game-card:focus-within::after {
  opacity: 1;
}

.game-link:hover .game-cta,
.game-link:focus-visible .game-cta {
  transform: translateY(-2px);
  background: rgba(22,27,35,.9);
  border-color: rgba(255,255,255,.34);
}

.game-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -5px;
  border-radius: 22px;
}

footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 28px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: #6f7781;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-separator { color: #39414b; }

@media (max-width: 900px) {
  .hero {
    min-height: 620px;
    padding-top: 80px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: min(720px, 82vh);
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero,
  .games-section,
  footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .topbar {
    padding: 16px 0;
  }

  .topbar-note {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 75px);
    padding: 70px 0 50px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 62px);
    line-height: 1.02;
  }

  .hero-copy {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.6;
  }

  .scroll-cue {
    margin-top: 34px;
  }

  .games-section {
    padding: 34px 0 70px;
  }

  .game-grid {
    gap: 14px;
  }

  .game-card {
    min-height: 650px;
    border-radius: 18px;
  }

  .game-content {
    padding: 28px 22px;
  }

  .rc-logo {
    width: 62px;
    height: 62px;
  }

  .game-description {
    font-size: 14px;
  }

  .game-link:focus-visible {
    border-radius: 18px;
  }
}

@media (max-width: 410px) {
  .identity-text small {
    display: none;
  }

  .game-card {
    min-height: 610px;
  }

  .ruins-logo {
    width: 86%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-cover,
  .game-cta,
  .scroll-arrow { transition: none; }
}

/* Personal hero: gamer dal 1985. */
.hero-personal {
  max-width: 1240px;
  min-height: min(780px, 84vh);
}

.hero-personal-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
  gap: clamp(38px, 6vw, 84px);
  align-items: center;
  text-align: left;
}

.hero-personal-copy {
  min-width: 0;
}

.hero-personal-copy .hero-copy {
  margin-left: 0;
  margin-right: 0;
}

.hero-statue {
  position: relative;
  width: min(100%, 410px);
  margin: 0;
  justify-self: end;
}

.hero-statue::before {
  content: "";
  position: absolute;
  inset: 8% -10% -6% 12%;
  z-index: -1;
  border-radius: 45% 45% 28% 28%;
  background:
    radial-gradient(circle at 48% 38%, rgba(229,130,115,.18), transparent 48%),
    radial-gradient(circle at 48% 70%, rgba(97,189,209,.15), transparent 58%);
  filter: blur(34px);
}

.hero-statue-frame {
  overflow: hidden;
  border: 1px solid rgba(232,194,113,.26);
  border-radius: 26px 26px 72px 26px;
  background: #17120e;
  box-shadow:
    0 0 0 5px rgba(255,255,255,.018),
    0 28px 70px rgba(0,0,0,.42);
}

.hero-statue img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(.93) contrast(1.035);
}

.hero-statue-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

.hero-player {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #f3c966;
}

.player-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5de28a;
  box-shadow: 0 0 0 4px rgba(93,226,138,.08), 0 0 18px rgba(93,226,138,.65);
}

.hero-personal h1 {
  max-width: 1060px;
  font-size: clamp(43px, 6.3vw, 84px);
}

.hero-personal h1 span {
  background: linear-gradient(90deg, #e9b862 0%, #e58273 35%, #9b86e8 66%, #61bdd1 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy-secondary {
  max-width: 680px;
  margin-top: 12px;
  color: #848d99;
  font-size: clamp(14px, 1.3vw, 16px);
}

.hero-vintage {
  margin: 30px 0 0;
  padding: 12px 18px;
  border: 1px solid rgba(243,201,102,.22);
  border-radius: 999px;
  background: rgba(243,201,102,.055);
  color: #e7c271;
  font: 700 clamp(13px, 1.35vw, 16px)/1.3 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .035em;
}


/* RC Calcio: la cover 1200×630 deve rimanere interamente visibile. */
.game-card-football {
  background:
    radial-gradient(circle at 50% 18%, rgba(67,145,94,.17), transparent 40%),
    #0c1116;
}

.game-card-football .game-cover {
  inset: 22px 22px auto;
  width: calc(100% - 44px);
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: contain;
  border: 1px solid rgba(99,205,137,.38);
  border-radius: 14px;
  background: #06090c;
  box-shadow:
    0 0 0 5px rgba(7,11,15,.74),
    0 18px 45px rgba(0,0,0,.38);
}

.game-card-football .game-shade {
  background:
    linear-gradient(180deg, rgba(7,10,14,0) 0%, rgba(7,10,14,.06) 45%, rgba(7,10,14,.93) 67%, rgba(7,10,14,.99) 100%);
}

@media (max-width: 900px) {
  .hero-personal-layout {
    grid-template-columns: 1fr;
    gap: 38px;
    text-align: center;
  }

  .hero-personal-copy .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-statue {
    width: min(72vw, 360px);
    justify-self: center;
  }

  .hero-vintage {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .hero-personal {
    min-height: auto;
    padding-top: 62px;
  }

  .hero-statue {
    width: min(82vw, 330px);
  }
}

@media (max-width: 620px) {
  .game-card-football .game-cover {
    inset: 14px 14px auto;
    width: calc(100% - 28px);
    border-radius: 11px;
  }
}
