:root {
  --bg: #090a10;
  --bg-2: #11131a;
  --panel: #171a22;
  --panel-2: #1f222b;
  --ink: #f7f3e8;
  --muted: #b9bdc7;
  --dim: #7f8794;
  --teal: #25d8c5;
  --red: #ff4c45;
  --green: #44d17c;
  --gold: #ffd166;
  --orange: #ff9f43;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 216, 197, 0.12), transparent 25%),
    radial-gradient(circle at 90% 4%, rgba(255, 76, 69, 0.14), transparent 26%),
    linear-gradient(180deg, #08090e 0%, #101119 42%, #0a0b10 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(20px, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 10, 16, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: #07080c;
  box-shadow:
    0 0 0 4px rgba(37, 216, 197, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.35);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  color: var(--muted);
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 10px;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 34px;
  padding: 76px max(20px, calc((100% - var(--max)) / 2)) 58px;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg {
  background-image: url("../generated/hero-arcade-italia.png");
  background-size: cover;
  background-position: center;
  opacity: 0.86;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 9, 14, 0.96) 0%, rgba(8, 9, 14, 0.72) 34%, rgba(8, 9, 14, 0.25) 74%, rgba(8, 9, 14, 0.74) 100%),
    linear-gradient(180deg, rgba(8, 9, 14, 0.18), #090a10 96%);
}

.hero-content,
.hero-console {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 4.6rem;
  line-height: 0.95;
  font-weight: 950;
}

h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: #e4e5e8;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn,
.card-link,
.save-btn,
.cookie-banner button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  white-space: normal;
}

.btn.primary,
.card-link {
  color: #07100f;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  box-shadow: 0 16px 32px rgba(37, 216, 197, 0.18);
}

.btn.ghost,
.save-btn,
.cookie-banner button {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.btn:hover,
.card-link:hover,
.save-btn:hover,
.cookie-banner button:hover {
  transform: translateY(-1px);
}

.btn-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.14);
}

.hero-search {
  max-width: 540px;
  margin-top: 34px;
}

.hero-search label,
.field label,
.control-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-shell {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(9, 10, 16, 0.78);
  box-shadow: var(--shadow);
}

.search-shell svg {
  fill: var(--teal);
}

.search-shell input,
.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.search-shell input::placeholder,
.catalog-toolbar input::placeholder {
  color: var(--dim);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin-top: 24px;
}

.hero-stats div {
  min-height: 90px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(17, 19, 26, 0.72);
}

.hero-stats strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-console {
  align-self: end;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 19, 26, 0.74), rgba(17, 19, 26, 0.52));
  box-shadow: var(--shadow);
}

.console-top,
.console-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.console-top strong {
  color: var(--ink);
}

#radarCanvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 420 / 260;
  margin: 10px 0;
}

.console-legend {
  flex-wrap: wrap;
  justify-content: flex-start;
  font-size: 0.82rem;
}

.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
}

.dot.teal { background: var(--teal); }
.dot.red { background: var(--red); }
.dot.gold { background: var(--gold); }

.risk-band {
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(37, 216, 197, 0.16), rgba(255, 76, 69, 0.1), rgba(255, 209, 102, 0.12)),
    #11131a;
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.risk-grid {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 32px;
  padding: 34px 0;
  align-items: center;
}

.risk-grid p {
  margin: 0;
  color: #ebe8dc;
}

.section {
  padding: 86px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.65fr);
  gap: 30px;
  align-items: end;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
}

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

.week-card,
.game-card,
.review,
.match-panel,
.legal-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(23, 26, 34, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.week-card {
  overflow: hidden;
}

.week-card .cover,
.game-card .cover {
  position: relative;
  min-height: 184px;
  background: linear-gradient(135deg, #18242b, #482027);
  overflow: hidden;
}

.week-card .cover img,
.game-card .cover img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.92;
}

.week-card .cover::after,
.game-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(9, 10, 16, 0.54) 100%);
}

.week-card-content,
.game-content {
  padding: 18px;
}

.week-card-content p,
.game-content p,
.review p {
  color: var(--muted);
}

.logo-strip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  width: 84px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #f9f2df;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 209, 102, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(16, 18, 26, 0.94), rgba(33, 38, 48, 0.92));
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.logo-box img {
  max-height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.92)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.22));
}

.logo-light-tile {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(214, 224, 232, 0.88));
}

