/* Prestige only: native 266 × 414 character window, with preview controls outside. */
.presentation-page #prestige .prestige-panel { display:block; }
.presentation-page #prestige .prestige-tier-selector { margin:0 auto 7px; }
.presentation-page #prestige .prestige-milestones { display:flex; gap:3px; }
.presentation-page #prestige .prestige-tier-selector button { width:35px; height:19px; padding:1px 3px; font:10px/1 Tahoma,Verdana,sans-serif; }
.presentation-page .client-window[data-replica=prestige] { padding:0; border:0; background:none; box-shadow:none; overflow:visible; color:#c7c7c7; text-shadow:1px 1px #000; }
.presentation-page .client-window[data-replica=prestige]::before { content:''; position:absolute; inset:0; background:url('assets/game-ui/prestige/board.svg') 0 0/266px 414px no-repeat; pointer-events:none; }
.presentation-page .client-window[data-replica=prestige] :is(div,span,strong,p,button) { font:10px/1.2 Tahoma,Verdana,sans-serif; letter-spacing:0; }
.presentation-page .client-window[data-replica=prestige] .web-ui-title { top:12px; left:65px; right:18px; height:22px; min-height:0; padding:0 26px; background:url('assets/game-ui/prestige/title.svg') -2px -4px/192px 32px no-repeat; border:0; color:#dedbd3; }
.presentation-page .client-window[data-replica=prestige] .game-close { top:1px; right:0; width:18px; height:18px; background-image:url('assets/ui/game/public_close_button_01.png'); }
.presentation-page .client-window[data-replica=prestige] .game-close:hover { background-image:url('assets/ui/game/public_close_button_02.png'); }
.presentation-page .client-window[data-replica=prestige] .game-close:active { background-image:url('assets/ui/game/public_close_button_03.png'); }
.presentation-page .client-window[data-replica=prestige] .prestige-body { position:absolute; inset:0; padding:0; pointer-events:none; }
.presentation-page .client-window[data-replica=prestige] .prestige-body > * { pointer-events:auto; }
.presentation-page .client-window[data-replica=prestige] .prestige-portrait { position:absolute; left:13px; top:12px; width:48px; height:48px; }
.presentation-page .client-window[data-replica=prestige] .prestige-char-name { position:absolute; left:113px; top:38px; width:90px; height:18px; border:1px solid #a2a297; background:#020302; display:grid; place-items:center; color:#ddd; }
.presentation-page .client-window[data-replica=prestige] .prestige-exp-panel { position:absolute; left:14px; top:64px; width:233px; height:44px; border:1px solid #77786d; border-radius:3px; background:#000; }
.presentation-page .client-window[data-replica=prestige] :is(.prestige-lv-icon,.prestige-exp-icon) { position:absolute; top:0; height:21px; display:grid; place-items:center; border-bottom:1px solid #41423b; }
.presentation-page .client-window[data-replica=prestige] .prestige-lv-icon { left:0; width:54px; border-right:1px solid #41423b; }
.presentation-page .client-window[data-replica=prestige] .prestige-exp-icon { left:54px; right:0; }
.presentation-page .client-window[data-replica=prestige] .prestige-exp-panel img { width:auto; height:21px; }
.presentation-page .client-window[data-replica=prestige] .prestige-char-rank { position:absolute; left:0; top:21px; width:54px; height:21px; display:grid; place-items:center; border-right:1px solid #41423b; color:var(--prestige-colour); font-size:10px; }
.presentation-page .client-window[data-replica=prestige] .prestige-char-rank { white-space:nowrap; }
.presentation-page .client-window[data-replica=prestige][data-tier="25"] .prestige-char-rank { font-size:9px; }
.presentation-page .client-window[data-replica=prestige] .prestige-exp-value { position:absolute; top:21px; left:54px; right:0; height:21px; display:flex; align-items:center; justify-content:space-evenly; color:#ddd; }
.presentation-page .client-window[data-replica=prestige] .prestige-exp-value span { font-size:12px; }
.presentation-page .client-window[data-replica=prestige] .prestige-exp-value span { position:absolute; }
.presentation-page .client-window[data-replica=prestige] .prestige-exp-value span:nth-child(1) { left:38px; }
.presentation-page .client-window[data-replica=prestige] .prestige-exp-value span:nth-child(2) { left:84px; }
.presentation-page .client-window[data-replica=prestige] .prestige-exp-value span:nth-child(3) { left:101px; }
.presentation-page .client-window[data-replica=prestige] .prestige-lv-icon img { transform:translateX(-3px); }
.presentation-page .client-window[data-replica=prestige] .prestige-colour-tabs { position:absolute; left:14px; top:111px; width:233px; height:20px; background:url('assets/game-ui/prestige/colour-tabs.png'); }
.presentation-page .client-window[data-replica=prestige] .prestige-points-bar { position:absolute; left:14px; top:133px; width:233px; height:20px; background:url('assets/game-ui/prestige/points-bar.png'); }
.presentation-page .client-window[data-replica=prestige] .prestige-game-stats { position:absolute; left:21px; top:160px; width:212px; display:grid; gap:1px; margin:0; }
.presentation-page .client-window[data-replica=prestige] .prestige-stat-row { display:grid; grid-template-columns:104px 18px 90px; align-items:center; height:19px; gap:0; }
.presentation-page .client-window[data-replica=prestige] .prestige-stat-row > span { white-space:nowrap; font-size:10px; }
.presentation-page .client-window[data-replica=prestige] .prestige-stat-row > strong { display:grid; place-items:center; height:19px; width:90px; padding:0 1px; font-size:10px; font-weight:400; border:1px solid #92948b; background:#000b; color:#d1d1c6; white-space:nowrap; }
.presentation-page .client-window[data-replica=prestige] .prestige-stat-row > .prestige-row-rank { color:var(--prestige-colour); }
.presentation-page .client-window[data-replica=prestige] .prestige-stat-row > button { border:0; padding:0; width:14px; height:14px; background:url('assets/ui/game/pattern_q_mark_01.png') center/14px 14px no-repeat; color:transparent; justify-self:start; }
.presentation-page .client-window[data-replica=prestige] .prestige-attributes { position:absolute; left:28px; top:281px; display:grid; grid-template-columns:81px 81px; column-gap:17px; row-gap:8px; }
.presentation-page .client-window[data-replica=prestige] .prestige-attributes > div { display:flex; gap:6px; align-items:center; height:23px; }
.presentation-page .client-window[data-replica=prestige] .prestige-attributes img { flex:none; width:23px; height:23px; }
.presentation-page .client-window[data-replica=prestige] .prestige-attributes span { display:grid; place-items:center; border:1px solid #9a9c93; background:#000; width:52px; height:16px; color:#ddd; }
.presentation-page .client-window[data-replica=prestige] .prestige-client-footer { position:absolute; left:14px; top:379px; width:233px; height:29px; background:url('assets/game-ui/prestige/page-tabs.png'); }
.presentation-page #prestige .prestige-tooltip { position:absolute; left:50%; transform:translateX(-50%); z-index:30; width:334px; max-width:calc(100vw - 16px); min-height:60px; border:1px solid #8c8c78; outline:1px solid #111; outline-offset:-3px; padding:10px 12px; background:#090b08df; text-align:center; pointer-events:none; box-shadow:0 2px 8px #0004; }
.presentation-page #prestige .prestige-tooltip strong { display:block; color:#f1df9f; font-size:10px; font-weight:400; margin:0 0 8px; }
.presentation-page #prestige .prestige-tooltip p { color:#d9d3bb; font-size:10px; line-height:1.5; margin:0; }
.presentation-page #prestige .prestige-gauge { position:relative; width:196px; height:56px; margin:10px auto 0; border:1px solid #777c69; background:#171d16cf; color:#d3c9a3; font:10px/1.2 Tahoma,Verdana,sans-serif; text-shadow:1px 1px #000; }
.presentation-page #prestige .prestige-gauge-icon { position:absolute; top:14px; left:8px; width:30px; height:30px; }
.presentation-page #prestige .prestige-gauge-title { position:absolute; left:49px; top:5px; font:10px/1.2 Tahoma,Verdana,sans-serif; }
.presentation-page #prestige .prestige-gauge button { position:absolute; top:3px; width:16px; height:16px; min-height:0; border:0; padding:0; cursor:pointer; }
.presentation-page #prestige .prestige-gauge-gear { right:30px; background:url('assets/game-ui/prestige/gear.png'); }
.presentation-page #prestige .prestige-gauge-help { right:9px; background:url('assets/game-ui/prestige/help.png'); }
.presentation-page #prestige .prestige-gauge-bar { position:absolute; left:45px; top:23px; width:139px; height:21px; background:#070b0799; border:1px solid #8d8e74; }
.presentation-page #prestige .prestige-gauge-bar i { display:block; width:0; height:100%; background:#c6a44e; }
.presentation-page #prestige .prestige-gauge-bar span { position:absolute; inset:0; display:grid; place-items:center; font:10px/1.2 Tahoma,Verdana,sans-serif; color:#eee8ce; }
.presentation-page #prestige .prestige-gauge-tooltip { display:none; position:absolute; z-index:10; bottom:calc(100% + 5px); left:50%; transform:translateX(-50%); width:max-content; max-width:260px; padding:7px 12px; border:1px solid #777c69; background:#090b08ed; color:#e1d5aa; font:10px/1.3 Tahoma,Verdana,sans-serif; text-align:center; }
.presentation-page #prestige .prestige-gauge:is(:hover,:focus-within,[data-active=true]) .prestige-gauge-tooltip { display:block; }
.presentation-page #prestige .prestige-gauge[data-active=true] .prestige-gauge-bar { animation:prestige-gauge-flash 1.5s ease-in-out infinite; }
@keyframes prestige-gauge-flash { 50% { box-shadow:0 0 9px #f1d1779c; border-color:#ffe8a3; } }
@media(prefers-reduced-motion:reduce) { .presentation-page #prestige .prestige-gauge[data-active=true] .prestige-gauge-bar { animation:none; border-color:#ffe8a3; } }
