/* =========================================================
   테마: 무채색 + 파랑 강조 하나. 어두운/밝은 두 벌 (html[data-theme])
   색 이름은 옮겨 온 기록 보기 스타일이 쓰는 이름을 그대로 둠
   ========================================================= */
:root, html[data-theme="dark"]{
  --bg:#111214; --bg-rgb:17,18,20; --panel-rgb:30,32,36; --fg-rgb:236,237,240;
  --accent:#5B8DEF; --ac-rgb:91,141,239; --accent-2:#8FB3F5; --ac2-rgb:143,179,245; --secret-rgb:120,60,170;
  --black:#0B0C0E; --black-2:#17181B; --black-3:#1E2024; --black-4:#26282D;
  --felt:#26282D; --felt-deep:#1A1C20; --felt-hi:#5B8DEF;
  --velvet:var(--accent); --pink-fill:var(--accent); --red:#7AA4F2;
  --ivory:#ECEDF0; --smoke:#A3A7B0; --muted:#6E727C; --gold:#8FB3F5; --green-hi:#5B8DEF;
  --text-2:rgba(236,237,240,.74); --red-text:#8FB3F5; --red-hi:#7AA4F2; --danger:#F2777A;
  --line:rgba(236,237,240,.12); --line-2:rgba(236,237,240,.06); --line-strong:rgba(236,237,240,.36);
  --focus:#8FB3F5; --glass:rgba(17,18,20,.94);
  --name-bg:#1A1C20; --bar-bg:#17181B; --vn-bg:#0B0C0E;
  color-scheme:dark;
}
html[data-theme="light"]{
  --bg:#FFFFFF; --bg-rgb:255,255,255; --panel-rgb:244,245,247; --fg-rgb:28,30,34;
  --accent:#2F6BDE; --ac-rgb:47,107,222; --accent-2:#2F6BDE; --ac2-rgb:47,107,222; --secret-rgb:150,90,200;
  --black:#F4F5F7; --black-2:#FFFFFF; --black-3:#EEF0F3; --black-4:#E4E7EB;
  --felt:#E4E7EB; --felt-deep:#EEF0F3; --felt-hi:#2F6BDE;
  --ivory:#1C1E22; --smoke:#5B606B; --muted:#8A8F99; --gold:#2F6BDE; --green-hi:#2F6BDE;
  --text-2:rgba(28,30,34,.74); --red-text:#2557BD; --red-hi:#2F6BDE; --danger:#C93C3F;
  --line:rgba(28,30,34,.12); --line-2:rgba(28,30,34,.06); --line-strong:rgba(28,30,34,.36);
  --focus:#2F6BDE; --glass:rgba(255,255,255,.95);
  --name-bg:#FFFFFF; --bar-bg:#F4F5F7; --vn-bg:#E9ECF0;
  color-scheme:light;
}
:root{
  --f-sans:"Pretendard Variable","Pretendard","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif;
  --f-serif:var(--f-sans); --f-pixel:var(--f-sans);
  --s-1:.8125rem; --s0:1rem; --s1:1.25rem; --s2:1.5625rem; --s3:1.953rem;
  --pad:clamp(1rem, 3vw, 2rem); --dock:0rem; --gap:1rem; --tap:2.75rem; --r:8px;
  --ease:cubic-bezier(.22,1,.36,1); --ease-io:cubic-bezier(.65,0,.35,1); --head-h:0rem;
}

[hidden]{display:none !important}

/* ===== 기록 보기 (카지노 사이트에서 옮김, 색은 테마 변수) ===== */
*, *::before, *::after{box-sizing:border-box}
html{height:100%; background:var(--black); color-scheme:dark; -webkit-text-size-adjust:100%; text-size-adjust:100%}
body{margin:0; height:100%; overflow:hidden;
  background:var(--black); color:var(--ivory);
  font-family:var(--f-sans); font-weight:400; font-size:var(--s0); line-height:1.7;
  word-break:keep-all; overflow-wrap:break-word;
  -webkit-font-smoothing:antialiased; -webkit-tap-highlight-color:transparent;}
.num{font-variant-numeric:tabular-nums}
::selection{background:var(--velvet); color:var(--ivory)}
img{max-width:100%; display:block}
a{color:inherit}
button{font:inherit; color:inherit}
:focus-visible{outline:2px solid var(--focus); outline-offset:3px}
.sr{position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap}
.skip-link:focus-visible{transform:none; outline-color:var(--ivory)}
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{animation:none !important; transition:none !important; scroll-behavior:auto !important}
}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  min-height:var(--tap); padding:.7rem 1.5rem; border:1px solid var(--line-strong); border-radius:4px;
  background:transparent; color:var(--ivory); text-decoration:none; cursor:pointer; white-space:nowrap;
  font-size:.9375rem; line-height:1.2; touch-action:manipulation;
  transition:background .3s, border-color .3s, color .3s;}
