/* The layout follows content language. Numeric values and wordmarks retain their own direction. */
html[dir="ltr"] body.unbox-site { direction:ltr; text-align:start; }
html[dir="ltr"] :is(.unbox-search-dialog,.unbox-place-gallery__track,.ub-tournament-bracket,.ubx-promo-controls,.unbox-hero__image-caption) { direction:ltr; }
html[dir="ltr"] .ubx-navigation { direction:ltr; }
.ubx-header__actions { min-width:0; }
.ubx-language { position:relative; flex:none; color:var(--ubx-ink,#20231f); }
.ubx-language > summary { box-sizing:border-box; display:flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 12px; border:1px solid var(--ubx-line,#e4e1d6); border-radius:999px; background:#fffef8; cursor:pointer; list-style:none; transition:border-color .18s,box-shadow .18s; user-select:none; }
.ubx-language > summary::-webkit-details-marker { display:none; }
.ubx-language > summary::marker { content:''; }
.ubx-language > summary > .unbox-icon { width:18px; height:18px; flex:none; }
.ubx-language__code { font:700 12px/1 system-ui,sans-serif; letter-spacing:.05em; }
.ubx-language__chevron { width:6px; height:6px; border-inline-end:1.5px solid currentColor; border-block-end:1.5px solid currentColor; transform:rotate(45deg); margin-block-start:-3px; margin-inline-start:2px; transition:transform .18s; }
html[dir="rtl"] .ubx-language__chevron { transform:rotate(-45deg); }
.ubx-language > summary:hover { border-color:#a4ac8d; background:#f0f2e5; }
.ubx-language[open] > summary { background:var(--ubx-ink,#20231f); border-color:var(--ubx-ink,#20231f); color:var(--ubx-lime,#d6ee3f); box-shadow:0 0 0 3px #20231f08; }
.ubx-language[open] .ubx-language__chevron { transform:rotate(225deg); margin-block-start:3px; }
html[dir="rtl"] .ubx-language[open] .ubx-language__chevron { transform:rotate(135deg); }
.ubx-language__panel { box-sizing:border-box; position:absolute; inset-inline-end:0; top:calc(100% + 12px); z-index:160; width:224px; max-width:calc(100vw - 32px); padding:8px; border:1px solid var(--ubx-line,#e4e1d6); border-radius:20px; background:#fffef8; box-shadow:0 18px 48px #20231f1c,0 3px 10px #20231f08; }
.ubx-language[open] .ubx-language__panel { animation:ubx-language-enter .18s ease-out; }
.ubx-language__heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 10px 12px; margin-bottom:5px; border-bottom:1px solid var(--ubx-line,#e4e1d6); font-size:12px; font-weight:600; color:#6b6e63; }
.ubx-language__heading > :last-child { direction:ltr; font:500 11px/1 system-ui,sans-serif; letter-spacing:.08em; color:#929786; }
.ubx-language .unbox-ml-switcher { display:grid; gap:4px; }
.ubx-language .unbox-ml-switcher a { display:flex; align-items:center; gap:12px; min-height:48px; box-sizing:border-box; padding:8px 10px; border-radius:12px; text-decoration:none; color:var(--ubx-ink,#20231f); white-space:nowrap; font-size:14px; font-weight:500; transition:background .15s; }
.ubx-language .unbox-ml-switcher a::before { content:attr(hreflang); display:grid; place-items:center; flex:none; width:30px; height:30px; border:1px solid #e4e1d6; border-radius:9px; background:#f6f4ed; font:650 10px/1 system-ui,sans-serif; text-transform:uppercase; letter-spacing:.04em; }
.ubx-language .unbox-ml-switcher a:hover { background:#f0f2e5; }
.ubx-language .unbox-ml-switcher a[aria-current] { background:#edf3d5; font-weight:700; }
.ubx-language .unbox-ml-switcher a[aria-current]::before { background:var(--ubx-lime,#d6ee3f); border-color:transparent; }
.ubx-language .unbox-ml-switcher a[aria-current]::after { content:''; width:6px; height:11px; border-right:1.7px solid currentColor; border-bottom:1.7px solid currentColor; transform:rotate(45deg); margin-inline-start:auto; margin-inline-end:6px; margin-block-start:-3px; }
.ubx-language :focus-visible { outline:2px solid #596a35; outline-offset:3px; }
@keyframes ubx-language-enter { from { transform:translateY(-4px); } to { transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .ubx-language *, .ubx-language[open] .ubx-language__panel { animation:none; transition:none; } }
html[dir="ltr"] :is(.unbox-game-heading,.unbox-event-heading,.ubx-product-copy,.unbox-directory-richtext) { text-align:start; }
@media(max-width:760px) { .ubx-language > summary { height:44px; padding-inline:10px; gap:7px; } .ubx-header__actions { gap:4px; } }
@media(max-width:480px) { .ubx-cart-total { display:none; } .ubx-language > summary > .unbox-icon { display:none; } .ubx-language > summary { min-width:56px; } .ubx-language__panel { top:calc(100% + 10px); } }
@media(max-width:359px) { .ubx-header__row { column-gap:8px; } .ubx-wordmark { font-size:26px; } .ubx-language > summary { min-width:50px; padding-inline:8px; } }
