/* Connexion obligatoire : pas d'accès invité sur le web. */
html.gg-locked .auth-0520-guest { display: none !important; }
/* Tant qu'on n'est pas connecté, on ne laisse pas voir l'app derrière l'écran de connexion. */
html.gg-locked #root .app-shell { visibility: hidden; }
html.gg-locked .auth-0520, html.gg-locked .auth-0520 * { visibility: visible; }

/* ---------- Écran scindé Son | Battle ---------- */
html.gg-split-open, html.gg-split-open body { overflow: hidden; }

.gg-split {
  --gg-gold: #e8b552;
  --gg-gold-deep: #b9852c;
  --gg-red: #e0312f;
  --gg-ink: #09090d;
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--gg-ink);
  font-family: "Barlow Condensed", "DM Sans", system-ui, sans-serif;
  animation: gg-in .45s ease-out both;
}
.gg-split.gg-leave { animation: gg-out .38s ease-in both; }
@keyframes gg-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gg-out { to { opacity: 0; transform: scale(1.02); } }

.gg-side {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 48px 40px; border: 0; cursor: pointer; text-align: center;
  font: inherit; color: inherit;
  transition: flex-grow .35s ease, filter .35s ease;
}
.gg-side::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  transition: transform .6s ease, opacity .35s ease;
}
.gg-side > * { position: relative; z-index: 1; }

.gg-son { background: linear-gradient(160deg, #f3c86a 0%, var(--gg-gold) 45%, var(--gg-gold-deep) 100%); color: #120c02; }
.gg-son::before { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 55%); }
.gg-battle { background: linear-gradient(200deg, #1a0d10 0%, #120a0c 50%, #07070a 100%); color: #f6efe6; }
.gg-battle::before { background: radial-gradient(circle at 70% 35%, rgba(224,49,47,.45), transparent 55%); }

.gg-split:hover .gg-side { filter: saturate(.55) brightness(.7); }
.gg-split .gg-side:hover, .gg-split .gg-side:focus-visible { filter: none; }
.gg-side:hover::before, .gg-side:focus-visible::before { transform: scale(1.15); }
.gg-side:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }

.gg-icon { opacity: .9; }
.gg-battle .gg-icon { color: var(--gg-red); }
.gg-title { font-size: clamp(64px, 9vw, 148px); font-weight: 800; letter-spacing: .04em; line-height: .9; }
.gg-tagline { max-width: 26ch; font-family: "DM Sans", system-ui, sans-serif; font-size: 18px; line-height: 1.45; opacity: .85; }
.gg-cta {
  margin-top: 10px; padding: 14px 28px; border-radius: 999px;
  font-size: 20px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .2s ease;
}
.gg-son .gg-cta { background: #120c02; color: var(--gg-gold); }
.gg-battle .gg-cta { background: var(--gg-red); color: #fff; }
.gg-side:hover .gg-cta { transform: translateY(-2px); }

.gg-center {
  position: absolute; left: 50%; top: 40px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 3;
}
.gg-center img { width: 120px; height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)); }
.gg-center span {
  padding: 6px 14px; border-radius: 999px; background: rgba(9,9,13,.85); color: #f6efe6;
  font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.gg-split::after { /* ligne de séparation */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-1px);
  background: linear-gradient(transparent, rgba(255,255,255,.35), transparent); pointer-events: none; z-index: 2;
}

/* Petits écrans : l'un au-dessus de l'autre. */
@media (max-width: 760px) {
  .gg-split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .gg-split::after { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 2px; transform: translateY(-1px);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
  .gg-center { top: 50%; transform: translate(-50%, -50%); }
  .gg-center img { width: 76px; }
  .gg-side { padding: 28px 20px; gap: 10px; }
  .gg-tagline { font-size: 15px; }
  .gg-cta { font-size: 16px; padding: 10px 20px; }
  .gg-icon svg { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .gg-split, .gg-split.gg-leave, .gg-side, .gg-side::before, .gg-cta { animation: none !important; transition: none !important; }
}
