/* Mobile purchase and formation each own their screen. */
.actor-card{position:fixed;z-index:30;bottom:max(6px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(520px,calc(100vw - 16px));max-height:52dvh;overflow:auto;overscroll-behavior:contain;padding:10px;background:linear-gradient(115deg,#fbefd7,#ecdcba);border:1px solid #987b52;border-radius:9px 9px 4px 4px;box-shadow:0 -5px 22px #20323d55;text-align:left;animation:paper-unfold .12s ease-out}
.actor-card[hidden]{display:none}.actor-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.actor-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 10px}.actor-heading h3{font-size:20px}.actor-heading span{font-size:12px;color:#36565b}.actor-heading button{min-height:32px;min-width:36px;padding:2px;font-size:20px;box-shadow:none}.actor-card .actor-skill{font-size:11px;line-height:1.5;margin:4px 0}.actor-skill .skill-icon{width:20px;height:20px;margin-right:3px}.actor-skill strong{display:block;color:#355a52;font-weight:500}
.actor-card .specialization{margin-top:4px}.specialty-status{font-size:11px;line-height:1.5;color:#715239;margin-bottom:4px}.specialty-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}.actor-card .specialty-options button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;margin:0;padding:7px;text-align:left;border:1px solid #b0966a;background:#fff3d9;box-shadow:1px 2px 0 #ab8d5e66;white-space:normal;min-width:0}.specialty-options button:nth-child(2){background:#e5ead9;border-color:#839382}.actor-card .specialty-options button:disabled{opacity:1;filter:none;color:#746b5a;background:#e6dcc5;box-shadow:none}.actor-card .specialty-options b{font-size:13px;line-height:1.4}.actor-card .specialty-options strong{font-size:13px;color:#704b26}.actor-card .specialty-options span{font-size:11px;line-height:1.5;font-weight:400}.specialty-options small{font-size:9px;color:#60736a}.specialty-options em{font-size:10px;font-style:normal;border-top:1px dashed #b7a180;width:100%;padding-top:3px;margin-top:auto;color:#785333}.actor-actions{display:flex;gap:5px;margin-top:7px}.actor-actions button{flex:1;min-height:32px;box-shadow:none;font-size:10px;padding:5px 2px}.actor-open{padding-bottom:min(340px,54dvh)}.move-armed .actor-card [data-action="move-actor"]{background:#355b60;color:#fff1d3}.move-armed .slot{outline:2px dashed #9b6234;outline-offset:-4px}.slot.selected{outline:3px solid #b26934;outline-offset:-3px}.bench .selected{border:2px solid #b26934}
#notice.purchase-feedback{position:fixed;z-index:40;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 24px);padding:10px 14px;background:#355a52;color:#fff1d3;border:1px solid #c7b188;border-radius:4px;box-shadow:0 3px 12px #20323d55;font-size:12px;pointer-events:none}
@keyframes paper-unfold{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@media(max-height:600px){.actor-card{padding:8px}.actor-heading h3{font-size:18px}.actor-card .actor-skill{font-size:10px;margin:3px 0}.actor-card .specialty-options button{padding:5px;gap:1px}.actor-card .specialty-options span{font-size:10px;line-height:1.5}.actor-actions{margin-top:5px}.specialty-status{font-size:10px}}
@media(prefers-reduced-motion:reduce){.actor-card{animation:none}}
.shell{padding:10px 10px 18px}header{padding-bottom:8px}header a{font-size:23px}.seal{font-size:10px}footer{font-size:11px;padding-top:12px}.prep-tabs{display:flex;padding:6px;gap:6px;background:#243f46}.prep-tabs button{flex:1;min-height:36px;font-size:13px;padding:6px;box-shadow:none}.prep-tabs button[aria-pressed=true]{background:#e5cf9e;outline:1px solid #f7e7c1}.recruit-view,.formation-view{padding:10px}.shop-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:30px;gap:6px;font-size:12px;margin-bottom:5px}.shop-toolbar h2{font-size:20px}.gold{font-size:17px;color:#734e27}.product-card{background:#f6ead3;border:1px solid #b79c74;border-radius:5px;padding:10px;box-shadow:0 4px 0 #b49b7550}.product-title{display:flex;justify-content:space-between;gap:5px;align-items:center}.product-title h2{font-size:23px;line-height:1.15}.product-skill{font-size:12px;color:#775736}.price{font-size:16px;border:1px solid #b9a17a;padding:6px}.product-art{height:170px;display:flex;justify-content:center;position:relative;align-items:center;background:radial-gradient(ellipse,#e2cc9b88,transparent 65%);margin:3px 0}.product-portrait{height:100%;width:75%;object-fit:contain;filter:drop-shadow(1px 3px 1px #69564166)}.product-stats{position:absolute;right:0;top:20px;display:flex;flex-direction:column;gap:7px;align-items:end}.product-stats b{background:#e1cfaa;border:1px solid #b29a72;padding:5px;font-size:13px}.product-stats small{font-size:10px;color:#6e5a43}.core-skill{font-size:14px;font-weight:bold;line-height:1.5;color:#2b4c52;margin-bottom:5px}.trait-row{display:flex;flex-direction:column;gap:2px;font-size:11px;line-height:1.5}.trait-row b{color:#7c5637}.product-actions{display:flex;gap:6px;margin-top:9px}.product-actions button{box-shadow:none;font-size:12px;padding:8px;min-height:40px}.product-actions .primary{flex:1}.product-switch{display:flex;gap:4px;margin:9px 0;flex-wrap:wrap}.product-switch button{flex:1;font-size:11px;padding:6px 3px;min-height:34px;white-space:nowrap;box-shadow:none}.product-switch button[aria-pressed=true]{background:#b9c7b8;border-color:#466567}.recruit-tools{display:flex;align-items:center;justify-content:space-between;gap:6px}.recruit-tools>button{font-size:11px;padding:6px;box-shadow:none}.small-counter{display:flex;align-items:center;min-width:0;gap:3px}.small-counter #manager-npc{width:40px;height:52px;min-height:44px;padding:0;background:transparent;border:0;box-shadow:none;touch-action:none}.small-counter img{height:50px;width:36px;object-fit:contain}.small-counter .quiet{font-size:11px;padding:3px}.checkout{font-size:10px}.team-overview{margin:7px 0;font-size:10px;line-height:1.5;padding:6px;background:#d1c19d88;display:flex;justify-content:space-between;gap:10px}.team-overview span:last-child{max-width:68%;text-align:right}.budget-note{font-size:10px;line-height:1.6;margin-top:8px;color:#725d43}.placement-help{font-size:11px;line-height:1.5;margin-bottom:8px}.formation{margin:7px 0;gap:8px}.slot{min-height:100px;min-width:0;padding:5px;touch-action:none;transition:background .15s,border-color .15s;box-shadow:0 2px 0 #8a7350}.slot img{height:76px;width:60px;object-fit:contain;pointer-events:none}.slot>span{min-width:0;display:flex;flex-direction:column;font-size:12px}.slot small{font-size:10px;white-space:normal}.empty-slot{font-size:25px;min-width:35px}.slot.drop-target{border:2px solid #ba653e;background:#e5c590}.slot.preview-column{box-shadow:inset 0 0 0 2px #54766a}.bench{gap:5px;justify-content:flex-start;flex-wrap:wrap}.bench button{flex:0 1 calc(25% - 5px);min-width:54px;max-width:90px;font-size:10px;padding:4px;touch-action:none;box-shadow:none}.bench img{height:55px;width:44px;object-fit:contain;pointer-events:none}.bench span{display:block}.skill-preview{font-size:12px;line-height:1.6;padding:8px;margin:8px 0;min-height:38px}.selected-panel{padding:9px;background:#f5e6c8;border:1px solid #b89a70;margin:8px 0}.selected-panel>div:first-child{display:flex;flex-direction:column;gap:4px;font-size:12px}.selected-panel span{font-size:11px;line-height:1.6}.selected-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.selected-actions button{padding:5px;font-size:10px;box-shadow:none;flex:1}.specialization{margin-top:9px}.specialization summary{font-size:12px;cursor:pointer;min-height:36px;padding:8px 0}.specialization button{display:block;text-align:left;width:100%;margin:6px 0;padding:9px;box-shadow:none}.specialization b,.specialization span{display:block;font-size:11px;line-height:1.6}.specialized{font-size:12px;color:#385d55;padding-top:9px}.zero-warning{padding:8px;background:#f1d8b6;border-left:3px solid #a95c37;font-size:12px;line-height:1.6;margin:8px 0}.opponent-preview{background:#35525a;color:#f3e4c8;padding:9px;font-size:11px;margin:9px 0}.opponent-preview span{display:block;line-height:1.6;margin:4px 0}.opponent-preview>div{display:grid;grid-template-columns:1fr 1fr;gap:4px}.opponent-preview small{font-size:10px}.formation-ghost{position:fixed;transform:translate(-50%,-60%);pointer-events:none;z-index:1000;width:75px;height:95px;filter:drop-shadow(2px 3px 2px #49341f88)}.formation-ghost img{width:100%;height:100%;object-fit:contain}.capture-panel{padding:9px;margin:5px 0 10px}.capture-panel h3{font-size:18px}.capture-panel p{font-size:12px}.capture-actions{display:flex;flex-wrap:wrap;gap:5px}.capture-panel button{font-size:11px;padding:6px;margin:3px 0;box-shadow:none}.capture-panel label{font-size:12px;display:flex;align-items:center;gap:6px;margin:6px 0}.capture-panel select{min-height:36px;max-width:160px;font-size:12px}
/* Four rows stay on the same two column axes. */
.stage-head{padding:10px}.stage-head h2{font-size:20px}.stage-head span{font-size:10px}.stage-wrap{padding:0}.arena{height:520px;background-image:linear-gradient(#dfd5bdc7,#dfd5bdc7),url('assets/arena.webp')}.arena:after{box-shadow:inset 0 0 40px #5c4d3522}.unit{height:102px;width:100px}.unit img{height:82px;max-width:94px;filter:drop-shadow(1px 0 #fff6df) drop-shadow(-1px 0 #fff6df) drop-shadow(1px 3px 2px #594a36aa)}.unit:before{left:12px;right:12px}.unit .pips{gap:3px}.unit .pips i{width:7px;height:7px}.unit.dead{opacity:0;visibility:hidden}.box{z-index:4}.box img{width:38px;height:34px}.team-label{font-size:10px;top:5px}.team-label.ally{top:51%}.causal{padding:10px;min-height:62px}.causal b{font-size:15px;line-height:1.5}.causal span{font-size:11px;line-height:1.6}.event{min-height:48px;font-size:12px;padding:8px 10px}.play-controls{position:sticky;bottom:0;background:#e7d7b8f2;padding:8px;z-index:20;gap:6px}.play-controls button{padding:8px;font-size:12px;box-shadow:none}.skill-tag{font-size:11px;max-width:125px;white-space:normal;text-align:center}.arena[data-event=freeze] .target:after{content:'';position:absolute;inset:0;border:2px dashed #665237;pointer-events:none}.damage-pop{z-index:10}.controls-note{font-size:10px}
.team-label.ally{bottom:auto}
/* Readable skill sheets, without a giant image pushing the rules away. */
dialog{width:min(540px,calc(100vw - 20px));max-height:calc(100dvh - 24px);padding:16px;border:1px solid #9d8157;background:#f4e6ca;color:#352f27;border-radius:8px;overflow:auto}dialog::backdrop{background:#172d35b8}#close-detail{position:sticky;display:block;margin-left:auto;top:0;right:0;width:38px;min-height:38px;padding:3px;background:#f5e6c5}#detail-body{text-align:left}#detail-body .detail-portrait{height:128px!important;width:95px;object-fit:contain;margin:0!important}#detail-body .detail-heading{display:flex;align-items:center;gap:14px}#detail-body h2{font-size:26px}#detail-body .detail-numbers{font-size:15px;margin:9px 0}.skill-title{font-size:21px;color:#355e60;margin:12px 0}.skill-sections{margin:0}.skill-sections>div{padding:10px 0;border-bottom:1px dashed #b99b6b}.skill-sections dt{font-weight:bold;color:#6b4c2e;font-size:12px;margin-bottom:5px}.skill-sections dd{margin:0;font-size:14px;line-height:1.85}.detail-specialties{padding:12px 0}.detail-specialties h3{font-size:16px}.detail-specialties p b,.detail-specialties p span{display:block;font-size:12px;line-height:1.8}.rules-link{color:inherit;font-size:11px;margin-right:6px}
@media(min-width:700px){.recruit-view,.formation-view{max-width:640px;margin:auto;padding:18px}.product-art{height:285px}.product-portrait{width:70%}.product-stats{right:40px;top:35px}.core-skill{font-size:17px}.trait-row{font-size:13px}.product-title h2{font-size:30px}.product-actions button{font-size:15px}.slot{min-height:120px}.slot img{height:95px;width:80px}}
@media(max-width:350px){.shell{padding:7px 7px 16px}header a{font-size:21px}header{padding-bottom:6px}.seal{font-size:9px}.recruit-view{padding:8px}.product-card{padding:8px}.product-art{height:148px}.product-title h2{font-size:21px}.product-skill{font-size:11px}.core-skill{font-size:12px;line-height:1.5}.trait-row{font-size:10px;line-height:1.6}.product-actions{margin-top:7px}.product-actions button{min-height:38px;padding:6px}.shop-toolbar{min-height:25px}.product-switch{margin:7px 0}.product-switch button{font-size:10px}.arena{height:440px}.unit{height:92px;width:88px}.unit img{height:72px;max-width:82px}.slot img{height:67px;width:50px}.slot{min-height:93px}.slot>span{font-size:11px}.slot small{font-size:9px}.formation-view{padding:8px}.skill-sections dd{font-size:13px}.stage-head h2{font-size:18px}.causal{min-height:64px}.causal b{font-size:13px}}

.recruit-view{position:relative}.product-actions button,.prep-tabs button{min-height:44px}.product-switch button{min-height:40px}#recruit-drop{position:fixed;left:20px;right:20px;top:40%;height:110px;z-index:80;max-width:600px;margin:auto}.result-choice{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;margin:10px 0}.result-choice select{min-height:44px;font-size:13px}.team-label.ally{bottom:auto}
.shell button{touch-action:manipulation}.shell [data-drag-character],.shell #manager-npc{touch-action:none}

/* BRAND-01: real text, existing paper world. */
.brand-home{padding:28px 18px 20px;text-align:center;background:linear-gradient(#f3e5c6e8,#e9d4b6f2),url('assets/shop.webp') center/cover}.brand-title{font-family:'STKaiti','KaiTi','Microsoft YaHei',serif;font-weight:900;font-size:clamp(44px,10vw,76px);line-height:1.3;letter-spacing:4px;color:#304f55;text-shadow:1px 2px 0 #fff2d4,3px 4px 0 #b9a078;margin:8px 0 12px}.brand-tagline{font-size:20px;letter-spacing:2px;color:#705131;font-family:serif}.brand-type{font-size:12px;color:#74624b;margin:8px 0}.brand-cast{height:150px;display:flex;justify-content:center;align-items:end;gap:12px;margin:12px 0}.brand-cast img{height:145px;width:90px;object-fit:contain;filter:drop-shadow(2px 4px 1px #6b513755)}.brand-cast img:nth-child(2){height:130px}.brand-pitch{font-size:13px;line-height:1.9;margin:9px 0 16px}.brand-start{min-width:200px;font-size:17px;min-height:48px}.brand-help{display:block;color:#385c62;font-size:13px;margin:16px auto;text-underline-offset:4px}.brand-alpha{font-size:10px;letter-spacing:2px;color:#7c664d}.skill-icon{width:27px;height:27px;object-fit:contain;vertical-align:middle;margin-right:5px}.product-skill{display:flex;align-items:center;min-height:28px}.skill-title .skill-icon{width:38px;height:38px}.specialization-entry{display:block;width:100%;font-size:12px;background:#d8e0c9;border-color:#789181;margin:7px 0 10px;box-shadow:none}.specialization-hub{background:#e1d7b7;border:1px dashed #9b845b;padding:9px;margin:8px 0}.specialization-hub h3{font-size:17px;color:#34565b}.specialization-hub p{font-size:11px;line-height:1.7;margin:4px 0}.specialization-hub>div{display:flex;flex-wrap:wrap;gap:5px}.specialization-hub button{font-size:11px;padding:6px;box-shadow:none}.specialty-location{color:#42666a}header a small{font-size:9px;letter-spacing:1px}header .seal{font-size:10px}#detail-body .skill-icon{height:38px!important;width:38px!important;margin:0 5px 0 0!important}@media(max-width:350px){.brand-home{padding:18px 12px 14px}.brand-title{font-size:46px;letter-spacing:3px}.brand-tagline{font-size:18px}.brand-cast{height:120px;gap:6px;margin:8px 0}.brand-cast img{height:118px;width:75px}.brand-cast img:nth-child(2){height:106px}.brand-pitch{font-size:12px;margin:7px 0 12px}.brand-help{margin:12px auto}.brand-home .eyebrow{font-size:9px;letter-spacing:2px}header a{font-size:23px}.product-skill .skill-icon{width:23px;height:23px}header a small{font-size:8px;letter-spacing:.5px}}
.encore-link{display:block;padding:13px 10px;margin:16px 0 8px;text-decoration:none;text-align:center;background:#35545a;color:#fff0d0;border:1px solid #a18b63;box-shadow:0 3px 0 #6e5738;border-radius:4px}.opening-copy .encore-note{font-size:12px;line-height:1.7;color:#786346}

.drag-hint{font-size:12px;color:#655039;pointer-events:none}.small-counter{flex-wrap:wrap}.home-challenge-note{font-size:12px;line-height:1.6}.duel-home{display:block;margin:10px auto;padding:12px;border:1px solid #b49c72;border-radius:4px;color:#f5e6c9;text-decoration:none;background:#35545a;max-width:300px;text-align:center;font-size:14px}#friend-entry{display:inline-block;padding:10px}.detail-specialties span{display:block}
/* DUPLICATE-UPGRADE-01 */
.duplicate-hint,.upgrade-base{font-size:13px;line-height:1.65}
.growth-reward{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;border:2px solid #315d61}
.victory-upgrade{padding:12px;margin:12px 0;border:2px solid #315d61;background:#f5e4b8}.victory-upgrade h3{margin:0}
#detail .specialty-options{display:grid;grid-template-columns:1fr;gap:10px}#detail .specialty-options button{min-height:100px;text-align:left;display:flex;flex-direction:column;gap:7px;padding:12px;white-space:normal}
.specialty-options button:disabled{opacity:1;color:#625f59;background:#ded8c9;border:2px dashed #969084;cursor:not-allowed;filter:grayscale(1)}
.specialty-options button strong{font-size:13px;line-height:1.6}.specialty-options button em{font-style:normal;font-weight:bold}
.upgrade-actors{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.upgrade-actors button{display:flex;flex-direction:column;align-items:center;gap:7px;min-height:44px}.upgrade-actors img{width:66px;height:80px;object-fit:contain}
#detail{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}#detail [data-action="cancel-upgrade"]{min-height:44px;width:100%;margin-top:12px}
#detail-body .upgrade-actors img{width:66px;height:80px;margin:0}
#detail [data-action="cancel-upgrade"]{position:sticky;bottom:0;background:#f3e6c9;box-shadow:0 -5px 8px #f3e6c9;z-index:2}

.character-dialogue{max-width:calc(100% - 16px);white-space:normal;text-align:center;overflow-wrap:break-word}
#friend-entry{color:#f5e6c9;background:#35545a;border:1px solid #b49c72;border-radius:4px;text-decoration:none;min-height:44px}#friend-entry:visited{color:#f5e6c9}#friend-entry:focus-visible{outline:2px solid #fff0bf;outline-offset:3px}

#flow-confirm{box-sizing:border-box;width:min(92vw,440px);max-height:85dvh;overflow:auto;padding:24px;border:2px solid #293d46;border-radius:12px;background:#f7efdf;color:#293d46}#flow-confirm::backdrop{background:#15293299}.flow-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}.flow-actions button{min-height:44px}

/* Existing workshop art, scoped to the recruitment stage behind the portrait. */
.recruit-view .product-art{background:linear-gradient(90deg,#f6ead330,#f6ead310 50%,#f6ead330),url('assets/shop.webp') center 38%/cover no-repeat;border:1px solid #b59a72;border-radius:3px}.recruit-view .product-stats{background:#f6ead3f2;padding:5px;border:1px solid #b79c74}
#sell-drop{position:fixed;z-index:900;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(290px,calc(100vw - 24px));padding:14px 16px;border:2px dashed #8e6543;border-radius:6px;background:#f5e6cafa;color:#65452d;text-align:center;box-shadow:0 4px 18px #20323d66;pointer-events:none}#sell-drop b,#sell-drop small{display:block}#sell-drop small{font-size:11px;margin-top:4px}#sell-drop.valid{background:#355a52;color:#fff1d3;border:2px solid #e8c46e;box-shadow:0 0 0 3px #355a5250}#sell-drop.unavailable{background:#e1d7c7;color:#756a5c;border-color:#938879}.formation-ghost{opacity:.85}

/* SHOP-ART-POLISH-01: quiet cardstock labels, isolated from all battle/detail UI. */
.recruit-view .product-title{align-items:flex-start;gap:10px}
.recruit-view .product-title>div:first-child{min-width:0;flex:1}
.recruit-view .paper-symbol{width:22px;height:25px;flex:none;display:block;pointer-events:none}
.recruit-view .product-art{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:6px 8px}
.recruit-view .product-portrait{width:100%;height:100%;min-height:0;min-width:0;justify-self:center}
.recruit-view .product-stats{position:static;align-self:center;gap:8px;padding:0;background:none;border:0;pointer-events:none}
.recruit-view .paper-stat{position:relative;isolation:isolate;display:grid;grid-template-columns:20px minmax(28px,auto);grid-template-rows:11px auto;column-gap:6px;align-items:center;min-width:79px;padding:7px 10px 6px;color:#8d493e;box-shadow:1px 2px 0 #62492c20}
.recruit-view .paper-stat:before{content:'';position:absolute;inset:0;z-index:-2;background:#c9b18c;clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px)}
.recruit-view .paper-stat:after{content:'';position:absolute;inset:1px 1px 2px;z-index:-1;background:#f1e0c5;clip-path:polygon(5px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 5px)}
.recruit-view .paper-stat-atk{color:#365d61;transform:rotate(-1deg)}
.recruit-view .paper-stat-hp{transform:rotate(1deg)}
.recruit-view .paper-stat-hp:after{background:#f4dfce}
.recruit-view .paper-stat-atk:after{background:#e2e4cf}
.recruit-view .paper-stat .paper-symbol{grid-row:1 / 3;width:20px;height:25px}
.recruit-view .paper-stat-caption{font:700 9px/11px Georgia,serif;letter-spacing:1px}
.recruit-view .product-stats .paper-stat-number{border:0;background:none;padding:0;font:700 24px/26px Georgia,'Times New Roman',serif;font-variant-numeric:tabular-nums;color:inherit;min-width:1ch}
.recruit-view .product-stats>small{font-size:10px;padding-right:5px;color:#5f513e;text-shadow:0 1px #f5e6cb}
.recruit-view .paper-price{position:relative;display:flex;align-items:center;gap:7px;flex:none;max-width:46%;min-height:51px;padding:7px 13px 7px 10px;margin:0 0 4px;background:#eedbb4;border:1px solid #b39a70;border-radius:1px;color:#77522b;box-shadow:1px 2px 0 #83653f26;text-align:left}
.recruit-view .paper-price:after{content:'';position:absolute;right:-1px;top:-1px;width:9px;height:9px;background:#d0b68a;border-left:1px solid #b39a70;border-bottom:1px solid #b39a70;clip-path:polygon(0 0,100% 100%,0 100%);pointer-events:none}
.recruit-view .paper-price .paper-symbol{width:20px;height:22px;color:#9c773a}
.recruit-view .paper-price-copy{display:flex;flex-direction:column;gap:1px;min-width:0}
.recruit-view .paper-price-copy>small{font-size:9px;line-height:13px;letter-spacing:1px}
.recruit-view .paper-price strong{font:700 23px/26px Georgia,'Times New Roman',serif;font-variant-numeric:tabular-nums;white-space:nowrap}
.recruit-view .paper-price-unit{font:400 10px/1.4 'Microsoft YaHei',sans-serif;margin-left:4px}
.recruit-view .paper-price del{font-size:10px;line-height:12px;color:#79684e;text-decoration-thickness:1px}
@media(max-width:350px){.recruit-view .product-title{gap:6px}.recruit-view .product-title h2{font-size:20px}.recruit-view .product-art{padding:5px;gap:3px}.recruit-view .paper-stat{min-width:72px;padding:6px 8px;column-gap:4px}.recruit-view .product-stats .paper-stat-number{font-size:22px;line-height:24px}.recruit-view .paper-price{padding:6px 10px 6px 7px;gap:5px}.recruit-view .paper-price strong{font-size:21px}.recruit-view .paper-price .paper-symbol{width:18px}}
@media(min-width:700px){.recruit-view .product-art{padding:12px 22px;grid-template-columns:minmax(0,1fr) auto;gap:18px}.recruit-view .product-stats{margin-right:8px}.recruit-view .paper-stat{min-width:90px;padding:8px 12px}.recruit-view .product-stats .paper-stat-number{font-size:28px;line-height:30px}.recruit-view .paper-price{margin-top:2px}}

/* UI-ART-SYSTEM-A01: shared cardstock, scoped to shop / specialty controls. */
:root{--prop-paper:#f6ead3;--prop-ivory:#fff3d9;--prop-edge:#b39a70;--prop-thickness:#987b52;--prop-ink:#2b4c52;--prop-shadow:#62492c26;--prop-accent:#365d61}
.paper-ticket,.paper-secondary,.product-switch button,.paper-specialty,.actor-actions button,.actor-heading button{transition:transform 130ms ease,box-shadow 130ms ease,background-color 130ms ease}
.recruit-view .product-actions{align-items:stretch;gap:9px;margin-top:12px}
.recruit-view .product-actions .paper-ticket{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 14px;min-height:52px;padding:10px 15px;border:1px solid var(--prop-thickness);border-bottom:3px solid var(--prop-thickness);border-radius:2px 7px 2px 2px;background:linear-gradient(110deg,var(--prop-ivory),#eedbb4);color:var(--prop-ink);box-shadow:0 3px 0 #c4ab82,1px 5px 5px var(--prop-shadow);filter:none}
.paper-ticket:after{content:'';position:absolute;right:0;top:0;width:9px;height:9px;background:#d0b68a;clip-path:polygon(0 0,100% 100%,0 100%);pointer-events:none}
.ticket-name{font-family:serif;font-size:17px;font-weight:700;letter-spacing:1px}
.ticket-price{display:inline-flex;align-items:center;gap:4px;border-left:1px dashed var(--prop-edge);padding-left:12px;line-height:1.2;color:#77522b}
.ticket-price b{font:700 23px/1.1 Georgia,serif;font-variant-numeric:tabular-nums}.ticket-price>span,.ticket-price del{font-size:11px}.ticket-price del{margin-left:3px;color:#79684e;font-weight:400}.ticket-note{flex-basis:100%;font-size:11px;line-height:1.2;color:#665744}
.recruit-view .product-actions .paper-secondary,.actor-actions button,.actor-heading button{background:var(--prop-paper);border:1px solid var(--prop-edge);color:var(--prop-ink);box-shadow:0 1px 0 #c4ab82;min-height:44px}
.recruit-view .product-actions .paper-secondary{min-width:78px;padding-inline:10px;font-size:12px;border-radius:2px}
.product-switch{gap:7px;margin:13px 0 10px}
.product-switch button{position:relative;min-width:0;min-height:44px;padding:9px 5px;background:#eaddc2;border:1px solid var(--prop-edge);border-bottom:3px solid #bba17a;border-radius:2px 2px 6px 2px;box-shadow:0 2px 2px var(--prop-shadow);color:#5f513e;font-size:12px;filter:none}
.product-switch button[aria-pressed=true]{background:#f5eedb;color:var(--prop-ink);border-color:var(--prop-accent);border-left-width:4px;box-shadow:0 3px 0 #839382;transform:translateY(-2px);font-weight:700}
.product-switch button[aria-pressed=true]:after{content:'';position:absolute;left:25%;right:25%;bottom:3px;border-bottom:1px solid #839382;pointer-events:none}
.specialization .specialty-status{margin:8px 0;color:#655039;font-size:12px;line-height:1.6}
.specialization .specialty-options,#detail .specialty-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.specialization .specialty-options .paper-specialty,#detail .specialty-options .paper-specialty{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;min-width:0;min-height:0;margin:0;padding:12px;text-align:left;white-space:normal;overflow-wrap:anywhere;background:linear-gradient(120deg,var(--prop-ivory),#f0e2c6);border:1px solid var(--prop-edge);border-top:3px solid #b39a70;border-radius:2px;box-shadow:1px 3px 0 #c4ab82,2px 5px 7px var(--prop-shadow);color:#352f27;opacity:1;filter:none}
.specialization .specialty-options .paper-specialty:nth-child(2){background:linear-gradient(120deg,#f4f0dc,#e2e4cf);border-top-color:#839382}
.specialty-options .specialty-heading{display:flex;align-items:center;gap:7px;min-height:34px;color:var(--prop-ink)}
.specialty-options .specialty-heading b{font-family:serif;font-size:18px;line-height:1.4}
.specialty-options .specialty-heading .paper-icon,#detail-body .specialty-heading .paper-icon{width:34px!important;height:34px!important;margin:0!important;flex:none}
.specialty-options .specialty-heading .specialty-seal{margin-left:auto;font-size:11px;white-space:nowrap;color:var(--prop-ink);border-bottom:2px solid #839382}
.specialty-options .specialty-price{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:13px;line-height:1.5;color:#77522b;padding:5px 0;border-bottom:1px dashed #c4ab82}
.specialty-price .paper-symbol{display:block;width:17px;height:19px;flex:none;pointer-events:none;color:#9c773a}.specialty-price del{font-size:11px;font-weight:400;color:#79684e}
.specialty-options .specialty-summary{font-size:14px;font-weight:600;line-height:1.7;color:var(--prop-ink)}
.specialty-options .specialty-rule{font-size:13px;font-weight:400;line-height:1.8;color:#40352c}
.specialty-options .specialty-confirm{align-self:flex-end;width:auto;min-height:35px;padding:8px 15px;margin-top:auto;border:1px solid #7b8c7b;border-bottom:2px solid #6a7c6a;border-radius:2px;background:#e2e4cf;color:var(--prop-ink);font-size:13px;font-style:normal;font-weight:700;line-height:1.4}
.specialization .specialty-options .paper-specialty:disabled{background:#e8e0d0;border-color:#b7ac96;border-top-color:#9b927e;border-style:dashed;color:#625b4e;box-shadow:0 1px 0 #b7ac9655;cursor:not-allowed;filter:none;opacity:1;transform:none}
.specialty-options .paper-specialty:disabled .specialty-confirm{background:transparent;color:#625b4e;border:1px dashed #a49b88}
.specialization .specialty-options .paper-specialty[aria-pressed=true]{border:2px solid var(--prop-accent);border-left-width:5px;background:#edf0dd;box-shadow:1px 2px 0 #839382}
.specialty-options .paper-specialty[aria-pressed=true] .specialty-confirm{color:var(--prop-ink);border-style:solid;background:#e2e4cf}
.actor-card .actor-heading{position:sticky;top:-10px;z-index:2;margin:-10px -10px 0;padding:8px 10px;background:#f4e6ca;border-bottom:1px solid #c4ab82}
.actor-heading button{min-width:44px;min-height:44px}.actor-actions{position:sticky;bottom:-10px;margin:9px -10px -10px;padding:8px 10px 10px;background:#f4e6ca;border-top:1px solid #c4ab82;z-index:2}
.actor-actions button{font-size:11px;min-height:44px}.actor-card .actor-skill{font-size:12px;line-height:1.7;margin-top:8px}.actor-card .specialty-options .specialty-rule{font-size:12px;line-height:1.75}
.recruit-view .paper-ticket:disabled{opacity:1;filter:none;color:#625b4e;background:#e4ddce;border-color:#aaa08d;box-shadow:0 1px 0 #b7ac96;cursor:not-allowed;transform:none}
.recruit-view .paper-ticket:disabled .ticket-price{color:#665744}
.paper-ticket:enabled:active,.paper-secondary:enabled:active,.product-switch button:enabled:active,.paper-specialty:enabled:active,.actor-actions button:enabled:active{transform:translateY(2px);box-shadow:0 1px 0 #b7a180;filter:none}
.paper-ticket:focus-visible,.paper-secondary:focus-visible,.product-switch button:focus-visible,.paper-specialty:focus-visible{outline:3px solid var(--prop-accent);outline-offset:3px}
@media(max-width:600px){.specialization .specialty-options,#detail .specialty-options{grid-template-columns:minmax(0,1fr);gap:10px}.actor-card{max-height:58dvh}.actor-open{padding-bottom:58dvh}.specialty-options .specialty-heading b{font-size:17px}.specialization .specialty-options .paper-specialty{padding:10px}}
@media(max-width:350px){.recruit-view .product-actions .paper-ticket{padding:8px;gap:4px 8px;min-height:52px}.ticket-name{font-size:15px;letter-spacing:0}.ticket-price{padding-left:8px;gap:3px}.ticket-price b{font-size:21px}.recruit-view .product-actions .paper-secondary{min-width:70px;padding-inline:7px}.product-switch button{font-size:11px;min-height:44px}.actor-card .actor-heading{top:-8px;margin-top:-8px}.actor-actions{bottom:-8px}.specialty-options .specialty-rule{font-size:12px}}
@media(prefers-reduced-motion:reduce){.paper-ticket,.paper-secondary,.product-switch button,.paper-specialty,.actor-actions button,.actor-heading button{transition:none}}
.detail-traits{margin:10px 0;padding:9px 11px;background:#e9dfc8;border-left:3px solid #839382;font-size:13px;line-height:1.7}.detail-traits>div{display:grid;grid-template-columns:2em minmax(0,1fr);gap:9px}.detail-traits>div+div{margin-top:5px}.detail-traits dt{font-weight:700;color:#77522b}.detail-traits dd{margin:0}
@media(max-height:600px){.actor-card .actor-heading{top:-8px;margin:-8px -8px 0;padding:8px}.actor-actions{bottom:-8px;margin:9px -8px -8px;padding:8px}}
/* One actor / skill heading; wrap only when its actual text needs room. */
.recruit-view .product-title>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.recruit-view .product-title h2{font-size:23px;line-height:1.35}
.recruit-view .product-skill{display:inline-flex;align-items:center;gap:3px;font-size:12px;line-height:1.5;color:#655039}
.recruit-view .product-skill .paper-icon{width:25px;height:25px;margin:0;flex:none}
.actor-card .actor-skill .paper-icon{width:24px;height:24px;object-fit:contain;vertical-align:middle;margin-right:4px}
.recruit-view .paper-price{min-height:45px;padding-block:5px;margin-bottom:0}
.recruit-view .product-art{margin-top:8px;margin-bottom:8px}
.recruit-view .core-skill{font-size:14px;line-height:1.65;margin-bottom:0}
@media(max-width:350px){.recruit-view .product-title{gap:6px}.recruit-view .product-title>div:first-child{gap:3px 5px}.recruit-view .product-title h2{font-size:20px}.recruit-view .product-skill{font-size:11px;gap:2px}.recruit-view .product-skill .paper-icon{width:21px;height:21px}.recruit-view .core-skill{font-size:13px}}
@media(min-width:700px){.recruit-view .product-title h2{font-size:30px}.recruit-view .product-skill{font-size:14px}.recruit-view .product-title>div:first-child{gap:6px 14px}.recruit-view .core-skill{font-size:16px}}


/* UI-INFO-LAYER-01: one compact navigation and progressive rule disclosure. */
#game-menu #friend-entry{display:flex;width:auto;margin:0;padding:8px 0;background:transparent;color:var(--prop-ink);border:0;border-bottom:1px dashed var(--prop-edge);box-shadow:none;font-size:14px;text-align:left;text-decoration:underline}
#menu-notice:empty{display:none}#menu-notice:not(:empty){background:#784e38;color:#fff1d1;padding:8px;font-size:13px;line-height:1.7}
.shell>.game-navigation{display:flex;justify-content:flex-end;align-items:center;padding:0;margin:0 0 6px;min-height:44px;border:0}.game-navigation #open-menu{min-height:44px;padding:6px 14px;font-size:14px;box-shadow:1px 2px 0 #a88e68;background:#eadaba;color:#304f55}
#game-menu{padding:18px;max-height:calc(100dvh - 28px);overflow-y:auto;text-align:left}#game-menu .menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}#game-menu h2{font-size:23px;margin:0}#close-menu{min-width:44px;min-height:44px}#game-menu .menu-links{display:grid;gap:0;margin:8px 0}#game-menu a{display:flex;align-items:center;min-height:44px;color:var(--prop-ink);border-bottom:1px dashed var(--prop-edge);text-underline-offset:4px;font-size:14px}#game-menu section{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}#game-menu section button{flex:1;min-height:44px;font-size:14px;padding:8px}#game-menu .menu-about{font-size:12px;line-height:1.8;color:#67543e;margin-top:16px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #42696c;outline-offset:3px}
.specialty-details{font-size:14px;line-height:1.8;text-align:left}.specialty-details summary{min-height:44px;display:flex;align-items:center;cursor:pointer;text-decoration:underline;text-underline-offset:4px;color:var(--prop-ink)}.specialty-details summary:before{content:'＋';margin-right:6px}.specialty-details[open] summary:before{content:'−'}.specialty-details p{margin:5px 0 10px;font-size:14px!important;line-height:1.8}
.specialty-options .paper-specialty[data-chosen=true]{border:2px solid var(--prop-accent);border-left-width:5px;background:#edf0dd}.specialty-options .specialty-summary{margin:0}.specialization .specialty-options .specialty-confirm,#detail .specialty-options .specialty-confirm{display:block;text-align:center;width:100%;min-height:44px;margin:0;margin-top:auto;padding:8px;font-size:14px}.specialty-options .specialty-confirm:disabled{opacity:1;background:#e4dece;color:#655b4a;border:1px dashed #9b927e;cursor:not-allowed}#detail .specialty-options .specialty-confirm{min-height:44px}
@media(min-width:351px) and (max-width:600px){.specialization .specialty-options,#detail .specialty-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.specialty-options .specialty-heading{flex-wrap:wrap}.specialty-options .specialty-heading b{font-size:16px}.specialty-options .specialty-summary{font-size:13px;line-height:1.7}}
@media(max-width:350px){.specialization .specialty-options,#detail .specialty-options{grid-template-columns:minmax(0,1fr)}.specialty-options .specialty-summary{font-size:14px}}

/* Visual-space revision: return the freed area to full-body art and the stage. */
.is-playfield .shell{position:relative}.is-playfield .game-navigation{position:absolute;right:10px;top:10px;z-index:21;margin:0;min-height:44px}.is-playfield .prep-tabs{padding-right:88px}.is-playfield .stage-head{padding-right:92px}.is-playfield #notice:not(:empty){margin-top:50px}
@media(max-width:699px){
 .is-playfield .recruit-view,.is-playfield .formation-view{padding:8px}.is-playfield .product-card{padding:8px;border-radius:2px;box-shadow:none}.is-playfield .product-art{height:clamp(210px,37svh,318px);margin:3px 0 7px}.is-playfield .product-title h2{font-size:24px}.is-playfield .product-title{gap:6px}.is-playfield .product-stats>small{display:none}.is-playfield .core-skill{font-size:14px;line-height:1.6;margin-bottom:4px}.is-playfield .product-actions{margin-top:6px}.is-playfield .recruit-tools{margin:4px 0 8px}.is-playfield .product-switch{margin:8px 0}.is-playfield .slot{min-height:134px}.is-playfield .slot img{height:104px;width:76px}.is-playfield .placement-help{font-size:12px;line-height:1.6;margin-bottom:6px}.is-playfield .stage-head{padding-top:7px;padding-bottom:7px;min-height:52px}.is-playfield .stage-head .eyebrow{display:none}.is-playfield .arena{height:600px}.is-playfield .unit{height:110px;width:110px}.is-playfield .unit img{height:88px;max-width:102px}
}
@media(max-width:350px){.is-playfield .game-navigation{right:7px;top:7px}.is-playfield .prep-tabs{padding-right:82px;gap:4px;padding-left:4px}.is-playfield .prep-tabs button{padding:4px;font-size:12px}.is-playfield .product-art{height:210px}.is-playfield .product-title h2{font-size:21px}.is-playfield .slot{min-height:120px}.is-playfield .slot img{height:88px;width:62px}.is-playfield .arena{height:480px}.is-playfield .unit{height:92px;width:88px}.is-playfield .unit img{height:72px;max-width:82px}}

/* User revision: shop copy moves wholly to details; compact identity, larger full-body art. */
.is-playfield .recruit-view .product-title{margin-bottom:4px}.is-playfield .recruit-view .product-title h2{font-size:19px;line-height:1.25}.is-playfield .recruit-view .product-skill{font-size:12px;min-height:26px}.is-playfield .recruit-view .product-title .paper-icon{width:24px;height:24px;margin-right:4px}
@media(min-width:351px) and (max-width:699px){.is-playfield .recruit-view .product-art{height:350px;grid-template-columns:minmax(0,1fr) 64px;gap:6px}.is-playfield .recruit-view .paper-stat{min-width:64px;padding:7px 5px;grid-template-columns:16px minmax(24px,auto);column-gap:3px}.is-playfield .recruit-view .paper-stat .paper-symbol{width:16px}.is-playfield .recruit-view .product-stats .paper-stat-number{font-size:24px;line-height:26px}}

/* Use the counter's empty middle space for the formation action. */
.recruit-view .recruit-tools{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:center;margin-top:8px;margin-bottom:0}.recruit-view .small-counter{justify-content:center}.recruit-view .small-counter .drag-hint{max-width:66px;line-height:1.5;font-size:11px}.recruit-view .recruit-tools .shop-next{width:auto;min-height:44px;font-size:13px;padding:8px 10px}.recruit-view .recruit-tools>button{min-height:44px}.recruit-view .checkout{font-size:11px;line-height:1.5;text-align:center}
@media(max-width:350px){.recruit-view .recruit-tools{gap:5px}.recruit-view .recruit-tools>button{font-size:11px;padding:6px}.recruit-view .small-counter{gap:1px}.recruit-view .small-counter .drag-hint{max-width:44px}.recruit-view .small-counter #manager-npc{width:32px}.recruit-view .small-counter img{width:30px}.recruit-view .recruit-tools .shop-next{font-size:12px;padding:6px}}

/* Use available height for actors; wide screens give the board and scouting separate columns. */
@media(min-width:351px) and (max-width:699px) and (min-height:700px){
 .is-playfield .formation-view .slot{min-height:clamp(134px,18.5svh,174px)}
 .is-playfield .formation-view .slot img{height:clamp(104px,15svh,144px);width:clamp(76px,10.5svh,100px)}
}
@media(min-width:700px){
 .is-playfield .shell:has(.recruit-view,.formation-view){max-width:1120px}
 .is-playfield .recruit-view,.is-playfield .formation-view{max-width:1040px;padding:12px}
 .is-playfield .recruit-view .product-art{height:clamp(280px,calc(100svh - 370px),640px)}
 .is-playfield .recruit-view .product-title h2{font-size:22px}
 .is-playfield .product-actions .paper-ticket{flex:none;min-width:240px}
 .is-playfield .product-actions{justify-content:center}
 .is-playfield .formation-view{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(245px,1fr);gap:8px 18px;align-items:start}
 .is-playfield .formation-view>.shop-toolbar,.is-playfield .formation-view>.capture-panel,.is-playfield .formation-view>.placement-help,.is-playfield .formation-view>.primary.wide{grid-column:1/-1}
 .is-playfield .formation-view>.formation{grid-column:1;max-width:none;width:100%;margin:0;align-self:stretch}
 .is-playfield .formation-view>.prep-context{grid-column:2;display:flex;flex-direction:column;gap:12px;align-self:start}
 .is-playfield .prep-context>.skill-preview,.is-playfield .prep-context>.bench,.is-playfield .prep-context>.opponent-preview,.is-playfield .prep-context>.zero-warning{margin:0}
 .is-playfield .formation-view>.skill-preview,.is-playfield .formation-view>.bench,.is-playfield .formation-view>.opponent-preview,.is-playfield .formation-view>.zero-warning{grid-column:2;margin:0}
 .is-playfield .formation-view .slot{min-height:clamp(160px,27svh,280px)}
 .is-playfield .formation-view .slot img{height:clamp(120px,21svh,210px);width:clamp(84px,14svh,150px)}
 .is-playfield .formation-view .slot>span{font-size:14px}.is-playfield .formation-view .slot small{font-size:12px}
 .is-playfield .arena{height:clamp(520px,72svh,760px)}
 .is-playfield .unit{height:124px;width:124px}.is-playfield .unit img{height:clamp(88px,9svh,104px);max-width:120px}
}
@media(min-width:700px) and (max-width:850px) and (min-height:650px){
 .is-playfield .formation-view{grid-template-columns:minmax(0,1fr)}
 .is-playfield .formation-view>.prep-context{grid-column:1}
 .is-playfield .formation-view>.formation,.is-playfield .formation-view>.skill-preview,.is-playfield .formation-view>.bench,.is-playfield .formation-view>.opponent-preview,.is-playfield .formation-view>.zero-warning{grid-column:1;grid-row:auto}
 .is-playfield .formation-view .slot{min-height:170px}.is-playfield .formation-view .slot img{height:140px;width:102px}
}
@media(min-width:700px) and (max-height:550px){
 .is-playfield .recruit-view .product-art{height:260px}
 .is-playfield .formation-view .slot{min-height:126px}.is-playfield .formation-view .slot img{height:96px;width:72px}
 .is-playfield .arena{height:480px}.is-playfield .unit{height:100px;width:100px}.is-playfield .unit img{height:72px;max-width:86px}
}

.coordination-copy{display:block;margin-top:6px;line-height:1.6}.specialty-heading b,.specialty-summary,.actor-skill{overflow-wrap:anywhere;min-width:0}
