:root{--ek-header-height:64px;--ek-tools-height:54px}
.ek-native-header{position:relative;z-index:100;background:#f7f7ee;color:#254d40;font:15px/1.4 "Microsoft YaHei",sans-serif}
.ek-native-header .header{position:static;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:64px;width:100%;max-width:none;padding:6px 24px;margin:0;border:0;border-bottom:1px solid #cad5cb;background:#f7f7ee;box-shadow:none;transform:none}
.ek-native-header .brand{display:flex;align-items:center;gap:10px;width:auto;min-width:190px;margin:0;padding:0;background:none;border:0;box-shadow:none;text-decoration:none;text-align:left;color:#244d40;font:700 20px/1.2 "Microsoft YaHei",sans-serif}
.ek-native-header .brand img{display:block;width:44px;height:44px;object-fit:contain;border-radius:10px}.ek-native-header .brand>span{display:block}.ek-native-header .brand-sub{display:block;margin-top:5px;color:#59766a;font:10px/1.2 "Microsoft YaHei",sans-serif;letter-spacing:1px}
.ek-native-header nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.ek-native-header nav a,.ek-native-header .account-link{display:inline-flex;align-items:center;min-height:44px;padding:8px 10px;text-decoration:none;color:#254d40;font:14px/1.4 "Microsoft YaHei",sans-serif;white-space:nowrap}.ek-native-header nav a.active{border-radius:24px;background:#244d40;color:#fff}
.ek-game-tools{display:flex;align-items:center;gap:8px;min-height:54px;padding:5px 20px;background:#e9efe7;border-bottom:1px solid #c0cdc0;color:#244d40;font:14px/1.4 "Microsoft YaHei",sans-serif;position:relative;z-index:90}
.ek-game-tools button,.ek-game-tools a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:7px 12px;border:1px solid transparent;border-radius:8px;color:#285443;background:transparent;text-decoration:none;font:inherit;cursor:pointer}.ek-game-tools button:hover,.ek-game-tools a:hover{background:#fff;border-color:#c0d0be}.ek-game-tools [data-view].is-active{background:#fff;border-color:#a9c4b4}.ek-game-title{font-weight:800;font-size:18px;padding-right:8px}.ek-game-tools [data-chapter-progress]{white-space:nowrap;color:#456252}.ek-game-tools #ek-sync-status{margin-left:auto;font-size:12px;max-width:240px;color:#526c60}.ek-game-tools .sound-toggle{width:42px}.ek-game-tools [hidden]{display:none!important}
body .game-shell{display:block;width:100%;max-width:none;height:calc(100dvh - var(--ek-header-height) - var(--ek-tools-height));min-height:0;padding:12px 20px;margin:0;overflow:hidden}
body[data-view] .view-stage{display:block;width:100%;height:100%;min-height:0;max-height:none;margin:0;padding:0;overflow:auto;grid-area:auto}
body[data-view] .view{height:100%;min-height:0;margin:0}body[data-view] #journeyView .campaign-home{height:100%;min-height:0;max-height:none}
.campaign-side-menu a{display:flex;align-items:center;gap:14px;color:inherit;text-decoration:none;min-height:44px;padding:10px 14px}
.campaign-side-menu a small{display:block}.ek-load-failed .game-shell{opacity:.45;pointer-events:none}.ek-load-failed #ek-sync-status{font-size:16px;color:#7b381d}
@media(min-width:721px){.story-layout,.battle-shell{max-height:100%}.battle-stage{min-height:0}.battle-shell{min-height:0}.game-shell .story-view{overflow:auto}}
@media(max-width:1100px){.ek-native-header .header{gap:8px;padding-inline:12px}.ek-native-header nav{gap:4px}.ek-native-header nav a{font-size:12px;padding:6px}.ek-native-header .brand{min-width:160px;font-size:17px}.ek-game-tools{gap:4px;padding-inline:10px}.ek-game-tools button,.ek-game-tools a{padding-inline:8px}.ek-game-tools #ek-sync-status{max-width:160px}}
@media(max-width:720px){.ek-native-header .header{flex-wrap:wrap;gap:2px;padding:6px 10px}.ek-native-header .brand{min-width:0}.ek-native-header .brand img{width:36px;height:36px}.ek-native-header nav{order:3;width:100%;gap:2px;justify-content:space-between}.ek-native-header nav a{font-size:11px;padding:4px;min-height:36px}.ek-native-header .account-link{font-size:12px}.ek-native-header .brand-sub{font-size:8px}.ek-game-tools{flex-wrap:wrap;gap:2px;font-size:12px;padding:4px 8px}.ek-game-tools button,.ek-game-tools a{min-height:40px;padding:5px 7px}.ek-game-title{font-size:15px}.ek-game-tools #ek-sync-status{order:5;width:100%;max-width:none;margin:0;font-size:11px}.ek-game-tools [data-chapter-progress]{margin-left:auto}body{overflow:auto!important}body .game-shell{height:auto;min-height:calc(100dvh - 190px);padding:8px}body[data-view] .view-stage{height:auto;overflow:visible}body[data-view] .view{height:auto}body[data-view] #journeyView .campaign-home{height:auto;min-height:780px}.game-shell .story-view{overflow:visible}}
/* Game occupies the site's content area; legacy absolute website offsets are removed. */
body[data-view] .game-shell{position:relative!important;inset:auto!important;height:calc(100dvh - var(--ek-header-height) - var(--ek-tools-height))!important;min-height:0!important;padding:12px 20px!important}
body[data-view] .view-stage{position:relative!important;inset:auto!important;margin:0!important;width:100%!important;height:100%!important;max-width:none!important;padding:0!important}
body[data-view] .view[hidden]{display:none!important}
@media(min-width:721px){
body[data-view] .battle-view.is-active{display:grid!important;grid-template-rows:44px minmax(210px,1fr) 184px;gap:8px;height:100%!important;overflow:hidden!important}
.battle-hud{height:44px;min-height:0;padding:3px 8px}.battle-heading h1{font-size:19px}.battle-heading p{font-size:12px}
body[data-view] .battle-stage{display:grid!important;grid-template-columns:minmax(160px,.8fr) minmax(380px,1.5fr) minmax(160px,.8fr)!important;gap:12px;height:100%;min-height:0!important;padding:0}
body[data-view] .fighter-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:4px;height:100%;min-height:0;padding:8px}
body[data-view] .fighter-art{height:100%!important;min-height:0!important;overflow:hidden;margin:0}
body[data-view] .fighter-card{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;max-height:100%;object-fit:contain;transform:none!important}
.fighter-title h2{font-size:22px}.fighter-title span{font-size:12px}.fighter-stats{font-size:12px;margin:0}.fighter-meta{font-size:12px}
body[data-view] .reaction-zone{display:flex;flex-direction:column;gap:6px;height:100%;min-height:0;padding:8px}
.reaction-title{min-height:30px;margin:0}.reaction-title h2{font-size:20px}.reaction-title p{display:none}.reaction-glyph{width:30px;height:30px}
.battle-hint{flex-shrink:0;font-size:13px;min-height:30px;padding:5px 8px;margin:0}
.reaction-slots{position:relative;inset:auto;flex:1;min-height:70px;margin:0;gap:6px;grid-template-columns:1fr 14px 1fr 14px 1fr}
.reaction-slot{height:100%;min-height:70px;padding:8px 4px}.reaction-slot strong{font-size:18px}.reaction-slot small{font-size:12px}.reaction-slot>.lucide{width:24px;height:24px}
.reaction-readout{flex-shrink:0;min-height:44px;margin:0;padding:4px 6px;font-size:13px}.trigger-button{min-height:38px;font-size:14px}.combo-preview{min-height:0;padding:3px;margin:0;font-size:12px}.combo-preview strong{font-size:14px}
.hand-tray{display:grid;grid-template-rows:36px minmax(0,1fr);height:100%;min-height:0;padding:3px 8px;margin:0;overflow:hidden}.hand-instruction{min-height:0;padding:0;gap:8px;font-size:13px}.hand-tools button{min-height:32px;padding:4px 10px}.hand-wrap,.hand-viewport,.hand-cards{height:100%!important;min-height:0!important}.hand-card{width:88px!important;height:122px!important;bottom:8px!important;transform:translateX(calc(-50% + var(--offset,0px))) rotate(calc(var(--rotation,0deg) * .35))!important}.hand-card.is-selected{bottom:18px!important}.hand-card .card-copy span,.hand-card .card-copy small{display:none}.hand-card .card-art-symbol{font-size:24px}.hand-card .card-copy strong{font-size:16px}.hand-card .card-copy{bottom:24px}.hand-card .card-info{width:32px;height:32px}.draw-pile{display:none}
}
.ek-card-name{position:absolute;bottom:22px;left:2px;right:2px;z-index:3;text-align:center;padding:3px;background:rgba(5,31,29,.87);font-size:14px;color:#fff;border-radius:4px}
@media(max-width:720px){body[data-view] .game-shell{height:auto!important;min-height:calc(100dvh - 190px)!important;padding:8px!important}body[data-view] .view-stage{height:auto!important}.battle-view.is-active{overflow:visible!important}.hand-tray{margin-bottom:16px}.ek-card-name{font-size:15px}}

.campaign-side-nav a{color:inherit;text-decoration:none;font:inherit}.campaign-side-nav a:focus-visible{outline:2px solid #f4dfb2;outline-offset:3px}
/* Details must remain discoverable on touchscreens, without a hover gesture. */
.hand-card .card-info,.hand-card.has-art .card-info{display:grid!important;place-items:center;visibility:visible;opacity:1;position:absolute;top:31px;right:3px;bottom:auto;width:36px;height:36px;z-index:8;pointer-events:auto;border:1px solid #b9d0ba;color:#fff;background:rgba(7,38,32,.94)}
.hand-card .card-info .lucide{width:18px;height:18px}.hand-card .card-info:focus-visible{outline:2px solid #fff;outline-offset:-4px}
