@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root{--bg:#100d1c;--surface:#1b1629;--surface-2:#211a31;--card:#2b2139;--border:#4d3a62;--p:#b49bff;--p2:#e6a4ff;--pink:#ff8bcc;--cyan:#7ae7df;--gold:#ffdf9c;--white:#f9f5ff;--muted:#c5b8d8;--small:#968aa9;--shadow:0 24px 80px #090611b3}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:'DM Sans',Inter,Segoe UI,Arial,sans-serif;color:var(--white)}html{background:transparent!important}body{background:#100d1c!important;font-size:14px;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}button:disabled{opacity:.45;cursor:not-allowed}.backdrop{position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 18% 4%,#2b1e48 0,transparent 38%),radial-gradient(ellipse at 82% 65%,#342238 0,transparent 45%),linear-gradient(135deg,#090916,#161023 55%,#100d1e);overflow:hidden}.backdrop:after{content:"";position:absolute;inset:0;opacity:.18;background-image:linear-gradient(#b39cee17 1px,transparent 1px),linear-gradient(90deg,#b39cee17 1px,transparent 1px);background-size:46px 46px}.orb{position:absolute;filter:blur(55px);border-radius:50%;opacity:.19}.o1{width:440px;height:440px;background:#a582f9;top:-170px;right:8%}.o2{width:350px;height:350px;background:#f875cb;bottom:-160px;left:20%}.o3{width:300px;height:300px;background:#4fe5d6;top:45%;right:-110px}.app-shell{position:relative;z-index:1;max-width:1730px;min-height:100vh;margin:auto;padding:22px 32px 30px}.topbar{display:flex;justify-content:space-between;align-items:center;padding:0 0 24px;border-bottom:1px solid #ffffff1a;gap:16px}.brand{display:flex;align-items:center;gap:13px}.brand-mark{width:60px;height:60px;filter:drop-shadow(0 0 18px #b993ff70)}.brand-line{display:block;letter-spacing:2.5px;font-size:10px;font-weight:800;color:var(--cyan);margin-bottom:2px}.brand strong{font-family:'Barlow Condensed','Liberation Sans Narrow','DejaVu Sans Condensed',Arial,sans-serif;font-size:32px;line-height:1;letter-spacing:1px;font-weight:900}.slash{color:var(--pink)}.spark{color:var(--pink)}.header-right{display:flex;align-items:center;gap:10px;color:var(--muted);font-weight:700;font-size:12px}.live-dot,.pulse{width:8px;height:8px;border-radius:50%;display:inline-block;background:#7ce5d7;box-shadow:0 0 13px #7ce5d78a}.icon-button{width:37px;height:37px;border-radius:12px;background:#281e38;border:1px solid var(--border);color:var(--p2);font-size:20px;display:none}.layout{display:grid;grid-template-columns:346px minmax(0,1fr);gap:27px;margin-top:24px}.sidebar{background:linear-gradient(165deg,#241b35f5,#161322f6);border:1px solid #8261a455;box-shadow:0 20px 65px #0a081245;border-radius:22px;padding:21px 15px 17px;max-height:calc(100vh - 129px);position:sticky;top:20px;overflow-y:auto;scrollbar-color:#57446e #21192e;scrollbar-width:thin}.sidebar-top{display:flex;justify-content:space-between;align-items:center;padding:0 7px 17px}.eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:900;color:var(--cyan)}.sidebar h2{font:900 24px/.98 'Barlow Condensed','Liberation Sans Narrow','DejaVu Sans Condensed',Arial,sans-serif;letter-spacing:1px;margin:5px 0 0}.close-side{display:none;background:transparent;border:0;color:var(--white);font-size:30px}.control-box{border-radius:14px;border:1px solid #78588f4a;background:linear-gradient(160deg,#2a203966,#130e1e4d);padding:13px;margin-bottom:13px}.setting-title{display:flex;align-items:center;gap:11px;margin-bottom:12px}.setting-icon{background:#ad81ed22;border:1px solid #9f71d05d;color:var(--p2);border-radius:9px;width:33px;height:33px;display:grid;place-items:center;font:800 13px 'Barlow Condensed','Liberation Sans Narrow','DejaVu Sans Condensed',Arial,sans-serif}.setting-title h3{margin:0;font-size:13px;font-weight:800}.setting-title p{margin:2px 0 0;color:var(--muted);font-size:10px;line-height:1.4}.role-switch{display:flex;background:#130f20;border:1px solid #62507888;border-radius:11px;padding:3px;gap:4px}.role{border:0;border-radius:8px;flex:1;padding:10px 5px;background:transparent;color:#baaac8;font-weight:800;font-size:12px}.role.on{background:linear-gradient(110deg,#7655ae,#bf76b6);color:#fff;box-shadow:0 4px 18px #bd71d433}.filters{display:flex;flex-direction:column;gap:8px}input[type=search]{width:100%;border-radius:9px;background:#100e1c;border:1px solid #68577e;color:#fff;padding:9px 12px;font-size:12px;outline:none}input[type=search]::placeholder{color:#a293b3}.quick{display:flex;gap:7px}.quick button{background:#31263e;border:1px solid #66517b;color:#e9dfff;font-size:11px;font-weight:800;padding:6px 9px;border-radius:7px}.quick button:hover{background:#504063}.selection-list{margin-top:10px;max-height:162px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:6px;scrollbar-color:#745b88 transparent;scrollbar-width:thin}.selection-list.perks{grid-template-columns:1fr;max-height:190px}.choice{border:1px solid #594a6e80;background:#1b1529;border-radius:8px;color:#ddd4e9;min-height:33px;display:flex;align-items:center;gap:6px;line-height:1.16;font-size:10px;text-align:left;padding:6px 7px;transition:background .12s,border-color .12s}.choice .check{width:14px;height:14px;display:inline-grid;place-items:center;border:1px solid #796590;border-radius:4px;color:transparent;flex-shrink:0;font-size:10px}.choice.selected{background:#6350864b;border-color:#ab91d4;color:#fff}.choice.selected .check{background:var(--cyan);color:#1a1c2b;border-color:var(--cyan)}.choice:hover{border-color:var(--cyan)}.choice .choice-body{display:flex;flex-direction:column;min-width:0}.choice .choice-body strong{font-weight:750;overflow-wrap:anywhere}.choice .choice-body small{font-size:9px;color:#bbaed0;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toggle-row{display:flex;align-items:center;gap:7px;justify-content:space-between;padding:12px 0;border-top:1px solid #705e7d3a;cursor:pointer}.toggle-row:first-of-type{border-top:0}.toggle-row>span:first-child{flex:1}.toggle-row strong{font-size:12px;display:block;line-height:1.3}.toggle-row small{display:block;color:#ab9cb9;font-size:10px;margin-top:3px;line-height:1.35}.toggle-row input{opacity:0;position:absolute;pointer-events:none}.switch{flex:none;width:38px;height:21px;background:#4a3d59;border:1px solid #70627f;border-radius:20px;position:relative;transition:.15s}.switch:before{content:"";position:absolute;top:3px;left:3px;width:13px;height:13px;background:#b8aec3;border-radius:50%;transition:.15s}.toggle-row input:checked+.switch{background:linear-gradient(120deg,#b685f6,#63d5d3);border-color:#a2c9da}.toggle-row input:checked+.switch:before{left:21px;background:#fff}.side-footer{text-align:center;color:#9487a9;font-size:10px;line-height:1.55;padding:10px}.side-footer p{margin:7px 0 0}.ghost-link{border:0;background:transparent;color:var(--cyan);font-size:11px;font-weight:800}.main-panel{min-width:0}.hero-head{display:flex;justify-content:space-between;align-items:center;padding:14px 10px 23px;gap:20px}.hero-kicker{display:flex;align-items:center;gap:9px}.hero-head h1{font:900 clamp(46px,5.4vw,83px)/.82 'Barlow Condensed','Liberation Sans Narrow','DejaVu Sans Condensed',Arial,sans-serif;letter-spacing:.5px;margin:17px 0 14px;text-shadow:0 6px 25px #04031275}.hero-head h1 span{background:linear-gradient(100deg,#e5b0ff 5%,#8ce5e0 97%);-webkit-background-clip:text;background-clip:text;color:transparent}.hero-head p{color:#d2c5df;font-size:13px;margin:0}.hero-stamp{width:116px;height:116px;border:1px solid #876da4a1;background:radial-gradient(circle,#3d2a56,#211a2d);border-radius:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(10deg);box-shadow:0 0 40px #cf7ed11c}.hero-stamp img{width:49px;height:49px}.hero-stamp span{text-align:center;font:800 13px/1 'Barlow Condensed','Liberation Sans Narrow','DejaVu Sans Condensed',Arial,sans-serif;letter-spacing:2px;color:var(--p2);margin-top:3px}.stage{border:1px solid #ad82ce7a;border-radius:24px;box-shadow:var(--shadow),inset 0 1px #ffffff22;background:linear-gradient(158deg,#30223ded 0,#161322f5 52%,#1c152af8 100%);padding:20px;position:relative;overflow:hidden}.stage:before{content:"";position:absolute;top:-210px;left:27%;width:600px;height:320px;border-radius:100%;background:#e89ffa13;filter:blur(35px);pointer-events:none}.stage-toolbar,.stage-title,.toolbar-tools{display:flex;align-items:center}.stage-toolbar{justify-content:space-between;position:relative;gap:10px}.stage-title{gap:9px;font-weight:900;letter-spacing:1.6px;font-size:13px}.stage-title small{color:#a28cb8;font-size:10px;letter-spacing:1px}.stage-bar{display:block;width:5px;height:22px;border-radius:5px;background:linear-gradient(var(--pink),var(--cyan))}.toolbar-tools{gap:8px}.mini-toggle{background:#362944d4;color:#ead8f3;border:1px solid #745987;border-radius:8px;padding:8px 11px;font-size:11px;font-weight:800}.mini-toggle:hover{border-color:var(--cyan)}.role-tabs{display:flex;gap:8px;margin:18px 0}.stage-role{flex:1;border:1px solid #645078;background:#20192e;color:#a99aba;font:800 17px 'Barlow Condensed','Liberation Sans Narrow','DejaVu Sans Condensed',Arial,sans-serif;letter-spacing:1.5px;border-radius:10px;padding:11px}.stage-role.active{background:linear-gradient(105deg,#8c5ec477,#e07cbe56);border-color:#d6a2fc;color:#fff;box-shadow:inset 0 1px #ffffff30}.result-grid{display:grid;grid-template-columns:minmax(215px,.87fr) minmax(0,1.65fr);gap:15px}.character-panel,.loadout-panel,.extra-panel{border:1px solid #6f578b80;border-radius:16px;background:linear-gradient(155deg,#291f37d6,#181322e6);padding:14px;min-width:0}.box-label{color:#d3c1e5;font-size:10px;font-weight:900;letter-spacing:1.2px;display:flex;align-items:center;gap:9px;min-height:18px}.box-label span:first-child{color:var(--cyan);font-weight:900}.box-label small{margin-left:auto;color:#9e90b1;font-size:9px;letter-spacing:.45px}.portrait-wrap{margin:13px auto 6px;width:100%;height:232px;position:relative;background:radial-gradient(ellipse at 50% 87%,#77529a7d 0,#2a1e3b 47%,#1b162b 100%);border-radius:12px;overflow:hidden;display:flex;align-items:end;justify-content:center;border:1px solid #6c55867a}.portrait-wrap:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#1d152d 0,transparent 26%);pointer-events:none}.portrait-backdrop{position:absolute;inset:-40px;background:radial-gradient(ellipse,#c080ec21,transparent 60%)}#character-image{width:100%;height:100%;object-fit:contain;object-position:center bottom;display:none;z-index:1;filter:drop-shadow(0 12px 20px #08070ee0)}.portrait-placeholder{font:900 120px 'Barlow Condensed','Liberation Sans Narrow','DejaVu Sans Condensed',Arial,sans-serif;color:#bea4e5;z-index:0;text-shadow:0 6px 33px #ecb5ff66;align-self:center}.character-name{text-align:center;font:800 29px/.97 'Barlow Condensed','Liberation Sans Narrow','DejaVu Sans Condensed',Arial,sans-serif;letter-spacing:1px;margin-top:9px;text-transform:uppercase;overflow-wrap:anywhere}.character-tag{text-align:center;font-size:10px;color:#b6a0cb;letter-spacing:1px;margin-top:5px;font-weight:700}.lock-button{border:1px solid #705e87;background:#342641;color:#d7b6ed;padding:7px 11px;border-radius:8px;display:block;margin:12px auto 0;font-size:11px;font-weight:800}.lock-button.locked{background:#3d5e62;border-color:#71d7d0;color:#dbfffb}.perk-grid{margin-top:15px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.perk-card{position:relative;min-width:0;border:1px solid #80639796;border-radius:12px;background:radial-gradient(ellipse at 50% 8%,#78569448,#23182e 69%);padding:12px 9px 11px;text-align:center;display:flex;flex-direction:column;align-items:center;min-height:146px;box-shadow:inset 0 1px #ffffff15}.perk-art{width:76px;height:76px;object-fit:contain;filter:drop-shadow(0 3px 10px #06030bb9);display:none}.perk-placeholder{width:76px;height:76px;display:flex;align-items:center;justify-content:center;border:1px solid #9575b673;background:#36244b;clip-path:polygon(50% 0,94% 25%,94% 75%,50% 100%,6% 75%,6% 25%);color:#e3cfff;font:900 24px 'Barlow Condensed','Liberation Sans Narrow','DejaVu Sans Condensed',Arial,sans-serif}.perk-name{margin-top:9px;color:#fff;font-size:12px;font-weight:850;line-height:1.16;overflow-wrap:anywhere}.perk-owner{color:#b8a5ca;font-size:10px;font-weight:650;margin-top:4px;line-height:1.16;overflow-wrap:anywhere}.perk-lock{position:absolute;right:5px;top:5px;background:#352845d9;border:1px solid #77638f;border-radius:7px;width:25px;height:25px;color:#c9acdb;display:grid;place-items:center;font-size:14px}.perk-lock.locked{color:#87f5e4;border-color:#79ecdd;background:#375458}.extra-panel{margin-top:15px}.extras-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:13px}.extra-card{min-height:95px;border:1px solid #72588890;background:linear-gradient(130deg,#34233f,#211a30);border-radius:11px;display:flex;align-items:center;gap:10px;padding:11px 12px;min-width:0}.extra-card .extra-art{width:56px;height:56px;object-fit:contain;flex-shrink:0;display:none;filter:drop-shadow(0 3px 10px #0007)}.extra-placeholder{width:56px;height:56px;display:grid;place-items:center;flex-shrink:0;border-radius:12px;background:radial-gradient(circle,#8362a38e,#49335e6e);border:1px solid #a17cb6;font-size:23px;color:#ead5ff}.extra-card .type{font:900 10px 'DM Sans';letter-spacing:1px;color:var(--cyan);margin:0 0 5px}.extra-card strong{font-size:12px;line-height:1.2;display:block;overflow-wrap:anywhere}.empty-extra{color:#b9aacb;border:1px dashed #68577d;border-radius:10px;grid-column:1/-1;padding:14px;font-size:12px;text-align:center}.roll-footer{display:flex;align-items:center;gap:16px;margin-top:17px}.roll-btn{flex:0 0 auto;display:flex;align-items:center;gap:16px;border:0;border-radius:13px;background:linear-gradient(110deg,#b08afa 0,#f28fce 61%,#7de5df 135%);color:#21132c;padding:15px 18px 15px 17px;font:900 21px 'Barlow Condensed','Liberation Sans Narrow','DejaVu Sans Condensed',Arial,sans-serif;letter-spacing:1px;box-shadow:0 8px 26px #e091d449;transition:transform .15s,filter .15s}.roll-btn:hover{transform:translateY(-2px);filter:brightness(1.08)}.roll-btn:active{transform:translateY(1px)}.roll-symbol{font-size:23px}.roll-arrow{font-size:21px;opacity:.7;margin-left:12px}.roll-btn.rolling .roll-symbol{animation:spin .46s linear infinite}.hint-text{color:#c6b7d7;font-size:11px;line-height:1.45;max-width:320px}.bottom-bar{display:flex;justify-content:space-between;gap:10px;padding:17px 5px;color:#9f90b2;font-size:10px;letter-spacing:.2px}.bottom-bar b{color:#cdaeff}.toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,15px);background:#232037;color:#fff;border:1px solid #ac8ed4;padding:10px 16px;border-radius:11px;box-shadow:0 12px 50px #0008;font-size:12px;font-weight:750;opacity:0;transition:.2s;pointer-events:none;z-index:100}.toast.show{opacity:1;transform:translate(-50%,0)}.source-status{text-overflow:ellipsis;max-width:200px;overflow:hidden;white-space:nowrap}@keyframes spin{to{transform:rotate(1turn)}}@keyframes bump{0%{transform:scale(.97);filter:blur(4px)}100%{transform:scale(1);filter:blur(0)}}.stage.bump .result-grid,.stage.bump .extras-grid{animation:bump .36s ease-out}
@media(max-width:1270px){.app-shell{padding:16px}.layout{grid-template-columns:302px minmax(0,1fr);gap:14px}.stage{padding:14px}.result-grid{grid-template-columns:minmax(170px,.85fr) minmax(0,1.55fr);gap:10px}.perk-card{padding:10px 6px}.extra-card{padding:8px;gap:6px}.extra-art,.extra-placeholder{width:42px!important;height:42px!important}.hero-stamp{width:90px;height:90px}}
@media(max-width:1030px){.app-shell{padding:16px}.layout{display:block}.sidebar{position:fixed;z-index:50;top:12px;bottom:12px;left:12px;max-height:none;width:min(380px,calc(100vw - 24px));transform:translateX(calc(-100% - 26px));transition:transform .2s}.sidebar.open{transform:translateX(0)}.icon-button,.close-side{display:block}.main-panel{max-width:980px;margin:auto}.hero-head{padding:24px 0}.hero-head h1{font-size:72px}.bottom-bar{font-size:9px}}
@media(max-width:670px){.hero-head h1{font-size:55px}.hero-stamp{display:none}.hero-head p{font-size:11px}.stage{padding:10px;border-radius:16px}.stage-toolbar{flex-wrap:wrap}.result-grid{grid-template-columns:1fr}.character-panel{display:grid;grid-template-columns:95px 1fr;align-items:center;column-gap:13px}.character-panel .box-label{grid-column:1/-1}.portrait-wrap{width:95px;height:108px;margin:8px 0;grid-row:2/5}.portrait-placeholder{font-size:50px}.character-name{text-align:left;font-size:25px}.character-tag{text-align:left}.lock-button{margin:5px 0;width:max-content}.perk-grid{grid-template-columns:repeat(2,1fr)}.extra-card{flex-direction:column;text-align:center;justify-content:center;min-height:105px}.extra-card strong{font-size:11px}.roll-footer{flex-direction:column;align-items:stretch}.roll-btn{justify-content:space-between}.hint-text{text-align:center;max-width:none}.bottom-bar{flex-wrap:wrap}.box-label small{display:none}}
/* OBS/stream view: only cards, not a full-screen background. All actions remain mouse-clickable through OBS Interact. */
body.obs-mode .backdrop,body.obs-mode .topbar,body.obs-mode .sidebar,body.obs-mode .hero-head,body.obs-mode .bottom-bar{display:none!important}
body.obs-mode .app-shell{max-width:1300px;padding:12px;margin:0;min-height:0}
body.obs-mode .layout{display:block;margin:0}
body.obs-mode .main-panel{max-width:none}
body.obs-mode .stage{background:transparent;box-shadow:none;border:0;border-radius:0;padding:0;overflow:visible}
body.obs-mode .stage:before{display:none}
body.obs-mode .stage-toolbar{background:#1d1727ed;border:1px solid #8968a5;border-radius:12px;padding:9px 12px;margin-bottom:8px;backdrop-filter:blur(9px)}
body.obs-mode .stage-role{background:#271c36e8}
body.obs-mode .stage-role.active{background:linear-gradient(105deg,#69479fef,#a35392e9)}
body.obs-mode .character-panel,body.obs-mode .loadout-panel,body.obs-mode .extra-panel{background:#181322ee;backdrop-filter:blur(9px);box-shadow:0 5px 22px #0008}
body.obs-mode .perk-card{background:radial-gradient(circle at 50% 0,#654680f5,#21192ff0 80%)}
body.obs-mode .extra-card{background:#271d37f0}
body.obs-mode .hint-text{color:#fff;text-shadow:0 1px 5px #000}
body.obs-mode .roll-btn{padding:12px 18px}
body.obs-mode .roll-footer{margin-top:12px}
body.obs-mode .stage-toolbar .toolbar-tools{display:flex}
body.obs-mode #copy-link,body.obs-mode #obs-link{display:none}
body.obs-mode .icon-button{display:none}
body.obs-mode .sidebar.open{display:block!important;box-shadow:0 0 0 250vw #0009;transform:translateX(0)}
body.obs-mode #settings-open{display:none}
body.obs-mode .stage-title{font-size:14px}
body.obs-mode .role-tabs{margin:8px 0}
@media(min-width:1031px){body.obs-mode .sidebar{position:fixed;display:none!important;transform:translateX(calc(-100% - 30px));top:12px;bottom:12px;left:12px;z-index:20;max-height:none;width:340px}body.obs-mode .close-side{display:block}}

body.obs-mode{background:transparent!important}

/* Legibility improvements for live video at 1080p. */
.perk-name{font-size:15px;line-height:1.15;letter-spacing:.08px}
.perk-owner{font-size:11.5px;line-height:1.2;color:#d5c3e4}
.extra-card strong{font-size:14px}
.selection-list .choice{font-size:11.5px;min-height:36px}
.selection-list .choice-body small{font-size:10px}
@media(max-width:670px){.perk-name{font-size:13px}.perk-owner{font-size:10px}}

/* Streamlined IRL Baldy branding */
.brand{gap:0}.brand strong{letter-spacing:1.5px}.sidebar-top{padding-bottom:18px}.sidebar-top .eyebrow{font-size:13px;letter-spacing:1.5px}.hero-head{justify-content:flex-start}.hero-head h1{margin-bottom:0}.side-footer{padding-bottom:4px}.hint-text:empty{display:none}.hero-head p:empty{display:none}.sidebar-top h2:empty{display:none}

/* DBD Roulette visual refinements */
.hero-head{align-items:center}.brand{gap:0}.brand-line{font-size:12px}.brand strong{font-size:36px}.sidebar-top h2{font-size:20px}.hero-stamp,.brand-mark{display:none!important}.hero-head p{display:none!important}.side-footer p{display:none!important}.extra-settings .setting-title p{display:none!important}

/* Visible vector art backup when official remote artwork cannot load. */
.fallback-art{width:100%;height:100%;object-fit:contain;display:block}.perk-placeholder{border:0;clip-path:none;padding:0;background:none;width:82px;height:82px}.extra-placeholder{border:0;padding:0;background:none;width:57px;height:57px}.extra-placeholder .fallback-art{border-radius:12px}.perk-art{width:82px;height:82px}