.logo-light-tile img {
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.5)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.logo-text span {
  width: 100%;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #08100f;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  font-weight: 950;
  font-size: 1rem;
  line-height: 1;
  text-shadow: none;
}

.rank-badge {
  min-width: 50px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0c0d10;
  background: var(--gold);
  font-weight: 950;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.55fr));
  gap: 12px;
  margin-bottom: 14px;
}

.field {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(17, 19, 26, 0.86);
}

.field select option {
  color: #11131a;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.quick-filters button,
.segmented button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.quick-filters button.is-active,
.segmented button.is-active {
  color: #07100f;
  border-color: transparent;
  background: var(--teal);
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--muted);
}

.catalog-meta p {
  margin: 0;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.game-card .cover {
  min-height: 172px;
}

.generated-cover {
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 209, 102, 0.24), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(37, 216, 197, 0.26), transparent 25%),
    linear-gradient(135deg, var(--c1), var(--c2));
}

.generated-cover span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.24);
  font-size: 1.55rem;
  font-weight: 950;
}

.game-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.game-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.score {
  min-width: 58px;
  color: var(--gold);
  font-weight: 950;
  text-align: right;
}

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

.tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 800;
}

.meters {
  display: grid;
  gap: 8px;
}

.meter {
  display: grid;
  grid-template-columns: 92px 1fr 34px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.meter-bar {
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.meter-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.game-actions {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 9px;
  margin-top: auto;
}

.save-btn.is-saved {
  color: #07100f;
  background: var(--gold);
}

.match-layout,
.method-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.match-section {
  background:
    linear-gradient(90deg, rgba(68, 209, 124, 0.08), rgba(255, 159, 67, 0.1)),
    rgba(255, 255, 255, 0.02);
}

.match-panel {
  padding: 20px;
}

.match-controls {
  display: grid;
  gap: 18px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-result {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.match-pick {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.match-pick img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.mini-badge {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  font-weight: 950;
}

.match-pick strong,
.match-pick span {
  display: block;
}

.match-pick span {
  color: var(--muted);
  font-size: 0.86rem;
}

.method-layout {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.75fr);
}

.method-visual {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.method-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.score-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.score-matrix div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.score-matrix strong {
  display: block;
  color: var(--gold);
  font-size: 1.45rem;
}

.score-matrix span {
  color: var(--muted);
}

.review {
  min-height: 246px;
  padding: 20px;
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #09100f;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  font-weight: 950;
}

.faq-section {
  padding-top: 40px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(23, 26, 34, 0.78);
}

summary {
  min-height: 58px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #07080c;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(260px, 0.7fr);
  gap: 28px;
  padding: 36px 0;
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--teal);
}

.trademark-note {
  margin: 0;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(440px, calc(100% - 36px));
  display: none;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(17, 19, 26, 0.96);
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: grid;
  grid-template-columns: 1fr auto;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-banner div {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.legal-hero {
  padding: 74px 0 30px;
  background:
    linear-gradient(135deg, rgba(37, 216, 197, 0.14), rgba(255, 76, 69, 0.1)),
    #101119;
}

.legal-hero .section-inner {
  max-width: 900px;
}

.legal-hero h1 {
  font-size: 3.2rem;
}

.legal-page .section {
  padding-top: 42px;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 1.35rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

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

.legal-card a {
  color: var(--teal);
  font-weight: 800;
}

.legal-card ul {
  padding-left: 22px;
}

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

  h2 {
    font-size: 2rem;
  }

  .hero,
  .risk-grid,
  .section-heading.split,
  .match-layout,
  .method-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-console {
    align-self: auto;
  }

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

  .week-grid,
  .game-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-toggle {
    display: inline-grid;
    place-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 64px 14px auto 14px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 10, 16, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    padding-top: 44px;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-stats,
  .catalog-toolbar,
  .week-grid,
  .game-grid,
  .review-grid,
  .score-matrix {
    grid-template-columns: 1fr;
  }

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

  .match-pick {
    grid-template-columns: 48px 1fr;
  }

  .match-pick img {
    width: 48px;
    height: 48px;
  }

  .match-pick .score {
    grid-column: 2;
    text-align: left;
  }

  .cookie-banner.is-visible {
    grid-template-columns: 1fr;
  }

  .legal-hero h1 {
    font-size: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
