/* Scoped to Story; village, Bag and existing popup geometry stay independent. */
.story-adventure{position:relative;box-sizing:border-box;font-family:Arial,sans-serif;font-size:14px;color:#665d46;isolation:isolate}
.story-adventure *{box-sizing:border-box}.story-adventure button{font:inherit;cursor:pointer}.story-adventure button:disabled{cursor:default;filter:grayscale(.8);opacity:.64}.story-adventure button:focus-visible{outline:3px solid #55b8e8;outline-offset:2px}.story-adventure h2,.story-adventure h3,.story-adventure p{margin:0}.story-adventure img,.story-adventure svg{object-fit:contain}.story-adventure .sa-title{font-size:30px;line-height:1.1;font-weight:bold;color:#fff9e9;text-shadow:2px 2px #79673e,-1px -1px #79673e,1px -1px #79673e,-1px 1px #79673e;position:absolute;left:25px;top:-22px;z-index:3;max-width:75%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.story-adventure .sa-close{position:absolute;right:-15px;top:-18px;width:42px;height:42px;z-index:8;border:0;background:url('/assets/equipment/reference-v2/ui/close-orange.svg') center/contain no-repeat}
.story-adventure .sa-action{height:40px;min-width:100px;padding:4px 13px;border:9px solid transparent;border-image:none;background:transparent;color:#fff;font-size:16px;font-weight:bold;line-height:1.05;white-space:nowrap;text-shadow:0 1px #497da0;background-image:url('/assets/recruit-synthesis/reference-v1/ui/action-blue.svg');background-position:center;background-size:100% 100%;background-repeat:no-repeat;background-origin:border-box;background-clip:border-box}
.story-adventure .sa-action.sa-orange{border-image:none;background-image:url('/assets/recruit-synthesis/reference-v1/ui/action-orange.svg');background-position:center;background-size:100% 100%;background-repeat:no-repeat;background-origin:border-box;background-clip:border-box}.story-adventure .sa-action.sa-gold{border-image:none;background-image:url('/assets/recruit-synthesis/reference-v1/ui/action-gold.svg');background-position:center;background-size:100% 100%;background-repeat:no-repeat;background-origin:border-box;background-clip:border-box}.story-adventure .sa-action:disabled{border-image:none;background-image:url('/assets/recruit-synthesis/reference-v1/ui/action-disabled.svg');background-position:center;background-size:100% 100%;background-repeat:no-repeat;background-origin:border-box;background-clip:border-box}
.story-adventure .sa-manual{display:flex;align-items:center;justify-content:center;gap:4px;padding:0;border:0;background:transparent;color:inherit;font-size:12px}.story-adventure .sa-manual>svg{width:32px;height:36px}.story-adventure .sa-manual>span{white-space:nowrap}.story-adventure .sa-stars{display:inline-flex;gap:1px;color:#bbb59b;font-size:15px;line-height:1}.story-adventure .sa-stars>i{font-style:normal;text-shadow:1px 1px #6b6e50}.story-adventure .sa-stars>i.filled{color:#f6da3e}.story-adventure .sa-pager{display:flex;gap:15px;align-items:center;justify-content:center;color:#857452;font-size:13px}.story-adventure .sa-pager button{height:31px;width:31px;border:2px solid #a49b7b;border-radius:9px;background:linear-gradient(#fbf9e3,#dcc599);color:#6e664c;font-size:25px;font-weight:bold;line-height:20px;padding:0}.story-adventure .sa-pager button:disabled{background:#b7bab1}
.story-adventure .sa-mode-tabs{position:absolute;top:-26px;left:43%;display:flex;gap:4px;z-index:4}.story-adventure .sa-mode-tabs button{height:43px;min-width:126px;border:0;border-radius:0 0 20px 20px;background:#f2ead1;padding:7px 13px;color:#727767;font-weight:bold;font-size:17px;box-shadow:0 2px 2px #baa878}.story-adventure .sa-mode-tabs button.active{background:linear-gradient(#68c0eb,#2b96cf);color:#fff;text-shadow:1px 1px #45685e}
.story-adventure.sa-overview{width:100%;min-height:445px;padding:28px 30px 50px;background:#fff9e5;border:12px solid transparent;border-image:none;border-radius:10px;background-image:url('/assets/recruit-synthesis/reference-v1/ui/paper-frame-nine-slice.svg');background-position:center;background-size:100% 100%;background-repeat:no-repeat;background-origin:border-box;background-clip:border-box}
.story-adventure .sa-arc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:165px;gap:14px 18px}.story-adventure .sa-arc-card{position:relative;text-align:left;display:flex;flex-direction:column;padding:11px 14px 8px;border:2px solid #c7bda0;border-radius:5px;background:#fffef4;box-shadow:0 2px 2px #cab88a;color:#84613d;min-width:0}.story-adventure .sa-arc-card h3{position:absolute;top:-10px;left:9px;right:5px;color:#619554;font-size:16px;line-height:18px;text-shadow:1px 1px #ffffe9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.story-adventure .sa-arc-card h3 i{float:right;font-style:normal;color:#6ab334}.story-adventure .sa-arc-preview{position:relative;flex:1;display:flex;align-items:center;justify-content:center;border:2px solid #7a6a3f;overflow:hidden;margin:3px 0 7px;background:#aba27c;min-height:0}.story-adventure .sa-arc-preview>img{position:absolute;width:100%;height:100%;object-fit:cover}.story-adventure .sa-arc-preview>b{position:relative;font-size:43px;color:#fffde7;text-shadow:2px 3px #514e30;font-weight:normal}.story-adventure .sa-arc-harvest{display:flex;gap:8px;align-items:center;font-size:13px;white-space:nowrap}.story-adventure .sa-arc-harvest>b{padding:1px 6px;border:1px solid #c3bdac;border-radius:5px;background:#edede7;color:#737966;font-weight:normal}.story-adventure .sa-arc-harvest>small{margin-left:auto;font-size:10px}.story-adventure .sa-lock-reason{position:absolute;bottom:32px;left:3px;right:3px;font-size:10px;text-align:center;color:#fffde4;background:#534d35a8;padding:3px}.story-adventure .sa-saga-card{grid-column:span 2;position:relative;overflow:hidden;min-width:0;border:3px solid #b6baa3;border-radius:3px;background:linear-gradient(160deg,#7bd1ed,#1592c2 55%,#daf5ed 55%);color:#fff7e4;text-align:left;padding:12px 14px;text-shadow:1px 1px #624d32}.story-adventure .sa-saga-card h3{font-size:22px;color:#f8f6df;margin:0 0 5px;text-align:center}.story-adventure .sa-saga-card p{font-size:13px;line-height:1.4;width:45%;position:relative;z-index:3}.story-adventure .sa-saga-card p b{color:#bceafa}.story-adventure .sa-saga-card>strong{font-size:12px;position:relative;z-index:3;display:block;margin-top:4px}.story-adventure .sa-saga-card>small{font-size:11px;color:#756146;text-shadow:none;position:absolute;bottom:10px;left:15px;z-index:3}.story-adventure .sa-saga-ninja{position:absolute;bottom:-20px;width:110px;height:160px;z-index:2}.story-adventure .sa-saga-ninja>svg{width:100%;height:100%}.story-adventure .sa-saga-ninja.naruto{right:100px;transform:rotate(-7deg)}.story-adventure .sa-saga-ninja.pain{right:47px;bottom:-15px}.story-adventure .sa-saga-ninja.sasuke{right:-12px;transform:rotate(8deg)}.story-adventure.sa-overview>.sa-pager{position:absolute;left:25%;right:25%;bottom:12px}.story-adventure .sa-overview-footer{position:absolute;left:20px;right:20px;bottom:10px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#9b8a64}.story-adventure .sa-overview-footer>.sa-manual{font-size:10px}
.story-adventure .sa-hud{position:absolute;top:8px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;height:57px;z-index:12;color:#5a6151;pointer-events:none}.story-adventure .sa-hud-group{display:flex;align-items:center;gap:14px;min-width:0}.story-adventure .sa-hud-level{position:relative;display:block;width:53px;height:53px}.story-adventure .sa-hud-level>svg{width:100%;height:100%}.story-adventure .sa-hud-level>b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:24px;color:#ffe36b;text-shadow:1px 1px #24526d}.story-adventure .sa-hud-value,.story-adventure .sa-hud-energy,.story-adventure .sa-hud-currency{display:flex;align-items:center;gap:9px;min-width:110px;height:34px;padding:1px 12px;border:4px solid #93734f;border-radius:3px;background:linear-gradient(#fffdf4,#e3e8df);box-shadow:inset 0 2px 3px #847d63,1px 2px 2px #264a3659;font-size:19px;font-weight:bold;white-space:nowrap}.story-adventure .sa-hud-value{margin-left:-25px;padding-left:15px;font-size:17px}.story-adventure .sa-hud-energy>svg,.story-adventure .sa-hud-currency>svg{width:30px;height:43px;margin-left:-18px;flex:0 0 30px}.story-adventure .sa-hud .sa-manual{pointer-events:auto;color:#fff9db;text-shadow:1px 1px #344630}.story-adventure .sa-hud .sa-manual>span{display:none}
.story-adventure.sa-map{width:100%;height:100%;min-height:480px;overflow:hidden;background-image:var(--story-map);background-size:cover;background-position:center}.story-adventure.sa-map:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,transparent 40%,#4e371836);z-index:1}.story-adventure .sa-map-content{position:absolute;left:4%;right:5%;top:16%;bottom:17%;z-index:2}.story-adventure .sa-map-routes{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.story-adventure .sa-map-routes path{fill:none;stroke:#fbf9e9;stroke-width:4;stroke-dasharray:8 12;stroke-linecap:round;filter:drop-shadow(1px 2px 1px #484c35)}.story-adventure .sa-mission-node{position:absolute;transform:translate(-50%,-50%);width:82px;height:65px;padding:0;border:0;background:transparent;overflow:visible;color:#625d44}.story-adventure .sa-mission-node:disabled{opacity:.68;filter:grayscale(.85)}.story-adventure .sa-node-label{position:absolute;z-index:2;left:50%;bottom:56px;transform:translateX(-50%);min-width:132px;max-width:170px;height:54px;padding:9px 10px;background:#fffbdc;border:2px solid #a58d54;box-shadow:1px 2px 2px #39483378;border-radius:2px;text-align:center;white-space:nowrap}.story-adventure .sa-label-below .sa-node-label{bottom:auto;top:60px}.story-adventure .sa-node-label:after{content:"";position:absolute;left:50%;bottom:-10px;border-top:10px solid #fffbdc;border-left:10px solid transparent;transform:translateX(-50%)}.story-adventure .sa-label-below .sa-node-label:after{top:-10px;bottom:auto;border-top:0;border-bottom:10px solid #fffbdc}.story-adventure .sa-node-label>.sa-stars{position:absolute;left:7px;top:-11px;font-size:15px}.story-adventure .sa-node-label>strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis}.story-adventure .sa-node-label>small{position:absolute;right:4px;top:-14px;background:#fbfae7c2;color:#c77331;font-size:10px;font-weight:bold}.story-adventure .sa-node-scroll{position:absolute;z-index:1;inset:0;display:block;filter:drop-shadow(1px 2px 2px #3e563d)}.story-adventure .sa-node-scroll>img{position:absolute;left:15px;top:-7px;width:51px;height:56px;transform:rotate(37deg)}.story-adventure .sa-node-scroll>svg{position:absolute;left:0;top:19px;width:82px;height:50px}.story-adventure .sa-node-harvest{position:absolute;left:-10px;right:-10px;bottom:-16px;color:#95ff7d;font-size:12px;text-shadow:1px 1px #36502c}.story-adventure .sa-arc-intro{position:absolute;left:19px;bottom:80px;max-width:270px;padding:8px 12px;border:1px solid #b9a77366;background:#fff8dcbf;border-radius:5px;z-index:3;font-size:11px;line-height:1.35;pointer-events:none}.story-adventure .sa-arc-intro>strong{font-size:12px;display:block;margin-bottom:3px}.story-adventure .sa-map-footer{position:absolute;left:20px;right:20px;bottom:12px;display:flex;align-items:center;gap:10px;z-index:4}.story-adventure .sa-map-caption{min-width:150px;text-align:center;color:#fff6da;text-shadow:1px 2px #41513b}.story-adventure .sa-map-caption>strong{display:block;font-size:21px}.story-adventure .sa-map-caption>small{font-size:12px}.story-adventure .sa-map-footer>.sa-action{min-width:36px;padding-left:4px;padding-right:4px}.story-adventure .sa-map-stars{font-size:17px;font-weight:bold;color:#fbd951;text-shadow:1px 2px #5c613d;white-space:nowrap}.story-adventure .sa-map-controls{margin-left:auto;display:flex;gap:4px}.story-adventure .sa-map-controls>.sa-action{min-width:64px;font-size:13px;height:38px}.story-adventure .sa-compass{position:relative;width:52px;height:58px;flex:0 0 52px;color:#dfc96b;text-align:center;text-shadow:1px 1px #756239}.story-adventure .sa-compass>b{display:block;font-size:10px}.story-adventure .sa-compass>i{font-style:normal;font-size:45px;line-height:44px}
.story-adventure.sa-mission-book{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(190px,1fr);gap:10px;width:100%;min-height:490px;position:relative;background:transparent;padding:15px 12px 10px}.story-adventure .sa-book-leaf{position:relative;min-width:0;display:flex;flex-direction:column;border:12px solid transparent;border-image:none;background:#fffdf0;border-radius:12px;box-shadow:0 2px 4px #6f5e3975;padding:20px 18px 12px;background-image:url('/assets/recruit-synthesis/reference-v1/ui/paper-frame-nine-slice.svg');background-position:center;background-size:100% 100%;background-repeat:no-repeat;background-origin:border-box;background-clip:border-box}.story-adventure .sa-mission-leaf>.sa-title{left:16px;top:-30px;font-size:24px}.story-adventure .sa-mission-narrative{min-height:38px;margin-bottom:12px;font-size:13px;line-height:1.4}.story-adventure .sa-evaluation{display:flex;align-items:center;gap:12px;border:1px solid #b39c66;align-self:flex-start;height:27px;margin-bottom:15px}.story-adventure .sa-evaluation>b{background:#e6832d;color:#fff;padding:5px 7px;font-size:12px}.story-adventure .sa-evaluation>.sa-stars{padding-right:8px;font-size:18px}.story-adventure .sa-progress-heading{display:flex;align-items:center;gap:15px;font-size:12px;margin-bottom:9px}.story-adventure .sa-progress-heading>small{margin-left:auto;font-size:10px}.story-adventure .sa-progress-buttons{display:flex;gap:9px;padding:10px 13px;border:2px solid #aaa98a;background:#e5e5cf;border-radius:10px;margin-bottom:14px}.story-adventure .sa-progress-buttons>button{height:30px;width:30px;border:2px solid #86554b;border-radius:8px;background:linear-gradient(#ba6456,#7d302a);color:#fff5de;font-weight:bold;font-size:17px;text-shadow:1px 1px #744634;padding:0}.story-adventure .sa-progress-buttons>button.selected{background:linear-gradient(#fc5527,#d8180e);border-color:#f0a174;box-shadow:0 0 4px #d78a51}.story-adventure .sa-enemy-summary{display:flex;align-items:center;gap:12px;min-height:40px;flex-wrap:wrap}.story-adventure .sa-enemy-summary>span{display:flex;align-items:center;gap:5px;font-size:12px}.story-adventure .sa-enemy-summary svg{width:25px;height:25px}.story-adventure .sa-enemy-summary b{font-size:17px;color:#b14c3d}.story-adventure .sa-enemy-summary>small{font-size:11px;color:#9b7955;margin-left:auto}.story-adventure .sa-mission-cost{display:flex;align-items:center;gap:9px;border-top:1px solid #dfdece;padding-top:8px;margin:7px 0 12px;font-size:13px}.story-adventure .sa-mission-cost>svg{height:25px;width:24px}.story-adventure .sa-mission-cost>small{margin-left:auto;font-size:10px}.story-adventure .sa-harvest-picker{border-top:1px solid #dfdece;padding-top:9px;margin-bottom:8px}.story-adventure .sa-harvest-picker h3{display:flex;align-items:center;gap:8px;font-size:12px;margin-bottom:7px}.story-adventure .sa-harvest-picker h3 small{font-size:10px;font-weight:normal;color:#a0906a;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-adventure .sa-worker-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.story-adventure .sa-worker-card{min-width:0;display:flex;flex-direction:column;align-items:center;border:1px solid #c6bea1;border-radius:5px;background:#f6f2df;padding:4px 2px;color:#736547;--grade:#419dbb}.story-adventure .sa-worker-card>span{height:34px;width:34px;border:2px solid var(--grade);background:#e9e6d5;overflow:hidden}.story-adventure .sa-worker-card svg{height:100%;width:100%}.story-adventure .sa-worker-card>strong{font-size:8px;display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.story-adventure .sa-worker-card>small{font-size:9px}.story-adventure .sa-worker-card.selected{border-color:#c5a652;box-shadow:0 0 4px #e7c866;background:#fff4c9}.story-adventure .sa-harvest-picker .sa-pager{font-size:10px;margin-top:5px}.story-adventure .sa-harvest-picker .sa-pager button{width:22px;height:21px;font-size:18px}.story-adventure .sa-no-workers{grid-column:1/-1;font-size:10px;color:#a08d67;padding:8px 3px}.story-adventure .sa-harvest-jobs{max-height:70px;overflow:auto;font-size:10px;border-top:1px solid #e0d8bf;margin-top:3px}.story-adventure .sa-harvest-jobs>div{display:flex;align-items:center;gap:6px;min-height:26px;border-bottom:1px solid #e6ddc7}.story-adventure .sa-harvest-jobs>div>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.story-adventure .sa-harvest-jobs time{white-space:nowrap}.story-adventure .sa-harvest-jobs .sa-action{font-size:10px;height:25px;min-width:55px;border-width:6px;padding:0 4px}.story-adventure .sa-harvest-jobs button[aria-label]{border:1px solid #c0b091;background:#ece3c9;color:#8a6951;border-radius:4px}.story-adventure .sa-availability{font-size:10px;line-height:1.25;min-height:18px;color:#ac7952;margin:5px 0}.story-adventure .sa-mission-actions{display:flex;justify-content:space-around;gap:14px;margin-top:auto}.story-adventure .sa-mission-actions>.sa-action{min-width:120px}.story-adventure .sa-reward-leaf{padding:18px 12px 12px;align-items:center;text-align:center}.story-adventure .sa-draw-heading{position:relative;color:#ffcf27;text-shadow:2px 2px #b87527,-1px -1px #b87527;font-size:24px;line-height:1.15;transform:rotate(-5deg);padding-right:35px;margin-bottom:16px}.story-adventure .sa-draw-heading>strong{font-size:26px}.story-adventure .sa-draw-heading>span{position:absolute;right:-7px;top:-12px;font-size:45px;transform:rotate(5deg)}.story-adventure .sa-reward-leaf>p{font-size:12px;margin-bottom:13px}.story-adventure .sa-reward-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;width:100%;margin-bottom:14px}.story-adventure .sa-reward-cell{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0;height:79px;padding:5px 4px 14px;background:linear-gradient(#fdfefa,#e8ede9);border:3px solid #cdd2cb;border-radius:9px;box-shadow:inset 0 0 2px #7ba7c1}.story-adventure .sa-reward-cell>img,.story-adventure .sa-reward-cell>svg{height:46px;width:46px;max-width:100%}.story-adventure .sa-reward-cell>b{position:absolute;right:5px;bottom:14px;color:#fff8dc;font-size:12px;text-shadow:1px 1px #48523c,-1px -1px #48523c}.story-adventure .sa-reward-cell>small{position:absolute;bottom:2px;left:2px;right:2px;font-size:8px;color:#74816b;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.story-adventure .sa-draw-note{font-size:10px!important;color:#9a8a63;line-height:1.4;margin-top:10px!important}.story-adventure .sa-reward-leaf>.sa-manual{margin-top:auto;font-size:10px}.story-adventure .sa-book-binding{position:absolute;left:64.5%;top:26%;bottom:25%;width:23px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none;z-index:3}.story-adventure .sa-book-binding>i{height:5px;width:26px;border-radius:50%;background:#94803e;border:1px solid #756335;transform:rotate(-20deg)}
.story-adventure.sa-setup{height:100%;width:100%;min-height:530px;overflow:hidden;background:#2c3c1c url('/assets/environment/forest-arena.png') center/cover no-repeat;color:#fffbe3}.story-adventure .sa-battle-bars{position:absolute;top:13%;left:8%;right:8%;display:flex;align-items:center;gap:13px;z-index:2;height:40px}.story-adventure .sa-battle-bars>span{display:flex;gap:10px;align-items:center;justify-content:space-between;flex:1;min-width:0;height:34px;padding:0 12px;border:2px solid #8bc9ce;border-radius:3px 3px 25px 25px;background:linear-gradient(#70dbe8,#138bbb)}.story-adventure .sa-battle-bars>span:last-child{background:linear-gradient(#ffb447,#f18531);border-color:#e9c065}.story-adventure .sa-battle-bars b{font-size:19px;text-shadow:1px 1px #916128;flex-shrink:0}.story-adventure .sa-battle-bars small{font-size:12px;color:#fff5da;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.story-adventure .sa-battle-bars>strong{min-width:67px;text-align:center;padding:7px;background:#b09468;border:3px solid #a4b780;border-radius:8px}.story-adventure .sa-class-rule{position:absolute;top:20%;right:9%;display:flex;align-items:center;gap:5px;font-size:10px}.story-adventure .sa-class-rule>svg{width:19px;height:19px}.story-adventure .sa-battle-board{position:absolute;left:17%;right:17%;top:25%;bottom:31%;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:3px}.story-adventure .sa-board-cell{position:relative;min-width:0;min-height:0;border:2px solid #ebe7c780;border-radius:6px;padding:0;background:#b8b99e1f;overflow:visible}.story-adventure .sa-board-cell:disabled{opacity:1;filter:none}.story-adventure .sa-board-cell.ally-zone{background:#30a82d8a;border-color:#c8e49b99}.story-adventure .sa-board-cell.enemy-zone{background:#bfa46919}.story-adventure .sa-board-cell.selected{border-color:#f4e23d;box-shadow:0 0 4px #fff866}.story-adventure .sa-board-ninja{position:absolute;left:1px;right:1px;bottom:3px;height:137%;pointer-events:none;filter:drop-shadow(1px 2px 1px #1d281f99)}.story-adventure .sa-board-ninja>svg{width:100%;height:100%}.story-adventure .sa-board-ninja.enemy>svg{transform:scaleX(-1)}.story-adventure .sa-board-ninja>i{position:absolute;left:1px;bottom:3px;width:17px;height:17px}.story-adventure .sa-board-ninja>i>svg{width:100%;height:100%}.story-adventure .sa-board-ninja>b{position:absolute;right:2px;bottom:3px;width:7px;height:7px;border:1px solid #9bddf9;border-radius:50%;background:#298cce}.story-adventure .sa-board-ninja.enemy>b{background:#f56646;border-color:#f8bb91}.story-adventure .sa-setup-hint{position:absolute;left:20%;right:20%;bottom:22%;text-align:center;display:flex;flex-direction:column;gap:3px;text-shadow:1px 1px #263322}.story-adventure .sa-setup-hint>strong{color:#75eb3d;font-size:20px}.story-adventure .sa-setup-hint>span{font-size:12px}.story-adventure .sa-setup-hint>small{color:#ffda9d;font-size:10px;min-height:12px}.story-adventure .sa-roster-strip{position:absolute;left:8%;right:17%;bottom:2.5%;height:12.5%;min-height:78px;padding:7px 9px 5px;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;border:10px solid transparent;border-image:none;background:#fff7df;background-image:url('/assets/recruit-synthesis/reference-v1/ui/paper-frame-nine-slice.svg');background-position:center;background-size:100% 100%;background-repeat:no-repeat;background-origin:border-box;background-clip:border-box}.story-adventure .sa-roster-card{position:relative;min-width:0;border:1px solid #b6a87e;border-radius:7px;background:#f6edce;padding:4px 3px 0;--grade:#40a2c6;box-shadow:inset 0 1px 2px #b3a481}.story-adventure .sa-grade-purple{--grade:#9859b3}.story-adventure .sa-grade-red{--grade:#d4513e}.story-adventure .sa-grade-gold{--grade:#b18e29}.story-adventure .sa-roster-card>strong{position:absolute;left:-3px;right:-3px;top:-18px;font-size:10px;line-height:12px;color:var(--grade);text-shadow:1px 1px #fff6dd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.story-adventure .sa-roster-face{position:relative;display:block;height:76%;width:100%;border:2px solid var(--grade);background:#e9e6d6;overflow:hidden}.story-adventure .sa-roster-face>svg{width:100%;height:100%}.story-adventure .sa-roster-face>i{position:absolute;right:-1px;bottom:-5px;font-size:30px;line-height:30px;font-style:normal;font-weight:bold;color:#78c94a;text-shadow:1px 1px #31502b;transform:rotate(-10deg)}.story-adventure .sa-roster-level{height:17px;display:flex;gap:2px;align-items:center;justify-content:center;font-size:9px;color:#7c7252;white-space:nowrap}.story-adventure .sa-roster-level>svg{height:12px;width:12px}.story-adventure .sa-roster-strip>.sa-pager{position:absolute;left:-33px;right:-32px;top:25%;justify-content:space-between;pointer-events:none}.story-adventure .sa-roster-strip>.sa-pager>button{pointer-events:auto;width:23px;height:25px;font-size:20px}.story-adventure .sa-roster-strip>.sa-pager>span{display:none}.story-adventure .sa-setup-actions{position:absolute;right:3%;bottom:3%;display:flex;align-items:center;flex-direction:column;gap:7px}.story-adventure .sa-setup-actions>.sa-action{min-width:95px;height:32px;font-size:12px;border-width:7px}.story-adventure .sa-setup-actions>.sa-orange{height:61px;max-width:110px;white-space:normal;font-size:19px;line-height:1.15}
.story-adventure.sa-lucky-draw{padding:35px 24px 20px;border:12px solid transparent;border-image:none;background:#fff9e6;text-align:center;min-height:320px;background-image:url('/assets/recruit-synthesis/reference-v1/ui/paper-frame-nine-slice.svg');background-position:center;background-size:100% 100%;background-repeat:no-repeat;background-origin:border-box;background-clip:border-box}.story-adventure.sa-lucky-draw>p{font-size:12px;color:#9b8155;margin-bottom:15px}.story-adventure .sa-draw-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;margin-bottom:17px}.story-adventure .sa-draw-cards>button{height:110px;border:4px solid #cbab63;border-radius:9px;background:radial-gradient(#81c7d5,#146193);box-shadow:1px 3px 4px #c8b17c}.story-adventure .sa-draw-cards>button>span{color:#ffee95;font-size:52px;font-weight:bold;text-shadow:2px 3px #345668}.story-adventure.sa-lucky-draw>.sa-reward-grid{grid-template-columns:repeat(6,minmax(0,1fr));margin-top:10px}.story-adventure.sa-lucky-draw>h3{font-size:13px;color:#9a875e}.story-adventure.sa-draw-result{display:flex;align-items:center;flex-direction:column;gap:10px;padding:20px 30px;text-align:center;background:#fff9e5;border:8px solid #cfb97e;border-radius:13px;min-width:280px}.story-adventure.sa-draw-result>h2{font-size:23px;color:#b88c31}.story-adventure .sa-revealed-reward{width:105px;height:105px;padding:10px;border:3px solid #d4b266;border-radius:12px;background:radial-gradient(#fff7be,#e9e6d6);animation:story-reward-pop .45s ease-out both}.story-adventure .sa-revealed-reward>img,.story-adventure .sa-revealed-reward>svg{height:100%;width:100%}.story-adventure.sa-draw-result>strong{font-size:17px;color:#997344}.story-adventure.sa-draw-result>p{font-size:11px;color:#8b805f}.story-adventure .sa-missing-art{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:1px dashed #a4a38f;border-radius:6px;color:#918462;font-size:22px;background:#e9e7d54d}.story-adventure.sa-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;min-height:220px;color:#806c4b;background:#fff9e4}
@keyframes story-reward-pop{0%{opacity:0;transform:scale(.65) rotate(-5deg)}70%{opacity:1;transform:scale(1.08) rotate(2deg)}100%{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.story-adventure .sa-revealed-reward{animation:none}}
@media(max-width:900px){.story-adventure.sa-overview{padding-left:18px;padding-right:18px}.story-adventure .sa-arc-grid{gap:13px;grid-auto-rows:148px}.story-adventure .sa-arc-card{padding-left:9px;padding-right:9px}.story-adventure .sa-arc-card h3{font-size:14px}.story-adventure .sa-arc-preview>b{font-size:36px}.story-adventure .sa-saga-card>strong{font-size:10px}.story-adventure .sa-saga-ninja{width:94px}.story-adventure .sa-hud{left:13px;right:13px}.story-adventure .sa-hud-group{gap:10px}.story-adventure .sa-hud-value,.story-adventure .sa-hud-energy,.story-adventure .sa-hud-currency{min-width:90px;font-size:15px;height:31px}.story-adventure .sa-hud-value{font-size:12px}.story-adventure .sa-map-footer{gap:6px;left:10px;right:10px}.story-adventure .sa-map-caption{min-width:115px}.story-adventure .sa-map-caption>strong{font-size:16px}.story-adventure .sa-map-stars{font-size:12px}.story-adventure .sa-map-footer>.sa-action{font-size:11px}.story-adventure .sa-map-controls>.sa-action{min-width:45px;font-size:10px;padding-left:4px;padding-right:4px}.story-adventure .sa-compass{width:35px;flex-basis:35px}.story-adventure .sa-node-label{min-width:109px;max-width:132px;padding-left:6px;padding-right:6px}.story-adventure .sa-node-label>strong{font-size:12px}.story-adventure .sa-arc-intro{max-width:210px;font-size:9px}.story-adventure .sa-book-leaf{padding-left:12px;padding-right:12px}.story-adventure .sa-mission-actions>.sa-action{min-width:95px;font-size:13px}.story-adventure .sa-reward-cell{height:70px}.story-adventure .sa-reward-cell>img,.story-adventure .sa-reward-cell>svg{height:40px;width:40px}.story-adventure .sa-draw-heading{font-size:22px}.story-adventure .sa-draw-heading>strong{font-size:23px}.story-adventure .sa-battle-board{left:16%;right:16%}.story-adventure .sa-roster-strip{gap:4px}.story-adventure .sa-roster-card>strong{font-size:8px}.story-adventure .sa-setup-hint>span{font-size:11px}}
@media(max-width:650px){.story-adventure.sa-overview{min-height:390px;padding-left:9px;padding-right:9px}.story-adventure .sa-arc-grid{grid-auto-rows:132px;gap:11px 9px}.story-adventure .sa-mode-tabs{left:37%}.story-adventure .sa-mode-tabs button{min-width:95px;font-size:13px;height:36px}.story-adventure .sa-title{font-size:25px}.story-adventure .sa-arc-card h3{font-size:11px}.story-adventure .sa-arc-harvest{font-size:10px;gap:3px}.story-adventure .sa-arc-harvest>small{font-size:7px}.story-adventure .sa-saga-card h3{font-size:18px}.story-adventure .sa-saga-card p{font-size:9px}.story-adventure .sa-saga-card>strong{font-size:8px;max-width:58%}.story-adventure .sa-saga-ninja{width:70px;height:126px}.story-adventure .sa-saga-ninja.naruto{right:67px}.story-adventure .sa-saga-ninja.pain{right:26px}.story-adventure .sa-saga-card>small{font-size:9px}.story-adventure .sa-hud-group{gap:7px}.story-adventure .sa-hud-value{display:none}.story-adventure .sa-hud-level{width:42px;height:42px}.story-adventure .sa-hud-level>b{font-size:20px}.story-adventure .sa-hud-energy,.story-adventure .sa-hud-currency{min-width:75px;font-size:12px;padding-right:7px}.story-adventure .sa-hud-energy>svg,.story-adventure .sa-hud-currency>svg{height:35px;width:23px;flex-basis:23px}.story-adventure .sa-map-content{left:5%;right:8%;top:20%;bottom:25%}.story-adventure .sa-node-label{min-width:87px;max-width:104px;height:44px;padding:8px 4px;bottom:45px}.story-adventure .sa-label-below .sa-node-label{top:51px}.story-adventure .sa-node-label>strong{font-size:10px}.story-adventure .sa-node-label>.sa-stars{font-size:11px;top:-8px}.story-adventure .sa-node-label>small{font-size:8px;top:-11px}.story-adventure .sa-mission-node{width:62px;height:49px}.story-adventure .sa-node-scroll>img{width:38px;height:45px;left:10px}.story-adventure .sa-node-scroll>svg{width:62px;height:39px;top:13px}.story-adventure .sa-arc-intro{display:none}.story-adventure .sa-map-footer{flex-wrap:wrap;justify-content:center;bottom:7px}.story-adventure .sa-compass{display:none}.story-adventure .sa-map-controls{width:100%;justify-content:center;margin-left:0}.story-adventure.sa-mission-book{grid-template-columns:minmax(0,1.6fr) minmax(155px,1fr);gap:5px;padding-left:3px;padding-right:3px;min-height:465px}.story-adventure .sa-book-leaf{border-width:8px;padding-left:9px;padding-right:9px}.story-adventure .sa-mission-leaf>.sa-title{font-size:18px;top:-24px;left:8px}.story-adventure .sa-mission-narrative{font-size:10px;min-height:35px}.story-adventure .sa-progress-heading{font-size:10px;gap:6px}.story-adventure .sa-progress-heading>small{display:none}.story-adventure .sa-progress-buttons{gap:5px;padding:7px 6px;flex-wrap:wrap}.story-adventure .sa-progress-buttons>button{height:25px;width:25px;font-size:14px}.story-adventure .sa-worker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.story-adventure .sa-worker-card{flex-direction:row;flex-wrap:wrap;gap:3px;justify-content:center}.story-adventure .sa-worker-card>span{width:25px;height:25px}.story-adventure .sa-worker-card>strong{display:none}.story-adventure .sa-worker-card>small{font-size:8px}.story-adventure .sa-enemy-summary{gap:5px}.story-adventure .sa-enemy-summary svg{height:18px;width:18px}.story-adventure .sa-enemy-summary b{font-size:13px}.story-adventure .sa-enemy-summary>small{font-size:9px}.story-adventure .sa-mission-cost{font-size:10px;gap:5px}.story-adventure .sa-mission-cost>small{font-size:8px}.story-adventure .sa-mission-actions{gap:6px}.story-adventure .sa-mission-actions>.sa-action{min-width:76px;height:33px;font-size:11px;border-width:7px;padding-left:3px;padding-right:3px}.story-adventure .sa-draw-heading{font-size:16px;padding-right:15px}.story-adventure .sa-draw-heading>strong{font-size:18px}.story-adventure .sa-draw-heading>span{font-size:30px}.story-adventure .sa-reward-grid{gap:7px}.story-adventure .sa-reward-cell{height:61px;border-width:2px}.story-adventure .sa-reward-cell>small{font-size:7px}.story-adventure .sa-reward-leaf>.sa-action{min-width:90px;font-size:12px}.story-adventure .sa-book-binding{display:none}.story-adventure .sa-battle-bars{left:5%;right:5%}.story-adventure .sa-battle-bars b{font-size:14px}.story-adventure .sa-battle-bars small{font-size:9px}.story-adventure .sa-class-rule{font-size:8px;right:5%}.story-adventure .sa-battle-board{left:9%;right:9%}.story-adventure .sa-roster-strip{left:6%;right:19%;gap:3px;padding-left:3px;padding-right:3px;border-width:7px}.story-adventure .sa-roster-face{border-width:1px}.story-adventure .sa-roster-level{font-size:7px;gap:0}.story-adventure .sa-roster-level>svg{width:9px;height:9px}.story-adventure .sa-roster-card>strong{font-size:7px}.story-adventure .sa-setup-actions{right:2%}.story-adventure .sa-setup-actions>.sa-action{min-width:68px;font-size:10px}.story-adventure .sa-setup-actions>.sa-orange{max-width:75px;font-size:15px}.story-adventure .sa-setup-hint{left:10%;right:10%}.story-adventure .sa-setup-hint>strong{font-size:17px}.story-adventure .sa-setup-hint>span{font-size:9px}.story-adventure .sa-draw-cards{gap:6px}.story-adventure .sa-draw-cards>button{height:75px;border-width:3px}.story-adventure .sa-draw-cards>button>span{font-size:35px}}

.story-fullscreen-host{position:absolute;inset:0;width:100%;height:100%;z-index:55;border:0;padding:0;overflow:hidden;isolation:isolate}
.story-adventure .sa-story-actor-art{width:100%;height:100%;object-fit:contain}.story-adventure .sa-board-ninja.enemy>.sa-story-actor-art{transform:scaleX(-1)}
#game-container[data-motion='reduced'] .story-adventure .sa-revealed-reward{animation:none}

/* Overview is hosted directly at game width; use that container's scale once. */
.story-adventure.sa-overview{min-height:0;padding:2.1cqw 1.7cqw 3.7cqw;border-width:.8cqw;font-size:1.2cqw}
.story-adventure.sa-overview .sa-title{font-size:2.4cqw;left:1.6cqw;top:-2cqw}
.story-adventure.sa-overview .sa-close{width:3.2cqw;height:3.2cqw;top:-1.4cqw;right:-1.1cqw}
.story-adventure.sa-overview .sa-mode-tabs{top:-2cqw;left:43%;gap:.3cqw}
.story-adventure.sa-overview .sa-mode-tabs button{min-width:9cqw;height:3.5cqw;padding:.5cqw 1cqw;font-size:1.4cqw}
.story-adventure.sa-overview .sa-arc-grid{grid-auto-rows:13cqw;gap:1.2cqw 1.3cqw}
.story-adventure.sa-overview .sa-arc-card{padding:.9cqw 1cqw .7cqw}
.story-adventure.sa-overview .sa-arc-card h3{top:-.8cqw;left:.6cqw;right:.3cqw;font-size:1.35cqw;line-height:1.5cqw}
.story-adventure.sa-overview .sa-arc-preview{margin:.3cqw 0 .55cqw}
.story-adventure.sa-overview .sa-arc-preview>b{font-size:3.5cqw}
.story-adventure.sa-overview .sa-arc-harvest{font-size:1.1cqw;gap:.5cqw}
.story-adventure.sa-overview .sa-arc-harvest>small{font-size:.8cqw}
.story-adventure.sa-overview .sa-lock-reason{bottom:2.6cqw;font-size:.9cqw;padding:.25cqw}
.story-adventure.sa-overview .sa-saga-card{padding:1cqw 1.1cqw}
.story-adventure.sa-overview .sa-saga-card h3{font-size:1.8cqw;margin-bottom:.4cqw}
.story-adventure.sa-overview .sa-saga-card p{font-size:1.05cqw;line-height:1.35}
.story-adventure.sa-overview .sa-saga-card>strong{font-size:1cqw;margin-top:.3cqw;max-width:60%}
.story-adventure.sa-overview .sa-saga-card>small{font-size:.9cqw;bottom:.65cqw;left:1cqw}
.story-adventure.sa-overview .sa-saga-ninja{width:8cqw;height:12cqw;bottom:-1.4cqw}
.story-adventure.sa-overview .sa-saga-ninja.naruto{right:8cqw}.story-adventure.sa-overview .sa-saga-ninja.pain{right:3.7cqw;bottom:-1.1cqw}.story-adventure.sa-overview .sa-saga-ninja.sasuke{right:-1cqw}
.story-adventure.sa-overview>.sa-pager{bottom:.8cqw;font-size:1cqw;gap:1.1cqw}
.story-adventure.sa-overview>.sa-pager button{width:2.4cqw;height:2.4cqw;font-size:1.9cqw;line-height:1.6cqw}
.story-adventure.sa-overview .sa-overview-footer{font-size:.85cqw;bottom:.6cqw;left:1.6cqw;right:1.6cqw}
/* The transparent footer spans the pager row; only its Manual control handles clicks. */
.story-adventure.sa-overview .sa-overview-footer{pointer-events:none}
.story-adventure.sa-overview .sa-overview-footer>.sa-manual{pointer-events:auto}
.story-adventure.sa-overview .sa-manual{font-size:.9cqw}.story-adventure.sa-overview .sa-manual>svg{width:2.5cqw;height:2.8cqw}
.story-adventure .sa-harvest-duty-note{font-size:9px;line-height:1.25;color:#9c8b69;margin:3px 0 6px}
.story-adventure .sa-map-tools{position:absolute;right:18px;bottom:80px;z-index:5;display:flex;gap:9px;align-items:flex-end;max-width:38%;flex-wrap:wrap;justify-content:flex-end}
.story-adventure .sa-map-tools>button{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:55px;max-width:75px;background:transparent;border:0;padding:0;color:#fffadf;text-shadow:1px 1px #51472b,-1px -1px #51472b;font-size:10px;font-weight:bold}
.story-adventure .sa-map-tools>button>svg{width:46px;height:48px;filter:drop-shadow(1px 2px 1px #685735)}.story-adventure .sa-map-tools>button>b{position:absolute;top:1px;right:0;padding:2px 5px;background:#c44529;border:1px solid #ffdf98;border-radius:20px;font-size:10px}.story-adventure .sa-map-tools>button>span{white-space:nowrap}
@media(max-width:650px){.story-adventure .sa-map-tools{right:8px;bottom:100px;gap:5px}.story-adventure .sa-map-tools>button{font-size:8px;min-width:46px}.story-adventure .sa-map-tools>button>svg{width:37px;height:39px}}
@media(max-width:900px){}
@media(max-width:650px){}
/* The Story plaque owns its title size and protrudes above the paper. */
.story-adventure.sa-overview>.sa-title{left:.7cqw;top:-1.28em;z-index:6;max-width:none;overflow:visible;text-overflow:clip;font-size:4cqw;line-height:1;font-weight:900;letter-spacing:-.025em;white-space:nowrap;padding:.16em .4em .2em;border:.055em solid #b28c45;border-radius:.24em .3em .2em .18em;background:linear-gradient(175deg,#fffdf0 0%,#fff3cc 62%,#efc77e 100%);color:#fffdef;-webkit-text-stroke:.035em #745a37;paint-order:stroke fill;text-shadow:0 .055em #765738,.035em .035em #765738,-.035em -.015em #765738;box-shadow:inset 0 0 0 .055em #fff8dd,0 .045em .04em #70563955;transform:rotate(-3deg)}
/* The generic popup fitter stores old heading sizes with an important rule. */
#game-container[data-approved-ui] .story-adventure.sa-overview>.sa-title{font-size:4cqw!important}
/* Guaranteed player EXP is separate from the random item draw. */
.story-adventure .sa-exp-summary{display:flex;align-items:center;gap:8px;margin:0 0 10px;padding:7px 8px;border:1px solid #c6b782;border-radius:7px;background:#f5efd8}
.story-adventure .sa-exp-summary>svg{flex:none;width:28px;height:28px}
.story-adventure .sa-exp-summary>div{display:grid;gap:3px;min-width:0}
.story-adventure .sa-exp-summary strong{font-size:12px;color:#728036}
.story-adventure .sa-exp-summary span{font-size:11px;color:#605538}
.story-adventure .sa-exp-summary small{font-size:9px;line-height:1.35;color:#83734f}
/* Dedicated Lucky Draw artwork keeps text and ticket badges independent. */
#game-container[data-approved-ui] #modal-root [data-recruit-shell="story-mission"] .story-adventure.sa-lucky-draw{overflow:visible!important}
#game-container .sa-map-tools .sa-lucky-gift{display:block;width:46px;height:48px;object-fit:contain;filter:drop-shadow(1px 2px 1px #685735)}
#game-container .sa-draw-heading .sa-lucky-gift{display:block;width:64px;height:64px;object-fit:contain}
#game-container .story-adventure .sa-draw-cards>button{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;min-width:0;min-height:0;border:0;padding:0;background:none;box-shadow:none;border-radius:9px}
#game-container .story-adventure .sa-draw-cards>button>.sa-lucky-gift{display:block;width:100%;height:100%!important;max-height:100%;min-height:0;object-fit:contain;pointer-events:none}
#game-container .story-adventure .sa-draw-cards>button:focus-visible{outline:3px solid #fff0a3;outline-offset:3px}
@media(max-width:650px){#game-container .sa-map-tools .sa-lucky-gift{width:37px;height:39px}#game-container .sa-draw-heading .sa-lucky-gift{width:42px;height:42px}}
