/* Daily treasure — presentation only; rewards and eligibility are unchanged. */
#daily-reward-modal.v45-daily{position:fixed;inset:0;z-index:24000;padding:20px;display:flex;align-items:center;justify-content:center;background:#030605d9;backdrop-filter:blur(6px);overflow:auto;box-sizing:border-box;font:14px/1.5 Arial,sans-serif}
.v45-daily *{box-sizing:border-box}
.v45-daily-panel{position:relative;width:min(730px,100%);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #ac8a4e;border-radius:10px;background:radial-gradient(ellipse at 15% 30%,#87712c20,transparent 55%),linear-gradient(140deg,#23251e,#11191a 75%);box-shadow:0 20px 90px #000a,inset 0 0 0 5px #101913; padding:30px;color:#e7dcc4}
.v45-daily-panel button{font:13px Arial,sans-serif;cursor:pointer;clip-path:none;transform:none;min-height:44px;border-radius:4px}
.v45-daily-panel button:focus-visible{outline:2px solid #efd193;outline-offset:3px}
.v45-daily-panel header{padding-right:26px}
.v45-daily-panel header>span,.v45-reward-copy>small{font-size:10px;letter-spacing:.17em;color:#bda46b}
.v45-daily-panel header h2{font:34px/1.2 Georgia,serif;color:#efdbad;margin:8px 0}
.v45-daily-panel header p{margin:0;color:#bdb9a8;font-size:13px}
.v45-daily-close{position:absolute;right:14px;top:14px;width:40px;background:transparent;color:#d8bd80;border:0;font-size:25px!important;z-index:2}
.v45-daily-main{display:grid;grid-template-columns:220px 1fr;gap:27px;align-items:center;margin:24px 0;padding:20px 0;border-top:1px solid #9f814633;border-bottom:1px solid #9f814633}
.v45-reward-art{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;min-height:240px;padding-bottom:35px}
.v45-reward-halo{position:absolute;z-index:-1;width:190px;height:190px;border:1px solid #bc965c55;border-radius:50%;background:radial-gradient(#d0a34924,transparent 65%);box-shadow:0 0 0 9px #ac914510,0 0 0 10px #a0854733,0 0 50px #b9983520}
.v45-reward-halo:after{content:'◆';position:absolute;top:-12px;left:calc(50% - 8px);color:#c6a65f;background:#23291e;padding:0 4px;font-size:12px}
.v45-reward-art>svg{width:135px;height:170px;filter:drop-shadow(0 8px 10px #0009)}
.v45-glass{fill:#243b3ded;stroke:#c8b37f;stroke-width:2}
.v45-liquid{fill:#b33b44;stroke:#f08b74;stroke-width:1.2}
.v45-metal{fill:#836a39;stroke:#debf7f;stroke-width:2}
.v45-shine{fill:none;stroke:#eff6da;stroke-width:3;stroke-linecap:round;opacity:.7}
.v45-rune{fill:none;stroke:#e6ca84;stroke-width:2}
.v45-parchment{fill:#504633;stroke:#d4ba81;stroke-width:2}
.v45-reward-art>.royal-card{width:133px!important;height:200px!important;flex:0 0 133px;transform:none!important;margin:0!important}
.v45-reward-art>span{position:absolute;bottom:0;left:50%;transform:translateX(-50%);min-width:108px;text-align:center;background:#171d16;border:1px solid #ab8d4c;border-radius:3px;padding:5px 16px;color:#e0c78e;font:18px Georgia,serif;white-space:nowrap}
.v45-reward-art>span small{display:block;color:#b5a98b;font:8px Arial;letter-spacing:.16em;margin-top:3px}
.v45-reward-copy h3{font:27px/1.22 Georgia,serif;color:#f0d8a2;margin:8px 0 11px}
.v45-reward-copy p{font:13px/1.65 Arial;color:#c1bdab;margin:0 0 12px}
.v45-reward-tag{display:inline-block;color:#d1be83;font:9px Arial;letter-spacing:.09em;border:1px solid #82714377;border-radius:3px;padding:5px 8px}
.v45-daily-panel .v45-daily-claim{display:block;width:100%;margin-top:17px;border:1px solid #dab875;background:linear-gradient(#9c814b,#65502d);box-shadow:inset 0 1px #efdeab66;color:#fff1cc;font-size:14px;min-height:48px}
.v45-daily-claim:disabled{opacity:.6;cursor:wait}
.v45-daily-progress>div:first-child{display:flex;justify-content:space-between;gap:14px;font-size:11px;color:#bdb49f;margin-bottom:10px}
.v45-daily-progress b{font-weight:400;color:#d8c28e}
.v45-days{display:grid;grid-template-columns:repeat(30,minmax(0,1fr));gap:3px}
.v45-days i{height:7px;background:#3f4437;border-radius:1px}
.v45-days i.done{background:#a68e4d}.v45-days i.today{background:#e7c680;box-shadow:0 0 8px #e1bb6955}
.v45-next{margin-top:22px}.v45-next h4{font:11px Arial;color:#c7b386;letter-spacing:.06em;margin:0 0 12px}
.v45-next>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.v45-next article{display:flex;align-items:center;gap:9px;padding:10px 8px;border:1px solid #8d713433;border-radius:4px;background:#0a12134d;min-width:0}
.v45-next-art{flex:0 0 35px;width:35px;height:53px;display:grid;place-items:center}.v45-next-art>svg{width:35px;height:48px}
.v45-next-art>.royal-card{width:35px!important;height:53px!important;min-width:0!important;margin:0!important;transform:none!important}
.v45-next article small{display:block;font-size:8px;color:#b99a5e;letter-spacing:.06em;margin-bottom:4px}.v45-next article b{display:block;font:10px/1.4 Arial;color:#d6ceba;overflow-wrap:anywhere}
.v45-daily-panel footer{display:flex;justify-content:space-between;gap:16px;margin-top:20px;border-top:1px solid #8e773533;padding-top:12px}
.v45-daily-panel footer button{border:0;background:none;color:#cbb888;padding:8px 0;font-size:12px}
.v45-last-day{color:#cfbd94;font-size:12px}
/* Notices belong inside the opponent panel, so the backdrop cannot cover them. */
.v45-rival-notice{position:relative;margin:14px 0;padding:13px 15px;border:1px solid #c16c51;border-left-width:3px;border-radius:5px;background:#3b1c19;color:#ffe0c0;font:14px/1.6 Arial,sans-serif;text-align:left;white-space:normal;overflow-wrap:anywhere}
#pvp-rival-overlay .pvp-rival-modal{max-height:calc(100dvh - 32px);overflow-y:auto}
#toast.show{z-index:25000;white-space:normal;max-width:calc(100vw - 32px);width:max-content;box-sizing:border-box}
/* Effect badges occupy their own grid row beneath HP, never the skill column. */
#combat-screen .zone-card-slot .royal-effects{display:none!important}
#combat-screen .v45-effects{position:relative!important;inset:auto!important;grid-column:1 / -1!important;grid-row:4!important;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;align-self:start;gap:4px;width:100%;min-width:0;max-width:100%;margin:0;padding:3px 0;z-index:2;font:10px/1.35 Arial,sans-serif;box-sizing:border-box}
#combat-screen .v45-effects[hidden]{display:none!important}
.v45-effects>span{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px;min-width:0;max-width:100%;border:1px solid #71845c;border-radius:3px;padding:3px 5px;background:#18271df2;color:#d6e3b3;box-sizing:border-box;overflow-wrap:anywhere}
.v45-effects>span.negative{border-color:#a36052;color:#f4c3a7;background:#341e1aef}
.v45-effects b{font-size:9px;font-weight:400;white-space:nowrap;opacity:.85}
/* Larger touch area without turning the continuous range into an on/off button. */
#audio-hub-popup .ahub-slider{min-width:0;touch-action:pan-y;cursor:ew-resize}
#audio-hub-popup .ahub-slider:focus-visible{outline:2px solid #e6c684;outline-offset:5px}
@media(max-width:700px){#combat-screen.v40-mobile .v45-effects{grid-column:2 / 4!important;grid-row:4!important;gap:3px;font-size:9px;justify-self:center;max-width:calc(var(--v40-card) + 52px)}#combat-screen.v40-mobile .v45-effects>span{padding:2px 4px}#combat-screen.v40-mobile .v45-effects b{font-size:8px}}
@media(max-width:540px){#daily-reward-modal.v45-daily{padding:12px}.v45-daily-panel{padding:23px 19px;max-height:calc(100dvh - 24px)}.v45-daily-panel header h2{font-size:28px}.v45-daily-panel header>span{font-size:8px}.v45-daily-panel header p{font-size:12px}.v45-daily-main{grid-template-columns:100px 1fr;gap:16px;padding:18px 0;margin:20px 0}.v45-reward-art{min-height:175px;padding-bottom:34px}.v45-reward-halo{width:99px;height:99px}.v45-reward-art>svg{width:90px;height:118px}.v45-reward-art>.royal-card{width:86px!important;height:129px!important;flex-basis:86px}.v45-reward-art>span{min-width:88px;font-size:15px;padding:5px 10px}.v45-reward-copy h3{font-size:23px}.v45-reward-copy>small{font-size:8px}.v45-reward-copy p{font-size:11px;line-height:1.6}.v45-reward-tag{font-size:7px;padding:4px}.v45-daily-panel .v45-daily-claim{font-size:12px;padding:8px;margin-top:12px}.v45-next>div{gap:6px}.v45-next article{flex-direction:column;align-items:flex-start;padding:9px;gap:7px}.v45-next article b{font-size:9px}.v45-next article small{font-size:8px}.v45-days{gap:2px}.v45-daily-panel footer{gap:12px}.v45-daily-panel footer button{font-size:11px}.v45-rival-notice{font-size:13px}}
@media(max-width:350px){.v45-daily-main{grid-template-columns:82px 1fr;gap:12px}.v45-reward-copy h3{font-size:20px}.v45-reward-art>.royal-card{width:76px!important;height:114px!important;flex-basis:76px}.v45-reward-halo{width:80px;height:80px}.v45-daily-panel{padding:22px 15px}.v45-daily-panel header h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){#daily-reward-modal.v45-daily{transition:none!important}}

/* Budget for both effect rows and the hand above the mobile action dock. */
@media(max-width:700px){
 #combat-screen.v40-mobile{--v40-card:clamp(70px,calc((100dvh - 590px)/3),104px);--v40-hand:60px;--v40-back:36px}
 #combat-screen.v40-mobile .arena-wrapper{padding-bottom:90px!important}
 #combat-screen.v40-mobile .v45-effects{grid-column:1 / -1!important;max-width:100%;min-height:0}
}
@media(max-width:350px){#combat-screen.v40-mobile{--v40-hand:53px;--v40-back:28px}}
