/* Scenery first; four visible settings; footer stays outside the scroll area. */
:is(#quick,#world-gallery243){display:flex;flex-direction:column;overflow:clip;padding:0;gap:0;background:#0b1d31}
:is(#quick,#world-gallery243)[hidden]{display:none}
:is(#quick,#world-gallery243)>.panel-top{flex:none;padding:12px 16px 6px}
:is(#quick,#world-gallery243)>.quick-body5112{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 16px 18px;scroll-padding:10px;touch-action:pan-y}
:is(#quick,#world-gallery243) h2{font-size:24px;line-height:1.3;margin:6px 0}
:is(#quick,#world-gallery243) .quick-intro5112{font-size:11px;line-height:1.6;color:#b6d0df;margin:0 0 10px}
:is(#quick,#world-gallery243) :is(#quick-court-summary5112,#world-court-summary5112){border:1px solid #4c7185;border-radius:13px;overflow:hidden;background:#123047}
:is(#quick,#world-gallery243) .quick-court-preview5112{display:block;position:relative;width:100%;padding:0;border:0;border-radius:0;background:none;text-align:left;cursor:zoom-in}
:is(#quick,#world-gallery243) .quick-court-preview5112>img{display:block;width:100%;height:158px;object-fit:cover;object-position:center top}
:is(#quick,#world-gallery243) .quick-court-preview5112>span{position:absolute;right:7px;bottom:7px;padding:3px 6px;background:#091e32dc;border-radius:5px;color:#e4f4fc;font-size:10px;line-height:1.4}
:is(#quick,#world-gallery243) .quick-court-copy5112{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 11px}
:is(#quick,#world-gallery243) .quick-court-copy5112 b{font-size:14px;line-height:1.4;color:#f1f8fd}
:is(#quick,#world-gallery243) .quick-court-copy5112 span{font-size:10px;line-height:1.5;color:#bad4e4;text-align:right;max-width:45%}
:is(#quick,#world-gallery243) .quick-court-actions5112{display:flex;gap:8px;margin:8px 0 12px}
:is(#quick,#world-gallery243) .quick-court-actions5112 button{flex:1;min-height:36px;padding:7px 10px;border:1px solid #54778a;border-radius:10px;background:#14364c;color:#e0f1f9;font-size:12px}
:is(#quick,#world-gallery243) .quick-court-actions5112 button[aria-pressed=true]{border-color:#ffe16d;color:#ffe16d}
:is(#quick,#world-gallery243) :is(#quick-court-browser5112,#world-court-browser5112){margin-bottom:14px;padding:0 0 12px;border-bottom:1px solid #38596c}
:is(#quick,#world-gallery243) :is(#quick-court-browser5112,#world-court-browser5112)[hidden]{display:none}
:is(#quick,#world-gallery243) :is(#quick-court-browser5112,#world-court-browser5112) .vg-detail{display:none}
:is(#quick,#world-gallery243) #quick-options-label{font-size:14px;color:#ffe17a;margin:8px 0}
:is(#quick,#world-gallery243) .quick-settings-grid5112{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:stretch}
:is(#quick,#world-gallery243) .quick-setting5112,:is(#quick,#world-gallery243) #quick-stamina591-box{display:flex;flex-direction:column;margin:0;padding:9px 10px;gap:5px;background:#123047;border:1px solid #3d6177;border-radius:11px;min-width:0}
:is(#quick,#world-gallery243) .quick-setting5112>label,:is(#quick,#world-gallery243) #quick-stamina591-box>label{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;margin:0;font-weight:400}
:is(#quick,#world-gallery243) .quick-setting5112>span,:is(#quick,#world-gallery243) .quick-setting5112 label>span,:is(#quick,#world-gallery243) #quick-stamina591-box label>span{font-size:11px;line-height:1.4;color:#bed8e7}
:is(#quick,#world-gallery243) .quick-settings-grid5112 select{flex:none;box-sizing:border-box;width:100%;min-width:0;max-width:none;min-height:38px;padding:6px 8px;font-size:13px;background:#091f32;color:#fff;border:1px solid #56788c;border-radius:8px}
:is(#quick,#world-gallery243) #quick-options .free-options{margin:10px 0 0;font-size:11px}
:is(#quick,#world-gallery243) #quick-options .free-options label{font-size:11px}
:is(#quick,#world-gallery243) #quick-rules5112{border:1px solid #36566c;border-radius:10px;padding:10px 11px;margin:12px 0;font-size:12px;line-height:1.6;color:#b5cfde}
:is(#quick,#world-gallery243) #quick-rules5112>summary{color:#a7dce8;cursor:pointer;font-weight:700}
:is(#quick,#world-gallery243) #quick-rules5112 p{font-size:11px!important;line-height:1.65!important;margin:8px 0!important;min-height:0}
:is(#quick,#world-gallery243) #quick-rules5112 details{margin-top:8px}
:is(#quick,#world-gallery243) #quick-training{display:block;margin:6px auto 0;padding:8px 10px;background:none;border:0;box-shadow:none;color:#a7cfde;font-size:12px}
:is(#quick,#world-gallery243)>.quick-footer5112{flex:none;padding:10px 16px max(12px,env(safe-area-inset-bottom));background:#091b2d;border-top:1px solid #294459}
:is(#quick,#world-gallery243) #quick-next{position:static;display:block;width:100%;min-height:50px;margin:0;padding:14px 18px;font-size:17px;line-height:1.35;box-shadow:0 3px 0 #a58d16}
#quick-court-lightbox5112{width:min(460px,92vw);max-height:90vh;max-height:90svh;overflow:auto;padding:14px;border:1px solid #5c8194;border-radius:16px;background:#0c2439;color:#e5f5fc}
#quick-court-lightbox5112::backdrop{background:#020c18d9}
#quick-court-lightbox5112>h3{font-size:16px;line-height:1.5;margin:0 42px 12px 0}
#quick-court-lightbox5112>img{display:block;width:100%;max-height:62vh;max-height:62svh;object-fit:contain;background:#08192a;border-radius:9px}
#quick-court-lightbox5112 .quick-court-close5112{position:sticky;top:0;float:right;width:36px;height:36px;border-radius:50%;border:1px solid #55778c;background:#173d55;color:#fff;font-size:24px;line-height:1;cursor:pointer}
@media(max-width:360px){:is(#quick,#world-gallery243)>.quick-body5112{padding-left:12px;padding-right:12px}:is(#quick,#world-gallery243) h2{font-size:22px}:is(#quick,#world-gallery243) .quick-court-preview5112>img{height:138px}:is(#quick,#world-gallery243) .quick-court-copy5112{padding:7px 9px}:is(#quick,#world-gallery243) .quick-court-copy5112 b{font-size:13px}}
@media(min-width:700px){:is(#quick,#world-gallery243)>.quick-body5112,:is(#quick,#world-gallery243)>.panel-top,:is(#quick,#world-gallery243)>.quick-footer5112{width:100%;max-width:580px;margin:0 auto}:is(#quick,#world-gallery243) .quick-court-preview5112>img{height:195px}}

/* Always-available categories and a native swipe carousel share one selection. */
:is(#quick,#world-gallery243) .court-categories5112{margin:8px 0}
:is(#quick,#world-gallery243) .quick-court-chips5112{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 0;touch-action:pan-x pan-y}
:is(#quick,#world-gallery243) .quick-court-chips5112::-webkit-scrollbar{display:none}
:is(#quick,#world-gallery243) .quick-court-chips5112 button,:is(#quick,#world-gallery243) .quick-court-tags5112 button{flex:none;white-space:nowrap;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.4;text-align:center;border:1px solid #4c7185;border-radius:18px;background:#123047;color:#c5deeb}
:is(#quick,#world-gallery243) .quick-court-chips5112 button[aria-pressed=true],:is(#quick,#world-gallery243) .quick-court-tags5112 button[aria-pressed=true]{border-color:#ffe16d;color:#ffe16d;background:#3a3c32}
:is(#quick,#world-gallery243) .quick-court-carousel5112{position:relative}
:is(#quick,#world-gallery243) .quick-court-track5112{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x pan-y}
:is(#quick,#world-gallery243) .quick-court-track5112::-webkit-scrollbar{display:none}
:is(#quick,#world-gallery243) .quick-court-track5112>.quick-court-preview5112{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;touch-action:pan-x pan-y}
:is(#quick,#world-gallery243) .quick-court-arrow5112{position:absolute;top:50%;transform:translateY(-50%);width:32px;min-height:42px;padding:0;border:1px solid #8bb9cdaa;border-radius:8px;background:#071d30bb;color:white;font-size:28px;line-height:1;box-shadow:none}
:is(#quick,#world-gallery243) .quick-court-arrow5112.prev{left:6px}:is(#quick,#world-gallery243) .quick-court-arrow5112.next{right:6px}
:is(#quick,#world-gallery243) .quick-court-arrow5112:disabled{opacity:.35}
:is(#quick,#world-gallery243) .quick-court-copy5112{min-height:39px;padding:7px 10px}
:is(#quick,#world-gallery243) .quick-court-caption5112{display:flex;justify-content:space-between;gap:8px;color:#a5cddd;font-size:10px;line-height:1.4;padding:0 10px 7px}
:is(#quick,#world-gallery243) .quick-court-position5112{font-weight:400;color:#e2eef5}
:is(#quick,#world-gallery243) .quick-court-actions5112{margin:8px 0 12px}
:is(#quick,#world-gallery243) .quick-court-actions5112 button{font-size:14px;text-align:center;line-height:1.4;min-height:38px;padding:7px 8px}
:is(#quick,#world-gallery243) .quick-court-tags5112{display:flex;gap:6px;flex-wrap:wrap}
:is(#quick,#world-gallery243) .quick-court-count5112{font-size:11px;margin:8px 0;color:#adcbdc}
:is(#quick,#world-gallery243) :is(#venues,#world-gallery-list){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
:is(#quick,#world-gallery243) :is(#venues,#world-gallery-list)>button{position:relative;min-width:0;display:flex;flex-direction:column;gap:3px;padding:0 0 7px;overflow:hidden;border:1px solid #41677c;border-radius:9px;background:#123047;color:#e8f5fc;text-align:left;box-shadow:none}
:is(#quick,#world-gallery243) :is(#venues,#world-gallery-list)>button[aria-pressed=true]{border:2px solid #ffdb62;background:#3c3c32}
:is(#quick,#world-gallery243) :is(#venues,#world-gallery-list) img{width:100%;height:auto;aspect-ratio:16/7;object-fit:cover;display:block}
:is(#quick,#world-gallery243) :is(#venues,#world-gallery-list) b{font-size:12px;line-height:1.4;padding:2px 7px 0}
:is(#quick,#world-gallery243) :is(#venues,#world-gallery-list) small{font-size:10px;line-height:1.4;padding:0 7px;color:#adcbdc}
:is(#quick,#world-gallery243) .quick-court-empty5112{padding:20px 12px;font-size:13px;line-height:1.6;text-align:center;color:#c7dfe9}
:is(#quick,#world-gallery243) .quick-court-empty5112 button{display:block;margin:10px auto 0;padding:8px 12px;font-size:14px}
/* Equal hierarchy: left-aligned setting labels/values, centered actions. */
:is(#quick,#world-gallery243) .quick-setting5112,:is(#quick,#world-gallery243) .quick-setting5112>label,:is(#quick,#world-gallery243) #quick-stamina591-box>label{align-items:stretch;text-align:left;letter-spacing:0}
:is(#quick,#world-gallery243) .quick-setting5112>span,:is(#quick,#world-gallery243) .quick-setting5112 label>span,:is(#quick,#world-gallery243) #quick-stamina591-box label>span{font-size:12px;text-align:left;letter-spacing:0;font-weight:400}
:is(#quick,#world-gallery243) .quick-settings-grid5112 select{font-size:16px;line-height:1.4;min-height:40px;padding:7px 26px 7px 10px;text-align:left;text-align-last:left;letter-spacing:0;font-weight:400;font-family:inherit}
:is(#quick,#world-gallery243) #quick-next,#squad #squad-start{font-size:18px;text-align:center}
:is(#quick,#world-gallery243) button:focus-visible{outline:2px solid #a3edf5;outline-offset:-3px}

:is(#quick,#world-gallery243) .quick-court-active5112{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
:is(#quick,#world-gallery243) .quick-court-active5112 button{font-size:11px;line-height:1.4;padding:5px 8px;border:1px solid #c9b35a;border-radius:14px;background:#383b33;color:#ffe17b}
@media(max-width:360px){:is(#quick,#world-gallery243) .quick-settings-grid5112 select{font-size:14px}}

:is(#quick,#world-gallery243) #quick-stamina591-box [data-stamina-text591=title]{text-transform:lowercase}
:is(#quick,#world-gallery243) #quick-stamina591-box [data-stamina-text591=title]::first-letter{text-transform:uppercase}

/* Dedicated 2:1 previews retain skyline width and add real court space below it. */
:is(#quick,#world-gallery243) .quick-court-preview5112>img{height:auto;aspect-ratio:2/1;object-fit:contain}
:is(#quick,#world-gallery243) :is(#venues,#world-gallery-list)>button{display:grid;grid-template-rows:auto 1fr;align-content:start;justify-content:stretch;align-items:start;gap:0;padding:0;min-height:0;height:auto;line-height:normal;outline:none}
:is(#quick,#world-gallery243) :is(#venues,#world-gallery-list)>button[aria-pressed=true]{border:1px solid #ffdb62;box-shadow:inset 0 0 0 1px #ffdb62}
:is(#quick,#world-gallery243) :is(#venues,#world-gallery-list) img{aspect-ratio:2/1;height:auto;object-fit:contain;object-position:center;background:#0b1c31}
:is(#quick,#world-gallery243) .court-card-copy5112{display:flex;flex-direction:column;gap:3px;padding:6px 7px 7px;min-width:0;text-align:left}
:is(#quick,#world-gallery243) :is(#venues,#world-gallery-list) .court-card-copy5112 b{display:block;flex:none;font-size:12px;line-height:1.35;margin:0;padding:0;overflow-wrap:anywhere;font-weight:700}
:is(#quick,#world-gallery243) :is(#venues,#world-gallery-list) .court-card-copy5112 small{display:block;flex:none;font-size:10px;line-height:1.4;margin:0;padding:0;color:#adcbdc;overflow-wrap:anywhere}
#world-gallery243>.world-body5112{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 16px 18px;touch-action:pan-y;scroll-padding:10px}
#world-gallery243>.world-footer5112{flex:none;padding:10px 16px max(12px,env(safe-area-inset-bottom));background:#091b2d;border-top:1px solid #294459}
#world-gallery243 #world-play381{display:block;position:static;width:100%;min-height:50px;margin:0;padding:14px 18px;font-size:18px;line-height:1.35;text-align:center;box-shadow:0 3px 0 #a58d16}
#world-gallery243 .world-intro5112{margin:6px 0 10px;font-size:12px;line-height:1.6;color:#b6d0df}
#world-gallery243 #world-gallery-list{margin:8px 0 0;padding:0}
#world-gallery243 #world-feature-details5112{border:1px solid #36566c;border-radius:10px;padding:10px 11px;margin:12px 0;font-size:12px;line-height:1.6;color:#b5cfde}
#world-gallery243 #world-feature-details5112>summary{cursor:pointer;font-weight:700;color:#a7dce8}
#world-gallery243 #world-feature-profile370{padding:0}
#world-gallery243 .world-teaching5112{border-top:1px solid #38596c;margin:16px 0 0;padding-top:12px}
#world-gallery243 .world-teaching5112 p{font-size:11px;line-height:1.5;color:#adcbdc;margin:6px 0}
#world-gallery243 #world-teaching5112{display:flex;gap:10px;align-items:center;width:100%;padding:8px;border:1px solid #4c7185;border-radius:10px;background:#123047;color:#e8f5fc;text-align:left;box-shadow:none}
#world-gallery243 #world-teaching5112 img{width:96px;height:auto;aspect-ratio:2/1;object-fit:contain;border-radius:6px}
#world-gallery243 #world-teaching5112 span{font-size:12px;line-height:1.5}
#world-gallery243 #world-teaching5112 small{display:block;font-size:10px;color:#adcbdc}
@media(min-width:700px){#world-gallery243>.world-body5112,#world-gallery243>.world-footer5112{width:100%;max-width:580px;margin:0 auto}}

/* Compact padding keeps full labels readable at the shared 16px mobile input size. */
#quick .quick-setting5112,#quick #quick-stamina591-box{padding-left:8px;padding-right:8px}
#quick .quick-settings-grid5112 select{padding-left:6px;padding-right:18px}
#quick .quick-settings-grid5112 select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23d5e8f2' stroke-width='1.4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:10px 7px;background-position:right 5px center}
