/* Apprentice Mage Gale: the game page and its press page. Loaded after assets/site.css.
   Frames, buttons, wells and tags are the game's own UI art (assets/amg/ui), drawn at whole-pixel scales so every pixel
   stays crisp. Colours come from the game's logo and its UI. */
:root{
  --abyss:#120D22; --abyss-2:#0B0816; --night:#1B1430; --panel:#211A34; --ink:#0E0B18;
  --plum:#261A28; --rim:#FFE28C; --gold:#FFE445; --gold-2:#E2A646; --amber:#F4BE60;
  --lav:#DEC4FF; --violet:#B68CFF; --violet-2:#8F62F2; --azure:#4F7ACA;
  --text:#F8F0FF; --dim:#B4AACB; --line:rgba(182,140,255,.22);
  --fire:#FF8A3D; --fire-2:#FFC24A; --frost:#8FDCFF; --frost-2:#3D8BFF; --heal:#7CF27A; --shield:#8EC2FF; --warn:#FF5E57;
  --c-gale:#C9A2FF; --c-priest:#FFFFFF; --c-knight:#C3C3D3; --c-slime:#8BE04A;
  --disp:"Pixelify Sans","Nunito Sans",system-ui,sans-serif;
  --px:3;
}
body.amg{background:var(--abyss)}
.amg ::selection{background:var(--violet-2);color:#fff}
.amg .pixel,.amg .spr,.amg .px-img{image-rendering:pixelated;image-rendering:crisp-edges}

/* the shared backdrop in the game's colours */
.amg #veil::before{background:radial-gradient(circle,rgba(79,122,202,.24),transparent 68%)}
.amg #veil::after{background:radial-gradient(circle,rgba(182,140,255,.2),transparent 68%)}
.amg #motes{opacity:.9}
.amg #bar{background:linear-gradient(90deg,var(--violet-2),var(--gold),#FFF8CC);box-shadow:0 0 14px rgba(255,228,69,.55)}
.amg .rail .stone{background:repeating-linear-gradient(0deg,rgba(182,140,255,.12) 0 2px,transparent 2px 46px),
  linear-gradient(180deg,rgba(38,26,40,.6),rgba(18,13,34,.2));border-color:rgba(182,140,255,.18)}
.amg .rail .vine{background:linear-gradient(180deg,transparent,rgba(182,140,255,.3) 8%,rgba(182,140,255,.3) 92%,transparent)}
.amg .rail .fill{background:linear-gradient(180deg,var(--violet-2),var(--gold));box-shadow:0 0 12px rgba(255,228,69,.45)}
.amg .node{border-color:rgba(182,140,255,.45)}
.amg .node::after{border-color:rgba(182,140,255,.25)}
.amg .node.lit{background:var(--gold);border-color:var(--gold);box-shadow:0 0 18px rgba(255,228,69,.7)}
.amg .nav.solid{background:rgba(18,13,34,.9)}
.amg .menu-list{background:rgba(27,20,48,.97)}
.amg .btn::after{display:none} /* no sheen sweeps: the game has none */

/* ---------- type ---------- */
.amg h2{font-family:var(--disp);font-weight:600;font-size:clamp(32px,4.8vw,54px);letter-spacing:.01em;text-shadow:0 4px 0 var(--plum)}
.amg h3{font-family:var(--disp);font-weight:600}
.amg .eyebrow{font-family:var(--disp);font-size:15px;letter-spacing:.14em;color:var(--gold)}
.amg .eyebrow::before{width:11px;height:11px;background:var(--gold);
  clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%)}
