.initiative-dialog{position:fixed;inset:0;margin:auto;width:min(960px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid #bda56c;border-radius:22px;overflow:auto;color:#59694c;background:radial-gradient(ellipse at 50% 12%,#fff9e9,#eee9cd);box-shadow:0 28px 100px #153d4166}
.initiative-dialog::backdrop{background:#183d42c9;backdrop-filter:blur(7px)}
.initiative-shell{padding:24px 28px;display:grid;gap:18px}.initiative-shell header{position:static;height:auto;display:block;padding:0;border:0;background:none;box-shadow:none;text-align:center}.initiative-shell header>small{font:600 8px 'Segoe UI',sans-serif;letter-spacing:2px;color:#9d8b59}.initiative-shell h2{font:36px/1.1 Georgia,serif;color:#5d7153;margin:9px 0}.initiative-shell header>p{font:13px/1.5 'Segoe UI',sans-serif;margin:0;color:#8e9478}
.initiative-stage{position:relative;display:flex;align-items:center;justify-content:center;gap:24px;min-height:130px;padding:10px;border:1px solid #d6cba5;border-radius:18px;background:radial-gradient(ellipse,#fff9e8,#e1e6c4);box-shadow:inset 0 0 35px #fff9e5}.initiative-actor{width:86px;height:96px;object-fit:cover;border-radius:38px 38px 16px 16px;border:3px solid #fff7df;box-shadow:0 3px 13px #4d675f22}.initiative-actor-name{display:block;font:600 13px 'Segoe UI',sans-serif;color:var(--initiative-color);text-align:center;margin-bottom:12px}.initiative-dice{display:flex;gap:17px;perspective:550px}.initiative-die{width:58px;height:58px;box-sizing:border-box;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);gap:4px;padding:10px;background:linear-gradient(135deg,#fff9dd,#f0deb0);border:1px solid #bea36c;border-radius:12px;box-shadow:inset 2px 2px 4px #fffef3,inset -3px -3px 5px #c6a66644,0 5px 0 #bfa571,0 10px 13px #50604425;transform:rotate(-7deg)}.initiative-die:nth-child(2){transform:rotate(8deg)}.initiative-die i{width:7px;height:7px;align-self:center;justify-self:center;background:#92733c;border-radius:50%;box-shadow:inset 0 1px 2px #684f2e99}.initiative-total{font:48px/1 Georgia,serif;color:#a2813c;min-width:60px;text-align:center}.initiative-dice.is-rolling .initiative-die{animation:initiative-tumble .85s cubic-bezier(.2,.65,.4,1) both}.initiative-dice.is-rolling .initiative-die:nth-child(2){animation-direction:reverse}
.initiative-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.initiative-player{display:grid;grid-template-columns:42px minmax(0,1fr) 30px;align-items:center;gap:2px 9px;min-width:0;padding:10px 11px;border:1px solid #d2cfac;border-left:3px solid var(--initiative-color);border-radius:12px;background:#faf6e7;transition:border-color .2s,background .2s}.initiative-player>img{grid-row:1/3;width:42px;height:49px;object-fit:cover;border-radius:16px 16px 9px 9px}.initiative-player>div{min-width:0}.initiative-player b{display:block;font:600 13px 'Segoe UI',sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.initiative-player small{display:block;font:10px/1.3 'Segoe UI',sans-serif;color:#929578;margin-top:4px}.initiative-player>strong{font:27px Georgia,serif;text-align:center;color:var(--initiative-color)}.initiative-player>span{grid-column:3;font:10px 'Segoe UI',sans-serif;text-align:center;color:#a2946a}.initiative-player.is-current{border-color:#b69a59;background:#fff4cf;box-shadow:0 0 0 2px #e5c67b44}.initiative-player.is-winner{background:#f7e7ad;border-color:#b79240;box-shadow:0 0 0 2px #d6b45f44}.initiative-player.is-eliminated{opacity:.6}
.initiative-shell footer{position:static;display:flex;gap:18px;align-items:center;justify-content:space-between;padding:0;border:0;background:none;box-shadow:none}.initiative-shell footer>span{font:12px/1.4 'Segoe UI',sans-serif;color:#8c9275;max-width:60%}.initiative-shell footer>button{min-height:46px;min-width:210px;font-size:13px;border-radius:10px}.initiative-order{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:0}.initiative-order span{font:600 12px 'Segoe UI',sans-serif}.initiative-order i{display:inline-grid;place-items:center;width:20px;height:20px;border:1px solid #c9b475;border-radius:50%;font:normal 12px Georgia,serif;margin-right:5px;color:#9e803e}.initiative-order em{color:#b2ab82;font-style:normal}
@keyframes initiative-tumble{0%{transform:translate(-35px,-35px) rotateX(180deg) rotateY(250deg) rotateZ(-80deg);opacity:.2}35%{transform:translate(5px,-14px) rotateX(350deg) rotateY(360deg) rotateZ(18deg);opacity:1}65%{transform:translate(-3px,-8px) rotateX(375deg) rotateY(360deg) rotateZ(-12deg)}100%{transform:rotate(-7deg)}}
.phone-ui #initiative-dialog{width:calc(100vw - 12px)!important;max-height:calc(var(--phone-height) - 12px)!important;padding:0!important}.phone-ui #initiative-dialog .initiative-shell{padding:14px!important;gap:12px}.phone-ui #initiative-dialog h2{font-size:26px}.phone-ui #initiative-dialog header>p{font-size:12px}.phone-ui #initiative-dialog .initiative-roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.phone-ui #initiative-dialog .initiative-player{padding:8px;grid-template-columns:34px minmax(0,1fr) 24px;gap:2px 6px}.phone-ui #initiative-dialog .initiative-player>img{width:34px;height:43px}.phone-ui #initiative-dialog .initiative-player small{font-size:9px}.phone-ui #initiative-dialog .initiative-player b{font-size:12px}.phone-ui #initiative-dialog .initiative-player>strong{font-size:24px}.phone-ui #initiative-dialog footer>span{font-size:11px;max-width:48%}.phone-ui #initiative-dialog footer>button{min-width:0;flex:1;min-height:44px!important;font-size:12px!important;padding:9px 12px!important}.phone-ui #initiative-dialog .initiative-stage{min-height:108px;gap:16px}.phone-ui #initiative-dialog .initiative-actor{width:62px;height:74px}.phone-ui #initiative-dialog .initiative-die{width:48px;height:48px;padding:8px}.phone-ui #initiative-dialog .initiative-total{font-size:38px;min-width:40px}
@media(max-height:500px){.phone-ui #initiative-dialog .initiative-shell{padding:10px 14px!important;gap:8px}.phone-ui #initiative-dialog h2{font-size:23px;margin:5px 0}.phone-ui #initiative-dialog header>small{font-size:6px}.phone-ui #initiative-dialog header>p{font-size:11px}.phone-ui #initiative-dialog .initiative-roster{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.phone-ui #initiative-dialog .initiative-player{padding:5px 7px;grid-template-columns:30px minmax(0,1fr) 24px}.phone-ui #initiative-dialog .initiative-player>img{width:30px;height:35px}.phone-ui #initiative-dialog .initiative-player small{font-size:8px;margin-top:2px}.phone-ui #initiative-dialog .initiative-player>strong{font-size:21px}.phone-ui #initiative-dialog .initiative-stage{min-height:76px;padding:7px;gap:17px}.phone-ui #initiative-dialog .initiative-actor{width:50px;height:58px}.phone-ui #initiative-dialog .initiative-actor-name{font-size:11px;margin-bottom:7px}.phone-ui #initiative-dialog .initiative-die{width:38px;height:38px;padding:6px;gap:3px;border-radius:8px}.phone-ui #initiative-dialog .initiative-die i{width:5px;height:5px}.phone-ui #initiative-dialog .initiative-total{font-size:31px}.phone-ui #initiative-dialog .initiative-order{gap:5px}.phone-ui #initiative-dialog .initiative-order span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.initiative-dice.is-rolling .initiative-die{animation:none}.initiative-player{transition:none}}
html.phone-ui body dialog#initiative-dialog:not(#start-screen):not(#campaign-cinema):not(#phone-orientation){padding:0!important}
.initiative-dice.is-rolling .initiative-die:nth-child(2){animation-direction:normal;animation-name:initiative-tumble-second}
@keyframes initiative-tumble-second{0%{transform:translate(32px,-30px) rotateX(-200deg) rotateY(-280deg) rotateZ(90deg);opacity:.2}35%{transform:translate(-5px,-16px) rotateX(-355deg) rotateY(-360deg) rotateZ(-20deg);opacity:1}65%{transform:translate(3px,-7px) rotateX(-370deg) rotateY(-360deg) rotateZ(16deg)}100%{transform:rotate(8deg)}}
