/* Compact play surface: battle, heroes, and four destinations. */
.compact-game .game-frame{height:100dvh;min-height:0;border-width:4px;overflow:hidden}
.compact-game .game-header{height:48px;min-height:48px;padding:0 13px;gap:18px;border-bottom:2px solid #cda45c;box-shadow:none}
.compact-game .brand{font-size:17px;letter-spacing:1px}.compact-game .brand>.icon{height:25px;width:25px}
.compact-game .currencies{display:flex;align-items:center;gap:14px;min-width:0}
.compact-game .gold-wallet{min-width:0;padding:0;border:0;background:none;gap:6px;white-space:nowrap}
.compact-game .gold-wallet strong{font-size:22px}.compact-game .gold-wallet .icon{height:20px;width:20px}
.compact-game .gem-wallet{font-size:14px;gap:4px;margin:0}.compact-game .gem-wallet .icon{height:15px;width:15px}
.compact-game .combat-stats{background:none;border:0;color:#fff2c5;min-height:0;padding:0;gap:20px;font-size:14px;margin-left:auto}
.compact-game .combat-stats>span{gap:4px}.compact-game .combat-stats small{font-size:12px;color:#e7cf9e}
.compact-game .combat-stats .icon{height:15px;width:15px;color:#f2d887}
.compact-game .settings-button{height:44px;width:44px;border:0;background:none;flex-shrink:0}
.compact-game .game-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden;min-height:0}
.compact-game .manager{min-height:0;height:auto;overflow:hidden;border-right:4px solid #a97532;background:#976d35;order:0}
.compact-game .battle-pane{min-height:0;height:auto;order:1;border:0;overflow:hidden}
.compact-game #arena{min-height:0;flex:1}
.compact-game .tabs{padding:3px 5px max(3px,env(safe-area-inset-bottom));gap:4px;background:linear-gradient(#c49448,#a16c2b);border-top:3px solid #795124;min-height:51px;flex-shrink:0}
.compact-game .tabs button{min-height:44px;padding:4px;gap:6px;border:1px solid #885d28;border-bottom:2px solid #775125;border-radius:4px;background:linear-gradient(#ffe0a0,#edbd63);color:#815729;font-size:14px;box-shadow:inset 0 1px #fff0c2}
.compact-game .tabs button.active{background:linear-gradient(#fff5d0,#ffe3a0);color:#297990;box-shadow:inset 0 2px #65c1d5}
.compact-game .tabs button .icon{height:18px;width:18px;display:block}.compact-game .tabs i{position:absolute;top:2px;right:8px;min-width:16px;font-size:12px;padding:0 3px;background:#ab5044}
.compact-game #manager-toolbar{flex-shrink:0}
.compact-game .roster-toolbar,.compact-game .section-label{height:44px;min-height:44px;padding:0 7px;display:flex;align-items:center;justify-content:space-between;gap:6px;background:#f4d990;border-bottom:2px solid #ab7b3b;font-size:14px}
.compact-game .roster-toolbar select{font:inherit;font-weight:900;min-height:44px;max-width:calc(100% - 110px);width:auto;min-width:0;border:0;background:transparent;color:#785630;padding:0 5px}
.compact-game .roster-actions{display:flex;align-items:center;gap:1px}.compact-game .toolbar-button{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;gap:3px;background:none;color:#805c2f;position:relative;padding:0 6px;font-size:14px;font-weight:900;border:0}
.compact-game .toolbar-button>.icon{width:18px;height:18px}.compact-game .buy-amount>.icon{width:11px;height:11px;transform:rotate(90deg)}
.compact-game .goal-shortcut i{display:none;position:absolute;top:5px;right:5px;width:6px;height:6px;background:#3298ab;border-radius:50%}.compact-game .goal-shortcut i.affordable{display:block}
.compact-game .manager-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;background:linear-gradient(#9b713b,#835e2f)}
.compact-game .hero-row{min-height:80px;height:80px;margin:4px 5px;padding:4px 7px 4px 3px;grid-template-columns:54px minmax(0,1fr) 104px;gap:7px;border:1px solid #b68a43;border-bottom:2px solid #805a28;border-radius:5px;background:linear-gradient(#fff7d9,#f6eac0)}
.compact-game .hero-row:nth-child(even){background:linear-gradient(#fff3d0,#f3e4b6)}.compact-game .hero-row.unrecruited{background:linear-gradient(#f9eecb,#ecdbab)}
.compact-game .hero-portrait{height:69px;width:54px;background:none;border-radius:0}.compact-game .active-dot{height:7px;width:7px;border-width:1px;bottom:5px;right:4px}
.compact-game .hero-title{gap:4px;flex-wrap:nowrap;align-items:center}.compact-game .hero-title button{font-size:16px;display:flex;align-items:center;gap:3px;line-height:1.2;min-height:24px;min-width:0;white-space:nowrap}
.compact-game .detail-cue{display:inline-flex;opacity:.55}.compact-game .detail-cue .icon{height:10px;width:10px}.compact-game .hero-title>span{font-size:12px;margin-left:auto;line-height:1.1;padding:0;background:none;flex-shrink:0}.compact-game .hero-title>span:empty{display:none}
.compact-game .hero-damage{font-size:14px;line-height:1.25;color:#3b745c}.compact-game .row-perks{display:flex;gap:4px;margin-top:3px;line-height:1}.compact-game .row-perks>span{width:18px;height:18px;display:grid;place-items:center;background:#d8c792;border:1px solid #bca670;border-radius:2px;color:#99895e}.compact-game .row-perks .icon{height:13px;width:13px}.compact-game .row-perks .learned{background:#5b997b;border-color:#376f58;color:#e2f0bf}.compact-game .row-perks .available{background:#8cbec2;border-color:#5e989f;color:#fff8d6}
.compact-game .hero-row .buy-button{min-height:48px;height:48px;font-size:13px;padding:3px;gap:2px;border-radius:4px;border-width:1px;border-bottom-width:3px}.compact-game .hero-row .buy-button strong{font-size:14px;line-height:1.1}.compact-game .buy-button .icon{height:13px;width:13px}
.compact-game .hero-row .buy-button:disabled{background:linear-gradient(#406b83,#2e536c);border-color:#24475e;color:#c3d4d5;box-shadow:inset 0 1px #658397}.compact-game .hero-row .buy-button:disabled strong{color:#e5dca8}
.compact-game .zone-header{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:4px 8px 0;gap:8px;height:51px;z-index:5;text-shadow:0 1px 2px #1c494a}
.compact-game .zone-header>div{flex:1;min-width:0}.compact-game .zone-header h1{font-size:17px;letter-spacing:0;line-height:1.15}.compact-game .zone-header h1>span[data-world-name]{font-size:inherit;color:inherit;white-space:normal}.compact-game .zone-header h1>span{font-size:16px;color:#fff1ba;letter-spacing:0;white-space:nowrap}
.compact-game .zone-header h1>b{font-size:10px;padding:1px 3px;border-width:1px;margin-left:4px;vertical-align:middle}.compact-game .zone-header small{font-size:12px;line-height:1.2;margin:2px 0 0;padding:0;background:none;color:#f0edd0;border:0;display:block}
.compact-game .battle-info-button,.compact-game .zone-header .farm-button{width:44px;height:44px;min-height:44px;flex-shrink:0;display:grid;place-items:center;padding:0;position:relative;background:#2559588a;border:1px solid #e9d49a8a;border-radius:50%;color:#ffefb4;pointer-events:auto}
.compact-game .battle-info-button>.icon,.compact-game .zone-header .farm-button>.icon{width:18px;height:18px}.compact-game .zone-header .farm-button [data-farm-label]{font-size:12px;letter-spacing:0}.compact-game .farm-button.farming{background:#977030dd;border-color:#f5cf70}
.compact-game [data-buff-count]{position:absolute;top:-1px;right:-1px;font-size:12px;line-height:17px;min-width:17px;border-radius:50%;background:#386d8b;color:#fff1b7;text-align:center;font-style:normal}
.compact-game .enemy-button{top:52px;bottom:110px;left:19%;right:19%;padding:0}.compact-game .enemy-sprite{max-height:none;object-fit:contain}.compact-game .enemy-button.is-boss .enemy-sprite{max-height:none}.compact-game .tap-hint{bottom:1px;white-space:nowrap;font-size:12px;letter-spacing:0;padding:2px 7px;border-radius:12px}.compact-game .experienced .tap-hint{display:none}
.compact-game .enemy-platform{bottom:24%;left:23%;right:23%;height:7%}.compact-game .enemy-readout{left:16%;right:16%;bottom:68px}
.compact-game .enemy-title{font-size:14px;justify-content:center;text-align:center;gap:7px;margin-bottom:3px}.compact-game .enemy-title>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-game .enemy-title>span{font-size:12px;flex-shrink:0;padding:0 4px}
.compact-game .health-track{height:13px;border-width:1px;padding:2px}.compact-game .health-track>i{top:2px;bottom:2px}
.compact-game .health-label{font-size:12px;justify-content:center;margin-top:2px;line-height:1.1}.compact-game .chain-meter{font-size:12px;gap:5px;margin:3px 0 0;min-height:14px}.compact-game .chain-meter>span{font-size:12px;text-transform:none;white-space:nowrap}.compact-game .chain-meter>div{height:4px;border-width:0}.compact-game .chain-meter>b{font-size:12px;min-width:25px}
.compact-game .combo-hud{display:none;top:auto;right:9px;bottom:135px;padding:2px 4px;border-radius:5px;background:#24574d94;max-width:none}.compact-game .combo-hud.active{display:flex}.compact-game .combo-hud b{font-size:12px}
.compact-game .skill-bar{position:absolute;bottom:6px;left:10%;right:10%;width:auto;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;min-height:0;padding:0;border:0;background:none;z-index:6}
.compact-game .skill{min-height:52px;height:52px;padding:3px 1px;gap:2px;border-radius:5px;border-width:1px;border-bottom-width:2px;box-shadow:inset 0 1px #d7e5ce4d;animation:none}
.compact-game .skill.ready{box-shadow:inset 0 1px #d7e5ce4d;animation:none}.compact-game .skill .skill-icon{height:22px;width:22px;border:0;background:none;border-radius:0}.compact-game .skill-icon>.sprite{height:24px;width:24px}.compact-game .skill-icon .icon{height:19px;width:19px}.compact-game .skill-icon>b{display:none}
.compact-game .skill>strong{font-size:12px;line-height:1;min-height:12px;white-space:nowrap;word-spacing:normal;overflow-wrap:normal}.compact-game .skill>small{display:none;position:absolute;right:1px;top:1px;padding:1px 2px;font-size:12px;line-height:1;background:#183b5de8;border-radius:3px;color:#fff4c7}.compact-game .skill.skill-cooling>small,.compact-game .skill.finisher-ready>small{display:block}.compact-game .skill .skill-progress{height:2px}
.compact-game .skill.skill-active{border-color:#ffe7a6;box-shadow:0 0 7px #ffdd7255}.compact-game .skill.finisher-ready{border-color:#b7ffff}
.compact-game .guild-goal-link{width:100%;padding:13px 18px;min-height:48px;background:#fff0c4;border-bottom:1px solid #bc9450;display:flex;align-items:center;gap:10px;text-align:left;color:#397f94;font-weight:900;font-size:16px}.compact-game .guild-goal-link>span{flex:1}
.compact-game .battle-details-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:14px;padding:18px 0}.compact-game .battle-details-stats b{color:#367f93}.compact-game .zone-controls{display:flex;gap:6px;align-items:center;margin:0 0 15px}.compact-game .zone-controls button{min-width:44px;min-height:44px;padding:5px 9px}.compact-game .zone-controls label{font-size:14px;flex:1;display:flex;align-items:center;gap:4px}.compact-game .zone-controls input{width:70px;min-width:0;min-height:44px;font:inherit;border:1px solid #bd9951;border-radius:4px;background:#fff6d7;padding:5px;color:#805c2f}
.compact-game .buff-details{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 20px}.compact-game .buff-details>span{display:flex;gap:6px;align-items:center;font-size:14px;background:#285975;color:#fff3c5;border-radius:5px;padding:8px}.compact-game .buff-details .icon{width:17px;height:17px}
.compact-game .skill-reference{margin:10px 0 17px}.compact-game .skill-reference article{display:grid;grid-template-columns:1fr auto;gap:5px 8px;padding:12px 0;border-bottom:1px solid #d5be86}.compact-game .skill-reference strong{font-size:16px;color:#397f91}.compact-game .skill-reference small{font-size:12px;align-self:center;color:#926e37}.compact-game .skill-reference p{grid-column:1/-1;font-size:14px;line-height:1.5;margin:0}
.compact-game dialog .buy-picker{margin:20px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:5px}.compact-game dialog .buy-picker button{min-height:48px;font-size:16px}
.compact-game dialog .next-goal{margin:18px 0 12px;min-height:96px;border:1px solid #b68d46;border-radius:5px;gap:10px;text-align:left}.compact-game dialog .goal-copy>small{font-size:12px}.compact-game dialog .goal-copy>strong{font-size:16px}.compact-game dialog .goal-copy>span{font-size:14px}.compact-game dialog .goal-portrait{height:60px;width:44px}.compact-game dialog .goal-view{display:none}
.compact-game dialog .detail-perks button{min-height:48px}.compact-game .skill-cutin{min-width:0;max-width:90vw;font-size:14px}.compact-game .skill-cutin strong{font-size:18px}.compact-game .skill-cutin small{font-size:12px}.compact-game .combat-number{font-size:20px}.compact-game .combat-number.emphatic{font-size:25px}
.compact-game dialog .modal-close-bar{position:sticky;top:0;height:0;z-index:10;pointer-events:none}.compact-game dialog .modal-close{position:absolute;top:-6px;right:-4px;float:none;margin:0;width:44px;height:44px;pointer-events:auto;background:#eccb8a;box-shadow:0 2px 3px #70502b33}.compact-game dialog h2{padding-right:44px}
.compact-game .tabs button.reward-ready{border-color:#dfaf62}
@media(max-width:900px){
 .compact-game .game-header{height:42px;min-height:42px;gap:8px;padding:0 7px}.compact-game .brand{display:none}.compact-game .currencies{gap:7px}.compact-game .gold-wallet strong{font-size:20px}.compact-game .gold-wallet .icon{height:16px;width:16px}.compact-game .gem-wallet{font-size:12px;gap:2px}.compact-game .gem-wallet .icon{height:13px;width:13px}
 .compact-game .combat-stats{display:flex;flex-direction:column;align-items:flex-end;gap:1px;margin-left:auto;font-size:12px;line-height:1.1}.compact-game .combat-stats>span{gap:4px}.compact-game .combat-stats .icon{height:12px;width:12px}.compact-game .combat-stats small{font-size:12px}.compact-game .settings-button{width:37px;height:42px}
 .compact-game .game-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,.44fr) minmax(0,.56fr);flex:1;overflow:hidden}.compact-game .battle-pane{grid-row:1;order:0;min-height:0;height:auto;border-bottom:4px solid #a97330}.compact-game .manager{grid-row:2;order:1;border:0;min-height:0;height:auto;flex:none}
 .compact-game .tabs{min-height:49px;padding:2px 4px max(2px,env(safe-area-inset-bottom));gap:3px}.compact-game .tabs button{min-height:42px;gap:4px;font-size:12px;padding:3px}.compact-game .tabs button .icon{width:17px;height:17px}.compact-game .tabs i{right:3px}
 .compact-game .hero-row{height:72px;min-height:72px;margin:3px 4px;padding:3px 6px 3px 2px;grid-template-columns:49px minmax(0,1fr) 95px;gap:6px}.compact-game .hero-portrait{height:63px;width:49px}.compact-game .hero-title button{font-size:15px;min-height:22px}.compact-game .hero-damage{font-size:13px}.compact-game .hero-row .buy-button{font-size:12px}.compact-game .hero-row .buy-button strong{font-size:13px}.compact-game .row-perks{gap:3px;margin-top:2px}.compact-game .row-perks>span{height:16px;width:17px}.compact-game .row-perks .icon{height:12px;width:12px}
 .compact-game .zone-header{height:45px;padding:2px 6px 0;gap:5px}.compact-game .zone-header h1{font-size:15px}.compact-game .zone-header h1>span{font-size:15px}.compact-game .zone-header small{font-size:12px;margin-top:1px}.compact-game .battle-info-button,.compact-game .zone-header .farm-button{height:44px;width:44px;min-height:44px;background:#285e5280}.compact-game .zone-header .farm-button.farming{background:#94702bcc}
 .compact-game .enemy-button{top:43px;bottom:73px;left:18%;right:18%}.compact-game .enemy-readout{left:14%;right:14%;bottom:62px}.compact-game .enemy-title{font-size:13px;line-height:1.1;margin-bottom:2px}.compact-game .enemy-title>span{font-size:12px}.compact-game .health-track{height:11px}.compact-game .health-label{font-size:12px;line-height:1;margin-top:2px}.compact-game .chain-meter{min-height:12px;margin-top:3px;font-size:12px;gap:4px}.compact-game .chain-meter>span{font-size:12px}.compact-game .chain-meter>b{font-size:12px}.compact-game .combo-hud{bottom:135px;right:6px}.compact-game .tap-hint{font-size:12px;bottom:16px}
 .compact-game .skill-bar{left:7px;right:7px;bottom:5px;gap:4px}.compact-game .skill{height:49px;min-height:49px}.compact-game .skill>strong{font-size:12px}.compact-game .skill>small{font-size:12px}.compact-game .skill-cutin{min-width:0;padding:8px;gap:6px}.compact-game .skill-cutin>img{height:59px;width:47px;margin:0}.compact-game .skill-cutin strong{font-size:16px}.compact-game .skill-cutin small{display:none}.compact-game .combat-number{font-size:18px}.compact-game .combat-number.emphatic{font-size:23px}
}
@media(max-width:360px){.compact-game .hero-row{grid-template-columns:43px minmax(0,1fr) 85px;gap:5px}.compact-game .hero-portrait{width:43px;height:61px}.compact-game .hero-title button{font-size:14px}.compact-game .hero-title>span{font-size:12px}.compact-game .hero-row .buy-button strong{font-size:13px}.compact-game .zone-header h1{font-size:14px}.compact-game .zone-header h1>span{font-size:14px}}
@media(max-height:640px) and (max-width:900px){.compact-game .game-layout{grid-template-rows:minmax(0,.5fr) minmax(0,.5fr)}.compact-game .hero-row{height:65px;min-height:65px}.compact-game .hero-portrait{height:57px}.compact-game .row-perks{margin-top:1px}.compact-game .enemy-readout{bottom:61px}.compact-game .tap-hint{display:none}}
@media(max-height:500px) and (min-width:650px){.compact-game .game-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:0}.compact-game .battle-pane{grid-row:1;grid-column:2;min-height:0;order:1;border:0}.compact-game .manager{grid-row:1;grid-column:1;order:0;border-right:4px solid #a97532;min-height:0}.compact-game .enemy-button{top:44px;bottom:75px}.compact-game .enemy-readout{bottom:62px}}
.compact-game.large-text .game-frame{height:auto;min-height:100dvh;overflow:visible}.compact-game.large-text .game-header{min-height:74px;height:auto;flex-wrap:wrap;padding:7px}.compact-game.large-text .game-layout{display:flex;flex-direction:column;overflow:visible}.compact-game.large-text .battle-pane{order:0;min-height:440px;height:440px;flex:none}.compact-game.large-text .manager{order:1;height:auto;overflow:visible;min-height:0;border:0}.compact-game.large-text .manager-scroll{overflow:visible;max-height:none}.compact-game.large-text .roster-toolbar,.compact-game.large-text .section-label{height:auto;min-height:60px}.compact-game.large-text .roster-toolbar select{font-size:.5rem;max-width:calc(100% - 110px)}.compact-game.large-text .hero-row{height:auto;min-height:112px;grid-template-columns:60px minmax(0,1fr) 105px}.compact-game.large-text .hero-portrait{height:95px;width:60px}.compact-game.large-text .hero-title button{font-size:.6rem;white-space:normal}.compact-game.large-text .hero-title{flex-wrap:wrap}.compact-game.large-text .hero-title>span{font-size:.45rem;margin-left:0}.compact-game.large-text .hero-damage{font-size:.5rem}.compact-game.large-text .hero-row .buy-button{height:64px;font-size:.45rem}.compact-game.large-text .hero-row .buy-button strong{font-size:.5rem}.compact-game.large-text .tabs{position:sticky;bottom:0;z-index:7}.compact-game.large-text .tabs button{font-size:.5rem}.compact-game.large-text .skill-bar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.compact-game.large-text .skill{min-height:55px;height:55px}.compact-game.large-text .skill>strong,.compact-game.large-text .skill>small{font-size:12px}.compact-game.large-text .enemy-button{top:52px;bottom:85px}.compact-game.large-text .zone-header h1,.compact-game.large-text .zone-header h1>span{font-size:18px}.compact-game.large-text .enemy-title{font-size:16px}.compact-game.large-text .health-label,.compact-game.large-text .chain-meter>span{font-size:14px}.compact-game.large-text .gold-wallet strong{font-size:.8rem}
