/* Arcana Duel v1.7: profile menu, statistics, seasonal history and replay cinema. */
.account-page,.replay-page{min-height:100dvh;background:radial-gradient(ellipse at 50% 0,#263756 0,#0b1427 69%);color:#f7efdf;padding:clamp(16px,3vw,40px) 16px 70px;position:relative;z-index:4}
.account-page.hide,.replay-page.hide,.account-main.hide,.account-details.hide{display:none!important}
.account-wrap{max-width:900px;margin:0 auto}.account-head{display:flex;gap:18px;align-items:center;margin:0 0 24px}.account-head small,.replay-head small{font-size:10px;letter-spacing:.2em;color:#d8ba77}.account-head h1{margin:2px 0 4px;font-size:clamp(24px,4vw,36px)}.account-head p{margin:0;color:#9cb2d0;font-size:13px}.account-back,#replayBack{background:#253751;border:1px solid #627590;border-radius:12px;color:#fff;padding:11px 14px;cursor:pointer;white-space:nowrap;font-size:13px}.account-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.account-tile{min-width:0;text-align:left;display:flex;flex-direction:column;gap:8px;padding:22px 18px;border:1px solid #9c8c66;background:linear-gradient(145deg,#202e47,#111c34);border-radius:15px;color:#f6eacb;cursor:pointer}.account-tile span{font-size:17px}.account-tile small{color:#b9c6d9;font-size:12px;line-height:1.5}.account-details{border:1px solid #6b6881;border-radius:18px;padding:clamp(14px,3vw,24px);background:rgba(18,30,51,.9)}.account-details h2{margin:20px 0;font-size:clamp(21px,4vw,29px)}.account-details h3{font-size:17px}.account-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.account-stat-grid>div{min-width:0}.account-stat-grid h3{font-size:14px}.account-stat{border:1px solid #4c6281;border-radius:12px;padding:15px;background:#14223a;display:flex;flex-direction:column;gap:8px}.account-stat b{font-size:24px;color:#e6c883}.account-stat strong{font-size:17px}.account-stat span,.account-stat small{color:#c4d0df}.account-stat small{font-size:12px}.account-history,.account-replay-list{display:grid;gap:9px}.account-history-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between;border:1px solid #455873;border-radius:12px;padding:14px;background:#122037}.account-history-row strong{font-size:15px}.account-history-row b{color:#dfbf77}.account-history-row span{color:#aebed0;font-size:12px}.account-note{line-height:1.7;color:#c8d4e7}.account-replay-buttons{display:flex;gap:9px}.account-replay-buttons button,.replay-controls button{background:#253d58;border:1px solid #8596a8;color:#fff;border-radius:9px;padding:9px 15px;cursor:pointer}.account-replay-buttons [data-replay-delete]{background:#462d3b;border-color:#b2738d}.title-menu-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:13px 18px!important;border-radius:10px;background:linear-gradient(130deg,#273a56,#1b2b4d)!important;color:#fff!important;border:1px solid #b5a27e!important;font-size:15px!important;letter-spacing:0!important;white-space:normal!important}.title-menu-trigger span{font-size:11px;color:#bccbe0}.title-profile-row .title-player-name{cursor:default}.replay-save-dialog{max-width:min(92vw,460px);border:1px solid #d1b67c;color:#f5e5c6;background:linear-gradient(#1a2740,#0d182b);border-radius:17px;padding:24px;box-shadow:0 18px 50px #000c}.replay-save-dialog::backdrop{background:#050a18c9}.replay-save-dialog h2{font-size:21px;margin:0 0 16px}.replay-save-dialog p{color:#cfdaeb;line-height:1.6}.replay-save-dialog #replaySaveError{color:#f4b9be}.replay-save-actions{display:flex;gap:12px;justify-content:flex-end}.replay-save-actions button{border:1px solid #a1aec1;border-radius:11px;padding:12px 18px;background:#23334b;color:#fff;font-size:15px;cursor:pointer}.replay-save-actions #replaySaveYes{background:linear-gradient(110deg,#ecd29b,#c59b59);color:#21263a;font-weight:800}.replay-save-actions button:disabled{opacity:.5}.replay-shell{max-width:1300px;margin:auto}.replay-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.replay-head h1{font-size:clamp(16px,3vw,25px);margin:2px 0}.replay-head #replayStepLabel{font-weight:700;color:#dcb876}.replay-board{display:grid;gap:8px;margin:14px 0}.replay-player{padding:10px;background:#14243d;border:1px solid #5d6984;border-radius:13px}.replay-player-head{display:flex;justify-content:space-between;gap:12px;font-size:13px}.replay-player-head span{color:#b2c8dc;font-size:12px}.replay-field{display:grid;grid-template-columns:1fr 1fr;gap:8px}.replay-field>div,.replay-hand{min-width:0}.replay-field small,.replay-hand small{font-size:10px;color:#debc7b}.replay-cardline{display:flex;gap:6px;overflow:hidden;min-height:54px;align-items:center}.replay-cardline i{font-style:normal;font-size:12px;color:#677b95}.replay-card{display:flex;align-items:center;gap:5px;min-width:0;max-width:150px;border-radius:6px;background:#223851;border:1px solid #445b7c;padding:3px 5px;overflow:hidden}.replay-card img{width:33px;height:42px;object-fit:cover;border-radius:4px;flex-shrink:0}.replay-card b{font-size:10px;max-width:70px;line-height:1.25;overflow:hidden;text-overflow:ellipsis}.replay-card small{font-size:9px;color:#c8d2e0;display:none}.replay-hand{margin-top:5px;border-top:1px solid #3b4d66;padding-top:5px}.replay-turn-caption{text-align:center;color:#d6ba85;font-size:12px}.replay-message{font-size:12px;min-height:22px;text-align:center;color:#c8d7e7}.replay-controls{display:flex;justify-content:center;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}.replay-controls button:disabled{opacity:.45}.replay-controls label{font-size:13px}.replay-controls select{background:#2d435c;color:#fff;border-radius:8px;padding:8px;border:1px solid #7c91a7}
@media(max-width:580px){.account-main{grid-template-columns:1fr}.account-stat-grid{grid-template-columns:1fr}.account-head{gap:10px}.account-tile{padding:15px}.title-menu-trigger span{display:none}.account-history-row{align-items:flex-start;flex-direction:column}.replay-save-dialog{padding:18px}.replay-card img{width:30px;height:37px}.replay-card b{font-size:9px}}
@media(orientation:landscape) and (max-height:440px){.replay-page{height:100dvh;min-height:0;overflow:hidden;padding:4px 10px}.replay-head{height:31px}.replay-head h1{font-size:13px}.replay-head button{padding:5px}.replay-board{gap:3px;margin:4px 0}.replay-player{padding:4px 7px}.replay-player-head{font-size:11px}.replay-field{gap:3px}.replay-cardline{min-height:31px;gap:3px}.replay-card{padding:1px 3px;max-width:95px}.replay-card img{height:29px;width:24px}.replay-card b{font-size:8px}.replay-hand{margin-top:1px;padding-top:1px}.replay-message{min-height:15px;font-size:10px}.replay-turn-caption{font-size:10px}.replay-controls{margin:0}.replay-controls button,.replay-controls select{font-size:11px;padding:5px 8px}}

/* Battle-replay UI: the exact live arena, with a read-only playback panel. */
body.replay-mode #arena .battle-surrender,body.replay-mode #arena #battleHelp,
body.replay-mode #arena #turnClock,body.replay-mode #arena .decision > :not(#replayPage){display:none!important}
body.replay-mode #arena .battle-player .mini-card,body.replay-mode #arena .hand-cards .mini-card{cursor:zoom-in}
body.replay-mode #arena .player-zone{pointer-events:auto}
body.replay-mode #arena .replay-no-hand{align-self:center;color:#aec3c4;font-size:12px}
#arena .decision #replayPage{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;max-height:100%;height:100%;overflow:hidden;padding:0;margin:0;background:transparent;z-index:auto}
#arena .decision #replayPage.hide{display:none!important}
#arena #replayPage .replay-panel-kicker{font-size:clamp(10px,.95vw,13px);font-weight:850;color:#ecc981;letter-spacing:.08em;display:flex;align-items:center;justify-content:space-between;gap:5px}
#arena #replayPage #replayStepLabel{font-size:clamp(10px,1vw,14px);letter-spacing:0;color:#e8ded0}
#arena #replayPage #replayHeading{font-size:clamp(10px,1.2vw,17px);line-height:1.2;color:#fff0cd;margin:clamp(2px,.4dvh,6px) 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#arena #replayPage .replay-panel-turn{font-size:clamp(9px,.9vw,12px);line-height:1.35;color:#9dd5cd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#arena #replayPage .replay-seek-label{font-size:clamp(9px,.85vw,12px);color:#c3d1d4;margin-top:clamp(5px,1.5dvh,13px)}
#arena #replayPage #replaySeek{width:100%;margin:clamp(3px,.8dvh,7px) 0;flex:0 0 auto;accent-color:#eac680;cursor:pointer}
#arena #replayPage #replayMessage{flex:1;min-height:24px;text-align:left;font-size:clamp(10px,1vw,14px);line-height:1.45;color:#e4eaf0;padding:clamp(5px,1dvh,12px);border:1px solid #4d676c;background:#0c1b2caa;border-radius:9px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
#arena #replayPage .replay-controls{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.6fr) minmax(0,.7fr);gap:clamp(3px,.6vw,8px);margin:clamp(4px,1dvh,10px) 0 0;flex:0 0 auto}
#arena #replayPage .replay-controls button{min-width:0;min-height:clamp(27px,5dvh,40px);padding:4px;font-size:clamp(10px,.95vw,14px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid #bfac78;border-radius:7px;background:#233b4b;color:#fff3d9}
#arena #replayPage .replay-controls #replayPlay{color:#1e2732;background:linear-gradient(120deg,#f6dca0,#bf995c);font-weight:850}
#arena #replayPage .replay-controls button:disabled{opacity:.4}
#arena #replayPage .replay-speed-label{font-size:clamp(9px,.9vw,12px);display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:clamp(4px,1.2dvh,10px);color:#cbd6e1}
#arena #replayPage #replaySpeed{color:#f9efde;background:#263c51;border:1px solid #73868e;border-radius:7px;padding:clamp(3px,.6dvh,7px) 8px}
#arena #replayPage .replay-panel-hint{font-size:clamp(8px,.75vw,11px);margin:clamp(3px,1dvh,7px) 0;color:#9baeb6;line-height:1.25;-webkit-line-clamp:2}
#arena #replayPage #replayBack{flex:0 0 auto;width:100%;min-height:clamp(26px,5dvh,40px);padding:clamp(3px,.6dvh,8px);background:linear-gradient(135deg,#2a3e58,#192e46);border:1px solid #9eafc2;color:#f8e9c5;border-radius:8px;font-size:clamp(10px,.92vw,13px);font-weight:800;margin-top:auto;white-space:nowrap}
@media(max-height:390px) and (orientation:landscape){#arena #replayPage .replay-panel-hint{display:none}#arena #replayPage .replay-seek-label{display:none}#arena #replayPage #replayMessage{-webkit-line-clamp:2;min-height:20px}#arena #replayPage .replay-controls{margin-top:3px}#arena #replayPage .replay-speed-label{margin-top:3px}}
