/* Geometry fallbacks remain useful when newer CSS declarations are ignored. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.sga-help{bottom:20px;bottom:max(20px,env(safe-area-inset-bottom));min-width:0}
.sga-help-panel{width:390px;max-width:calc(100vw - 32px);max-height:calc(100vh - 115px);max-height:calc(100dvh - 115px)}
.sga-help-body{min-height:0;-webkit-overflow-scrolling:touch}
.sga-help-close{top:12px;right:14px}.sga-help[dir=rtl] .sga-help-close{right:auto;left:14px}
.support-chat .top,.support-help .top{min-width:0;flex-wrap:wrap}
.support-chat .top>a,.support-help .top>a{min-width:0;max-width:100%;overflow-wrap:break-word;word-wrap:break-word}
.support-chat .card,.support-help .card,.support-chat #chat-form,.support-chat .bubble{min-width:0}
.support-chat .bubble p,.support-chat .chat-link,.support-help .bubble p{word-wrap:break-word;overflow-wrap:break-word;overflow-wrap:anywhere}
.support-chat #chat-security{width:100%;min-width:0;min-height:70px;flex:1 0 100%}
.support-chat #chat-connect{max-width:100%;white-space:normal}
.support-chat textarea{font-size:16px;line-height:1.6;max-width:100%}
.support-chat .chat-link{white-space:normal;word-break:break-word}
.support-chat #chat-status{line-height:1.65}
html.legacy-layout .payment-pair .hero-cinema{height:auto;min-height:0}
html.legacy-layout .payment-pair .hero-cinema:before{content:"";display:block;position:static;width:100%;padding-top:177.7778%;height:0;animation:none;transform:none;background:none;border:0;filter:none}
html.legacy-layout .hero-cinema video,html.legacy-layout .hero-cinema .film-poster{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}
html.legacy-layout .manager-art picture{height:auto;display:block}
html.legacy-layout .manager-art picture img{position:static;display:block;width:100%;height:auto}
html.legacy-layout .payment-pair .hero-cinema,html.legacy-layout .celestial-light{animation:none}
@media(max-width:700px){
 .sga-help{--sga-help-edge:12px}
 .site-shell,.support-card,.payment-pair,.hero-heading,.music-card{min-width:0}
 .sga-help{bottom:12px;bottom:max(12px,env(safe-area-inset-bottom))}
 .sga-help-panel{width:390px;max-width:calc(100vw - 40px);max-height:calc(100vh - 88px);max-height:calc(100dvh - 88px)}
 .language-search-panel{top:112px;right:18px;width:360px;max-width:calc(100vw - 36px);max-height:calc(100vh - 136px);max-height:calc(100dvh - 136px)}
 html[dir=rtl] .language-search-panel{left:18px;right:auto}
 .support-chat .top,.support-help .top{padding:12px}
 .support-help .top>a:first-child{flex:1 1 100%}
 .support-help .support-language-control{flex:1 1 100%;min-width:0}
 .support-help .support-language-control input{width:100%;max-width:100%;flex:1 1 110px}
 .support-help .support-language-control select{width:100%;max-width:100%;flex:1 1 150px}
 .support-chat main,.support-help main{padding-left:10px;padding-right:10px}
 .support-chat .card,.support-help .card{padding:18px 12px}
 .support-chat .chat-connection{display:block;padding:10px}
 .support-chat #chat-connect{width:100%;margin:10px 0}
 .support-chat .bubble{max-width:100%}
 .support-chat #chat-theme{width:44px;height:44px;min-width:44px;padding:0}
 .support-chat #chat-form>select{font-size:16px;max-width:100%}
}
@media(max-width:360px){.support-card .amount-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.support-card .large-amount-grid{grid-template-columns:1fr}.support-chat h1{font-size:27px}}
@media(prefers-reduced-motion:reduce){.support-chat *,.support-help *{scroll-behavior:auto!important;animation:none!important}}

/* Explicit selectors keep the night palette when :is() is unavailable. */
html[data-theme=night] .support-card h3,html[data-theme=night] .support-card label,html[data-theme=night] .support-card .method-name b,html[data-theme=night] .support-card .selected-network b{color:#f1e7fa}
html[data-theme=night] .support-card .pill,html[data-theme=night] .support-card .selected-network{background:#302a40;border:1px solid #8d769d;color:#f1e7fa}
html.legacy-layout .language-picker>*,html.legacy-layout .language-control>*,html.legacy-layout .music-controls>*{margin-right:8px}
html.legacy-layout .support-chat .top>a,html.legacy-layout .support-help .top>a{margin-bottom:8px}
