@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

/* =========================================================
   GACHA CARDS — ACCUEIL « ARCADE »
   Écran d'accueil de jeu : invocation + cartes + dock
   ADN CRT conservé · rareté colorée (cartes uniquement)
   ========================================================= */

:root {
  --primary: #00ff41; --primary-rgb: 0, 255, 65;
  --primary-dim: #00cc33; --primary-dark: #00220c; --primary-border: #173317;
  --amber: #ffcc00; --amber-rgb: 255, 204, 0;
  --combat: #ff4d4d; --combat-rgb: 255, 77, 77;
  --gem: #4db8ff; --gem-rgb: 77, 184, 255;
  /* rareté */
  --leg: #ffb43c; --leg-rgb: 255, 180, 60;
  --epic: #c266ff; --epic-rgb: 194, 102, 255;
  --rare: #4da6ff; --rare-rgb: 77, 166, 255;
  --com: #65d96b; --com-rgb: 101, 217, 107;
  --bg: #060807;
  --panel: rgba(0, 10, 4, 0.84);
  --ink-dim: #3a5a3c; --ink-mute: #607a62;
  --f-pixel: 'Press Start 2P', monospace;
  --f-term: 'VT323', monospace;
}
[data-theme="blue"] { --primary: #00e5ff; --primary-rgb: 0,229,255; --primary-dim: #00b8d4; --primary-dark: #002233; --primary-border: #16283a; }
[data-theme="rose"] { --primary: #ff2e88; --primary-rgb: 255,46,136; --primary-dim: #cc0055; --primary-dark: #2a0014; --primary-border: #321528; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--primary); font-family: var(--f-term); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: none; }

/* ---------- racine + effets ---------- */
.ar-root { position: relative; min-height: 100vh; display: flex; flex-direction: column; }

/* grille synthwave animée (fond) */
.ar-grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.07), transparent 55%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.7) 100%);
}
.ar-grid-bg::before {
  content: ''; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(360px) rotateX(62deg);
  transform-origin: bottom center; opacity: 0.5;
  mask-image: linear-gradient(transparent, #000 60%);
  -webkit-mask-image: linear-gradient(transparent, #000 60%);
  animation: ar-grid 4s linear infinite;
}
@keyframes ar-grid { from { background-position: 0 0; } to { background-position: 0 56px; } }

.ar-root::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9;
}
.ar-root[data-fx="soft"]::after, .ar-root[data-fx="full"]::after {
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0px, rgba(0,0,0,0.16) 1px, transparent 1px, transparent 3px);
}
.ar-root[data-fx="soft"]::after { opacity: 0.4; }
.ar-root[data-fx="full"] { animation: ar-flicker 7s infinite; }
@keyframes ar-flicker { 0%,100%{opacity:1;} 93%{opacity:.94;} 94%{opacity:1;} 96%{opacity:.97;} 97%{opacity:1;} }
.ar-root[data-fx="off"] .ar-grid-bg::before { animation: none; }
.ar-root[data-fx="off"] .ar-glow { text-shadow: none !important; }
@media (prefers-reduced-motion: reduce) { .ar-grid-bg::before, .ar-root { animation: none !important; } }

.ar-z { position: relative; z-index: 2; }

/* =========================================================
   HUD
   ========================================================= */
