/* Goal Fight home page (EN + AR). Loaded after site.css. Mobile-first; layout mirrors in RTL through logical properties. */

/* Hero: the real match stadium, the fighter lineup (Blender renders of the game models) and the brand logo. */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 8px; }
.hero-stage {
  position: absolute; inset: 0; z-index: -2;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%); mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
  background: url("/assets/img/hero/stadium-960.webp") center top / cover no-repeat;
}
@media (min-width: 961px) { .hero-stage { background-image: url("/assets/img/hero/stadium.webp"); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(77, 139, 255, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(4, 11, 34, 0.35) 0%, rgba(4, 11, 34, 0.6) 45%, rgba(7, 19, 56, 0.9) 75%, rgba(7, 19, 56, 0) 100%);
}
.hero-grid { display: grid; gap: 0; padding-top: 18px; }
.hero-copy { position: relative; z-index: 1; text-align: center; padding-bottom: 28px; }
.hero h1 { margin: 0; }
.hero-logo { width: min(240px, 62vw); height: auto; margin-inline: auto; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55)); }
.pitch {
  font-family: var(--font-display); font-size: clamp(1.45rem, 6.2vw, 2.4rem); line-height: 1.12;
  margin: 10px 0 12px; text-shadow: 0 3px 0 var(--navy-950), 0 6px 18px rgba(0, 0, 0, 0.6);
}
html[lang="en"] .pitch { font-style: italic; text-transform: uppercase; }
html[lang="ar"] .pitch { font-weight: 700; line-height: 1.5; }
.pitch span { display: block; }
.hero .lead { font-size: 1.05rem; color: #dce6ff; max-width: 34em; margin-inline: auto; }
.hero-lineup { display: block; order: -1; margin: 0 -16px -4%; }
.hero-lineup img { width: 100%; height: auto; }
.beta { font-size: 0.92rem; color: var(--sky); max-width: 32em; margin: 14px auto 18px; }
.beta a { font-weight: 700; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: end; padding-top: 34px; min-height: 640px; }
  .hero-copy { text-align: start; padding-bottom: 64px; }
  .hero-logo { width: min(400px, 100%); margin-inline: 0; }
  .hero .lead, .beta { margin-inline: 0; }
  .hero-lineup { order: 0; margin: 0 0 -10px; margin-inline-end: -90px; }
}

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 14px; margin-top: 24px; }
@media (min-width: 900px) { .badges { justify-content: flex-start; } }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-width: 176px;
  padding: 13px 16px 9px; border-radius: 14px;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; position: relative;
}
.store-badge svg { width: 26px; height: 26px; flex: 0 0 auto; fill: #fff; }
.store-badge > span { display: grid; line-height: 1.15; text-align: start; }
.store-badge small { font-size: 0.72rem; color: #cfd6ea; }
.store-badge strong { font-size: 1.1rem; }
.store-badge .soon {
  position: absolute; top: -11px; inset-inline-end: -8px; line-height: 1.5;
  background: linear-gradient(180deg, var(--gold-300), var(--gold) 50%, var(--gold-deep)); color: var(--navy-900);
  font-size: 0.68rem; font-weight: 800; font-style: normal; padding: 2px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em; box-shadow: 0 2px 0 var(--gold-700);
}
html[lang="ar"] .store-badge .soon { text-transform: none; letter-spacing: 0; }

/* Section rhythm */
.home .section { padding-top: 64px; }
.home .section h2.display { font-size: clamp(1.9rem, 7vw, 3rem); margin: 0 0 6px; text-shadow: 0 3px 0 var(--navy-950); }
.section-sub { color: var(--muted); margin-bottom: 28px; max-width: 40em; }
.narrow { max-width: 820px; }

/* The game: alternating feature blocks with real screenshots */
.feature { display: grid; gap: 18px; align-items: center; margin-bottom: 40px; }
.feature-shot { margin: 0; }
.feature-shot .shot { width: 100%; }
.shot { border-radius: var(--radius); border: 2px solid rgba(120, 170, 255, 0.35); box-shadow: var(--shadow), 0 0 0 4px rgba(4, 11, 34, 0.6); background: var(--navy-800); }
.feature-num { font-family: var(--font-display); color: var(--gold); font-size: 1.1rem; letter-spacing: 0.08em; }
.feature h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 5vw, 1.9rem); margin: 2px 0 8px; }
html[lang="ar"] .feature h3 { font-weight: 700; }
html[lang="en"] .feature h3 { font-style: italic; text-transform: uppercase; }
.feature p { color: #d3ddf7; font-size: 1.04rem; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.25fr 1fr; gap: 44px; margin-bottom: 56px; }
  .feature.flip .feature-shot { order: 2; }
}

