/* Yumi Balls · flujo party estático aprobado */
:root{--party-bg:#120a35;--party-panel:#24115c;--party-pink:#f02bc9;--party-cyan:#24d8ff;--party-yellow:#ffe33d;--party-lime:#9eff2e;--party-ink:#110827}
html,body{width:100%;height:100%;overflow:hidden}
body.party-flow{margin:0;background:radial-gradient(circle at 50% 15%,#392080 0,#170d45 42%,#09061e 100%)}
body.party-flow #menus{position:fixed;inset:0;height:100dvh;max-height:100dvh;overflow:hidden!important;background:
radial-gradient(circle at 12% 12%,#1fbcff22 0 11%,transparent 30%),
radial-gradient(circle at 88% 10%,#ff32c522 0 12%,transparent 30%),
linear-gradient(180deg,#1b0d4c 0%,#10082d 100%)}
body.party-flow #menus:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 0 4%,#29dfff12 4.2%,transparent 4.5% 95.5%,#ff3ddd12 95.8%,transparent 96%)}
body.party-flow .screen[hidden]{display:none!important}
body.party-flow .screen{box-sizing:border-box;width:100%;height:100%;max-height:100dvh;overflow:hidden!important;padding:clamp(12px,2vh,26px) clamp(18px,3vw,54px) clamp(54px,7vh,76px)}
body.party-flow #menu-nav{position:fixed;z-index:20;left:clamp(14px,2vw,34px);right:clamp(14px,2vw,34px);top:clamp(8px,1.4vh,18px);pointer-events:none}
body.party-flow #menu-nav>*{pointer-events:auto}
body.party-flow #menus[data-view="splash"] #menu-nav,body.party-flow #menus[data-view="lobby"] #menu-nav{display:none}
body.party-flow .menu-footer{height:42px;min-height:42px;background:#10082ee8;border-top:2px solid #984aff66;color:#eee9ff;font-weight:900;letter-spacing:.04em}
body.party-flow .splash{display:grid!important;place-items:center;text-align:center;padding:3vh 4vw 6vh}
body.party-flow .cover-brand{display:none}
body.party-flow .cover-title{font-size:clamp(68px,11vw,164px)!important;line-height:.77!important;text-transform:uppercase;letter-spacing:-.065em;color:#fff;text-shadow:0 8px 0 #24105d,0 0 28px #f44be5;margin:0;z-index:3}
body.party-flow .cover-title br{display:none}
body.party-flow .cover-title:after{content:"";display:block;width:68%;height:clamp(10px,1.4vw,22px);margin:.13em auto 0;border-radius:999px;background:linear-gradient(90deg,#ff37d0,#ffe531,#21d9ff);box-shadow:0 0 24px #ff52e7}
body.party-flow .cover-balls{position:absolute;inset:8vh 4vw 13vh;display:flex;align-items:center;justify-content:space-between;gap:1vw;z-index:1}
body.party-flow .cover-balls .orb{width:clamp(72px,8vw,138px);height:clamp(72px,8vw,138px);box-shadow:inset -12px -14px 22px #0005,inset 10px 10px 18px #fff7,0 10px 28px #0008}
body.party-flow .cover-balls .orb:nth-child(even){transform:translateY(-21vh)}
body.party-flow .cover-balls .orb:nth-child(odd){transform:translateY(20vh)}
body.party-flow .press-start{z-index:4;position:absolute;bottom:10vh;min-width:min(620px,76vw);font-size:clamp(21px,2.5vw,38px)!important;text-transform:uppercase;border:4px solid #ff8ef0!important;background:linear-gradient(180deg,#8c2edb,#421088)!important;box-shadow:0 0 26px #ef46e899,0 9px 0 #210846!important;animation:partyPulse 1.2s ease-in-out infinite alternate}
@keyframes partyPulse{to{transform:scale(1.035);filter:brightness(1.18)}}
body.party-flow #view-main{display:none!important}
body.party-flow .jumi-lobby{padding:1.8vh 3vw 7vh!important}
body.party-flow .jumi-heading{height:clamp(54px,8vh,82px);display:flex;align-items:center;justify-content:center;margin:0 0 1vh;position:relative}
body.party-flow .jumi-heading h1{font-size:clamp(32px,4.4vw,68px);line-height:1;margin:0;text-transform:uppercase;color:#fff;text-shadow:0 5px 0 #24105d,0 0 20px #b94dff}
body.party-flow .jumi-heading .text-back{position:absolute;left:0}
body.party-flow .room-total{position:absolute;right:0;padding:.55em .9em;border-radius:999px;background:#291064;border:2px solid #4edcff;color:#fff;font-weight:900}
body.party-flow .party-progress{display:flex;gap:10px;justify-content:center;margin:-.2vh auto 1.4vh}
body.party-flow .party-progress span{padding:.38em 1.1em;border-radius:999px;background:#24124f;border:2px solid #ffffff24;color:#afa5d1;font-weight:1000;text-transform:uppercase;font-size:clamp(11px,1.15vw,16px)}
body.party-flow .party-progress span.active{background:linear-gradient(180deg,#ff42cc,#9b21c8);border-color:#fff39b;color:#fff;box-shadow:0 0 16px #ff48d888}
body.party-flow .jumi-step{height:calc(100% - clamp(92px,13vh,128px));overflow:hidden!important}
body.party-flow .party-character-layout{height:100%;display:grid;grid-template-columns:minmax(0,3.15fr) minmax(230px,.85fr);gap:clamp(12px,1.5vw,24px);align-items:stretch}
body.party-flow .party-character-layout>.characters-panel{min-width:0}
body.party-flow .party-count-panel{display:flex;flex-direction:column;justify-content:center;gap:clamp(8px,1.2vh,16px);padding:clamp(14px,2vh,24px)!important}
body.party-flow .party-count-panel .field-label{font-size:clamp(16px,1.5vw,22px);font-weight:1000}
body.party-flow .party-count-panel select{font-size:clamp(17px,1.5vw,23px);font-weight:900}
body.party-flow .count-row{padding:.45em 0!important}
body.party-flow .count-row small,body.party-flow .party-count-panel input[type=range],body.party-flow #pad-settings{display:none!important}
body.party-flow .stepper button{font-size:24px!important;min-width:42px!important;min-height:42px!important}
body.party-flow .characters-panel{display:grid;grid-template-rows:auto auto 1fr auto;padding:clamp(12px,1.6vh,22px)!important;background:linear-gradient(165deg,#26115de8,#160b3be8)!important;border:3px solid #bd55ff!important;border-radius:28px!important;box-shadow:0 12px 36px #0008,inset 0 0 34px #8a3cff1d}
body.party-flow .characters-panel .panel-heading h2{font-size:clamp(22px,2.4vw,38px);text-transform:uppercase;margin:.1em 0}
body.party-flow #player-slots{display:flex!important;gap:8px!important;min-height:52px;justify-content:center;overflow:visible!important}
body.party-flow .player-slot{min-width:clamp(72px,8vw,120px)!important;padding:.25em .4em!important;font-size:clamp(13px,1.2vw,18px)!important;border-radius:999px!important}
body.party-flow .player-slot .orb{width:34px!important;height:34px!important}
body.party-flow .field-heading,body.party-flow .alias-field,body.party-flow .ball-style,body.party-flow .capacity-note,body.party-flow #active-controller,body.party-flow .character-hint{display:none!important}
body.party-flow #ball-picker{height:100%;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(8px,1vw,16px);overflow:hidden!important;padding:4px}
body.party-flow .ball-choice{position:relative;display:grid!important;place-items:center;min-height:0!important;padding:.25em!important;border-radius:24px!important;background:linear-gradient(160deg,#ffffff12,#00000024)!important;border:3px solid #ffffff27!important;box-shadow:inset 0 0 20px #fff0,0 8px 18px #0004;transition:.16s transform,.16s border-color,.16s box-shadow}
body.party-flow .ball-choice:focus,body.party-flow .ball-choice[aria-pressed=true]{transform:scale(1.045);border-color:#ffe643!important;box-shadow:0 0 0 4px #ffb91c55,0 0 25px #ffe34788,inset 0 0 24px #fff2;z-index:2}
body.party-flow .ball-choice .orb{width:min(11vh,8vw)!important;height:min(11vh,8vw)!important;min-width:58px;min-height:58px;box-shadow:inset -8px -10px 14px #0005,inset 7px 7px 12px #fff7,0 8px 14px #0006}
body.party-flow .ball-choice .color-name{font-size:clamp(12px,1.1vw,17px)!important;font-weight:1000;text-transform:uppercase}
body.party-flow .ball-choice .owner{position:absolute;top:5px;font-size:clamp(12px,1.2vw,18px);font-weight:1000;color:#fff;text-shadow:0 2px 3px #000}
body.party-flow .jumi-actions{position:absolute!important;left:3vw;right:3vw;bottom:6.4vh;display:flex!important;justify-content:center!important;align-items:center;z-index:8;pointer-events:none}
body.party-flow .jumi-actions>*{pointer-events:auto}
body.party-flow .jumi-actions .primary{min-width:min(390px,44vw);font-size:clamp(17px,1.55vw,24px)!important;text-transform:uppercase}
body.party-flow .party-config-grid{height:100%;display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:clamp(10px,1.2vw,20px);padding-bottom:7vh}
body.party-flow .party-config-grid>.panel{height:auto!important;min-width:0;overflow:hidden;padding:clamp(12px,1.6vh,22px)!important;border-radius:26px!important;border-width:3px!important;background:linear-gradient(165deg,#251056ef,#160a3cef)!important}
body.party-flow .party-config-grid .map-panel{border-color:#25d7ff!important}
body.party-flow .party-config-grid .party-rules-panel{border-color:#ff39c4!important}
body.party-flow .party-config-grid #physics-options{border-color:#9cff2e!important}
body.party-flow .party-config-grid h2,body.party-flow .party-config-grid .field-label{font-size:clamp(18px,1.7vw,27px)!important;text-transform:uppercase;font-weight:1000}
body.party-flow #map-preview{height:clamp(116px,22vh,220px)!important}
body.party-flow .map-palette{grid-template-columns:repeat(6,1fr)!important;gap:7px!important}
body.party-flow .map-color{min-height:34px!important}
body.party-flow .custom-color{display:none!important}
body.party-flow .party-rules-panel select{width:100%;font-size:clamp(15px,1.35vw,21px);font-weight:900;padding:.65em}
body.party-flow #physics-options p,body.party-flow #physics-options [data-physics-reset],body.party-flow #physics-options input[name="objectBounce"],body.party-flow #physics-options label[for="physics-objectBounce"]{display:none!important}
body.party-flow #physics-options input[type=range]{margin:.6vh 0 1.7vh}
body.party-flow #jumi-catalog{padding-bottom:6vh}
body.party-flow .party-category-tabs{display:flex;justify-content:center;gap:clamp(10px,1.2vw,20px);height:clamp(44px,6vh,64px);margin-bottom:1vh}
body.party-flow .party-category-tabs button{min-width:clamp(150px,21vw,330px);padding:.4em 1em;border-radius:999px;border:3px solid #ffffff5c;color:#fff;font-size:clamp(16px,1.9vw,29px);font-weight:1000;text-transform:uppercase;box-shadow:0 7px 0 #09051f}
body.party-flow .party-category-tabs button:nth-child(1){background:#e33143}body.party-flow .party-category-tabs button:nth-child(2){background:#2474e9}body.party-flow .party-category-tabs button:nth-child(3){background:#39b92f}
body.party-flow .party-category-tabs button[aria-pressed=true],body.party-flow .party-category-tabs button:focus{border-color:#fff36d;box-shadow:0 0 0 4px #ffdf3155,0 7px 0 #09051f;transform:translateY(-2px)}
body.party-flow .catalog-nav{position:absolute;top:1vh;left:0;right:0;display:flex;justify-content:space-between;pointer-events:none}
body.party-flow .catalog-nav>*{pointer-events:auto}
body.party-flow #catalog-page{display:none}
body.party-flow #catalog-prev,body.party-flow #catalog-next{min-width:72px;border-radius:16px;font-size:0!important}
body.party-flow #catalog-prev:after{content:"L1"}body.party-flow #catalog-next:after{content:"R1"}
body.party-flow .catalog-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(12px,1.6vw,26px)!important;height:calc(100% - clamp(60px,8vh,84px));align-items:center;padding:1vh 3vw 8vh!important;overflow:hidden!important}
body.party-flow .catalog-card{height:clamp(250px,48vh,490px)!important;display:grid!important;grid-template-rows:1fr auto!important;padding:0!important;border-radius:30px!important;overflow:hidden;background:#241056!important;border:4px solid #ffffff55!important;box-shadow:0 14px 30px #0008;transition:.16s transform,.16s box-shadow,.16s border-color}
body.party-flow .catalog-card canvas{width:100%!important;height:100%!important;object-fit:cover;order:0;background:#140a36}
body.party-flow .catalog-card strong{order:1;display:grid;place-items:center;min-height:70px;padding:.3em .5em;font-size:clamp(18px,2vw,32px)!important;line-height:1.02;text-transform:uppercase;color:#fff;background:linear-gradient(180deg,#cb2e48,#881733)}
body.party-flow .catalog-card small{position:absolute;top:12px;left:12px;z-index:2;padding:.35em .65em;border-radius:999px;background:#130a35dd;color:#fff;font-size:clamp(11px,1vw,15px)}
body.party-flow .catalog-card[aria-pressed=true],body.party-flow .catalog-card:focus{transform:scale(1.07);border-color:#ffe93d!important;box-shadow:0 0 0 5px #ffdf3144,0 18px 38px #0009;z-index:2}
body.party-flow #catalog-detail{display:none!important}
body.party-flow #jumi-catalog .jumi-actions{bottom:6.2vh}
body.party-flow #jumi-catalog #start{min-width:min(330px,38vw)}
body.party-flow button:focus,body.party-flow select:focus,body.party-flow input:focus-visible{outline:4px solid #ffe83f!important;outline-offset:3px}
@media(max-width:900px),(max-height:570px){
 body.party-flow .screen{padding:8px 14px 45px}
 body.party-flow .jumi-lobby{padding:5px 14px 46px!important}
 body.party-flow .jumi-heading{height:48px}
 body.party-flow .party-progress{display:none}
 body.party-flow .jumi-step{height:calc(100% - 52px)}
 body.party-flow .party-character-layout{grid-template-columns:1fr 190px;gap:8px}
 body.party-flow .ball-choice .orb{min-width:44px;min-height:44px}
 body.party-flow .party-config-grid{gap:8px;padding-bottom:44px}
 body.party-flow .party-config-grid>.panel{padding:8px!important;border-radius:18px!important}
 body.party-flow #map-preview{height:105px!important}
 body.party-flow .catalog-card{height:68vh!important;border-radius:20px!important}
 body.party-flow .catalog-card strong{min-height:52px}
 body.party-flow .jumi-actions{left:14px;right:14px;bottom:43px}
 body.party-flow .menu-footer{height:36px;min-height:36px;font-size:11px}
}

/* Character-selection redesign based on the approved Yumi Balls reference.
   Only menu presentation changes; game simulation and touch input are untouched. */
body.party-flow #jumi-setup .party-character-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:12px}
body.party-flow #jumi-setup .characters-panel{grid-template-rows:auto auto minmax(0,1fr) auto;overflow:visible}
body.party-flow #jumi-setup .party-count-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px;padding:8px!important;background:transparent;border:0;box-shadow:none}
body.party-flow .party-count-panel>.field-label{grid-column:1/-1;display:none}
body.party-flow .party-count-panel>select{grid-column:1;grid-row:1;background:linear-gradient(155deg,#0e7659,#064e3d)!important;border:5px ridge #b78758!important;border-radius:18px!important;color:white}
body.party-flow .party-count-panel>.count-row{margin:0!important;padding:10px!important;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:8px;background:linear-gradient(155deg,#138468,#07513f)!important;border:5px ridge #b78758!important;border-radius:18px!important}
body.party-flow .party-count-panel>.count-row:nth-of-type(1){grid-column:2;grid-row:1}
body.party-flow .party-count-panel>.count-row:nth-of-type(2){grid-column:3;grid-row:1}
body.party-flow .party-count-panel .count-row label{font-size:clamp(12px,1.5vw,20px);font-weight:900;color:white}
body.party-flow .party-count-panel .count-row small{display:block!important;font-size:clamp(9px,1vw,12px);color:#d2e6dc}
body.party-flow .party-count-panel .stepper{background:#101122;border-radius:12px;justify-content:space-between;min-height:40px}
body.party-flow .party-count-panel .stepper output{color:white;font-size:20px;min-width:20px}
body.party-flow .characters-panel{background:linear-gradient(165deg,#29135e,#160b3c)!important}
body.party-flow #ball-picker{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(5,minmax(0,1fr))!important;gap:6px!important;min-height:0}
body.party-flow .ball-choice{display:flex!important;flex-direction:row!important;justify-content:flex-start;align-items:center;gap:clamp(7px,1vw,14px);padding:6px 10px!important;border-radius:17px!important;border:5px ridge #b98254!important;background:linear-gradient(145deg,#137f60,#07523f 85%)!important;box-shadow:inset 0 0 0 2px #e4c18d55,0 4px 0 #603a2d!important}
body.party-flow .ball-choice[aria-pressed=true]{transform:none!important;border-color:#fff46a!important;box-shadow:0 0 0 3px #fff35c99,inset 0 0 18px #fff3!important}
body.party-flow .ball-choice .orb{width:clamp(32px,4.5vw,58px)!important;height:clamp(32px,4.5vw,58px)!important;min-width:32px!important;min-height:32px!important;flex:none}
body.party-flow .ball-choice .color-name{font-size:clamp(12px,1.45vw,19px)!important;letter-spacing:.02em;color:#dce7dc}
body.party-flow .ball-choice[aria-pressed=true] .color-name{color:#fff36b}
body.party-flow .ball-choice .owner{display:none}
body.party-flow #player-slots .player-slot{border:4px solid #d4aa73!important;background:linear-gradient(140deg,#13856b,#07523f)!important;color:#fff}
body.party-flow #player-slots .player-slot[aria-pressed=true]{border-color:#fff46a!important;box-shadow:0 0 0 4px #fff46a88}
body.party-flow #alias-with-pad:not([hidden]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(100px,1.2fr);gap:7px;align-items:end;border:4px solid #f432cf;border-radius:20px;padding:12px;background:#13092f}
body.party-flow #alias-with-pad:before{content:"NOMBRE · 3 LETRAS";grid-column:1/-1;text-align:center;font-weight:900;color:#ffec67;letter-spacing:.13em}
body.party-flow #alias-with-pad select{min-width:0;background:#fff;color:#22113c;font-weight:900;text-align:center;font-size:20px}
body.party-flow #alias-with-pad button{font-weight:900;color:#fff;background:#7622a5;border:2px solid #c65fe8}
body.party-flow .alias-field{display:block!important;margin-top:6px;color:#ffea69;font-weight:800;text-align:center}
body.party-flow .alias-field input{display:block;width:min(210px,100%);margin:5px auto 0;text-align:center;font-size:18px;font-weight:900;background:#fff;color:#190e35;border:3px solid #e938d1;border-radius:12px;padding:8px}
body.party-flow .jumi-heading h1{font-size:clamp(25px,4vw,58px);max-width:75%;text-align:center}
@media (orientation:portrait) and (max-width:900px){
 body.party-flow #menus{overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch}
 body.party-flow .jumi-lobby{height:auto!important;min-height:100dvh;max-height:none!important;overflow:visible!important;padding:18px 4vw 80px!important}
 body.party-flow .jumi-heading{height:auto;min-height:95px;align-items:flex-start;justify-content:flex-start;padding-top:12px}
 body.party-flow .jumi-heading h1{font-size:clamp(27px,7.2vw,48px);line-height:1.05;max-width:76%;text-align:left}
 body.party-flow .jumi-heading .text-back{top:0;left:0;transform:translateY(-12px)}
 body.party-flow .room-total{top:14px;right:0;font-size:12px;padding:8px}
 body.party-flow .jumi-step{height:auto!important;min-height:0;overflow:visible!important}
 body.party-flow .party-character-layout{display:flex!important;flex-direction:column;gap:8px}
 body.party-flow .characters-panel{display:flex!important;flex-direction:column;gap:9px;padding:13px!important;border-radius:22px!important}
 body.party-flow .characters-panel .panel-heading{margin:0}
 body.party-flow .characters-panel .panel-heading h2{font-size:clamp(23px,6vw,35px)}
 body.party-flow #player-slots{min-height:48px;flex-wrap:wrap}
 body.party-flow #ball-picker{height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(5,minmax(62px,auto))!important;gap:6px!important}
 body.party-flow .ball-choice{min-height:62px!important;padding:5px!important;border-width:4px!important;border-radius:13px!important}
 body.party-flow .ball-choice .orb{width:clamp(31px,8vw,46px)!important;height:clamp(31px,8vw,46px)!important}
 body.party-flow .ball-choice .color-name{font-size:clamp(10px,3vw,15px)!important;overflow-wrap:anywhere}
 body.party-flow .party-count-panel{grid-template-columns:repeat(3,minmax(0,1fr));padding:0!important;gap:4px}
 body.party-flow .party-count-panel>select{font-size:13px!important;padding:4px!important}
 body.party-flow .party-count-panel>.count-row{padding:5px!important;border-width:3px!important}
 body.party-flow .party-count-panel .count-row label{font-size:11px}
 body.party-flow .party-count-panel .count-row small{font-size:9px}
 body.party-flow .party-count-panel .stepper button{min-width:28px!important;min-height:34px!important;padding:3px!important;font-size:20px!important}
 body.party-flow .party-count-panel .stepper output{font-size:14px}
 body.party-flow #alias-with-pad:not([hidden]){grid-template-columns:repeat(3,minmax(0,1fr));padding:8px}
 body.party-flow #alias-with-pad button{grid-column:1/-1}
 body.party-flow .jumi-actions{position:relative!important;left:auto;right:auto;bottom:auto!important;margin:14px 0 22px}
 body.party-flow .jumi-actions .primary{width:100%;min-width:0!important;font-size:17px!important}
 body.party-flow .menu-footer{position:relative;height:auto;min-height:35px}
}

/* Tablet/iPad layout: avoid the clipped desktop landscape menu on 4:3 screens. */
@media (min-width:601px) and (max-width:1200px), (pointer:coarse) and (min-width:601px) and (max-aspect-ratio:4/3){
 body.party-flow #menus{overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch}
 body.party-flow .jumi-lobby{height:auto!important;max-height:none!important;min-height:100dvh;overflow:visible!important;padding:20px 3vw 90px!important}
 body.party-flow .jumi-step{height:auto!important;min-height:0;overflow:visible!important}
 body.party-flow .party-character-layout{display:flex!important;flex-direction:column;gap:12px}
 body.party-flow .characters-panel{height:auto!important;min-height:0;overflow:visible!important}
 body.party-flow #ball-picker{height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(5,minmax(70px,auto))!important}
 body.party-flow .ball-choice{min-height:70px!important}
 body.party-flow .party-count-panel{grid-template-columns:repeat(3,minmax(0,1fr));min-height:100px}
 body.party-flow .jumi-actions{position:relative!important;left:auto;right:auto;bottom:auto!important;margin:20px auto 28px}
 body.party-flow .jumi-actions .primary{min-width:min(420px,90vw)}
 body.party-flow .party-config-grid{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:24px}
 body.party-flow .party-config-grid>.panel{min-height:180px}
 body.party-flow #jumi-catalog{height:auto!important}
 body.party-flow .catalog-cards{height:auto!important;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important;padding:20px 2vw!important}
 body.party-flow .catalog-card{height:clamp(230px,36vh,380px)!important}
 body.party-flow .catalog-nav{position:relative;top:auto}
 body.party-flow .menu-footer{position:relative}
}

/* Tablet Safari / iPadOS: scroll menus without hiding lower controls.
   Preserve the approved character cards and game world proportions. */
@media (min-width:600px) and (max-width:1200px){
 body.party-flow #menus{overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch}
 body.party-flow .jumi-lobby{height:auto!important;min-height:100dvh;max-height:none!important;overflow:visible!important;padding-bottom:90px!important}
 body.party-flow .jumi-step{height:auto!important;min-height:0;overflow:visible!important}
 body.party-flow .party-character-layout{height:auto;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto}
 body.party-flow .characters-panel{min-height:560px;overflow:visible!important}
 body.party-flow #ball-picker{height:auto!important;grid-template-rows:repeat(5,minmax(70px,auto))!important}
 body.party-flow .party-count-panel{min-height:100px}
 body.party-flow .jumi-actions{position:relative!important;left:auto;right:auto;bottom:auto!important;margin:20px auto 28px}
 body.party-flow .jumi-actions .primary{min-width:min(390px,85vw)}
 body.party-flow .party-config-grid{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:30px}
 body.party-flow .party-config-grid>.panel{min-height:240px}
 body.party-flow .catalog-cards{height:auto;min-height:280px;grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:35px 10px!important}
 body.party-flow .catalog-card{height:clamp(220px,32vw,380px)!important}
}
