/* Expedition shell: forest at the entrance, orbital blue at the trainer station. */
.expeditionHome{display:flex;align-items:center;min-height:100dvh;padding:clamp(22px,5vw,80px) 7vw;color:#fff9d8;background:linear-gradient(90deg,#05111bf2 0%,#08171bdd 23%,#08201b55 47%,transparent 68%),url('../assets/forest.webp') center center/cover no-repeat,#142d27}
.expeditionHome[hidden]{display:none}.homeContent{width:min(360px,88vw);display:grid;justify-items:start;gap:15px}.pokemonLogo{width:min(213px,52vw);mix-blend-mode:screen}
.homeContent h1{font:900 clamp(58px,6.6vw,105px)/.83 var(--display);letter-spacing:-.075em;color:#fff9e8;margin:0 0 12px;text-shadow:0 5px 0 #151d24}.homeContent h1 em{font-style:normal;color:#ffd448}
.homeModes{display:grid;gap:10px;width:100%}.homeModes button{position:relative;text-align:left;background:#142a3aee;color:#fff9e8;border:1px solid #93b3cb8a;border-radius:14px 3px 14px 3px;padding:13px 48px 13px 18px;box-shadow:0 4px 0 #03101c80}
.homeModes button:first-child{background:linear-gradient(115deg,#ffe17b,#f5b829);border-color:#ffe288;color:#182d40}.homeModes b{display:block;font:750 24px var(--display)}.homeModes small{display:block;margin-top:3px}.homeModes span{position:absolute;right:17px;top:26%;font-size:23px}.homeSettings{padding:8px 3px;background:none;border:none;color:#fff5da;font-weight:700}
#gameShell[data-screen=camp] .campArt{background:linear-gradient(0deg,#0b1727 0%,transparent 42%),url('../assets/orbit.webp') center 15%/auto 84% no-repeat,#02050b}
.campCaption h1{color:#ffe28b}.identity{background:linear-gradient(145deg,#4c80a31c,#f5c53712);border:1px solid #a6b0b6}.identity .spriteGrid{grid-template-columns:repeat(9,minmax(0,1fr));gap:4px}.identity .spriteGrid label{overflow:hidden;background:#1b2b3b;padding:3px;border-radius:5px;transition:transform .15s}.spriteGrid img{height:49px;image-rendering:auto;object-fit:contain}.spriteGrid label:has(:checked){transform:translateY(-2px)}
.identityPortrait{height:92px;width:68px;display:flex;flex-direction:column;justify-content:end;background:radial-gradient(ellipse at bottom,#426987,#132638);perspective:450px}.identityPortrait img{height:68px;width:auto;max-width:95%;image-rendering:auto;transform:rotateY(-13deg) rotateZ(-3deg);border-radius:2px;box-shadow:3px 3px 0 #18252f,6px 4px 6px #0006}.identityPortrait b{color:white;font:600 10px var(--display);padding:3px}.identity .spriteGrid{margin-top:16px}
.trainerPawn img,.trainerPlate img{image-rendering:auto}.trainerPawn img{width:auto;max-width:100%;height:clamp(22px,3vw,42px);border-radius:3px;transform:perspective(90px) rotateY(-12deg);box-shadow:2px 1px 0 var(--trainer);filter:drop-shadow(1px 3px 2px #0009)}.trainerPawn:after{height:15%;z-index:-1;width:98%;box-shadow:0 2px 1px #192a38}
.trainerPlate{background:radial-gradient(ellipse at 25% 100%,#37587a,#14263a 74%)}.trainerPlate img{filter:drop-shadow(3px 4px 2px #0007);transform:perspective(250px) rotateY(-12deg)}
#bottom:has(.bag){grid-template-columns:1.25fr 1fr;align-items:start;margin-top:18px}.bag{min-width:0;color:var(--ink,#203440);border-radius:15px;background:var(--paper,#fff8e8);padding:16px;box-shadow:0 5px 14px #06192650}.bagHead{display:flex;align-items:center;justify-content:space-between;gap:8px}.bagHead strong{font-size:13px;background:#75919b22;padding:5px 9px;border-radius:15px}.rosterTabs{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.rosterTabs button{border:1px solid #8a9e9c55;border-radius:20px;padding:7px 9px;background:transparent;font-size:12px}.rosterTabs [aria-pressed=true]{background:#193645;color:#fff}.rosterTabs i{display:inline-block;width:10px;height:10px;border:1px solid #fff;border-radius:50%;background:var(--seat);margin-right:5px}
.partyGrid,.itemGrid{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}.partyCard,.itemGrid .handCard{display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:none;border:1px solid #90a3a24f;border-radius:10px;background:#879d9012;padding:8px;gap:4px}.partyCard b,.itemGrid b{font-size:12px}.partyCard small,.itemGrid small{font-size:10px}.itemGrid{margin-top:12px}.itemGrid .cardface{height:82px;width:auto;max-width:100%;object-fit:contain}.bag .hint{grid-column:1/-1}
@media(hover:hover){.homeModes button:hover{transform:translateX(4px)}.partyCard:hover,.itemGrid button:hover{border-color:#bd934a}.spriteGrid label:hover img{transform:perspective(150px) rotateY(-15deg)}}
@media(max-width:780px){.expeditionHome{background-position:center,67% center;align-items:end;padding:24px 6vw;background-image:linear-gradient(0deg,#06141bf2 5%,#071a21c9 39%,transparent 76%),url('../assets/forest.webp')}.homeContent{gap:10px}.homeContent h1{font-size:52px}.pokemonLogo{width:138px}.homeModes b{font-size:19px}.homeModes button{padding:9px 16px}.identity .spriteGrid{grid-template-columns:repeat(5,minmax(0,1fr))}#bottom:has(.bag){grid-template-columns:1fr;gap:12px}.bag{padding:12px}#gameShell[data-screen=camp] .campArt{min-height:147px;background-size:cover,auto 105%;background-position:center,right center}.campCaption{max-width:62%;background:none}.campCaption p{font-size:12px}.maphead{flex-wrap:wrap}}
@media(pointer:coarse){.btn,.gamebar button,.zoom button,.modalhead button,.rosterTabs button{min-height:40px}.gamebar{flex-wrap:wrap}.sidecolumn{position:static}.teamDock{min-width:0}dialog{max-width:94vw;max-height:90dvh;overflow:auto}.arenaChoices{overscroll-behavior:contain}.trainerPawn,.mapchip,.partyCard,.handCard{user-select:none}}
@media(orientation:landscape) and (max-height:550px){.expeditionHome{align-items:center;background-image:linear-gradient(90deg,#06141bf5,#071a21a6 38%,transparent 76%),url('../assets/forest.webp');padding:10px 4vw;background-position:center}.homeContent{gap:6px;width:248px}.pokemonLogo{width:92px}.homeContent h1{font-size:39px;margin:0}.homeContent h1 br{display:none}.homeContent h1 em{margin-left:5px}.homeModes{gap:5px}.homeModes button{padding:6px 12px}.homeModes b{font-size:16px}.homeModes small{font-size:10px}.homeSettings{padding:4px}#gameShell[data-screen=camp] .layout{grid-template-columns:.72fr 1fr}.campArt{min-height:100%!important}.sidecolumn{min-width:0}#gameShell[data-screen=camp] .sidecolumn{max-height:76dvh;overflow:auto}#actionWindow{max-height:88dvh}.duel .duelist{height:50px;width:auto}.arenaChoices{max-height:50dvh}.gamebar{gap:3px}}
@media(prefers-reduced-motion:reduce){.spriteGrid label,.homeModes button,.identityPortrait img{transition:none}.homeModes button:hover{transform:none}}
#singleplayer,#multiplayer{top:auto;left:auto}.pokemonLogo{mask-image:linear-gradient(to bottom,#000 0 88%,transparent 100%)}

.partyCard.recentChip{box-shadow:0 0 0 2px #caa143}.duel:before{background-image:linear-gradient(90deg,#132b33cc,#19403b99 45%,#312a36dc),url('../assets/forest.webp')}
.starterReveal{background:linear-gradient(145deg,#112338,#172e49);color:#fff4cc;border:2px solid #dcb459;box-shadow:0 16px 70px #041324a8}.starterReveal h2{color:#ffda61}.starterReveal .starterPrize img{filter:drop-shadow(0 6px 10px #030d1c)}.starterReveal .primary{background:#ffda61;border-color:#e5ad32;color:#112639}
@media(pointer:coarse){.dockChips button{min-height:38px;min-width:36px}.modalhead button{min-width:36px}}
/* 3.0: tactile inventory, clear primary action and card acquisition. */
.bag{border:1px solid #5f8eb977;background:linear-gradient(135deg,#eaf8ff,#f7f0ff 65%,#fff6df);box-shadow:0 8px 24px #10264522,inset 0 1px #fff;border-radius:22px}
.bagHead{border-bottom:2px solid #749fc644;color:#153e67;padding:12px 14px}
.bagHead strong{background:#183d69;color:#ffdf79;padding:7px 12px;border-radius:20px}
.partyCard{background:radial-gradient(ellipse at 50% 22%,#d2f1ff,#edf2ff 65%);border:1px solid #73a7c766;box-shadow:0 4px 0 #8ba8c733;transition:transform .18s,box-shadow .18s}
.handCard{background:linear-gradient(150deg,#fff8dc,#e9edff);border:1px solid #b9a36b77;box-shadow:0 5px 0 #8d79432b}
.partyCard:hover,.handCard:hover{transform:translateY(-3px);box-shadow:0 8px 18px #183d692b}
.rosterTabs button[aria-selected="true"]{background:#24588c;color:#fff;box-shadow:0 3px 0 #123251}
.btn.primary,.playChoice.primary{background:linear-gradient(#ffdf77,#f5b731);color:#152d4b;border:1px solid #ffe9a3;border-bottom:4px solid #ab7216;box-shadow:0 4px 14px #e8aa3040,inset 0 1px #fff9;font-weight:800}
.btn.primary:hover{filter:brightness(1.08);transform:translateY(-1px)}
.btn.primary:active{transform:translateY(2px);box-shadow:none}
button:focus-visible{outline:3px solid #2baae7;outline-offset:4px}
.itemReveal{width:min(860px,94vw);max-height:90dvh;overflow:auto;border:1px solid #85c7ef;border-radius:26px;background:radial-gradient(ellipse at top,#244b73,#0c1a32 80%);color:#f3f8ff;padding:32px;text-align:center;box-shadow:0 30px 100px #0009}
.itemReveal::backdrop{background:#061226bb;backdrop-filter:blur(5px)}
.itemReveal>small{color:#ffda70;letter-spacing:.22em;font-weight:800}
.receiptClose{position:absolute;top:8px;left:10px;background:#ffffff18;color:#fff;border:1px solid #ffffff55;border-radius:50%;width:40px;height:40px;font-size:26px}
.receiptCards{display:flex;justify-content:center;flex-wrap:wrap;gap:20px;margin:24px 0;perspective:900px}
.receiptCards article{flex:0 1 210px;animation:dealItem .55s both;animation-delay:calc(var(--order)*.12s)}
.receiptCards .cardface{width:100%;height:240px;object-fit:contain;filter:drop-shadow(0 12px 10px #0006)}
.receiptCards h3{color:#ffe293;margin:10px 0}.receiptCards p{font-size:14px;line-height:1.5}
.cardBack{height:240px;border:5px solid #efcf79;border-radius:14px;background:repeating-linear-gradient(45deg,#245c92 0 15px,#1c4775 15px 30px);display:grid;place-items:center;font-size:70px;color:#ffe1a3}
@keyframes dealItem{from{opacity:0;transform:translateY(60px) rotateY(-75deg) scale(.7)}to{opacity:1;transform:none}}
[data-theme="dark"] .bag{background:linear-gradient(135deg,#142b41,#25243e);color:#f2f6ff}[data-theme="dark"] .bagHead{color:#c4eaff}[data-theme="dark"] .partyCard,[data-theme="dark"] .handCard{background:linear-gradient(150deg,#29435d,#282940);color:#f2f6ff}
@media(max-width:600px){.itemReveal{padding:38px 14px 20px}.receiptCards{gap:12px}.receiptCards article{flex-basis:150px}.receiptCards .cardface,.cardBack{height:190px}}
@media(prefers-reduced-motion:reduce){.receiptCards article{animation:none}.partyCard,.handCard{transition:none}}
/* Hall da fama: celebração com foco no treinador e na equipe. */
#actionWindow.victoryDialog{padding:0;width:min(1000px,96vw);max-width:1000px;max-height:94dvh;border:1px solid #ecd18a;border-radius:28px;background:#091a30;color:#fff;overflow:auto;box-shadow:0 24px 100px #000b}
.victoryScreen{position:relative;isolation:isolate;overflow:hidden;padding:32px 36px;text-align:center;background:radial-gradient(ellipse at 50% 20%,#245776aa,transparent 55%),linear-gradient(#071629e8,#0b2036f5),url('../assets/forest.webp') center/cover}
.victoryScreen header,.victoryScreen footer,.victoryStats,.victoryName,.victoryNote,.victoryTeam,.victorySubtitle{position:relative;z-index:2}
.victoryEyebrow{font-size:11px;letter-spacing:.25em;color:#ffdb79;font-weight:800}.victoryScreen h2{font-size:clamp(25px,4vw,40px);margin:10px 0;color:#fff}.victoryScreen header p{color:#c4d9eb;margin:0}
.victoryHero{height:210px;position:relative;display:grid;place-items:center;margin:8px auto 0;width:260px;perspective:800px}
.victoryHalo{position:absolute;width:210px;height:210px;border:1px solid #f9d76e77;border-radius:50%;background:radial-gradient(circle,#ffe4a144,#61c6f322 50%,transparent 70%);box-shadow:0 0 50px #ffd35a22;animation:championGlow 3s ease-in-out infinite alternate}
.victoryTrainer{position:relative;z-index:2;height:175px;width:125px;object-fit:contain;filter:drop-shadow(0 8px 9px #0008);animation:championEnter .9s cubic-bezier(.18,.8,.25,1) both}
.victoryCrown{position:absolute;z-index:3;color:#ffda6e;font-size:32px;top:0;right:32px;text-shadow:0 0 20px #ffb600}
.victoryPedestal{position:absolute;bottom:2px;width:180px;height:35px;border-radius:50%;background:linear-gradient(#fff6,var(--winner-color));border:2px solid #ffe49a;box-shadow:0 8px 0 #071221,0 12px 20px #0006}
.victoryName{font-size:clamp(30px,5vw,48px);color:#ffe39b;margin:8px 0 0;text-shadow:0 3px #614a29}.victorySubtitle{font-size:11px;letter-spacing:.25em;color:#e6c679;margin:4px 0 20px}
.victoryStats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.victoryStats>div{display:grid;gap:6px;border:1px solid #8cbed64d;border-radius:16px;background:linear-gradient(135deg,#ffffff12,#ffffff04);padding:14px 8px;box-shadow:inset 0 1px #fff2}.victoryStats strong{font-size:30px;color:#ffde87}.victoryStats span{font-size:12px;color:#e0edfa}.victoryNote{font-size:11px;color:#9fbcd5}
.victoryTeam{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:18px 0}.victoryChip{height:48px;width:48px;object-fit:contain;filter:drop-shadow(0 3px 4px #0009)}.victoryTeam .ko{opacity:.45;filter:grayscale(1)}
.victoryScreen footer{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.victoryScreen footer .btn:not(.primary){background:#193955;color:#e6f3ff;border:1px solid #7295b3}
.victoryConfetti{position:absolute;inset:0;pointer-events:none;z-index:1}.victoryConfetti i{position:absolute;left:var(--x);top:-20px;width:7px;height:14px;background:#ffdb76;animation:championConfetti 5s linear both;animation-delay:calc(var(--i)*-.09s)}.victoryConfetti i:nth-child(3n){background:#68d4ed}.victoryConfetti i:nth-child(3n+1){background:#fc859d}
@keyframes championEnter{from{opacity:0;transform:translateY(40px) rotateY(-30deg) scale(.8)}to{opacity:1;transform:none}}@keyframes championGlow{to{transform:scale(1.07);opacity:.65}}@keyframes championConfetti{from{transform:translateY(-30px) rotate(var(--r))}to{transform:translateY(900px) rotate(calc(var(--r) + 500deg));opacity:0}}
@media(max-width:600px){.victoryScreen{padding:24px 16px}.victoryStats{grid-template-columns:repeat(2,1fr)}.victoryHero{height:180px}.victoryTrainer{height:150px}.victoryHalo{width:170px;height:170px}.victoryScreen footer .btn{width:100%}}
@media(max-height:500px) and (orientation:landscape){.victoryHero{height:150px}.victoryTrainer{height:130px}.victoryScreen{padding:22px}.victoryHalo{height:140px;width:140px}}
@media(prefers-reduced-motion:reduce){.victoryTrainer,.victoryHalo,.victoryConfetti i{animation:none}.victoryConfetti{display:none}}
/* Isola o cabeçalho da celebração das regras do cabeçalho principal. */
#actionWindow .victoryScreen header{display:block;position:relative;background:transparent;border:0;box-shadow:none;padding:0;margin:0;height:auto;min-height:0;text-align:center;color:#fff}
#actionWindow .victoryScreen header h2{color:#fff;max-width:none;margin:10px 0;line-height:1.15}