.ar-hud {
  position: sticky; top: 0; z-index: 40;
  background: rgba(4,7,5,0.92); border-bottom: 1px solid var(--primary-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ar-hud-in { max-width: 1280px; margin: 0 auto; padding: 0 22px; min-height: 62px; display: flex; align-items: center; gap: 16px; }

.ar-brand { font-family: var(--f-pixel); font-size: 14px; color: var(--primary); letter-spacing: 1px; text-shadow: 0 0 14px rgba(var(--primary-rgb), 0.45); white-space: nowrap; }
.ar-brand b { font-weight: 400; }
.ar-sep { width: 1px; height: 26px; background: var(--primary-border); }

.ar-player { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ar-pav {
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; border: 1px solid var(--primary); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: radial-gradient(circle, rgba(0,40,0,.6), rgba(0,12,0,.85)); box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.12);
}
.ar-pinfo { min-width: 0; }
.ar-pname { font-family: var(--f-term); font-size: 20px; color: var(--primary); line-height: 1; }
.ar-plvl { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.ar-plvl-tag { font-family: var(--f-pixel); font-size: 7px; color: var(--amber); letter-spacing: .5px; }
.ar-plvl-bar { width: 96px; height: 6px; border-radius: 3px; background: rgba(0,20,0,0.8); border: 1px solid var(--primary-border); overflow: hidden; }
.ar-plvl-fill { height: 100%; background: linear-gradient(90deg, var(--primary-dim), var(--primary)); border-radius: 3px; box-shadow: 0 0 6px rgba(var(--primary-rgb), 0.4); }

.ar-spacer { flex: 1; }

.ar-cur { display: flex; align-items: center; gap: 10px; }
.ar-coin {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; white-space: nowrap;
  background: rgba(0,0,0,0.45); border: 1px solid var(--primary-border); font-family: var(--f-term); font-size: 19px; line-height: 1;
}
.ar-coin .ic { font-size: 14px; }
.ar-coin--cr { border-color: rgba(var(--amber-rgb), 0.35); color: var(--amber); }
.ar-coin--gem { border-color: rgba(var(--gem-rgb), 0.35); color: var(--gem); }
.ar-coin-add {
  font-family: var(--f-pixel); font-size: 9px; width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-bottom: 2px; transition: all .2s;
  color: currentColor; border: 1px solid currentColor; background: transparent; opacity: .8;
}
.ar-coin-add:hover { opacity: 1; box-shadow: 0 0 8px currentColor; }
.ar-gear { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--primary-border); background: rgba(0,0,0,0.4); color: var(--ink-mute); font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.ar-gear:hover { color: var(--primary); border-color: rgba(var(--primary-rgb), 0.3); }

/* =========================================================
   STAGE — BANNIÈRE D'INVOCATION
   ========================================================= */
.ar-wrap { max-width: 1280px; width: 100%; margin: 0 auto; padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 18px; }

.ar-stage {
  position: relative; overflow: hidden; border: 1px solid rgba(var(--leg-rgb), 0.3); border-radius: 14px;
  background: linear-gradient(115deg, rgba(20,14,2,0.6), rgba(0,10,4,0.85) 60%);
  display: grid; grid-template-columns: 1fr 1fr; min-height: 380px;
}
.ar-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 78% 45%, rgba(var(--leg-rgb), 0.16), transparent 55%);
}
.ar-stage-top { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--leg), transparent); opacity: .6; }

