/* Bounded classic game surface. The whole arena scales as one unit. */
body:has(.arena-stage){background:#09090c}
#app:fullscreen:not(:has(.arena-stage)){background:linear-gradient(#0003,#0002),var(--home-bg) center/cover}
#app:has(.arena-stage){min-height:100dvh;display:grid;place-items:center;overflow:hidden}
.arena-viewport{position:relative;overflow:visible;flex:none}
.arena-stage{width:1500px;height:1050px;position:relative;overflow:hidden;background:#111}
.arena-stage .notice{position:absolute;top:10px;z-index:50}
.arena-stage .overlay{position:absolute;inset:0}
.arena-stage .papyrus{background:#241522;border:5px double #bd8e4d;box-shadow:inset 0 0 0 2px #533a2b,0 5px 12px #000a;color:#f8e8c5}

/* R239 selection panel, sidebar and controls on JoJo's background. */
.arena-stage .selection-screen{width:1500px;height:1050px;min-height:0;display:block;padding:0;background:linear-gradient(#0001,#0001),var(--home-bg) center/cover}
.selection-sidebar{position:absolute;left:28px;top:653px;width:194px;height:355px;padding:8px;background:linear-gradient(#351d29,#17111b);border:5px double #ba8b4b;box-shadow:0 5px 12px #0009;display:flex;flex-direction:column;gap:9px;z-index:2}
.selection-sidebar button{height:48px;background:#39212d;border:1px solid #ad8047;color:#f9e8be;font:700 15px Georgia,serif}
.arena-stage .mode-buttons{position:absolute;left:250px;top:546px;width:1210px;height:66px;display:flex;gap:14px}
.arena-stage .mode-buttons button{width:33.33%;height:58px;min-height:0;padding:0 12px;border:3px double #c59245;border-radius:4px;background:linear-gradient(#432028,#200e17);box-shadow:0 3px 5px #000a;color:#ffe8ba;font:700 17px Georgia,serif;white-space:normal}
.arena-stage .mode-buttons button::after{display:none}
.arena-stage .selection-scroll{position:absolute;left:250px;top:630px;width:1210px;height:380px;min-height:0;display:grid;grid-template-columns:760px 420px;gap:16px;padding:20px 16px 16px 25px;background:linear-gradient(150deg,#3c2130,#160f1d 65%);border:5px double #c79b5b;box-shadow:inset 0 0 0 3px #402330,0 5px 15px #000c}
.selection-scroll::before,.selection-scroll::after{display:none}
.arena-stage .character-side{width:760px;position:relative}
.arena-stage .selection-title{font:700 24px Georgia,serif;color:#f5d58b;text-align:center;letter-spacing:.08em}
.arena-stage .character-grid{display:grid;grid-template-columns:repeat(5,105px);grid-auto-rows:105px;gap:12px 15px;padding:14px 12px;min-height:0;max-height:260px;overflow:auto}
.arena-stage .portrait-button{width:105px;height:105px;max-width:none;border:2px solid #ba924c;background:#120e15}
.arena-stage .portrait-button.picked{border-color:#f7d67c;box-shadow:0 0 0 3px #a92024}
.arena-stage .roster-placeholder{display:none}
.arena-stage .selection-tools{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:8px;margin:0}
.arena-stage .selection-tools button,.arena-stage .selection-tools span{min-width:0;border:1px solid #a97743;border-radius:2px;background:#39212c;color:#f8e8c5;padding:6px 13px;font:700 14px Georgia,serif}
.arena-stage .selection-tools span{min-width:125px;text-align:center}
.arena-stage .selection-tools .missions-control{margin-left:auto;background:url('/assets/jojo/r239-ui/r220-missions-transparent.png') center/100% 100% no-repeat;color:#fce2aa;border:0;min-width:162px;height:40px;text-shadow:1px 2px #000}
.arena-stage .filter-input{position:absolute;left:12px;bottom:42px;width:260px;background:#fbefd3;color:#1b1414}
.arena-stage .selected-side{width:420px;height:100%;padding:0 5px;border:0;display:flex;flex-direction:column;justify-content:space-around}
.arena-stage .player-card{display:flex;align-items:center;gap:12px}
.arena-stage .player-card>img{width:122px;height:122px;max-width:none;max-height:none;border:3px solid #ad8147;box-shadow:0 0 0 3px #301e2b}
.arena-stage .player-card h2{font:700 22px Georgia,serif;color:#ffe2a0}
.arena-stage .player-card p{font:700 16px Georgia,serif;color:#f6e3be;margin:5px 0}
.arena-stage .selected-team{display:flex;justify-content:center;gap:10px}
.arena-stage .selected-team>*{width:98px;height:98px;max-width:none}
.arena-stage .ready-label{font:700 16px Georgia,serif;color:#f7dfad;text-align:center;margin:0}
.arena-stage .preview-scroll{position:absolute;z-index:5;top:110px;left:250px;transform:none;width:1210px;height:420px;min-height:0;margin:0;padding:18px 26px;background:#271825;border:5px double #be8f50;overflow:hidden}
.arena-stage .preview-scroll::after{display:none}
.arena-stage .preview-scroll h2{font:700 23px Georgia,serif;color:#f4d38d}
.arena-stage .preview-top{gap:25px;justify-content:start}
.arena-stage .preview-top>img,.arena-stage .preview-skill-icons img{width:100px;height:100px;max-width:none;max-height:none}
.arena-stage .preview-skill-icons{gap:18px}
.arena-stage .preview-description{max-height:185px;overflow:auto;margin:15px 0;color:#f8e9cb}
.arena-stage .preview-description h3{color:#f2d287}
.arena-stage .preview-description p{font-size:16px;color:#f8e9cb}
.arena-stage .preview-description>img{width:105px;height:105px}
.arena-stage .preview-scroll>.small-button{position:absolute;top:auto;bottom:14px;left:25px;right:auto}

/* Three compact battle rows with four skills per fighter. */
.arena-stage .battle-screen{width:1500px;height:1050px;min-height:0;position:relative;display:flex;flex-direction:column;overflow:hidden;background:var(--battle-bg) center/cover}
.arena-stage .battle-top{height:150px;flex:none;display:grid;grid-template-columns:400px 700px 400px;gap:0;padding:15px 26px;background:#8bdfe6;border:0}
.arena-stage .battle-player{display:flex;align-items:center;gap:12px;border:0;background:transparent;text-align:left;padding:0;color:#111}
.arena-stage .battle-player img{width:86px;height:86px;border:3px solid #30242d;object-fit:cover}
.arena-stage .battle-player b{display:block;color:#ae161d;font:700 26px Georgia,serif}
.arena-stage .battle-player small{font:700 17px Georgia,serif}
.arena-stage .enemy-name{justify-content:flex-end;flex-direction:row-reverse;text-align:right}
.arena-stage .battle-center{align-self:center;text-align:center;padding:0}
.arena-stage .ready-button{width:370px;min-width:0;margin:auto;border:0;background:transparent;color:#111;font:700 24px Georgia,serif}
.arena-stage .ready-button::after{display:none}
.turn-timer-bar{width:370px;height:23px;margin:4px auto 9px;border:3px solid #101010;background:#fff;overflow:hidden}
.turn-timer-bar span{display:block;height:100%;width:0;background:#c52028}
.arena-stage .energy-bar{gap:10px;margin:0;flex-wrap:wrap}
.arena-stage .energy-bar>span{font-size:17px;color:#111}
.arena-stage .energy-bar button{flex-basis:100%;font-size:16px;color:#111}
.arena-stage .energy-symbol{width:17px;height:17px}
.arena-stage .battle-field{height:700px;flex:none;display:flex;justify-content:space-between;padding:20px 35px 12px;gap:0}
.arena-stage .my-fighters{width:820px;max-width:none;height:100%;display:flex;flex-direction:column;justify-content:space-around}
.arena-stage .fighter-row{height:175px;display:flex;align-items:center}
.arena-stage .battle-portrait{width:145px;height:145px;min-width:0;max-width:none;aspect-ratio:1;flex:none;padding:0;border:3px solid #111}
.arena-stage .hp{font-size:17px}
.arena-stage .skill-strip{width:665px;height:135px;flex:none;margin-left:-2px;padding:12px 20px;display:flex;justify-content:space-evenly;gap:14px;border:3px double #bd8e4d;background:linear-gradient(145deg,#34202d,#1c1421);box-shadow:inset 0 0 0 2px #533a2b}
.arena-stage .battle-skill{width:105px;height:105px;min-width:0;max-width:none;flex:none;aspect-ratio:1;border:2px solid #e2bd6b}
.arena-stage .battle-skill.queued{border-color:#f1d56d;box-shadow:0 0 0 3px #a72023,inset 0 0 15px #0009}
.arena-stage .enemy-fighters{width:160px;height:100%;padding:0;display:flex;flex-direction:column;justify-content:space-around;align-items:end}
.arena-stage .enemy-fighters .battle-portrait{width:145px;height:145px;min-width:0}
.arena-stage .battle-footer{height:200px;flex:none;display:grid;grid-template-columns:220px 1fr;gap:12px;padding:0 28px 16px}
.arena-stage .battle-tools{display:flex;flex-direction:column;justify-content:end;gap:0}
.arena-stage .battle-tools button{width:100%;height:48px;border:3px double #b68a4d;background:#36202b;color:#f9e8bf;padding:5px 15px;font:700 17px Georgia,serif;text-align:left}
.arena-stage .details-scroll{width:100%;height:180px;min-width:0;padding:14px 30px;display:flex;align-items:center;gap:16px;background:linear-gradient(145deg,#34202d,#1c1421);border:3px double #bd8e4d;box-shadow:inset 0 0 0 2px #533a2b;overflow:hidden}
.arena-stage .details-art{width:126px;height:126px;flex:none;border:2px solid #c59955;object-fit:cover}
.arena-stage .details-copy{min-width:0;max-height:145px;overflow:auto;flex:1}
.arena-stage .details-copy h2{font:700 22px Georgia,serif;color:#f2d287}
.arena-stage .details-copy p{font:600 16px/1.25 Arial,sans-serif;color:#f8e9cb;white-space:pre-line;text-transform:none}
.arena-stage .details-meta{font:600 13px Arial,sans-serif;color:#d7ba8e}
.arena-stage .footer-team{display:flex;gap:9px;margin-left:auto}
.arena-stage .footer-team img{width:88px;height:88px;object-fit:cover;border:2px solid #bc8c4b}
.arena-stage .inspect-skills{display:flex;gap:8px;margin:7px 0}
.arena-stage .inspect-skills button{padding:0;border:1px solid #b88b4c;background:#111}
.arena-stage .inspect-skills img{display:block;width:45px;height:45px;object-fit:cover}
.arena-stage .turn-review,.arena-stage .dialog{background:#261822;color:#f7e5bc}
.arena-stage .turn-review{width:800px;max-height:900px}
.arena-stage .turn-review h2,.arena-stage .review-info>b,.arena-stage .dialog h2{color:#f4d38d}
.arena-stage .review-pool,.arena-stage .review-info{color:#f7e5bc}
.arena-stage .turn-review{width:1080px;max-width:calc(100% - 80px)}
.arena-stage .review-list{display:flex;align-items:stretch;gap:12px;overflow-x:auto;overflow-y:hidden;padding:14px 4px;flex:1}
.arena-stage .review-row{position:relative;flex:0 0 235px;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px;border:2px solid #a77d42;background:#38252a;box-shadow:0 5px 12px #0006}
.arena-stage .review-row.review-drop-target{border-color:#ffe196;box-shadow:0 0 0 3px #bd392e}
.arena-stage .review-drag-handle{display:flex;align-items:center;gap:10px;cursor:grab;touch-action:none;user-select:none}
.arena-stage .review-drag-handle:active{cursor:grabbing}
.arena-stage .review-drag-handle img{width:65px;height:65px;object-fit:cover;border:2px solid #d1a45a;pointer-events:none}
.arena-stage .review-drag-handle span{font-size:11px;letter-spacing:.04em;font-weight:900;color:#f0d29c}
.arena-stage .review-info{flex:1}
.arena-stage .review-info>b{font-size:15px;line-height:1.2}
.arena-stage .review-order{flex-direction:row;margin-top:auto}
.arena-stage .review-energy{gap:4px}
.arena-stage .review-energy>span{display:inline-flex;align-items:center;gap:3px}
.arena-stage [data-roster-character],.arena-stage [data-remove-team]{touch-action:none}
.pointer-drag-ghost{position:fixed;z-index:9999;width:90px;height:90px;object-fit:cover;pointer-events:none;opacity:1;border:3px solid #f3d597;box-shadow:0 8px 24px #000b;transform:translate(-50%,-50%)}
.arena-stage .review-overlay{display:flex;align-items:center;justify-content:center;background:#0009}
.arena-stage .review-list{display:flex;align-items:center;gap:10px;overflow-x:auto;overflow-y:hidden;min-height:66px;height:66px;padding:3px 2px;flex:none;border:0}
.arena-stage .review-row{flex:0 0 60px;width:60px;height:60px;display:block;padding:0;background:none;border:0;box-shadow:none}
.arena-stage .review-row.review-drop-target{border:0;box-shadow:0 0 0 3px #bd392e}
.arena-stage .review-drag-handle{display:block;width:60px;height:60px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.arena-stage .review-drag-handle img{display:block;width:60px;height:60px;object-fit:cover;border:2px solid #17110f;pointer-events:none}
.arena-stage .turn-review{position:relative;width:690px;min-height:440px;max-width:none;max-height:none;flex:none;display:flex;flex-direction:column;gap:8px;padding:23px 28px;overflow:visible;background:#f7e9c5 url('/assets/jojo/arena-paper.svg') repeat;color:#1c1512;border:11px solid #a7281d;box-shadow:0 0 0 3px #29110e,0 12px 30px #000a,inset 0 0 0 3px #d6b375}
.arena-stage .turn-review h2{margin:0;text-align:center;color:#21120e;font:900 26px Arial,sans-serif}
.arena-stage .turn-review h2 .review-required{color:#b9201d}
.arena-stage .review-energy-grid{display:block;width:calc(100% - 20px);margin:16px 10px 0;flex:1}
.arena-stage .review-energy-head{display:grid;grid-template-columns:1fr 1fr;gap:50px;width:100%;margin-bottom:12px}
.arena-stage .review-energy-head h3{margin:0;font:900 19px Arial,sans-serif}
.arena-stage .review-energy-row{height:37px;display:grid;grid-template-columns:minmax(0,1fr) 28px 32px 32px minmax(0,1fr) 28px;align-items:center;column-gap:5px;font:800 17px Arial,sans-serif}
.arena-stage .review-energy-row .review-energy-name{display:flex;align-items:center;gap:8px;white-space:nowrap}
.arena-stage .review-energy-row .energy-symbol{width:20px;height:20px;border:2px solid #111}
.arena-stage .review-energy-row button{width:27px;height:26px;padding:0;border:0;background:none;color:#15100d;font:900 25px Arial,sans-serif;line-height:1}
.arena-stage .review-energy-row button:disabled{opacity:.35}
.arena-stage .review-energy-row b{text-align:center}
.arena-stage .review-actions{justify-content:center;gap:55px;margin-top:4px}
.arena-stage .review-actions button{min-width:145px;border:2px solid #351710;background:#f9e6b5;color:#16100e;font:900 18px Arial,sans-serif;padding:8px 14px}
.arena-stage .review-actions button:last-child{background:#f9e6b5;color:#16100e}

/* Keep the classic fixed-size play surface while letting artwork fill the browser. */
body:has(.arena-stage){background:var(--home-bg) center/cover fixed}
body:has(.battle-screen){background:var(--battle-bg) center/cover fixed}
.arena-stage .mode-buttons button{
  border:0;
  border-radius:0;
  background:url('/assets/reskin/button-frame.webp') center/100% 100% no-repeat;
  box-shadow:none;
  text-shadow:none;
  font:700 16px Georgia,serif;
}
.arena-stage .selection-sidebar,.arena-stage .selection-scroll{
  background:#221626 url('/assets/reskin/panel-wide.webp') center/100% 100% no-repeat;
  border:0;
  box-shadow:none;
}
.arena-stage .selection-sidebar{
  background-image:url('/assets/reskin/panel-tall.webp');
  padding:18px 13px;
}
.arena-stage .selection-sidebar button,.arena-stage .selection-tools button,.arena-stage .selection-tools span{
  border:0;
  border-radius:0;
  background:#321b29 url('/assets/reskin/button-center.webp') center/100% 100% no-repeat;
  box-shadow:none;
  color:#fbeac0;
}
.arena-stage .character-grid{padding-top:28px;max-height:285px;grid-template-columns:repeat(6,105px);gap:10px 15px}
.arena-stage .portrait-button,.arena-stage .roster-empty{width:105px;height:105px}
.arena-stage .roster-empty,.arena-stage .empty-slot{display:block;border:2px solid #8d6c4a;background:#100d17;box-shadow:inset 0 0 8px #000a}
.arena-stage .selected-side{justify-content:flex-start;padding:28px 10px;gap:18px}
.arena-stage .player-card{align-items:start}
.arena-stage .player-card>img{width:145px;height:145px}
.arena-stage .player-card h2{margin:0 0 8px}
.arena-stage .player-card p{margin:4px 0}
.arena-stage .your-team-title{text-align:center;color:#f5d58b;font:700 23px Georgia,serif;border-bottom:1px solid #a78455;margin:0}
.arena-stage .selected-team>*{width:105px;height:105px}
.arena-stage .selected-team button{padding:0;border:2px solid #a98146;background:#130e17}
.arena-stage .selected-team button img{width:100%;height:100%;object-fit:cover}
.arena-stage .preview-scroll{top:125px;height:355px;background:#221626 url('/assets/reskin/panel-wide.webp') center/100% 100% no-repeat;border:0;padding:25px 35px}
.arena-stage .preview-description{max-height:130px}
.arena-stage .preview-top>img,.arena-stage .preview-skill-icons img{width:85px;height:85px}
.arena-stage .preview-scroll>.small-button{bottom:18px}
.arena-stage .battle-top{background:transparent}
.arena-stage .battle-player b{text-transform:none}
.arena-stage .enemy-name{justify-self:end}
.arena-stage .battle-footer .details-scroll{align-items:center}
.arena-stage .details-copy p{white-space:normal;line-height:1.12;margin:3px 0}
.arena-stage .details-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:4px}
.arena-stage .battle-tools button[disabled]{opacity:.5}
.arena-stage .portrait-wrap{position:relative;width:145px;height:145px;flex:none}
.arena-stage .portrait-wrap .battle-portrait{width:145px;height:145px}
.arena-stage .effect-icons{position:absolute;left:100%;top:0;display:flex;gap:3px;z-index:3}
.arena-stage .effect-icon{width:30px;height:30px;padding:0;border:2px solid #fff0ad;background:#1b1118;box-shadow:0 2px 5px #0009}
.arena-stage .effect-icon img{width:100%;height:100%;object-fit:cover}
.arena-stage .enemy-fighters .effect-icons{left:auto;right:100%}
.arena-stage .battle-portrait{transition:filter .32s ease,transform .32s ease}
.arena-stage .portrait-wrap{transition:transform .32s ease}
.arena-stage .portrait-wrap:has(>.battle-portrait:is(:hover,:focus-visible,:active)),.arena-stage .portrait-wrap.inspected{transform:scale(1.04);z-index:4}

/* Keep the artwork continuous outside the fixed game canvas. */
#app:has(.selection-screen){background:var(--home-bg) center/cover fixed}
#app:has(.battle-screen){background:var(--battle-bg) center/cover fixed}
.arena-stage .roster-placeholder{display:block;width:105px;height:105px;border:2px solid #806b52;background:#140f19;box-shadow:inset 0 0 10px #000b}
.arena-stage .mode-buttons button{line-height:1;text-shadow:none;letter-spacing:0}
.arena-stage .selection-sidebar button{font-size:14px;text-shadow:none}
.arena-stage .selection-sidebar button[data-missions]{background:transparent url('/assets/jojo/r239-ui/r220-missions-transparent.png') center/contain no-repeat;color:transparent;font-size:0;min-height:48px}
.arena-stage .details-copy{overflow:hidden}
.arena-stage .details-copy p{white-space:pre-line;line-height:1.12;margin:3px 0}
.arena-stage .details-meta{margin-top:3px}
.arena-stage .battle-profile-card{display:grid;grid-template-columns:126px 250px 1fr;align-items:center;gap:16px;width:100%;height:100%}
.arena-stage .battle-profile-stats h2{font:700 20px Georgia,serif;color:#f2d287;margin:0 0 5px}
.arena-stage .battle-profile-stats p{font:700 14px/1.16 Georgia,serif;color:#f5e1b4;margin:2px 0}
.arena-stage .battle-profile-team{justify-self:end;text-align:center}
.arena-stage .battle-profile-team h3{font:700 17px Georgia,serif;color:#f2d287;margin:0 0 8px}
.arena-stage .battle-profile-team>div{display:flex;gap:8px}
.arena-stage .battle-profile-team img{width:80px;height:80px;object-fit:cover;border:2px solid #b98c54}
.arena-stage .portrait-wrap.attack-flash{z-index:4;animation:attack-flash 1.1s ease-in-out}
.arena-stage .battle-portrait.hit-flash{animation:hit-flash .55s ease}
@keyframes attack-flash{30%{transform:scale(1.08);filter:brightness(1.75)}100%{transform:scale(1);filter:brightness(1)}}
@keyframes hit-flash{30%{filter:brightness(2) sepia(1) saturate(4);transform:translateX(5px)}60%{transform:translateX(-5px)}100%{filter:brightness(1);transform:translateX(0)}}

/* The game keeps its fixed proportions; unused browser space belongs to the window. */
body:has(.arena-stage),body:has(.battle-screen),#app:has(.selection-screen),#app:has(.battle-screen){background:#fff}
#app:has(.arena-stage){background:#fff}
#app:fullscreen{background:#111;border:0;outline:none;box-shadow:none}
#app:fullscreen:focus,#app:fullscreen:focus-visible{outline:none}
.arena-stage .fullscreen-control{position:absolute;top:18px;right:22px;z-index:8;padding:6px 12px;border:1px solid #aa7d39;background:url('/assets/reskin/button-center-small.webp') center/100% 100%;color:#f6deaa;font:700 13px Georgia,serif}

/* Use the panel and button artwork copied directly from Yu-Gi-Oh Arena. */
.arena-stage .selection-sidebar,.arena-stage .selection-scroll{background:linear-gradient(#261223da,#160d1eeb),url('/assets/reskin/stone-tall-small.webp') center/cover;border:3px solid #8b632d;outline:1px solid #e9c785;box-shadow:inset 0 0 0 1px #f4d58944,0 7px 18px #0008}
.arena-stage .selection-scroll{background-image:linear-gradient(#261223da,#160d1eeb),url('/assets/reskin/stone-wide-small.webp')}
.arena-stage .selection-sidebar,.arena-stage .selection-scroll{background-color:#21121c}
.arena-stage .selection-scroll{grid-template-columns:760px minmax(0,1fr)}
.arena-stage .selected-side{width:auto}
.arena-stage .selection-sidebar button,.arena-stage .selection-tools button,.arena-stage .selection-tools span,.arena-stage .mode-buttons button,.arena-stage .small-button{border:1px solid #aa7d39;border-radius:4px;background:linear-gradient(#54302044,#140b0b30),url('/assets/reskin/button-center-small.webp') center/100% 100%;box-shadow:inset 0 0 0 1px #ffdb8540,0 2px 5px #0008;color:#f7e6ba;font:700 14px Georgia,serif;text-shadow:none}
.arena-stage .selection-sidebar button,.arena-stage .selection-tools button,.arena-stage .selection-tools span,.arena-stage .mode-buttons button,.arena-stage .small-button{background-color:#3a202b}
.arena-stage .mode-buttons{height:56px;top:560px}
.arena-stage .mode-buttons button{height:48px;font-size:15px;line-height:1.15;padding:0 8px}
.arena-stage .selection-sidebar button[data-missions]{background:linear-gradient(#54302044,#140b0b30),url('/assets/reskin/button-center-small.webp') center/100% 100%;color:#f7e6ba;font-size:14px;min-height:48px}
.arena-stage .selection-sidebar button[data-missions]{background-color:#3a202b}
.arena-stage .selection-tools{justify-content:flex-start;gap:7px}
.arena-stage .selection-tools button{min-width:52px;padding:5px 11px}
.arena-stage .selection-tools span{min-width:116px;padding:5px 8px}
.arena-stage .character-grid{grid-template-columns:repeat(7,89px);grid-auto-rows:89px;gap:10px 13px;max-height:315px;padding:10px 0;overflow:hidden}
.arena-stage .portrait-button,.arena-stage .roster-empty,.arena-stage .roster-placeholder{width:89px;height:89px}
.arena-stage .roster-empty,.arena-stage .roster-placeholder{border:2px solid #9c7436;background:#130c12;box-shadow:inset 0 0 0 1px #493225}
.arena-stage .roster-placeholder{opacity:1}
.arena-stage .selected-side{padding:18px 12px;gap:10px;justify-content:flex-start}
.arena-stage .player-card{gap:14px;align-items:center}
.arena-stage .player-card>img{width:134px;height:134px;border:2px solid #b18a4f;box-shadow:0 0 0 3px #28162a}
.arena-stage .player-card h2{font:700 21px Georgia,serif;color:#f6df9e;text-transform:none}
.arena-stage .player-card p{font:700 15px/1.18 Georgia,serif;color:#f4e0ae;margin:4px 0}
.arena-stage .your-team-title{margin:18px 0 0;text-align:center;font:700 23px Georgia,serif;color:#f6dc9a;border-bottom:1px solid #af884e}
.arena-stage .selected-team{justify-content:center;gap:10px;margin-top:0}
.arena-stage .selected-team>*{width:106px;height:106px;border:2px solid #aa8549}
.arena-stage .empty-slot{background:#130c12;border:2px solid #98713d}
.arena-stage .preview-scroll{top:170px;left:250px;width:1120px;height:286px;padding:17px 28px;background:linear-gradient(#0000,#0001),url('/assets/reskin/stone-wide-small.webp') center/cover;border:3px solid #9e743b;box-shadow:0 6px 16px #0009}
.arena-stage .preview-top>img,.arena-stage .preview-skill-icons img{width:85px;height:85px}
.arena-stage .preview-description{max-height:90px;margin:9px 0;gap:12px}
.arena-stage .preview-description p{margin:2px 0;line-height:1.15}
.arena-stage .preview-description>img{width:85px;height:85px}
.arena-stage .preview-scroll>.small-button{bottom:8px;left:28px}

/* Battle information stays inside each character's area. */
.arena-stage .battle-top{background:transparent;grid-template-columns:360px 728px 360px;padding:12px 26px}
.arena-stage .battle-player{min-width:0}
.arena-stage .enemy-name{justify-self:end;justify-content:flex-start;flex-direction:row-reverse;text-align:right}
.arena-stage .battle-player b{font-size:23px;text-transform:none}
.arena-stage .battle-player small{display:block}
.arena-stage .effect-icons{position:absolute;left:0;top:-36px;width:665px;display:flex;flex-wrap:nowrap;gap:4px;z-index:5;overflow:visible}
.arena-stage .enemy-fighters .effect-icons{left:auto;right:0;width:350px;justify-content:flex-end}
.arena-stage .effect-icon{width:31px;height:31px;flex:none}
.arena-stage .fighter-row{overflow:visible}
.arena-stage .hp{background:linear-gradient(90deg,var(--hp) var(--hp-pct),#373232 var(--hp-pct));transition:background .3s}
.arena-stage .details-scroll{padding:10px 17px;gap:12px}
.arena-stage .details-art{width:112px;height:112px}
.arena-stage .details-copy{max-height:148px;overflow:auto}
.arena-stage .details-copy h2{font-size:20px;margin:0 0 3px}
.arena-stage .details-copy p{font:600 15px/1.15 Arial,sans-serif;white-space:normal;margin:1px 0}
.arena-stage .details-meta{display:flex;justify-content:flex-start;gap:7px 18px;font:600 12px/1.2 Arial,sans-serif;margin:5px 0 0}
.arena-stage .details-meta>span{white-space:nowrap}
.arena-stage .energy-symbol[title="Random"]{color:#fff}
.arena-stage .battle-profile-card{grid-template-columns:112px minmax(220px,1fr) auto;gap:15px;overflow:hidden}
.arena-stage .battle-profile-stats h2{font-size:21px}
.arena-stage .battle-profile-stats p{font-size:13px;line-height:1.15;margin:2px 0}
.arena-stage .battle-profile-team{align-self:center}
.arena-stage .battle-profile-team img{width:75px;height:75px}
.arena-stage .match-result{position:absolute;z-index:12;inset:0;background:#08070acc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:25px}
.arena-stage .match-result h2{font:700 70px Georgia,serif;color:#f7dfaa;text-shadow:0 5px 8px #000}
.arena-stage .match-result button{padding:15px 45px;border:2px solid #c89b51;background:url('/assets/reskin/button-center.webp') center/100% 100%;color:#ffeab6;font:700 23px Georgia,serif}

/* Compact parchment previews matching the reference layout. */
.arena-stage .preview-scroll.papyrus{top:158px;left:250px;width:1120px;height:325px;padding:15px 27px 12px;background:#f7eccb url('/assets/jojo/arena-paper.svg') center/cover;border:8px ridge #a7261c;box-shadow:0 5px 0 #4d140f,0 8px 20px #000a;color:#211512}
.arena-stage .preview-scroll h2,.arena-stage .preview-scroll h3{color:#ac211d;font:700 21px Georgia,serif;margin:0 0 6px}
.arena-stage .preview-top{display:flex;align-items:center;gap:45px;height:108px}
.arena-stage .preview-top>img{width:100px;height:100px;border:2px solid #221712;object-fit:cover}
.arena-stage .preview-skill-icons{display:flex;gap:20px}
.arena-stage .preview-skill-icons button{padding:0;border:2px solid #221712;background:#171016}
.arena-stage .preview-skill-icons img{width:92px;height:92px;object-fit:cover}
.arena-stage .preview-description{display:flex;gap:18px;align-items:start;max-height:none;height:142px;overflow:hidden;margin:9px 0 0;color:#211512}
.arena-stage .preview-description>div{display:flex;flex-direction:column;min-width:0;flex:1;height:100%}
.arena-stage .preview-description h3{font-size:19px;margin:0 0 3px}
.arena-stage .preview-description p{color:#241712;font:600 15px/1.17 Arial,sans-serif;margin:0;max-height:87px;overflow:auto;white-space:normal}
.arena-stage .preview-description>img{width:105px;height:105px;border:2px solid #241712;object-fit:cover}
.arena-stage .preview-meta{display:flex;align-items:center;gap:18px;margin-top:auto;padding-top:4px;color:#6b4c27;font:700 13px Arial,sans-serif}
.arena-stage .preview-meta>span{white-space:nowrap}
.arena-stage .preview-meta .energy-symbol{width:13px;height:13px}
.arena-stage .preview-close{z-index:2}

/* Player cards, skills, and inspection parchment. */
.arena-stage .battle-top{display:flex;justify-content:center;align-items:flex-start;gap:24px;padding:12px 20px;background:transparent}
.arena-stage .battle-player{width:260px;flex:none;justify-content:flex-end;text-align:right}
.arena-stage .battle-player.enemy-name{width:260px;justify-content:flex-end;flex-direction:row-reverse;text-align:left}
.arena-stage .battle-center{width:370px;flex:none;align-self:flex-start}
.arena-stage .ready-button{height:30px;white-space:nowrap;font-size:23px}
.arena-stage .skill-strip{margin-left:3px;transform:translateY(9px);padding:10px 12px;justify-content:space-between;gap:10px}
.arena-stage .battle-skill,.arena-stage .queue-slot{width:97px;height:97px;flex:none}
.arena-stage .queue-slot.empty-queue{display:grid;place-items:center;border:2px solid #655858;background:#252128;color:#777;font:700 54px Georgia,serif}
.arena-stage .battle-skill.moved{opacity:.18}
.arena-stage .battle-skill.unavailable:not(.moved){filter:grayscale(.8) brightness(.55);opacity:.75}
.arena-stage .battle-skill[data-skill-id="vampiric-drain"] img,.arena-stage .battle-skill[data-skill-id="ogre-street-ambush"] img,.arena-stage .battle-skill[data-skill-id="ripple-cutter"] img{object-fit:cover;transform:none}
.arena-stage .energy-symbol[title="Random"]{background:#000;color:#000}
.arena-stage .battle-details-wrap{position:relative;width:100%;height:180px}
.arena-stage .battle-details-wrap .details-scroll{height:180px}
.arena-stage .battle-inspect-skills{position:absolute;right:20px;bottom:100%;z-index:6;display:flex;flex-direction:column;align-items:center;color:#111;font:700 15px Arial,sans-serif;text-shadow:0 1px 2px #fff}
.arena-stage .battle-inspect-skills>div{display:flex;gap:4px;background:#f3e7c4;border:2px solid #5b261f;padding:4px}
.arena-stage .battle-inspect-skills button{width:45px;height:45px;padding:0;border:2px solid #1d1717;background:#111}
.arena-stage .battle-inspect-skills img{display:block;width:100%;height:100%;object-fit:cover}

/* Reworked fixed-canvas placement. White areas in the supplied mockups are edit marks. */
.arena-stage .preview-scroll.papyrus{border:6px solid #b72a20;box-shadow:0 8px 20px #0009}
.arena-stage .preview-scroll{transform-origin:center top}
.arena-stage .preview-scroll.opening{animation:preview-appear .28s ease-out both}
.arena-stage .preview-scroll.closing{animation:preview-disappear .24s ease-in both;pointer-events:none}
@keyframes preview-appear{from{opacity:0;transform:translateY(-12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes preview-disappear{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-10px) scale(.985)}}
.arena-stage .roster-empty,.arena-stage .roster-placeholder,.arena-stage .empty-slot{background:linear-gradient(#100c17bf,#100c17bf),url('/assets/jojo/empty-boxes-filler.jpg') center/cover}
.arena-stage .selected-team .empty-slot{background:linear-gradient(#100c17bf,#100c17bf),url('/assets/jojo/empty-boxes-filler.jpg') center/cover}
.arena-stage .mode-buttons button{text-transform:none;font-size:18px}

.arena-stage .battle-top{height:130px}
.arena-stage .battle-field{height:670px;padding:10px 35px 12px}
.arena-stage .my-fighters,.arena-stage .enemy-fighters{height:100%;display:grid;grid-template-rows:repeat(3,170px);row-gap:60px;align-content:start;justify-content:initial}
.arena-stage .enemy-fighters{justify-items:end}
.arena-stage .fighter-row{height:170px}
.arena-stage .battle-footer{height:250px;grid-template-columns:520px minmax(0,1fr)}
.arena-stage .battle-tools{width:220px;justify-content:end}
.arena-stage .battle-details-wrap,.arena-stage .battle-details-wrap .details-scroll{height:220px}
.arena-stage .battle-inspect-skills{left:50%;right:auto;transform:translateX(-50%)}
.arena-stage .skill-strip{justify-content:space-between;gap:10px}
.arena-stage .battle-skill,.arena-stage .queue-slot{width:97px;height:97px}
.arena-stage .battle-portrait.face-flipped>img{transform:scaleX(-1)}
.arena-stage .hp{font:600 17px Arial,sans-serif}
.arena-stage .battle-portrait.hit-flash{animation:hit-flash 1.1s ease-in-out}
.arena-stage .battle-screen.turn-changed .battle-center{animation:turn-change 1.1s ease-out}
@keyframes turn-change{0%{opacity:.5;transform:translateY(-7px)}45%{opacity:1;transform:translateY(0)}100%{opacity:1}}

/* Only these landscape skill images need cropping to fill their square slots. */
.arena-stage img[src$="/vampiric-drain.webp"],.arena-stage img[src$="/ogre-street-ambush.webp"],.arena-stage img[src$="/ripple-cutter.webp"]{object-fit:cover!important;background:transparent!important;padding:0!important;transform:none!important}

.arena-stage .exchange-dialog{max-width:610px}
.arena-stage .exchange-pool{display:grid;gap:6px;margin:14px 0}
.arena-stage .exchange-row{display:grid;grid-template-columns:1fr 35px 28px 35px;gap:7px;align-items:center;background:#f4e4bc;border:1px solid #b97a5c;padding:7px 10px;font-weight:700}
.arena-stage .exchange-row small{font-size:12px;color:#6c4a37;margin-left:8px}
.arena-stage .exchange-row button{height:31px;padding:0;border:1px solid #9c4f39;background:#fff2cf;font-size:22px;font-weight:700}
.arena-stage .exchange-row b{text-align:center}

/* Compact battle controls and four adjacent skill icons. */
.arena-stage .mode-buttons{justify-content:space-between;gap:0}
.arena-stage .mode-buttons button{flex:none;width:285px;height:44px;font-size:16px}
.arena-stage .battle-center{width:300px}
.arena-stage .ready-button{width:300px;height:26px;font-size:19px}
.arena-stage .turn-timer-bar{width:300px;height:19px;margin:3px auto 5px}
.arena-stage .energy-bar{font-size:14px;gap:4px}
.arena-stage .energy-bar button{font-size:13px}
.arena-stage .battle-tools{width:180px}
.arena-stage .battle-tools button{width:180px;height:40px;font-size:15px}
.arena-stage .skill-strip{justify-content:center;gap:22px}
.arena-stage .my-fighters .effect-icons{left:153px;top:-32px;width:640px;justify-content:flex-start}
.arena-stage .exchange-dialog h3{margin:16px 0 8px;font:700 18px Georgia,serif;color:#8f2b20}

/* Battle layout from the revised mockup. */
.arena-stage .mode-buttons{justify-content:center;gap:14px}
.arena-stage .roster-empty,.arena-stage .roster-placeholder,.arena-stage .empty-slot,.arena-stage .selected-team .empty-slot{background:linear-gradient(#100c17d9,#100c17d9),url('/assets/jojo/empty-boxes-filler.jpg') center/cover}
.arena-stage .battle-field{z-index:5}
.arena-stage .skill-strip{width:390px;justify-content:flex-start;gap:18px;padding:10px 18px}
.arena-stage .battle-skill,.arena-stage .queue-slot{width:75px;height:97px}
.arena-stage .battle-tools{justify-self:end}
.arena-stage .effect-icon{position:relative;z-index:1}
.arena-stage .details-copy .effect-description{white-space:pre-line}

/* Give all four skill pictures their full square shape and align surrender with the details panel. */
.arena-stage .skill-strip{width:490px;justify-content:center;gap:18px;padding:10px 17px}
.arena-stage .battle-skill,.arena-stage .queue-slot{width:97px;height:97px}
.arena-stage .battle-tools{padding-bottom:14px}

/* Smaller menu choices and paged character skill previews. */
.arena-stage .mode-buttons button{width:260px;height:42px;font-size:15px}
.arena-stage .preview-scroll h2,.arena-stage .preview-scroll h3{text-transform:none}
.arena-stage .preview-skill-pager{display:flex;align-items:center;gap:10px}
.arena-stage .preview-skill-icons{width:444px;min-width:444px;gap:20px}
.arena-stage .preview-skill-icons button{flex:none}
.arena-stage .preview-page-arrow,.arena-stage .preview-page-spacer{width:28px;height:48px;flex:none}
.arena-stage .preview-page-arrow{padding:0;border:0;background:transparent;color:#b52620;font:700 42px/1 Georgia,serif;text-shadow:0 1px 1px #fff7df,0 2px 3px #5b231c66}
.arena-stage .preview-page-arrow:hover{color:#e4362c;transform:scale(1.12)}
.arena-stage .preview-description p{max-height:103px}

/* Supplied artwork for the three main menu battle choices. */
.arena-stage .mode-buttons{height:56px}
.arena-stage .mode-buttons button{width:260px;height:54px;padding:0;border:0;border-radius:0;background-color:transparent;background-position:center;background-size:cover;background-repeat:no-repeat;box-shadow:none;color:transparent;font-size:0;text-shadow:none}
.arena-stage .mode-buttons button[data-start="ranked"]{background-image:url('/assets/jojo/mode-ranked.png')}
.arena-stage .mode-buttons button[data-start="quickplay"]{background-image:url('/assets/jojo/mode-quickplay-supplied.png')}
.arena-stage .mode-buttons button[data-start="cpu"]{background-image:url('/assets/jojo/mode-cpu-battle-supplied.png')}
.arena-stage .mode-buttons button{width:240px;height:50px}
.arena-stage .mode-buttons{left:250px;width:1210px;justify-content:flex-start;gap:12px}
.arena-stage .mode-buttons button{width:200px;height:50px;background-size:100% 100%}
.arena-stage .mode-buttons{height:66px}
.arena-stage .mode-buttons button,.arena-stage .mode-buttons button[data-start="quickplay"],.arena-stage .mode-buttons button[data-start="cpu"]{width:210px;height:60px}

/* The supplied artwork includes its own lettering and frame. */
.arena-stage .selection-sidebar button,
.arena-stage .selection-sidebar button[data-missions]{
  flex:0 0 40px;
  width:100%;
  height:40px;
  min-height:40px;
  padding:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background-color:transparent;
  background-position:center;
  background-size:contain;
  background-repeat:no-repeat;
  color:transparent;
  font-size:0;
  text-shadow:none;
}
.arena-stage .selection-sidebar button[data-profile]{background-image:url('/assets/jojo/sidebar-profile.png')}
.arena-stage .selection-sidebar button[data-missions]{background-image:url('/assets/jojo/sidebar-missions.png')}
.arena-stage .selection-sidebar button[data-music]{background-image:url('/assets/jojo/sidebar-music.png')}
.arena-stage .selection-sidebar button[data-logout]{background-image:url('/assets/jojo/sidebar-log-out.png')}
.arena-stage .selection-tools button[data-page-prev],
.arena-stage .selection-tools button[data-page-next]{
  flex:0 0 28px;
  width:28px;
  min-width:28px;
  height:28px;
  padding:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background-color:transparent;
  background-position:center;
  background-size:contain;
  background-repeat:no-repeat;
  color:transparent;
  font-size:0;
  text-shadow:none;
}
.arena-stage .selection-tools button[data-page-prev]{background-image:url('/assets/jojo/page-previous.png')}
.arena-stage .selection-tools button[data-page-next]{background-image:url('/assets/jojo/page-next.png')}
.arena-stage .selection-tools .page-label{
  display:block;
  flex:0 0 100px;
  width:100px;
  min-width:100px;
  height:36px;
  padding:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent url('/assets/jojo/page-label.png') center/contain no-repeat;
  color:transparent;
  font-size:0;
  text-shadow:none;
}
.arena-stage .selection-tools button[data-filter]{margin-left:14px}


/* Soften the two unusually harsh source portraits across roster and battle views. */
img[src$="/kakyoin-s1.jpg"],img[src$="/tonpetty.png"]{filter:saturate(.86) contrast(.92)}

/* Mission panels use parchment for readable goals within the dark arena theme. */
.arena-stage .mission-goals{color:#2b1c15;background:#f8eacb}
.arena-stage .mission-goal,.arena-stage .mission-goal span,.arena-stage .mission-goal b,.arena-stage .mission-goals p{color:#2b1c15}
.arena-stage .mission-card img{background:#5a263c}
.arena-stage .mission-detail .mission-hero{display:block;width:auto;max-width:min(380px,100%);height:auto;max-height:360px;object-fit:contain;background:transparent;border:2px solid #100d0f;border-radius:0;margin:0 auto}
.arena-stage .mission-head-actions{display:flex;gap:10px}
.arena-stage .mission-reward-link{display:block;width:114px;height:114px;padding:0;margin:8px auto 0;border:2px solid #100d0f;background:transparent;cursor:pointer}
.arena-stage .mission-reward-link img{display:block;width:100%;height:100%;object-fit:cover}
.arena-stage .locked-character img{filter:grayscale(1) brightness(.58)}
.arena-stage .mission-mode-note{margin:0;padding:2px 18px;color:#f7e5bc;font:700 13px Georgia,serif}
.arena-stage .mission-detail .mission-hero{max-width:min(310px,100%);max-height:290px}
.arena-stage .mission-goals p.mission-requirement{font-weight:700}
.arena-stage .mission-goals p.mission-requirement.unmet{color:#a52135}
.arena-stage .mission-goals p.mission-requirement.met{color:#247242}
.arena-stage .mission-goals p.mission-reward-name{text-align:center;font-weight:750;color:#302017;margin:0 auto 8px}
.arena-stage .mission-essential{position:relative;display:inline;padding:0;border:0;background:transparent;color:#95608a;font:inherit;font-weight:750;text-decoration:underline;text-decoration-thickness:1px;cursor:pointer}
.arena-stage .mission-essential-pop{position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);z-index:20;padding:3px;background:#f8eacb;border:2px solid #211417;box-shadow:0 3px 8px #0008}
.arena-stage .mission-essential-pop img{display:block;width:74px;height:74px;object-fit:cover}
.arena-stage .filter-panel{position:absolute;z-index:8;left:12px;bottom:45px;width:400px;padding:11px 13px;background:#f8e8cf;border:2px solid #b77955;border-radius:13px;color:#632a22;box-shadow:0 5px 13px #0009;font:700 14px Arial,sans-serif}
.arena-stage .filter-head,.arena-stage .filter-bottom{display:flex;justify-content:space-between;align-items:center}
.arena-stage .filter-head button{border:0;background:transparent;color:#9d201b;font-size:23px;line-height:1;cursor:pointer}
.arena-stage .filter-panel .filter-input{position:static;width:100%;box-sizing:border-box;margin:9px 0;padding:8px;border:1px solid #d49d78;border-radius:7px}
.arena-stage .filter-energy-row{display:flex;gap:6px}
.arena-stage .filter-energy{flex:1;min-width:0;padding:8px 2px;border:1px solid color-mix(in srgb,var(--energy),#673d32 45%);border-radius:7px;background:color-mix(in srgb,var(--energy),#fff 65%);color:#342016;font:700 12px Arial,sans-serif;cursor:pointer}
.arena-stage .filter-energy.selected{background:var(--energy);box-shadow:inset 0 0 0 2px #241816}
.arena-stage .filter-bottom{margin-top:9px}
.arena-stage .filter-bottom button{border:1px solid #c68861;border-radius:6px;background:#f3d5b4;color:#6c251e;padding:6px 10px;font-weight:800;cursor:pointer}
.arena-stage .filter-only{display:flex;align-items:center;gap:6px;cursor:pointer}.arena-stage .filter-only input{position:absolute;opacity:0}.arena-stage .filter-switch{width:34px;height:18px;border-radius:12px;background:#e5c8aa;border:1px solid #c89772;position:relative}.arena-stage .filter-switch:before{content:'';position:absolute;left:2px;top:2px;width:12px;height:12px;border-radius:50%;background:#bd786b;transition:transform .15s}.arena-stage .filter-only input:checked+.filter-switch{background:#a4c8b8}.arena-stage .filter-only input:checked+.filter-switch:before{transform:translateX(16px);background:#26805d}
.profile-summary>img{border:1px solid #111}
.profile-avatars{grid-template-columns:repeat(4,minmax(0,120px));justify-content:center;gap:10px 22px;padding:5px}
.profile-avatars button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:120px;height:150px;min-width:0;padding:0}
.profile-avatars img{display:block;width:112px;height:112px;flex:none;object-fit:cover}
.profile-avatars span{display:flex;align-items:flex-start;justify-content:center;width:100%;height:34px;overflow:hidden;text-align:center;font-size:11px;line-height:1.15}
.avatar-pages{display:flex;justify-content:center;align-items:center;gap:16px;margin:8px 0 20px;font-weight:800}
.avatar-pages button{padding:6px 11px;border:2px solid #a54731;background:#e8d5a2;color:#3d1713;font-weight:900}
@media(max-width:650px){.profile-avatars{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.profile-avatars button{width:100%;height:130px}.profile-avatars img{width:min(100%,92px);height:92px}}
.preview-description p,.details-copy p{white-space:pre-line}

/* Supplied battle controls form a short staircase behind Joseph's elbow. */
.arena-stage .battle-footer{position:relative;z-index:6;overflow:visible}
.arena-stage .battle-tools{position:relative;display:block;width:520px;height:100%;justify-self:start;padding:0}
.arena-stage .battle-tools>button,.arena-stage .battle-volume{position:absolute;z-index:1;display:block;width:210px;height:35px;padding:0;border:0;background-size:100% 100%;background-repeat:no-repeat;color:transparent;box-shadow:none;font-size:0}
.arena-stage .battle-tools>[data-surrender]{top:94px;left:10px;background-image:url('/assets/jojo/battle-surrender.png')}
.arena-stage .battle-tools>[data-fullscreen]{top:132px;left:-5px;background-image:url('/assets/jojo/battle-fullscreen.png')}
.arena-stage .battle-volume{top:170px;left:-20px;background-image:url('/assets/jojo/battle-volume.png')}
.arena-stage .battle-tools>button:hover,.arena-stage .battle-tools>button:focus-visible{filter:brightness(1.2)}
.arena-stage .battle-volume-name{display:none}
.arena-stage .battle-volume button{position:absolute;z-index:2;top:0;width:24px;height:35px;margin:0;padding:0;border:0;background:transparent;color:transparent;box-shadow:none;font-size:0}
.arena-stage .battle-volume button[data-volume-step="-10"]{left:39px}
.arena-stage .battle-volume button[data-volume-step="10"]{left:165px}
.arena-stage .battle-volume input{position:absolute;z-index:2;top:11px;left:60px;appearance:none;-webkit-appearance:none;width:101px;height:13px;margin:0;border:1px solid #d1a850;border-radius:2px;background:linear-gradient(90deg,#dfb657 0 var(--volume-fill,50%),#211520 var(--volume-fill,50%) 100%);box-shadow:0 0 0 1px #251018;cursor:pointer}
.arena-stage .battle-volume input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:8px;height:18px;border:1px solid #29151a;border-radius:1px;background:#f3d282;box-shadow:0 0 0 1px #c69b46;cursor:pointer}
.arena-stage .battle-volume input::-moz-range-thumb{width:8px;height:18px;border:1px solid #29151a;border-radius:1px;background:#f3d282;cursor:pointer}
.arena-stage .battle-volume output{position:absolute;z-index:2;top:8px;right:5px;display:block;width:22px;height:19px;background:#3a1d28;color:#f5dfa3;text-align:center;font:700 9px/19px Georgia,serif}
.arena-stage .battle-joseph-lean{position:absolute;z-index:9;left:130px;bottom:-8px;width:300px;height:auto;pointer-events:none}

.custom-avatar-section{max-width:540px;margin:8px auto 22px}
.custom-avatar-section h2{margin-bottom:12px}
.custom-avatar-section form{display:grid;gap:10px}
.custom-avatar-preview{display:flex;align-items:center;gap:14px;min-height:100px}
.custom-avatar-preview img{width:96px;height:96px;object-fit:cover;border:2px solid #2b1714;background:#3b2528}
.custom-avatar-preview span{font-weight:700}
.custom-avatar-section label{display:grid;gap:5px;font-weight:700}
.custom-avatar-section input{width:100%;padding:10px;background:#fff9e6;border:2px solid #b07b5f}
.custom-avatar-section .primary,.profile-password-button{width:100%}
.profile-password-button{display:block;max-width:540px;margin:10px auto 0}
.password-dialog{max-width:520px}
.password-close{position:absolute;top:8px;right:10px;border:0;background:transparent;color:#9d241e;font-size:32px;line-height:1}

/* Both battle detail views share the same wide, low box under Joseph's hand. */
.arena-stage .battle-details-wrap{position:absolute;right:28px;bottom:16px;width:1084px;height:215px;overflow:visible}
.arena-stage .battle-details-wrap .details-scroll{display:flex;align-items:center;width:100%;height:215px;min-height:0;padding:12px 20px;gap:17px;overflow:hidden;background:linear-gradient(145deg,#34202d,#1c1421);border:3px double #bd8e4d;box-shadow:inset 0 0 0 2px #533a2b;color:#f5e1b4}
.arena-stage .compact-detail .details-art{width:135px;height:135px;object-fit:cover;border:2px solid #b98c54;flex:none}
.arena-stage .compact-detail .details-copy{flex:1;max-height:150px;min-width:0;overflow:auto;scrollbar-width:thin}
.arena-stage .compact-detail .details-copy h2{margin:0 0 5px;color:#f2d287;font:600 22px/1.1 Georgia,serif}
.arena-stage .compact-detail .details-copy p{margin:0;color:#f6e8ca;font:400 15px/1.2 Arial,sans-serif;white-space:normal}
.arena-stage .compact-detail .details-meta{margin-top:7px;gap:6px 18px;color:#d9b578;font:600 12px/1.2 Arial,sans-serif}
.arena-stage .compact-detail .details-meta>span{white-space:normal}

/* The skill and playercard previews share one tarot frame and clipped icon asset. */
.arena-stage .battle-details-wrap .details-scroll.compact-detail,.arena-stage .battle-details-wrap .details-scroll.profile-detail{position:relative;display:block;padding:0;border:0;box-shadow:none;background:none;color:#321b1e}
.arena-stage .details-scroll.compact-detail::before,.arena-stage .details-scroll.compact-detail::after,.arena-stage .details-scroll.profile-detail::before,.arena-stage .details-scroll.profile-detail::after{content:"";position:absolute;top:0;height:215px;background-image:url('/assets/jojo/ornate-tarot-skill-preview.png');background-repeat:no-repeat;pointer-events:none}
.arena-stage .details-scroll.compact-detail::before,.arena-stage .details-scroll.profile-detail::before{left:0;width:145px;background-size:685px 215px;background-position:0 0}
.arena-stage .details-scroll.compact-detail::after,.arena-stage .details-scroll.profile-detail::after{left:145px;right:0;background-size:1190px 215px;background-position:-252px 0}
.arena-stage .details-art-frame{position:absolute;z-index:1;left:18px;top:47px;width:122px;height:122px;padding:14px;overflow:hidden;background:#210e1c}
.arena-stage .details-art-frame::after{content:"";position:absolute;inset:0;background:url('/assets/jojo/tarot-skill-icon-frame.svg') center/100% 100% no-repeat;pointer-events:none}
.arena-stage .details-art-frame .details-art{display:block;position:static;width:100%;height:100%;max-width:none;max-height:none;padding:0;border:0;object-fit:cover;object-position:center;aspect-ratio:1;transform:none}
.arena-stage .compact-detail .details-copy{position:absolute;z-index:1;left:17%;top:29%;width:78%;height:58%;max-height:none;min-width:0;display:flex;flex-direction:column;overflow:hidden;font-family:Arial,sans-serif;text-transform:none}
.arena-stage .compact-detail .details-copy h2{flex:none;margin:0 0 3px;color:#9a241d;font:600 21px/1.1 Arial,sans-serif}
.arena-stage .compact-detail .details-copy p{flex:1;min-height:0;margin:0;overflow:auto;color:#241d18;font:600 15px/1.17 Arial,sans-serif;white-space:normal;scrollbar-width:thin}
.arena-stage .compact-detail .details-meta{flex:none;margin-top:4px;gap:2px 12px;color:#66513e;font:600 12px/1.1 Arial,sans-serif}
.arena-stage .profile-detail .battle-profile-card{position:absolute;z-index:1;left:17%;top:27%;width:78%;height:62%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;overflow:hidden}
.arena-stage .profile-detail .battle-profile-stats h2{margin:0 0 4px;color:#8f211d;font:700 21px/1.1 Arial,sans-serif}
.arena-stage .profile-detail .battle-profile-stats p{margin:2px 0;color:#241d18;font:600 15px/1.15 Arial,sans-serif}
.arena-stage .profile-detail .battle-profile-team{justify-self:end;color:#241d18}
.arena-stage .profile-detail .battle-profile-team h3{margin:0 0 8px;color:#8f211d;font:700 17px/1.1 Arial,sans-serif}
.arena-stage .profile-detail .battle-profile-team img{width:82px;height:82px;object-fit:cover;border:2px solid #925b23}

/* Put each avatar beside the timer, with the names outside the avatars. */
.arena-stage .battle-top{gap:8px}
.arena-stage .battle-player{width:230px;flex-direction:row-reverse;justify-content:flex-start;text-align:right}
.arena-stage .battle-player.enemy-name{width:230px;flex-direction:row;justify-content:flex-start;text-align:left}
.arena-stage .battle-player img{width:72px;height:72px;flex:none}
.arena-stage .battle-player span{min-width:0;overflow-wrap:anywhere}

/* Supplied character-row art replaces the plain rectangular panel. */
.arena-stage .skill-strip{height:178px;margin-left:-5px;transform:translateY(13px);padding:10px 12px 10px 28px;justify-content:flex-start;gap:30px;border:0;box-shadow:none;background:url('/assets/jojo/character-skill-rows.png') center/100% 100% no-repeat}
.arena-stage .skill-strip .battle-skill{width:84px;height:84px}

/* Keep the supplied side panel while restoring the earlier selection and preview art. */
.arena-stage .selection-sidebar{background:url('/assets/jojo/jojo-side-panel.png?v=2') center/100% 100% no-repeat;border:0;outline:0;box-shadow:none}
.arena-stage .selection-scroll{background:#190b22 url('/assets/jojo/jojo-skill-preview-panel-v2.png?v=2') center/100% 100% no-repeat;border:0;outline:0;box-shadow:0 7px 18px #0008}
.arena-stage .preview-scroll.papyrus{background:#190b22 url('/assets/jojo/jojo-skill-preview-panel-v2.png?v=2') center/100% 100% no-repeat;border:0;outline:0;box-shadow:0 8px 20px #0009;color:#f8e8c5}
.arena-stage .preview-scroll h2,.arena-stage .preview-scroll h3{color:#f4d28d}
.arena-stage .preview-description,.arena-stage .preview-description p{color:#f8e9cb}
.arena-stage .preview-meta{color:#dcc28e}
.arena-stage .preview-page-arrow{color:#f4d28d}

/* Fit battle skill and playercard art within the square built into the tarot panel. */
.arena-stage .details-art-frame{left:25px;top:65px;width:109px;height:100px;padding:0;overflow:hidden;background:transparent;clip-path:polygon(8% 0,92% 0,100% 9%,100% 91%,92% 100%,8% 100%,0 91%,0 9%)}
.arena-stage .details-art-frame::after{display:none}
.arena-stage .details-art-frame .details-art{width:100%;height:100%;object-fit:cover}

/* Effect badges rest on the visible or implied top edge of each skill row. */
.arena-stage .my-fighters .effect-icons{top:-13px}
.arena-stage .enemy-fighters .effect-icons{top:-25px;right:153px}

/* Keep the whole battle scene visible while filling the fixed arena canvas. */
.arena-stage .battle-screen{background:var(--battle-bg) center/auto calc(100% + 12px) no-repeat}

/* The revised panel art already clears the character and profile areas. */
.arena-stage .selected-side{padding-top:10px}
.arena-stage .your-team-title{margin-top:12px}

/* Align each transparent frame's visible art with the portrait's upper corner. */
.arena-stage .portrait-wrap .rank-portrait-ornament{--frame-offset:-18px;--frame-top:-18px;--frame-size:180px;position:absolute;z-index:2;left:var(--frame-offset);top:var(--frame-top);width:var(--frame-size);height:var(--frame-size);max-width:none;max-height:none;object-fit:contain;pointer-events:none}
.arena-stage .enemy-fighters .rank-portrait-ornament{left:auto;right:var(--frame-offset);transform:scaleX(-1)}
.arena-stage .rank-portrait-ornament[src$="/01_Hamon_Apprentice.webp"]{--frame-offset:-18px;--frame-top:-18px}
.arena-stage .rank-portrait-ornament[src$="/02_Hamon_Warrior.webp"]{--frame-offset:-47px;--frame-top:-28px;--frame-size:245px}
.arena-stage .rank-portrait-ornament[src$="/03_Vampire.webp"]{--frame-offset:-29px;--frame-top:-22px}
.arena-stage .rank-portrait-ornament[src$="/04_Pillar_Man.webp"]{--frame-offset:-27px;--frame-top:-22px}
.arena-stage .rank-portrait-ornament[src$="/05_Stand_Master.webp"]{--frame-offset:-34px;--frame-top:-26px}
.arena-stage .rank-portrait-ornament[src$="/06_Stardust_Crusader.webp"]{--frame-offset:-44px;--frame-top:-34px;--frame-size:225px}
.arena-stage .rank-portrait-ornament[src$="/07_Arrow_Chosen.webp"]{--frame-offset:-43px;--frame-top:-31px}
.arena-stage .rank-portrait-ornament[src$="/08_Morioh_Guardian.webp"]{--frame-offset:-18px;--frame-top:-18px}
.arena-stage .rank-portrait-ornament[src$="/09_Passione_Capo.webp"]{--frame-offset:-32px;--frame-top:-18px}
.arena-stage .rank-portrait-ornament[src$="/10_Gang_Star.webp"]{--frame-offset:-28px;--frame-top:-23px}
.arena-stage .rank-portrait-ornament[src$="/11_Spin_Master.webp"]{--frame-offset:-18px;--frame-top:-18px}
.arena-stage .rank-portrait-ornament[src$="/12_Saints_Corpse_Bearer.webp"]{--frame-offset:-18px;--frame-top:-18px}
.arena-stage .rank-portrait-ornament[src$="/13_Requiem_Wielder.webp"]{--frame-offset:-28px;--frame-top:-23px}
.arena-stage .rank-portrait-ornament[src$="/14_Heaven_Ascended.webp"]{--frame-offset:-31px;--frame-top:-25px;--frame-size:205px}
.arena-stage .selection-tools{transform:translateY(7px)}
.arena-stage .skill-strip{background-image:linear-gradient(#ffffff20,#ffffff20),url('/assets/jojo/character-skill-rows.png');background-size:100% 100%,100% 100%;background-position:center,center;background-repeat:no-repeat}
.arena-stage .player-card{align-items:flex-start}
.arena-stage .your-team-title{width:287px;align-self:center}
.arena-stage .selected-team>*{width:89px;height:89px;flex:none}
@media (min-width:900px){body:has(.auth-grid){background-color:#cd1058;background-image:linear-gradient(#0003,#0002),var(--home-bg);background-position:center,center 72px;background-size:100% 100%,92% auto;background-repeat:no-repeat;background-attachment:fixed}}

/* Search-readable fallback and the public login-page disclaimer. */
body:has(.auth-footer) .auth-grid{min-height:calc(100vh - 72px - 150px)}
.auth-footer{max-width:1440px;margin:0 auto 16px;padding:12px 22px;background:#190e18de;border:1px solid #e2c17a;color:#fff4de;text-align:center;font:14px/1.4 Arial,sans-serif;text-shadow:0 1px 2px #000}
.auth-footer p{margin:4px 0}
.auth-footer .auth-summary{font-size:15px;font-weight:600}
@media (max-width:650px){body:has(.auth-footer) .auth-grid{min-height:0}.auth-footer{margin:12px 12px 18px;font-size:13px}}

/* Phone landscape fills the screen width, keeping the game panels readable. */
.arena-stage img{user-select:none;-webkit-user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}
.pointer-drag-ghost.review-drag-ghost{object-fit:cover;border:2px solid #f3d597;box-shadow:0 3px 10px #000b}
#app.mobile-arena{place-items:start center;overflow:auto;overscroll-behavior:contain}
#app.mobile-arena .arena-viewport{margin:0 auto}
.mobile-fullscreen{display:none}
@media (max-width:1100px) and (orientation:portrait){#app.mobile-arena .mobile-fullscreen{display:block;position:fixed;right:12px;top:12px;z-index:100;padding:11px 16px;border:2px solid #c69a52;background:#2c1425;color:#ffe8ae;font:700 15px Georgia,serif}}
@media (max-width:1100px){
  .arena-stage :is(h1,h2,h3,h4,p,small,strong,b,span,button,label,output){text-transform:uppercase!important}
  .arena-stage .preview-description p{font-size:19px;line-height:1.2}
  .arena-stage .preview-description h3{font-size:24px}
  .arena-stage .preview-meta{font-size:16px}
  .arena-stage .player-card p,.arena-stage .ready-label{font-size:19px}
  .arena-stage .compact-detail .details-copy h2{font-size:26px}
  .arena-stage .compact-detail .details-copy p{font-size:19px;line-height:1.22}
  .arena-stage .compact-detail .details-meta{font-size:15px}
  .arena-stage .profile-detail .battle-profile-stats p{font-size:18px}
  .arena-stage .profile-detail .battle-profile-team h3{font-size:20px}
  .arena-stage .turn-review h2{font-size:31px}
  .arena-stage .review-energy-row,.arena-stage .review-energy-head{font-size:21px}
  .arena-stage .review-list,.arena-stage .review-drag-handle,.arena-stage .review-row{touch-action:none;-webkit-touch-callout:none;overscroll-behavior:contain}
  .arena-stage .turn-review{transform:scale(1.25)}
}


