/* PUSH P 15: presentation-only layer. Original game rules/API stay untouched. */
/* 12: Four equal HUD cards in the first row, effects alone in a shallow second band. */
/* Home HUD: shrink cards independently (not to tallest Tickets card). */
#home-live-section .home-hud-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;align-items:start!important;grid-auto-rows:max-content!important}
#home-live-section .home-hud-grid>.hud-card{align-self:start!important;justify-self:stretch!important;height:auto!important;min-height:0!important;max-height:110px;padding:6px 8px!important;gap:2px!important;overflow:hidden}
#home-live-section #hud-card-routine{grid-column:4!important;grid-row:1!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:flex-start!important;gap:3px!important;min-width:0!important}
#home-live-section #hud-card-routine>.hud-label,#home-live-section #hud-card-routine>.hud-value,#home-live-section #hud-card-routine>.hud-sub{grid-column:auto!important;grid-row:auto!important;margin:0!important}
#home-live-section .home-hud-auto-controls button{font-size:9px!important;padding:3px 5px!important;min-height:23px!important}
#home-live-section #hud-card-buffs{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:4px 12px!important;min-height:25px!important;max-height:75px;padding:5px 8px!important}
#home-live-section #hud-card-buffs>.hud-sub{margin-left:auto!important}
/* 13: The parent scrolls; the 7-column grid is never allowed to auto-place an eighth row or shrink its children. */
#r2-inventory-orbs{width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:visible!important;box-sizing:border-box;scrollbar-width:thin}
#r2-inventory-orbs #r2-orb-stock{display:grid!important;width:100%!important;min-width:0!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-template-rows:1fr!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;grid-auto-rows:auto!important;overflow:visible!important;align-items:stretch!important;gap:7px!important;box-sizing:border-box}
#r2-inventory-orbs #r2-orb-stock>.r2-orb-tile{display:flex!important;min-width:0!important;width:auto!important;height:auto!important;min-height:52px!important;max-height:76px!important;grid-column:auto!important;grid-row:1!important;padding:7px 8px!important;justify-content:center!important;gap:3px!important;border-radius:9px!important;box-sizing:border-box}
#r2-inventory-orbs #r2-orb-stock .r2-orb-head{display:flex!important;flex-direction:row!important;justify-content:space-between!important;gap:6px!important;align-items:start!important;min-width:0!important;width:100%!important}
#r2-inventory-orbs #r2-orb-stock .r10-orb-name{display:block!important;min-width:0!important;font-size:clamp(11px,1.1vw,14px)!important;line-height:1.24!important;font-weight:850!important;word-break:normal!important;overflow-wrap:normal!important;white-space:normal!important;hyphens:none!important;text-align:left}
#r2-inventory-orbs #r2-orb-stock .r10-orb-count{flex:0 0 auto!important;font-size:12px!important;line-height:1.2!important;white-space:nowrap!important;margin-left:2px!important}
#r2-inventory-orbs #r2-orb-stock>.r10-orb-zero{opacity:.45!important}
#r2-inventory-orbs #r2-orb-stock>.r2-orb-tile>p{display:none!important}
@media(max-width:900px){#r2-inventory-orbs #r2-orb-stock{width:924px!important;min-width:924px!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}#r2-inventory-orbs #r2-orb-stock .r10-orb-name{font-size:12px!important}}
@media(max-width:700px){#home-live-section .home-hud-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#home-live-section #hud-card-routine{grid-column:2!important;grid-row:2!important}#home-live-section #hud-card-buffs{grid-column:1/-1!important;grid-row:3!important}#home-live-section #hud-card-tower{grid-column:1;grid-row:1}#home-live-section #hud-card-friendly{grid-column:2;grid-row:1}#home-live-section #hud-card-tickets{grid-column:1;grid-row:2}}
/* 14: blast exists behind all main stage content and is never a full opaque panel. */
.dt-motion-stage.r14-mega-active{--r15-blast:var(--motion-accent,#d8a5ff)!important;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--r15-blast) 17%,#1a102d),#170e25 68%)!important}
.dt-motion-stage .r14-mega-flash{z-index:0!important;isolation:isolate;mix-blend-mode:screen!important;border-radius:50%!important;inset:3% 9%!important;pointer-events:none!important;box-shadow:none!important;background:radial-gradient(circle at 50% 44%,#ffffffb0 0%,var(--motion-accent) 18%,transparent 65%)!important}
.dt-motion-stage .r14-mega-ring{z-index:0!important;border-color:var(--motion-accent)!important;box-shadow:0 0 20px var(--motion-accent)!important}
.dt-motion-stage .dt-motion-mega-sparks{z-index:0!important;opacity:.9!important;pointer-events:none!important}
.dt-motion-stage .dt-motion-center{position:relative!important;z-index:3!important}
.dt-motion-stage .dt-motion-title,.dt-motion-stage .dt-motion-subtitle,.dt-motion-stage .dt-motion-tier-lock,.dt-motion-stage .dt-motion-pack,.dt-motion-stage .dt-motion-controls,.dt-motion-stage .dt-motion-reveal-stats{z-index:4!important;position:relative!important}
.dt-motion-stage.dt-motion-ready .dt-motion-pack.dt-motion-revealed-card{z-index:9!important;opacity:1!important;filter:none!important}
.dt-motion-stage:not(.r14-mega-active) .r14-mega-ring,.dt-motion-stage:not(.r14-mega-active) .dt-motion-mega-sparks{display:none!important}
.dt-motion-stage[data-tier="GOAT"]{--motion-accent:#ff525f!important}
/* 15: three tactical choices, no generic status bar. */
[data-section="tatico"]>.action-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
[data-section="tatico"]>.action-grid>.panel{min-width:0!important}
[data-section="tatico"]>.tactical-status-panel{display:none!important}
/* 16: accessible focused result modal, image and stat delta. */
.r15-skill-dialog{width:min(650px,94vw);max-height:90dvh;overflow:auto;padding:20px}
.r15-skill-result-layout{display:grid;grid-template-columns:minmax(120px,180px) minmax(0,1fr);gap:14px;align-items:start}
.r15-skill-result-layout .official-card-art{max-width:180px;min-width:0}.r15-skill-result-layout .official-card-art img{max-width:100%;height:auto}
.r15-skill-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
.r15-skill-stats span{background:#172e29;border:1px solid #398e6b;padding:6px;border-radius:7px;font-weight:700;color:#8af3bd}
.r15-skill-stats .r15-no-change{background:#242231;color:#e0dcea;border-color:#605974}
#user-feed-notice{cursor:pointer;border:1px solid #9065cb;border-radius:999px;color:#fff;background:#4a2c68;font:inherit;min-width:24px;min-height:24px}
#user-feed-notice:focus-visible{outline:3px solid #e3adff;outline-offset:3px}
/* 18: searchable guide in Extras / Ferramentas. */
.r15-guide{scroll-margin-top:22px}.r15-guide-search{display:block;max-width:380px;font-size:12px}.r15-guide-search input{width:100%;margin:5px 0 10px}
#r15-guide-topics{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 12px}
#r15-guide-topics a{border:1px solid #7656ae;border-radius:9px;color:#e6d5ff;text-decoration:none;padding:7px 10px;font-weight:700;font-size:12px}
#r15-guide-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#r15-guide-content article{border:1px solid #4a4266;border-radius:9px;padding:10px;scroll-margin-top:20px}
#r15-guide-content article h3{margin:0 0 5px;font-size:14px}
#r15-guide-content article p{margin:3px 0;font-size:12px;line-height:1.5}
#r15-guide-content article a{display:inline-block;color:#e1bdff;margin-top:5px}
/* 19: one vertical scroll, sticky header, 50 rows with all tracks visible. */
#dt15-pass-rewards.r15-pass-scroll{display:block!important;max-height:67dvh!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;min-width:0;border:1px solid #594775;border-radius:10px;padding:0!important;margin:0!important}
.r15-pass-table{width:100%;min-width:610px;border-collapse:separate;border-spacing:0;table-layout:fixed}
.r15-pass-table th{position:sticky;top:0;z-index:4;background:#302044;color:#f4e0ff;text-align:center;font-size:12px;padding:11px 6px;border-bottom:2px solid #8763ad}
.r15-pass-table th:first-child{width:28%}.r15-pass-table td{vertical-align:middle;border-bottom:1px solid #493a5b;padding:7px 5px;text-align:center;font-size:12px}
.r15-pass-table td strong{display:block;font-size:12px;margin-bottom:3px}.r15-pass-table td small{display:block;font-size:11px;color:#beaecb}
.r15-pass-table td button{font-size:11px;min-height:26px;padding:4px 7px;margin-top:4px}
.r15-pass-table tr.r15-milestone{background:#51315b55}.r15-pass-table tr.r15-milestone th[scope=row]{color:#fbd08d}
.r15-pass-table tr.r15-claimed{opacity:.8}
.r15-pass-table td.r15-pass-locked{opacity:.66}.r15-pass-table td.r15-pass-ready{background:#25544842}
@media(max-width:650px){[data-section="tatico"]>.action-grid{grid-template-columns:1fr!important}#r15-guide-content{grid-template-columns:1fr}.r15-skill-result-layout{grid-template-columns:1fr}.r15-pass-table{min-width:570px}}
@media(prefers-reduced-motion:reduce){.dt-motion-stage:not(.dt-motion-allow-motion) .r14-mega-flash,.dt-motion-stage:not(.dt-motion-allow-motion) .r14-mega-ring,.dt-motion-stage:not(.dt-motion-allow-motion) .dt-motion-mega-sparks{animation:none!important;opacity:0!important}}

.dt-motion-stage.dt-motion-burst::before,.dt-motion-stage.dt-motion-burst::after{z-index:0!important}
.dt-motion-stage.dt-motion-burst::after{background:transparent!important;border-color:var(--motion-accent)!important}
.dt-motion-stage.dt-motion-flash::after{z-index:0!important;background:radial-gradient(circle,#ffffffa0,var(--motion-accent) 22%,transparent 66%)!important}
.r15-no-mod #community-profile-ban,.r15-no-mod #chat-moderation{display:none!important}

/* Keep the first column readable and highlight milestones without horizontal clipping. */
.r15-pass-table{min-width:680px!important}
.r15-pass-table tr.r15-milestone td:first-child strong{color:#ffd995}
.r15-pass-table td:first-child small{overflow-wrap:anywhere;line-height:1.3}
.r15-pass-table td.r15-pass-ready button:focus-visible{outline:2px solid #9df4bf;outline-offset:2px}
/* The burst never competes with the controls or the revealed artwork. */
.dt-motion-stage .r14-mega-flash,.dt-motion-stage .r14-mega-ring,.dt-motion-stage .dt-motion-mega-sparks{pointer-events:none!important}
.dt-motion-stage .dt-motion-center{position:relative!important;z-index:3!important}
.dt-motion-stage .dt-motion-center .dt-motion-revealed-card{position:relative!important;z-index:6!important;isolation:isolate!important}
@media(max-width:900px){.r15-pass-table{min-width:680px!important}}
