/* fx777-epic.css — EPIC EDITION graphics layer (2026-11-25 overhaul, Steven's order:
   "most epic graphics we can do", bounded by iPad/modest-hardware performance truth).
   Layered AFTER fx777.css + fx777v2.css, only in /games/<game>-epic/ editions.
   Vanilla CSS only. All animation is transform/opacity/background-position on
   small areas; everything is disabled under prefers-reduced-motion, and the
   companion JS governor (fx777-epic.js) adds html.epic-lite / html.epic-off
   on weak hardware, which strips the costly pieces below. */
:root{
  --ep-gold:#ffd74d; --ep-gold-hot:#fff3c4; --ep-deep:#c9930a;
  --ep-violet:#a86bff; --ep-ink:#07040f;
  --ep-glow:rgba(255,215,77,.55); --ep-glow-v:rgba(168,107,255,.40);
}
/* ambient stage: layered radial nebula + vignette, fixed, behind everything */
body::before{
  content:""; position:fixed; inset:0; z-index:-2; pointer-events:none;
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(168,107,255,.16), transparent 60%),
    radial-gradient(1000px 700px at 12% 110%, rgba(255,150,60,.10), transparent 60%),
    radial-gradient(700px 500px at 50% 45%, rgba(255,215,77,.05), transparent 65%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.5) 100%);
}
html[data-fx777="space"] body::before{ z-index:-3; } /* keep the WebGL starfield (z -1) on top of the epic nebula */
/* title: animated liquid-gold gradient + stronger halo */
.g7-head h1{
  background:linear-gradient(100deg,#fff6d8 0%,var(--ep-gold) 30%,var(--ep-deep) 50%,var(--ep-gold) 70%,#fff6d8 100%);
  background-size:220% 100%;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:var(--ep-gold);
  filter:drop-shadow(0 2px 14px var(--ep-glow)) drop-shadow(0 0 34px rgba(255,215,77,.25));
}
body.g7-ready .g7-head h1{ animation:epSheen 7s ease-in-out infinite alternate; }
@keyframes epSheen{ from{ background-position:0% 0; } to{ background-position:100% 0; } }
/* EPIC badge under the title */
.g7-head::after{
  content:"EPIC EDITION"; display:block; width:max-content; margin:7px auto 2px;
  padding:3px 12px 4px; border:1px solid rgba(255,215,77,.65); border-radius:999px;
  font:700 10.5px/1.5 system-ui,sans-serif; letter-spacing:.34em; text-indent:.34em;
  color:var(--ep-gold-hot); background:linear-gradient(180deg,rgba(255,215,77,.16),rgba(201,147,10,.10));
  box-shadow:0 0 18px -2px var(--ep-glow), inset 0 0 12px rgba(255,215,77,.12);
}
/* buttons: deeper jewel gradient edge + hotter hover aura (transform/opacity-safe) */
button{
  box-shadow:0 2px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,215,77,.10);
}
button:hover{
  box-shadow:0 6px 22px rgba(0,0,0,.5),0 0 0 1px rgba(255,215,77,.45),0 0 26px -4px var(--ep-glow), inset 0 1px 0 rgba(255,255,255,.2);
}
button:active{ transform:translateY(1px) scale(.985); }
/* game canvases: cinematic color grade + deep jewel frame.
   The filter is the one costly piece: the JS governor removes it (epic-lite) if frames suffer. */
canvas:not(.fx777-webgl):not(.fx777-epic-fx){
  filter:saturate(1.22) contrast(1.07) brightness(1.04);
  border-radius:16px;
  box-shadow:0 18px 54px rgba(0,0,0,.6),0 0 0 1px rgba(255,215,77,.28),0 0 44px -6px var(--ep-glow),0 0 90px -18px var(--ep-glow-v), inset 0 0 0 1px rgba(255,255,255,.05);
}
/* DOM game boards/panels pick up a glass sheen where games use plain panels */
.g7-main{ filter:none; }
/* particle overlay canvas (JS-driven) */
canvas.fx777-epic-fx{ position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:3; }
/* governor fallbacks */
html.epic-lite canvas:not(.fx777-webgl):not(.fx777-epic-fx){ filter:none; }
html.epic-lite body.g7-ready .g7-head h1{ animation:none; }
html.epic-off canvas.fx777-epic-fx{ display:none; }
@media (prefers-reduced-motion: reduce){
  body.g7-ready .g7-head h1{ animation:none; }
  canvas.fx777-epic-fx{ display:none; }
}

/* batch1 2026-11-26: fx overlay must stay transparent — bare canvas{background} rules in EPIC twins otherwise paint it opaque */
canvas.fx777-epic-fx{background:transparent!important;border:none!important;box-shadow:none!important;border-radius:0!important}