.amg .eyebrow img{width:27px;height:27px;image-rendering:pixelated}
.amg .eyebrow.ic::before{display:none}
.amg .center{text-align:center}
.amg .center .eyebrow{justify-content:center}
.amg .center p{margin-left:auto;margin-right:auto}
.amg .lead{font-size:19px;color:#EDE4FA}
.amg b.hot{color:var(--gold);font-weight:800}
.nw{white-space:nowrap}

/* ---------- the game's UI as nine-slice frames ---------- */
.pnl{position:relative;border:24px solid transparent;border-image:url("ui/panel.png") 8 fill / 24px stretch;
  image-rendering:pixelated;image-rendering:crisp-edges}
.pnl>*{image-rendering:auto}
.gcard{border:9px solid transparent;border-width:9px 6px 6px 9px;border-image:url("ui/card.png") 3 2 2 3 fill / 9px 6px 6px 9px stretch;
  image-rendering:pixelated}
.gcard>*{image-rendering:auto}
.well{border:6px solid transparent;border-image:url("ui/inset.png") 2 fill / 6px stretch;image-rendering:pixelated}
.tagx{display:inline-block;border:6px solid transparent;border-image:url("ui/tag.png") 2 fill / 6px stretch;image-rendering:pixelated;
  font-family:var(--disp);font-weight:700;font-size:13px;line-height:1;letter-spacing:.06em;color:#2A1606;padding:0 3px;text-transform:uppercase}
.rule-px{height:6px;background:url("ui/rule.png") center/100% 6px no-repeat;image-rendering:pixelated;border:0;margin:18px auto}

/* buttons: the game's gold PRIMARY and its purple button */
.gbtn{--b:url("ui/primary.png");--bh:url("ui/primary-hover.png");
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  border:solid transparent;border-width:9px 6px 6px 9px;border-image:var(--b) 3 2 2 3 fill / 9px 6px 6px 9px stretch;
  image-rendering:pixelated;image-rendering:crisp-edges;
  font-family:var(--disp);font-weight:700;font-size:21px;line-height:1.1;color:#2A1606;text-decoration:none;
  padding:9px 26px 11px;cursor:pointer;background:none;user-select:none;
  filter:drop-shadow(0 6px 0 rgba(10,6,22,.55)) drop-shadow(0 14px 22px rgba(6,4,20,.45));
  transition:transform .12s var(--ease),filter .12s var(--ease)}
.gbtn img{width:24px;height:24px;image-rendering:pixelated}
.gbtn:hover{border-image-source:var(--bh);transform:translateY(-2px);
  filter:drop-shadow(0 8px 0 rgba(10,6,22,.55)) drop-shadow(0 18px 26px rgba(255,228,69,.25))}
.gbtn:active{transform:translateY(2px);filter:drop-shadow(0 2px 0 rgba(10,6,22,.55))}
.gbtn:focus{outline:none}
.gbtn:focus-visible{outline:2px solid #fff;outline-offset:4px}
.gbtn.purple{--b:url("ui/button.png");--bh:url("ui/button-hover.png");color:var(--text)}
.gbtn.sm{font-size:17px;padding:5px 16px 7px}
.gbtn.lg{font-size:25px;padding:12px 34px 14px}
.gbtn[disabled]{cursor:default;opacity:.6;transform:none}
.gbtn .k{font-family:var(--mono);font-size:11px;letter-spacing:.08em;opacity:.75;border:1px solid currentColor;border-radius:3px;padding:1px 5px}
.gbtns{display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.center .gbtns{justify-content:center}
.amg .glow-pulse{animation:gpulse 2.6s ease-in-out infinite}
@keyframes gpulse{0%,100%{filter:drop-shadow(0 6px 0 rgba(10,6,22,.55)) drop-shadow(0 14px 22px rgba(6,4,20,.45))}
  50%{filter:drop-shadow(0 6px 0 rgba(10,6,22,.55)) drop-shadow(0 10px 34px rgba(255,228,69,.55))}}

/* sprites: assets/amg/sprites strips, stepped by amg.js */
.spr{display:block;background-repeat:no-repeat;pointer-events:none}

/* the spellbook's stage: Gale casts the chosen spell at two foes (amg.js Stage) */
.stage{position:relative;aspect-ratio:16/9;overflow:hidden;background:#120c20}
.stage-units{position:absolute;inset:0;z-index:2}
.su{position:absolute;bottom:0;width:0;height:0}
.su .spr{position:absolute;left:0;bottom:0;transition:filter .25s}
.stage-fx{position:absolute;inset:0;z-index:4;pointer-events:none}
.stage-fx .pop{font-size:22px}
.stage-fx .pop.big{font-size:30px}
.stage-fx .pop img,.land-fx .pop img{width:18px;height:18px;vertical-align:-3px;margin-right:3px;image-rendering:pixelated}
.stage .spr.frozen{filter:brightness(1.15) saturate(.3) sepia(.35) hue-rotate(165deg) drop-shadow(0 0 8px rgba(143,220,255,.8))}
.stage.shake{animation:landshake .34s}

/* the game's battle backgrounds, layer by layer (amg.js Scene), at a whole-pixel scale --bk */
.bgx{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.bgx .bgl{position:absolute;inset:0;transition:opacity .6s}
.bgx i{position:absolute;left:0;right:0;bottom:0;height:calc(108px * var(--bk,3));background-repeat:repeat-x;
  background-size:calc(192px * var(--bk,3)) calc(108px * var(--bk,3));background-position:50% 100%;image-rendering:pixelated;image-rendering:crisp-edges}

/* GIFs in a slot well */
.scr{position:relative;border:6px solid transparent;border-image:url("ui/inset.png") 2 fill / 6px stretch;image-rendering:pixelated;
  box-shadow:0 26px 60px rgba(4,2,16,.55)}
.scr img{display:block;width:100%;height:auto;aspect-ratio:640/360;object-fit:cover;image-rendering:pixelated;
  background:linear-gradient(110deg,#1b152b 30%,#2a2142 50%,#1b152b 70%) 0 0/300% 100%;animation:load 1.6s linear infinite}
.scr img.ok{animation:none;background:#0d0a16}
.scr.banner img{aspect-ratio:640/172}
@keyframes load{to{background-position:-300% 0}}
.cap{margin-top:10px;font-family:var(--disp);font-size:15px;color:var(--dim);letter-spacing:.02em}
.cap b{color:var(--text);font-weight:600}

/* ================================================================ HERO */
.hero.amg{display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:92px 20px 54px;gap:20px}
.hero-low{position:relative;z-index:2;width:100%;text-align:center;display:flex;flex-direction:column;align-items:center}
.hero.amg .hero-art{background-color:#215416;background-size:max(100%,2400px) auto;background-position:55% 0}
.hero.amg .hero-fade{background:linear-gradient(to bottom,rgba(18,13,34,.55) 0,transparent 16%,transparent 62%,rgba(18,13,34,.62) 82%,var(--abyss) 100%)}
.hero.amg .hero-in{max-width:none;position:relative}
.hero.amg .logo{width:min(640px,88vw);margin:0 auto 6px;filter:drop-shadow(0 10px 22px rgba(18,13,34,.55));position:relative;z-index:2}
.title-glow{position:absolute;left:50%;top:50%;width:min(980px,130vw);height:auto;translate:-50% -54%;z-index:1;opacity:.85;
  image-rendering:pixelated;animation:bloom 1.6s .2s var(--ease) both,breathe 5s 1.8s ease-in-out infinite;pointer-events:none}
@keyframes bloom{from{opacity:0;scale:.6}to{opacity:.85;scale:1}}
@keyframes breathe{0%,100%{opacity:.85;scale:1}50%{opacity:.55;scale:.96}}
.wisp{position:absolute;z-index:3;width:calc(48px * var(--px));image-rendering:pixelated;opacity:0;pointer-events:none;
  animation:wisp 7s linear infinite}
.wisp.b{width:calc(36px * var(--px));animation-duration:9s;animation-delay:2.6s}
@keyframes wisp{0%{opacity:0;transform:translateX(-120px)}12%{opacity:.85}80%{opacity:.7}100%{opacity:0;transform:translateX(220px)}}
.hero.amg .tag{font-family:var(--disp);font-weight:600;font-size:clamp(22px,2.8vw,32px);max-width:none;margin:0 auto 22px;
  color:#fff;text-shadow:0 3px 0 var(--plum),0 0 24px rgba(18,13,34,.85)}
.hero.amg .cta{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;animation:up .9s .52s var(--ease) both}
.hero.amg .meta{margin:20px 0 0;text-align:center}
.meta #countdown b{color:var(--gold)}
.creator-link{display:inline-flex;align-items:center;gap:10px;margin-top:18px;font-family:var(--disp);font-weight:600;font-size:17px;
  color:var(--lav);text-decoration:none;padding:6px 14px;border-radius:99px;background:rgba(18,13,34,.62);border:1px solid rgba(182,140,255,.4);
  animation:up .9s .8s var(--ease) both;transition:background .2s,color .2s}
.creator-link:hover{background:rgba(58,38,90,.85);color:#fff}
.creator-link i{font-style:normal;color:var(--gold)}
.countdown{display:inline-flex;align-items:baseline;gap:10px;margin-top:14px;font-family:var(--disp);font-size:16px;color:#fff;
  text-shadow:0 2px 0 var(--plum);animation:up .9s .9s var(--ease) both}
.countdown b{font-size:28px;color:var(--gold);letter-spacing:.02em}

/* ================================================================ THE PARTY */
.arena{max-width:1040px;margin:44px auto 0}
.arena .pnl{padding:0}
.arena-in{position:relative;overflow:hidden;height:clamp(300px,34vw,400px);
  background:#2947B4 url("art/AMG_Page_Background_1438x810.png") center 78%/cover no-repeat;image-rendering:pixelated}
.arena-in::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 55%,rgba(14,11,24,.35));pointer-events:none}
.fighters{position:absolute;left:0;right:0;bottom:15%;display:flex;align-items:flex-end;justify-content:space-between;padding:0 6%;z-index:2}
.side{display:flex;align-items:flex-end;gap:clamp(8px,2.2vw,30px);--k:5}
.fighter{position:relative;display:flex;flex-direction:column;align-items:center;cursor:pointer;pointer-events:auto;
  background:none;border:0;padding:0;color:inherit}
.fighter:focus{outline:none}
.fighter:focus-visible .nm{outline:2px solid #fff;outline-offset:2px}
.fighter .nm{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);white-space:nowrap;
  font-family:var(--disp);font-weight:700;font-size:14px;line-height:1;padding:5px 9px 6px;border-radius:4px;
  color:var(--ink);background:var(--c);box-shadow:0 3px 0 var(--plum);transition:transform .2s var(--ease)}
.fighter:hover .nm,.fighter.on .nm{transform:translateX(-50%) translateY(-4px)}
.fighter .act{position:absolute;bottom:calc(100% + 36px);left:50%;transform:translateX(-50%);white-space:nowrap;
  font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#fff;opacity:0;
  text-shadow:0 1px 0 var(--ink),0 0 8px rgba(14,11,24,.9);transition:opacity .2s}
.fighter:hover .act,.fighter.on .act{opacity:1}
.foe{--k:5}
/* the orc's strip holds its swings and its fall: the button hugs its body (box 38 x 33, body 8 8 30 24) */
.foe .spr{margin:calc(-8px * var(--k)) calc(-8px * var(--k)) calc(-9px * var(--k))}
.foe .spr{transition:opacity .5s}
.foe.gone .spr{opacity:0}
/* the Slime's box is wide enough for its lunge: only its body (26 of 49 columns) takes room in the line */
.fighter[data-who="slime"]{align-items:flex-start;width:calc(26px * var(--k))}
.fighter[data-who="slime"] .spr{margin-right:calc(-23px * var(--k))}
.foe .hp{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);width:84px;height:10px;
  border:2px solid var(--ink);background:#3a1420;box-shadow:0 2px 0 var(--plum)}
.foe .hp i{display:block;height:100%;width:100%;background:linear-gradient(180deg,#ff8a7a,#e0453c);transition:width .35s var(--ease)}
.pops{position:absolute;inset:0;pointer-events:none;z-index:5}
.pop{position:absolute;font-family:var(--disp);font-weight:700;font-size:30px;line-height:1;color:var(--c,#fff);
  -webkit-text-stroke:2px var(--ink);paint-order:stroke fill;text-shadow:0 3px 0 var(--ink);
  animation:pop 1.1s var(--ease) forwards;white-space:nowrap}
.pop.big{font-size:40px}
.pop small{font-size:.6em}
@keyframes pop{0%{opacity:0;transform:translate(-50%,0) scale(.4)}
  14%{opacity:1;transform:translate(-50%,-34px) scale(1.25)}
  34%{transform:translate(calc(-50% + var(--dx,14px)),-20px) scale(1)}
  52%{transform:translate(calc(-50% + var(--dx,14px) * 1.5),-30px)}
  100%{opacity:0;transform:translate(calc(-50% + var(--dx,14px) * 2),-6px)}}
.fxs{position:absolute;pointer-events:none;z-index:5;image-rendering:pixelated;background-repeat:no-repeat}
.arena-hint{position:absolute;left:50%;top:14px;transform:translateX(-50%);z-index:6;font-family:var(--disp);font-size:14px;color:#fff;
  padding:4px 12px;border-radius:99px;background:rgba(14,11,24,.6);text-shadow:0 1px 0 var(--ink);white-space:nowrap;transition:opacity .4s}
.arena-hint.gone{opacity:0}

/* ================================================================ FEATURES */
.amg .feature{gap:52px}
.feature .copy .tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.chiplet{display:inline-flex;align-items:center;gap:8px;font-family:var(--disp);font-weight:600;font-size:15px;color:#fff;
  padding:5px 12px 6px 8px;border-radius:99px;background:rgba(38,26,40,.85);border:2px solid var(--plum);box-shadow:0 3px 0 var(--plum)}
.chiplet img{width:18px;height:18px;image-rendering:pixelated}
.chiplet.c-gale{color:var(--c-gale)} .chiplet.c-priest{color:var(--c-priest)} .chiplet.c-knight{color:var(--c-knight)} .chiplet.c-slime{color:var(--c-slime)}

/* the skill tree's sky */
.sky-sec{position:relative;overflow:hidden}
.sky-sec canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.9}

/* ================================================================ SPELLBOOK */
.grimoire{margin-top:40px}
.grimoire .pnl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:0;padding:0}
.book-l,.book-r{padding:22px 24px 24px}
.book-l{border-right:3px solid #4a3c70}
.schools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.schools button{font-family:var(--disp);font-weight:600;font-size:15px;color:var(--dim);background:rgba(14,11,24,.5);
  border:2px solid #3a2e5c;border-radius:4px;padding:5px 12px;cursor:pointer;transition:color .2s,border-color .2s,background .2s}
.schools button:hover{color:#fff}
.schools button[aria-pressed="true"]{color:var(--ink);background:var(--gold);border-color:var(--gold)}
.spell-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.spell-grid button{position:relative;aspect-ratio:1;display:grid;place-items:center;cursor:pointer;padding:0;background:none;
  border:6px solid transparent;border-image:url("ui/inset.png") 2 fill / 6px stretch;image-rendering:pixelated;
  transition:transform .18s var(--ease)}
.spell-grid button img{width:64px;height:64px;max-width:80%;max-height:80%;image-rendering:pixelated;transition:transform .25s var(--ease)}
.spell-grid button:hover img{transform:scale(1.12)}
.spell-grid button[aria-selected="true"]{border-image-source:url("ui/button-hover.png");border-image-slice:3 2 2 3 fill;border-image-width:9px 6px 6px 9px;
  border-width:9px 6px 6px 9px}
.spell-grid button[aria-selected="true"]::after{content:"";position:absolute;inset:-10px;border-radius:8px;
  box-shadow:0 0 22px rgba(255,228,69,.45);pointer-events:none;animation:breathe 2.4s ease-in-out infinite}
.spell-grid button.dim{opacity:.28;filter:grayscale(.7)}
.spell-grid button:focus{outline:none}
.spell-grid button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.spell-head{display:flex;gap:18px;align-items:center}
.spell-head .big{width:96px;height:96px;flex:0 0 96px;display:grid;place-items:center}
.spell-head .big img{width:64px;height:64px;image-rendering:pixelated}
.spell-head h3{font-size:clamp(26px,3vw,34px);line-height:1;color:#fff;text-shadow:0 3px 0 var(--plum)}
.spell-head .chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.sch{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;padding:3px 8px;border-radius:3px;color:var(--ink);font-weight:600}
.sch.fire{background:var(--fire)} .sch.frost{background:var(--frost)} .sch.both{background:linear-gradient(90deg,var(--fire),var(--frost))}
.sch.type{background:transparent;color:var(--lav);border:1px solid rgba(182,140,255,.5)}
.spell-say{margin:16px 0 18px;font-family:var(--disp);font-size:20px;line-height:1.35;color:#fff;min-height:2.7em;max-width:none}
.spell-say.swap{animation:swapin .45s var(--ease)}
@keyframes swapin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.cycle{height:4px;margin-top:12px;background:rgba(182,140,255,.18);overflow:hidden}
.cycle i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--violet-2),var(--gold))}
.combos{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:26px}
.combo{display:flex;align-items:center;gap:12px;padding:12px 14px}
.combo .ico{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.combo .ico img{width:40px;height:40px;image-rendering:pixelated}
.combo .ico i{font-style:normal;font-family:var(--disp);font-weight:700;color:var(--gold);font-size:20px;animation:nudge 1.4s ease-in-out infinite}
@keyframes nudge{50%{transform:translateX(4px)}}
.combo p{margin:0;font-size:14.5px;line-height:1.45;color:#E6DDF5}
.combo p b{display:block;font-family:var(--disp);font-weight:600;font-size:16px;color:#fff}

/* ================================================================ the page kept short
   (owner, 2026-10-16: less vertical scrolling): tighter sections, smaller headings and gaps */
.amg section{padding:46px 0}
.amg h2{font-size:clamp(28px,3.6vw,44px);margin-bottom:12px}
.amg .lead{font-size:17px;line-height:1.6}
.amg .feature{gap:40px}
.arena{margin-top:24px}
.arena-in{height:clamp(260px,28vw,340px)}
.grimoire{margin-top:22px}
.combos{margin-top:16px}
/* the spellbook in two columns: all 16 spells in two rows with the chosen one's words under them, its stage beside */
.grimoire .pnl{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)}
.book-l,.book-r{padding:18px 20px 20px}
.book-r{display:flex;align-items:center}
.book-r .scr{width:100%}
.schools{margin-bottom:12px}
.spell-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.spell-grid button{border-width:4px;border-image-width:4px}
.spell-grid button[aria-selected="true"]{border-width:6px 4px 4px 6px;border-image-width:6px 4px 4px 6px}
.spell-grid button img{width:36px;height:36px}
.spell-grid button[aria-selected="true"]::after{inset:-6px}
.spell-info{margin-top:14px}
.spell-head{gap:14px}
.spell-head .big{width:68px;height:68px;flex:0 0 68px}
.spell-head .big img{width:48px;height:48px}
.spell-head h3{font-size:clamp(24px,2.6vw,30px)}
.spell-head .chips{margin-top:8px}
.spell-say{margin:12px 0 0;font-size:18px;min-height:2.6em}
.combo{padding:10px 12px;gap:10px}
.combo .ico img{width:28px;height:28px}
.combo .ico i{font-size:16px}
.combo p{font-size:14px;line-height:1.4}
.combo p b{font-size:15px}
/* the numbers as one slim row */
.creators .grid3{margin:16px 0 18px}
.closing .scr{margin:16px auto 20px}
.closing .gbtns{justify-content:center;gap:12px}
.closing .gbtn.lg{font-size:20px;padding:9px 22px 11px}
.closing .gbtn:not(.lg){font-size:18px;padding:9px 20px 11px}
.amg .gallery{margin-top:20px}
.gallery.folded .more-shot{display:none}
.gallery.folded a.big~a.big{grid-column:span 1;grid-row:span 1}   /* folded, only the first still is large: two even rows */

.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px 40px;flex-wrap:wrap;margin-bottom:18px}
.sec-head h2{margin:0}
.sec-head>p{margin:0;max-width:56ch;font-size:16px;line-height:1.55;color:#E4DAF5}
.sec-head>p a{color:var(--gold)}
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.duo{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;align-items:center;padding:10px 12px 10px 10px}
.duo .scr{box-shadow:none}
.duo .eyebrow{font-size:12px;margin:0 0 4px}
.duo .eyebrow img{width:20px;height:20px}
.duo h3{font-size:20px;line-height:1.1;margin:0 0 6px;color:#fff}
.duo p{margin:0;font-size:14px;line-height:1.5;color:#E4DAF5}
/* ================================================================ the room used (owner, 2026-10-16: "use all the space available rather
   than pushing things away"): a wider page on wide screens, and sections side by side */
@media (min-width:1280px){
  /* the page runs edge to edge, with a small margin that grows with the screen */
  .amg .wrap{max-width:none;padding:0 clamp(26px,3.2vw,120px)}
  .amg .gallery.four{grid-template-columns:repeat(6,1fr)}
  /* the arena keeps the shape of a battle screen as its column widens; amg.js sizes the party to it */
  #party .arena-in{height:auto;aspect-ratio:16 / 6.2;min-height:260px}
  .journey.pinned .land{flex-basis:clamp(430px,22vw,620px)}
  .spell-grid button img{width:62%;height:auto;max-width:56px}
}
@media (min-width:2200px){
  .amg .gallery.four{grid-template-columns:repeat(8,1fr)}
}
.amg .rail{display:none !important}   /* the edge rails would crowd a page that runs to the edges */
.split{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px 34px;align-items:start}
.split-a>.rise:first-child h2,.split-b>h2{margin-bottom:8px}
.split .lead{font-size:16.5px}
#party .arena{max-width:none;margin:16px 0 0}
#party .split-b>p{margin:0 0 10px;font-size:15.5px;line-height:1.55;color:#E4DAF5}
#party .split-b .tags{margin:0 0 14px}
#party .split-b h2{font-size:clamp(26px,2.8vw,40px)}
.spells-split{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px 20px}
.spells-split .grimoire{margin-top:0}
.spells-split .pair{grid-template-columns:minmax(0,1fr);margin-top:0;gap:14px}
.spells-split+.combos{margin-top:16px}
.finale .split{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:stretch}
.finale .split-a{margin:0}
.finale .grid3{margin:14px 0 18px}
.finale .closing{max-width:none;margin:0;display:flex;flex-direction:column;justify-content:center;text-align:center;gap:0}
.finale .closing p{font-size:clamp(20px,2.2vw,28px);margin:0 0 6px}
.finale .closing p.small{font-size:clamp(15px,1.4vw,18px);margin-bottom:14px}
.end-scene{position:relative;aspect-ratio:16/7;overflow:hidden;margin:0 0 14px;box-shadow:0 18px 40px rgba(4,2,16,.5)}
.end-scene::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(to bottom,transparent 60%,rgba(10,7,20,.25))}
.end-party{position:absolute;left:9%;bottom:20px;z-index:2;display:flex;align-items:flex-end;gap:16px;--k:3}
.end-party .spr[data-u="slime"]{margin-right:calc(-23px * var(--k))}
/* a few of the party in the headings, acting now and then */
.cameo{display:flex;align-items:flex-end;gap:10px;flex:0 0 auto;align-self:flex-end;margin-bottom:-6px}
.cameo .spr[data-u="slime"]{margin-right:-69px}
.sec-head{flex-wrap:nowrap}
.sec-head>div:first-child{flex:0 0 auto}
.sec-head>p{flex:1 1 auto;max-width:60ch}
/* a little more motion where a hand goes */
.amg .eyebrow img{animation:bob 2.6s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-3px)}}
.duo,.perk,.combo{transition:transform .25s var(--ease),filter .25s}
.duo:hover,.perk:hover,.combo:hover{transform:translateY(-4px);filter:drop-shadow(0 10px 18px rgba(4,2,16,.5))}
.amg .gallery a img{transition:transform .35s var(--ease)}
.amg .gallery a:hover img{transform:scale(1.06)}
@media (min-width:1101px) and (max-width:1599px){
  #party .side,#party .foe{--k:4}   /* the arena shares its row with the Skill Tree: one step smaller */
  #party .side{gap:clamp(6px,1.4vw,22px)}
}
@media (max-width:1100px){
  .split,.spells-split,.finale .split{grid-template-columns:minmax(0,1fr)}
  .sec-head{flex-wrap:wrap}
  .cameo{display:none}
}

/* ================================================================ THE ROAD: eight lands */
.journey{position:relative}
.journey-pin{position:relative}
.road-track{display:flex;gap:28px;padding:10px 26px 30px}
.land{position:relative;flex:0 0 min(430px,80vw);min-height:clamp(440px,60vh,540px);padding:0;overflow:hidden;
  border:24px solid transparent;border-image:url("ui/panel.png") 8 fill / 24px stretch;image-rendering:pixelated}
.land-in{position:absolute;inset:0;background:var(--bg);image-rendering:auto;overflow:hidden}
/* the land's own battle background (amg.js Scene) sits in .land-in; this shade keeps the title readable on any sky */
.land-in::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(to bottom,rgba(10,7,20,.72),rgba(10,7,20,.38) 30%,transparent 52%)}
.land .num{position:absolute;left:14px;top:12px;z-index:4;font-family:var(--disp);font-weight:700;font-size:48px;line-height:1;color:rgba(255,255,255,.22)}
.land .ln{position:absolute;left:16px;right:16px;top:56px;z-index:4}
.land h3{font-size:30px;line-height:1.05;color:#fff;text-shadow:0 3px 0 var(--ink)}
.land .ln p{margin:6px 0 0;font-size:14.5px;line-height:1.5;color:#F1EAFB;text-shadow:0 1px 2px rgba(14,11,24,.9),0 0 8px rgba(14,11,24,.8)}
/* units stand on the scene's ground line: amg.js sets each one's bottom and margins from its body */
.land .boss{position:absolute;left:60%;bottom:25%;width:0;height:0;z-index:2}
.land .boss .spr{position:absolute;left:0;bottom:0;transition:opacity .6s,filter .25s}
.land .mini-gale{left:17%}
.journey.pinned .mini-gale{display:none}
.land .spr.frozen{filter:brightness(1.15) saturate(.3) sepia(.35) hue-rotate(165deg) drop-shadow(0 0 10px rgba(143,220,255,.8))}
.land .spr.gone{opacity:0}
.land.shake{animation:landshake .34s}
@keyframes landshake{25%{transform:translate(-5px,2px)}50%{transform:translate(5px,-2px)}75%{transform:translate(-2px,0)}}
.land-fx,.pins-fx{position:absolute;inset:0;pointer-events:none;z-index:6}
.land-fx .pop{font-size:24px}
.land-fx .pop.big{font-size:30px}
.land-fx .pop img{width:18px;height:18px;vertical-align:-2px;image-rendering:pixelated}
.lcall{position:absolute;z-index:6;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:5px;pointer-events:none;transition:opacity .3s}
.lcall b{font-family:var(--disp);font-weight:700;font-size:22px;color:#ff6a4d;-webkit-text-stroke:3px #000;paint-order:stroke fill;white-space:nowrap;
  animation:callbob .3s steps(2) infinite}
@keyframes callbob{50%{transform:translateY(-2px)}}
.lcall span{width:96px;height:8px;background:#000;box-shadow:0 0 0 2px #000}
.lcall i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--fire-2),var(--warn))}
.lcall.done{opacity:0}
.land .bossname{position:absolute;left:0;right:0;bottom:14px;z-index:3;display:flex;flex-direction:column;align-items:center;gap:6px}
.land .bossname .bn{font-family:var(--disp);font-weight:600;font-size:17px;color:#fff;-webkit-text-stroke:3px var(--ink);paint-order:stroke fill;text-shadow:0 2px 0 var(--ink)}
.road{position:absolute;left:0;right:0;bottom:28px;height:4px;z-index:0;pointer-events:none;
  background:repeating-linear-gradient(90deg,rgba(255,228,140,.75) 0 14px,transparent 14px 26px)}
.road-party{position:absolute;left:5vw;bottom:32px;z-index:5;display:none;align-items:flex-end;gap:12px;pointer-events:none;--k:3}
.road-party .spr[data-u="slime"]{margin-right:calc(-23px * 3)}
.swipe-hint{display:none;margin:0 auto;text-align:center;font-family:var(--disp);font-size:15px;color:var(--lav);animation:nudge 1.6s ease-in-out infinite}
.journey-head{margin-bottom:34px}
.journey-foot{margin-top:26px}
@media (min-width:901px){
  .journey.pinned{height:var(--len,400vh)}
  .journey.pinned .journey-pin{position:sticky;top:0;height:100vh;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start;padding-top:74px}
  /* the road gets its own lane under the cards, and the cards take what height the screen has left */
  .journey.pinned .road-track{will-change:transform;padding-left:clamp(26px,3.2vw,120px);padding-bottom:104px}
  .journey.pinned .land{min-height:clamp(320px,calc(100vh - 330px),720px)}
  .journey.pinned .road-party{display:flex}
  .journey.pinned .journey-head{position:relative;margin-bottom:22px;width:100%}
}
@media (min-width:901px) and (max-height:820px){
  .journey.pinned .journey-head .lead{display:none}
}
/* Not pinned (a narrow screen, reduced motion, or no script): the road is a row to swipe or scroll through. */
.journey:not(.pinned) .road-track{overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.journey:not(.pinned) .land{scroll-snap-align:center}
.journey:not(.pinned) .swipe-hint{display:table;margin:-4px auto 22px}   /* as wide as its words: its nudge must not push the page */
@media (min-width:901px){
  /* a wide screen that is not pinned (reduced motion, or no script): every land at once, in a grid */
  .journey:not(.pinned) .road-track{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));overflow:visible;scroll-snap-type:none;
    max-width:1120px;margin:0 auto}
  .journey:not(.pinned) .swipe-hint,.journey:not(.pinned) .road{display:none}
}

/* ================================================================ TRAILER AND CLIPS: side by side, the clip list a strip under them */
.reel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px;margin-top:0;align-items:start}
.reel-trailer{margin:0}
.reel-trailer video{display:block;width:100%;aspect-ratio:16/9;background:#000}
.reel-screen{position:relative}
.reel-screen .scr img{transition:opacity .25s}
.reel-screen .scr img.fade{opacity:.15}
.reel-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;flex-wrap:wrap;min-height:44px}
.reel-nav .t{font-family:var(--disp);font-size:18px;color:#fff;flex:1 1 180px;margin:0;line-height:1.2}
.reel-nav .t small{display:block;font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}
.reel-nav .ar{display:flex;gap:8px}
.reel-nav a.dlc{font-family:var(--mono);font-size:12px;color:var(--gold);text-decoration:none;border-bottom:1px solid rgba(255,228,69,.35)}
.reel-list{grid-column:1 / -1;display:flex;align-items:center;gap:12px;padding:8px 10px;min-width:0}
.reel-filter{display:flex;gap:6px;flex:0 0 auto;margin:0}
.reel-filter button{font-family:var(--disp);font-size:14px;color:var(--dim);background:rgba(14,11,24,.5);border:2px solid #3a2e5c;border-radius:4px;padding:4px 10px;cursor:pointer}
.reel-filter button[aria-pressed="true"]{color:var(--ink);background:var(--gold);border-color:var(--gold)}
.reel-list ol{position:relative;list-style:none;margin:0;padding:2px 0 6px;display:flex;gap:6px;overflow-x:auto;flex:1 1 auto;min-width:0;scrollbar-width:thin;scroll-behavior:smooth}
.reel-list li{flex:0 0 auto}
.reel-list li button{display:flex;align-items:center;gap:8px;max-width:260px;white-space:nowrap;padding:6px 10px;cursor:pointer;
  font-family:var(--disp);font-size:14px;color:#E6DDF5;background:rgba(14,11,24,.45);border:2px solid transparent;border-radius:4px;transition:background .2s,border-color .2s}
.reel-list li button span{overflow:hidden;text-overflow:ellipsis;min-width:0}
.reel-list li button:hover{background:rgba(58,38,90,.6)}
.reel-list li button[aria-current="true"]{border-color:var(--gold);background:rgba(58,38,90,.8);color:#fff}
.reel-list li button i{font-style:normal;font-family:var(--mono);font-size:11px;color:var(--ink);background:var(--gold);border-radius:3px;padding:2px 6px}
.reel-list li[hidden]{display:none}

/* ================================================================ STILLS */
.amg .gallery a{border:6px solid transparent;border-image:url("ui/inset.png") 2 fill / 6px stretch;border-radius:0;image-rendering:pixelated}
.amg .gallery a:hover{border-image-source:url("ui/tag.png");box-shadow:0 16px 36px rgba(0,0,0,.45)}
.amg .gallery img{image-rendering:pixelated}

/* ================================================================ CREATORS */
.creators .pnl{padding:20px 26px 28px}
.creators .grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0 28px}
.perk{padding:14px 16px 16px}
.perk img{width:36px;height:36px;image-rendering:pixelated;margin-bottom:8px}
.perk h3{font-size:21px;color:#fff;margin-bottom:6px}
.perk p{margin:0;font-size:15px;line-height:1.55;color:#E6DDF5}
.creators .with{display:flex;align-items:flex-end;gap:22px;justify-content:space-between;flex-wrap:wrap}
.creators .with .spr{--k:4}

/* ================================================================ CLOSING */
.closing{max-width:780px;margin:0 auto;text-align:center}
.closing p{font-family:var(--disp);font-weight:500;font-size:clamp(22px,2.8vw,30px);line-height:1.4;max-width:none;color:#fff;text-shadow:0 3px 0 var(--plum)}
.closing p.small{font-size:clamp(17px,2vw,21px);color:var(--lav)}
.closing .scr{margin:30px 0 34px}

/* the nav's way to a key, on every AMG page */
.amg .nav-links>a.nav-key{color:var(--ink);background:var(--gold);padding:7px 12px 6px;border-radius:3px;text-shadow:none;
  box-shadow:0 3px 0 var(--gold-2),0 0 0 2px var(--ink);font-weight:600}
.amg .nav-links>a.nav-key:hover{color:var(--ink);background:#FFF0A0}
/* ================================================================ PRESS PAGE */
.press-hero{position:relative;padding:132px 0 54px;text-align:center;overflow:hidden}
.press-hero .logo{width:min(460px,80vw);animation:heroDrop 1.1s var(--ease) both}
.press-hero h1{font-family:var(--disp);font-weight:700;font-size:clamp(34px,5.6vw,60px);color:#fff;text-shadow:0 5px 0 var(--plum);margin:14px 0 10px}
.press-hero p{margin:0 auto 26px;font-size:18px;color:var(--lav)}
.doors{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:860px;margin:30px auto 0;text-align:left}
.door{display:flex;gap:16px;align-items:center;padding:16px 18px;text-decoration:none;color:#fff;transition:transform .25s var(--ease)}
.door:hover{transform:translateY(-4px)}
.door img{width:48px;height:48px;image-rendering:pixelated;flex:0 0 48px}
.door b{display:block;font-family:var(--disp);font-weight:700;font-size:22px;line-height:1.1}
.door span{font-size:14.5px;color:var(--lav)}
.door.gold b{color:var(--gold)}
.factgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 34px}
.amg .facts{font-family:var(--body);font-size:15.5px;margin:0}
.amg .facts li{border-bottom:1px solid var(--line);padding:11px 0}
.amg .facts .k{font-family:var(--disp);font-size:15px;color:var(--gold);flex:0 0 120px}
.amg .facts li>span:last-child{min-width:0;overflow-wrap:anywhere}
.copyblock{position:relative;padding:42px 20px 18px;margin-top:14px}
.copyblock p{max-width:none;font-size:16px;color:#ECE3F8;margin:0 0 12px}
.copyblock p:last-of-type{margin-bottom:0}
.copy-btn{position:absolute;right:12px;top:-12px;z-index:2}
.featlist{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:10px}
.featlist li{display:flex;gap:12px;font-size:16px;line-height:1.55;color:#ECE3F8}
.featlist li::before{content:"";flex:0 0 11px;height:11px;margin-top:8px;background:var(--gold);
  clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%)}
.dl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;margin-top:24px}
.dl{display:flex;flex-direction:column;gap:6px;padding:14px 16px 16px;text-decoration:none;color:#fff;transition:transform .25s var(--ease)}
.dl:hover{transform:translateY(-4px)}
.dl b{font-family:var(--disp);font-weight:600;font-size:18px;line-height:1.2}
.dl span{font-size:14px;color:var(--dim);line-height:1.45}
.dl em{font-style:normal;font-family:var(--mono);font-size:11.5px;color:var(--gold);letter-spacing:.06em;margin-top:auto}
.dl.hero-dl{grid-column:1/-1;flex-direction:row;align-items:center;gap:18px}
.dl.hero-dl img{width:56px;height:56px;image-rendering:pixelated}
.dl.hero-dl>span{display:flex;flex-direction:column;gap:6px}
.dl.hero-dl b{font-size:22px;color:#fff}
.keyform .pnl{padding:20px 24px 26px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px}
.form-grid .full{grid-column:1/-1}
.fld{display:flex;flex-direction:column;gap:6px}
.fld label,.fld legend{font-family:var(--disp);font-weight:600;font-size:16px;color:#fff;padding:0}
.fld label i,.fld legend i{font-style:normal;color:var(--gold)}
.fld input,.fld select,.fld textarea{font:16px/1.4 var(--body);color:#fff;padding:9px 12px;border-radius:0;outline:none;min-width:0;
  border:6px solid transparent;border-image:url("ui/inset.png") 2 fill / 6px stretch;image-rendering:pixelated;background:none;
  transition:filter .2s}
.fld select{appearance:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23FFE445'/%3E%3C/svg%3E") right 10px center/12px 8px no-repeat}
.fld select option{background:#1b152b;color:#fff}
.fld input:focus,.fld select:focus,.fld textarea:focus{filter:drop-shadow(0 0 6px rgba(255,228,69,.65))}
.fld textarea{min-height:110px;resize:vertical}
.fld .hint{font-size:13px;color:var(--dim)}
.fld.bad input,.fld.bad select{filter:drop-shadow(0 0 0 #000) drop-shadow(0 0 7px rgba(255,94,87,.95))}
.fld.bad label{color:var(--warn)}
.fld.bad label::after{content:" (needed)";font-family:var(--body);font-weight:600;font-size:13px}
.fld.bad label[data-why]::after,.fld.bad legend[data-why]::after{content:" (" attr(data-why) ")"}
fieldset.fld{border:0;margin:0;padding:0}
.checks{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:4px}
.checks label{display:inline-flex;align-items:center;gap:8px;font-family:var(--body);font-weight:600;font-size:15px;color:#E6DDF5;cursor:pointer}
.checks input{width:18px;height:18px;accent-color:var(--gold);border:0;padding:0;filter:none}
.form-foot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;margin-top:22px;text-align:center}
.form-foot p{margin:0 auto;font-size:14px;color:var(--dim);max-width:60ch}
/* the key request (keyform.js): its trap for bots, its sending, sent and not-sent states, and its window on the game page */
.kf .trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.kf-status{margin:8px 0 0;font-size:14px;color:var(--dim);min-height:1em;text-align:center}
.kf .send .spr{display:inline-block;margin:-6px 2px -6px 0}
.gbtn img[src$="ui/key.png"],.eyebrow img[src$="ui/key.png"]{width:36px;height:16px;image-rendering:pixelated}
.sending .kf{opacity:.85}
.kf-done{text-align:center;padding:10px 6px 4px;animation:swapin .5s var(--ease)}
.kf-done h3{font-size:clamp(26px,3.4vw,36px);margin:4px 0 8px;color:#fff;outline:none}
.kf-done p{margin:0 auto 10px;max-width:56ch;color:#EDE4FA;font-size:16px}
.kf-done .dim{color:var(--dim);font-size:15px}
.kf-done .gbtns{justify-content:center;margin-top:16px}
.kf-done pre{text-align:left;white-space:pre-wrap;font:13px/1.55 var(--mono);color:#E6DDF5;background:rgba(14,11,24,.6);padding:12px 14px;margin:12px auto;
  max-width:640px;max-height:220px;overflow:auto}
.kf-party,.kd-party{display:flex;justify-content:center;align-items:flex-end;gap:16px;margin:0 0 12px}
.kd-party{gap:12px;margin:4px 0 8px}
/* the Slime's strip holds its leap: its body is the left 26 of 49 pixels, so the rest overhangs */
.kd-party .spr[data-u="slime"]{margin-right:-46px}
.kf-party .spr[data-u="slime"]{margin-right:-69px}
html.dlg-open{overflow:hidden}
.keydlg{padding:0;border:0;background:none;max-width:min(860px,calc(100vw - 20px));width:100%;max-height:calc(100dvh - 20px);overflow:visible;color:var(--text)}
.keydlg::backdrop{background:rgba(6,4,14,.78);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.keydlg[open]{animation:dlgin .45s var(--ease)}
@keyframes dlgin{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:none}}
.kd{max-height:calc(100dvh - 20px);overflow-x:hidden;overflow-y:auto;padding:4px 8px 6px;overscroll-behavior:contain}
.kd-x{position:absolute;right:-6px;top:-8px;z-index:2;width:38px;height:38px;border:0;background:none;color:var(--dim);font-size:30px;line-height:1;cursor:pointer}
.kd-x:hover{color:#fff}
.kd-head{text-align:center;margin-bottom:14px}
.kd-head h2{font-size:clamp(28px,4vw,42px);margin:4px 0 6px}
.kd-head p{margin:0 auto;max-width:52ch;color:#EDE4FA}
.kd-head .eyebrow{justify-content:center}
.kd-more{text-align:center;margin:14px auto 0;max-width:none;font-size:14px;color:var(--dim)}
.kd-more a{color:var(--gold)}
.policy{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}
.policy .gcard{padding:12px 14px}
.policy b{display:block;font-family:var(--disp);font-weight:600;font-size:17px;color:#fff;margin-bottom:4px}
.policy span{font-size:14.5px;color:#E6DDF5;line-height:1.5}
.clipgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin-top:22px}
.clip{padding:8px 8px 10px}
.clip .pv{position:relative;aspect-ratio:640/360;background:#0d0a16;display:grid;place-items:center;overflow:hidden;cursor:pointer}
.clip .pv img{width:100%;height:100%;object-fit:cover;image-rendering:pixelated}
.clip .pv .still{position:absolute;inset:0;filter:brightness(.72) saturate(.9);transition:filter .25s var(--ease)}
.clip .pv:hover .still,.clip .pv:focus-visible .still{filter:none}
.clip .pv:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.clip .pv span{position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px;font-family:var(--disp);font-size:14px;color:#fff;padding:7px 12px 7px 10px;background:rgba(13,10,22,.86);box-shadow:0 0 0 2px var(--gold),0 4px 0 2px rgba(0,0,0,.45);transition:transform .2s var(--ease)}
.clip .pv span::before{content:"";width:0;height:0;border-style:solid;border-width:6px 0 6px 9px;border-color:transparent transparent transparent var(--gold)}
.clip .pv:hover span,.clip .pv:focus-visible span{transform:scale(1.08)}
.clip .pv.on span{opacity:.7}
.clip .pv.on span::before{border-width:0;width:8px;height:8px;background:var(--gold);animation:amgBlink .5s steps(2) infinite}
@keyframes amgBlink{50%{opacity:0}}
.clip .row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-top:8px;padding:0 4px}
.clip .row b{font-family:var(--disp);font-weight:600;font-size:15px;color:#fff}
.clip .row a{font-family:var(--mono);font-size:11.5px;color:var(--gold);text-decoration:none;border-bottom:1px solid rgba(255,228,69,.35);white-space:nowrap}
.amg .assets{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;margin-top:24px}
.amg .asset{margin:0;padding:10px 10px 12px;transition:transform .3s var(--ease)}
.amg .asset:hover{transform:translateY(-4px)}
.amg .asset.wide{grid-column:1/-1}
.amg .asset .thumb{height:170px;display:grid;place-items:center;overflow:hidden;background:#0B0816}
.amg .asset.wide .thumb{height:auto;aspect-ratio:3840/1240}
.amg .asset .thumb.checker{background:repeating-conic-gradient(#2A2040 0 25%,#1D1630 0 50%) 0 0/22px 22px}
.amg .asset .thumb img{max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated}
.amg .asset.wide .thumb img{width:100%;height:100%;object-fit:cover}
.amg .asset figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:10px;padding:0 4px;
  font-family:var(--mono);font-size:11.5px;color:var(--dim)}
.amg .asset figcaption b{display:block;color:var(--text);font-family:var(--disp);font-size:15px;font-weight:600;margin-bottom:2px}
.amg .asset figcaption a{color:var(--gold);text-decoration:none;border-bottom:1px solid rgba(255,228,69,.35);white-space:nowrap}
/* the key tab at the bottom of the screen (assets/keyform.js) as the game's gold button, its foot tucked under the edge,
   and the row of single art downloads in the game's frames */
.amg .keytab{position:fixed;right:clamp(12px,2.4vw,40px);bottom:-7px;border-radius:0;box-shadow:none;font-size:19px;padding:8px 18px calc(15px + env(safe-area-inset-bottom));
  transition:transform .5s cubic-bezier(.34,1.56,.64,1),filter .12s var(--ease)}
.amg .keytab:not(.up){transform:translateY(120%)}
.amg .keytab img{width:36px;height:16px}
.amg .art-head .eyebrow{font-size:15px}
.amg .art .th{border-radius:0;background:#0B0816;border-color:var(--line)}
.amg .art .th.checker{background:repeating-conic-gradient(#2A2040 0 25%,#1D1630 0 50%) 0 0/18px 18px}
.amg .art .th img{image-rendering:pixelated}
.amg .art b{font-family:var(--disp);font-weight:600;font-size:14.5px}
.toc{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:28px}
.toc a{font-family:var(--disp);font-size:15px;color:var(--lav);text-decoration:none;padding:5px 12px;border-radius:99px;border:1px solid rgba(182,140,255,.35);
  background:rgba(18,13,34,.5);transition:color .2s,border-color .2s}
.toc a:hover{color:#fff;border-color:var(--gold)}
.party-row{display:flex;gap:18px;align-items:flex-end;--k:4}
.party-row .spr[data-u="slime"]{margin-right:calc(-23px * var(--k))}
.trailer .pnl{padding:0}
.trailer video{display:block;width:100%;aspect-ratio:16/9;background:#000}

/* ================================================================ smaller screens */
@media (max-width:900px) and (min-width:641px){.side,.foe{--k:4}}
@media (max-width:900px){
  .grimoire .pnl{grid-template-columns:1fr}
  .book-l{border-right:0;border-bottom:3px solid #4a3c70}
  .reel{grid-template-columns:1fr}
  .combos,.creators .grid3,.policy{grid-template-columns:1fr}
  .doors{grid-template-columns:1fr}
}
@media (max-width:640px){
  :root{--px:2}
  .amg section{padding:42px 0}
  .hero.amg{padding:84px 16px 40px}
  .creator-link{font-size:15px;padding:6px 12px;line-height:1.35}
  .hero.amg .hero-art{background-size:auto 46%;background-position:54% 12%}
  .side,.foe{--k:2}
  .foe .hp{width:54px}
  .side{gap:10px}
  .fighters{padding:0 4%}
  .arena-in{height:260px}
  .fighter .nm{font-size:12px;padding:4px 7px 5px}
  .fighter .act{display:none}
  .arena-hint{font-size:12px}
  .pnl{border-width:16px;border-image-width:16px}
  .land{border-width:16px;border-image-width:16px;min-height:380px}
  .spell-grid{gap:3px}
  .spell-grid button{border-width:3px;border-image-width:3px}
  .spell-grid button img{width:100%;height:auto;max-width:24px;max-height:24px}
  .book-l,.book-r{padding:14px 12px}
  .spell-say{font-size:16px}
  .form-grid,.factgrid{grid-template-columns:1fr}
  .party-row{--k:2;gap:10px}
  .amg .facts .k{flex-basis:96px}
  .amg .facts li{gap:14px}
  .gbtn{font-size:19px;padding:8px 20px 10px}
  .amg .keytab{right:10px;font-size:16px;padding:6px 14px calc(13px + env(safe-area-inset-bottom))}
  .gbtn.lg{font-size:21px;padding:10px 24px 12px}
  .reel-list{flex-direction:column;align-items:stretch;gap:8px}
  .end-party{--k:2;gap:8px}
  .perk{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;align-items:start}
  .perk img{grid-row:span 2;margin:2px 0 0}
  .perk h3{font-size:18px;margin:0 0 2px}
  .reel-filter{overflow-x:auto;scrollbar-width:none}
  .reel-filter button{flex:0 0 auto}
  .pair,.duo{grid-template-columns:minmax(0,1fr)}
  .sec-head{margin-bottom:12px}
  .dl.hero-dl{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  .wisp{display:none}
}