.btn:hover{border-color:var(--ivory); background:rgba(var(--fg-rgb),.06)}
.btn.primary{background:var(--pink-fill); border-color:var(--pink-fill); color:#fff}
.btn.primary:hover{background:var(--accent); border-color:var(--red); box-shadow:0 0 18px rgba(var(--ac-rgb),.35)}
.btn[disabled]{opacity:.4; cursor:not-allowed; border-style:dashed}
.btn[disabled]:hover{background:transparent; border-color:var(--line-strong)}
.btn[aria-busy="true"]{cursor:progress; opacity:.7}
.btn.danger{border-color:rgba(var(--ac-rgb),.55); color:var(--red-text)}
.btn.danger:hover{background:rgba(var(--ac-rgb),.25); border-color:var(--red-text)}
.btn.small{min-height:2.25rem; padding:.4rem 1rem; font-size:.875rem}
a:hover > .more{color:var(--ivory)}
.seg::-webkit-scrollbar{display:none}
.seg button:focus-visible{outline-offset:-2px}
@keyframes rise{from{transform:translateY(105%)}}
@keyframes reveal{from{opacity:0; transform:translateY(1.5rem)}}
.toast{position:fixed; left:50%; bottom:calc(var(--dock) + env(safe-area-inset-bottom) + 1.25rem); z-index:80; translate:-50% 1rem;
  padding:.75rem 1.25rem; border-radius:4px; background:var(--black-3); color:var(--ivory); border:1px solid var(--line-strong);
  box-shadow:0 16px 36px rgba(0,0,0,.5); opacity:0; transition:opacity .35s, translate .45s var(--ease); pointer-events:none;}
.toast.show{opacity:1; translate:-50% 0}
.pane{min-height:0; min-width:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:rgba(var(--fg-rgb),.2) transparent}
.pane:focus-visible, .scroll:focus-visible{outline-offset:-2px}
.pane::-webkit-scrollbar{width:8px; height:8px}
.pane::-webkit-scrollbar-thumb{background:rgba(var(--fg-rgb),.18); border-radius:8px}
.il:focus-visible{outline-offset:-2px; border-radius:3px}
.il:focus-visible .tip{opacity:1; translate:-50% 0}
.bgm{display:grid; place-items:center; width:var(--tap); height:var(--tap); border-radius:50%; border:1px solid var(--line); background:none; color:var(--smoke); cursor:pointer; transition:color .3s, border-color .3s; padding:0}
.bgm:hover{color:var(--ivory); border-color:var(--smoke)}
.bgm .ico{grid-area:1 / 1; width:1.15rem; height:1.15rem}
.bgm[aria-pressed="false"] .ico:nth-of-type(2), .bgm[aria-pressed="true"] .ico:nth-of-type(1){visibility:hidden}
.bgm[aria-pressed="true"]{color:var(--ivory); border-color:var(--gold)}
@media (max-width:700px){
  #dock-logout{display:none}
  .bgm{position:fixed; top:.75rem; right:.75rem; width:2.5rem; height:2.5rem; background:rgba(var(--bg-rgb),.8)}
}
.page{position:absolute; inset:0; display:grid; grid-template-rows:auto minmax(0,1fr); gap:clamp(1rem, 2.5vh, 1.75rem);
  padding:clamp(1.25rem, 4.5vh, 2.75rem) var(--pad) clamp(1rem, 2.5vh, 1.5rem);}
.pane-box{display:flex; flex-direction:column; min-height:0}
.pane-box > .pane{flex:1; margin-inline:-1.25rem; padding-inline:1.25rem}
@media (max-width:760px){
}
@keyframes drop{from{transform:translateY(-70vh); opacity:0}}
@keyframes live{50%{opacity:.25}}
.links a > span:not(.sr), .links .off > span:not(.sr){min-width:0; overflow:hidden; text-overflow:ellipsis}
.show .empty-note{position:absolute; inset:0; display:grid; place-items:center; padding:1rem; color:var(--text-2)}
.seg .num{margin-left:.15rem; font-size:.8125rem; color:var(--smoke)}
.seg button[aria-pressed="true"] .num{color:rgba(255,255,255,.78)}
@keyframes bob{50%{translate:-50% 4px}}
.cc:focus-visible{outline:none}
@keyframes cc-in{from{opacity:0; transform:translateY(2.5rem)}}
.btn .tri{display:inline-block; width:.42rem; height:.6rem; background:currentColor; }
.pe-links legend .hint{display:inline; margin-left:.4rem}
@media (max-width:600px){
  .dlg .row2{grid-template-columns:1fr}
}
button.slot{cursor:pointer; border-color:var(--line-strong); background:var(--black-3); transition:border-color .25s}
button.slot:focus-visible{outline-offset:2px}
button.slot:hover{border-color:var(--ivory)}
button.slot[aria-pressed="true"]{border-color:var(--gold); box-shadow:inset 0 0 0 1px var(--gold)}
@media (max-width:860px){
  .m-only .log-link{margin-top:.75rem}
}
.log-page{gap:.7rem; padding-top:clamp(.75rem, 2.4vh, 1.5rem); transition:padding .3s var(--ease)}
.log-head{display:flex; flex-wrap:wrap; align-items:baseline; gap:.2rem 1rem; min-width:0; max-height:8rem; overflow:hidden; padding-bottom:.55rem; border-bottom:1px solid var(--line);
  transition:max-height .35s var(--ease), padding .35s var(--ease), opacity .25s, border-color .25s}
.log-head .link-back{min-height:2rem; font-size:var(--s-1)}
.log-ep{margin:0; color:var(--smoke); font-size:var(--s-1); font-variant-numeric:tabular-nums}
.log-head .log-title{font-size:clamp(1.375rem, 2.4vw, 2rem); line-height:1.25; letter-spacing:-.01em; min-width:0; overflow-wrap:anywhere}
.log-meta{margin:0 0 0 auto; color:var(--smoke); font-size:var(--s-1)}
.log-page.folded{gap:0; padding-top:.5rem}
.log-page.folded .log-head{max-height:0; padding-bottom:0; opacity:0; border-color:transparent}
.log-box{position:relative; padding:0; grid-row:2}
.log-bar{display:flex; align-items:center; gap:.45rem; padding:.5rem .7rem; border-bottom:1px solid var(--line); overflow-x:auto; scrollbar-width:none}
.log-bar::-webkit-scrollbar{display:none}
.log-bar > *{flex:none}
.log-bar .grow{flex:1 1 0; min-width:.25rem}
.log-bar .seg{padding:.2rem}
.log-bar .seg button{min-height:2.1rem; padding:.25rem .85rem; font-size:.875rem}
.log-bar .btn.small{min-height:2.5rem; padding-inline:.85rem}
.log-mode button[aria-pressed="true"], .log-width button[aria-pressed="true"]{background:var(--velvet); color:var(--ivory)}
.log-size button{min-width:2.4rem; padding-inline:.6rem !important; font-family:var(--f-sans); font-weight:700}
.log-size button[data-size="-1"]{font-size:.8125rem !important}
.log-size button[data-size="1"]{font-size:1.0625rem !important}
.log-size button:disabled{opacity:.35; cursor:default}
.log-tabbtn{gap:.35rem}
.log-tabbtn .num{color:var(--text-2); font-size:.8125rem; font-variant-numeric:tabular-nums}
.log-tabbtn[aria-expanded="true"]{border-color:var(--gold)}
.log-tabs-pop{position:absolute; z-index:8; display:grid; gap:.15rem; min-width:14rem; max-width:min(24rem, calc(100% - 1rem)); max-height:min(60vh, 28rem); overflow:auto; padding:.4rem;
  border:1px solid var(--line-strong); border-radius:4px; background:var(--black-2); box-shadow:0 12px 30px rgba(0,0,0,.55)}
.log-tabs-pop button{display:flex; align-items:center; gap:.7rem; min-height:2.6rem; padding:0 .8rem; border:0; border-radius:3px; background:none; color:var(--ivory); font:inherit; font-size:.9375rem; text-align:left; cursor:pointer}
.log-tabs-pop button:hover{background:rgba(var(--fg-rgb),.06)}
.log-tabs-pop button::before{content:""; flex:none; width:.95rem; height:.95rem; border:1.5px solid var(--line-strong); border-radius:2px}
.log-tabs-pop button[aria-pressed="true"]::before{border-color:var(--velvet); background:var(--velvet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center/80% no-repeat}
.log-tabs-pop button[aria-pressed="false"]{color:var(--smoke)}
.log-tabs-pop .num{margin-left:auto; font-size:.8125rem; color:var(--text-2); font-variant-numeric:tabular-nums}
body.log-big .log-page{padding:max(.5rem, env(safe-area-inset-top)) max(.5rem, env(safe-area-inset-right)) max(.5rem, env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left)); gap:0}
body.log-big .log-head{display:none}
.log-page:fullscreen{padding:.5rem; gap:0; background:linear-gradient(180deg, #000 0%, var(--bg) 70%, var(--bg) 100%)}
.log-page:fullscreen .log-head{display:none}
.log-box > .pane{margin:0; padding:1.25rem clamp(1rem, 4vw, 3rem) 3rem}
.lg-body{--lg-fs:1.0625rem; max-width:var(--lg-w, 48rem); margin:0 auto; font-size:var(--lg-fs); line-height:1.85}
.lg-chunk{content-visibility:auto; contain-intrinsic-size:auto 1800px}
.lg{display:grid; grid-template-columns:2.5rem minmax(0, 1fr); gap:.9rem; padding:.95rem 0; border-top:1px solid var(--line-2)}
.lg-chunk:first-child > .lg:first-child{border-top:0}
.lg-av{width:2.5rem; height:2.5rem; margin-top:.2rem; border-radius:50%; overflow:hidden; background:var(--black-3); box-shadow:0 0 0 1px rgba(var(--ac2-rgb),.45)}
.lg-av img{width:100%; height:100%; object-fit:cover; object-position:50% 12%}
.lg-av.ini{display:grid; place-items:center; font-family:var(--f-sans); font-weight:900; font-size:1rem; color:var(--c); background:color-mix(in srgb, var(--c) 14%, var(--black-2)); box-shadow:0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent)}
.lg-n{display:flex; align-items:baseline; gap:.5rem; margin:0 0 .1rem; font-family:var(--f-sans); font-weight:700; font-size:.95em; line-height:1.45}
.lg-b p, .lg-narr p, .lg-sys p{margin:0; white-space:pre-line; overflow-wrap:anywhere}
.lg-b > p:not(.lg-n){color:rgba(var(--fg-rgb),.9)}
.lg-b > p + p{margin-top:.4em}
.lg-body strong{font-weight:600; color:var(--ivory)}
.lg-body em{font-style:italic; color:var(--ivory)}
.lg-tab{flex:none; padding:0 .55em; border:1px solid var(--line-strong); border-radius:4px; font-family:var(--f-sans); font-weight:500; font-size:.7rem; line-height:1.7; color:var(--text-2)}
.lg-narr{margin:.5rem 0; padding:.8rem 0 .8rem 1.15rem; border-left:2px solid rgba(var(--ac2-rgb),.55); color:var(--text-2)}
.lg-narr > p + p{margin-top:.6em}
.lg-narr .lg-tab{float:right; margin-left:.5rem}
.lg-sys{padding:.5rem 0; text-align:center; font-size:.85em; color:var(--smoke)}
.lg.f-info, .lg-narr.f-info, .lg-sys.f-info, .lg.f-secret, .lg-narr.f-secret, .lg-sys.f-secret, .lg.f-other, .lg-narr.f-other, .lg-sys.f-other{--band:var(--smoke); margin:.3rem 0; padding:.7rem 1rem .7rem .95rem; border:0; border-left:3px solid var(--band); border-radius:0 4px 4px 0; background:color-mix(in srgb, var(--band) 9%, transparent)}
.lg.f-info, .lg-narr.f-info, .lg-sys.f-info{--band:var(--accent-2); background:rgba(var(--panel-rgb),.42)}
.lg.f-secret, .lg-narr.f-secret, .lg-sys.f-secret{--band:var(--accent); background:rgba(var(--ac-rgb),.13)}
.lg.f-other, .lg-narr.f-other, .lg-sys.f-other{--band:rgba(var(--fg-rgb),.55); background:rgba(var(--fg-rgb),.06)}
.lg-narr.f-info, .lg-narr.f-secret, .lg-narr.f-other{padding-left:1.15rem}
.lg-sys.f-info, .lg-sys.f-secret, .lg-sys.f-other{text-align:left}
.lg.f-other{font-size:.9em; grid-template-columns:2rem minmax(0,1fr)}
.lg.f-other .lg-av{width:2rem; height:2rem}
.lg.f-other .lg-b > p:not(.lg-n), .lg-narr.f-other{color:var(--text-2)}
.lg.f-other.has-st{grid-template-columns:2.6rem minmax(0,1fr)}
.lg.f-other .lg-av.st{width:2.6rem; height:2.6rem}
.f-info .lg-tab{border-color:rgba(var(--ac2-rgb),.7); color:var(--accent-2)}
.f-secret .lg-tab{border-color:rgba(var(--ac-rgb),.7); color:var(--red-text)}
.f-other .lg-tab{border-color:rgba(var(--fg-rgb),.5); color:var(--smoke)}
.lg-tab{border-style:solid}
.lg-av.st{width:3.25rem; height:3.25rem; border-radius:4px; margin-top:.1rem}
.lg-av.st img{object-position:50% 8%}
.lg.has-st{grid-template-columns:3.25rem minmax(0, 1fr)}
.lg-bgm{display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .7rem; margin:1rem 0; padding:.55rem .9rem; border:1px dashed rgba(var(--ac2-rgb),.55); border-radius:4px; background:rgba(var(--ac2-rgb),.06); font-size:.9em}
.lg-bgm .note{color:var(--gold); font-size:1.1em}
.lg-bgm .t{flex:1; min-width:8rem; color:var(--ivory); font-weight:500}
.lg-bgm.stop{border-style:dotted; background:none; color:var(--smoke)}
.lg-bgm.stop .t{color:var(--smoke); font-weight:400}
.lg-bgm .btn{min-height:2.25rem}
.lg-bgm .btn[aria-pressed="true"]{background:var(--velvet); border-color:var(--velvet)}
.yt-slot{flex-basis:100%}
.yt-slot:empty{display:none}
.yt-slot iframe{display:block; width:min(100%, 26rem); aspect-ratio:16/9; border:0; border-radius:3px}
.log-btn[aria-pressed="true"]{background:var(--velvet); border-color:var(--velvet)}
.lg-bgimg{display:flex; align-items:center; gap:.7rem; margin:1rem 0; padding:.4rem .9rem .4rem .4rem; border:1px dashed rgba(var(--ac2-rgb),.4); border-radius:4px; font-size:.85em; color:var(--text-2)}
.lg-bgimg img{width:4.5rem; aspect-ratio:16/9; object-fit:cover; border-radius:2px}
.lg-bgimg .t::before{content:"배경 · "; color:var(--smoke)}
.lg-bgimg.none{padding:.4rem .9rem; border-style:dotted}
.lg-bgimg.none .t::before{content:""}
.vn{--lg-fs:1.0625rem; flex:1; min-height:0; display:flex; padding:.5rem}
.vn > .vn-stage{flex:1}
.vn-stage{position:relative; width:100%; height:100%; min-height:0; overflow:hidden; border:1px solid var(--line); border-radius:var(--r);
  background:radial-gradient(ellipse 80% 60% at 30% 100%, rgba(var(--ac2-rgb),.28), transparent 70%), linear-gradient(180deg, var(--black-2), var(--felt-deep)); cursor:pointer; user-select:none; -webkit-user-select:none; -webkit-tap-highlight-color:transparent}
.vn-stage:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.vn-bg img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .9s var(--ease-io)}
.vn-bg img.on{opacity:1}
.vn-stage.has-bg::after{content:""; position:absolute; inset:auto 0 0; height:45%; background:linear-gradient(transparent, rgba(var(--bg-rgb),.55)); pointer-events:none}
.vn-st{position:absolute; left:3%; bottom:0; z-index:2; height:94%; max-width:44%; display:flex; align-items:flex-end; opacity:0; transition:opacity .25s}
.vn-st.on{opacity:1}
.vn-st img{height:100%; width:auto; max-width:100%; object-fit:contain; object-position:left bottom; filter:drop-shadow(0 .5rem 1.5rem rgba(0,0,0,.45))}
.vn-st.enter img{animation:vn-in .35s var(--ease) both}
.vn-st.change img{animation:vn-swap .22s ease-out both}
@keyframes vn-in{from{opacity:0; transform:translateX(-1.25rem)}to{opacity:1; transform:none}}
@keyframes vn-swap{from{opacity:.35}to{opacity:1}}
.vn-stage{--box-h:clamp(10.5rem, 32%, 15rem)}
.vn-box{position:absolute; left:.8rem; right:.8rem; bottom:.8rem; z-index:3; display:flex; flex-direction:column; height:var(--box-h); padding:1.5rem clamp(1rem, 3vw, 2rem) .5rem;
  border:1px solid rgba(var(--ac2-rgb),.45); border-radius:var(--r); background:rgba(var(--bg-rgb),.86); box-shadow:inset 0 0 0 1px rgba(var(--ac2-rgb),.08), 0 0 24px rgba(var(--ac2-rgb),.18)}
.vn-name{position:absolute; top:-1px; left:clamp(1rem, 3vw, 2.25rem); transform:translateY(-55%); display:flex; align-items:center; gap:.5rem; margin:0; padding:.2rem .9rem;
  border:1px solid color-mix(in srgb, var(--c, var(--gold)) 70%, transparent); border-radius:3px; background:var(--black-2); font-family:var(--f-sans); font-weight:700; font-size:calc(var(--lg-fs) * .95); line-height:1.5; color:var(--c, var(--ivory))}
.vn-name .lg-tab{font-size:.7rem}
.vn-text{flex:1; min-height:3.6em; overflow:auto; scrollbar-width:thin; margin:0; font-size:calc(var(--lg-fs) * 1.08); line-height:1.8; color:var(--ivory); white-space:pre-line; overflow-wrap:anywhere}
.vn-text strong{font-weight:700}
.vn-text em{font-style:italic}
.vn-box.narr .vn-text{color:var(--text-2)}
.vn-box.sys .vn-text{font-size:calc(var(--lg-fs) * .9); color:var(--smoke); text-align:center}
.vn-box.f-info{border-color:rgba(var(--ac2-rgb),.6); background:rgba(var(--panel-rgb),.9)}
.vn-box.f-secret{border-color:rgba(var(--ac-rgb),.55); background:rgba(var(--secret-rgb),.88)}
.vn-box.f-other .vn-text{font-size:calc(var(--lg-fs) * .95); color:var(--text-2)}
.vn-more{position:absolute; right:1rem; bottom:.55rem; font-size:.7rem; color:var(--gold); opacity:0}
.vn-more.on{opacity:1; animation:vn-blink 1.1s steps(2, end) infinite}
@keyframes vn-blink{50%{opacity:.2}}
.vn-stage{container-type:size}
.vn-pills{position:absolute; top:.8rem; right:.8rem; z-index:6; display:flex; gap:.4rem}
.vn-pill{display:inline-flex; align-items:center; gap:.4rem; min-height:2.5rem; padding:0 1rem; border:1px solid rgba(var(--fg-rgb),.55); border-radius:999px; background:rgba(var(--bg-rgb),.82); color:var(--ivory); font:inherit; font-size:.9rem; cursor:pointer}
.vn-pill:hover{border-color:var(--ivory)}
.vn-pill[aria-pressed="true"]{background:var(--velvet); border-color:var(--velvet); color:#fff}
.vn-pill .n:empty{display:none}
.vn-pill .n{display:inline-grid; place-items:center; min-width:1.35rem; height:1.35rem; padding:0 .35rem; border-radius:999px; background:var(--velvet); color:#fff; font-size:.72rem; font-variant-numeric:tabular-nums}
.vn-pill[aria-pressed="true"] .n{background:#fff; color:var(--velvet)}
.vn-stage{--side-w:clamp(20rem, 34%, 32rem)}
.vn-side{position:absolute; top:3.9rem; right:.8rem; bottom:.8rem; z-index:5; width:var(--side-w); display:flex; cursor:default; pointer-events:none}
.vn-stage.side-open .vn-box{right:calc(var(--side-w) + 1.6rem)}
.vn-grp{--band:rgba(var(--fg-rgb),.7); pointer-events:auto; flex:1; min-width:0; display:flex; flex-direction:column; border:1px solid color-mix(in srgb, var(--band) 60%, transparent); border-radius:10px; background:rgba(var(--bg-rgb),.9); box-shadow:0 10px 30px rgba(0,0,0,.45); overflow:hidden}
.vn-grp[hidden]{display:none}
.vn-grp header{display:flex; align-items:flex-end; gap:.2rem; padding:.45rem .45rem 0; border-bottom:1px solid color-mix(in srgb, var(--band) 45%, transparent); background:rgba(0,0,0,.25)}
.vn-marks{flex:1; min-width:0; display:flex; gap:.15rem; overflow:hidden}
.vn-mark{position:relative; flex:0 1 auto; min-width:2.6rem; display:inline-flex; align-items:center; justify-content:center; gap:.3rem; min-height:2.2rem; padding:0 .6rem; border:1px solid transparent; border-bottom:0; border-radius:6px 6px 0 0; background:rgba(var(--fg-rgb),.05); color:var(--smoke); font:inherit; font-family:var(--f-sans); font-weight:700; font-size:.8125rem; white-space:nowrap; cursor:pointer}
.vn-mark:hover{color:var(--ivory)}
.vn-mark .nm{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.vn-mark .sh{display:none}
.vn-mark .n{flex:none}
.vn-mark[aria-selected="true"]{background:rgba(var(--bg-rgb),.95); border-color:color-mix(in srgb, var(--band) 60%, transparent); color:var(--ivory); margin-bottom:-1px; padding-bottom:1px}
.vn-mark.f-info[aria-selected="true"]{color:var(--gold)}
.vn-mark .n:not(:empty){display:inline-grid; place-items:center; min-width:1.2rem; height:1.2rem; padding:0 .3rem; border-radius:999px; background:var(--velvet); color:#fff; font-family:var(--f-sans); font-weight:500; font-size:.7rem}
.vn-marks.dense .vn-mark{flex:1 1 0; min-width:0; padding:0 .3rem; gap:0; font-size:.78rem}
.vn-marks.dense .vn-mark .nm{display:none}
.vn-marks.dense .vn-mark .sh{display:block; min-width:0; overflow:hidden; white-space:nowrap}
.vn-marks.dense .vn-mark .n:not(:empty){position:absolute; top:.15rem; right:.15rem; min-width:0; width:.5rem; height:.5rem; padding:0; font-size:0}
.vn-chat-x{flex:none; align-self:center; width:2.2rem; height:2.2rem; margin-bottom:.15rem; border:0; border-radius:4px; background:none; color:var(--smoke); font-size:1.25rem; cursor:pointer}
.vn-chat-x:hover{background:rgba(var(--fg-rgb),.08); color:var(--ivory)}
.vn-chat{flex:1 1 0; min-height:0; display:flex; flex-direction:column}
.vn-chat[hidden]{display:none}
.vn-chat .vn-chat-list{flex:1; min-height:0}
.vn-chat-list{margin:0; padding:.7rem .8rem 1rem; list-style:none; overflow:auto; scrollbar-width:thin; display:flex; flex-direction:column; gap:.55rem; font-size:calc(var(--lg-fs) * .9); line-height:1.6}
.vn-chat-list > li{display:grid; justify-items:start; gap:.15rem; max-width:100%}
.vn-chat-list .who{font-weight:600; font-size:.85em}
.vn-chat-list .row{display:flex; align-items:flex-end; gap:.35rem; max-width:100%}
.vn-chat-list .bub{min-width:0; padding:.4rem .7rem; border-radius:3px 12px 12px 12px; background:rgba(var(--fg-rgb),.1); color:var(--ivory); white-space:pre-line; overflow-wrap:anywhere}
.vn-chat-list .tm{flex:none; font-size:.72em; color:var(--smoke); font-variant-numeric:tabular-nums}
.vn-chat-list li.mine{justify-items:end}
.vn-chat-list li.mine .row{flex-direction:row-reverse}
.vn-chat-list li.mine .bub{border-radius:12px 3px 12px 12px; background:var(--velvet)}
.vn-chat-list li.q{justify-items:center; color:var(--smoke); font-size:.9em; text-align:center; white-space:pre-line}
.vn-chat-list li.q .tm{margin-left:.4rem}
.vn-chat-list li.fresh{animation:vn-pop .3s var(--ease) both}
@keyframes vn-pop{from{opacity:0; transform:translateY(.6rem)}to{opacity:1; transform:none}}
.vn-chat-list li.info{justify-items:stretch; grid-template-columns:minmax(0,1fr); width:100%}
.vn-info{position:relative; display:flex; align-items:center; gap:.5rem; width:100%; min-height:2.5rem; padding:.35rem .7rem .35rem .8rem; border:1px solid rgba(var(--ac2-rgb),.45); border-left:3px solid var(--accent-2); border-radius:3px 6px 6px 3px; background:rgba(var(--panel-rgb),.45); color:var(--ivory); font:inherit; text-align:left; cursor:pointer}
.vn-info:hover{background:rgba(var(--panel-rgb),.7)}
.vn-info .ttl{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600}
.vn-info .tm{flex:none}
.vn-info .arw{flex:none; color:var(--gold); font-size:.8em; transition:transform .2s}
.vn-info[aria-expanded="true"] .arw{transform:rotate(90deg)}
.vn-info:not(.read)::before{content:""; position:absolute; top:.45rem; right:.4rem; width:.45rem; height:.45rem; border-radius:50%; background:var(--velvet)}
.vn-info:not(.read) .arw{margin-right:.5rem}
.vn-chat-list li.info .body{margin-top:.3rem; padding:.7rem .9rem; border-left:3px solid rgba(var(--ac2-rgb),.5); background:rgba(var(--panel-rgb),.6); color:rgba(var(--fg-rgb),.92); line-height:1.75; white-space:pre-line; overflow-wrap:anywhere; animation:vn-unfold .2s var(--ease) both}
.vn-chat-list li.info .body .who{margin:0 0 .2rem; font-weight:600; font-size:.9em}
@keyframes vn-unfold{from{opacity:0; transform:translateY(-.3rem)}}
@media (prefers-reduced-motion:reduce){
  .vn-chat-list li.fresh, .vn-chat-list li.info .body{animation:none}
}
.vn-log{position:absolute; inset:0; z-index:5; display:grid; grid-template-rows:auto minmax(0,1fr); background:rgba(var(--bg-rgb),.95); cursor:default}
.vn-log-head{display:flex; align-items:center; gap:.5rem; padding:.7rem 1rem; border-bottom:1px solid var(--line)}
.vn-log-head .grow{flex:1}
.vn-log-list{margin:0; padding:.5rem clamp(.75rem, 3vw, 2rem) 1.5rem; list-style:none; overflow:auto; font-size:calc(var(--lg-fs) * .92)}
.vn-log-list li.more{padding:.6rem 0; color:var(--smoke); font-size:.85em}
.vn-log-list button{display:grid; grid-template-columns:7.5rem minmax(0,1fr); gap:.8rem; width:100%; padding:.5rem .6rem; border:0; border-radius:3px; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer}
.vn-log-list button:hover{background:rgba(var(--fg-rgb),.06)}
.vn-log-list [aria-current="true"] button{background:rgba(var(--ac-rgb),.16); box-shadow:inset 2px 0 0 var(--velvet)}
.vn-log-list .n{font-family:var(--f-sans); font-weight:700; overflow-wrap:anywhere}
.vn-log-list .t{grid-column:2; color:rgba(var(--fg-rgb),.88); white-space:pre-line; overflow-wrap:anywhere; line-height:1.7}
.vn-log-list .t.q{color:var(--text-2)}
.vn-ctl{display:flex; align-items:center; gap:.35rem; margin:0 calc(-1 * clamp(.4rem, 1.5vw, 1rem)); padding:.45rem clamp(.4rem, 1.5vw, 1rem) 0; border-top:1px solid var(--line-2); cursor:default; overflow-x:auto; scrollbar-width:none}
.vn-ctl::-webkit-scrollbar{display:none}
.vn-ctl .grow{flex:1 1 0; min-width:.25rem}
.vc{flex:none; min-height:2.3rem; padding:0 .8rem; border:1px solid rgba(var(--fg-rgb),.22); border-radius:4px; background:rgba(var(--fg-rgb),.04); color:var(--text-2); font:inherit; font-size:.85rem; cursor:pointer; white-space:nowrap}
.vc:hover:not(:disabled){color:var(--ivory); border-color:rgba(var(--fg-rgb),.5)}
.vc:disabled{opacity:.35; cursor:default}
.vc.primary{background:var(--velvet); border-color:var(--velvet); color:#fff; padding-inline:1.1rem}
.vc[aria-pressed="true"]{background:rgba(var(--ac-rgb),.2); border-color:var(--velvet); color:var(--ivory)}
.vc.save{background:var(--felt); border-color:var(--felt-hi); color:#fff}
.vc.save:disabled{background:none; color:var(--smoke)}
.vn-seek{flex:0 1 16rem; display:flex; align-items:center; gap:.6rem; min-width:8rem; font-size:var(--s-1); color:var(--text-2)}
.vn-seek input{flex:1; min-width:0; accent-color:var(--velvet)}
.vn-seek .num{font-variant-numeric:tabular-nums; white-space:nowrap}
.vn-more{bottom:3.6rem !important}
.vn-yt{position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; border:0}
.vn-edit{position:absolute; top:.8rem; left:.8rem; z-index:6; display:flex; flex-wrap:wrap; gap:.4rem; max-width:55%}
.vn-edit[hidden]{display:none}
.vn-ed{display:inline-flex; align-items:center; gap:.5rem; min-height:2.5rem; padding:0 .9rem; border:1px dashed rgba(var(--ac2-rgb),.7); border-radius:4px; background:rgba(var(--bg-rgb),.85); color:var(--ivory); font:inherit; font-size:.85rem; cursor:pointer}
.vn-ed:hover{border-style:solid}
.vn-ed .k{font-weight:700; color:var(--gold)}
.vn-ed .v{max-width:10rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-2)}
.vn-ed.here{border-style:solid; border-color:var(--velvet); background:rgba(var(--ac-rgb),.16)}
.vn-ed.here .v{color:var(--ivory)}
.vn-fix{position:absolute; top:.45rem; right:.6rem; min-height:2rem; padding:0 .75rem; border:1px dashed rgba(var(--ac2-rgb),.7); border-radius:4px; background:none; color:var(--gold); font:inherit; font-size:.8rem; cursor:pointer}
.vn-fix:hover{border-style:solid}
.vn-fix[hidden]{display:none}
.vn-stage.editing{box-shadow:inset 0 0 0 2px rgba(var(--ac2-rgb),.35)}
@container (max-width: 640px){
  .vn-stage{--box-h:clamp(12rem, 42%, 17rem)}
  .vn-st{height:62%; max-width:70%; left:0; bottom:calc(var(--box-h) - 3rem)}
  .vn-side{left:.6rem; right:.6rem; width:auto; bottom:calc(var(--box-h) + 1.2rem)}
  .vn-stage.side-open .vn-box{right:.5rem}
  .vn-pills{top:.6rem; right:.6rem}
  .vn-edit{top:.6rem; left:.6rem}
  .vn-box{left:.5rem; right:.5rem; bottom:.5rem; padding:1.35rem .9rem .45rem}
  .vn-text{font-size:var(--lg-fs); line-height:1.75}
  .vn-stage{--box-h:clamp(14rem, 46%, 19rem)}
  .vn-ctl{flex-wrap:wrap; overflow:visible; row-gap:.3rem}
  .vn-ctl .grow{display:none}
  .vc{padding:0 .6rem}
  .vn-seek{flex:1 1 100%; order:9}
  .vn-more{display:none}
}
@media (max-width:760px){
  .vn-log-list button{grid-template-columns:minmax(0,1fr); gap:.1rem}
  .vn-log-list .t{grid-column:1}
}
@media (prefers-reduced-motion:reduce){
  .vn-bg img, .vn-st{transition:none}
  .vn-st img{animation:none !important}
  .vn-more.on{animation:none}
}
.log-editbar{position:sticky; top:0; z-index:3; display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1rem; padding:.6rem 1rem; border-bottom:1px solid var(--line); border-radius:var(--r) var(--r) 0 0; background:var(--black-2); font-size:var(--s-1); color:var(--text-2)}
.log-editbar .grow{flex:1}
.lg-body.editing [data-i], .lg-body.editing .lg-bgm, .lg-body.editing .lg-bgimg{cursor:pointer; border-radius:2px; transition:background .2s, box-shadow .2s}
.lg-body.editing [data-i]:hover, .lg-body.editing .lg-bgm:hover, .lg-body.editing .lg-bgimg:hover{background:rgba(var(--fg-rgb),.06); box-shadow:0 0 0 1px var(--line-strong)}
.lg-body .just{background:rgba(var(--ac2-rgb),.14) !important; box-shadow:0 0 0 1px var(--gold)}
.dlg{width:min(40rem, calc(100vw - 2rem)); max-height:calc(100dvh - 2rem); overflow:auto; padding:1.5rem; border:1px solid var(--line-strong); border-radius:var(--r); background:var(--black-2); color:var(--ivory)}
.dlg::backdrop{background:rgba(0,0,0,.6)}
.dlg .row2{display:grid; grid-template-columns:1fr 1fr; gap:1rem}
.pick-opt:focus-visible{border-color:var(--gold); background:rgba(var(--ac2-rgb),.08)}
.face-pick input:focus-visible + img, .face-pick input:focus-visible + .ph{outline:2px solid var(--focus); outline-offset:2px}
@media (max-width:760px){
  .log-head .link-back{display:none}
  .log-head .log-title{font-size:1.25rem}
  .log-bar{padding:.4rem .5rem}
  .lg{grid-template-columns:2rem minmax(0,1fr); gap:.7rem}
  .lg-av{width:2rem; height:2rem}
}
@media (max-width:860px){
}
.game-stage .copy .h{font-size:var(--s2); margin-bottom:.4rem}
@keyframes bar-in{from{transform:scaleX(0)}}
.field label{display:block; margin-bottom:.45rem; font-size:.9375rem; font-weight:500}
.hint{display:block; color:var(--smoke); font-size:var(--s-1); margin-top:.3rem}
.input{width:100%; min-height:var(--tap); padding:.75rem 1rem; background:var(--black); border:1px solid var(--line-strong); border-radius:4px; transition:border-color .25s, background .25s}
.input:hover{border-color:var(--smoke)}
.input:focus{outline:2px solid var(--focus); outline-offset:1px; border-color:var(--focus); background:var(--black-2)}
.input[aria-invalid="true"]{border-color:var(--red-text)}
textarea.input{resize:vertical; min-height:8rem; line-height:1.7}
select.input{appearance:none; padding-right:2.75rem; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ADCFEA' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 1rem center; background-size:.75rem;}
select.input option{background:var(--black-2); color:var(--ivory)}
.check{display:flex; align-items:center; gap:.6rem; min-height:var(--tap); cursor:pointer}
.check input{width:1.2rem; height:1.2rem; margin:0; accent-color:var(--velvet)}
.form-actions{display:flex; flex-wrap:wrap; align-items:center; gap:.6rem}
.field-error{display:block; margin-top:.35rem; color:var(--red-text); font-size:var(--s-1); font-weight:500}
.field-error::before{content:"! "}
.form-error{margin:0; padding:.75rem 1rem; border:1px solid rgba(var(--ac-rgb),.5); border-left-width:3px; border-radius:3px; background:rgba(var(--ac-rgb),.18)}
.form-note{margin:0; padding:.75rem 1rem; border:1px solid rgba(var(--ac2-rgb),.4); border-left-width:3px; border-radius:3px; background:rgba(var(--ac2-rgb),.07)}
@keyframes half-up{to{transform:translateY(-102%)}}
@keyframes half-down{to{transform:translateY(102%)}}
@keyframes stage-out{to{opacity:0; transform:scale(1.12)}}
@keyframes fade-in{to{opacity:1}}
@keyframes ring{0%{opacity:.9; transform:scale(.2)}100%{opacity:0; transform:scale(var(--s, 4))}}
@keyframes chip-land{from{transform:translateY(-70vh) rotateX(60deg) scale(.6); opacity:0}}
@keyframes chip-spin{from{rotate:0deg}to{rotate:360deg}}
@keyframes chip-away{to{transform:scale(0); opacity:0}}
@keyframes deal-in{from{transform:translate3d(var(--fx), var(--fy), 0) rotate(var(--fr)); opacity:0}}
@keyframes fan-out{to{transform:rotate(var(--rot)) translateY(var(--lift))}}
@keyframes fan-sway{to{transform:rotate(calc(var(--rot) * 1.3)) translateY(calc(var(--lift) - 1.25rem))}}
.icard .flipper{position:absolute; inset:0; transform-style:preserve-3d; transform:rotateY(180deg); animation:flip-up calc(.7s * var(--k)) var(--ease) calc((var(--i) * .06s + 2.05s) * var(--k)) forwards}
@keyframes flip-up{to{transform:rotateY(0)}}
@keyframes burst{0%{opacity:1; transform:translate(0,0) rotateX(0deg) rotate(0deg) scale(.3)}75%{opacity:1}100%{opacity:0; transform:translate(var(--bx), var(--by)) rotateX(var(--rx)) rotate(var(--rz)) scale(1)}}
@keyframes spark{0%{opacity:1; transform:translate(0,0)}100%{opacity:0; transform:translate(var(--bx), var(--by))}}
@keyframes flash{0%{opacity:0}15%{opacity:1}100%{opacity:0}}
@keyframes shine{to{background-position:-30% 0}}
@keyframes line-in{to{transform:scaleX(1)}}
  min-height:8rem; border-radius:3px;
  background:
    linear-gradient(100deg, transparent 35%, rgba(var(--fg-rgb),.05) 50%, transparent 65%) 0 0 / 250% 100%,
    repeating-linear-gradient(180deg, var(--sk) 0 .8rem, transparent .8rem 2.2rem) 0 .4rem / 100% 100% no-repeat;
  background-origin:content-box; background-clip:content-box;   
  animation:skel 1.8s linear infinite;}
@keyframes skel{to{background-position:-250% 0, 0 .4rem}}
@keyframes skel2{to{background-position:-250% 0, 0 0}}
.empty-note{padding:2.5rem var(--pad); color:var(--smoke); text-align:center; list-style:none}
@keyframes page-in{from{opacity:0; transform:translateY(.9rem)}}
@media (forced-colors: active){
  button.slot[aria-pressed="true"]{outline:3px solid Highlight}
}
.my-reqs .m.note{color:var(--gold)}
@keyframes blink{50%{opacity:.35}}
@keyframes turn{50%{box-shadow:0 0 0 7px rgba(var(--ac-rgb),.15), 0 0 34px rgba(var(--ac-rgb),.75)}}
@keyframes aim{to{rotate:360deg}}
@keyframes burst{from{scale:.2; opacity:1}60%{opacity:1}to{scale:1.15; opacity:0; rotate:30deg}}
@keyframes shake{0%,100%{translate:0}20%{translate:-6px 2px}40%{translate:5px -3px}60%{translate:-4px -2px}80%{translate:3px 3px}}
@keyframes pop{from{opacity:0; translate:-50% .5rem}20%{opacity:1; translate:-50% 0}80%{opacity:1}to{opacity:0}}
@keyframes led{50%{fill:var(--accent)}}
@keyframes arc{0%,8%{opacity:1}9%,48%{opacity:0}50%,54%{opacity:.8}55%,100%{opacity:0}}
@keyframes hum{50%{translate:.5px -.5px}}
@keyframes flick{50%{opacity:.2}}
@keyframes kick{30%{translate:-10px 0}}
@keyframes cyl{from{rotate:-720deg}}
@keyframes rl-flash{0%{opacity:1}15%{opacity:.3}30%{opacity:.9}to{opacity:0}}
@keyframes tshake{0%,100%{translate:0}15%{translate:-5px 3px}30%{translate:4px -4px}45%{translate:-3px -2px}60%{translate:3px 3px}80%{translate:-2px 1px}}
@keyframes spark{from{transform:translate(0,0)}70%{opacity:1}to{transform:translate(var(--dx), var(--dy)); opacity:0}}
.btn, .field label, .toast{font-family:var(--f-sans)}
.btn{border-radius:0; letter-spacing:0}
.btn, .toast{}
.btn{--cut:5px}
.input, .dlg{border-radius:0}
.btn.primary{background:var(--velvet); border-color:var(--velvet)}
.btn.primary:hover{background:var(--accent); border-color:var(--accent)}
@keyframes tm-blink{50%{background:var(--black-2)}}
.cur-opt:has(input:focus-visible){outline:2px solid var(--focus); outline-offset:2px}
.amt-row .input{flex:1; min-width:0}
@keyframes deal{from{opacity:0; transform:translate(0, -3rem) rotate(-12deg) scale(.8)}to{opacity:1; transform:none}}
@keyframes pop-in{from{opacity:0; scale:.92}}
@keyframes last-pulse{50%{text-shadow:3px 3px 0 var(--bg), 0 0 18px rgba(var(--ac-rgb),.8)}}
img.px{image-rendering:pixelated; image-rendering:crisp-edges; object-fit:contain !important}
.log-snd, .vn-snd{display:inline-flex; align-items:center; gap:.45rem; flex:none}
input.vol{-webkit-appearance:none; appearance:none; width:6.5rem; height:1.5rem; margin:0; background:transparent; cursor:pointer}
input.vol[hidden]{display:none}
input.vol::-webkit-slider-runnable-track{height:4px; border-radius:2px; background:linear-gradient(90deg, var(--velvet) var(--vol, 40%), rgba(var(--fg-rgb),.2) var(--vol, 40%))}
input.vol::-moz-range-track{height:4px; border-radius:2px; background:rgba(var(--fg-rgb),.2)}
input.vol::-moz-range-progress{height:4px; border-radius:2px; background:var(--velvet)}
input.vol::-webkit-slider-thumb{-webkit-appearance:none; width:14px; height:14px; margin-top:-5px; border-radius:50%; background:var(--ivory); border:0}
input.vol::-moz-range-thumb{width:14px; height:14px; border-radius:50%; background:var(--ivory); border:0}
input.vol:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.log-page{grid-template-rows:minmax(0,1fr); gap:0; padding-top:clamp(.5rem, 1.6vh, 1rem)}
.log-box{grid-row:1; position:relative; display:flex; flex-direction:column; min-height:0; padding:0; background:var(--bg); border:1px solid rgba(var(--fg-rgb),.08); border-radius:6px; overflow:hidden; box-shadow:none}
.log-bar{flex:none; display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; min-height:3.4rem; padding:.55rem 1rem; border-bottom:1px solid rgba(var(--fg-rgb),.08); background:rgba(var(--bg-rgb),.92)}
.log-bar::-webkit-scrollbar{display:none}
.log-bar > *{flex:none}
.log-bar .grow{flex:1 1 0; min-width:.5rem}
.cb-back{display:grid; place-items:center; width:2.1rem; height:2.1rem; border-radius:50%; color:var(--smoke); font-size:1.4rem; line-height:1; text-decoration:none}
.cb-back:hover{background:rgba(var(--fg-rgb),.08); color:var(--ivory)}
.cb-ep{font-family:var(--f-sans); font-size:.8125rem; color:var(--smoke); white-space:nowrap}
.cb-title{flex:0 1 auto !important; min-width:0; max-width:22rem; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:var(--f-sans); font-weight:700; font-size:1.125rem; letter-spacing:.02em; text-shadow:none}
.log-chips{order:10; flex:1 1 100% !important; display:flex; gap:.3rem; min-width:0; padding:.1rem 0 .1rem 2.6rem; overflow-x:auto; scrollbar-width:none}
.log-chips[hidden]{display:none}
.log-chips::-webkit-scrollbar{display:none}
.tchip{flex:none; padding:.3rem .75rem; border:1px solid rgba(var(--fg-rgb),.25); border-radius:999px; background:none; color:var(--smoke); font-family:var(--f-sans); font-size:.75rem; line-height:1.3; white-space:nowrap; cursor:pointer}
.tchip:hover{color:var(--ivory)}
.tchip[aria-pressed="true"]{background:var(--ivory); border-color:var(--ivory); color:var(--bg)}
.tchip.f-secret{border-color:rgba(var(--ac-rgb),.7); color:var(--red-text)}
.tchip.f-secret[aria-pressed="true"]{background:var(--velvet); border-color:var(--velvet); color:#fff}
.tchip.f-info{border-color:rgba(var(--ac2-rgb),.7); color:var(--gold)}
.tchip.f-info[aria-pressed="true"]{background:var(--felt-hi); border-color:var(--felt-hi); color:#fff}
.cb-seg{display:inline-flex; padding:.15rem; border:1px solid rgba(var(--fg-rgb),.2); border-radius:999px}
.cb-seg[hidden]{display:none}
.cb-seg button{min-height:1.9rem; padding:0 .75rem; border:0; border-radius:999px; background:none; color:var(--smoke); font-family:var(--f-sans); font-size:.75rem; cursor:pointer}
.cb-seg button:hover{color:var(--ivory)}
.cb-seg button[aria-pressed="true"]{background:var(--velvet); color:#fff}
.cb-seg button:disabled{opacity:.35; cursor:default}
.log-size button{font-family:var(--f-sans); font-weight:700}
#log-edit[aria-pressed="true"]{background:var(--velvet); border-color:var(--velvet); color:#fff}
.log-box > .pane{flex:1; margin:0; padding:2rem clamp(1rem, 5vw, 3.5rem) 4rem}
.lg-body{--lg-fs:1.0625rem; max-width:var(--lg-w, 46rem)}
.lg{display:grid; grid-template-columns:3rem minmax(0,1fr); gap:1rem; padding:.7rem 0; border-top:0}
.lg .lg-av{width:3rem; height:3rem; margin-top:.15rem; border-radius:6px}
.lg.has-st{grid-template-columns:4.25rem minmax(0,1fr)}
.lg .lg-av.st{width:4.25rem; height:4.25rem; border-radius:6px; background:rgba(var(--fg-rgb),.05)}
.lg-n{margin:0 0 .15rem; font-family:var(--f-sans); font-weight:700; font-size:.9em}
.lg-b > p:not(.lg-n){font-size:1.02em; line-height:1.85; color:rgba(var(--fg-rgb),.92)}
.lg-narr{margin:.6rem 0; padding:.1rem 0 .1rem 1.1rem; border-left:1px solid rgba(var(--ac2-rgb),.4); color:rgba(var(--fg-rgb),.68)}
.lg-narr > p{line-height:1.9}
.lg-sys{padding:.4rem 0; font-size:.82em}
.lg.f-info, .lg-narr.f-info, .lg-sys.f-info, .lg.f-secret, .lg-narr.f-secret, .lg-sys.f-secret, .lg.f-other, .lg-narr.f-other, .lg-sys.f-other{margin:.35rem 0; padding:.6rem .95rem; border:0; border-left:2px solid var(--band); border-radius:0}
.lg.f-other .lg-b > p:not(.lg-n){font-size:.95em}
.lg-tab{border-radius:999px; font-family:var(--f-sans); font-size:.68rem}
.lg-bgimg{display:flex; align-items:center; gap:.9rem; margin:2rem 0 1rem; padding:0; border:0; font-family:var(--f-sans); font-size:.78rem; color:var(--smoke)}
.lg-bgimg::before, .lg-bgimg::after{content:""; flex:1; height:1px; background:rgba(var(--fg-rgb),.16)}
.lg-bgimg img{display:none}
.lg-bgimg .t::before{content:"" !important}
.lg-bgimg.none{display:none}
.lg-body.editing .lg-bgimg.none{display:flex}
.lg-bgm{margin:.8rem 0; border-radius:999px; font-size:.82em}
.log-rail{position:absolute; right:1rem; top:5rem; bottom:1.6rem; z-index:4; width:3px; border-radius:2px; background:rgba(var(--fg-rgb),.1)}
.log-rail[hidden]{display:none}
.log-rail button{position:absolute; left:-5.5px; width:14px; height:14px; margin-top:-7px; padding:0; border:2px solid var(--bg); border-radius:50%; background:var(--gold); cursor:pointer}
.log-rail button:hover{transform:scale(1.25)}
.log-rail .here{position:absolute; left:-4px; width:11px; height:3px; margin-top:-1px; background:var(--velvet); pointer-events:none}
.log-box.is-vn{background:var(--vn-bg)}
.log-box.is-vn .log-bar{background:var(--vn-bg)}
.vn{padding:0}
.vn-stage{border:0; border-radius:0; --say-l:clamp(1.2rem, 27%, 24rem); --box-h:clamp(13rem, 34%, 16rem)}
.vn-stage:focus-visible{outline-offset:-3px}
.vn-pills{top:1rem; right:1.2rem}
.vn-edit{top:1rem; left:1.2rem}
.vn-pill{min-height:2.2rem; font-family:var(--f-sans); font-size:.8rem}
.vn-box{left:0; right:0; bottom:0; height:var(--box-h); padding:2.6rem 2.6rem .8rem var(--say-l); border:0; border-radius:0; box-shadow:none;
  background:linear-gradient(rgba(var(--bg-rgb),0), rgba(var(--bg-rgb),.94) 40%)}
.vn-box.f-info, .vn-box.f-secret{background:linear-gradient(rgba(var(--bg-rgb),0), rgba(var(--bg-rgb),.94) 40%)}
.vn-name{position:static; transform:none; display:flex; align-items:center; gap:.7rem; margin:0 0 .35rem; padding:0; border:0; background:none; font-family:var(--f-sans); font-size:calc(var(--lg-fs) * 1.15); color:var(--c, var(--ivory))}
.vn-name::after{content:""; flex:1; height:1px; background:linear-gradient(90deg, color-mix(in srgb, var(--c, var(--ivory)) 60%, transparent), transparent)}
.vn-name[hidden]{display:none}
.vn-text{font-size:calc(var(--lg-fs) * 1.3); line-height:1.7}
.vn-box.narr .vn-text{color:rgba(var(--fg-rgb),.8)}
.vn-more{display:none}
.vn-fix{top:2.4rem; right:2.6rem}
.vn-ctl{gap:1.1rem; margin:0; padding:.55rem 0 0; border-top:0}
.vc{min-height:2rem; padding:0; border:0; background:none; color:var(--smoke); font-family:var(--f-sans); font-size:.8125rem}
.vc:hover:not(:disabled){color:var(--ivory); border:0}
.vc.primary{background:none; color:var(--ivory); font-weight:700; padding:0}
.vc[aria-pressed="true"]{background:none; color:var(--red-text)}
.vc.save{padding:0 .9rem; border-radius:999px; background:var(--felt)}
.vc.save:disabled{background:none; padding:0}
.vn-seek{flex:1 1 auto; max-width:none}
.vn-seek input{-webkit-appearance:none; appearance:none; height:1.5rem; background:transparent; cursor:pointer}
.vn-seek input::-webkit-slider-runnable-track{height:2px; background:rgba(var(--fg-rgb),.18)}
.vn-seek input::-moz-range-track{height:2px; background:rgba(var(--fg-rgb),.18)}
.vn-seek input::-moz-range-progress{height:2px; background:var(--velvet)}
.vn-seek input::-webkit-slider-thumb{-webkit-appearance:none; width:10px; height:10px; margin-top:-4px; border-radius:50%; background:var(--velvet); border:0}
.vn-seek input::-moz-range-thumb{width:10px; height:10px; border-radius:50%; background:var(--velvet); border:0}
.vn-stage.side-open .vn-pills{display:none}
.vn-side{top:1rem; right:1.2rem; bottom:calc(var(--box-h) - .4rem); width:clamp(20rem, 30%, 28rem)}
.vn-stage.side-open .vn-box{right:0}
.vn-grp{--band:var(--velvet); border:0; border-left:2px solid var(--band); border-radius:0; background:linear-gradient(90deg, rgba(var(--secret-rgb),.9), rgba(var(--secret-rgb),.62)); box-shadow:none}
.vn-grp:has(.vn-chat:not(.f-secret):not([hidden])){--band:rgba(var(--ac2-rgb),.7); background:linear-gradient(90deg, rgba(var(--bg-rgb),.92), rgba(var(--bg-rgb),.62))}
.vn-grp header{align-items:center; gap:.2rem; padding:.35rem .4rem 0 .9rem; border-bottom:1px solid rgba(var(--fg-rgb),.08); background:none}
.vn-marks{gap:.85rem; overflow-x:auto; scrollbar-width:none; align-items:center}
.vn-marks::-webkit-scrollbar{display:none}
.vn-marks .sep{flex:none; width:1px; height:.9rem; background:rgba(var(--fg-rgb),.2)}
.vn-mark, .vn-mark[aria-selected="true"]{flex:none; min-width:0; min-height:2.2rem; margin:0; padding:0; border:0; border-bottom:2px solid transparent; border-radius:0; background:none; font-family:var(--f-sans); font-weight:400; font-size:.78rem; color:var(--smoke)}
.vn-mark[aria-selected="true"]{color:var(--ivory); border-bottom-color:var(--ivory)}
.vn-mark.f-secret{color:rgba(var(--ac-rgb),.7)}
.vn-mark.f-secret[aria-selected="true"]{color:var(--red-text); border-bottom-color:var(--velvet); background:none}
.vn-mark .n:not(:empty){margin-left:.3rem}
.vn-chat-list .bub{border-radius:2px 10px 10px 10px}
.vn-chat-list li.mine .bub{border-radius:10px 2px 10px 10px}
@container (max-width: 640px){
  .vn-stage{--say-l:1rem; --box-h:clamp(14rem, 44%, 19rem)}
  .vn-box{padding:2rem 1rem .6rem}
  .vn-fix{right:1rem; top:1.6rem}
  .vn-side{top:.6rem; left:.6rem; right:.6rem; width:auto; bottom:calc(var(--box-h) + .4rem)}
  .vn-ctl{gap:.8rem}
}
@media (max-width:760px){
  .cb-ep{display:none}
  .cb-title{max-width:9rem; font-size:1rem}
  .log-bar{flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none}
  .log-chips{order:0; flex:none !important; padding:0}
  .log-box > .pane{padding:1.4rem 1.1rem 3rem}
  .log-rail{right:.35rem}
}
.vn-box .vn-text{flex:1 1 auto; min-height:0}
.vn-box .vn-name, .vn-box .vn-ctl{flex:none}
.cb-seg button:disabled{opacity:.3}
.log-snd{margin-right:.2rem}
.cb-title{flex:1 1 0 !important; max-width:none}
.cb-tools{flex:none; display:flex; align-items:center; gap:.4rem; max-width:100%; overflow-x:auto; scrollbar-width:none}
.cb-tools::-webkit-scrollbar{display:none}
.cb-tools > *{flex:none}
.log-bar .cb-seg button{padding:0 .65rem}
.log-bar .cb{padding:0 .8rem}
@media (max-width:760px){
  .cb-tools{flex:1 1 auto; min-width:0}
  .cb-title{flex:0 1 auto !important}
}
.log-snd{display:inline-flex; align-items:center; gap:.4rem; padding-right:.3rem}
.log-snd[hidden]{display:none}
.log-snd input.vol{width:5.5rem}
.log-bar{display:grid !important; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:1rem; min-height:4rem; padding:.6rem 1.1rem !important; flex-wrap:nowrap; overflow:visible !important; background:var(--bar-bg) !important}
.lb-l{display:flex; align-items:center; gap:.8rem; min-width:0}
.lb-c{display:flex; justify-content:center}
.lb-r{position:relative; display:flex; align-items:center; justify-content:flex-end; gap:.5rem; min-width:0}
.lb-t{display:grid; min-width:0; line-height:1.25}
.lb-t .cb-ep{font-size:.72rem}
.lb-t .cb-title{font-size:1.1rem; max-width:none; flex:none !important}
.ib{flex:none; display:inline-grid; place-items:center; min-width:2.5rem; height:2.5rem; padding:0 .7rem; border:1px solid rgba(var(--fg-rgb),.14); border-radius:10px; background:rgba(var(--fg-rgb),.03); color:var(--smoke); font:inherit; font-family:var(--f-sans); font-size:.85rem; text-decoration:none; cursor:pointer}
.ib[hidden]{display:none}
.ib:hover{color:var(--ivory); border-color:rgba(var(--fg-rgb),.35)}
.ib[aria-expanded="true"], .ib[aria-pressed="true"]{background:rgba(var(--fg-rgb),.12); border-color:rgba(var(--fg-rgb),.35); color:var(--ivory)}
#log-edit[aria-pressed="true"]{background:var(--velvet); border-color:var(--velvet); color:#fff}
.mseg{display:inline-flex; padding:3px; border-radius:12px; background:rgba(var(--fg-rgb),.07)}
.mseg[hidden]{display:none}
.mseg button{min-height:2.2rem; min-width:3rem; padding:0 .9rem; border:0; border-radius:9px; background:none; color:var(--smoke); font-family:var(--f-sans); font-size:.8rem; cursor:pointer}
.mseg button:hover:not(:disabled){color:var(--ivory)}
.mseg button[aria-pressed="true"]{background:var(--ivory); color:var(--bg)}
.mseg button:disabled{opacity:.35; cursor:default}
.log-mode button{min-width:4.2rem; min-height:2.4rem}
.log-size button{font-family:var(--f-sans); font-weight:700}
.lbgm{display:flex; align-items:center; gap:.6rem; height:2.6rem; padding:0 .8rem 0 .25rem; border:1px solid rgba(var(--fg-rgb),.14); border-radius:999px; background:rgba(var(--fg-rgb),.05); min-width:0}
.lbgm[hidden]{display:none}
.bgm-pp{flex:none; display:grid; place-items:center; width:2.1rem; height:2.1rem; padding:0; border:0; border-radius:50%; background:var(--velvet); color:#fff; font-size:.7rem; cursor:pointer}
.bgm-pp:hover{filter:brightness(1.1)}
.bgm-pp[aria-pressed="false"]{background:rgba(var(--fg-rgb),.14)}
.bgm-t{min-width:0; max-width:9rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:var(--f-sans); font-size:.75rem; color:var(--ivory)}
.bgm-t::before{content:"♪ "; color:var(--smoke)}
.lbgm input.vol{width:4.5rem}
.aa-menu{position:absolute; top:calc(100% + .5rem); right:0; z-index:40; display:grid; gap:.8rem; width:17.5rem; padding:.9rem; border:1px solid rgba(var(--fg-rgb),.18); border-radius:12px; background:#0d1330; box-shadow:0 18px 40px rgba(0,0,0,.6)}
.aa-menu[hidden]{display:none}
.aa-row{display:flex; align-items:center; justify-content:space-between; gap:1rem; font-family:var(--f-sans); font-size:.78rem; color:var(--smoke)}
.aa-row .mseg button{min-width:0; padding:0 .7rem}
.log-tabbar{flex:none; display:flex; align-items:center; gap:.6rem; min-height:3.2rem; padding:.4rem 1.1rem; border-bottom:1px solid rgba(var(--fg-rgb),.08); background:var(--bg)}
.log-tabbar[hidden]{display:none}
.tr-l{flex:none; font-family:var(--f-sans); font-size:.72rem; color:var(--smoke)}
.log-tabbar .log-chips{order:0; flex:1 1 auto !important; padding:0 !important; gap:.35rem}
.tchip{min-height:2.2rem; padding:0 .85rem; border-radius:999px; background:none; font-size:.75rem}
.tchip .c{margin-left:.15rem; color:var(--muted); font-variant-numeric:tabular-nums}
.tchip[aria-pressed="true"]{background:rgba(var(--fg-rgb),.12); border-color:rgba(var(--fg-rgb),.32); color:var(--ivory)}
.tchip.f-secret[aria-pressed="true"]{background:rgba(var(--ac-rgb),.2); border-color:rgba(var(--ac-rgb),.6); color:var(--red-text)}
.tchip.f-info[aria-pressed="true"]{background:rgba(var(--ac2-rgb),.2); border-color:rgba(var(--ac2-rgb),.6); color:var(--gold)}
.tchip[aria-pressed="false"] .c{opacity:.6}
.log-box.is-vn .log-tabbar{background:var(--vn-bg)}
.log-box.no-st .lg .lg-av{display:none}
.log-box.no-st .lg{grid-template-columns:minmax(0,1fr)}
.log-box.no-st .vn-st{display:none}
@media (max-width:760px){
  .log-bar{grid-template-columns:minmax(0,1fr) auto; gap:.5rem; padding:.5rem .6rem !important}
  .lb-c{grid-column:1 / -1; grid-row:2; justify-content:stretch}
  .lb-c .mseg{width:100%}
  .lb-c .mseg button{flex:1}
  .bgm-t{display:none}
  .lbgm input.vol{width:3.5rem}
  .lb-t .cb-ep{display:none}
  .log-tabbar{overflow-x:auto; padding:.3rem .6rem}
  .tr-l{display:none}
}
.lb-r > *{flex:none}
.lbgm{flex:none !important}
.log-tabbar .log-chips{justify-content:flex-start; overflow-x:auto}
.bgm-t{width:7.5rem; max-width:none !important}
.log-tabbar{display:grid !important; grid-template-columns:max-content minmax(0,1fr); justify-content:start}
.log-tabbar[hidden]{display:none !important}
.log-tabbar .log-chips{order:0 !important; width:100%; margin:0 !important; flex:none !important}
@media (max-width:760px){
  .log-tabbar{grid-template-columns:minmax(0,1fr)}
}
.tr-l{display:inline-flex !important; align-items:center; gap:.35rem; min-height:2.2rem; padding:0 .7rem 0 .4rem; border:0; border-radius:8px; background:none; font-family:var(--f-sans); font-size:.75rem; color:var(--smoke); cursor:pointer}
.tr-l:hover{background:rgba(var(--fg-rgb),.06); color:var(--ivory)}
.tr-l .arw{font-size:.7rem; transition:transform .2s}
.tr-l .sum{color:var(--muted); font-variant-numeric:tabular-nums}
.log-tabbar.folded{}
.log-tabbar.folded .tr-l .arw{transform:rotate(-90deg)}
.log-tabbar:not(.folded) .tr-l .sum{display:none}
@media (max-width:760px){
  .tr-l{display:inline-flex !important}
  .log-tabbar{grid-template-columns:max-content minmax(0,1fr) !important}
}
.vn-stage{--say-l:clamp(1.2rem, 3vw, 2.6rem) !important}
.vn-box{z-index:3}
.vn-st{z-index:2}
.vn-box{padding-bottom:0}
.vn-ctl{position:relative; gap:.25rem; border:0; margin:auto calc(-1 * var(--say-l)) 0 calc(-1 * var(--say-l)) !important; padding:.4rem 2.6rem .55rem var(--say-l); border-top:1px solid rgba(var(--fg-rgb),.08); overflow:visible}
.vn-stage .vn-ctl{margin-right:-2.6rem !important}
.vn-ctl .vc{min-height:2.5rem; padding:0 .7rem; border:0; border-radius:999px; font-family:var(--f-sans); font-size:.8125rem; letter-spacing:.06em; color:var(--smoke); background:none}
.vn-ctl .vc:hover:not(:disabled){color:var(--ivory); background:rgba(var(--fg-rgb),.06)}
.vn-ctl .vc:focus-visible{outline:2px solid var(--velvet); outline-offset:1px}
.vn-ctl .vc.ic{width:2.5rem; padding:0; font-size:.9rem; letter-spacing:0}
.vn-ctl .vc.ic:first-child{margin-left:-.7rem}
.vn-ctl .vc.primary{color:var(--ivory); font-weight:400}
.vn-ctl .vc[aria-pressed="true"]{color:var(--red-text); background:rgba(var(--ac-rgb),.16)}
.vn-ctl .vc.save{background:var(--felt); color:#fff; margin-right:.5rem}
.vn-ctl .vc.save:disabled{background:none; color:var(--smoke)}
.vn-ctl .num{margin-left:.5rem; font-size:var(--s-1); color:var(--smoke); font-variant-numeric:tabular-nums; white-space:nowrap}
.vn-seek{position:absolute; left:0; right:0; bottom:0; height:14px; display:block; margin:0; z-index:2; max-width:none; min-width:0}
.vn-seek input{position:absolute; left:0; right:0; bottom:0; width:100%; height:14px; margin:0; -webkit-appearance:none; appearance:none; background:transparent; cursor:pointer; --seek:0%}
.vn-seek input::-webkit-slider-runnable-track{height:3px; margin-top:11px; background:linear-gradient(90deg, var(--velvet) var(--seek), rgba(var(--fg-rgb),.14) var(--seek)); transition:height .15s, margin .15s}
.vn-seek input::-moz-range-track{height:3px; background:rgba(var(--fg-rgb),.14)}
.vn-seek input::-moz-range-progress{height:3px; background:var(--velvet)}
.vn-seek input::-webkit-slider-thumb{-webkit-appearance:none; width:12px; height:12px; margin-top:-4.5px; border-radius:50%; background:#fff; border:0; opacity:0; transition:opacity .15s}
.vn-seek input::-moz-range-thumb{width:12px; height:12px; border-radius:50%; background:#fff; border:0; opacity:0}
.vn-seek:hover input::-webkit-slider-thumb, .vn-seek input:focus-visible::-webkit-slider-thumb{opacity:1}
.vn-seek:hover input::-moz-range-thumb, .vn-seek input:focus-visible::-moz-range-thumb{opacity:1}
.vn-seek:hover input::-webkit-slider-runnable-track{height:5px; margin-top:9px}
.vn-seek input:focus-visible{outline:none}
.vn-more{display:block !important; position:absolute; right:2.6rem; bottom:3.9rem !important; font-size:.8rem; color:var(--velvet)}
@media (max-width:640px){
  .vn-ctl{flex-wrap:nowrap; padding-right:1rem; padding-left:.9rem; margin-left:-.9rem !important}
  .vn-stage .vn-ctl{margin-right:-.9rem !important}
  .vn-ctl .vc{padding:0 .45rem; font-size:.75rem}
  .vn-ctl .grow{display:block}
  .vn-more{display:none !important}
}
.log-tabbar, .log-tabbar.folded{height:3.4rem; min-height:0; padding-block:0; box-sizing:border-box; align-items:center}
.log-tabbar .log-chips{scrollbar-width:none}
.log-tabbar .log-chips::-webkit-scrollbar{display:none}
.vn-more{opacity:0; transition:opacity .25s}
.vn-more.on{opacity:.9; animation:vn-bob 1.6s ease-in-out infinite}
@keyframes vn-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}
@media (prefers-reduced-motion:reduce){
  .vn-more.on{animation:none}
}
html{scrollbar-color:rgba(var(--fg-rgb),.22) transparent}
@supports selector(::-webkit-scrollbar){
  *{scrollbar-color:auto !important}
  html, .pane, .vn-text, .vn-chat-list, .vn-log-list, .aa-menu, .lg-body{scrollbar-width:auto !important}
}
::-webkit-scrollbar{width:10px; height:10px; background:transparent}
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-button{display:none; width:0; height:0}
::-webkit-scrollbar-thumb{min-height:2.5rem; border:3px solid transparent; border-radius:999px; background:rgba(var(--fg-rgb),.2) padding-box}
::-webkit-scrollbar-thumb:hover{background-color:rgba(var(--ac-rgb),.75)}
::-webkit-scrollbar-thumb:active{background-color:var(--velvet)}
.mseg button[aria-pressed="true"], .mseg button[aria-pressed="true"]:hover:not(:disabled){background:var(--ivory); color:var(--bg)}
.vn-ctl .vc[aria-pressed="true"], .vn-ctl .vc[aria-pressed="true"]:hover:not(:disabled){color:var(--red-text); background:rgba(var(--ac-rgb),.16)}
.vn-log{z-index:8; background:var(--bg)}
.ib:disabled{opacity:.35; cursor:default}
.ib-ico{flex:none; width:1rem; height:1rem; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round}
.vn-stage > *{--vn-fs:calc(var(--lg-fs) * 1.3); --vn-lh:1.7; --vn-lines:3;
  --vn-line:calc(var(--vn-fs) * var(--vn-lh));
  --vn-top:2rem; --vn-gap:.7rem; --vn-ctl:3.5rem; --vn-px:clamp(1.2rem, 3vw, 2.6rem);
  --box-h:calc(var(--vn-top) + var(--vn-line) * (var(--vn-lines) + 1) + var(--vn-gap) + var(--vn-ctl));}
@container (min-height:880px){
  .vn-stage > *{--vn-lines:4}
}
@container (max-height:469px){
  .vn-stage > *{--vn-lines:2; --vn-top:1.2rem}
}
@container (max-height:300px){
  .vn-stage > *{--vn-lines:1; --vn-top:.6rem; --vn-gap:.4rem}
}
@container (max-width:640px){
  .vn-stage > *{--vn-fs:calc(var(--lg-fs) * 1.12); --vn-lines:4; --vn-top:1.5rem; --vn-px:1rem}
}
@container (max-width:640px) and (max-height:519px){
  .vn-stage > *{--vn-lines:3}
}
@container (max-width:640px) and (max-height:399px){
  .vn-stage > *{--vn-lines:2; --vn-top:1rem}
}
.vn-stage .vn-box, .vn-stage .vn-box.f-info, .vn-stage .vn-box.f-secret{height:var(--box-h); padding:var(--vn-top) var(--vn-px) 0;
  background:linear-gradient(rgba(var(--bg-rgb),0), rgba(var(--bg-rgb),.9) var(--vn-top), rgba(var(--bg-rgb),.96))}
.vn-stage .vn-name{flex:none; height:var(--vn-line); margin:0; font-size:calc(var(--vn-fs) * .88); line-height:1.2; text-shadow:0 1px 8px rgba(0,0,0,.75)}
.vn-stage .vn-text{flex:1 1 0; min-height:0; margin:0 0 var(--vn-gap); font-size:var(--vn-fs); line-height:var(--vn-lh); overflow:hidden auto; overscroll-behavior:contain; scrollbar-width:none}
.vn-stage .vn-text::-webkit-scrollbar{display:none}
@container (min-width:641px){
  .vn-stage .vn-text{padding-right:1.8rem}
}
.vn-stage .vn-box.sys .vn-text{font-size:calc(var(--vn-fs) * .8)}
.vn-text .h{visibility:hidden}
.vn-text.flip{animation:vn-flip .2s ease-out}
@keyframes vn-flip{from{opacity:.2; transform:translateY(.3rem)}to{opacity:1; transform:none}}
.vn-stage .vn-box .vn-ctl{flex:none; box-sizing:border-box; height:var(--vn-ctl); margin:0 calc(-1 * var(--vn-px)) !important; padding:.3rem var(--vn-px) .7rem}
.vn-stage .vn-more{right:var(--vn-px); bottom:calc(var(--vn-ctl) + .45rem) !important}
.vn-stage .vn-fix{top:calc(var(--vn-top) + .15rem); right:var(--vn-px)}
.vn-stage .vn-side{bottom:calc(var(--box-h) - var(--vn-top) + .3rem)}
@container (max-width:640px){
  .vn-stage .vn-st{height:min(62%, calc(100% - var(--box-h) + 2.5rem))}
}
.vn-pg{position:absolute; left:50%; top:0; z-index:3; transform:translate(-50%, -50%); min-height:1.5rem; padding:0 .7rem; border:1px solid rgba(var(--ac-rgb),.6); border-radius:999px; background:var(--bg); color:var(--red-text);
  font-family:var(--f-sans); font-size:.7rem; line-height:1; letter-spacing:.06em; white-space:nowrap; font-variant-numeric:tabular-nums; cursor:pointer}
.vn-pg[hidden]{display:none}
.vn-pg:hover:not(:disabled){background:rgba(var(--ac-rgb),.18)}
.vn-pg:disabled{border-color:rgba(var(--fg-rgb),.18); color:var(--smoke); cursor:default}
@media (prefers-reduced-motion:reduce){
  .vn-text.flip{animation:none}
}
.lb-btns{position:relative; flex:none; display:flex; align-items:center; gap:.5rem}
@media (max-width:760px){
  .log-bar{position:relative; grid-template-columns:minmax(0,1fr) auto; gap:.45rem .5rem}
  .lb-r{display:contents}
  .lb-l{grid-column:1 / -1; grid-row:1; gap:.6rem}
  .lbgm{position:absolute; top:.45rem; right:.6rem}
  .log-bar:has(#log-snd:not([hidden])) .lb-l{padding-right:8rem}
  .lb-c{grid-column:1; grid-row:2}
  .lb-btns{grid-column:2; grid-row:2; gap:.3rem}
  .lb-btns .ib{min-width:2.4rem; height:2.4rem; padding:0 .5rem}
  .lb-t .cb-ep{display:block; font-size:.68rem}
  .lb-t .cb-title{font-size:1rem}
  .log-mode button{min-width:0; padding:0 .3rem}
}
.log-tabbar{position:relative}
@media (max-width:760px){
  .log-tabbar, .log-tabbar.folded{height:auto; min-height:3rem; padding:.4rem .6rem; align-items:start; overflow:visible}
  .log-tabbar .log-chips{flex-wrap:wrap; overflow:visible; row-gap:.35rem}
  .log-tabbar .tchip{min-height:2.2rem; padding:0 .75rem}
  .log-tabbar .tchip .c{display:none}
}
.log-find{position:absolute; inset:0; z-index:5; display:flex; align-items:center; gap:.4rem; padding:0 1.1rem; background:var(--bg); color:var(--smoke)}
.log-find[hidden]{display:none}
.log-box.is-vn .log-find{background:var(--vn-bg)}
.log-tabbar.finding > :not(.log-find){visibility:hidden}
.log-find input{flex:1 1 auto; min-width:0; height:2.3rem; padding:0 .4rem; border:0; border-bottom:1px solid rgba(var(--fg-rgb),.22); border-radius:0; background:none; color:var(--ivory); font:inherit; font-size:1rem; outline:none}
.log-find input:focus{border-bottom-color:var(--velvet)}
.log-find input::placeholder{color:#6b7797}
.log-find .fn{flex:none; min-width:3rem; text-align:right; font-family:var(--f-sans); font-size:.75rem; font-variant-numeric:tabular-nums; white-space:nowrap}
.log-find .fn.none{color:var(--red-text)}
.fmore{flex:none; min-height:1.9rem; padding:0 .7rem; border:1px dashed rgba(var(--ac2-rgb),.55); border-radius:999px; background:none; color:var(--gold); font-family:var(--f-sans); font-size:.7rem; white-space:nowrap; cursor:pointer}
.fmore[hidden]{display:none}
.fmore:hover{border-style:solid}
.ib.sm{min-width:2.2rem; height:2.2rem; padding:0; font-size:.7rem}
@media (max-width:760px){
  .log-find{padding:0 .6rem; gap:.25rem}
  .log-find > .ib-ico{display:none}
  .fmore{padding:0 .5rem}
}
::highlight(log-find){background-color:rgba(var(--ac2-rgb),.34); color:inherit}
::highlight(log-find-cur){background-color:var(--accent); color:#fff}
.vn-chat-list li.hit .bub, .vn-chat-list li.hit.q, .vn-chat-list li.hit .vn-info{box-shadow:0 0 0 2px var(--gold)}
.log-links{display:flex; flex-wrap:wrap; align-items:center; gap:.5rem}
.m-only .log-links{margin-top:.75rem}
.log-links .log-link{margin-top:0}
.log-link .pct{font-variant-numeric:tabular-nums; opacity:.9}

/* ===== 범용 테마로 다듬기 ===== */
html, body{background:var(--bg); color:var(--ivory)}
body{overflow:hidden}
.btn{border-radius:var(--r); font-family:var(--f-sans); letter-spacing:0}
.btn.primary{background:var(--accent); border-color:var(--accent); color:#fff}
.btn.primary:hover{background:var(--accent); filter:brightness(1.08); box-shadow:none}
.btn.danger{color:var(--danger); border-color:color-mix(in srgb, var(--danger) 55%, transparent)}
.btn.danger:hover{background:color-mix(in srgb, var(--danger) 14%, transparent); border-color:var(--danger)}
.input, .dlg{border-radius:var(--r)}
.dlg{background:var(--black-2); color:var(--ivory)}
.input{background:var(--bg); color:var(--ivory)}
.log-box{background:var(--bg); border-color:var(--line)}
.log-page:fullscreen{background:var(--bg)}
.toast{bottom:1.5rem}
.page{inset:0}
.vn-stage{background:var(--vn-bg)}
.bg-prev{display:block; width:100%; max-height:12rem; object-fit:cover; margin:.25rem 0 .75rem; border-radius:6px}
.pick-mark{display:grid; gap:.6rem}
.pick-opt{display:grid; gap:.2rem; padding:.85rem 1rem; border:1px solid var(--line-strong); border-radius:8px; background:rgba(var(--fg-rgb),.04); color:var(--ivory); font:inherit; text-align:left; cursor:pointer}
.pick-opt:hover, .pick-opt:focus-visible{border-color:var(--accent); background:rgba(var(--ac-rgb),.08)}
.pick-opt span{font-size:var(--s-1); color:var(--text-2)}
.form-error{margin:0; padding:.7rem .9rem; border:1px solid color-mix(in srgb, var(--danger) 50%, transparent); border-left-width:3px; border-radius:6px; background:color-mix(in srgb, var(--danger) 12%, transparent)}
.form-error[hidden]{display:none}
html[data-theme="light"] .vn-stage .vn-name{text-shadow:none}
html[data-theme="light"] .vn-text{text-shadow:none}

/* ===== 스탠딩 두 자리 (왼쪽·오른쪽) ===== */
.vn-stage .vn-st{transition:opacity .25s, filter .3s}
.vn-stage .vn-st.r{left:auto; right:3%; justify-content:flex-end}
.vn-stage .vn-st.r img{object-position:right bottom}
.vn-stage .vn-st.dim{filter:brightness(.5) saturate(.7)}
.vn-stage .vn-st.act{z-index:3}
.vn-stage .vn-st.enter img{animation:vn-in-l .38s var(--ease) both}
.vn-stage .vn-st.r.enter img{animation-name:vn-in-r}
.vn-stage .vn-st.pop img{animation:vn-swap .2s ease-out both}
@keyframes vn-in-l{from{opacity:0; transform:translateX(-2.5rem)}to{opacity:1; transform:none}}
@keyframes vn-in-r{from{opacity:0; transform:translateX(2.5rem)}to{opacity:1; transform:none}}
@container (max-width:640px){ .vn-stage .vn-st{max-width:52%} .vn-stage .vn-st.l{left:0} .vn-stage .vn-st.r{right:0} }
@media (prefers-reduced-motion:reduce){ .vn-stage .vn-st{transition:none} }
.aa-menu{background:var(--black-2) !important; box-shadow:0 12px 30px rgba(0,0,0,.3)}
/* 채팅창(잡담·정보·비밀)을 열면 오른쪽 스탠딩이 창 왼쪽으로 비켜섬 — 가려지지 않게 */
@container (min-width:641px){
  .vn-stage .vn-st{transition:opacity .25s, filter .3s, right .35s var(--ease), max-width .35s var(--ease)}
  .vn-stage.side-open .vn-st{max-width:min(44%, calc((100% - clamp(20rem, 30%, 28rem) - 3rem) / 2))}
  .vn-stage.side-open .vn-st.r{right:calc(clamp(20rem, 30%, 28rem) + 2.2rem)}
}
