/* Phone-only refinements. Desktop rules and artwork are unchanged. */
@media(max-width:600px){
 .page-donate .lrc-calculator{margin-top:16px;padding:18px 16px}
 .page-donate .lrc-calculator input:not([type=range]),.page-donate .lrc-calculator select{font-size:16px;min-height:44px}
 .page-donate .lrc-recipient{margin:0 0 20px;padding:0;border:0}
 .page-donate .lrc-range{height:44px;margin-top:7px}
 .page-donate .lrc-calculator .lrc-field-help,.page-donate .lrc-availability,.page-donate .lrc-summary-recipient{font-size:13px;color:#806a4a;line-height:1.55}
 .page-donate .lrc-summary-label{font-size:12px;color:#806a4a}
 .page-donate .lrc-summary{margin-top:15px}
 .mobile-premium{margin-top:18px;padding:14px 0;border-color:#c9ad7b80}
 .mobile-premium>summary{font-size:16px;min-height:44px;display:flex;align-items:center}
 .mobile-premium .lrc-premium{border:0;padding:12px 0}
 .mobile-premium .lrc-pass-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .mobile-premium .lrc-pass-options button{min-width:0;border:1px solid #cfb687;border-radius:5px;background:#fff6e8;color:#84613a;padding:10px;text-align:left}
 .mobile-premium .lrc-pass-period,.mobile-premium .lrc-pass-price,.mobile-premium .lrc-pass-discount{display:block}
 .mobile-premium .lrc-pass-discount,.mobile-premium .lrc-field-help{font:13px/1.55 'Segoe UI',sans-serif;color:#806a4a}
 .page-donate .support-introduction{margin:16px 0 20px}
 .page-donate .section-caption>span{display:none}
 .menu-toggle{width:44px;height:44px;align-items:center;padding:10px;flex-shrink:0}
 .language-switch a{position:relative}
 .language-switch a:before{content:'';position:absolute;inset:-11px 0;border-radius:999px}
 .main-nav a{min-height:44px;display:flex;align-items:center;padding:10px 0;box-sizing:border-box}
 .content-tabs button{min-height:44px}
 .news-item .text-link,.support-links .text-link{display:inline-flex;align-items:center;min-height:44px}
 .page-home .registration .password-toggle{width:44px;height:44px;top:0;right:0}
 .page-home .registration .input-wrap input[data-password-field]{padding-right:48px}
 .page-home .registration .form-links a{min-height:44px;display:inline-flex;align-items:center}
 .page-home .registration.is-compact .continue-button{display:flex;min-height:44px;margin-top:16px}
 .page-home .registration .form-intro,.page-home .registration .demo-note{font-size:12px;line-height:1.55}
 .preview-footer{font-size:10px;letter-spacing:.2px;gap:10px;align-items:center}
 .preview-footer a{min-height:44px;display:inline-flex;align-items:center}
 .policy>summary{font-size:13px;min-height:44px;display:flex;align-items:center}
}
@media(max-width:520px){
 .page-home .registration.is-compact{padding-top:114px}
 .page-home .registration.is-compact .registration-scene{height:114px}
 .page-home .registration.is-compact .registration-socials{top:58px;padding-top:5px}
 .page-home .registration.is-compact .registration-invitation{top:12px}
 .page-home .registration.is-compact .registration-invitation p{font-size:12px;line-height:1.35}
 .page-home .registration.is-compact .registration-scroll{padding-top:18px;padding-bottom:18px}
}
@media(max-width:360px){
 .site-header{height:108px}
 .language-switch,.page-home .language-switch{top:72px;right:0}
 .main-nav{top:112px;z-index:20}
}
/* Mobile home v2: clear header and one invitation, existing full form. */
@media(max-width:600px){
 .site-header{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:44px 36px;gap:8px 12px;height:auto;min-height:106px;padding:12px 0 6px;align-items:center}
 .site-header .brand{grid-column:1;grid-row:1;min-width:0;width:auto}
 .site-header .menu-toggle{grid-column:2;grid-row:1;order:initial;margin:0}
 .site-header .language-switch,.page-home .site-header .language-switch{position:static;grid-column:1 / -1;grid-row:2;justify-self:end;width:90px;flex-basis:auto;height:32px;margin:0}
 .site-header .language-switch a,.page-home .site-header .language-switch a{height:26px}
 .site-header .language-switch a:before{inset:-8px 0}
 .site-header .main-nav{top:108px;right:0;width:min(280px,100%);box-sizing:border-box;border-radius:8px;padding:14px 20px;z-index:30}
 .site-header .main-nav a{width:100%;min-height:48px;font-size:16px}
 .page-home .world{background-position:25% center}
 .page-home .hero-heading{margin:26px 0 26px;padding:0}
 .page-home .hero-heading .fine-rule{margin-top:14px}
 .page-home .registration.mobile-entry-ready.is-compact{padding-top:58px;margin-top:0}
 .page-home .registration.mobile-entry-ready.is-compact .registration-scene{height:58px}
 .page-home .registration.mobile-entry-ready.is-compact .registration-invitation{display:none}
 .page-home .registration.mobile-entry-ready.is-compact .registration-socials{top:5px;left:18px;right:58px;padding:0;gap:10px}
 .page-home .registration.mobile-entry-ready.is-compact .registration-socials:before{display:none}
 .page-home .registration.mobile-entry-ready.is-compact .registration-scroll{padding:20px}
 .page-home .registration.mobile-entry-ready.is-compact .form-heading>.crest{display:none}
 .page-home .registration.mobile-entry-ready.is-compact .form-heading h2{font-size:25px;line-height:1.2;margin:8px 0 14px}
 .page-home .registration.mobile-entry-ready.is-compact #registration-form,
 .page-home .registration.mobile-entry-ready.is-compact .demo-note{display:none}
 .mobile-registration-entry{display:none}
 .page-home .registration.mobile-entry-ready.is-compact .mobile-registration-entry{display:grid;gap:10px}
 .mobile-registration-entry p{font:14px/1.5 'Segoe UI',sans-serif;color:#806a4a;margin:0 0 2px;text-align:center}
 .page-home .registration .mobile-registration-entry .button{margin:0;min-height:48px;justify-content:center;width:100%}
 .mobile-registration-entry .mobile-download{display:flex;align-items:center;justify-content:center;min-height:44px;color:#806039;font-size:15px;text-decoration:underline;text-underline-offset:5px}
 .page-home .registration.is-expanded .registration-scroll{max-height:none;overflow:visible}
 .page-home .registration.is-expanded .form-heading h2{font-size:25px}
 .page-home .registration.is-expanded label{font-size:13px}
 .page-home .registration.is-expanded .form-intro{font-size:13px}
 .page-home .world-caption{margin:26px 0 22px}
 .page-home .world-caption p{font-size:23px;line-height:1.3}
 .registration{scroll-margin-top:16px}
}
@media(max-width:360px){.site-header .brand-name{font-size:23px}.page-home .hero-heading{margin:22px 0}.page-home .registration.mobile-entry-ready.is-compact .form-heading h2{font-size:23px}}
/* The phone's first screen is a scene; registration follows in document flow. */
@media(max-width:600px){
 .page-home .hero-heading{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:calc(100vh - 106px);height:calc(100svh - 106px);min-height:240px;margin:0;padding:24px 8px 32px}
 .page-home .hero-heading .chronicle,.page-home .hero-heading .tagline{flex-shrink:0;text-shadow:0 1px 8px #fff9e8,0 0 18px #fff9e8}
 .page-home .hero-heading .fine-rule{width:210px;flex-shrink:0}
 .page-home .hero-heading:after{content:'Реєстрація нижче ↓';display:block;margin-top:24px;font:14px/1.4 Georgia,'Times New Roman',serif;letter-spacing:.3px;color:#614828;text-shadow:0 1px 5px #fff9e8,0 0 14px #fff9e8}
 html[lang=en] .page-home .hero-heading:after{content:'Registration below ↓'}
 .page-home .registration,.page-home .registration.mobile-entry-ready.is-compact,.page-home .registration.is-expanded{position:relative;margin:24px auto 32px;right:auto;bottom:auto;scroll-margin-top:16px}
}
@media(max-width:600px){
 .page-home .hero-heading:before{content:'';position:absolute;left:-18px;right:-18px;bottom:0;height:210px;background:linear-gradient(180deg,transparent,#f7eedbcf 78%,#eee5cf);pointer-events:none}
 .page-home .hero-heading>* ,.page-home .hero-heading:after{position:relative}
}
/* Mobile navigation and continuous, document-scrolling mist. */
@media(max-width:600px){
 .site-header{grid-template-rows:44px;min-height:76px;padding:16px 0;gap:0 12px}
 .site-header .main-nav{top:76px}
 .site-header .main-nav .language-switch,.page-home .site-header .main-nav .language-switch{position:relative;display:grid;grid-template-columns:1fr 1px 1fr;width:104px;height:40px;margin-top:16px;align-self:flex-start;flex:0 0 auto;justify-self:auto}
 .site-header .main-nav .language-switch a,.page-home .site-header .main-nav .language-switch a{display:flex;width:auto;min-height:34px;height:34px;padding:0;font-size:13px;justify-content:center;text-align:center}
 .site-header .main-nav .language-switch a:before{inset:-4px 0}
 .page-home .hero-heading{height:calc(100vh - 76px);height:calc(100svh - 76px)}
 .page-home .hero-heading:before,.page-home .hero-heading:after{display:none}
 .page-home .site-shell{isolation:isolate}
 .page-home .site-shell:before{content:'';position:absolute;top:calc(100vh - 170px);top:calc(100svh - 170px);left:0;right:0;bottom:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(238,229,207,0) 0,rgba(238,229,207,.45) 180px,rgba(238,229,207,.8) 480px,rgba(238,229,207,.97) 100%)}
 .mobile-scroll-cue{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:48px;margin-top:20px;padding:8px 16px;border:0;background:transparent;color:#614828;font:15px/1.4 Georgia,'Times New Roman',serif;text-shadow:0 1px 6px #fff9e8,0 0 18px #fff9e8;cursor:pointer}
 .mobile-scroll-cue svg{width:20px;height:16px;stroke:currentColor;fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;animation:mobile-scroll-hint 2.8s ease-in-out infinite}
 .mobile-scroll-cue:focus-visible{outline:2px solid #a68043;outline-offset:3px;border-radius:4px}
 .page-home .registration.mobile-arrival{animation:mobile-panel-arrival 450ms ease-out both}
}
@keyframes mobile-scroll-hint{0%,65%,100%{transform:translateY(0)}35%{transform:translateY(4px)}}
@keyframes mobile-panel-arrival{from{opacity:.7;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.mobile-scroll-cue svg,.page-home .registration.mobile-arrival{animation:none!important}}
/* Brand above; visible language left and menu right on the same control row. */
@media(max-width:600px){
 .site-header{grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:44px 44px;gap:8px 12px;padding:8px 0;min-height:112px}
 .site-header .brand{grid-column:1 / -1;grid-row:1;justify-self:start}
 .site-header .menu-toggle{grid-column:2;grid-row:2}
 .site-header>.language-switch,.page-home .site-header>.language-switch{position:static;grid-column:1;grid-row:2;justify-self:start;align-self:center;width:104px;height:40px;margin:0;flex-basis:auto}
 .site-header>.language-switch a,.page-home .site-header>.language-switch a{height:34px;min-height:34px;font-size:13px}
 .site-header>.language-switch a:before{inset:-4px 0}
 .site-header .main-nav{top:112px}
 .page-home .hero-heading{height:calc(100vh - 112px);height:calc(100svh - 112px)}
}
/* Centered language / right menu; stable scene during browser toolbar changes. */
@media(max-width:600px){
 .site-header{grid-template-columns:44px minmax(0,1fr) 44px;grid-template-rows:44px 44px;gap:8px 10px}
 .site-header .brand{grid-column:1 / -1;grid-row:2;justify-self:center;justify-content:center}
 .site-header .menu-toggle{grid-column:3;grid-row:1}
 .site-header>.language-switch,.page-home .site-header>.language-switch{grid-column:2;grid-row:1;justify-self:center}
 .page-home .world,.page-home .world-light{inset:0 auto auto 0;width:100%;height:var(--mobile-scene-height,100vh);height:100lvh}
 .page-home .site-shell{min-height:100vh;min-height:100svh}
 .page-home .registration.mobile-arrival{animation:mobile-panel-fade 450ms ease-out both}
}
@keyframes mobile-panel-fade{from{opacity:.7}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.page-home .registration.mobile-arrival{animation:none!important}}
/* Permanent mobile navigation; homepage links sit over the scene. */
@media(max-width:600px){
 .site-header .menu-toggle{display:none}
 .site-header .main-nav,.site-header .main-nav.is-open{display:flex;flex-direction:column;align-items:center;gap:2px;grid-column:1 / -1;grid-row:3;position:relative;top:auto;right:auto;left:auto;width:100%;max-width:none;padding:12px 0;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none}
 .site-header .main-nav a{width:auto;min-width:150px;min-height:48px;justify-content:center;text-align:center;font-size:19px;color:#5c4124;text-shadow:0 1px 8px #fff6e4,0 0 16px #fff6e4}
 .site-header .main-nav a:after,.site-header .main-nav a:hover:after,.site-header .main-nav a[aria-current=page]:after{left:18px;right:18px}
 .page-home .site-header .main-nav{position:absolute;top:calc(50vh - 100px);top:calc(50svh - 100px);left:50%;right:auto;transform:translateX(-50%);width:230px;padding:10px 20px;background:radial-gradient(ellipse,rgba(255,247,227,.62),rgba(255,247,227,.2) 55%,transparent 78%)}


}@media(max-width:600px){
 .site-header{grid-template-columns:minmax(0,1fr) 88px;grid-template-rows:44px;gap:8px 10px;min-height:76px;padding:16px 0}
 .site-header .brand{grid-column:1;grid-row:1;justify-self:start;justify-content:flex-start;min-width:0;gap:6px}
 .site-header .brand-name{font-size:22px;letter-spacing:.3px}
 .site-header .brand-caption{font-size:6px;letter-spacing:1px}
 .site-header>.language-switch,.page-home .site-header>.language-switch{grid-column:2;grid-row:1;justify-self:end;width:88px}
 .site-header .main-nav{grid-row:2}
 .page-home .hero-heading{height:calc(100vh - 76px);height:calc(100svh - 76px)}
}
@media(max-width:600px){.page-home .site-header .main-nav{grid-row:1;top:calc(50vh - 110px);top:calc(50svh - 110px)}}
