/* The scene is visible while the SDK chooses the language; text waits for its catalog. */
html:not(.localized) .hud-corner,html:not(.localized) .hud-dock,html:not(.localized) .scene-guide,html:not(.localized) .primary,html:not(.localized) .coach,html:not(.localized) .hud-toast{visibility:hidden}
:lang(zh),:lang(ja),:lang(ko){font-synthesis:none}
:lang(zh) em,:lang(ja) em,:lang(ko) em{font-style:normal}
.scene-guide h2{text-wrap:balance}
.coach[hidden]{display:none}
.coach{position:absolute;z-index:5;left:50%;top:calc(var(--hold-y,51%) - 64px);width:max-content;max-width:calc(100vw - 40px);transform:translate(-50%,-100%);display:flex;align-items:center;gap:10px;padding:5px 10px 5px 13px;border:1px solid #c8e7f033;border-radius:18px;background:#102f448c;box-shadow:0 6px 24px #00142520;color:#e3f5fa;backdrop-filter:blur(10px);font:12px/1.4 var(--hud-font)}
.coach::after{content:'';position:absolute;left:50%;top:100%;height:12px;border-left:1px solid #c8e7f066}
.coach p{margin:0;max-width:240px}
.coach button{flex:none;border:0;border-radius:12px;padding:7px 8px;background:#c8e7f012;color:#c7dde6;font:inherit;font-size:10px;cursor:pointer;white-space:nowrap}
.coach button:hover{background:#c8e7f025}
.coach-target{outline:1px solid #c8eff05c;outline-offset:7px}
html.hud-open .coach{visibility:hidden}
body:has(.hud-toast[data-show]) .coach{visibility:hidden}
.how-to-play{border-top:1px solid var(--hud-edge);padding-top:12px;color:var(--hud-ink-soft);font-size:12px;line-height:1.6}
.how-to-play summary{color:var(--hud-ink);cursor:pointer;font-size:13px;min-height:32px}
.how-to-play p{margin:8px 0}
@media(max-width:599px){.coach{font-size:11px;gap:5px;top:calc(var(--hold-y,51%) - 54px);max-width:calc(100vw - 24px)}.coach p{max-width:230px}}
@media(max-height:600px){.coach{top:var(--hold-y,51%);left:calc(50% + 65px);transform:translateY(-50%);max-width:calc(50vw - 78px);display:block;padding:7px 10px;border-radius:12px}.coach::after{left:-12px;top:50%;height:0;width:12px;border-top:1px solid #c8e7f066;border-left:0}.coach button{margin-top:3px;padding:3px 5px}.coach p{font-size:11px}}