.ar-stage-info { position: relative; z-index: 2; padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.ar-banner-tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: var(--f-pixel); font-size: 8px; letter-spacing: 1px; color: var(--leg);
  border: 1px solid rgba(var(--leg-rgb), 0.4); background: rgba(var(--leg-rgb), 0.1); padding: 7px 11px; border-radius: 999px;
  text-shadow: 0 0 8px rgba(var(--leg-rgb), 0.4);
}
.ar-banner-title { font-family: var(--f-pixel); font-size: 28px; line-height: 1.3; color: #fff; margin: 16px 0 10px; text-shadow: 0 0 26px rgba(var(--leg-rgb), 0.4); }
.ar-banner-sub { font-family: var(--f-term); font-size: 19px; color: var(--ink-mute); max-width: 420px; }

/* pity */
.ar-pity { margin: 24px 0; max-width: 440px; }
.ar-pity-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.ar-pity-lab { font-family: var(--f-pixel); font-size: 7px; color: var(--ink-mute); letter-spacing: 1px; white-space: nowrap; }
.ar-pity-val { font-family: var(--f-term); font-size: 16px; color: var(--leg); white-space: nowrap; }
.ar-pity-bar { height: 8px; border-radius: 4px; background: rgba(0,0,0,0.5); border: 1px solid rgba(var(--leg-rgb), 0.25); overflow: hidden; }
.ar-pity-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7a5410, var(--leg), #ffe08a); box-shadow: 0 0 8px rgba(var(--leg-rgb), 0.4); }

/* boutons invocation */
.ar-summon-row { display: flex; gap: 14px; flex-wrap: wrap; }
.ar-summon {
  text-decoration: none;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--f-pixel); padding: 16px 26px; border-radius: 10px; transition: transform .15s, box-shadow .25s, background .2s;
  border: 2px solid var(--leg); color: var(--leg); background: rgba(var(--leg-rgb), 0.1); position: relative; overflow: hidden;
}
.ar-summon:hover { transform: translateY(-2px); background: rgba(var(--leg-rgb), 0.2); box-shadow: 0 0 30px rgba(var(--leg-rgb), 0.3); }
.ar-summon:active { transform: scale(0.97); }
.ar-summon-main { font-size: 14px; letter-spacing: 1px; display: flex; align-items: center; gap: 9px; }
.ar-summon-cost { font-family: var(--f-term); font-size: 16px; color: #d8b86a; display: flex; align-items: center; gap: 5px; }
.ar-summon--ten { border-color: var(--primary); color: var(--primary); background: rgba(var(--primary-rgb), 0.1); }
.ar-summon--ten:hover { background: rgba(var(--primary-rgb), 0.2); box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.3); }
.ar-summon--ten .ar-summon-cost { color: var(--primary-dim); }
.ar-summon-disc { position: absolute; top: 7px; right: 7px; font-family: var(--f-pixel); font-size: 6px; color: #000; background: var(--primary); padding: 3px 5px; border-radius: 4px; }

/* cartes en vedette (droite) */
.ar-stage-cards { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ar-card-fan { position: relative; width: 260px; height: 320px; }
.ar-card-fan .gc-card { position: absolute; top: 50%; left: 50%; }
.ar-card-fan .gc-card--back1 { transform: translate(-50%, -50%) translateX(-78px) rotate(-13deg) scale(0.82); z-index: 1; opacity: .82; }
.ar-card-fan .gc-card--back2 { transform: translate(-50%, -50%) translateX(78px) rotate(13deg) scale(0.82); z-index: 1; opacity: .82; }
.ar-card-fan .gc-card--front { transform: translate(-50%, -50%) translateY(-6px); z-index: 3; animation: ar-float 4s ease-in-out infinite; }
@keyframes ar-float { 0%,100% { transform: translate(-50%, -50%) translateY(-10px); } 50% { transform: translate(-50%, -50%) translateY(2px); } }

/* =========================================================
   CARTE (composant rétro)
   ========================================================= */
.gc-card {
  width: 168px; height: 234px; border-radius: 10px; flex-shrink: 0;
  border: 3px solid var(--r, var(--com)); background: #07110a; padding: 7px;
  display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
  box-shadow: 0 0 22px rgba(var(--r-rgb, var(--com-rgb)), 0.28), inset 0 0 16px rgba(0,0,0,0.5);
}
.gc-card--leg { --r: var(--leg); --r-rgb: var(--leg-rgb); }
.gc-card--epic { --r: var(--epic); --r-rgb: var(--epic-rgb); }
.gc-card--rare { --r: var(--rare); --r-rgb: var(--rare-rgb); }
.gc-card--com { --r: var(--com); --r-rgb: var(--com-rgb); }
.gc-card-art {
  flex: 1; border-radius: 5px; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(var(--r-rgb, var(--com-rgb)), 0.18) 0px, rgba(var(--r-rgb, var(--com-rgb)), 0.18) 8px, transparent 8px, transparent 16px),
    radial-gradient(circle at 50% 38%, rgba(var(--r-rgb, var(--com-rgb)), 0.38), rgba(0,0,0,0.55));
  display: flex; align-items: center; justify-content: center;
}
.gc-card-art-label { font-family: var(--f-pixel); font-size: 7px; color: rgba(255,255,255,0.5); letter-spacing: 1px; }
.gc-card-name { font-family: var(--f-pixel); font-size: 8px; color: #fff; text-align: center; letter-spacing: .5px; padding: 1px 2px; line-height: 1.4; }
.gc-card-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 1px; }
.gc-card-stat { font-family: var(--f-term); font-size: 16px; display: flex; align-items: center; gap: 3px; }
.gc-card-stat--atk { color: #ff8a5c; }
.gc-card-stat--hp { color: var(--com); }
.gc-card-gem {
  position: absolute; top: 6px; right: 6px; width: 13px; height: 13px; transform: rotate(45deg);
  background: var(--r, var(--com)); box-shadow: 0 0 10px var(--r, var(--com)); border-radius: 2px; z-index: 2;
}
.gc-card-rar { position: absolute; top: 8px; left: 8px; font-family: var(--f-pixel); font-size: 6px; color: var(--r, var(--com)); letter-spacing: 1px; text-shadow: 0 0 6px var(--r, var(--com)); z-index: 2; }
/* holographie */
.gc-card--holo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.16) 47%, rgba(255,255,255,0.05) 53%, transparent 70%);
  background-size: 250% 250%; animation: ar-holo 3.2s ease-in-out infinite;
}
@keyframes ar-holo { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* =========================================================
   DOCK MENU
   ========================================================= */
.ar-dock { display: grid; grid-template-columns: 1.6fr repeat(6, 1fr); gap: 12px; }
.ar-dock-btn {
  --c: var(--primary); --c-rgb: var(--primary-rgb);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 12px; cursor: pointer; text-decoration: none; position: relative; overflow: hidden;
  border: 1px solid var(--primary-border); border-radius: 11px; background: var(--panel); transition: all .22s;
}
.ar-dock-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: 0; transition: opacity .25s; }
.ar-dock-btn:hover { transform: translateY(-3px); border-color: rgba(var(--c-rgb), 0.5); box-shadow: 0 10px 26px rgba(0,0,0,0.4), 0 0 18px rgba(var(--c-rgb), 0.12); background: rgba(var(--c-rgb), 0.05); }
.ar-dock-btn:hover::before { opacity: .7; }
.ar-dock-ic { font-size: 26px; color: var(--ink-mute); transition: all .22s; }
.ar-dock-btn:hover .ar-dock-ic { color: var(--c); transform: scale(1.12); }
.ar-dock-lab { font-family: var(--f-pixel); font-size: 8px; color: var(--ink-mute); letter-spacing: .5px; transition: color .22s; }
.ar-dock-btn:hover .ar-dock-lab { color: var(--c); }
.ar-dock-sub { font-family: var(--f-term); font-size: 13px; color: var(--ink-dim); }

