/* Immigré Games web — couche V3 : même langage que le site et l'app (fond très sombre, bannière en dégradé
   avec un grand emoji discret, une couleur par jeu, cartes en verre, boutons en pilule). */
:root { --paper: #0f1013; --line: rgba(255, 255, 255, .1); --cta: linear-gradient(90deg, #ff6a3d, #ffb347); --ease: cubic-bezier(.2, .8, .2, 1); }
#dailyKafmusicView { --game: #ff6a3d; --game-2: #ffb347; --game-emoji: "🎵"; }
#blindtestView { --game: #c34dff; --game-2: #ff5c8a; --game-emoji: "🎧"; }
#alMarjView { --game: #53e6a5; --game-2: #ffd32e; --game-emoji: "🎯"; }

body { background: radial-gradient(70vw 40vh at 90% -5%, rgba(255, 106, 61, .14), transparent 70%), radial-gradient(60vw 40vh at -10% 20%, rgba(139, 61, 255, .1), transparent 70%), var(--paper); background-attachment: fixed; font-family: Inter, "Segoe UI", Arial, sans-serif; }

.games-topbar { position: sticky; top: 0; z-index: 10; margin: 0 -24px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: rgba(13, 14, 17, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.brand img { border: 0; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 215, 102, .35), 0 8px 22px -8px rgba(255, 179, 71, .55); }
.back-link { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--ink); font-size: .85rem; transition: border-color .2s ease, background .2s ease; }
.back-link:hover { border-color: rgba(255, 106, 61, .6); background: rgba(255, 255, 255, .08); color: var(--ink); }

.game-heading { position: relative; isolation: isolate; max-width: none; margin: 28px 0 22px; padding: clamp(24px, 5vw, 44px) clamp(18px, 4vw, 40px); overflow: hidden; border: 1px solid color-mix(in srgb, var(--game) 35%, transparent); border-radius: 26px; background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--game-2) 28%, transparent), transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--game) 24%, #15161b), #15161b 72%); box-shadow: 0 30px 60px -40px var(--game); text-align: left; }
.game-heading::after { position: absolute; right: clamp(12px, 4vw, 44px); bottom: -22px; z-index: -1; content: var(--game-emoji); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; opacity: .16; transform: rotate(-10deg); pointer-events: none; animation: v3-float 7s ease-in-out infinite; }
.game-heading .eyebrow { color: var(--game); }
.game-heading h1 { background: linear-gradient(180deg, #fff 40%, color-mix(in srgb, var(--game) 50%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(2.3rem, 7vw, 5rem); }

.game-panel, .game-art, .target-board, .game-lock { border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012)), #15161b; box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .9); }
.game-view .game-panel { border-color: color-mix(in srgb, var(--game) 22%, transparent); }
.track-line, .answers button { border-color: var(--line); border-radius: 16px; }
.track-line small, .blindtest-header span { color: var(--game-2); }
.progress span { background: linear-gradient(90deg, var(--game), var(--game-2)); box-shadow: 0 0 12px color-mix(in srgb, var(--game) 60%, transparent); }
.answers button { transition: transform .2s var(--ease), border-color .2s ease, background .2s ease; }
.answers button:hover:not(:disabled) { border-color: var(--game); background: color-mix(in srgb, var(--game) 12%, transparent); transform: translateY(-2px); }
.answers button span { border-color: var(--game); color: var(--game); }
.blind-stage { border-color: color-mix(in srgb, var(--game) 45%, transparent); box-shadow: 0 0 0 10px rgba(255, 255, 255, .025), 0 0 60px -10px var(--game); }
.sound-button { border-color: var(--line); background: rgba(255, 255, 255, .05); color: var(--game-2); }
.target-hud span { border-radius: 999px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.button { min-height: 46px; padding: 0 22px; border-radius: 999px; letter-spacing: .03em; transition: transform .2s var(--ease), filter .2s ease, box-shadow .25s ease, border-color .2s ease; }
.button.primary { border: 0; background: var(--cta); color: #1d0a00; box-shadow: 0 12px 28px -12px rgba(255, 106, 61, .85); }
.button.primary:hover { filter: brightness(1.08); }
.button.secondary { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); }
.button:active { transform: scale(.97); }
.button:focus-visible, .answers button:focus-visible, .back-link:focus-visible { outline: 2px solid var(--game, #ff6a3d); outline-offset: 3px; }

@keyframes v3-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 760px) {
  .games-topbar { margin: 0 -14px; padding: 12px 14px; }
  .game-heading { margin-top: 18px; border-radius: 22px; }
  .brand span { font-size: .82rem; white-space: nowrap; }
  .back-link { padding: 7px 12px; font-size: .78rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .game-heading::after { animation: none; }
  .button, .answers button { transition-duration: .01ms; }
}
