/* Shared multilingual layout, including text generated by the original CSS. */
body{font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans','Microsoft YaHei','Arial Unicode MS',sans-serif}
html[lang]:not([lang^=en]) .brand small,html[lang]:not([lang^=en]) .eyebrow,html[lang]:not([lang^=en]) .intro-badge,html[lang]:not([lang^=en]) .live-label{letter-spacing:normal}
html[lang]:not([lang^=en]) h1{letter-spacing:normal;line-height:1.2}
.nav{display:flex;height:auto;min-height:78px;gap:12px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
.nav nav{margin-inline-start:auto;gap:18px}
.brand{min-width:0;max-width:100%}.brand>span:last-child{overflow-wrap:anywhere}.brand small{max-width:230px}
.language-switch{display:flex;align-items:center;gap:7px;position:relative;color:#755b86;font-size:11px;max-width:100%}
.language-switch label{white-space:nowrap}.language-switch select{font:inherit;font-size:12px;min-height:44px;max-width:160px;border:1px solid #d6c8df;border-radius:8px;padding:8px;background:#fff;color:#493754}
.language-switch select:focus-visible{outline:3px solid #75a5b4;outline-offset:2px}
.language-status{position:absolute;inset-block-start:100%;inset-inline-end:0;background:#fff;z-index:40;max-width:240px;line-height:1.5}.language-status:empty{display:none}
.hero>div:first-child{min-width:0;max-width:100%}.hero h1,.hero p,.overlay,.item-label,.game-top{overflow-wrap:anywhere}
.hero-note{flex-shrink:0;max-width:30%}.hero-note div{min-width:0}
.game-top{height:auto;min-height:55px;gap:8px;padding-top:6px;padding-bottom:6px}
.live-label{flex-wrap:wrap;min-width:0;flex:1}.game-tools{flex-shrink:0;align-self:center}.game-tools button{white-space:normal;max-width:135px;font-family:inherit}
.overlay button{overflow-wrap:anywhere;font-family:inherit}.overlay .primary{max-width:100%}.overlay .intro-controls{line-height:1.6}
.hud{direction:ltr}.hud-score,.timer{max-width:48%;min-width:0}.hud span{display:block;white-space:normal;letter-spacing:normal}.hud small{letter-spacing:normal}
.game-caption{flex-wrap:wrap;line-height:1.7}.game-caption>span{min-width:0}
.key-hints:before{content:var(--i18n-tap)!important}
.game-caption>span:last-child:before{content:var(--i18n-best)}
.intro-controls:after{content:none!important}
.intro-controls{font-size:10px!important}.intro-controls>*{display:initial}
.treasure-grid article,.treasure-grid article>div{min-width:0}.item-label{flex-wrap:wrap;gap:6px}
.guide h2{max-width:none}.shop-item{min-width:0;line-height:1.45}.shop-item small{line-height:1.5}
.toast{white-space:normal;text-align:center;max-width:92%;width:max-content}
.handoff-diagram{position:relative;padding:16px;border-radius:12px;background:#f1edf8;color:#574367;text-align:start;overflow:hidden}
.guide-browser{border:1px solid #d3c8df;border-radius:14px;background:#fff;overflow:hidden;max-width:300px;margin:auto}
.guide-address{padding:11px 12px;background:#e7e1ee;display:flex;justify-content:space-between;gap:10px;align-items:center;direction:ltr}
.guide-dots{font-size:22px;line-height:1;position:relative;border:2px solid #b475a6;border-radius:8px;padding:4px}
.guide-dots:after{content:'☝';position:absolute;top:25px;right:2px;font-size:29px;animation:guide-tap 3s infinite;pointer-events:none}
.guide-window{padding:14px;min-height:90px;background:linear-gradient(130deg,#c7b5db,#8b6caa);color:#fff;font-size:26px;text-align:center}
.guide-menu{margin:0;padding:0;list-style:none}.guide-menu li{padding:12px;font-size:13px;border-top:1px solid #e9e3ef;overflow-wrap:anywhere}
.guide-menu li:first-child{background:#eee4f7;color:#66417e;font-weight:700;animation:guide-highlight 3s infinite}
.handoff-diagram.paused *{animation-play-state:paused!important}
@keyframes guide-tap{0%,100%{opacity:0;transform:translateY(9px)}25%,65%{opacity:1;transform:translateY(0)}}
@keyframes guide-highlight{0%,40%,100%{background:#f5f1fa}60%,85%{background:#d8bdec}}
html[dir=rtl] .overlay.handoff,html[dir=rtl] .handoff-steps,html[dir=rtl] .link-label{text-align:right}
html[dir=rtl] .handoff-steps{padding-left:0;padding-right:23px}
html[dir=rtl] .handoff-close{right:auto;left:7px}
html[dir=rtl] .overlay.handoff h2{margin-right:0;margin-left:34px}
html[dir=rtl] .journey-number{margin-right:0;margin-left:18px}
html[dir=rtl] .journey-line{transform:scaleX(-1)}
.copy-field{direction:ltr;text-align:left;unicode-bidi:plaintext}
.hud small>span{display:inline}
.handoff-language{margin-top:16px;color:#ebcbdc;max-width:100%;justify-content:space-between}.handoff-language select{max-width:210px}.handoff-language label{font-size:12px}
@media(max-width:800px){.hero-note{display:none}.nav nav{display:none}.language-switch{margin-inline-start:auto}.nav .brand small{max-width:180px}.hero h1{font-size:clamp(28px,6vw,45px)}.game-caption>span:last-child{font-size:10px!important}.game-caption>span:last-child:before{content:none!important}}
@media(max-width:540px){.nav{min-height:70px;gap:7px}.brand{font-size:14px;max-width:50%;flex:1 1 130px}.brand small{font-size:7px;line-height:1.4;letter-spacing:normal}.brand-icon{font-size:27px}.language-switch{gap:4px;max-width:47%}.nav .language-switch{width:145px;flex:0 0 145px;max-width:47%}.language-switch label{font-size:0}.language-switch label:first-letter{font-size:17px}.language-switch select{max-width:135px;width:100%;min-width:0}.hero h1{font-size:32px}.game-top{padding-left:8px;padding-right:8px;gap:5px}.game-tools button{max-width:82px;font-size:10px}.live-label{font-size:8px;line-height:1.4}.live-label b{max-width:100%;font-size:9px}.intro-controls{font-size:10px!important}.hud{inset:10px 9px auto}.hud-score,.timer{padding:7px 9px}.hud-score{max-width:57%}.timer{max-width:36%;height:auto;min-height:65px}.hud span{font-size:8px}.overlay h2{font-size:20px}.overlay.handoff{padding-top:30px}.handoff-diagram{padding:10px}.guide-window{min-height:55px;padding:12px}.guide-menu li{padding:9px 12px}.game-caption>span:last-child{font-size:9px!important}}
@media(prefers-reduced-motion:reduce){.handoff-diagram *{animation:none!important}.guide-dots:after{opacity:1;transform:none}}