/* COMBAT — vedette */
.ar-dock-btn--combat {
  --c: var(--combat); --c-rgb: var(--combat-rgb);
  flex-direction: row; gap: 16px; justify-content: flex-start; padding: 0 24px;
  border-color: rgba(var(--combat-rgb), 0.35); background: linear-gradient(110deg, rgba(20,5,5,0.5), rgba(0,10,4,0.85));
  animation: ar-combat-pulse 2.6s ease-in-out infinite;
}
.ar-dock-btn--combat .ar-dock-ic { color: var(--combat); font-size: 32px; }
.ar-dock-btn--combat .ar-dock-lab { color: #fff; font-size: 13px; letter-spacing: 1px; }
.ar-dock-combat-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ar-dock-combat-sub { font-family: var(--f-term); font-size: 15px; color: var(--ink-mute); }
@keyframes ar-combat-pulse { 0%,100% { box-shadow: 0 0 0 rgba(var(--combat-rgb), 0); } 50% { box-shadow: 0 0 28px rgba(var(--combat-rgb), 0.2); } }
.ar-dock-flag { position: absolute; top: 9px; right: 11px; font-family: var(--f-pixel); font-size: 6px; color: #000; background: var(--combat); padding: 4px 6px; border-radius: 4px; animation: ar-blink 1.6s ease-in-out infinite; }
@keyframes ar-blink { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
/* teintes par mode (au survol seulement) */
.ar-dock-btn--shop { --c: var(--amber); --c-rgb: var(--amber-rgb); }
.ar-dock-btn--coll { --c: var(--rare); --c-rgb: var(--rare-rgb); }
.ar-dock-btn--forge { --c: #ff7a3c; --c-rgb: 255,122,60; }
.ar-dock-btn--casino { --c: var(--epic); --c-rgb: var(--epic-rgb); }
.ar-dock-btn--mine { --c: #b482ff; --c-rgb: 180,130,255; }
.ar-dock-btn--market { --c: var(--gem); --c-rgb: var(--gem-rgb); }

/* =========================================================
   MISSIONS (strip) + MARQUEE
   ========================================================= */
.ar-low { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.ar-missions { border: 1px solid var(--primary-border); border-radius: 11px; background: var(--panel); padding: 14px 16px; }
.ar-missions-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ar-missions-title { font-family: var(--f-pixel); font-size: 9px; color: var(--primary-dim); letter-spacing: 1px; display: flex; align-items: center; gap: 9px; }
.ar-missions-count { font-family: var(--f-pixel); font-size: 7px; color: #000; background: var(--primary); padding: 4px 8px; border-radius: 999px; box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4); }
.ar-missions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ar-mission { background: rgba(0,0,0,0.4); border: 1px solid rgba(var(--primary-rgb), 0.12); border-radius: 8px; padding: 11px 13px; }
.ar-mission.is-ready { border-color: var(--primary); box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.18); }
.ar-mission-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ar-mission-name { font-family: var(--f-term); font-size: 16px; color: #d6e8d4; line-height: 1; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-mission-frac { font-family: var(--f-term); font-size: 15px; color: var(--primary-dim); flex-shrink: 0; }
.ar-mission-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 9px; }
.ar-mission-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary-dim), var(--primary)); }
.ar-mission-foot { display: flex; align-items: center; justify-content: space-between; }
.ar-mission-rew { font-family: var(--f-term); font-size: 15px; color: var(--amber); }
.ar-mission-claim { font-family: var(--f-pixel); font-size: 7px; color: #000; background: var(--primary); border: none; border-radius: 5px; padding: 6px 9px; cursor: pointer; box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4); transition: all .2s; }
.ar-mission-claim:hover { filter: brightness(1.12); }
.ar-mission-got { font-family: var(--f-term); font-size: 14px; color: var(--primary-dim); }

/* bonus + news */
.ar-side { display: flex; flex-direction: column; gap: 14px; }
.ar-bonus {
  border: 1px solid rgba(var(--amber-rgb), 0.3); border-radius: 11px; padding: 14px 16px; cursor: pointer;
  background: linear-gradient(110deg, rgba(40,30,0,0.45), var(--panel)); display: flex; align-items: center; gap: 12px; transition: all .2s;
}
.ar-bonus:hover { box-shadow: 0 0 20px rgba(var(--amber-rgb), 0.15); }
.ar-bonus.is-claimed { opacity: .5; cursor: default; }
.ar-bonus-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px; font-size: 19px; color: var(--amber); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(var(--amber-rgb), 0.3); background: rgba(40,30,0,0.4); }
.ar-bonus-body { flex: 1; min-width: 0; }
.ar-bonus-title { font-family: var(--f-pixel); font-size: 8px; color: var(--amber); letter-spacing: .5px; }
.ar-bonus-sub { font-family: var(--f-term); font-size: 15px; color: var(--ink-mute); margin-top: 4px; white-space: nowrap; }
.ar-bonus-flag { font-family: var(--f-pixel); font-size: 7px; color: var(--amber); border: 1px solid rgba(var(--amber-rgb), 0.4); background: rgba(var(--amber-rgb), 0.12); padding: 5px 8px; border-radius: 999px; flex-shrink: 0; animation: ar-blink 1.8s ease-in-out infinite; }

.ar-news { flex: 1; border: 1px solid var(--primary-border); border-radius: 11px; background: var(--panel); padding: 13px 16px; overflow: hidden; }
.ar-news-title { font-family: var(--f-pixel); font-size: 8px; color: var(--primary-dim); letter-spacing: 1px; margin-bottom: 11px; }
.ar-news-list { display: flex; flex-direction: column; gap: 14px; }
.ar-news-item { font-family: var(--f-term); font-size: 16px; color: var(--ink-mute); display: flex; gap: 8px; line-height: 1.3; }
.ar-news-item b { color: var(--primary); font-weight: 400; }
.ar-news-dot { color: var(--amber); }

/* marquee bas */
.ar-marquee { border-top: 1px solid var(--primary-border); background: rgba(4,7,5,0.9); overflow: hidden; white-space: nowrap; }
.ar-marquee-track { display: inline-block; padding: 9px 0; font-family: var(--f-term); font-size: 17px; color: var(--primary-dim); animation: ar-marquee 26s linear infinite; }
.ar-marquee-track span { margin: 0 28px; }
.ar-marquee-track b { color: var(--amber); font-weight: 400; }
@keyframes ar-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   OVERLAY D'INVOCATION (reveal)
   ========================================================= */
.ar-reveal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 22px;
  background: rgba(3,5,3,0.9); pointer-events: none; }
.ar-reveal.show { display: flex; pointer-events: auto; }
.ar-reveal-flash { position: absolute; inset: 0; background: radial-gradient(circle, rgba(var(--leg-rgb), 0.5), transparent 60%); opacity: 0; }
.ar-reveal.show .ar-reveal-flash { animation: ar-flash .6s ease-out; }
@keyframes ar-flash { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
.ar-reveal-card { z-index: 2; position: relative; }
.ar-reveal-card::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 420px; height: 420px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--r-rgb, var(--com-rgb)), 0.4), transparent 62%); z-index: 0; pointer-events: none;
  animation: ar-halo-pulse 2s ease-in-out infinite;
}
@keyframes ar-halo-pulse { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
.ar-reveal.show .ar-reveal-card .gc-card { position: relative; z-index: 1; animation: ar-pop .5s cubic-bezier(.2,1.4,.4,1); width: 220px; height: 306px; box-shadow: 0 0 80px rgba(var(--r-rgb, var(--com-rgb)), 0.6), inset 0 0 16px rgba(0,0,0,0.5); }
@keyframes ar-pop { 0% { transform: scale(.8) rotate(-5deg); } 60% { transform: scale(1.05) rotate(2deg); } 100% { transform: scale(1) rotate(0); } }
.ar-reveal-rar { z-index: 2; font-family: var(--f-pixel); font-size: 16px; letter-spacing: 2px; text-shadow: 0 0 16px currentColor; opacity: 1; }
.ar-reveal.show .ar-reveal-rar { animation: ar-rar-in .45s ease-out; }
@keyframes ar-rar-in { 0% { transform: translateY(10px); } 100% { transform: translateY(0); } }
.ar-reveal-hint { z-index: 2; font-family: var(--f-term); font-size: 17px; color: var(--ink-mute); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .ar-stage { grid-template-columns: 1fr; }
  .ar-stage-cards { order: -1; min-height: 240px; }
  .ar-card-fan { transform: scale(0.82); }
  .ar-dock { grid-template-columns: repeat(4, 1fr); }
  .ar-dock-btn--combat { grid-column: 1 / -1; }
  .ar-low { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .ar-hud-in { min-height: 56px; padding: 8px 14px; gap: 10px; }
  .ar-plvl-bar { width: 70px; }
  .ar-cur .ar-coin { font-size: 16px; padding: 6px 9px; }
  .ar-wrap { padding: 14px; }
  .ar-stage-info { padding: 24px; }
  .ar-banner-title { font-size: 20px; }
  .ar-dock { grid-template-columns: repeat(2, 1fr); }
  .ar-missions-grid { grid-template-columns: 1fr; }
  .ar-sep { display: none; }
  .ar-brand { font-size: 11px; }
  /* sur l'accueil : masque le bloc joueur détaillé, garde l'avatar */
  .ar-pinfo { display: none; }
}
@media (max-width: 460px) {
  .ar-cur .ar-coin { font-size: 14px; padding: 5px 7px; gap: 5px; }
  .ar-coin-add { display: none; }
  .ar-brand { font-size: 9px; }
}

/* =========================================================
   INTÉGRATION PROJET GACHA-GAME
   Les pages refondues chargent aussi style.css (pour les modales
   Paramètres / Succès / Patch notes / toasts / cadres). On neutralise
   ici les règles globales de style.css qui cassent la mise en page arcade.
   ========================================================= */
body.arcade-page {
  display: block; align-items: stretch; justify-content: flex-start;
  overflow-x: hidden; overflow-y: auto;
  background: var(--bg); color: var(--primary); font-family: var(--f-term);
}
body.arcade-page::before, body.arcade-page::after { content: none !important; display: none !important; }
/* le thème arcade pilote sa propre palette (priorité sur style.css) */
html[data-theme="blue"] .ar-root { --primary: #00e5ff; --primary-rgb: 0,229,255; --primary-dim: #00b8d4; --primary-dark: #002233; --primary-border: #16283a; }
html[data-theme="rose"] .ar-root { --primary: #ff2e88; --primary-rgb: 255,46,136; --primary-dim: #cc0055; --primary-dark: #2a0014; --primary-border: #321528; }

/* ---- nav secondaire (liens qui ne tiennent pas dans le dock) ---- */
.ar-nav-extra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ar-navpill {
  font-family: var(--f-pixel); font-size: 8px; letter-spacing: .5px; text-decoration: none;
  color: var(--ink-mute); background: var(--panel); border: 1px solid var(--primary-border);
  border-radius: 999px; padding: 9px 14px; transition: all .18s; display: inline-flex; align-items: center; gap: 7px;
}
.ar-navpill:hover { color: var(--primary); border-color: rgba(var(--primary-rgb), 0.4); box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.12); }
.ar-navpill .ic { font-size: 12px; }
.ar-navpill--bp:hover { color: var(--amber); border-color: rgba(var(--amber-rgb), 0.4); }
.ar-navpill--guild:hover { color: var(--epic); border-color: rgba(var(--epic-rgb), 0.4); }

/* ---- toggle effets CRT dans la modale Paramètres ---- */
.ar-fx-row { display: flex; gap: 8px; margin-top: 10px; }
.ar-fx-btn {
  flex: 1; font-family: var(--f-pixel); font-size: 8px; letter-spacing: .5px; cursor: pointer;
  color: var(--ink-mute); background: rgba(0,0,0,0.4); border: 1px solid var(--primary-border);
  border-radius: 8px; padding: 10px 6px; transition: all .18s;
}
.ar-fx-btn.is-active { color: #000; background: var(--primary); border-color: var(--primary); }

/* ---- état chargement / vide générique ---- */
.ar-loading { font-family: var(--f-term); font-size: 16px; color: var(--ink-dim); padding: 14px; text-align: center; }

/* liens dans l'UI arcade : pas de soulignement hérité de style.css */
.ar-root a { text-decoration: none; }
.ar-root a.ar-coin, .ar-root a.ar-gear { text-decoration: none; }
.hidden { display: none !important; }
