/* ---------- Victory / Defeat over the board (js/endcue.js) ---------- */
#endcue.ec2 { left:calc(-1 * var(--ex)); top:calc(-1 * var(--ey)); right:calc(-1 * var(--ex)); bottom:calc(-1 * var(--ey)); width:auto; transform:none; padding:0; border:0; border-radius:0; box-shadow:none; backdrop-filter:none; z-index:70;
  display:none; background:radial-gradient(ellipse 60% 42% at 50% 40%, rgba(6,4,16,.35), rgba(6,4,16,.78) 70%, rgba(6,4,16,.9)); pointer-events:none; }
#endcue.ec2.lose { background:radial-gradient(ellipse 60% 42% at 50% 40%, rgba(20,4,10,.4), rgba(10,3,8,.8) 70%, rgba(8,2,6,.92)); }
#endcue.ec2.show { display:block; animation:ec2In .5s ease-out; } @keyframes ec2In { from { opacity:0; } }
#endcue.ec2 .ec-px { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
#endcue.ec2 .ec-in { position:absolute; left:0; right:0; top:calc(var(--ey) + 240px); display:flex; flex-direction:column; align-items:center; text-align:center; }
#endcue.ec2 .ec-t { font:800 90px/1 'Oxanium', var(--display); letter-spacing:.06em; padding-left:.06em; color:#fff; text-shadow:none;
  background:linear-gradient(180deg, #fff 30%, #d6ccff 62%, #a995ff); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; filter:drop-shadow(0 4px 0 rgba(30,18,70,.7)) drop-shadow(0 0 22px rgba(130,100,255,.8)); animation:ec2Word .55s cubic-bezier(.2,1.5,.4,1) both; }
#endcue.ec2.lose .ec-t { text-shadow:none; background:linear-gradient(180deg, #fff 25%, #ffd0d6 58%, #ff8394); -webkit-background-clip:text; background-clip:text; filter:drop-shadow(0 4px 0 rgba(60,10,20,.7)) drop-shadow(0 0 22px rgba(255,50,80,.75)); }
@keyframes ec2Word { from { opacity:0; transform:scale(1.9); letter-spacing:.3em; } }
#endcue.ec2 .ec-r { margin-top:14px; font:600 16px 'Oxanium', var(--display); letter-spacing:.2em; text-transform:uppercase; color:#ddd5ff; text-shadow:0 2px 10px rgba(0,0,0,.8); animation:ec2Up .4s .35s ease-out both; }
#endcue.ec2.lose .ec-r { color:#ffd9de; }
#endcue.ec2 .ec-ko { margin-top:22px; display:flex; flex-direction:column; align-items:center; gap:10px; animation:ec2Up .4s .5s ease-out both; }
#endcue.ec2 .ec-ko small { font:600 10px 'Oxanium', var(--display); letter-spacing:.32em; color:rgba(255,255,255,.6); }
#endcue.ec2 .ec-faces { display:flex; gap:14px; }
#endcue.ec2 .ec-faces i { position:relative; width:76px; height:76px; border-radius:12px; overflow:hidden; background:rgba(10,8,22,.85); border:1.5px solid color-mix(in srgb, var(--c, #8d86ff) 60%, rgba(255,255,255,.2)); box-shadow:0 8px 20px rgba(0,0,0,.6), 0 0 16px color-mix(in srgb, var(--c, #8d86ff) 30%, transparent); }
#endcue.ec2 .ec-faces i.none { border-style:dashed; border-color:rgba(255,255,255,.15); box-shadow:none; background:rgba(10,8,22,.5); }
#endcue.ec2 .ec-faces i.none canvas { display:none; }
#endcue.ec2 .ec-faces canvas { width:100%; height:100%; display:block; }
#endcue.ec2 .ec-faces i:nth-child(1) { animation:ec2Pop .35s .6s ease-out both; } #endcue.ec2 .ec-faces i:nth-child(2) { animation:ec2Pop .35s .72s ease-out both; } #endcue.ec2 .ec-faces i:nth-child(3) { animation:ec2Pop .35s .84s ease-out both; }
#endcue.ec2 #ec-go { pointer-events:auto; margin-top:26px; width:300px; padding:15px 24px; font-size:15px; animation:ec2Up .4s .9s ease-out both; }
@keyframes ec2Up { from { opacity:0; transform:translateY(14px); } }
@keyframes ec2Pop { from { opacity:0; transform:scale(.7); } }
.calm #endcue.ec2, .calm #endcue.ec2 * { animation:none !important; }

/* ---------- results screen, panel layout (EndCue.results in js/endcue.js) ---------- */
#end.end2 > :not(#end-logo):not(.e3):not(.e3-px) { display:none !important; }
#end.end2 { background:radial-gradient(ellipse 70% 60% at 50% 42%, rgba(8,6,20,.35), rgba(5,4,12,.85)), url(assets/menu/wall-hub.webp) center/cover; }
#end.end2.lose { background:radial-gradient(ellipse 70% 60% at 50% 42%, rgba(24,4,10,.35), rgba(8,3,6,.88)), url(assets/menu/wall-hub.webp) center/cover; }
.e3-px { position:absolute; left:calc(-1 * var(--ex)); top:calc(-1 * var(--ey)); width:calc(100% + 2 * var(--ex)) !important; height:calc(100% + 2 * var(--ey)) !important; pointer-events:none; }
/* results (2026-10-18, user's "Victory/Defeat Results Screen-3/-4"): crest + title above one centred panel (MVP art left, summary right), buttons below. Purple win, red loss. */
.e3 { position:absolute; inset:0; --gold:#f2b84b; --rim:rgba(165,140,255,.7); --glw:rgba(120,90,255,.4); --acc:#b7a4ff; }
#end.lose .e3 { --gold:#b9b2c8; --rim:rgba(255,90,110,.7); --glw:rgba(255,50,80,.34); --acc:#ff8e9e; }
.e3-head { position:absolute; left:0; right:0; top:4px; height:222px; display:flex; flex-direction:column; align-items:center; }
.e3-crest { position:absolute; left:50%; top:-4px; width:540px; transform:translateX(-50%); pointer-events:none; animation:e3Word .5s .1s cubic-bezier(.2,1.5,.4,1) both; }
.e3-t { position:relative; margin-top:70px; font:800 72px/1 'Oxanium', var(--display); letter-spacing:.1em; padding-left:.1em; background:linear-gradient(180deg, #fff 35%, #d8ceff 70%, #ab98ff); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 18px rgba(140,110,255,.8)); animation:e3Word .5s .2s cubic-bezier(.2,1.5,.4,1) both; }
#end.lose .e3-t { background:linear-gradient(180deg, #fff 30%, #ffd2d8 65%, #ff8697); -webkit-background-clip:text; background-clip:text; filter:drop-shadow(0 0 18px rgba(255,60,90,.75)); }
.e3-why { position:relative; margin-top:26px; font:500 20px var(--ui); color:#ddd6ff; text-shadow:0 2px 12px rgba(0,0,0,.8); } #end.lose .e3-why { color:#ffdce1; }
.e3-panel { position:absolute; left:110px; right:110px; top:236px; height:320px; display:flex; border-radius:16px; border:1.5px solid var(--rim); overflow:hidden;
  background:linear-gradient(160deg, rgba(24,16,56,.92), rgba(12,9,28,.94)); box-shadow:0 0 36px var(--glw), 0 26px 56px rgba(0,0,0,.6); animation:e3In .6s .08s cubic-bezier(.2,.9,.25,1) both; }
#end.lose .e3-panel { background:linear-gradient(160deg, rgba(48,10,22,.92), rgba(20,7,12,.95)); }
.e3-mvp { position:relative; flex:none; width:408px; height:100%; overflow:hidden; border-right:1px solid color-mix(in srgb, var(--rim) 45%, transparent); }
.e3-art { position:absolute; inset:0; width:100%; height:100%; display:block; animation:e3Art 7s ease-out both; }
#end.lose .e3-art { filter:saturate(.7) brightness(.85); }
.e3-tab { position:absolute; z-index:2; left:0; top:0; display:flex; align-items:center; gap:8px; padding:8px 20px 8px 14px; font:700 11px 'Oxanium', var(--display); letter-spacing:.2em; color:var(--gold); background:rgba(10,8,16,.7); border-radius:0 0 10px 0; }
.e3-tab svg { width:16px; height:16px; }
.e3-name { position:absolute; z-index:2; left:20px; bottom:74px; display:flex; flex-direction:column; gap:4px; }
.e3-name b { font:800 30px/1 'Oxanium', var(--display); letter-spacing:.06em; color:#fff; text-shadow:0 2px 14px rgba(0,0,0,.9); }
.e3-name small { font:700 11px 'Oxanium', var(--display); letter-spacing:.3em; color:var(--gold); }
.e3-ms { position:absolute; z-index:2; left:0; right:0; bottom:0; height:62px; display:flex; align-items:center; border-top:1px solid color-mix(in srgb, var(--gold) 45%, transparent); background:rgba(10,8,16,.8); }
.e3-ms > div, .e3-tiles > div { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; }
.e3-ms > div + div, .e3-tiles > div + div { border-left:1px solid rgba(255,255,255,.14); }
.e3-ms .e3-ic { width:26px; height:26px; }
.e3-ic { width:38px; height:38px; flex:none; object-fit:contain; }
.e3 p { margin:0; display:flex; flex-direction:column; } .e3 p b { font:700 22px/1 'Oxanium', var(--display); color:#fff; } .e3 p span { margin-top:4px; font:600 9px 'Oxanium', var(--display); letter-spacing:.2em; color:rgba(255,255,255,.6); }
.e3-ms p b { font-size:18px; }
.e3-side { flex:1; min-width:0; min-height:0; padding:24px 30px 22px; display:flex; flex-direction:column; }
.e3-sum { animation:e3Up .45s .4s ease-out both; }
.e3-sh { display:flex; align-items:center; gap:10px; margin-bottom:14px; color:var(--acc); }
.e3-sh svg { width:18px; height:18px; } .e3-sh b { font:700 14px 'Oxanium', var(--display); letter-spacing:.2em; color:#fff; }
.e3-tiles { display:flex; padding-bottom:18px; border-bottom:1px solid rgba(255,255,255,.12); }
.e3-sv { width:34px; height:34px; flex:none; color:var(--acc); } .e3-sv svg { width:100%; height:100%; display:block; }
.e3-ko { margin-top:18px; flex:1; min-height:0; display:flex; flex-direction:column; animation:e3Up .45s .5s ease-out both; }
.e3-ko small { display:block; margin-bottom:10px; font:600 11px 'Oxanium', var(--display); letter-spacing:.3em; color:rgba(255,255,255,.62); }
.e3-faces { flex:1; display:flex; gap:12px; min-height:0; overflow:hidden; }
.e3-faces i { position:relative; flex:1; border-radius:8px; overflow:hidden; background:rgba(10,8,22,.85); border:1px solid rgba(255,255,255,.28); animation:e3Pop .35s ease-out both; }
.e3-faces i:nth-child(1) { animation-delay:.6s; } .e3-faces i:nth-child(2) { animation-delay:.72s; } .e3-faces i:nth-child(3) { animation-delay:.84s; }
.e3-faces i.none { border-style:dashed; border-color:rgba(255,255,255,.16); background:rgba(10,8,22,.4); }
.e3-faces canvas { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit:cover; }
.e3-faces em { position:absolute; right:6px; bottom:6px; width:24px; height:24px; display:grid; place-items:center; border-radius:6px; background:rgba(120,10,24,.92); border:1.5px solid #ff5a70; color:#ff8696; }
.e3-faces em svg { width:14px; height:14px; }
.e3-btns { position:absolute; left:110px; right:110px; top:586px; display:flex; justify-content:center; align-items:center; gap:22px; animation:e3Up .45s .7s ease-out both; }
.e3-btns .big { margin:0; width:260px; padding:14px 10px; font-size:15px; letter-spacing:.16em; border-radius:8px; }
#btn-rematch { background:linear-gradient(180deg, #5b3bff, #3f22d6) !important; border:1.5px solid #9d86ff !important; color:#fff !important; box-shadow:0 0 22px rgba(110,80,255,.55) !important; }
#end.lose #btn-rematch { background:linear-gradient(180deg, #d32a45, #8f1328) !important; border-color:#ff7488 !important; box-shadow:0 0 22px rgba(255,50,80,.45) !important; }
#btn-change { background:rgba(10,8,22,.55) !important; border:1.5px solid color-mix(in srgb, var(--rim) 80%, transparent) !important; color:#fff !important; box-shadow:none !important; }
.e3-btns .endlink { margin:0; width:auto; padding:6px 4px; font:700 14px 'Oxanium', var(--display); letter-spacing:.24em; color:#fff; border-bottom:2px solid var(--acc); }
@keyframes e3Art { from { transform:scale(1.07); } }
@keyframes e3In { from { opacity:0; transform:translateY(24px) scale(.97); } }
@keyframes e3Word { from { opacity:0; transform:scale(1.5); } }
@keyframes e3Pop { from { opacity:0; transform:scale(.8); } }
@keyframes e3Up { from { opacity:0; transform:translateY(12px); } }
.calm .e3, .calm .e3 * { animation:none !important; }
