html,body{margin:0;height:100%;overflow:hidden;background:#14070b;touch-action:manipulation;user-select:none;-webkit-user-select:none}
#backdrop{position:fixed;inset:-40px;background-size:cover;background-position:center;filter:blur(18px) brightness(0.45)}
#stage{position:absolute;transform-origin:0 0;overflow:hidden}
#scene{position:absolute;left:0;top:0}
#ui{position:absolute;inset:0;pointer-events:none;color:#f6ecd6;font-weight:700;
 --tsh:-2px -2px 0 #2a0a12,0 -2px 0 #2a0a12,2px -2px 0 #2a0a12,-2px 0 0 #2a0a12,2px 0 0 #2a0a12,-2px 2px 0 #2a0a12,0 2px 0 #2a0a12,2px 2px 0 #2a0a12,3px 4px 0 rgba(0,0,0,.6)}
#ui *{box-sizing:border-box}
#ui img{pointer-events:none;-webkit-user-drag:none}
.scr{position:absolute;inset:0;pointer-events:auto}
.scr.title{z-index:0} /* its corner buttons stay under any panel opened over the title */
.scr.out{opacity:0;transition:opacity .18s;pointer-events:none}
.ol{background-color:rgba(20,6,10,.72)}
.halftone{background-image:radial-gradient(rgba(0,0,0,.4) 1.4px,transparent 1.7px);background-size:6px 6px}
.ol.scr,.centered{display:flex;align-items:center;justify-content:center}
@keyframes pop{0%{transform:scale(.7);opacity:0}60%{transform:scale(1.06);opacity:1}100%{transform:scale(1)}}
@keyframes slideUp{0%{transform:translateY(60px);opacity:0}70%{transform:translateY(-6px);opacity:1}100%{transform:none}}
@keyframes slideDown{0%{transform:translateY(-50px);opacity:0}70%{transform:translateY(5px);opacity:1}100%{transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes pulse{0%,100%{opacity:.55;transform:scale(1)}50%{opacity:1;transform:scale(1.07)}}
@keyframes floatY{0%,100%{transform:translateY(0) rotate(-5deg)}50%{transform:translateY(-8px) rotate(-5deg)}}
@keyframes logoDrop{0%{transform:translateY(-300px) scale(1.2);opacity:0}60%{transform:translateY(18px);opacity:1}80%{transform:translateY(-6px)}100%{transform:none}}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.15}}
@keyframes flame{0%,100%{transform:translateX(-50%) scale(1,1)}50%{transform:translateX(-50%) scale(.9,1.15)}}
@keyframes chipUp{0%{transform:translateY(40px) scale(.7);opacity:0}15%{transform:translateY(0) scale(1.08);opacity:1}25%{transform:scale(1)}75%{opacity:1}100%{transform:translateY(-80px);opacity:0}}
@keyframes glow{0%,100%{box-shadow:0 0 0 2000px rgba(10,2,6,.7),0 0 14px 4px #e8c36a}50%{box-shadow:0 0 0 2000px rgba(10,2,6,.7),0 0 28px 10px #ffe9a0}}
.pop{animation:pop .26s cubic-bezier(.2,1.3,.4,1) both}
.slide-up{animation:slideUp .3s ease-out both}
.slide-down{animation:slideDown .3s ease-out both}

/* buttons */
/* wine-and-gold court plates (ui-button.webp), white serif with a dark outline; a little tighter than the
   first version and sized by the text. --lsc evens out the type size per language (Latin letters read smaller). */
#ui{--bfs:22px;--lsc:1}
#ui[data-lang="en"]{--lsc:1.05}
.btn,.card{background:transparent;border:16px solid transparent;border-image:url(../assets/ui-button.webp) 30% fill/16px stretch;color:#fff6e0;text-shadow:var(--tsh)}
.btn{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:62px;padding:2px 12px;margin:0;font:inherit;font-size:calc(var(--bfs) * var(--lsc));font-weight:800;
 cursor:pointer;pointer-events:auto;transition:transform .12s,filter .12s;outline:none;line-height:1.15;text-align:center;max-width:100%;overflow-wrap:anywhere}
.btn img{width:1.3em;height:1.3em;object-fit:contain}
.btn:active{transform:scale(.93)}
.btn:active,.card:active,.sq:active,.gcard:active{transform:scale(.93)}
/* no hover look anywhere: the mouse changes nothing until it presses. The keyboard / pad selection is a still
   gold outline, shown only while the player steers with keys or a pad (#ui.kb, set in UI.tick, cleared on a press) */
#ui.kb .btn.focus,#ui.kb .card.focus,#ui.kb .sq.focus,#ui.kb .gcard.focus,#ui.kb .endbtn.focus,#ui.kb .title .gear.focus,#ui.kb .panel .xbtn.focus{outline:4px solid #e8c36a;outline-offset:3px}
#ui.kb .title .albbtn.focus img{outline:4px solid #e8c36a;outline-offset:3px}
#ui.kb .qcard.focus,#ui.kb .ccard.focus,#ui.kb .acard.focus,#ui.kb .srow.focus{box-shadow:0 0 0 2px #1a0e0a,0 0 0 5px #e8c36a}
.dis{filter:grayscale(1) brightness(.7)!important;cursor:default!important;transform:none!important}
.btn.small{--bfs:19px}
.btn.wide{min-width:260px}

/* panels */
.panel{position:relative;max-width:500px;max-height:900px;color:#2a140c;text-shadow:none;border:36px solid transparent;border-image:url(../assets/ui-panel.webp) 28% fill/36px stretch;
 padding:0 4px 2px;display:flex;flex-direction:column;align-items:stretch;gap:10px;overflow:hidden;pointer-events:auto}
.panel h2{margin:0;text-align:center;font-size:30px;font-weight:900;color:#7a1730;text-shadow:0 2px 0 #e8c36a}
.panel .btn{align-self:center}
.row{display:flex;align-items:center;gap:10px}
.seal{display:flex;align-items:center;justify-content:center;border-radius:50%;color:#f6ecd6;font-weight:900;text-shadow:var(--tsh);
 background:radial-gradient(circle at 35% 30%,#c23a50,#7a1730 55%,#4a0e1e);box-shadow:0 0 0 3px #c9a14a,0 3px 5px rgba(0,0,0,.6),inset 0 -3px 5px rgba(0,0,0,.4)}
.face{flex:none;border-radius:50%;border:4px solid #c9a14a;box-shadow:0 0 0 3px #2a0a12,0 4px 6px rgba(0,0,0,.5);background-color:#4a0e1e;background-repeat:no-repeat}
.bar{flex:1;height:16px;border-radius:8px;background:#2a140c;border:2px solid #1a0e0a;overflow:hidden}
.bar i{display:block;height:100%;border-radius:6px;transition:width .6s}
.bar .aff{background:linear-gradient(#ff7b8e,#c23a50)}.bar .trust{background:linear-gradient(#7fd08f,#2f8a4c)}.bar .stab{background:linear-gradient(#f4d98a,#c9a14a)}
.sl{display:flex;align-items:center;gap:8px;font-size:16px;color:#2a140c}
.sl img{width:30px;height:30px;flex:none}
.sl .v{min-width:92px;font-size:15px}
.num.pos{color:#2f7a3c}.num.neg{color:#a02a3a}
.chip{display:inline-flex;align-items:center;gap:4px;padding:3px 12px 3px 4px;border-radius:22px;border:2px solid #1a0e0a;font-size:20px;font-weight:900;text-shadow:var(--tsh);white-space:nowrap}
.chip img{width:30px;height:30px}
.chip.pos{background:linear-gradient(#6f8c3a,#2f4a2a);color:#ffe9a0}
.chip.neg{background:linear-gradient(#66727c,#3a444c);color:#e4ecf2}
.chip.mini{font-size:15px;padding:1px 8px 1px 2px}.chip.mini img{width:22px;height:22px}

/* title */
.title{background:none}
.title .gear{position:absolute;right:88px;top:14px;width:64px;height:64px;padding:0;border:0;background:none;cursor:pointer;z-index:3;transition:transform .15s,filter .15s;filter:drop-shadow(0 3px 4px rgba(0,0,0,.6))}
.title .gear img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.title .gear:active{transform:scale(.9)}
.panel.settings h2{margin-bottom:6px}
.set-lab{font-size:20px;font-weight:900;color:#4a0e1e;margin:10px 4px 4px}
.set-vol{display:flex;align-items:center;gap:10px}
.set-vol .vbtn{width:62px;height:62px;min-width:62px;min-height:62px;--bfs:30px;line-height:1}
.vtrack{flex:1;height:66px;cursor:pointer;touch-action:none;position:relative}
.vtrack::before{content:"";position:absolute;left:0;right:0;top:21px;height:24px;border-radius:12px;background:#2a0a12;border:3px solid #c9a14a;box-sizing:border-box}
.vtrack i{position:absolute;left:3px;top:24px;height:18px;max-width:calc(100% - 6px);border-radius:9px;background:linear-gradient(#f2d488,#b8862b);transition:width .12s}
.vnum{width:44px;text-align:right;font-size:18px;font-weight:900;color:#4a0e1e}
.set-langs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.panel .set-langs .btn{--bfs:20px;min-height:62px;padding:0 6px;margin:0;width:100%}
.set-vol .vbtn{padding:0}
.set-langs .btn.on{filter:brightness(1.25) saturate(1.2)}
.title .logo{position:absolute;left:9%;top:104px;width:82%;max-height:280px;object-fit:contain;animation:logoDrop .7s cubic-bezier(.2,1.2,.4,1) both;filter:drop-shadow(0 6px 8px rgba(0,0,0,.6))}
.title .logo-text{position:absolute;left:30px;right:30px;top:90px;text-align:center;font-size:68px;line-height:1.1;font-weight:900;
 background:linear-gradient(#fff6d8,#e8c36a 55%,#b58a2e);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:10px #4a0e1e;paint-order:stroke fill;
 filter:drop-shadow(4px 6px 0 rgba(20,4,8,.8));animation:logoDrop .7s cubic-bezier(.2,1.2,.4,1) both,floatY 4s 0.8s ease-in-out infinite}
.title .tbtns{position:absolute;left:60px;right:60px;top:724px;display:flex;flex-direction:column;align-items:center;gap:14px;animation:fadeIn .4s both}
.title .tbtns .btn{min-width:300px;max-width:420px}
.title .tbtns .tcont{--bfs:24px;min-height:68px}
.title .tbtns .tnote{margin-top:-4px;font-size:16px;font-weight:700;color:#f6ecd6;text-shadow:var(--tsh);text-align:center;line-height:1.3}
.svnote{text-align:center;font-size:16px;font-weight:700;color:#1f5a33;line-height:1.35;padding:0 6px}
.title .tbtns .tpulse{animation:pulse 1.6s ease-in-out infinite}
.title .tbtns .trow{display:flex;justify-content:center;gap:12px;width:100%;max-width:430px}
.title .tbtns .trow .btn{min-width:0;flex:1 1 0;max-width:209px;--bfs:18px;padding:2px 6px}
.title .tbtns > .trep{--bfs:18px;min-width:240px}
.panel.replay .rplist{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.panel.replay .rprow{flex-direction:column;gap:0;min-height:66px;width:100%;--bfs:21px}
.panel.replay .rprow .rplock{font-size:15px;font-weight:700;color:#f0dcae}
.panel.replay .rprow.dis{filter:grayscale(1) brightness(.6)!important}
.panel.replay .rpnote{font-size:15px;font-weight:700;color:#4a0e1e;text-align:center;line-height:1.35;padding:0 6px}
.panel .ptext{white-space:pre-line}
.title .prompt{position:absolute;left:70px;right:70px;top:845px;text-align:center;font-size:24px;text-shadow:var(--tsh);animation:pulse 1.6s ease-in-out infinite}

/* intro */
.intro{background:#000}
.intro video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.intro .sub{position:absolute;left:0;right:0;top:620px;padding:34px 30px;text-align:center;font-size:26px;text-shadow:var(--tsh);background:linear-gradient(transparent,rgba(10,2,6,.85) 40%,rgba(10,2,6,.85) 70%,transparent)}
.intro .btn{position:absolute;left:50%;top:870px;transform:translateX(-50%);min-width:164px;min-height:64px}
.intro .btn:active{transform:translateX(-50%) scale(.93)}

/* day card */
.glass{width:440px;height:440px;position:relative;clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%);
 background:repeating-conic-gradient(from 0deg,#7a1730 0 45deg,#c9a14a 45deg 90deg,#23452f 90deg 135deg,#c9a14a 135deg 180deg);animation:pop .4s cubic-bezier(.2,1.3,.4,1) both;filter:drop-shadow(0 0 20px rgba(232,195,106,.5))}
.glass::before{content:"";position:absolute;inset:0;background:repeating-conic-gradient(from 22deg,#1a0e0a 0 2.5deg,transparent 2.5deg 45deg)}
.glass-in{position:absolute;inset:48px;clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%);background:radial-gradient(#5a1226,#2a0a12);border:6px solid #1a0e0a;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:30px;text-align:center}
.dc-n{font-size:46px;font-weight:900;color:#e8c36a;text-shadow:var(--tsh)}
.dc-of{font-size:20px;color:#f6ecd6;text-shadow:var(--tsh)}
.dc-title{font-size:32px;font-weight:900;line-height:1.2;text-shadow:var(--tsh);margin-top:6px}

/* hub */
.hub{pointer-events:none}
.hud{position:absolute;left:12px;top:12px;width:428px;height:110px;padding:8px 14px;display:flex;flex-direction:column;justify-content:space-around;
 background:linear-gradient(#5a1226,#3a0b18);border:4px solid #c9a14a;border-radius:16px;box-shadow:0 0 0 3px #1a0e0a,0 6px 10px rgba(0,0,0,.5)}
.hud .r1{display:flex;align-items:center;gap:12px;font-size:21px;text-shadow:var(--tsh)}
.hud .r1 .seal{width:44px;height:44px;font-size:24px}
.hud .r2{display:flex;align-items:center;gap:14px;font-size:22px;text-shadow:var(--tsh)}
.hud img{width:34px;height:34px}
.hud .st{display:flex;align-items:center;gap:4px}
.candles{display:flex;gap:7px;align-items:flex-end}
.candle{position:relative;width:14px;height:28px;margin-top:12px;border-radius:3px;border:2px solid #1a0e0a;background:linear-gradient(90deg,#d9c79c,#fff6e0,#cdb98d)}
.candle::before{content:"";position:absolute;left:50%;top:-16px;width:10px;height:15px;border-radius:50% 50% 50% 50%/65% 65% 35% 35%;background:radial-gradient(#fff6c0,#f0b030 60%,#c96a1a);
 box-shadow:0 0 10px 3px rgba(255,200,80,.7);transform:translateX(-50%);animation:flame .6s infinite}
.candle.used{background:#4a3a30;border-color:#1a0e0a}
.candle.used::before{background:#3a3030;box-shadow:none;animation:none;height:6px;top:-7px}
.icons{position:absolute;left:12px;top:132px;display:flex;gap:8px}
.sq{position:relative;width:56px;height:56px;border-radius:12px;pointer-events:auto;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .12s,filter .12s;
 background:linear-gradient(#a02a44,#5a1226);border:3px solid #c9a14a;box-shadow:0 0 0 3px #1a0e0a,0 4px 6px rgba(0,0,0,.5)}
.sq img{width:40px;height:40px}
.sq.dim img{filter:grayscale(1) opacity(.5)}
.sq .cnt{position:absolute;right:-6px;bottom:-8px;font-size:16px;font-weight:900;text-shadow:var(--tsh)}
.actions{position:absolute;left:14px;right:14px;top:584px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
/* action cards and 結束今天 wear the HUD's frame: the same 4px antique-gold line and dark outline */
.card,.endbtn{border:4px solid #c9a14a;border-image:none;border-radius:16px;background:linear-gradient(#6a1a30,#3a0b18);
 box-shadow:0 0 0 3px #1a0e0a,inset 0 2px 0 rgba(255,230,170,.22),0 6px 10px rgba(0,0,0,.5)}
.card{position:relative;height:136px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:0 14px;cursor:pointer;pointer-events:auto;
 transition:transform .12s,filter .12s}
.card img{width:62px;height:62px;margin-top:-8px}
.card .tx{display:flex;flex-direction:column;align-items:center;min-width:0}
.card .lb{font-size:calc(25px * var(--lsc));font-weight:900;line-height:1.1}
.card .sb{font-size:15px;font-weight:700;color:#f0dcae;line-height:1.15;text-align:center}
.card .rib{position:absolute;right:-12px;top:-10px;padding:2px 14px;font-size:16px;font-weight:900;color:#2a0a12;text-shadow:none;background:linear-gradient(#f4d98a,#c9a14a);border:2px solid #1a0e0a;transform:rotate(8deg);box-shadow:0 2px 0 rgba(0,0,0,.5)}
.endbtn{position:absolute;left:50%;top:882px;transform:translateX(-50%);min-width:210px;padding:2px 26px}
.endbtn:active{transform:translateX(-50%) scale(.93)}

/* dialogue */
.dlg{background:none}
.dbox{position:absolute;left:14px;top:780px;width:512px;height:172px;color:#2a140c;text-shadow:none;border:32px solid transparent;border-image:url(../assets/ui-panel.webp) 28% fill/32px stretch;animation:slideUp .28s ease-out both}
.dbox .inner{position:absolute;inset:-14px -14px -12px -14px;display:flex;gap:12px;align-items:flex-start;padding:4px 6px}
.dbox .face{width:92px;height:92px;margin-top:4px}
.dbox .txt{flex:1;font-size:22px;line-height:1.4;font-weight:700;word-break:break-word;overflow:hidden;height:100%;color:#2a140c}
.dbox .txt .h{visibility:hidden}
/* a speaker's ink colour (SPEAKERS[who].ink, set inline by UI.say) replaces the light text and dark outline */
.dbox .plate{position:absolute;left:-30px;bottom:calc(100% + 40px);padding:2px 22px;min-height:40px;display:flex;align-items:center;white-space:nowrap;overflow:hidden;font-size:21px;font-weight:900;color:#fff6e0;text-shadow:var(--tsh);border:3px solid #1a0e0a;border-radius:8px;box-shadow:0 0 0 2px #c9a14a,0 4px 0 rgba(0,0,0,.5);max-width:500px}
/* the ✕ sits inside the panel's inner box (the panel clips at its frame): one place, one inset, for every window */
.panel:has(.xbtn) h2{margin-bottom:6px;padding:0 72px;min-height:66px;display:flex;align-items:center;justify-content:center}
.panel .xbtn{position:absolute;top:4px;right:6px;width:62px;height:62px;border:3px solid #1a0e0a;border-radius:10px;background:linear-gradient(#a3243f,#6a1028);box-shadow:0 0 0 2px #c9a14a,0 3px 0 rgba(0,0,0,.45);color:#fff6e0;font-size:32px;font-weight:900;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;text-shadow:0 2px 0 #2a0a12;z-index:2}
.panel .xbtn:active{transform:scale(.92)}
.dbox .arrow{position:absolute;right:2px;bottom:-6px;font-size:22px;color:#7a1730;animation:blink .9s infinite}
.note{background:none;display:flex;align-items:center;justify-content:center}
.note .band{width:100%;padding:44px 50px;text-align:center;font-style:italic;font-size:26px;line-height:1.5;text-shadow:var(--tsh);background-color:rgba(20,6,10,.82);animation:fadeIn .3s both}
.choose{pointer-events:none}
.choose-col{position:absolute;left:30px;right:30px;bottom:240px;display:flex;flex-direction:column;gap:10px;align-items:stretch}
.choose-col .rep{align-self:flex-end;width:auto;min-width:200px;margin-bottom:2px}
.choice{--bfs:21px;width:100%;min-height:68px;padding:2px 14px;animation:slideUp .26s ease-out both}
.choice .ct{display:block}
.choice .chips{position:absolute;right:6px;top:-18px;display:flex;gap:4px}

/* toasts */
.toasts{position:absolute;left:0;right:0;top:470px;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.toasts .chip{animation:chipUp 1.7s ease-out both}

/* coach */
.coach{background:none}
.ring{position:absolute;border-radius:16px;border:4px solid #e8c36a;pointer-events:none;animation:glow 1.2s infinite}
.bubble{position:absolute;left:40px;right:40px;padding:18px 22px;color:#2a140c;font-size:22px;line-height:1.4;text-shadow:none;border:32px solid transparent;border-image:url(../assets/ui-panel.webp) 28% fill/32px stretch;animation:pop .26s both;display:flex;flex-direction:column;gap:8px;align-items:center}
.bubble .bt{margin:-14px -4px -8px;text-align:center}

/* pickers & panels */
.qcards{display:flex;gap:12px;align-items:stretch}
/* every queen card is the same box: hover / focus / chosen only light them, never resize or move them */
.qcard{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:6px;padding:8px;cursor:pointer;border-radius:12px;background:rgba(122,23,48,.1);border:3px solid #c9a14a;box-shadow:0 0 0 2px #1a0e0a;transition:filter .12s,box-shadow .15s,background-color .15s;transform:none!important}
.qcard.sel{filter:brightness(1.15)}
.qcard.sel.q-catherine{box-shadow:0 0 0 2px #1a0e0a,0 0 0 6px #f0c85a,0 0 22px 6px rgba(240,200,90,.75);background-color:rgba(201,161,74,.42)!important}
.qcard.sel.q-anne{box-shadow:0 0 0 2px #1a0e0a,0 0 0 6px #5fcf7e,0 0 22px 6px rgba(95,207,126,.7);background-color:rgba(47,122,69,.38)!important}
.qcard.sel.q-jane{box-shadow:0 0 0 2px #1a0e0a,0 0 0 6px #ffffff,0 0 24px 8px rgba(255,255,255,.9);background-color:rgba(255,250,235,.75)!important}
.qcard.sel.q-cleves{box-shadow:0 0 0 2px #1a0e0a,0 0 0 6px #ff4a55,0 0 22px 6px rgba(230,40,55,.75);background-color:rgba(200,32,43,.32)!important}
.qcard.sel.q-howard{box-shadow:0 0 0 2px #1a0e0a,0 0 0 6px #b36cf0,0 0 22px 6px rgba(155,79,214,.75);background-color:rgba(155,79,214,.34)!important}
.qcard.sel.q-parr{box-shadow:0 0 0 2px #1a0e0a,0 0 0 6px #4f7fe0,0 0 22px 6px rgba(47,87,168,.8);background-color:rgba(47,87,168,.32)!important}
.qcard .nm{overflow-wrap:anywhere;line-height:1.15}
.qrow{display:flex;gap:14px;justify-content:center;margin-top:14px}
.qrow .btn{flex:1 1 0;max-width:210px}
.qcard .pic{height:230px;border-radius:8px;border:2px solid #1a0e0a;background-repeat:no-repeat;background-color:#4a0e1e}
.qcard .nm{text-align:center;font-size:22px;font-weight:900;color:#7a1730}
.qcard .note{font-size:15px;text-align:center;color:#5a3a22;min-height:36px;display:block;background:none}
.qcard .spc{flex:1}
.qcard.lock{cursor:default;border-color:#6a5a4a;background-color:rgba(60,40,40,.18)}
.qcard.lock .nm{color:#5a4a42}
/* four queens: an equal 2×2 grid that fits the 960 px stage with the title, ✕ and Back / Confirm row */
.qcards.grid4{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:10px;padding:0 4px}
.qcards.grid4 .qcard{padding:6px;gap:4px}
.qcards.grid4 .pic{height:118px}
.qcards.grid4 .nm{font-size:17px}
.qcards.grid4 .sl img{width:24px;height:24px}
.qcards.grid4 .bar{height:12px}
.qcards.grid4 .note{font-size:14px;min-height:34px;line-height:1.2}
.panel.pq4{gap:8px}
.panel.pq4 .qrow{margin-top:6px}
/* six queens: the same grid in 3 rows (all cards one size; the row of 3 × ~190 px + title + buttons stays inside 900 px) */
.qcards.grid6{gap:8px;padding:0 4px}
.qcards.grid6 .qcard{padding:5px;gap:3px}
.qcards.grid6 .pic{height:84px}
.qcards.grid6 .nm{font-size:18px}
.qcards.grid6 .sl img{width:22px;height:22px}
.qcards.grid6 .sl{gap:5px}
.qcards.grid6 .bar{height:11px}
.qcards.grid6 .note{font-size:14px;min-height:34px;line-height:1.15}
.panel.pq6{gap:6px}
.panel.pq6 .qrow{margin-top:4px}
.panel.pq6:has(.xbtn) h2{min-height:62px}
.ggrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.gcard{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;min-height:150px;cursor:pointer;border-radius:12px;background:rgba(122,23,48,.1);border:3px solid #c9a14a;box-shadow:0 0 0 2px #1a0e0a;transition:transform .12s,filter .12s}
.gcard img{width:72px;height:72px;object-fit:contain}
.gcard .gn{font-size:16px;font-weight:900;text-align:center;color:#4a0e1e;line-height:1.15}
.gcard .gc{font-size:16px;font-weight:900;color:#7a1730}
.gcard .dots{display:flex;gap:4px}.gcard .dots i{width:9px;height:9px;border-radius:50%;background:#c9a14a;border:1px solid #1a0e0a}
.gcard .btn{--bfs:17px;min-height:62px;width:86%;border-width:12px;border-image-width:12px;padding:0 4px}
.gdesc{min-height:62px;font-size:18px;line-height:1.35;text-align:center;color:#2a140c;font-weight:700}
.qblock{display:flex;gap:12px;align-items:center;padding:6px;border-radius:10px;background:rgba(122,23,48,.08)}
.qblock .face{width:84px;height:84px}
.qblock .col{flex:1;display:flex;flex-direction:column;gap:5px}
.qblock .qn{font-size:20px;font-weight:900;color:#7a1730}
/* queen colours: Catherine = gold, Anne Boleyn = green, Jane = ivory / white, Cleves = scarlet, Howard = purple, Parr = deep blue (Henry = burgundy) */
.qblock.q-catherine{background:linear-gradient(90deg,rgba(201,161,74,.32),rgba(201,161,74,.08));border-left:5px solid #b8862b}
.qblock.q-anne{background:linear-gradient(90deg,rgba(47,122,69,.28),rgba(47,122,69,.07));border-left:5px solid #2f7a45}
.qblock.q-jane{background:linear-gradient(90deg,rgba(255,252,242,.95),rgba(245,236,216,.45));border-left:5px solid #f5ecd8;box-shadow:0 0 0 1px #8a7a5a}
.qblock.q-cleves{background:linear-gradient(90deg,rgba(200,32,43,.28),rgba(200,32,43,.07));border-left:5px solid #c8202b}
.qblock.q-howard{background:linear-gradient(90deg,rgba(155,79,214,.3),rgba(155,79,214,.07));border-left:5px solid #9b4fd6}
.qblock.q-parr{background:linear-gradient(90deg,rgba(47,87,168,.32),rgba(47,87,168,.08));border-left:5px solid #2f57a8}
.qblock.q-catherine .qn,.qcard.q-catherine .nm,.ccard.q-catherine .nm{color:#8a5f12}
.qblock.q-anne .qn,.qcard.q-anne .nm,.ccard.q-anne .nm{color:#1f5a33}
.qblock.q-jane .qn,.qcard.q-jane .nm,.ccard.q-jane .nm{color:#3a2a18}
.qblock.q-cleves .qn,.qcard.q-cleves .nm,.ccard.q-cleves .nm{color:#c8202b}
.qblock.q-howard .qn,.qcard.q-howard .nm,.ccard.q-howard .nm{color:#5a1f8c}
.qblock.q-parr .qn,.qcard.q-parr .nm,.ccard.q-parr .nm{color:#142a5e}
.qcard.q-catherine,.ccard.q-catherine{border-color:#c9a14a!important;background-color:rgba(201,161,74,.2)!important}
.qcard.q-anne,.ccard.q-anne{border-color:#2f7a45!important;background-color:rgba(47,122,69,.18)!important}
.qcard.q-jane,.ccard.q-jane{border-color:#f5ecd8!important;background-color:rgba(255,250,235,.6)!important}
.qcard.q-cleves,.ccard.q-cleves{border-color:#c8202b!important;background-color:rgba(200,32,43,.16)!important}
.qcard.q-howard,.ccard.q-howard{border-color:#9b4fd6!important;background-color:rgba(155,79,214,.18)!important}
.qcard.q-parr,.ccard.q-parr{border-color:#2f57a8!important;background-color:rgba(47,87,168,.18)!important}
.face.f-catherine{border-color:#e0b850;background-color:#6b4a10}
.face.f-anne{border-color:#3f9a5a;background-color:#163f25}
.face.f-jane{border-color:#f5ecd8;background-color:#6b6250}
.face.f-cleves{border-color:#e0333b;background-color:#5a0e14}
.face.f-howard{border-color:#9b4fd6;background-color:#3a145a}
.face.f-parr{border-color:#2f57a8;background-color:#142a5e}
.face.f-knight{border-color:#a9b2b9;background-color:#2e353b}
/* chapter 3: a queen who claims illness (still pickable: her lady-in-waiting answers) */
.qcard.sick .pic{filter:grayscale(.75) brightness(.8)}
.qcard.sick .note{color:#8a2a2a;font-weight:900}
.bag{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.bag .it{display:flex;align-items:center;gap:4px;font-size:16px;color:#2a140c;min-width:100px}
.bag img{width:44px;height:44px;object-fit:contain}
.sec{font-size:18px;font-weight:900;color:#7a1730;border-bottom:2px solid #c9a14a;padding-bottom:2px}
/* four queens in a list (status, day end): compact rows so everything fits without scrolling */
.panel.compact{gap:6px}
.panel.compact .qblock{padding:4px 6px;gap:10px}
.panel.compact .qblock .face{width:60px;height:60px;border-width:3px}
.panel.compact .qblock .col{gap:2px}
.panel.compact .qblock .qn{font-size:18px;line-height:1.1}
.panel.compact .sl{font-size:14px}
.panel.compact .sl img{width:24px;height:24px}
.panel.compact .bar{height:13px}
.panel.compact .bag{gap:4px}
.panel.compact .bag .it{font-size:14px;min-width:96px}
.panel.compact .bag img{width:34px;height:34px}
.panel.compact .dline img{width:26px;height:26px}
/* results with four or six queens: a 2-column block, the rank seal beside the stability bar */
.rgrid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.rgrid .qblock{padding:4px;gap:6px;min-width:0}
.rgrid .qblock .face{width:52px;height:52px;border-width:3px;box-shadow:0 0 0 2px #2a0a12}
.rgrid .qblock .col{min-width:0;gap:2px}
.qblock .rel{align-self:flex-start;max-width:100%;font-size:15px;font-weight:900;line-height:1.2;padding:1px 8px;border-radius:9px;color:#fff8e6;text-shadow:0 1px 0 #2a0a12;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qblock .rel-bond{background:#7a1730}.qblock .rel-fond{background:#a0522d}.qblock .rel-loyal{background:#4a535b}.qblock .rel-cool{background:#6b6258}
.rgrid .qn{font-size:15px;line-height:1.1;overflow-wrap:anywhere}
.rgrid .sl{gap:4px}
.rgrid .sl img{width:22px;height:22px}
.rgrid .sl .v{min-width:26px;font-size:14px}
.rgrid .bar{height:12px;min-width:0}
.rrow{display:flex;align-items:center;gap:14px;padding:0 6px}
.panel.res4{gap:6px}
.panel.res4 .rank{width:76px;height:76px;font-size:44px;margin:0;flex:none}
.panel.res4 .endt{font-size:26px}
.panel.res4 .endx{font-size:17px;line-height:1.35}
.panel.res6{gap:5px}
.panel.res6 .rank{width:64px;height:64px;font-size:38px}
.panel.res6 .endt{font-size:24px}
.panel.res6 .endx{font-size:16px;line-height:1.3}
.panel.res6 .rgrid .qblock .face{width:48px;height:48px}
.panel.res6 .btns .btn,.panel.res6 .btn.wide{min-height:62px}
/* six queens in status / day end: 2×3 grid of small blocks */
.panel.grid6p{gap:6px}
.panel.grid6p .rgrid .qblock .face{width:56px;height:56px}
.sgrid .sl{font-size:14px}
.dgrid .dline{gap:6px;font-size:18px;flex-wrap:wrap}
.dgrid .dline .row{gap:2px}
.dgrid .dline img{width:24px;height:24px}
/* six equal cards, even margins left and right; focus only lights a card (a grown card would be clipped) */
.cgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:4px 6px}
.ccard{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px;cursor:pointer;border-radius:10px;border:3px solid #c9a14a;box-shadow:0 0 0 2px #1a0e0a;background:rgba(122,23,48,.1);transition:filter .12s,box-shadow .12s;transform:none!important}
.ccard.on{background:rgba(201,161,74,.35)}
.ccard .pic{width:100%;height:150px;border-radius:6px;background-repeat:no-repeat;background-color:#4a0e1e;border:2px solid #1a0e0a}
.ccard .pic.sil,.qcard .pic.sil{position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#8a5a4a,#4a1e28 60%,#2a1018)}
.ccard .pic.sil::before,.qcard .pic.sil::before{content:"";position:absolute;inset:6px 4px 0;background:var(--sil) center bottom/contain no-repeat;filter:brightness(0) drop-shadow(0 0 3px rgba(232,195,106,.8))}
.ccard .nm{font-size:15px;font-weight:900;text-align:center;color:#4a0e1e;line-height:1.15;min-height:36px;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere;max-width:100%}
.cdetail{min-height:84px;font-size:18px;line-height:1.4;text-align:center;color:#2a140c;white-space:pre-line}
.rank{width:110px;height:110px;font-size:64px;margin:0 auto}
.endt{text-align:center;font-size:30px;font-weight:900;color:#b8862b;text-shadow:0 2px 0 #2a0a12,0 0 1px #2a0a12;-webkit-text-stroke:1px #2a0a12}
.endx{text-align:center;font-size:19px;line-height:1.4;color:#2a140c}
.tbc{text-align:center;font-size:18px;color:#7a1730;font-weight:900}
.dline{display:flex;align-items:center;gap:10px;font-size:20px;color:#2a140c}
.dline .face{width:60px;height:60px}
.dline .lbl{flex:1;font-size:18px}
.dline img{width:30px;height:30px}
.btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.ptext{font-size:21px;line-height:1.4;text-align:center;color:#2a140c}
/* relationship status: stability on top, a ranking list of queens (tap a row for its bars) */
.statusp h2{flex:none}
.statusp .stabblock{flex:none;padding:6px 10px}
.statusp .stabblock .dline{font-size:18px;gap:6px;flex:none}
.statusp .stabblock .col{flex-direction:row;align-items:center;gap:8px;min-width:0}
.statusp .stabblock .qn{flex:none;font-size:17px;max-width:40%;line-height:1.1}
.statusp .stabblock .sl{flex:1;min-width:0}
.statusp .stabblock .sl .v{min-width:0;font-size:17px;font-weight:900}
.statusp .bag .it > div{overflow-wrap:anywhere}
.sbar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 4px}
.slab{display:flex;align-items:center;gap:6px;font-size:18px;font-weight:900;color:#7a1730;min-width:0}
.slab img{width:28px;height:28px;flex:none}
.panel .sbar .sortbtn{--bfs:18px;min-height:62px;min-width:120px;padding:0 14px;margin:0;align-self:center;flex:none}
.slist{flex:1 1 auto;min-height:200px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:5px;padding:2px 6px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9a14a transparent}
.srow{flex:none;display:flex;align-items:center;gap:10px;min-height:62px;padding:3px 10px 3px 6px;border-radius:10px;cursor:pointer;border:2px solid #c9a14a;box-shadow:0 0 0 1px #1a0e0a;background:rgba(122,23,48,.08);transition:filter .12s,box-shadow .12s}
.srow:active{filter:brightness(.92)}
.srow .rk{flex:none;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:900;color:#fff6e0;background:#7a1730;border:2px solid #1a0e0a}
.srow .rk.r1{background:linear-gradient(#f4d98a,#c9a14a);color:#2a140c}
.srow .rk.r2{background:linear-gradient(#eef0f2,#a9b0b8);color:#2a140c}
.srow .rk.r3{background:linear-gradient(#e7a774,#a8622e);color:#2a140c}
.srow .face{width:52px;height:52px;border-width:3px;box-shadow:0 0 0 2px #2a0a12}
.srow .qn{flex:1;min-width:0;text-align:left;font-size:19px;font-weight:900;color:#7a1730;line-height:1.15;overflow-wrap:anywhere}
.srow .sv{flex:none;display:flex;align-items:center;gap:4px;font-size:20px;font-weight:900;color:#2a140c}
.srow .sv img{width:26px;height:26px}
.srow .chev{flex:none;font-size:18px;color:#7a1730;transition:transform .15s}
.srow.open .chev{transform:rotate(90deg)}
.srow.q-catherine{border-left:6px solid #b8862b;background:linear-gradient(90deg,rgba(201,161,74,.32),rgba(201,161,74,.08))}
.srow.q-anne{border-left:6px solid #2f7a45;background:linear-gradient(90deg,rgba(47,122,69,.28),rgba(47,122,69,.07))}
.srow.q-jane{border-left:6px solid #f5ecd8;background:linear-gradient(90deg,rgba(255,252,242,.95),rgba(245,236,216,.45))}
.srow.q-cleves{border-left:6px solid #c8202b;background:linear-gradient(90deg,rgba(200,32,43,.28),rgba(200,32,43,.07))}
.srow.q-howard{border-left:6px solid #9b4fd6;background:linear-gradient(90deg,rgba(155,79,214,.3),rgba(155,79,214,.07))}
.srow.q-parr{border-left:6px solid #2f57a8;background:linear-gradient(90deg,rgba(47,87,168,.32),rgba(47,87,168,.08))}
.srow.q-catherine .qn{color:#8a5f12}.srow.q-anne .qn{color:#1f5a33}.srow.q-jane .qn{color:#3a2a18}
.srow.q-cleves .qn{color:#c8202b}.srow.q-howard .qn{color:#5a1f8c}.srow.q-parr .qn{color:#142a5e}
.sdet{display:none;flex:none;flex-direction:column;gap:4px;margin:-4px 4px 2px 22px;padding:8px 10px;border-radius:0 0 10px 10px;background:rgba(255,246,224,.6);border:2px solid #c9a14a;border-top:none}
.srow.open + .sdet{display:flex}
.sdet .sl{font-size:16px}
.sdet .sl img{width:26px;height:26px}
.sdet .bar{height:14px}
.sdet .sl .v{min-width:120px;font-size:16px;font-weight:700}
.srow.lock{cursor:default;border-color:#6a5a4a;background:rgba(60,40,40,.15)}
.srow.lock .rk{background:#5a4a42}
.srow.lock .qn{color:#5a4a42;font-size:18px}
.srow.lock .qn .note{display:block;font-size:15px;font-weight:700}
.srow .face.sil{position:relative;overflow:hidden;border-color:#6a5a4a;background:radial-gradient(ellipse at 50% 35%,#8a5a4a,#4a1e28 60%,#2a1018)}
.srow .face.sil::before{content:"";position:absolute;inset:0;background:var(--sil) 50% 6%/260% no-repeat;filter:brightness(0) drop-shadow(0 0 2px rgba(232,195,106,.8))}
/* bag: a row of equal item tiles, picture centred, ×count in the bottom-right corner, no names */
.statusp .bag{flex:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(46px,1fr));gap:6px;padding:0 4px}
.statusp .bag .it{position:relative;min-width:0;aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:10px;background:rgba(122,23,48,.1);border:2px solid #c9a14a}
.panel.statusp .bag .it{overflow:hidden;min-width:0;width:auto;gap:0}
.statusp .bag .it img{width:36px;height:36px;object-fit:contain}
.statusp .bag .it .cnt{position:absolute;right:1px;bottom:-2px;font-size:18px;font-weight:900;color:#fff6e0;line-height:1;text-shadow:-1px -1px 0 #2a0a12,1px -1px 0 #2a0a12,-1px 1px 0 #2a0a12,1px 1px 0 #2a0a12,0 2px 0 #2a0a12}
.statusp .bag .it.none img{opacity:.4;filter:grayscale(.6)}
.statusp .sec{flex:none;font-size:17px;margin:0 4px}
/* status window: smaller ×, filter and close buttons (their tap areas reach ~56 stage px through ::after) and more air between blocks */
.panel.statusp{gap:12px;padding:0 6px 4px}
.panel.statusp:has(.xbtn) h2{min-height:52px;padding:0 58px;margin-bottom:0;font-size:28px}
.panel.statusp .xbtn{top:2px;right:2px;width:46px;height:46px;font-size:24px;border-radius:9px}
.panel.statusp .xbtn::after{content:"";position:absolute;inset:-6px}
.panel .sbar .sortbtn{--bfs:16px;min-height:46px;min-width:92px;padding:0 10px;border-width:11px;border-image-width:11px}
.panel .sbar .sortbtn::after,.statusp > .btn.wide::after{content:"";position:absolute;inset:-6px -2px}
.statusp > .btn.wide{flex:none;--bfs:18px;min-width:170px;min-height:50px;padding:0 18px;border-width:12px;border-image-width:12px;margin-top:2px}
.statusp > .btn{flex:none}

/* 結局圖鑑 (endings album): title button + panel */
.title .albbtn{position:absolute;left:16px;top:14px;min-width:96px;padding:0;font-family:inherit;border:0;background:none;cursor:pointer;z-index:3;display:flex;flex-direction:column;align-items:center;gap:2px;filter:drop-shadow(0 3px 4px rgba(0,0,0,.6))}
.title .albbtn img{width:64px;height:64px;object-fit:contain;pointer-events:none}
.title .albbtn span{font-size:17px;font-weight:900;color:#fff6e0;text-shadow:var(--tsh);line-height:1.1;text-align:center;pointer-events:none;white-space:nowrap}
.title .albbtn:active{transform:scale(.92)}
.panel.album{height:900px;gap:8px}
.alb-prog{flex:none;display:flex;align-items:center;gap:10px;font-size:19px;font-weight:900;color:#4a0e1e;padding:0 6px}
.alb-prog .bar{flex:1}
.alb-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:0 6px 10px;border-top:2px solid rgba(122,23,48,.35);border-bottom:2px solid rgba(122,23,48,.35)}
.alb-gh{margin:12px 0 8px;padding:4px 12px;font-size:18px;font-weight:900;color:#fff6e0;background:linear-gradient(90deg,#7a1730,#4a0e1e);border:2px solid #c9a14a;border-radius:6px;text-shadow:0 1px 0 #2a0a12}
.alb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.acard{position:relative;min-width:0;min-height:116px;padding:8px 10px;border-radius:10px;border:3px solid #c9a14a;box-shadow:0 0 0 2px #1a0e0a;background:rgba(255,248,230,.78);cursor:pointer;display:flex;flex-direction:column;gap:4px}
.acard.on{background:rgba(232,195,106,.6)}
.acard:has(.anew){padding-top:18px}
.acard:has(.anew) .arank{top:12px}
.acard.locked{background:linear-gradient(#5a1626,#2e0a14);align-items:center;justify-content:center;border-color:#8a6a3a}
.acard.locked.on{background:linear-gradient(#7a1e34,#4a0e1e)}
.acard .at{font-size:19px;font-weight:900;color:#7a1730;line-height:1.2;padding-right:34px;overflow-wrap:anywhere}
.acard.locked .at{padding:0;color:#e8c36a;text-align:center;letter-spacing:2px}
.acard .as{font-size:16px;line-height:1.3;color:#3a1e12;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.alock svg{width:38px;height:38px;display:block}
.arank{position:absolute;top:6px;right:6px;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:900;color:#fff6e0;background:#7a1730;border:2px solid #e8c36a;box-shadow:0 0 0 1.5px #1a0e0a;text-shadow:0 1px 0 #2a0a12}
.arank.r-S{background:linear-gradient(#f0d58a,#a87a22);color:#2a0a12;text-shadow:0 1px 0 #fff3c8}
.arank.r-B{background:#4a535b}.arank.r-C,.arank.r-n{background:#6b6258}
.anew{position:absolute;top:-9px;left:-6px;padding:1px 8px;font-size:14px;font-weight:900;color:#2a0a12;background:#e8c36a;border:2px solid #1a0e0a;border-radius:8px;transform:rotate(-6deg);z-index:1}
.arel{display:inline-block;align-self:flex-start;font-size:19px;font-weight:900;padding:2px 10px;border-radius:9px;color:#fff8e6;text-shadow:0 1px 0 #2a0a12}
.arel.rel-bond{background:#7a1730}.arel.rel-fond{background:#a0522d}.arel.rel-loyal{background:#4a535b}.arel.rel-cool{background:#6b6258}
.alb-det{flex:none;height:200px;overflow-y:auto;overscroll-behavior:contain;padding:8px 12px;border-radius:10px;background:rgba(255,248,230,.6);border:2px solid rgba(122,23,48,.45)}
.alb-dh{display:flex;gap:12px;align-items:center}
.alb-dh .arank{position:static;flex:none;width:46px;height:46px;font-size:27px}
.alb-dt{font-size:21px;font-weight:900;color:#7a1730;line-height:1.2}
.alb-dm{font-size:16px;font-weight:700;color:#6a4a2a;margin-top:3px}
.alb-dtx{font-size:18px;line-height:1.42;color:#2a140c;margin-top:6px}
.panel.album > .btn.wide{flex:none;min-height:60px}
/* album tabs + route map */
.alb-tabs{flex:none;display:flex;gap:10px;justify-content:center}
.panel .alb-tabs .btn{flex:1 1 0;max-width:200px;min-height:52px;--bfs:18px;padding:0 6px;margin:0}
.alb-tabs .btn.on{filter:brightness(1.3) saturate(1.2)}
.alb-tabs .btn:not(.on){filter:brightness(.75) saturate(.8)}
.rmap{position:relative;isolation:isolate;padding-bottom:6px}
.rm-svg{position:absolute;left:0;top:0;pointer-events:none;z-index:-1;overflow:visible}
.rm-legend{margin-top:8px;font-size:14px;font-weight:700;color:#4a0e1e;text-align:center;line-height:1.3}
.rmap .alb-gh{margin-top:22px}
.rmap .alb-gh:first-of-type{margin-top:8px}
.rm-row{display:flex;justify-content:space-around;gap:2px;margin:6px 0 12px}
.rm-node{flex:1 1 0;max-width:88px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer}
.rm-node:active .rm-pic{transform:scale(.9)}
.rm-pic{width:50px;height:50px;border-radius:50%;border:3px solid #8a6a3a;background:linear-gradient(#5a1626,#2e0a14);display:flex;align-items:center;justify-content:center;
 color:#e8c36a;font-weight:900;font-size:24px;box-shadow:0 0 0 2px #1a0e0a;overflow:hidden;transition:transform .12s}
.rm-node.open .rm-pic{border-color:#e8c36a;background:radial-gradient(#fff6e0,#e8c36a);box-shadow:0 0 0 2px #1a0e0a,0 0 10px 2px rgba(232,195,106,.85)}
.rm-pic img{width:34px;height:34px;object-fit:contain}
.rm-pic .face{width:100%;height:100%;border:0;box-shadow:none}
.rm-name{max-width:100%;box-sizing:border-box;padding:0 2px;border-radius:4px;background:rgba(255,248,230,.88);font-size:12px;letter-spacing:-.2px;font-weight:800;line-height:1.15;text-align:center;color:#7a1730;
 display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.rm-node:not(.open) .rm-name{color:#6a4a2a;letter-spacing:1px}
.rm-node.on .rm-pic{box-shadow:0 0 0 2px #1a0e0a,0 0 0 5px #7a1730}
.rm-node.rel .rm-pic{box-shadow:0 0 0 2px #1a0e0a,0 0 0 4px #c9a14a}
#ui.kb .rm-node.focus .rm-pic{box-shadow:0 0 0 2px #1a0e0a,0 0 0 5px #e8c36a}
.rm-l{fill:none;stroke:#5a3a2a;stroke-opacity:.3;stroke-width:2;stroke-dasharray:5 5}
.rm-l.lit{stroke:#c9a14a;stroke-opacity:.95;stroke-dasharray:none;stroke-width:3}
.rm-l.sel{stroke:#7a1730;stroke-opacity:1;stroke-width:4;stroke-dasharray:none}
.rm-l.lit.sel{stroke:#e08a10}
.rm-dh{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.panel .alb-det .rm-go{flex:none;width:auto;margin:0;min-height:48px;padding:0 16px;--bfs:17px}
.albnew{text-align:center;font-size:17px;font-weight:900;color:#7a1730}