/* Fighters: card grid + detail dialogs */
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .roster { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
.roster li { margin: 0; }
.fighter {
  --accent: var(--royal-400);
  position: relative; display: flex; flex-direction: column; align-items: stretch; width: 100%; height: 100%;
  padding: 0 0 12px; border: 2px solid rgba(120, 170, 255, 0.35); border-radius: var(--radius); overflow: hidden;
  font: inherit; color: var(--text); text-align: start; cursor: pointer;
  background: linear-gradient(180deg, var(--royal-500), var(--navy-800) 78%);   /* without color-mix() */
  background:
    radial-gradient(90% 55% at 50% 40%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 72%),
    linear-gradient(180deg, var(--royal-500), var(--navy-800) 78%);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.fighter:hover, .fighter:focus-visible { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow), 0 0 0 3px rgba(255, 203, 61, 0.35), 0 0 26px rgba(255, 203, 61, 0.28); }
.fighter img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; margin-bottom: -18%; }
.fighter-name, .fighter-role, .fighter-skills { position: relative; padding-inline: 12px; }
.fighter-name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; text-shadow: 0 2px 0 var(--navy-950), 0 4px 12px rgba(0, 0, 0, 0.6); }
html[lang="en"] .fighter-name { font-style: italic; text-transform: uppercase; }
html[lang="ar"] .fighter-name { font-weight: 700; }
.fighter-role { color: var(--gold); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
html[lang="ar"] .fighter-role { letter-spacing: 0; font-size: 0.9rem; }
.fighter-skills { color: var(--sky); font-size: 0.78rem; line-height: 1.4; margin-top: 6px; }
.fighter-skills::before { content: ""; display: block; height: 1px; margin-bottom: 6px; background: linear-gradient(90deg, var(--line), transparent); }
html[dir="rtl"] .fighter-skills::before { background: linear-gradient(270deg, var(--line), transparent); }

.sheet {
  --accent: var(--royal-400);
  width: min(760px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; overflow: auto;
  color: var(--text); border: 2px solid var(--gold); border-radius: 22px;
  background: linear-gradient(180deg, rgba(28, 62, 168, 0.98), rgba(10, 27, 82, 0.99));
  background:
    radial-gradient(70% 60% at 25% 45%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(28, 62, 168, 0.98), rgba(10, 27, 82, 0.99));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 203, 61, 0.2);
}
.sheet::backdrop { background: rgba(4, 11, 34, 0.78); backdrop-filter: blur(4px); }
.sheet[open] { display: grid; animation: sheet-in 0.2s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.sheet-art { width: min(260px, 70%); height: auto; justify-self: center; margin-top: 8px; }
.sheet-body { padding: 4px 22px 24px; }
.sheet h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; margin: 0; line-height: 1.1; text-shadow: 0 3px 0 var(--navy-950); }
html[lang="en"] .sheet h3 { font-style: italic; text-transform: uppercase; }
html[lang="ar"] .sheet h3 { font-weight: 700; }
.sheet-role { color: var(--gold); font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.sheet h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 18px 0 8px; }
html[lang="ar"] .sheet h4, html[lang="ar"] .sheet-role { letter-spacing: 0; }
.skills { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.skills li { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(4, 11, 34, 0.45); border: 1px solid var(--line); color: #d3ddf7; }
.skills strong { display: block; color: #fff; font-size: 1.02rem; }
.sheet-close {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--navy-950); background: linear-gradient(180deg, #ff7b88, var(--red)); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 3px 0 #9b1d2a;
}
@media (min-width: 700px) {
  .sheet[open] { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .sheet-art { width: 100%; margin: 16px 0 0; }
  .sheet-body { padding: 36px 30px 30px 8px; }
  html[dir="rtl"] .sheet-body { padding: 36px 8px 30px 30px; }
}
.f-rivo { --accent: #2d64f0; } .f-brak { --accent: #c62839; } .f-ziro { --accent: #d9d61a; } .f-mako { --accent: #8b3fd0; }
.f-kiro { --accent: #1f9d6b; } .f-fero { --accent: #ff7a1a; } .f-nira { --accent: #6b3fe0; } .f-luma { --accent: #8fd3ff; }
.f-vela { --accent: #ff7a6b; } .f-zaya { --accent: #ff3fa6; }

/* Screens: scroll-snap carousel (works without JS; the arrows are added by site.js) */
.carousel { position: relative; }
.carousel-track {
  list-style: none; margin: 0 -16px; padding: 6px 16px 18px; display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--royal-500) transparent;
}
.carousel-track:focus-visible { outline-offset: -3px; }
.carousel-track li { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.carousel-track figure { margin: 0; }
.carousel-track .shot { height: min(52vw, 400px); width: auto; }
.carousel-track figcaption { max-width: 34em; color: var(--sky); margin-top: 10px; }
.carousel-btn {
  position: absolute; top: calc(min(52vw, 400px) / 2 - 22px); width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--navy-950); background: linear-gradient(180deg, #ffe07a, var(--gold) 45%, var(--gold-deep));
  color: var(--navy-900); font-size: 1.8rem; font-weight: 900; line-height: 1; cursor: pointer; box-shadow: 0 4px 0 var(--gold-700);
}
.carousel-btn.prev { inset-inline-start: -8px; }
.carousel-btn.next { inset-inline-end: -8px; }
html[dir="rtl"] .carousel-btn { transform: scaleX(-1); }
.carousel-btn[disabled] { opacity: 0.35; cursor: default; }
@media (max-width: 699px) { .carousel-btn { display: none; } }

/* How to play */
.how { list-style: none; counter-reset: how; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li {
  counter-increment: how; position: relative; margin: 0; padding: 62px 22px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 62, 168, 0.8), rgba(10, 27, 82, 0.9)); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.how li::before {
  content: counter(how); position: absolute; top: 16px; inset-inline-start: 20px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-900);
  background: linear-gradient(180deg, var(--gold-300), var(--gold) 50%, var(--gold-deep)); box-shadow: 0 3px 0 var(--gold-700);
}
.how h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin: 0 0 6px; }
html[lang="ar"] .how h3 { font-weight: 700; }
.how p { color: #d3ddf7; margin: 0; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(11, 29, 82, 0.6); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 800; font-size: 1.05rem; position: relative; }
html[dir="rtl"] .faq summary { padding: 16px 18px 16px 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; top: 50%; inset-inline-end: 16px; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--royal-500); color: #fff; font-weight: 900;
}
.faq[open] summary::after { content: "−"; background: var(--gold); color: var(--navy-900); }
.faq p { padding: 0 18px 16px; margin: 0; color: #d3ddf7; }

@media (prefers-reduced-motion: reduce) {
  .fighter, .fighter:hover { transition: none; transform: none; }
  .sheet[open] { animation: none; }
}
