/* Portrait game shell and non-overlapping deployment. */
.cj .cj-map-panel{width:100%;max-width:520px;margin:0 auto}.cj .mode-bar{width:100%;max-width:520px;margin:auto}.cj-map{height:760px;max-height:84dvh;min-height:540px}.cj .field-actions #fieldEvents{height:58px;width:48px;border:0;background:none;box-shadow:none}.field-actions #fieldEvents img{display:block;width:37px;height:37px;object-fit:contain;margin:auto;filter:drop-shadow(0 2px 2px #172b42)}.field-actions #fieldEvents span{font-size:10px;color:#fff8d4;text-shadow:0 1px 3px #172b42}.cj .field-actions #fieldReference{font-size:9px;border-radius:7px}.field-actions{gap:5px}.cj #gameScreen{isolation:isolate}.cj #screenGuidance{position:relative;flex:none;background:#fff0c9;color:#4e3d19;border-bottom:2px solid #dcb65c;padding:9px 35px 9px 12px;font-size:11px;line-height:1.4;max-height:96px;overflow:auto;z-index:2}.cj #screenGuidance button{position:absolute;right:3px;top:3px;min-height:30px;width:30px;padding:2px;background:none;border:0;color:#594725}.cj #gameDock{flex:none;background:linear-gradient(#1b6392,#104671);padding:9px 12px 12px;border-top:2px solid #84c7eb;z-index:3}.cj #gameDock .dispatch-capacity{display:flex;justify-content:space-between;gap:10px;font-size:12px}.cj #gameDock #dispatchError{font-size:11px;color:#ffe6a6;line-height:1.35;margin:5px 0;min-height:16px}.cj #gameDock #dispatchSend{position:static;width:100%;margin:3px 0 0;min-height:45px;box-shadow:inset 0 2px #ddf7ff55,0 2px #0c3154;font-size:15px}.cj #gameDock #dispatchSend:disabled{border-color:#91adc1}.cj #gameScreen[data-kind=dispatch] #gameContent{padding-bottom:12px}.formation-heading{display:flex;gap:5px;align-items:center;flex-wrap:wrap;font-size:12px}.formation-heading b{margin-right:auto}.cj .formation-heading button{font-size:10px;min-height:32px;padding:4px 7px;background:#276c98;border:1px solid #7db4d7}.hero-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.cj .hero-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;padding:5px 3px;background:linear-gradient(#69609c,#302a54);border:2px solid #d8b86f;overflow:hidden;min-height:133px}.hero-slot img{width:62px;height:66px;object-fit:contain;filter:drop-shadow(0 3px 2px #141827)}.hero-slot small{font-size:8px;letter-spacing:.07em;color:#ffedbd}.hero-slot b{font-size:11px;color:white}.hero-slot em{font-style:normal;font-size:9px;color:#bce9d4;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hero-empty{font-size:32px;color:#b4cee3;height:66px;display:grid;place-items:center}.cj .formation-notice{font-size:11px;color:#ffe2a8;padding:7px 2px;line-height:1.4;margin:3px 0}.cj #heroTray{background:#103e68;border:1px solid #81b6db;border-radius:6px;padding:9px;margin:7px 0}.cj #heroTray>header{display:flex;align-items:center;justify-content:space-between;font-size:13px}.cj #heroTrayClose{width:32px;min-height:30px;padding:0;font-size:20px}.cj #heroChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 0}.cj #heroChoices button{display:flex;flex-direction:column;align-items:center;background:linear-gradient(#646098,#343763);border:1px solid #d0b77b;gap:3px;padding:5px;min-width:0}.cj #heroChoices button:disabled{opacity:.5;filter:grayscale(.6)}#heroChoices img{width:49px;height:53px;object-fit:contain}#heroChoices b{font-size:10px}#heroChoices small{font-size:9px;line-height:1.25;overflow-wrap:anywhere;color:#e8f2ff}.troop-heading{display:flex;justify-content:space-between;font-size:12px;border-bottom:1px solid #71b1dc;padding:7px 0}.troop-heading span{font-size:10px}.cj .dispatch-shortcuts{flex-wrap:wrap}.cj .dispatch-shortcuts button{font-size:12px;padding:5px 12px;min-height:36px}.cj .dispatch-call{padding:6px 0;margin:3px 0;font-size:11px}.cj .game-pointer{bottom:auto;top:80px;left:10px;right:65px;font-size:11px;max-height:110px;overflow:auto}.cj .tutorial-target{outline-width:2px!important;outline-offset:1px;box-shadow:none!important}.cj .event-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:-5px -5px 10px;border-bottom:2px solid #93ceec;padding-bottom:5px}.cj .event-rail button{height:75px;min-width:0;border:1px solid #7faccb;background:linear-gradient(#5c739b,#2a4c77);border-radius:4px 4px 0 0;padding:3px}.cj .event-rail button.selected{background:linear-gradient(#dbeafb,#8eafca);border-color:#eefaff;color:#203c59}.event-rail img{width:46px;height:48px;object-fit:contain;display:block;margin:auto}.event-rail span{font-size:10px;display:block}.cj .event-poster{position:relative;display:flex;flex-direction:column;justify-content:space-between;width:100%;height:260px;padding:12px;overflow:hidden;text-align:left;background:#25133a;border:2px solid #b9b2db;border-radius:6px}.event-poster-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.8}.event-poster>div{display:flex;gap:9px;position:relative;background:#190e30c9;padding:9px;border-radius:5px}.event-poster>div>img{width:55px;height:55px;object-fit:contain}.event-poster span{display:grid;gap:3px}.event-poster small{font-size:9px;letter-spacing:.08em;color:#ffe6b2}.event-poster b{font-size:22px;color:white}.event-poster em{font-size:10px;font-style:normal}.event-poster>strong{position:relative;background:linear-gradient(#7cbce8,#337eb5);border:1px solid #afdcf5;border-radius:5px;padding:9px;text-align:center;width:100%;font-size:13px}.cj .reference-link{width:100%;margin-top:12px;border-color:#8fb6cd;background:#19496e;font-size:12px}.event-command-row{display:flex;justify-content:space-around;gap:10px;margin:7px 0 12px}.cj .event-command-row button{background:#213e6699;display:grid;justify-items:center;padding:5px 10px;font-size:10px;border:1px solid #7cadcd;flex:1}.event-command-row img{height:35px;width:40px;object-fit:contain}.cj .event-tabs{gap:3px}.cj .event-tabs button{font-size:10px;min-width:0}.cj .reference-tabs{display:flex;gap:7px}.reference-tabs button{flex:1}.cj .reference-tabs [aria-pressed=true]{background:#a6cee6;color:#173c57}.capture-note{font-size:12px;color:#cae3f2}.reference-capture{position:relative;width:100%;max-width:288px;margin:12px auto;border:2px solid #91b9d5;background:#102538}.reference-capture>img{width:100%;height:auto;display:block}.cj .reference-capture>button{position:absolute;transform:translate(-50%,-50%);border-radius:50%;width:26px;height:26px;min-height:26px;padding:0;font-size:12px;font-weight:bold;background:#ffdf71;color:#3f2f12;border:2px solid white;box-shadow:0 0 0 3px #47361f88}.reference-key{padding-left:25px;font-size:12px}.reference-key li{margin:7px 0;padding:5px}.reference-key li.selected{background:#ffeea5;color:#4e3c1c}.rank-banner{text-align:center;background:linear-gradient(#252543,#53466c);padding:13px}.rank-banner img{width:66px;height:66px;object-fit:contain}.rank-row{display:flex;align-items:center;gap:10px;border:1px solid #9ed1ec;background:linear-gradient(#b1d7ec,#84aecf);color:#23425a;padding:8px;margin:6px 0;border-radius:4px;font-size:12px}.rank-row>img{width:34px;height:34px;object-fit:contain}.rank-row>span{flex:1}.cj .game-screen .event-banner{padding:8px 8px 0}.event-banner>img{height:125px}.cj .bandit-card{padding:7px}.bandit-card>img{width:45px;height:44px}.bandit-card b{font-size:13px}.bandit-card p{font-size:11px;margin:4px 0}.cj-status strong{font-size:15px}.cj-status{gap:5px}.cj-status span{font-size:7px}
@media(max-width:480px){.cj-map{height:690px;max-height:82dvh;min-height:510px}.cj .hero-slot{min-height:123px}.hero-slot img{width:56px;height:58px}.cj #screenGuidance{font-size:10px;padding-top:7px;padding-bottom:7px;max-height:80px}.event-poster{height:245px}.cj .game-screen #gameContent{padding:9px}.field-actions{top:90px}.cj .field-actions button{width:39px;height:39px;min-height:39px}.field-marches{width:97px}.cj .mode-bar span{margin-left:0}.cj #gameDock{padding:7px 9px 9px}}
/* The captured CJ event card is the working event interface. Live controls replace captured text. */
.cj .native-event{position:relative;aspect-ratio:138/200;width:100%;background:#22132e url('./reference/event-panel.png') center/100% 100% no-repeat;border:2px solid #c6bede;border-radius:7px;overflow:hidden}.native-heading{position:absolute;left:0;right:0;top:0;height:28%;background:linear-gradient(#1d1033 65%,#20123700);padding:8px 10px}.cj .native-heading h3{font-size:21px;color:#fff;margin:0}.native-heading p{font-size:10px;margin:3px 0 7px}.native-heading>b{font-size:11px;color:#ffdb83}.native-bandit{position:absolute;left:0;right:0;top:39%;height:31%;background:linear-gradient(#441e3b,#280e28);display:grid;grid-template-columns:29% 1fr;align-items:center;padding:25px 10px 6px;gap:9px}.native-ribbon{background:linear-gradient(90deg,#1c354c,#497c9a,#1c354c);text-align:center;font-size:11px;color:#eaf8ff;padding:4px}.native-bandit .native-ribbon{position:absolute;top:0;left:0;right:0;background:linear-gradient(90deg,#321627,#6b3651,#321627)}.native-bandit>img{width:100%;height:auto;max-height:75px;object-fit:contain}.native-bandit>div:not(.native-ribbon){display:flex;flex-direction:column;align-items:flex-start;gap:4px}.native-bandit strong{font-size:19px;color:#ffe1c1}.native-bandit b,.native-bandit span{font-size:10px}.cj #eventHQ{font-size:10px;min-height:23px;padding:2px 6px;border:1px solid #b8aac6;background:#5c375b}.native-points{position:absolute;left:0;right:0;top:70%;height:20%;background:linear-gradient(#25102c,#35112c);padding:3px 76px 3px 8px;color:white}.native-points>small{display:block;text-align:center;font-size:9px;margin:0 0 6px}.native-points>div{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:9px;margin:4px 0}.native-points>div>b{font-size:11px;color:#ffe7a7}.native-points>em{font-size:8px;color:#d5afc8;font-style:normal}.cj .native-points #eventMembers{position:absolute;right:8px;top:23%;width:58px;display:flex;flex-direction:column;align-items:center;gap:1px;border:1px solid #ba769b;background:linear-gradient(#894665,#49233d);padding:3px;border-radius:5px;font-size:9px}.native-points #eventMembers img{width:30px;height:30px;object-fit:contain}.native-event-buttons{position:absolute;bottom:0;left:0;right:0;height:10%;display:flex;gap:7px;padding:4px 7px 7px;background:#27102a}.cj .native-event-buttons button{flex:1;min-width:0;font-size:10px;min-height:32px;line-height:1.2;padding:4px;background:linear-gradient(#78c5fa,#2c83be);border:1px solid #bbebff;border-radius:5px;color:white;box-shadow:inset 0 2px #c9efff66}.cj .native-tabs{margin:4px 0 8px}.cj .native-tabs button{border-radius:5px 5px 0 0;min-height:29px;font-size:9px}.cj .native-hq{padding:7px;gap:5px}.native-hq>div{flex:1;min-width:0}.native-hq>div>b{font-size:12px}.native-hq #hqCommandState .game-stat{font-size:9px;padding:4px 0;gap:5px}.native-hq>img{width:95px;height:100px}.cj .game-screen[data-kind=hq] #hqCall{font-size:10px}.cj .game-screen[data-kind=hq] .hq-defender{margin:6px 0}.cj .game-screen[data-kind=hq] .hq-portraits img{width:34px;height:37px}.cj .game-screen[data-kind=hq] .hq-defender>p{font-size:10px}.cj .game-screen[data-kind=hq] .hq-defender>button{min-height:30px;padding:3px 7px;font-size:10px!important}
.cj .captured-rail{position:relative;display:block;height:65px;border:0;padding:0;margin:0 0 6px;background:#173e6d;overflow:hidden}.captured-rail>img{width:100%;height:100%;object-fit:fill;display:block}.cj .captured-rail>button{position:absolute;left:35%;top:0;width:30%;height:100%;border:1px solid #eff7fd;background:linear-gradient(#edf7fd,#8db6d2);border-radius:3px;padding:2px}.captured-rail>button>img{width:43px;height:43px}.captured-rail>button>span{font-size:9px;line-height:1}.cj .shortcut-details{margin:0;padding:10px 18px;font-size:12px}.trainer-shortcuts{display:flex;gap:7px;margin-top:8px}.cj .trainer-shortcuts button{font-size:11px}.field-hint{bottom:7px}.native-bandit>div:not(.native-ribbon){gap:6px}
