/* FocusGrove type system (pi-type3d-fg-1127, owner 27/11 "font chu dang rat xau"): Baloo 2 = display + numerals, Nunito = body, one Baloo sibling per script for headings (weight 700 only), Noto Sans per script stays for body text; CJK/Thai/Myanmar/Ethiopic/Urdu use the system face. Every face loads by unicode-range, so a phone downloads only what it draws. SIL OFL 1.1 licences sit next to the files. */
@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/baloo-2-latin-wght-normal.woff2?v=26fb4610) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/baloo-2-latin-ext-wght-normal.woff2?v=dfd52ee2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/baloo-2-vietnamese-wght-normal.woff2?v=fb54af34) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
/* script faces use font-display:optional: no metric-matched fallback exists for a script, and a sibling that is narrower than the Noto face it replaces would re-wrap the headings when it swaps in (measured: room/ta CLS 0.047); it is preloaded, so it normally draws from the first paint, and a slow first load keeps the Noto face for that page */
@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400 800;font-display:optional;src:url(/assets/fonts/baloo-2-devanagari-wght-normal.woff2?v=5fb79710) format("woff2");unicode-range:U+0900-0950,U+0953-0963,U+0966-097F,U+A8E0-A8FF}
@font-face{font-family:"Nunito";font-style:normal;font-weight:200 1000;font-display:swap;src:url(/assets/fonts/nunito-latin-wght-normal.woff2?v=ba344451) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Nunito";font-style:normal;font-weight:200 1000;font-display:swap;src:url(/assets/fonts/nunito-latin-ext-wght-normal.woff2?v=2c8d7928) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Nunito";font-style:normal;font-weight:200 1000;font-display:swap;src:url(/assets/fonts/nunito-vietnamese-wght-normal.woff2?v=61e5958c) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"Nunito";font-style:normal;font-weight:200 1000;font-display:swap;src:url(/assets/fonts/nunito-cyrillic-wght-normal.woff2?v=63b14e3e) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Nunito";font-style:normal;font-weight:200 1000;font-display:swap;src:url(/assets/fonts/nunito-cyrillic-ext-wght-normal.woff2?v=88985ca6) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Baloo Thambi 2";font-style:normal;font-weight:700;font-display:optional;src:url(/assets/fonts/baloo-thambi-2-tamil-700-normal.woff2?v=87da2e12) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Baloo Bhaijaan 2";font-style:normal;font-weight:700;font-display:optional;src:url(/assets/fonts/baloo-bhaijaan-2-arabic-700-normal.woff2?v=d14d2500) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"Baloo Da 2";font-style:normal;font-weight:700;font-display:optional;src:url(/assets/fonts/baloo-da-2-bengali-700-normal.woff2?v=b937d43c) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CF7,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Baloo Tammudu 2";font-style:normal;font-weight:700;font-display:optional;src:url(/assets/fonts/baloo-tammudu-2-telugu-700-normal.woff2?v=482464ad) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0C00-0C7F,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Baloo Bhai 2";font-style:normal;font-weight:700;font-display:optional;src:url(/assets/fonts/baloo-bhai-2-gujarati-700-normal.woff2?v=a4eed29f) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0A81-0AFF,U+200C-200D,U+20B9,U+25CC,U+A830-A839}
@font-face{font-family:"Baloo Paaji 2";font-style:normal;font-weight:700;font-display:optional;src:url(/assets/fonts/baloo-paaji-2-gurmukhi-700-normal.woff2?v=d6077697) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0A01-0A76,U+200C-200D,U+20B9,U+25CC,U+262C,U+A830-A839}
@font-face{font-family:"Baloo Tamma 2";font-style:normal;font-weight:700;font-display:optional;src:url(/assets/fonts/baloo-tamma-2-kannada-700-normal.woff2?v=b3c0d413) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0C80-0CF3,U+1CD0,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Baloo Chettan 2";font-style:normal;font-weight:700;font-display:optional;src:url(/assets/fonts/baloo-chettan-2-malayalam-700-normal.woff2?v=852a351d) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0D00-0D7F,U+1CDA,U+200C-200D,U+20B9,U+25CC}
/* size-adjusted fallbacks (ascent/descent/size-adjust computed with fontTools from the font files: scratch/fontcheck.py, out/fontcheck.txt): the system face is drawn at the web face width until the font arrives, so the swap moves nothing */
@font-face{font-family:"Baloo 2 Fallback";src:local("Arial Bold"),local("Arial-BoldMT"),local("Roboto Bold"),local("Roboto-Bold"),local("Helvetica Bold");font-weight:400 900;size-adjust:93.16%;ascent-override:115.72%;descent-override:56.25%;line-gap-override:0%;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD,U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF,U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"Nunito Fallback";src:local("Arial"),local("ArialMT"),local("Roboto"),local("Helvetica");font-weight:200 1000;size-adjust:101.09%;ascent-override:100.01%;descent-override:34.92%;line-gap-override:0%;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD,U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF,U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB,U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116,U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Noto Sans Devanagari";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/noto-sans-devanagari-devanagari-400-normal.woff2?v=f86f14cb) format("woff2");unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF}
@font-face{font-family:"Noto Sans Devanagari";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/noto-sans-devanagari-devanagari-500-normal.woff2?v=c9e45ff2) format("woff2");unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF}
@font-face{font-family:"Noto Sans Devanagari";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/noto-sans-devanagari-devanagari-600-normal.woff2?v=fcfcaacd) format("woff2");unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF}
@font-face{font-family:"Noto Sans Devanagari";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/noto-sans-devanagari-devanagari-700-normal.woff2?v=6a68069c) format("woff2");unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF}
@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/noto-sans-arabic-arabic-400-normal.woff2?v=4e2ca074) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/noto-sans-arabic-arabic-500-normal.woff2?v=38599e30) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/noto-sans-arabic-arabic-600-normal.woff2?v=52a2cd4b) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/noto-sans-arabic-arabic-700-normal.woff2?v=d2bf5ac7) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"Noto Sans Bengali";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/noto-sans-bengali-bengali-400-normal.woff2?v=adb805ae) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CF7,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Bengali";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/noto-sans-bengali-bengali-500-normal.woff2?v=3af14da2) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CF7,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Bengali";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/noto-sans-bengali-bengali-600-normal.woff2?v=abfa65f4) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CF7,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Bengali";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/noto-sans-bengali-bengali-700-normal.woff2?v=67ffaf54) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CF7,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Gujarati";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/noto-sans-gujarati-gujarati-400-normal.woff2?v=6490241c) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0A81-0AFF,U+200C-200D,U+20B9,U+25CC,U+A830-A839}
@font-face{font-family:"Noto Sans Gujarati";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/noto-sans-gujarati-gujarati-500-normal.woff2?v=395e4789) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0A81-0AFF,U+200C-200D,U+20B9,U+25CC,U+A830-A839}
@font-face{font-family:"Noto Sans Gujarati";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/noto-sans-gujarati-gujarati-600-normal.woff2?v=4d5d72eb) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0A81-0AFF,U+200C-200D,U+20B9,U+25CC,U+A830-A839}
@font-face{font-family:"Noto Sans Gujarati";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/noto-sans-gujarati-gujarati-700-normal.woff2?v=14e37502) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0A81-0AFF,U+200C-200D,U+20B9,U+25CC,U+A830-A839}
@font-face{font-family:"Noto Sans Gurmukhi";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/noto-sans-gurmukhi-gurmukhi-400-normal.woff2?v=a66c5f02) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0A01-0A76,U+200C-200D,U+20B9,U+25CC,U+262C,U+A830-A839}
@font-face{font-family:"Noto Sans Gurmukhi";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/noto-sans-gurmukhi-gurmukhi-500-normal.woff2?v=811a6724) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0A01-0A76,U+200C-200D,U+20B9,U+25CC,U+262C,U+A830-A839}
@font-face{font-family:"Noto Sans Gurmukhi";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/noto-sans-gurmukhi-gurmukhi-600-normal.woff2?v=d6c1e8a1) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0A01-0A76,U+200C-200D,U+20B9,U+25CC,U+262C,U+A830-A839}
@font-face{font-family:"Noto Sans Gurmukhi";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/noto-sans-gurmukhi-gurmukhi-700-normal.woff2?v=3141c980) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0A01-0A76,U+200C-200D,U+20B9,U+25CC,U+262C,U+A830-A839}
@font-face{font-family:"Noto Sans Kannada";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/noto-sans-kannada-kannada-400-normal.woff2?v=34bf66ab) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0C80-0CF3,U+1CD0,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Kannada";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/noto-sans-kannada-kannada-500-normal.woff2?v=b806776a) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0C80-0CF3,U+1CD0,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Kannada";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/noto-sans-kannada-kannada-600-normal.woff2?v=63d32e31) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0C80-0CF3,U+1CD0,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Kannada";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/noto-sans-kannada-kannada-700-normal.woff2?v=c686004d) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0C80-0CF3,U+1CD0,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Malayalam";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/noto-sans-malayalam-malayalam-400-normal.woff2?v=4b0f383b) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0D00-0D7F,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Malayalam";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/noto-sans-malayalam-malayalam-500-normal.woff2?v=09d70b22) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0D00-0D7F,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Malayalam";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/noto-sans-malayalam-malayalam-600-normal.woff2?v=11981400) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0D00-0D7F,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Malayalam";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/noto-sans-malayalam-malayalam-700-normal.woff2?v=efa88532) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0D00-0D7F,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Tamil";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/noto-sans-tamil-tamil-400-normal.woff2?v=6b240e87) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Tamil";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/noto-sans-tamil-tamil-500-normal.woff2?v=aab78933) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Tamil";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/noto-sans-tamil-tamil-600-normal.woff2?v=c8829e71) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Tamil";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/noto-sans-tamil-tamil-700-normal.woff2?v=2ec87bed) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Telugu";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/noto-sans-telugu-telugu-400-normal.woff2?v=98b86e85) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0C00-0C7F,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Telugu";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/noto-sans-telugu-telugu-500-normal.woff2?v=62a597a2) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0C00-0C7F,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Telugu";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/noto-sans-telugu-telugu-600-normal.woff2?v=62395951) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0C00-0C7F,U+1CDA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:"Noto Sans Telugu";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/noto-sans-telugu-telugu-700-normal.woff2?v=cdffe388) format("woff2");unicode-range:U+0951-0952,U+0964-0965,U+0C00-0C7F,U+1CDA,U+200C-200D,U+20B9,U+25CC}
/* FocusGrove "Grove Night" design system (fg-design-build-1124; tokens = fg-ui-audit-1124/out/DESIGN.md). One token set, no literal text size outside it. */
:root{color-scheme:light;
--primary:#1E7A4C;--primary-press:#155C39;--on-primary:#fff;--bg:#EEF4EC;--surface:#FFFFFF;--ink:#16301F;--muted:#4A5F52;--line:#C9D8C6;--line-strong:#6F8A74;--leaf-tint:#DCEFD9;
--night:#1A2342;--on-night:#F3F6EE;--night-muted:#B9C4D9;--sun:#F4B63F;--on-sun:#2B1D00;--danger:#B3261E;--info:#1F5F99;--sun-deep:#7A5200;
--green:var(--primary);--paper:var(--bg);
--fs-wordmark:40px;--fs-display:clamp(32px,10vw,40px);--fs-h1:28px;--fs-h2:20px;--fs-title:20px;--fs-lead:18px;--fs-body:16px;--fs-small:14px;--fs-caption:12px;--fs-label:12px;--fs-button:18px;--fs-hud:15px;--fs-timer:clamp(56px,16vw,64px);
--r-sm:8px;--r-md:14px;--r-lg:22px;--r-pill:999px;--s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--s6:32px;--s7:48px;--s8:64px;
--raise:0 1px 2px rgba(22,48,31,.08),0 4px 12px rgba(22,48,31,.06);--float:0 8px 24px rgba(22,48,31,.16);
--t-press:80ms;--t-ui:120ms;--t-in:240ms;--t-out:160ms;--tabbar-h:64px;
--f-sys:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
--f-script:"Noto Sans Devanagari","Noto Sans Arabic","Noto Sans Bengali","Noto Sans Gujarati","Noto Sans Gurmukhi","Noto Sans Kannada","Noto Sans Malayalam","Noto Sans Tamil","Noto Sans Telugu";
--f-sib:"Baloo 2";--w-head:700;
--f-head:"Baloo 2","Baloo 2 Fallback",var(--f-sib),"Nunito","Nunito Fallback",var(--f-script),var(--f-sys);
--f-body:"Nunito","Nunito Fallback",var(--f-script),var(--f-sys);
--f-num:"Baloo 2","Baloo 2 Fallback","Nunito","Nunito Fallback",var(--f-sys);
font-family:var(--f-body);color:var(--ink);background:var(--bg)}
/* per-script system fallbacks (DESIGN.md Typography): CJK, Korean, Thai, Myanmar, Ethiopic have no self-hosted face */
:lang(zh-Hans){--f-sys:"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",system-ui,sans-serif}
:lang(zh-Hant){--f-sys:"PingFang TC","Noto Sans CJK TC","Microsoft JhengHei",system-ui,sans-serif}
:lang(ja){--f-sys:"Hiragino Sans","Noto Sans CJK JP","Yu Gothic",system-ui,sans-serif}
:lang(ko){--f-sys:"Apple SD Gothic Neo","Noto Sans CJK KR","Malgun Gothic",system-ui,sans-serif}
:lang(th){--f-sys:"Noto Sans Thai","Leelawadee UI",system-ui,sans-serif}
:lang(my){--f-sys:"Noto Sans Myanmar","Myanmar Text",system-ui,sans-serif}
:lang(am){--f-sys:"Noto Sans Ethiopic","Nyala",system-ui,sans-serif}
:lang(ur){--f-sys:"Noto Nastaliq Urdu",system-ui,sans-serif}
/* the heading face of a script language: its Baloo sibling (weight 700 only); Urdu keeps the system Nastaliq as before */
:lang(ta){--f-sib:"Baloo Thambi 2"}:lang(ar),:lang(fa){--f-sib:"Baloo Bhaijaan 2"}:lang(bn){--f-sib:"Baloo Da 2"}:lang(te){--f-sib:"Baloo Tammudu 2"}:lang(gu){--f-sib:"Baloo Bhai 2"}:lang(pa){--f-sib:"Baloo Paaji 2"}:lang(kn){--f-sib:"Baloo Tamma 2"}:lang(ml){--f-sib:"Baloo Chettan 2"}
:lang(ru),:lang(uk){--w-head:800} /* Baloo 2 has no Cyrillic: Nunito 800 carries the headings there */
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--ink);font-size:var(--fs-body);line-height:1.5}
a{color:var(--primary-press);text-underline-offset:4px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px;border-radius:6px}
.stage :focus-visible,.signin-page :focus-visible,.hero-tree :focus-visible,.battle-pair :focus-visible{outline-color:var(--sun)}
[hidden]{display:none!important}
.icon{display:inline-block;width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* buttons: primary / secondary / reward; 3 px pressable edge */
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:var(--s2);min-height:52px;max-width:100%;padding:12px var(--s5);border:0;font-family:var(--f-head);font-size:var(--fs-button);font-weight:700;line-height:1.15;text-align:center;text-decoration:none;cursor:pointer;overflow-wrap:anywhere}
.hero-tree :focus-visible{outline-color:var(--sun)}
.shell{width:min(100% - 32px,1080px);margin:auto}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);padding:var(--s3) 0}
.brand{display:flex;align-items:center;gap:var(--s2);min-height:44px;font-family:var(--f-head);font-size:var(--fs-title);font-weight:700;color:var(--ink);text-decoration:none}
.brand-dot{width:10px;height:10px;border-radius:50%;background:var(--sun)}
.username{font-size:var(--fs-small);font-weight:500;color:var(--muted);max-width:40%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;unicode-bidi:plaintext}
@media(max-width:380px){.masthead{gap:var(--s2)}} /* fg-ui-s1-fix5-1126: the name is user text, so its own first letter sets its direction (plaintext) and an RTL page cuts its end, not its start; at 360 the 8 px gap keeps a 9-character name whole */
.loc-chip,#shop-balance{font-family:var(--f-num)} /* fg-ui-s1-fix5-1126: Loc balances are live counters too: tabular figures face (the battle EXP count-up gets it in its own .battle-exp rule below, which comes later and would win) */
nav{display:flex;gap:var(--s1) var(--s3);flex-wrap:wrap;padding:var(--s2) 0}
nav a,main a:not(.button){display:inline-flex;align-items:center;min-height:44px}
nav a{font-size:var(--fs-small);font-weight:500;padding:0 var(--s3);border-radius:var(--r-pill);text-decoration:none;color:var(--ink)}
nav a[aria-current="page"]{background:var(--leaf-tint);color:var(--primary-press)}
main{padding:var(--s3) 0 var(--s7)}
h1,h2,h3{font-family:var(--f-head);font-weight:var(--w-head);text-wrap:balance;margin:0}
h1{font-size:var(--fs-h1);line-height:1.15;margin:var(--s2) 0 var(--s4)}
h2{font-size:var(--fs-h2);line-height:1.2;margin:var(--s5) 0 var(--s2)}
h3{font-size:var(--fs-title);line-height:1.25;font-weight:700;margin:var(--s3) 0 var(--s1)}
p{margin:0 0 var(--s3)}
.eyebrow,.hint,.settings-hint,small{font-size:var(--fs-small);font-weight:500;line-height:1.4;color:var(--muted)}
.hint{margin:var(--s2) 0}
.hint,.status-line>[data-toast],.toast .t-body{white-space:normal;text-overflow:clip;overflow-wrap:anywhere} /* fg-vi-nits-1125: a long message (shop error) always wraps, never cut */
.lead{font-size:var(--fs-lead);font-weight:700;line-height:1.45}
.focus-card{max-width:560px;margin:0 auto var(--s4);padding:var(--s4);background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--raise);text-align:start}
.focus-card p,.focus-card li{max-width:34rem}
.focus-card>h1,.focus-card .forest-head h1{margin-top:0}
.hero-tree{position:relative;display:flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;margin:var(--s2) auto var(--s4);padding:0;overflow:hidden;border-radius:var(--r-lg);background:radial-gradient(circle at 50% 60%,#2E3D6E 0,var(--night) 70%)}
:where(svg:not(.icon):not(.sprite)){display:block;width:100%;height:auto;max-width:100%}
.hint a,.eyebrow a{font-weight:700}
form{max-width:400px;margin:var(--s4) 0}
label{display:block;font-size:var(--fs-small);font-weight:500;line-height:1.4;margin:var(--s4) 0 var(--s2)}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select{width:100%;min-width:0;min-height:52px;padding:0 var(--s4);background:var(--surface);color:var(--ink);border:2px solid var(--line-strong);border-radius:var(--r-md);font-size:var(--fs-body);line-height:1.5}
input,select,progress,meter{accent-color:var(--primary)}
input[type=checkbox],input[type=radio],input[type=range]{accent-color:var(--primary)}
form button{width:100%;margin-top:var(--s5)}
.timer{font-family:var(--f-num);font-size:var(--fs-timer);font-weight:700;font-feature-settings:"tnum";line-height:1;font-variant-numeric:tabular-nums;letter-spacing:0;margin:var(--s2) 0 var(--s4);text-align:center}
.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--s3);align-items:start}
.day{min-width:0;background:var(--surface);border-radius:var(--r-md);box-shadow:var(--raise);padding:var(--s3) var(--s2);text-align:center;overflow-wrap:anywhere}
.day h2{font:inherit;font-size:var(--fs-small);font-weight:700;margin:0 0 var(--s1)}.day h2 span{display:block}.day-trees{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--s1)}.day-trees>div{width:calc(50% - 2px)}.day-trees>div:only-child{width:100%}.day-trees .tree-card{margin:0 auto}.day p{font-size:var(--fs-small);margin:0}
.stats{display:flex;gap:var(--s1) var(--s5);flex-wrap:wrap;margin:var(--s4) 0}.stat{font-feature-settings:"tnum";font-family:var(--f-num);font-size:var(--fs-title);font-weight:700;margin:0}
.forest-head{display:flex;align-items:center;justify-content:space-between;gap:var(--s4);flex-wrap:wrap}
.share-caption{font-size:var(--fs-body);margin:0 0 var(--s2);text-wrap:balance}.share-caption span{white-space:nowrap}
.session-tree{width:min(240px,100%);margin-top:0}
/* F1: the painted tree of a session grows with its 4 stages (same painting, drawn larger from the ground up; rank 1 has no taller keyframe) */
.session-tree [data-tree-stage] .tree-card{transform-origin:50% 92%;transform:scale(var(--grow,1));background:transparent}.session-tree [data-tree-stage="0"]{--grow:.72}.session-tree [data-tree-stage="1"]{--grow:.82}.session-tree [data-tree-stage="2"]{--grow:.91}.fg-motion .session-tree [data-tree-stage]:not([hidden]) .tree-card{animation:fg-grow .9s ease-out}@keyframes fg-grow{from{transform:scale(calc(var(--grow,1) - .12))}}.session-card h1{margin-bottom:var(--s2)}.share-card p{text-wrap:pretty}
#share-preview{max-width:540px;margin:var(--s5) auto;border-radius:var(--r-lg);overflow:hidden;background:#F6F4E9}
.share-actions{display:flex;flex-wrap:wrap;gap:var(--s2) var(--s4);align-items:center}.share-actions input{width:24px;height:24px;margin:0}.share-actions label{margin:0;display:flex;align-items:center;gap:10px;min-height:44px}
@media(max-width:680px){.week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.day{padding:var(--s3)}.day h2 span{display:inline}}
@media(max-width:600px){main{padding-top:var(--s2)}}
.room-code{font-family:var(--f-num),ui-monospace,Consolas,monospace;font-feature-settings:"tnum";font-size:var(--fs-display);letter-spacing:.18em;font-weight:700;margin:var(--s1) 0 var(--s3)}
.room-trees{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3);margin:var(--s2) 0 var(--s3)}.room-tree{margin:0;min-width:0}.room-tree .hero-tree{width:100%;margin:0 auto 6px}.room-name{font-size:var(--fs-small);font-weight:500;overflow-wrap:anywhere}.room-tree[data-wait="1"]{opacity:.45}.room-card #room-start{width:min(100%,400px);margin:var(--s3) 0}
.focus-card table{width:100%;table-layout:fixed;border-collapse:collapse;font-family:var(--f-num);font-feature-settings:"tnum";font-size:var(--fs-small);font-weight:500;line-height:1.4}.focus-card th,.focus-card td{padding:9px 4px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;text-align:start}
.tree-badge{display:block;font-size:var(--fs-caption);font-weight:700;border:2px solid var(--line-strong);border-radius:var(--r-sm);padding:3px;overflow-wrap:anywhere}.tree-badge[data-grade="A"],.tree-badge[data-grade="S"]{border-color:var(--primary)}.tree-badge[data-grade="SS"],.tree-badge[data-grade="SSS"]{border-color:var(--sun-deep);background:#FFF3CE}
/* language chip (sign-in, terms, signed-out settings) and header icon buttons */
.lang-switch{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:0 14px;border:2px solid var(--line-strong);border-radius:var(--r-pill);background:var(--surface);color:var(--ink);font-size:var(--fs-small);font-weight:700;text-decoration:none;white-space:nowrap}
.music{position:relative;margin-left:auto}
.music-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--primary-press);cursor:pointer;box-shadow:none}
.music-btn[aria-pressed="true"]{background:var(--primary);color:var(--on-primary)}
.music-panel{position:absolute;right:0;top:100%;z-index:5;display:flex;align-items:center;gap:10px;margin-top:6px;padding:var(--s2) var(--s3);background:var(--surface);border-radius:var(--r-md);box-shadow:var(--float);white-space:nowrap}.music-panel[hidden]{display:none}.music-panel label{margin:0}.music-panel input{width:140px;min-height:44px;margin:0}
.tree-card{margin:0;display:block;width:fit-content;max-width:100%;border-radius:var(--r-md);overflow:hidden;background:var(--night)}.tree-card>img,.tree-card>canvas,.tree-card>svg{display:block;max-width:100%;height:auto}.tree-card-svg{display:none}
/* EXP, rank, rewards */
.hero-tree .tree-card{margin:0 auto;border-radius:var(--r-lg)}
.rank-line{margin:6px 0;display:flex;align-items:center;flex-wrap:wrap;gap:var(--s2);font-weight:500}
.rank-line strong{display:inline-flex;align-items:center;min-height:24px;padding:2px 10px;border-radius:var(--r-pill);background:var(--sun);color:var(--on-sun);font-size:var(--fs-caption);font-weight:700;line-height:1.35}
/* fg-level-rank-1125: the standing among players (Xếp hạng / Rankings) is its own blue-edged card, not the sun-coloured Level badge */
.rk-card{max-width:560px;margin:0 auto var(--s4);padding:var(--s4);background:var(--surface);border:2px solid var(--info);border-radius:var(--r-lg);text-align:start}
.rk-card h2{margin:0 0 var(--s2);color:var(--info)}
.rk-card .hint{margin:0 0 var(--s2)}
.rk-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--s2)}
.rk-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--s1) var(--s2);padding:var(--s2) 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.rk-label{font-weight:500}
.rk-place{font-variant-numeric:tabular-nums;font-size:var(--fs-title);color:var(--info)}
.rk-next{flex-basis:100%;font-size:var(--fs-small);color:var(--muted)}
.rk-none{color:var(--muted);font-weight:500}
.xp-label{display:block;font-size:var(--fs-small);font-weight:500;margin:var(--s1) 0}
progress{display:block;width:100%;max-width:360px;height:12px;margin:var(--s1) 0 10px;border:0;border-radius:var(--r-pill);overflow:hidden;appearance:none;-webkit-appearance:none;background:var(--leaf-tint)}
progress::-webkit-progress-bar{background:var(--leaf-tint);border-radius:var(--r-pill)}progress::-webkit-progress-value{background:linear-gradient(90deg,var(--primary),#3FA66E);border-radius:var(--r-pill)}progress::-moz-progress-bar{background:var(--primary);border-radius:var(--r-pill)}
.exp-gain{font-family:var(--f-head);font-size:var(--fs-title);font-weight:700;margin:var(--s2) 0;color:var(--primary-press)}
.rank-up{font-family:var(--f-head);font-weight:700;margin:6px 0;padding:var(--s2) var(--s3);border-radius:var(--r-md);background:var(--sun);color:var(--on-sun);max-width:100%;overflow-wrap:anywhere}
.needs,.task-opts{list-style:none;margin:var(--s2) 0;padding:0}
.needs>li{padding:var(--s2) 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.task-opts{padding-inline-start:var(--s3);font-size:var(--fs-small);font-weight:500}
.need-state{display:inline-block;margin-inline-start:6px;padding:0 var(--s2);border-radius:var(--r-pill);border:2px solid var(--line-strong);font-size:var(--fs-caption);font-weight:700}
.need-state[data-ok="1"]{background:var(--leaf-tint);border-color:var(--primary);color:var(--primary-press)}
.rebirth-card label,.journey-card label{display:block;margin:10px 0 4px}
.rebirth-card label.check{display:flex;align-items:center;gap:10px;min-height:44px}
.rebirth-card input[type="checkbox"]{width:24px;height:24px}
.rebirth-card select{width:100%;max-width:100%;min-height:52px}
.preview-label{display:inline-block;margin:4px 0 var(--s2);padding:6px var(--s3);border-radius:var(--r-pill);background:var(--leaf-tint);color:var(--primary-press);font-size:var(--fs-small);font-weight:700;overflow-wrap:anywhere}
.journey-card h2,.journey-card .preview-label,.journey-card output,.next-looks h2{text-align:center}
.journey-card{text-align:center}.journey-card form{margin-inline:auto}
.journey-card input[type="range"]{width:100%;min-height:44px}
.round-pick{border:0;margin:var(--s2) 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.round-pick legend{padding:0;margin:0 auto 6px;font-size:var(--fs-small);font-weight:500}
.round-opt{position:relative;margin:0 !important}
.round-opt input{position:absolute;inset:0;opacity:0;margin:0;width:100%;height:100%;cursor:pointer}
.round-opt span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:2px solid var(--line-strong);border-radius:var(--r-md);font-weight:700}
.round-opt input:checked+span{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.round-opt input:focus-visible+span{outline:3px solid var(--ink);outline-offset:2px}
.next-look-row{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--s3)}
.next-look{display:flex;flex-direction:column;align-items:center;gap:var(--s1);width:104px;min-width:0}
.next-cap{font-size:var(--fs-small);font-weight:500;text-align:center;overflow-wrap:anywhere}
.next-tag{font-size:var(--fs-caption);font-weight:700;border:2px solid var(--line-strong);border-radius:var(--r-pill);padding:0 var(--s2)}
.tree-card .fgfx{margin:0 auto}
.journey-card input[type="range"]{box-sizing:border-box;margin:0}
/* Ground plates (C-7). The plate img sits behind the tree layer; the tree is drawn at 86 % from the top so its island lands on the plate
   surface: island centre = 2 % + 0.86 x (0.90 - 0.02) = 77.7 % of the card (compose.js PIVOT_Y 0.90). Each plate is placed by its own measured
   box (public/assets/plates/MANIFEST.json aspect): top = 77.7 % - surface-centre x height, width chosen so the plate bottom stays <= 99.4 %. */
.tree-card-plated{position:relative}
.tree-card-plated>img:not(.tree-plate),.tree-card-plated>canvas,.tree-card-plated>svg,.tree-card-plated>.fgfx{position:relative;z-index:1;transform:scale(.86);transform-origin:50% 2%}
.tree-card-plated>.tree-plate{position:absolute;z-index:0;display:block;height:auto;max-width:none;pointer-events:none}
.tree-plate-moss{left:4%;width:92%;top:65.4%}
.tree-plate-lotus{left:4%;width:92%;top:66.8%}
.tree-plate-autumn{left:4%;width:92%;top:64.1%}
.tree-plate-jade{left:7%;width:86%;top:68.6%}
.plate-list{list-style:none;margin:var(--s3) 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));gap:var(--s3)}
.plate-item{background:var(--surface);border:2px solid var(--line-strong);border-radius:var(--r-md);padding:10px;display:flex;flex-direction:column;gap:6px;align-items:stretch;text-align:center;min-width:0}
.plate-item img{display:block;width:100%;height:auto}
.plate-item .plate-name{font-weight:700;overflow-wrap:anywhere}
.plate-item button{width:100%;margin-top:auto}
.plate-set{border:2px solid var(--primary);border-radius:var(--r-md);padding:var(--s3);margin:var(--s3) 0;overflow-wrap:anywhere}
.shop-preview{display:flex;justify-content:center;margin:var(--s2) 0}
.pay-box [data-pay-result]{margin:10px 0;padding:10px;border:2px solid var(--line-strong);border-radius:var(--r-md);overflow-wrap:anywhere}
.site-foot{margin:var(--s4) auto var(--s5);font-size:var(--fs-small);font-weight:500}.site-foot nav{justify-content:center}
.terms-card h2{font-size:var(--fs-title);font-weight:700;margin:var(--s5) 0 var(--s2)}.terms-card p{overflow-wrap:anywhere}
.battle-card+.battle-card{margin-top:var(--s5)}.battle-hero{width:min(200px,100%)}.battle-tickets{overflow-wrap:anywhere}.battle-history{list-style:none;padding:0;text-align:start}.battle-history a{overflow-wrap:anywhere}
.battle-pair{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:var(--s2);align-items:center;margin:var(--s2) 0 var(--s3);padding:var(--s4) var(--s3);border-radius:var(--r-lg);background:radial-gradient(circle at 50% 55%,#2E3D6E 0,var(--night) 75%);color:var(--on-night)}.battle-side{min-width:0;text-align:center}.battle-tree{width:min(140px,100%);margin:0 auto 6px}.battle-name{margin:var(--s1) 0;font-family:var(--f-head);font-size:var(--fs-title);font-weight:700;line-height:1.25;overflow-wrap:anywhere}.battle-meta{margin:2px 0;font-size:var(--fs-small);font-weight:500;color:var(--muted);overflow-wrap:anywhere;text-wrap:pretty}.battle-vs{font-family:var(--f-head);font-size:var(--fs-title);font-weight:700;color:var(--sun)}
.battle-pair .battle-meta{color:var(--night-muted)}
.battle-prob{font-family:var(--f-head);font-size:var(--fs-title);font-weight:700;margin:10px 0}.battle-count{font-family:var(--f-num);font-variant-numeric:tabular-nums;font-weight:700}
.battle-round-name{font-family:var(--f-head);font-size:var(--fs-h2);font-weight:700;margin:var(--s2) 0 14px}.battle-round-grid{display:grid;grid-template-columns:minmax(0,7em) minmax(0,1fr) auto;gap:var(--s2) 10px;align-items:center;text-align:start}.battle-round-grid meter{width:100%;height:18px;min-width:0}.battle-score{font-variant-numeric:tabular-nums;min-width:3.5em;text-align:end;font-weight:700}.battle-round-winner{min-height:1.5em;font-weight:700}.battle-round-list{text-align:start;font-size:var(--fs-small);font-weight:700;padding-inline-start:1.4em;overflow-wrap:anywhere}#battle-skip{margin-top:var(--s2)}
.battle-outcome{margin-bottom:var(--s3)}.battle-scores caption{font-size:var(--fs-small);font-weight:500;margin-bottom:var(--s1);text-align:start}.battle-scores tr[data-winner="me"] td:nth-child(2),.battle-scores tr[data-winner="opp"] td:nth-child(3){color:var(--primary-press);font-weight:700}.battle-exp{font-family:var(--f-num);font-size:var(--fs-title);font-weight:700;color:var(--sun-deep);margin:var(--s3) 0 var(--s1)}
.battle-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:var(--s4)}.battle-actions>*{flex:1 1 140px;max-width:100%;text-align:center}
@media(max-width:360px){.battle-pair{grid-template-columns:minmax(0,1fr)}.battle-vs{justify-self:center}.battle-round-grid{grid-template-columns:minmax(0,5em) minmax(0,1fr) auto;gap:6px}.battle-score{min-width:3em}}
.card-card .learn-card{text-align:start;margin-top:var(--s3)}.card-title{overflow-wrap:anywhere}.card-latin,.card-body,.card-act,.card-q,.card-count,.card-result{overflow-wrap:anywhere}
.card-options{display:flex;flex-direction:column;gap:10px;list-style:none;margin:10px 0;padding:0}.card-option{display:block;width:100%;max-width:100%;text-align:start;white-space:normal;overflow-wrap:anywhere;border:2px solid var(--line-strong);border-radius:var(--r-md);padding:10px var(--s3);min-height:44px;background:var(--surface);color:var(--ink);font-family:var(--f-body);font-size:var(--fs-body);font-weight:700;box-shadow:none}
button.card-option{cursor:pointer}.card-option.is-right{border-color:var(--primary);border-width:2px;background:var(--leaf-tint)}.card-option.is-picked{border-style:dashed;border-width:2px}
.card-result[data-ok="1"]{color:var(--primary-press)}.card-tick{display:flex;gap:10px;align-items:center;min-height:44px;margin:10px 0;overflow-wrap:anywhere}.card-tick input{accent-color:var(--primary);flex:none;width:24px;height:24px;padding:0;margin:0}
.card-sources{margin-top:10px;overflow-wrap:anywhere}.card-sources summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:700}.card-sources ul{padding-inline-start:20px}
.settings-link{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin-inline-start:6px;border:0;border-radius:50%;background:transparent;color:var(--ink);text-decoration:none}.lang-switch+.settings-link{margin-inline-start:0}
.settings-dot{position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:50%;background:var(--danger);border:2px solid var(--bg)}
.settings-card h2{margin:var(--s5) 0 var(--s2);font-size:var(--fs-h2)}.settings-card h3{margin:var(--s1) 0;font-size:var(--fs-title)}.settings-card label{display:inline-flex;align-items:center;gap:var(--s2);min-height:44px}
.settings-card select,.settings-card input[type=range]{min-height:44px}.settings-card input[type=range]{display:block;width:100%;max-width:360px}.settings-card button{min-height:44px;min-width:44px}
.settings-langs{display:flex;flex-wrap:wrap;gap:var(--s2);margin:0;padding:0;list-style:none}.settings-langs a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:2px solid var(--line-strong);border-radius:var(--r-pill);background:var(--surface);color:var(--ink);font-size:var(--fs-small);font-weight:700;text-decoration:none}.settings-langs a[aria-current]{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.settings-mails{margin:0;padding:0;list-style:none}.settings-mail{margin:0 0 10px;padding:var(--s3);border:2px solid var(--line);border-radius:var(--r-md)}.settings-mail.is-unread{border-color:var(--primary)}
.settings-mail small{display:block;margin-top:var(--s2)} /* R1 (real-phone fix D4): the "mark read" button no longer sits over the keep-until date */
.settings-card input[type=checkbox]{width:24px;height:24px;flex:none;margin:0}
.settings-card label.settings-check{display:flex;align-items:center;gap:10px;width:100%;text-align:start}
.settings-card input[type=checkbox][role="switch"]{appearance:none;-webkit-appearance:none;width:48px;height:28px;border-radius:var(--r-pill);background:var(--surface);border:2px solid var(--line-strong);position:relative;cursor:pointer;flex:none;transition:background-color var(--t-ui) ease}
.settings-card input[type=checkbox][role="switch"]::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:18px;height:18px;border-radius:50%;background:var(--line-strong);transition:transform var(--t-ui) ease,background-color var(--t-ui) ease}
.settings-card input[type=checkbox][role="switch"]:checked{background:var(--primary);border-color:var(--primary)}
.settings-card input[type=checkbox][role="switch"]:checked::after{transform:translateX(20px);background:var(--on-primary)}
[dir="rtl"] .settings-card input[type=checkbox][role="switch"]:checked::after{transform:translateX(-20px)}
.settings-card input[type=checkbox][role="switch"]:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.globe{margin-inline-end:4px}
.lang-sheet summary{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:2px solid var(--line-strong);border-radius:var(--r-pill);background:var(--surface);color:var(--ink);font-size:var(--fs-small);font-weight:700;cursor:pointer;list-style:none}
.lang-sheet summary::-webkit-details-marker{display:none}
.lang-sheet .chev{width:18px;height:18px}.lang-sheet[open] .chev{transform:rotate(180deg)}
.lang-sheet .settings-langs{margin-top:var(--s3)}
.empty-state{display:flex;align-items:center;gap:var(--s3);color:var(--muted);font-weight:500}
/* motion tokens (DESIGN.md): press 80 ms, ui 120 ms, leaf-in 240 ms, out 160 ms; everything animated hangs on .fg-motion (app.js sets it from the Settings choice) */
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
@keyframes fg-pop{0%{opacity:0;transform:scale(.7)}70%{transform:scale(1.06)}100%{opacity:1;transform:scale(1)}}
@keyframes fg-row{0%{opacity:0;transform:translateY(8px)}100%{opacity:1;transform:none}}
@keyframes fg-win{0%{transform:scale(1)}50%{transform:scale(1.25)}100%{transform:scale(1)}}
@keyframes fg-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@keyframes fg-glint{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
@keyframes fg-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.2)}}
@keyframes fg-pop-up{0%{opacity:0;transform:translateY(10px) scale(.8)}25%{opacity:1;transform:translateY(0) scale(1.1)}100%{opacity:1;transform:translateY(-6px) scale(1)}}
@keyframes leaf-in{from{opacity:0;transform:scale(.6) rotate(-6deg)}to{opacity:1;transform:none}}
@keyframes leaf-out{to{opacity:0;transform:translateY(6px)}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
/* battle opponent: one tile size and one top line for both trees, countdown ring, pulse on "vs" */
.battle-pair{align-items:start}
.battle-tree{width:96px;height:96px;margin:0 auto 6px;border-radius:var(--r-md)}
.battle-tree .tree-card{width:96px;height:96px;margin:0}
.battle-tree .tree-card>img,.battle-tree .tree-card>canvas,.battle-tree .tree-card>svg{width:100%;height:100%;object-fit:cover}
.battle-vs{align-self:center;display:inline-block}
.fg-motion .battle-vs{animation:fg-pulse 1.4s ease-in-out infinite}
.battle-ring{display:block;width:44px;height:44px;margin:2px auto 4px;transform:rotate(-90deg)}
.battle-ring circle{fill:none;stroke-width:4}.battle-ring-bg{stroke:var(--line)}.battle-ring-fg{stroke:var(--primary);stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:0}
.fg-motion .battle-ring-fg{transition:stroke-dashoffset 1s linear}
/* battle result: recap tiles, winner outline, staged reveal (classes come from battle.js; without it the page is the plain result) */
.battle-result-pair{margin:4px 0 var(--s2)}.battle-result-pair .battle-vs{animation:none}
.battle-side[data-won="1"] .battle-tree{outline:3px solid var(--sun);outline-offset:3px;box-shadow:0 0 0 7px rgba(244,182,63,.25);transition:outline-color .3s ease-out,box-shadow .3s ease-out}
.is-staging:not(.is-lit) .battle-side[data-won="1"] .battle-tree{outline-color:transparent;box-shadow:none}
.fg-motion .is-staging .battle-result-pair .battle-side{animation:fg-pop .4s ease-out both}
.fg-motion .is-staging .battle-result-pair .battle-side[data-side="opp"]{animation-delay:.12s}
.is-staging .battle-scores tr.is-hidden{opacity:0}
.fg-motion .is-staging .battle-scores tr.is-shown{animation:fg-row .35s ease-out both}
.fg-motion .is-staging tr.is-shown[data-winner="me"] td:nth-child(2),.fg-motion .is-staging tr.is-shown[data-winner="opp"] td:nth-child(3){animation:fg-win .45s ease-out .1s both}
.fg-motion .is-staging tr.is-shown[data-winner="me"] td:nth-child(3),.fg-motion .is-staging tr.is-shown[data-winner="opp"] td:nth-child(2){animation:fg-shake .3s ease-out .1s both}
.is-staging:not(.is-judged) .battle-outcome,.is-staging:not(.is-judged) .battle-exp,.is-staging:not(.is-judged) .exp-glint{opacity:0}
.fg-motion .is-staging.is-judged .battle-outcome{animation:fg-pop .45s ease-out both}
.fg-motion .is-staging.is-judged .battle-exp{animation:fg-row .35s ease-out both}
.exp-glint{position:relative;overflow:hidden;max-width:360px;margin:0;border-radius:var(--r-sm)}.exp-glint progress{max-width:none;margin:var(--s1) 0 10px}
.fg-motion .is-glint .exp-glint::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.8) 50%,transparent 70%);transform:translateX(-100%);animation:fg-glint .9s ease-out forwards;pointer-events:none}
.battle-stage-skip{display:block;margin:10px auto 0;min-height:48px;min-width:48px;padding:var(--s2) var(--s5)}
/* fg-type3d-fix1-1127: when the reveal ends the Skip button keeps its box (nothing below it moves, review MAJOR-1) and only hides; visibility:hidden also takes it out of the tab order and the reading order */
.battle-stage-skip.is-done{visibility:hidden}
/* learning cards: answer states with colour and an icon */
.card-mark{display:inline-block;min-width:1.4em;margin-inline-start:10px;font-weight:700;text-align:center;flex:none}.card-option:has(>.card-mark){display:flex;align-items:center;justify-content:space-between;gap:10px}
.card-option.is-right .card-mark{color:var(--primary-press)}
.card-option.is-picked{border-color:var(--danger);background:#FBE9E7}.card-option.is-picked .card-mark{color:var(--danger)}
.card-option.is-chosen{border:2px solid var(--primary);background:var(--leaf-tint)}.card-option.is-chosen:disabled{opacity:1;cursor:wait}
.card-pop{display:block;position:relative;height:0;pointer-events:none}
.card-pop::after{content:"+" attr(data-exp);position:absolute;inset-inline-end:0;top:-2.4em;padding:2px 10px;font-size:var(--fs-small);font-weight:700;color:var(--on-sun);background:var(--sun);border-radius:var(--r-pill)}
.fg-motion .card-pop::after{animation:fg-pop-up .9s ease-out both}
/* status lines (inline live regions) and the leaf toast */
.status-line{display:flex;align-items:flex-start;gap:var(--s2);margin:var(--s2) 0;font-size:var(--fs-small);font-weight:500;line-height:1.4;color:var(--muted)}
.status-line>.status-ico{width:16px;height:16px;margin-top:2px;color:var(--info)}
.status-line[data-kind="error"]{color:var(--danger)}.status-line[data-kind="error"]>.status-ico{color:var(--danger)}
.status-line[data-kind="success"]>.status-ico{color:var(--primary)}
.status-line>[data-toast]{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
.toast-src{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.toast-region{position:fixed;left:var(--s4);right:var(--s4);bottom:calc(var(--tabbar-h) + var(--s3) + env(safe-area-inset-bottom));z-index:30;pointer-events:none}
.toast-announce{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.toast-stack{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s2)}
.toast{pointer-events:auto;position:relative;display:flex;align-items:flex-start;gap:var(--s3);width:min(100%,420px);padding:var(--s3) var(--s1) var(--s3) var(--s4);background:var(--surface);color:var(--ink);border-radius:6px var(--r-lg) var(--r-lg) var(--r-lg);box-shadow:var(--float);font-size:var(--fs-small);font-weight:500;line-height:1.4;border-inline-start:4px solid var(--primary);transform-origin:left bottom}
.toast .t-ico{width:20px;height:20px;margin-top:1px;color:var(--primary)}
.toast[data-kind="reward"]{border-inline-start-color:var(--sun)}.toast[data-kind="reward"] .t-ico{color:var(--sun-deep)}
.toast[data-kind="error"]{border-inline-start-color:var(--danger)}.toast[data-kind="error"] .t-ico,.toast[data-kind="error"] .t-body{color:var(--danger)}
.toast[data-kind="info"]{border-inline-start-color:var(--info)}.toast[data-kind="info"] .t-ico{color:var(--info)}
.toast .t-body{flex:1;min-width:0;margin:0;padding-top:1px;overflow-wrap:anywhere}
.toast .t-close{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;margin:-10px 0;padding:0;border:0;border-radius:var(--r-pill);background:transparent;color:var(--muted);box-shadow:none}
.toast .t-close:hover{background:var(--leaf-tint)}
.fg-motion .toast{animation:leaf-in var(--t-in) cubic-bezier(.2,.9,.3,1.2) both}
.fg-motion .toast.leaving{animation:leaf-out var(--t-out) ease-in both}
.toast.leaving{opacity:0}
@media(prefers-reduced-motion:reduce){.fg-motion .toast{animation:fade-in var(--t-out) linear both}.fg-motion .toast.leaving{animation:none}}
html[data-motion="reduce"] .toast{animation:none!important}
/* phone: bottom bar of 4 tabs + menu; the long text nav stays on wider screens */
.tabbar{display:none}
@media(max-width:767px){
.masthead+nav{display:none}
.tabbar{display:flex;flex-wrap:nowrap;gap:0;position:fixed;left:0;right:0;bottom:0;z-index:20;padding:var(--s1) var(--s1) calc(var(--s1) + env(safe-area-inset-bottom));background:var(--surface);box-shadow:var(--float)}
.tabbar>a,.tabbar-more{flex:1 1 auto;min-width:0} /* fg-ui-s1-fix4-1126: width from the label, spare space shared equally, so long labels (vi "Rừng của tôi", my, it, pt-BR) stay on one line at 12 px */
.tabbar a,.tabbar summary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;padding:var(--s1) 0;border-radius:var(--r-md);font-size:var(--fs-caption);font-weight:500;line-height:1.2;text-align:center;text-decoration:none;color:var(--muted);overflow-wrap:anywhere;cursor:pointer;list-style:none}
.tabbar summary::-webkit-details-marker{display:none}
.tab-ico{display:grid;place-items:center;width:56px;height:32px;border-radius:var(--r-pill)}
.tabbar a[aria-current="page"]{color:var(--ink)}.tabbar a[aria-current="page"] .tab-ico{background:var(--leaf-tint);color:var(--primary-press)}
.tabbar :focus-visible{outline-offset:-4px}
.tabbar-more{position:relative}.tabbar-more[open]>summary{color:var(--ink)}.tabbar-more[open] .tab-ico{background:var(--leaf-tint);color:var(--primary-press)}
.tabbar-menu{gap:0;padding:0;flex-wrap:nowrap;position:absolute;inset-inline-end:0;bottom:100%;display:flex;flex-direction:column;width:max-content;min-width:200px;max-width:calc(100vw - 16px);margin-bottom:var(--s2);background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--float);overflow:hidden}
.tabbar-menu a{flex-direction:row;justify-content:flex-start;gap:var(--s2);min-height:48px;padding:0 var(--s4);border-radius:0;font-size:var(--fs-body);font-weight:700;color:var(--ink);text-align:start}
.tabbar-menu a+a{border-top:1px solid var(--line)}
body{padding-bottom:calc(var(--tabbar-h) + var(--s4) + env(safe-area-inset-bottom))}
}
@media(min-width:768px){.toast-region{left:var(--s5);bottom:var(--s5)}.focus-card{padding:var(--s5)}}
/* sign-in: night stage page; the live World Tree hero (.hero-wt) stays, only the frame around it is restyled */
.signin-page{background:var(--night);color:var(--on-night);min-height:100vh}
.signin-page .masthead{padding-top:var(--s4)}.signin-page .brand{color:var(--on-night)}
.signin-page .lang-switch{background:transparent;color:var(--on-night);border-color:rgba(243,246,238,.55)}
.signin-page .focus-card{background:none;box-shadow:none;max-width:480px;padding:0;text-align:center}
.signin-page .focus-card p{margin-inline:auto}
.signin-page h1{font-size:var(--fs-h1);line-height:1.15;letter-spacing:0;margin:var(--s2) 0 var(--s4);color:var(--on-night)}
.signin-page #pi-sign-in{width:100%;max-width:360px;margin:var(--s2) auto 0}
.signin-page #pi-sign-in:disabled{opacity:.7}
.signin-page .status-line>[data-toast]{flex:0 1 auto;margin:0;text-align:start} /* margin:0 beats `.signin-page .focus-card p{margin-inline:auto}` (specificity 0,3,0 vs 0,2,1): the auto margins pushed the text away from its icon */
.signin-page .status-line{justify-content:center;color:var(--night-muted)}.signin-page .status-line>.status-ico{color:var(--night-muted)}.signin-page .status-line[data-kind="error"],.signin-page .status-line[data-kind="error"]>.status-ico{color:#FFB4AB}
.signin-page .settings-link{color:var(--on-night)}
:lang(ta) .signin-page h1,:lang(ml) .signin-page h1,:lang(te) .signin-page h1,:lang(kn) .signin-page h1{font-size:var(--fs-h2)}
.signin-page .site-foot a{color:var(--night-muted)}
.signin-page .site-foot{margin-top:var(--s5)}
.signin-page main{padding-bottom:var(--s5)}
body.signin-page{padding-bottom:0}
.hero-wt{position:relative;margin:4px auto 12px;width:min(100%,420px);width:min(100%,clamp(220px,calc(100svh - 380px),420px));overflow:hidden;container-type:inline-size}
.hero-wt .fgfx{width:100%;height:auto;aspect-ratio:1254/1234;--aura-a:.5;--bmax:1.012;--cycle:7s;--wind:.5deg;--wcycle:9s}
.hero-wt .fgfx-aura{inset:-6%}
.hero-wt .fgfx-motes{z-index:0}
.hero-wt .fgfx-sway{z-index:1}
.hero-wt-img{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-select:none}
.hero-wt .fgfx-mote{--mc:#ffd86b;--ms:5px;--md:7s;--dx:10px;--rise:46cqw;bottom:30%}
.hero-wt .fgfx-mote:nth-child(1){--x:14%;--dx:-12px;--md:7.4s;--mdelay:-.6s;--ms:4px}
.hero-wt .fgfx-mote:nth-child(2){--x:24%;--dx:10px;--md:6.6s;--mdelay:-4.1s;--ms:6px}
.hero-wt .fgfx-mote:nth-child(3){--x:35%;--dx:-16px;--md:8.2s;--mdelay:-2.2s;--ms:5px}
.hero-wt .fgfx-mote:nth-child(4){--x:46%;--dx:14px;--md:7s;--mdelay:-5.7s;--ms:7px}
.hero-wt .fgfx-mote:nth-child(5){--x:57%;--dx:-9px;--md:8.8s;--mdelay:-1.3s;--ms:4px}
.hero-wt .fgfx-mote:nth-child(6){--x:67%;--dx:15px;--md:6.9s;--mdelay:-3.4s;--ms:6px}
.hero-wt .fgfx-mote:nth-child(7){--x:77%;--dx:-13px;--md:7.7s;--mdelay:-6.2s;--ms:5px}
.hero-wt .fgfx-mote:nth-child(8){--x:86%;--dx:11px;--md:8.4s;--mdelay:-.2s;--ms:4px}
@media(prefers-reduced-motion:reduce){html:not([data-motion="full"]) .hero-wt *{animation:none!important}}
html[data-motion="reduce"] .hero-wt *{animation:none!important}
/* Settings sign-out (route fg-fix-signout-music-1124): the button, the confirm dialog (Grove Night modal: surface card, radius 22, scrim, stacked buttons, bottom sheet on a phone); the calm line on the sign-in screen reuses the inline status line (toast component) */
.settings-signout{margin:var(--s4) 0 var(--s3)}.settings-signout button{width:100%;max-width:360px}
dialog.sheet{box-sizing:border-box;width:min(480px,calc(100% - 2*var(--s4)));max-width:none;padding:var(--s5);border:0;border-radius:var(--r-lg);background:var(--surface);color:var(--ink);box-shadow:var(--float);overflow-wrap:anywhere}
dialog.sheet::backdrop{background:rgba(22,48,31,.45)}
dialog.sheet form{max-width:none;margin:0}dialog.sheet h2{margin:0 0 var(--s2);font-size:var(--fs-h2)}dialog.sheet p{margin:0}
.sheet-actions{display:flex;flex-direction:column;gap:var(--s3);margin-top:var(--s5)}.sheet-actions button{width:100%;margin:0}
@media(max-width:600px){dialog.sheet{width:100%;margin:auto 0 0;border-radius:var(--r-lg) var(--r-lg) 0 0}}

/* Guest channel + trial (ROUTE fg-guest-pwa-1125, out/DESIGN.md D2-D6) */
.guest-panel{margin:var(--s6) auto 0;max-width:420px;display:flex;flex-direction:column;gap:var(--s3);text-align:center}
.guest-lead{margin:0;color:var(--night-muted)}
.guest-actions{display:flex;flex-direction:column;gap:var(--s3);align-items:stretch}
.guest-actions .button,.guest-actions button{width:100%;margin:0}
.signin-page .guest-get-pi{color:var(--on-night);text-decoration:underline;text-underline-offset:3px}
.guest-invite-status:empty{display:none}.guest-invite-status{margin:0;color:var(--on-night)}
.guest-invite-url{width:100%;min-height:44px;padding:0 var(--s3);border:1px solid var(--line-strong);border-radius:var(--r-sm);font:inherit}
.guest-locked{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s2)}
.guest-locked button{width:100%;min-height:52px;margin:0;padding:var(--s2);flex-direction:column;flex-wrap:wrap;gap:4px;overflow-wrap:anywhere;font-size:var(--fs-small)}
.guest-lock-ico .icon{width:18px;height:18px}
dialog.guest-prompt .guest-get-pi{color:var(--primary-press);text-align:center}
.sheet-actions .button{width:100%;margin:0}
.guest-trial{text-align:center}
.guest-try-form fieldset{border:0;margin:0 0 var(--s4);padding:0}
.guest-try-form legend{margin:0 auto var(--s2);font-weight:700}
.guest-minutes{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--s2)}
.guest-minutes label{display:inline-flex;align-items:center;gap:var(--s1);min-height:44px;padding:0 var(--s3);border:1px solid var(--line-strong);border-radius:var(--r-pill);cursor:pointer}
.guest-timer{margin:var(--s2) 0;font-family:var(--f-num);font-size:var(--fs-timer);font-weight:700;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;color:var(--primary-press)}
.guest-sprout{margin:0}.guest-sprout-ico{width:64px;height:64px;color:var(--primary)}
.guest-try-result{font-weight:700;color:var(--primary-press)}
.guest-seed{margin-top:var(--s4);padding:var(--s4);background:var(--leaf-tint);border-radius:var(--r-md)}
.guest-seed h2{margin:0 0 var(--s2)}
.guest-seeds{list-style:none;margin:var(--s3) 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--s2)}
.guest-seeds li{display:flex;flex-direction:column;align-items:center;gap:var(--s1);font-size:var(--fs-small);overflow-wrap:anywhere}
.guest-seeds img{width:100%;max-width:96px;height:auto}
.guest-trial .guest-prompt-actions{display:flex;flex-direction:column;gap:var(--s3);align-items:center}
.guest-trial .guest-get-pi{color:var(--primary-press)}
@media(max-width:400px){.guest-seeds{grid-template-columns:repeat(3,minmax(0,1fr))}}
.signin-page{display:flow-root} /* guest panel makes the page taller than the screen: keep the footer margin inside the night background */
/* Gear panel (S8). Pictures sit on the same night card as the tree (radial gradient of .hero-tree) so the cut-out edges are judged where players see them.
   The stage overlay is the same picture box, drawn over the item; its strength rises with the stage (opacity 0.62 + 0.07 x (stage - 1): .62 at stage 1 up to 1 at stage 7, art review finding 1). */
.gear-slots{list-style:none;margin:var(--s2) 0 var(--s4);padding:0;display:grid;gap:var(--s3)}
.gear-slot{display:grid;grid-template-columns:96px minmax(0,1fr);gap:var(--s3);align-items:center;padding:var(--s3);border:2px solid var(--line);border-radius:var(--r-md);background:var(--surface);overflow-wrap:anywhere}
.gear-slot[data-open="0"]{color:var(--muted);border-style:dashed}
.gear-info{grid-column:1/-1;min-width:0}.gear-thumb+.gear-info{grid-column:2}
.gear-name{font-weight:700}.gear-stage,.gear-hon{color:var(--muted);white-space:nowrap}
.gear-thumb{position:relative;display:block;flex:none;width:96px;height:96px;border-radius:var(--r-md);overflow:hidden;background:radial-gradient(circle at 50% 60%,#2E3D6E 0,var(--night) 70%)}
.gear-thumb .gear-item{position:absolute;inset:12%;width:76%;height:76%;max-width:none;object-fit:contain;object-position:50% 50%}
.gear-a-bottom .gear-item{object-position:50% 100%}.gear-a-top .gear-item{object-position:50% 0}
.gear-fx{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:fill;pointer-events:none}
.gear-fx-s1{opacity:.62}.gear-fx-s2{opacity:.69}.gear-fx-s3{opacity:.76}.gear-fx-s4{opacity:.83}.gear-fx-s5{opacity:.9}.gear-fx-s6{opacity:.97}.gear-fx-s7{opacity:1}
.gear-choices{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:var(--s2)}
.gear-choice{min-height:48px;padding:6px var(--s3) 6px 6px;gap:var(--s2);text-align:start;justify-content:flex-start}
.gear-choice .gear-thumb{width:40px;height:40px;border-radius:var(--r-sm)}
.gear-worn{list-style:none;display:flex;justify-content:center;gap:4px;margin:4px 0 0;padding:0}
.gear-worn .gear-thumb{width:28px;height:28px;border-radius:6px}
.hero-tree+.gear-worn .gear-thumb{width:40px;height:40px}
.tree-slot-art .gear-worn{justify-content:flex-start}
@media(max-width:400px){.gear-slot{grid-template-columns:80px minmax(0,1fr)}.gear-thumb{width:80px;height:80px}.gear-choice .gear-thumb{width:40px;height:40px}}

/* ===== G1 game shell (fg-game-g1-1126, approved "Sân khấu Rừng Đêm" 26/11): night stage, HUD, game buttons, 5-tab bar, gear sheet. Looks only. ===== */
:root:where(.fg-stage){--stage-top:#0E1530;--stage-mid:#1A2342;--stage-low:#141B36;--stage-glow:rgba(46,94,78,.55);--stage-glow-solid:#25444A;--panel:#22305A;--panel-edge:#3A4C80;--btn-edge-sun:#B87A0C;--btn-edge-green:#0F4A2D;--exp:#7BE0A0;--loc:#FFD66B;--hud-h:56px}
/* BEYOND: the sky tint follows the player's local hour (templates/layout.php fgSkyPhase); every tint keeps the four stage tokens dark enough for 4.5:1 text */
:where(html.fg-stage) body[data-sky="dawn"]{--stage-top:#2A2348;--stage-mid:#1E2446;--stage-low:#171B38;--stage-glow:rgba(214,120,90,.28);--stage-glow-solid:#4B3A4F}
:where(html.fg-stage) body[data-sky="day"]{--stage-top:#14305A;--stage-mid:#18294C;--stage-low:#131F3C;--stage-glow:rgba(70,150,110,.40);--stage-glow-solid:#2A4D5A}
:where(html.fg-stage) body[data-sky="dusk"]{--stage-top:#2B1F44;--stage-mid:#1C2142;--stage-low:#151A36;--stage-glow:rgba(244,182,63,.18);--stage-glow-solid:#3F3D49}
/* fix round 1 (review MAJOR-1): the stage and its text colours only where a layout draws the stage (html.fg-stage, templates/layout.php); signin.php and try.php keep their own page */
html.fg-stage{background:var(--stage-mid)}
.fg-stage body{background:transparent}
:where(html.fg-stage) .stage-sky{position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(1.5px 1.5px at 12% 18%,rgba(255,255,255,.6) 50%,transparent 51%),radial-gradient(1px 1px at 30% 9%,rgba(255,255,255,.55) 50%,transparent 51%),radial-gradient(1.5px 1.5px at 72% 14%,rgba(255,255,255,.65) 50%,transparent 51%),radial-gradient(1px 1px at 88% 30%,rgba(255,255,255,.45) 50%,transparent 51%),radial-gradient(1px 1px at 55% 24%,rgba(255,255,255,.4) 50%,transparent 51%),radial-gradient(1.5px 1.5px at 8% 40%,rgba(255,255,255,.4) 50%,transparent 51%),radial-gradient(120% 55% at 50% 62%,var(--stage-glow) 0%,transparent 60%),linear-gradient(180deg,var(--stage-top) 0%,var(--stage-mid) 70%,var(--stage-low) 100%)}
:where(html.fg-stage) .stage-sky i{position:absolute;width:5px;height:5px;border-radius:50%;background:#C9FFB0;box-shadow:0 0 10px 3px rgba(155,234,122,.45);opacity:.6}
:where(html.fg-stage) .stage-sky i:nth-child(1){left:14%;top:24%}:where(html.fg-stage) .stage-sky i:nth-child(2){left:78%;top:18%}:where(html.fg-stage) .stage-sky i:nth-child(3){left:64%;top:46%}:where(html.fg-stage) .stage-sky i:nth-child(4){left:26%;top:58%}:where(html.fg-stage) .stage-sky i:nth-child(5){left:88%;top:70%}
/* the one ambient loop allowed (DIRECTION 7): slow drift, only while motion is on (html.fg-motion = Settings motion + OS reduced-motion, public/assets/app.js) */
.fg-motion:where(.fg-stage) .stage-sky i{animation:fg-firefly 16s ease-in-out infinite alternate}
.fg-motion:where(.fg-stage) .stage-sky i:nth-child(2){animation-duration:21s;animation-delay:-5s}.fg-motion:where(.fg-stage) .stage-sky i:nth-child(3){animation-duration:18s;animation-delay:-9s}.fg-motion:where(.fg-stage) .stage-sky i:nth-child(4){animation-duration:24s;animation-delay:-3s}.fg-motion:where(.fg-stage) .stage-sky i:nth-child(5){animation-duration:19s;animation-delay:-12s}
@keyframes fg-firefly{0%{transform:translate(0,0);opacity:.3}50%{opacity:.8}100%{transform:translate(16px,-22px);opacity:.4}}
html:where(.fg-stage)[data-motion="reduce"] .stage-sky i{animation:none}
@media(prefers-reduced-motion:reduce){html:where(.fg-stage):not([data-motion="full"]) .stage-sky i{animation:none}}
/* HUD: one compact top bar, 56 px, fits 320 px (level ring, name + EXP bar, Loc, tickets, gear) */
.fg-stage .masthead{position:sticky;top:0;z-index:15;display:flex;align-items:center;justify-content:flex-start;gap:6px;min-height:var(--hud-h);margin:0 -16px;padding:6px 12px;background:linear-gradient(180deg,rgba(11,17,40,.95) 0%,rgba(11,17,40,.8) 72%,rgba(11,17,40,0) 100%)}
.fg-stage .masthead .brand,.fg-stage .masthead .lang-switch{color:var(--on-night)}
.fg-stage .masthead .lang-switch{background:transparent;border-color:rgba(243,246,238,.55)}
.fg-stage .masthead :focus-visible,.fg-stage .site-foot :focus-visible,.fg-stage .masthead+nav :focus-visible{outline-color:var(--sun)}
:where(html.fg-stage) .hud-ring{position:relative;flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#fff;text-decoration:none}
:where(html.fg-stage) .hud-ring-svg{position:absolute;inset:0;width:44px;height:44px;transform:rotate(-90deg)}
:where(html.fg-stage) .hud-ring-svg circle{fill:none;stroke-width:4}
:where(html.fg-stage) .hud-ring-svg .track{stroke:rgba(255,255,255,.18)}
:where(html.fg-stage) .hud-ring-svg .arc{stroke:var(--exp);stroke-linecap:round}
:where(html.fg-stage) .hud-lv{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--primary);font-family:var(--f-num);font-size:var(--fs-small);font-weight:700;line-height:1;color:#fff}
:where(html.fg-stage) .hud-who{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:5px}
.fg-stage .masthead .username{max-width:none;font-size:var(--fs-small);font-weight:700;line-height:1.2;color:var(--on-night)}
:where(html.fg-stage) .hud-exp{display:block;width:100%;height:6px;border:0;border-radius:6px;background:rgba(255,255,255,.18);overflow:hidden;-webkit-appearance:none;appearance:none}
:where(html.fg-stage) .hud-exp::-webkit-progress-bar{background:rgba(255,255,255,.18);border-radius:6px}
:where(html.fg-stage) .hud-exp::-webkit-progress-value{background:linear-gradient(90deg,#4FC47F,var(--exp));border-radius:6px}
:where(html.fg-stage) .hud-exp::-moz-progress-bar{background:linear-gradient(90deg,#4FC47F,var(--exp));border-radius:6px}
:where(html.fg-stage) .hud-chip{flex:none;display:inline-flex;align-items:center;gap:5px;height:30px;padding-inline:4px 9px;border-radius:var(--r-pill);background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.14);font-family:var(--f-num);font-size:var(--fs-small);font-weight:700;line-height:1;color:#fff;white-space:nowrap;font-variant-numeric:tabular-nums}
:where(html.fg-stage) .hud-coin,:where(html.fg-stage) .hud-ticket{flex:none;width:20px;height:20px}
:where(html.fg-stage) .hud-coin{border-radius:50%;background:radial-gradient(circle at 35% 30%,#FFF1B8,var(--sun) 60%,var(--sun-deep))}
:where(html.fg-stage) .hud-ticket{border-radius:5px;background:radial-gradient(circle at 35% 30%,#D6F5FF,#5FB7E6 60%,#2A6C99);transform:rotate(-12deg) scale(.9)}
.fg-stage .masthead .settings-link{flex:none;width:44px;height:44px;margin:0;border-radius:12px;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.14);color:#fff}
.fg-stage .masthead .settings-dot{border-color:var(--stage-top)}
@media(max-width:340px){.fg-stage .masthead{gap:4px;padding-inline:8px}:where(html.fg-stage) .hud-chip{padding-inline:3px 7px;gap:3px}}
.fg-stage .masthead+nav a{color:var(--on-night)}
.fg-stage .masthead+nav a[aria-current="page"]{color:var(--primary-press)}
.fg-stage .site-foot a{color:var(--night-muted)}
/* text that sits on the stage itself (outside the white cards; today only My forest's head, stats and note, and any bare paragraph of a page) */
.fg-stage main>p,.fg-stage main>h1,.fg-stage main>h2,.fg-stage .forest-head,.fg-stage .forest-head h1,.fg-stage .stats .stat{color:var(--on-night)}
.fg-stage .forest-head .eyebrow,.fg-stage main>.hint{color:var(--night-muted)}
/* game tab bar: 5 tabs (tab 5 = shop), night panel in the thumb zone */
@media(max-width:767px){
:where(html.fg-stage) .tabbar{background-color:#0B1128;background-image:linear-gradient(180deg,#141B36,#0B1128);box-shadow:0 -1px 0 rgba(255,255,255,.12)}
:where(html.fg-stage) .tabbar a{color:var(--night-muted)}
:where(html.fg-stage) .tabbar a[aria-current="page"]{color:#fff;background:none}
:where(html.fg-stage) .tabbar a[aria-current="page"] .tab-ico{background:var(--primary);color:#fff;box-shadow:0 3px 0 var(--btn-edge-green)}
:where(html.fg-stage) .tabbar :focus-visible{outline-color:var(--sun)}
}
/* 320-360 px: a narrower icon pill so the longest labels (vi, it, pt-BR) keep one line */
@media(max-width:360px){:where(html.fg-stage) .tabbar{padding-inline:2px}:where(html.fg-stage) .tab-ico{width:44px}}
/* settings sheet from the HUD gear (native modal dialog): settings page, language, templates, odds, music */
:where(html.fg-stage) .settings-sheet{position:fixed;inset:auto 0 0 0;width:min(100%,560px);max-width:100%;max-height:85vh;margin:0 auto;padding:0;border:0;border-radius:22px 22px 0 0;background:var(--panel);color:var(--on-night);box-shadow:0 -12px 40px rgba(0,0,0,.5);overflow:auto}
:where(html.fg-stage) .settings-sheet[open]{display:flex;flex-direction:column}
:where(html.fg-stage) .settings-sheet::backdrop{background:rgba(5,9,24,.62)}
:where(html.fg-stage) .sheet-head{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);padding:var(--s4) var(--s4) var(--s2)}
:where(html.fg-stage) .sheet-head h2{margin:0;font-size:var(--fs-title);color:var(--on-night)}
:where(html.fg-stage) .settings-sheet .sheet-close{flex:none;min-width:44px;min-height:44px;padding:0;border-radius:12px;background:rgba(0,0,0,.3);color:#fff;box-shadow:none}
:where(html.fg-stage) .settings-sheet .sheet-close .icon{width:22px;height:22px}
:where(html.fg-stage) .sheet-list{flex-direction:column;flex-wrap:nowrap;gap:0;padding:0 var(--s2) var(--s2)}
:where(html.fg-stage) .sheet-list a{display:flex;align-items:center;gap:var(--s3);min-height:52px;padding:0 var(--s3);border-radius:var(--r-md);font-size:var(--fs-body);font-weight:700;color:var(--on-night);text-decoration:none}
:where(html.fg-stage) .sheet-list a+a{border-top:1px solid rgba(255,255,255,.08)}
:where(html.fg-stage) .sheet-list a[aria-current="page"]{background:rgba(255,255,255,.08);color:var(--on-night)}
:where(html.fg-stage) .sheet-ico,:where(html.fg-stage) .sheet-list .globe{flex:none;display:grid;place-items:center;width:36px;height:36px;margin:0;border-radius:10px;background:rgba(0,0,0,.28);color:var(--loc)}
:where(html.fg-stage) .settings-sheet .music{display:flex;align-items:center;flex-wrap:wrap;gap:var(--s2) var(--s3);margin:0 var(--s2) var(--s4);padding:var(--s1) var(--s3);border-radius:var(--r-md);background:rgba(0,0,0,.2)}
:where(html.fg-stage) .settings-sheet .music[hidden]{display:none}
:where(html.fg-stage) .music-name{flex:1 1 auto;font-weight:700}
:where(html.fg-stage) .settings-sheet .music-btn{color:var(--on-night);box-shadow:none}
:where(html.fg-stage) .settings-sheet .music-panel{position:static;margin:0;padding:0;background:none;box-shadow:none;color:var(--on-night)}
:where(html.fg-stage) .settings-sheet .music-panel[hidden]{display:none}
:where(html.fg-stage) .settings-sheet .music-panel input{width:120px}
:where(html.fg-stage) .settings-sheet :focus-visible{outline-color:var(--sun)}
/* fix round 1 (review MINOR-4): the session heading (running / kept / withered) keeps to 2 lines at 320 px in the long languages; token sizes only */
:where(html.fg-stage) #focus-status{font-size:var(--fs-h2);line-height:1.2}
@media(max-width:400px){:where(html.fg-stage) #focus-status{font-size:var(--fs-title);line-height:1.25}}
@media(max-width:340px){:where(html.fg-stage) #focus-status{font-size:var(--fs-lead)}}
/* ===== UI slice S2 (fg-ui-s2-1126): tree stage + Growth Ring. DESIGN.md "Tree stage": the page sky is the one stage; on Session, Room and Battle the
   section that holds the tree drops its white card and the tree stands on the sky itself (no box, no pink ground, no second panel). Looks only. ===== */
.fg-stage .focus-card.stage{max-width:560px;padding:var(--s2) 0 var(--s4);background:none;box-shadow:none;border:0;border-radius:0;color:var(--on-night);--tree-ground:transparent}
.fg-stage .session-card.stage,.fg-stage .room-card.stage{text-align:center}
.fg-stage .session-card.stage p,.fg-stage .room-card.stage p{margin-inline:auto}
.fg-stage .stage h1,.fg-stage .stage .battle-name,.fg-stage .stage .battle-round-name,.fg-stage .stage .battle-score,.fg-stage .stage .battle-round-winner,.fg-stage .stage .battle-round-list,.fg-stage .stage .room-code,.fg-stage .stage .timer,.fg-stage .stage .battle-tickets strong{color:var(--on-night)}
.fg-stage .stage .eyebrow,.fg-stage .stage .hint,.fg-stage .stage .battle-meta,.fg-stage .stage .room-name,.fg-stage .stage .session-tree-line,.fg-stage .stage caption{color:var(--night-muted)}
.fg-stage .stage .eyebrow{text-align:center}
.fg-stage .stage a:not(.button){color:var(--exp)}
.fg-stage .stage .exp-gain{color:var(--exp)}
.fg-stage .stage .loc-gain,.fg-stage .stage .battle-exp,.fg-stage .stage .battle-loc strong,.fg-stage .stage .battle-hon strong{color:var(--loc)}
.fg-stage .stage .status-line{color:var(--night-muted)}.fg-stage .stage .status-line>.status-ico{color:var(--night-muted)}
.fg-stage .stage .status-line[data-kind="error"],.fg-stage .stage .status-line[data-kind="error"]>.status-ico{color:#FFB4AB}
.fg-stage .stage table th,.fg-stage .stage table td{color:var(--on-night);border-bottom-color:rgba(255,255,255,.16)}
.fg-stage .stage .battle-scores tr[data-winner="me"] td:nth-child(2),.fg-stage .stage .battle-scores tr[data-winner="opp"] td:nth-child(3){color:var(--exp)}
.fg-stage .stage .battle-ring-bg{stroke:rgba(255,255,255,.18)}.fg-stage .stage .battle-ring-fg{stroke:var(--exp)}
/* the hero: tree on the sky, a soft ground light under it (a pseudo element, never a box), the Growth Ring around it */
/* R1 (fg-ui-s2-r1-1126, review MAJOR-2): the hero box has a shape per tier (templates/layout.php fgHeroTier / fgHeroAr: --har = height / width, the same numbers) and the tree is drawn INSIDE it at the size its own
   painted pixels need (tree-card.js measures the drawing's box and sets --bx --by --bw --bh on the card): the drawn tree fills the box, the ring is the box's ellipse.
   Every figure is positioned and sized by calc() from those numbers, so nothing here moves the layout once the page is drawn. */
.stage-hero{--har:1;--slots:1;--fw:.92;--fh:.8;--base:.92;--ar:calc(var(--har) * var(--slots));position:relative;width:min(100%,340px);aspect-ratio:1;aspect-ratio:calc(1 / var(--har));margin:var(--s1) auto var(--s3)}
.stage-hero{overflow-x:hidden;overflow-x:clip} /* the fitted card is wider than a flat box: its transparent margins never widen the page */
.stage-hero.is-mid{--har:.66}.stage-hero.is-flat{--har:.40}
.stage-hero-pair{--slots:2;--fw:.9;--har:.72;margin-bottom:calc(var(--s3) + 3.4em)}.stage-hero-pair.is-mid{--har:.50}.stage-hero-pair.is-flat{--har:.40} /* R2 (review MINOR-1): the pair ring is never flatter than the single hero's 100:40 oval (was .26 = 3.9:1, read as a squashed circle) */
.stage-hero::before{content:"";position:absolute;left:8%;right:8%;bottom:10%;height:34%;border-radius:50%;background:radial-gradient(closest-side,rgba(155,234,122,.26),rgba(244,182,63,.08) 60%,transparent);pointer-events:none}
.stage-hero>.hero-tree,.stage .room-tree .hero-tree,.stage .hero-tree{position:relative;z-index:1;margin:0 auto;background:none;border-radius:0;overflow:visible;box-shadow:none}
.stage .stage-hero>.hero-tree,.stage .stage-hero .room-tree .hero-tree{position:absolute;inset:0;width:auto;max-width:none;margin:0;display:block}
.stage-hero [data-tree-stage]:not([hidden]){position:absolute;inset:0;display:block}
/* R2 (fg-ui-s2-r2-1127, re-review MAJOR-A): the card's LAYOUT box is a constant (80 % wide, standing on the ground line) and the fit that tree-card.js
   measures (--bx --by --bw --bh --k) is applied by translate + scale only, about the drawn tree's foot. Same picture as R1 (the drawn tree's foot centre lands on
   50 % / --base, its size is --k of the box), but no script can move a layout box any more: CLS 0 by construction. Default vars = the identity (no fit yet). */
.stage-hero .tree-card:not(.tree-card-plated){--k:.8;position:absolute;margin:0;width:80%;max-width:none;left:10%;top:calc((var(--base) - .72 / var(--ar)) * 100%);transform-origin:calc((var(--bx,.15) + var(--bw,.7) / 2) * 100%) calc((var(--by,.3) + var(--bh,.6)) * 100%);translate:calc((.5 - var(--bx,.15) - var(--bw,.7) / 2) * 100%) calc((.9 - var(--by,.3) - var(--bh,.6)) * 100%);scale:calc(var(--k) / .8)}
/* R2 (fg-ui-s2-r2-1127): the drawn box of every painted keyframe (fractions of the square picture, measured by tests/support/gen-boxes.py exactly like tree-card.js drawnBox()), so the FIRST paint of a hero card
   already has the fitted size: treeCardHtml() puts the keyframe key in data-box (no inline style under the CSP), --k is the same min() the script computes. tree-card.js still measures and refines (transform only). */
.tree-card[data-box="da-1"]{--bx:.1146;--by:.5729;--bw:.7396;--bh:.3333}
.tree-card[data-box="da-10"]{--bx:.1354;--by:.2812;--bw:.7292;--bh:.5938}
.tree-card[data-box="da-100"]{--bx:0;--by:.1042;--bw:.9896;--bh:.8021}
.tree-card[data-box="da-100R1"]{--bx:.0104;--by:.1042;--bw:.9792;--bh:.8021}
.tree-card[data-box="da-100R2"]{--bx:.0104;--by:.1042;--bw:.9792;--bh:.8021}
.tree-card[data-box="da-100R3"]{--bx:0;--by:.0938;--bw:1;--bh:.8125}
.tree-card[data-box="da-100R4"]{--bx:.0104;--by:.1042;--bw:.9792;--bh:.8021}
.tree-card[data-box="da-100R5"]{--bx:0;--by:.0938;--bw:1;--bh:.8125}
.tree-card[data-box="da-25"]{--bx:.0312;--by:.1979;--bw:.9375;--bh:.7083}
.tree-card[data-box="da-50"]{--bx:.0104;--by:.1771;--bw:.9792;--bh:.7292}
.tree-card[data-box="da-50R1"]{--bx:.0104;--by:.1771;--bw:.9792;--bh:.7292}
.tree-card[data-box="da-50R2"]{--bx:.0104;--by:.1771;--bw:.9792;--bh:.7292}
.tree-card[data-box="da-50R3"]{--bx:.0104;--by:.1667;--bw:.9792;--bh:.7396}
.tree-card[data-box="da-50R4"]{--bx:.0104;--by:.1458;--bw:.9792;--bh:.7604}
.tree-card[data-box="da-50R5"]{--bx:0;--by:.1458;--bw:1;--bh:.7604}
.tree-card[data-box="da-75"]{--bx:.0104;--by:.1042;--bw:.9792;--bh:.8021}
.tree-card[data-box="da-75R1"]{--bx:.0104;--by:.1042;--bw:.9792;--bh:.8021}
.tree-card[data-box="da-75R2"]{--bx:.0104;--by:.1042;--bw:.9792;--bh:.8021}
.tree-card[data-box="da-75R3"]{--bx:.0104;--by:.0938;--bw:.9792;--bh:.8125}
.tree-card[data-box="da-75R4"]{--bx:.0104;--by:.0833;--bw:.9792;--bh:.8229}
.tree-card[data-box="da-75R5"]{--bx:.0104;--by:.0729;--bw:.9792;--bh:.8333}
.tree-card[data-box="duoc-1"]{--bx:.1354;--by:.4167;--bw:.7083;--bh:.5104}
.tree-card[data-box="duoc-10"]{--bx:.1354;--by:.3646;--bw:.7083;--bh:.5625}
.tree-card[data-box="duoc-100"]{--bx:.0104;--by:.0312;--bw:.9792;--bh:.9062}
.tree-card[data-box="duoc-100R1"]{--bx:.0208;--by:.0312;--bw:.9688;--bh:.9062}
.tree-card[data-box="duoc-100R2"]{--bx:.0104;--by:.0312;--bw:.9792;--bh:.9062}
.tree-card[data-box="duoc-100R3"]{--bx:.0104;--by:.0208;--bw:.9792;--bh:.9167}
.tree-card[data-box="duoc-100R4"]{--bx:.0104;--by:.0312;--bw:.9792;--bh:.9062}
.tree-card[data-box="duoc-100R5"]{--bx:.0104;--by:.0208;--bw:.9792;--bh:.9167}
.tree-card[data-box="duoc-25"]{--bx:.1458;--by:.1771;--bw:.6979;--bh:.75}
.tree-card[data-box="duoc-50"]{--bx:.0938;--by:.1354;--bw:.7917;--bh:.7917}
.tree-card[data-box="duoc-50R1"]{--bx:.1042;--by:.1458;--bw:.7812;--bh:.7812}
.tree-card[data-box="duoc-50R2"]{--bx:.1042;--by:.1458;--bw:.7812;--bh:.7812}
.tree-card[data-box="duoc-50R3"]{--bx:.0938;--by:.1354;--bw:.8021;--bh:.7917}
.tree-card[data-box="duoc-50R4"]{--bx:.0938;--by:.1354;--bw:.7917;--bh:.7917}
.tree-card[data-box="duoc-50R5"]{--bx:.0938;--by:.125;--bw:.8021;--bh:.8021}
.tree-card[data-box="duoc-75"]{--bx:.0417;--by:.0208;--bw:.9167;--bh:.9062}
.tree-card[data-box="duoc-75R1"]{--bx:.0417;--by:.0208;--bw:.9167;--bh:.9062}
.tree-card[data-box="duoc-75R2"]{--bx:.0417;--by:.0312;--bw:.9167;--bh:.8958}
.tree-card[data-box="duoc-75R3"]{--bx:.0417;--by:.0208;--bw:.9167;--bh:.9062}
.tree-card[data-box="duoc-75R4"]{--bx:.0417;--by:.0208;--bw:.9167;--bh:.9062}
.tree-card[data-box="duoc-75R5"]{--bx:.0312;--by:.0104;--bw:.9271;--bh:.9167}
.tree-card[data-box="lim-1"]{--bx:.1354;--by:.625;--bw:.6979;--bh:.3021}
.tree-card[data-box="lim-10"]{--bx:.2396;--by:.2812;--bw:.5104;--bh:.6354}
.tree-card[data-box="lim-100"]{--bx:.0104;--by:.0104;--bw:.9792;--bh:.9271}
.tree-card[data-box="lim-100R1"]{--bx:.0104;--by:.0104;--bw:.9792;--bh:.9271}
.tree-card[data-box="lim-100R2"]{--bx:.0104;--by:.0104;--bw:.9792;--bh:.9271}
.tree-card[data-box="lim-100R3"]{--bx:.0104;--by:.0104;--bw:.9792;--bh:.9271}
.tree-card[data-box="lim-100R4"]{--bx:.0104;--by:.0104;--bw:.9792;--bh:.9271}
.tree-card[data-box="lim-100R5"]{--bx:.0104;--by:.0104;--bw:.9792;--bh:.9271}
.tree-card[data-box="lim-25"]{--bx:.1354;--by:.125;--bw:.7083;--bh:.8021}
.tree-card[data-box="lim-25R2"]{--bx:.1458;--by:.125;--bw:.6979;--bh:.8021}
.tree-card[data-box="lim-25R5"]{--bx:.125;--by:.1042;--bw:.7292;--bh:.8229}
.tree-card[data-box="lim-50"]{--bx:.0938;--by:.0729;--bw:.7917;--bh:.8542}
.tree-card[data-box="lim-50R1"]{--bx:.1042;--by:.0729;--bw:.7812;--bh:.8542}
.tree-card[data-box="lim-50R2"]{--bx:.1042;--by:.0729;--bw:.7812;--bh:.8542}
.tree-card[data-box="lim-50R3"]{--bx:.0938;--by:.0729;--bw:.7917;--bh:.8542}
.tree-card[data-box="lim-50R4"]{--bx:.0938;--by:.0729;--bw:.8021;--bh:.8542}
.tree-card[data-box="lim-50R5"]{--bx:.0938;--by:.0729;--bw:.8021;--bh:.8542}
.tree-card[data-box="lim-75"]{--bx:.0417;--by:.0312;--bw:.9167;--bh:.8958}
.tree-card[data-box="lim-75R1"]{--bx:.0417;--by:.0312;--bw:.9167;--bh:.8958}
.tree-card[data-box="lim-75R2"]{--bx:.0417;--by:.0312;--bw:.9167;--bh:.8958}
.tree-card[data-box="lim-75R5"]{--bx:.0312;--by:.0208;--bw:.9271;--bh:.9062}
.tree-card[data-box="phuong-1"]{--bx:.1354;--by:.7292;--bw:.6979;--bh:.1979}
.tree-card[data-box="phuong-10"]{--bx:.1667;--by:.2917;--bw:.6354;--bh:.6042}
.tree-card[data-box="phuong-100"]{--bx:0;--by:.0104;--bw:1;--bh:.9375}
.tree-card[data-box="phuong-100R1"]{--bx:0;--by:.0104;--bw:1;--bh:.9375}
.tree-card[data-box="phuong-100R2"]{--bx:0;--by:.0104;--bw:1;--bh:.9375}
.tree-card[data-box="phuong-100R3"]{--bx:.0104;--by:.0104;--bw:.9896;--bh:.9375}
.tree-card[data-box="phuong-100R4"]{--bx:.0104;--by:.0104;--bw:.9896;--bh:.9375}
.tree-card[data-box="phuong-100R5"]{--bx:.0104;--by:.0104;--bw:.9896;--bh:.9375}
.tree-card[data-box="phuong-25"]{--bx:.125;--by:.2292;--bw:.7396;--bh:.7083}
.tree-card[data-box="phuong-50"]{--bx:.0938;--by:.1771;--bw:.7917;--bh:.75}
.tree-card[data-box="phuong-50R1"]{--bx:.0833;--by:.1771;--bw:.8021;--bh:.75}
.tree-card[data-box="phuong-50R2"]{--bx:.0833;--by:.1667;--bw:.8021;--bh:.7604}
.tree-card[data-box="phuong-50R5"]{--bx:.0729;--by:.1042;--bw:.8333;--bh:.8229}
.tree-card[data-box="phuong-75"]{--bx:.0417;--by:.1042;--bw:.8958;--bh:.8229}
.tree-card[data-box="phuong-75R1"]{--bx:.0417;--by:.1042;--bw:.8958;--bh:.8229}
.tree-card[data-box="phuong-75R2"]{--bx:.0417;--by:.1042;--bw:.8958;--bh:.8229}
.tree-card[data-box="phuong-75R5"]{--bx:.0417;--by:.0729;--bw:.8958;--bh:.8542}
.tree-card[data-box="tre-1"]{--bx:.1354;--by:.6042;--bw:.6979;--bh:.3229}
.tree-card[data-box="tre-10"]{--bx:.2396;--by:.1667;--bw:.4896;--bh:.75}
.tree-card[data-box="tre-100"]{--bx:.0417;--by:.0208;--bw:.9167;--bh:.9062}
.tree-card[data-box="tre-100R1"]{--bx:.0417;--by:.0104;--bw:.9167;--bh:.9167}
.tree-card[data-box="tre-100R2"]{--bx:.0417;--by:.0208;--bw:.9167;--bh:.9062}
.tree-card[data-box="tre-100R3"]{--bx:.0417;--by:.0104;--bw:.9167;--bh:.9167}
.tree-card[data-box="tre-100R4"]{--bx:.0521;--by:.0208;--bw:.8958;--bh:.9062}
.tree-card[data-box="tre-100R5"]{--bx:.0417;--by:.0104;--bw:.9167;--bh:.9167}
.tree-card[data-box="tre-25"]{--bx:.1354;--by:.1562;--bw:.7083;--bh:.7708}
.tree-card[data-box="tre-25R2"]{--bx:.1354;--by:.1354;--bw:.7188;--bh:.7917}
.tree-card[data-box="tre-25R5"]{--bx:.1354;--by:.125;--bw:.7083;--bh:.8021}
.tree-card[data-box="tre-50"]{--bx:.0833;--by:.0625;--bw:.8333;--bh:.8646}
.tree-card[data-box="tre-50R2"]{--bx:.0833;--by:.0625;--bw:.8333;--bh:.8646}
.tree-card[data-box="tre-50R5"]{--bx:.0729;--by:.0521;--bw:.8438;--bh:.875}
.tree-card[data-box="tre-75"]{--bx:.0312;--by:.0104;--bw:.9479;--bh:.9479}
.tree-card[data-box="tre-75R2"]{--bx:.0312;--by:.0104;--bw:.9583;--bh:.9479}
.tree-card[data-box="tre-75R5"]{--bx:.0417;--by:.0104;--bw:.9375;--bh:.9479}
.stage-hero .tree-card[data-box]:not(.tree-card-plated){--k:min(calc(var(--fw) / var(--bw)), calc(var(--fh) * var(--ar) / var(--bh)))}
@supports not (scale:1){.stage-hero .tree-card:not(.tree-card-plated){width:calc(var(--k) * 100%);left:calc((50 - (var(--bx,.15) + var(--bw,.7) / 2) * var(--k) * 100) * 1%);top:calc((var(--base) - (var(--by,.3) + var(--bh,.6)) * var(--k) / var(--ar)) * 100%)}} /* R2: a WebView without the individual scale / translate properties keeps the R1 placement (layout based) */
.stage-hero .tree-card-plated{position:absolute;margin:0;left:6%;width:88%;bottom:4%}
.stage-hero .tree-card>img,.stage-hero .tree-card>canvas,.stage-hero .tree-card>svg{display:block;width:100%!important;height:auto!important;max-width:none!important}
.stage-hero .tree-card>.fgfx{width:100%!important;height:auto!important;aspect-ratio:1}
.stage-hero [data-tree-stage]>svg{position:absolute;left:50%;bottom:8%;translate:-50% 0;width:calc(min(1, var(--ar)) * 70%);height:auto;max-height:84%} /* the drawn fallback tree (no painted card) */
.stage .tree-card,.stage .hero-tree .tree-card{background:transparent;border-radius:0;overflow:visible}
.growth-ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2} /* above the tree: the arc is never hidden behind the island */
.growth-ring path{fill:none;stroke-width:.95;stroke-linejoin:round} /* R1 (review MAJOR-1): viewBox units, no non-scaling stroke: pathLength + dashoffset then paint exactly the share (a path starting at 12 o'clock, clockwise) */
.growth-ring-track{stroke:rgba(243,246,238,.16)}
.growth-ring-arc{stroke:var(--exp);stroke-linecap:round;filter:drop-shadow(0 0 3px rgba(123,224,160,.6))}
.fg-motion .growth-ring-arc{transition:stroke-dashoffset 1s linear}
[dir="rtl"] .growth-ring{transform:scaleX(-1)}
.fg-motion .growth-ring.is-full .growth-ring-arc{animation:fg-ring-close 1.2s ease-out} /* a finished tree: the ring closes once (static under reduced motion) */
@keyframes fg-ring-close{from{stroke-dashoffset:100}}
.stage-hero-pair .room-trees{position:absolute;inset:0;z-index:1;width:auto;margin:0;gap:0;align-items:stretch}
.stage-hero-pair .room-tree{position:relative}
.stage-hero-pair .room-name{position:absolute;left:0;right:0;top:100%;margin:6px 0 0;text-align:center}
.fg-stage .stage .stage-hero-pair .room-name{color:var(--on-night)}
.room-name span{unicode-bidi:isolate} /* a Latin player name inside "(...)" no longer splits the brackets in ar/ur/fa */
/* Home: the EXP ring stands behind the big tree, centred on its crown; the island stays in front of it */
.g2-hero>.growth-ring{inset:auto;left:50%;top:2%;width:auto;height:92%;aspect-ratio:1;translate:-50% 0}
/* Battle: one shared stage, no navy panel, no tile boxes; the two trees face each other (the opponent drawn mirrored) */
.fg-stage .stage .battle-pair{margin:var(--s2) 0 var(--s3);padding:var(--s2) 0;background:none;border-radius:0;color:var(--on-night);grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.fg-stage .stage .battle-tree{width:min(128px,100%);height:auto;aspect-ratio:1;border-radius:0;outline:0;box-shadow:none}
.fg-stage .stage .battle-tree .tree-card{width:100%;height:auto;background:transparent}
.fg-stage .stage .battle-tree .tree-card>img,.fg-stage .stage .battle-tree .tree-card>canvas,.fg-stage .stage .battle-tree .tree-card>svg,.fg-stage .stage .battle-tree .tree-card>.fgfx{width:100%!important;height:auto!important;object-fit:contain}
.fg-stage .stage .battle-side[data-won="1"] .battle-tree{outline:0;box-shadow:none}
.fg-stage .stage .battle-side[data-won="1"] .tree-card{filter:drop-shadow(0 0 10px rgba(244,182,63,.7))}
.fg-stage .stage .battle-side[data-won="1"] .battle-name{color:var(--loc)}
.fg-stage .is-staging:not(.is-lit) .battle-side[data-won="1"] .tree-card{filter:none}
.fg-stage .stage .battle-side[data-side="opp"] .tree-card,.fg-stage .stage .battle-pair>.battle-side:last-child .tree-card,.battle-arena-tree[data-arena="opp"] .tree-card{transform:scaleX(-1)}
.battle-arena{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:var(--s2);margin:var(--s1) 0 var(--s3)}
.battle-arena-tree{width:min(140px,100%);margin:0 auto}
.battle-arena .tree-card{width:100%;margin:0;background:transparent}
.battle-arena .tree-card>img,.battle-arena .tree-card>canvas,.battle-arena .tree-card>svg{width:100%!important;height:auto!important}
.battle-arena .battle-vs{align-self:end;margin-bottom:30px} /* R1 MINOR-3: just above the island line, where the seedlings stand */
.fg-stage .stage .battle-round-name{text-align:center}
.fg-stage .battle-lobby>h1,.fg-stage #battle-opp h1,.fg-stage #battle-opp .battle-prob,.fg-stage #battle-opp .battle-count{text-align:center} /* R1 MINOR-1: the eyebrow is centred, so the title block under it is too */
/* the stage sky warms towards dawn as the session ring fills (app.js sets --ring-p, only with motion on; under reduced motion the sky stays still) */
:where(html.fg-stage) .stage-dawn{position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(130% 55% at 50% 100%,rgba(244,182,63,.26),rgba(214,120,90,.10) 45%,transparent 75%);opacity:0}
.fg-motion:where(.fg-stage) .stage-dawn{opacity:calc(var(--ring-p,0) * .8);transition:opacity 1s linear}
/* D1/D2 (vivo 360 px, 26/11): the new player's seed reveal is drawn once, on the page, as light text in a dark glass frame (was dark green on navy) */
.fg-stage .seed-reveal{max-width:480px;margin:0 auto var(--s3);padding:var(--s3) var(--s4);border-radius:16px;background:rgba(11,17,40,.78);border:1px solid rgba(255,214,107,.42);text-align:center}
.fg-stage .seed-reveal p{margin:0 auto;color:var(--on-night)}
.fg-stage .seed-reveal p+p{margin-top:var(--s2)}
.fg-stage .seed-reveal .hint{font-size:var(--fs-small);color:var(--night-muted)}
.fg-stage .seed-reveal p:not(.hint){font-weight:700;color:var(--loc)}
/* D3 (vivo 360 px at its 1.1 font scale): the tab labels ran into each other ("Tap trungRung cua toi"); narrow screens put the spare width between the tabs and keep at least 6 px; a label that then has no room wraps at a space */
@media(max-width:400px){:where(html.fg-stage) .tabbar{justify-content:space-between;column-gap:6px;padding-inline:3px}.tabbar>a,.tabbar-more{flex:0 1 auto}}
/* the day/night tint of tree/fx.css is a box over the card (dark navy at night: the owner's "box inside the card"); on a stage the sky itself carries the hour (body[data-sky]) */
.stage .tree-card-fx::before{content:none}
.fg-stage .session-card.stage #give-up,.fg-stage .room-card.stage #room-start{display:block;margin:var(--s3) auto}
/* round replay: the stage takes the free height of the screen, the two trees stand at its foot above the score bars */
.fg-stage #battle-rounds:not([hidden]){display:flex;flex-direction:column;min-height:calc(100vh - var(--hud-h) - var(--tabbar-h) - 96px);min-height:calc(100svh - var(--hud-h) - var(--tabbar-h) - 96px - env(safe-area-inset-bottom))}
.fg-stage #battle-rounds .battle-arena{flex:none;height:150px;margin-bottom:var(--s3)} /* R1 (review MAJOR-3): a FIXED height - each finished round adds a row below, it no longer shrinks the arena, so the trees never move */
.fg-stage #battle-rounds .battle-round-list{flex:1 0 auto;min-height:calc(3 * 2.75rem)}
.fg-stage #battle-rounds .battle-arena-tree{width:min(168px,100%)} /* never wider than its grid column, so a tree never runs under the VS word */
.fg-stage #battle-rounds #battle-skip{align-self:center}
/* ===== FocusGrove type roles + CSS 3D chrome (pi-type3d-fg-1127; owner 27/11: "font chu dang rat xau ... nang do hoa len 3d"; spec work/in/FONTS.md + 3D.md way B, look of ref/proto-B.html). Looks only: no rule, score, ticket or data changes. ===== */
:root{--b-g1:#2FA06B;--b-g2:#1F7F50;--b-g3:#14583A;--b-gedge:#0E4A2C;--b-y1:#FFE08A;--b-y2:#F4B63F;--b-y3:#E39A17;--b-yedge:#A86A08;--b-sec1:#FFFFFF;--b-sec2:#E3EDE0;--b-sedge:#6F8A74}
body{font-weight:500}
/* numerals: Baloo 2 800 with tabular figures (the file carries GSUB tnum, checked in out/fontcheck.txt), one face inside every number string */
.hud-chip,.hud-lv,.timer,.guest-timer,.stat,.room-code,.loc-chip,#shop-balance,.rk-place,.g2-start-time,.g2-tok-face b,.battle-exp,.ticket-chip b,.focus-card table{font-family:var(--f-num);font-weight:800;font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
.timer,.guest-timer{letter-spacing:-.02em}
.hud-chip,.hud-lv{font-size:var(--fs-hud);line-height:1}
.focus-card table{font-weight:500}
.tabbar a,.tabbar summary{font-size:var(--fs-label);font-weight:700;letter-spacing:.02em}
.g2-form .g2-start::after,.g2-home .g2-resume::after{display:none} /* the gloss is now part of the button background */
.g2-form .g2-start,.g2-home .g2-resume{overflow:visible}
/* wordmark: live text, Baloo 2 800, gold gradient, 3-step extrusion + soft shadow (the same text in every language: it is a name) */
.wordmark,.brand{font-family:"Baloo 2","Baloo 2 Fallback","Nunito",sans-serif;font-weight:800;background:linear-gradient(180deg,#FFF6D6 0,#FFD66B 36%,#F4B63F 60%,#B97A10 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.wordmark{margin:var(--s2) 0 0;font-size:var(--fs-wordmark);line-height:1.1;letter-spacing:-.01em;text-align:center;filter:drop-shadow(0 1px 0 #8A5A0C) drop-shadow(0 2px 0 #6B4306) drop-shadow(0 3px 0 #4D3003) drop-shadow(0 8px 10px rgba(0,0,0,.55))}
.brand{filter:drop-shadow(0 1px 0 #6B4306) drop-shadow(0 3px 4px rgba(0,0,0,.4))}
.signin-page .brand{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.signin-page .masthead{justify-content:space-between}
text.g2-crest-ribbon{font-family:var(--f-head);font-weight:800}
:lang(ar) :is(button,.button,.tabbar a,.tabbar summary),:lang(fa) :is(button,.button,.tabbar a,.tabbar summary),:lang(ur) :is(button,.button,.tabbar a,.tabbar summary),:lang(ta) :is(button,.button,.tabbar a,.tabbar summary),:lang(te) :is(button,.button,.tabbar a,.tabbar summary),:lang(kn) :is(button,.button,.tabbar a,.tabbar summary),:lang(ml) :is(button,.button,.tabbar a,.tabbar summary),:lang(bn) :is(button,.button,.tabbar a,.tabbar summary),:lang(gu) :is(button,.button,.tabbar a,.tabbar summary),:lang(pa) :is(button,.button,.tabbar a,.tabbar summary),:lang(hi) :is(button,.button,.tabbar a,.tabbar summary),:lang(mr) :is(button,.button,.tabbar a,.tabbar summary),:lang(ne) :is(button,.button,.tabbar a,.tabbar summary),:lang(th) :is(button,.button,.tabbar a,.tabbar summary),:lang(my) :is(button,.button,.tabbar a,.tabbar summary),:lang(am) :is(button,.button,.tabbar a,.tabbar summary),:lang(ja) :is(button,.button,.tabbar a,.tabbar summary),:lang(ko) :is(button,.button,.tabbar a,.tabbar summary),:lang(zh-Hans) :is(button,.button,.tabbar a,.tabbar summary),:lang(zh-Hant) :is(button,.button,.tabbar a,.tabbar summary){letter-spacing:0} /* tracking breaks joined and stacked scripts */
/* level badge: a gem chip, live Baloo 2 numeral */
:where(html.fg-stage) .hud-lv{width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,rgba(255,255,255,.55) 0,rgba(255,255,255,0) 42%),radial-gradient(circle at 35% 28%,#8FEDBB,#34B777 45%,#1E7A4C 75%,#135234);box-shadow:inset 0 2px 0 rgba(255,255,255,.55),inset 0 -3px 0 rgba(0,0,0,.28),0 2px 0 #0E4A2C,0 4px 7px rgba(0,0,0,.4);text-shadow:0 1px 0 rgba(0,0,0,.4);color:#fff}
/* battle lobby: tickets as a numeral chip, rules in a collapsed details */
.battle-tickets{display:flex;align-items:center;justify-content:center;gap:var(--s2);flex-wrap:wrap;margin:0 0 var(--s3)}
.ticket-chip{flex:none;display:inline-flex;align-items:center;gap:6px;height:32px;padding-inline:6px 12px;border-radius:var(--r-pill);background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.18);color:#fff;font-size:var(--fs-hud)}
.ticket-chip .hud-ticket{width:20px;height:20px;border-radius:5px;background:radial-gradient(circle at 35% 30%,#D6F5FF,#5FB7E6 60%,#2A6C99);transform:rotate(-12deg) scale(.9)}
.battle-tickets strong{flex:1 1 12rem;min-width:0;font-family:var(--f-body);font-size:var(--fs-small);font-weight:700;text-align:start}
.battle-how{margin:var(--s3) 0;border-radius:var(--r-md);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14)}
.battle-how>summary{display:flex;align-items:center;min-height:48px;padding:0 var(--s4);font-family:var(--f-head);font-weight:var(--w-head);font-size:var(--fs-body);cursor:pointer;list-style:none}
.battle-how>summary::-webkit-details-marker{display:none}
.battle-how>summary::after{content:"";margin-inline-start:auto;width:10px;height:10px;border-inline-end:3px solid currentColor;border-block-end:3px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.battle-how[open]>summary::after{transform:rotate(-135deg)}
.battle-how .hint{margin:0;padding:0 var(--s4) var(--s3)}
/* D18 guest try: the run screen shows the setup step's island tree and it grows while the timer runs (guest.js sets --g2-grow) */
.g2-try .guest-try-run{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s2);flex:1 1 auto;width:100%;text-align:center}
.g2-try .guest-try-run .g2-hero{flex:none;width:calc(100% + 32px);height:min(calc((100vw - 32px) / var(--hero-wide,1) * var(--hero-span,.6)),min(46vh,420px));min-height:180px;max-height:none;margin:0 -16px}
.g2-try .guest-try-run .g2-try-tree{transition:transform 1s linear}
@media(prefers-reduced-motion:reduce){html:not([data-motion="full"]) .g2-try .guest-try-run .g2-try-tree{transition:none}}
html[data-motion="reduce"] .g2-try .guest-try-run .g2-try-tree{transition:none}
/* ===== G2 focus home (fg-game-g2-1126, approved "Sân khấu Rừng Đêm" 26/11; target mockups/home-390-after.png): the tree large on the stage, game bar, 5 minute tokens, intent chip, gold start in the thumb zone. Looks only; every rule scoped to .g2-home (home), .g2-try (guest try) or their .g2-* parts. ===== */
.fg-stage .g2-home,.fg-stage .g2-try{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:480px;margin:0 auto;padding:0;background:none;box-shadow:none;border-radius:0;color:var(--on-night);text-align:center}
.g2-home .g2-form,.g2-try .g2-form{display:flex;flex-direction:column;gap:12px;width:100%;margin:auto 0 0}
.g2-home .g2-form button,.g2-try .g2-form button{margin:0}
/* hero: full-bleed scene; the art is as large as the screen allows with the whole island inside a 16 px margin (--hero-wide) and the tree top inside the hero (--hero-span); the hero sits centred in the free space above the controls */
.g2-hero{position:relative;flex:1 1 0;width:calc(100% + 32px);height:auto;max-height:calc((100vw - 32px) / var(--hero-wide,1) * var(--hero-span,.6));min-height:120px;margin-top:auto!important;margin:0 -16px;padding:0;overflow:hidden;border-radius:0;background:none;box-shadow:none}
.g2-hero::before{content:"";position:absolute;left:6%;right:6%;bottom:1%;height:48%;border-radius:50%;background:radial-gradient(closest-side,rgba(155,234,122,.34),rgba(244,182,63,.10) 55%,transparent);pointer-events:none}
.g2-hero .tree-card,.g2-hero .g2-try-tree{position:absolute;left:50%;bottom:0;z-index:1;width:auto;height:100%;height:min(100% / var(--hero-span,.6),(100vw - 32px) / var(--hero-wide,1));max-width:none;aspect-ratio:1;margin:0;border-radius:0;overflow:visible;background:transparent;translate:-50% 0;transform:scale(var(--g2-grow,1));transform-origin:50% 92%;filter:drop-shadow(0 14px 18px rgba(0,0,0,.45))}
.g2-hero .g2-try-tree{display:block;object-fit:contain}
.g2-hero .tree-card>img,.g2-hero .tree-card>canvas,.g2-hero .tree-card>svg,.g2-hero .tree-card>.fgfx{width:100%!important;height:auto!important;max-width:none!important;aspect-ratio:1}
.g2-home .g2-hero .tree-card{transition:transform var(--t-in) ease-out}
@media(prefers-reduced-motion:reduce){html:not([data-motion="full"]) .g2-home .g2-hero .tree-card{transition:none}}
html[data-motion="reduce"] .g2-home .g2-hero .tree-card{transition:none}
/* hero size classes (the page sets no inline style: CSP style-src 'self'); templates/home.php rounds both values up to the next 5 % */
.g2-span-5{--hero-span:.05}.g2-span-10{--hero-span:.10}.g2-span-15{--hero-span:.15}.g2-span-20{--hero-span:.20}.g2-span-25{--hero-span:.25}.g2-span-30{--hero-span:.30}.g2-span-35{--hero-span:.35}.g2-span-40{--hero-span:.40}.g2-span-45{--hero-span:.45}.g2-span-50{--hero-span:.50}.g2-span-55{--hero-span:.55}.g2-span-60{--hero-span:.60}.g2-span-65{--hero-span:.65}.g2-span-70{--hero-span:.70}.g2-span-75{--hero-span:.75}.g2-span-80{--hero-span:.80}.g2-span-85{--hero-span:.85}.g2-span-90{--hero-span:.90}.g2-span-95{--hero-span:.95}.g2-span-100{--hero-span:1}
.g2-wide-5{--hero-wide:.05}.g2-wide-10{--hero-wide:.10}.g2-wide-15{--hero-wide:.15}.g2-wide-20{--hero-wide:.20}.g2-wide-25{--hero-wide:.25}.g2-wide-30{--hero-wide:.30}.g2-wide-35{--hero-wide:.35}.g2-wide-40{--hero-wide:.40}.g2-wide-45{--hero-wide:.45}.g2-wide-50{--hero-wide:.50}.g2-wide-55{--hero-wide:.55}.g2-wide-60{--hero-wide:.60}.g2-wide-65{--hero-wide:.65}.g2-wide-70{--hero-wide:.70}.g2-wide-75{--hero-wide:.75}.g2-wide-80{--hero-wide:.80}.g2-wide-85{--hero-wide:.85}.g2-wide-90{--hero-wide:.90}.g2-wide-95{--hero-wide:.95}.g2-wide-100{--hero-wide:1}
/* one game bar: name + level, EXP bar, next-level caption, in a dark glass frame with a thin gold edge */
.g2-xp{display:flex;flex-direction:column;align-items:center;gap:6px;width:min(100%,320px);margin-top:-4px;padding:8px 14px 9px;border-radius:16px;background:rgba(11,17,40,.78);border:1px solid rgba(255,214,107,.42);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -6px 12px rgba(0,0,0,.25),0 6px 16px rgba(0,0,0,.35)}
.g2-xp .rank-line{display:flex;align-items:baseline;justify-content:center;gap:6px;max-width:100%;margin:0;font-size:var(--fs-small);line-height:1.3;color:var(--night-muted);white-space:nowrap}
.g2-xp .rank-line .g2-kind{font-weight:700;color:var(--on-night)}
.g2-xp .rank-line strong{display:inline-block;margin:0;padding:2px 8px;border-radius:var(--r-pill);background:linear-gradient(180deg,#FFD978,var(--sun));box-shadow:inset 0 -2px 0 var(--btn-edge-sun);font-weight:700;line-height:1.2;color:var(--on-sun)}
.g2-xp .g2-bar{display:block;width:100%;height:10px;margin:0;border:0;border-radius:10px;background:#0B1128;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);overflow:hidden;-webkit-appearance:none;appearance:none}
.g2-xp .g2-bar::-webkit-progress-bar{background:#0B1128;border-radius:10px}
.g2-xp .g2-bar::-webkit-progress-value{background:linear-gradient(90deg,#3FB574,var(--exp));border-radius:10px;box-shadow:inset 0 2px 0 rgba(255,255,255,.35)}
.g2-xp .g2-bar::-moz-progress-bar{background:linear-gradient(90deg,#3FB574,var(--exp));border-radius:10px}
.g2-xp .xp-label:not(.sr-only),.g2-xp .g2-exp{display:block;max-width:100%;margin:0;font-size:var(--fs-caption);font-weight:700;line-height:1.3;color:var(--night-muted);white-space:nowrap}
.g2-bar-row{display:flex;align-items:center;gap:6px;width:100%}
/* review R1 MINOR-4: EXP inside this level / EXP the level needs, under the bar on the side of the next-level badge (language-neutral digits + EXP, so it fits one line in all 39 languages) */
.g2-xp .g2-exp-need{text-align:end}.g2-xp .g2-need{flex:none;font-family:var(--f-num);font-variant-numeric:tabular-nums;color:var(--exp)}
.g2-lv{flex:none;display:grid;place-items:center;min-width:24px;height:24px;padding:0 4px;border-radius:8px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--panel-edge);font-family:var(--f-num);font-size:var(--fs-caption);font-weight:700;line-height:1;color:var(--on-night)}
.g2-lv-next{background:rgba(0,0,0,.35);color:var(--loc);box-shadow:inset 0 0 0 1px rgba(255,214,107,.5)}
.g2-xp .g2-bar-row .g2-bar{flex:1 1 auto;min-width:0}
.g2-home .g2-first{margin:0;font-size:var(--fs-small);color:var(--night-muted)}
/* five chunky minute tokens: native radios (radio group, arrow keys) under the game look; checked = raised green with a gold ring, pressed = pushed in */
.g2-tokens{min-width:0;width:100%;margin:0;padding:0;border:0}
.g2-token-row{display:flex;flex-wrap:nowrap;justify-content:center;gap:8px}
.g2-form .g2-token{position:relative;display:block;flex:1 1 0;min-width:44px;max-width:64px;height:58px;margin:0;padding:0;border:0;border-radius:15px;font-size:var(--fs-body);font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent}
.g2-form .g2-token input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.g2-tok-face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;height:100%;padding:0 2px;border-radius:15px;background:linear-gradient(180deg,#2A3A6B,var(--panel));box-shadow:0 4px 0 #0B1128,inset 0 0 0 2px var(--panel-edge),inset 0 2px 0 rgba(255,255,255,.10);color:var(--on-night);line-height:1;transition:transform var(--t-press) ease-out}
.g2-tok-face b{font-family:var(--f-num);font-size:var(--fs-lead);font-weight:700}
.g2-tok-face small{max-width:100%;overflow:hidden;font-size:var(--fs-caption);font-weight:700;color:var(--night-muted);white-space:nowrap}
.g2-token input:checked+.g2-tok-face{background:linear-gradient(180deg,#3FB574,var(--primary));box-shadow:0 4px 0 var(--btn-edge-green),inset 0 0 0 2px var(--loc),inset 0 2px 0 rgba(255,255,255,.3);transform:translateY(-3px)}
.g2-token input:checked+.g2-tok-face small{color:#F3FFF3}
.g2-token input:active+.g2-tok-face{transform:translateY(2px);box-shadow:0 1px 0 #0B1128,inset 0 0 0 2px var(--panel-edge)}
.g2-token input:focus-visible+.g2-tok-face{outline:3px solid var(--sun);outline-offset:2px}
@media(prefers-reduced-motion:reduce){html:not([data-motion="full"]) .g2-tok-face{transition:none}}
html[data-motion="reduce"] .g2-tok-face{transition:none}
/* intent chip + friends button in dark glass frames */
.g2-intent-row{display:flex;align-items:flex-end;gap:10px;width:100%}
.g2-intent-chip,.g2-room{display:flex;align-items:center;min-height:48px;border-radius:14px;background:rgba(11,17,40,.62);border:1px solid rgba(255,255,255,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);color:var(--on-night)}
.g2-form .g2-intent-chip{flex:1 1 auto;min-width:0;min-height:48px;justify-content:flex-start;gap:10px;width:auto;padding:0 14px;border-radius:14px;background:rgba(11,17,40,.62);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);color:var(--on-night);font-size:var(--fs-body);font-weight:700;text-align:start}
.g2-form .g2-intent-chip[hidden]{display:none}
.g2-intent-chip .icon,.g2-room .icon{flex:none;width:22px;height:22px}
.g2-intent-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--night-muted)}
.g2-intent-set .g2-intent-text{color:var(--on-night)}
.g2-room{flex:none;justify-content:center;width:52px;height:48px;text-decoration:none}
.g2-intent-box{flex:1 1 auto;min-width:0;text-align:start}
.g2-intent-box[hidden]{display:none}
.g2-intent-box label{margin:0 0 4px;font-size:var(--fs-caption);color:var(--night-muted)}
.g2-intent-box input{width:100%;min-height:48px;border-radius:14px;background:rgba(11,17,40,.8);border:1px solid var(--loc);color:var(--on-night)}
.g2-intent-box input::placeholder{color:var(--night-muted);opacity:1}
.g2-room:focus-visible,.g2-form .g2-intent-chip:focus-visible,.g2-intent-box input:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
/* the gold start (or the gold "return to your tree" while a session runs): the one main action, in the thumb zone, a static top shine (no loop) */
.g2-form .g2-start,.g2-home .g2-resume{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:62px;padding:8px 16px;border-radius:18px;font-size:var(--fs-title);font-weight:700;overflow:hidden;text-decoration:none}
.g2-form .g2-start::after,.g2-home .g2-resume::after{content:"";position:absolute;left:10%;right:10%;top:3px;height:42%;border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,0));pointer-events:none}
.g2-start .g2-play,.g2-start-alt .g2-play{flex:none;width:24px;height:24px}
/* review R1 MAJOR-1: the start height never depends on the font (fallback font before the script font loads wrapped '25:00' = 66 -> 56 px and the hero took the difference = CLS 0.23 in ml/te): fixed height, the time never wraps, only the label may take 2 lines inside */
.g2-form .g2-start{height:62px;min-height:0;flex-wrap:nowrap;padding-block:4px}
.g2-start-label{min-width:0;max-width:100%;overflow-wrap:normal;text-wrap:balance;line-height:1.1}
@media(max-width:400px){.g2-form .g2-start{font-size:var(--fs-lead);gap:8px;padding-inline:12px}.g2-start-time{font-size:var(--fs-small)}}
@media(max-width:340px){.g2-form .g2-start .g2-play{display:none}} /* 320 px: the label keeps the width (ml 'home.start' needs 200 px) */
.g2-start-time{flex:none;font-family:var(--f-num);font-size:var(--fs-body);font-weight:700;font-variant-numeric:tabular-nums;opacity:.85}
.g2-form .g2-start-alt{width:100%;min-height:48px;border:1px solid rgba(255,255,255,.3);background:rgba(11,17,40,.62);color:var(--on-night);font-size:var(--fs-body);box-shadow:0 4px 0 #0B1128,inset 0 1px 0 rgba(255,255,255,.08)}
.g2-form .g2-start-alt:active:not(:disabled){box-shadow:0 1px 0 #0B1128}
.g2-form .g2-start-alt .g2-play{width:18px;height:18px}
.g2-home #start-error:empty{display:none}
/* phones: the screen is the scene; the controls sit at the bottom just above the tab bar (home) or near the screen edge (try) */
@media(max-width:767px){
.fg-stage .g2-home{min-height:calc(100vh - var(--hud-h) - var(--s2) - var(--tabbar-h) - var(--s4));min-height:calc(100svh - var(--hud-h) - var(--s2) - var(--tabbar-h) - var(--s4) - env(safe-area-inset-bottom));margin-bottom:calc(-1 * var(--s7))}
.fg-stage .g2-try{min-height:calc(100vh - var(--hud-h) - var(--s5));min-height:calc(100svh - var(--hud-h) - var(--s5))}
}
/* review R1 MINOR-2: 320 px (was 380) keeps the gold start above the fold at 1280x900 */
@media(min-width:768px){.g2-hero{flex:none;height:320px;width:100%;margin:0}.g2-hero .tree-card,.g2-hero .g2-try-tree{height:min(100% / var(--hero-span,.6),448px / var(--hero-wide,1))}}
/* short phones (<= 700 px tall, e.g. 360x640): a little tighter so the tree stays the largest object even with the first-session hint and a running session */
@media(max-width:767px) and (max-height:700px){.fg-stage .g2-home{gap:8px}.g2-home .g2-form{gap:9px}.g2-form .g2-token{height:52px}.g2-form .g2-start{height:56px}.g2-home .g2-resume{min-height:56px}.g2-form .g2-intent-chip,.g2-intent-box input{min-height:46px}.g2-room{height:46px}.g2-xp{width:min(100%,300px);gap:4px;padding:6px 12px 7px}.g2-form .g2-start-alt{min-height:46px}}
/* FocusGrove crest (owner 26/11 14:00 + 14:04): a named button with an inline SVG in the free sky above the hero (tap = one bounce + chime, app.js); sits centred in that space, shrinks first and gets a smaller box on short screens.
   Motion (transform + opacity only, compositor-friendly, no layout shift): a gold sheen sweeps across once every 10 s, the glow breathes, three twinkles; only under html.fg-motion (Settings motion + OS reduced motion), static otherwise. */
.g2-crest{flex:0 10 auto;display:flex;align-items:center;justify-content:center;width:auto;min-width:44px;height:112px;min-height:44px;margin-block:auto!important;margin-inline:auto;padding:0 4px;border:0;border-radius:20px;background:none;box-shadow:none;color:inherit;cursor:pointer;overflow:visible;-webkit-tap-highlight-color:transparent}
html .g2-crest.g2-crest:active,html .g2-crest.g2-crest:hover{background:none;box-shadow:none;transform:none;filter:none}
.g2-crest:focus-visible{outline:3px solid var(--sun);outline-offset:4px}
.g2-crest.g2-crest-bounce .g2-crest-svg{animation:g2-bounce .52s cubic-bezier(.3,1.6,.5,1) 1}
@keyframes g2-bounce{0%{transform:translateY(0) scale(1)}35%{transform:translateY(-14px) scale(1.06)}70%{transform:translateY(2px) scale(.98)}100%{transform:translateY(0) scale(1)}}
.g2-crest-svg{display:block;width:auto;height:100%;max-height:112px;overflow:hidden} /* no CSS drop-shadow: the glow is drawn inside the SVG box, so nothing paints outside the element (every-page canvas check) */
.g2-crest-glow{transform-box:fill-box;transform-origin:50% 50%;opacity:.85}
.g2-crest-sheen{transform:translateX(-20px)}
.g2-twinkle{transform-box:fill-box;transform-origin:50% 50%;opacity:.7}
.fg-motion .g2-crest-sheen{animation:g2-sheen 10s ease-in-out infinite}
.fg-motion .g2-crest-glow{animation:g2-breathe 4.5s ease-in-out infinite alternate}
.fg-motion .g2-twinkle{animation:g2-twinkle 3.2s ease-in-out infinite}
.fg-motion .g2-twinkle:nth-of-type(2){animation-delay:-1.1s;animation-duration:3.9s}.fg-motion .g2-twinkle:nth-of-type(3){animation-delay:-2.3s;animation-duration:2.8s}
@keyframes g2-sheen{0%,72%{transform:translateX(-20px)}86%,100%{transform:translateX(190px)}}
@keyframes g2-breathe{0%{opacity:.55;transform:scale(.94)}100%{opacity:1;transform:scale(1.04)}}
@keyframes g2-twinkle{0%,100%{opacity:.25;transform:scale(.6)}50%{opacity:1;transform:scale(1)}}
html[data-motion="reduce"] .g2-crest *,html:not(.fg-motion) .g2-crest *{animation:none!important}
@media(prefers-reduced-motion:reduce){html:not([data-motion="full"]) .g2-crest *{animation:none!important}}
/* review R1: a running session adds the resume + second start buttons; on short screens the shown crest costs 44 px, so that state is packed tighter and the hero keeps at least 132 px (tree stays the largest object, both buttons stay above the tab bar) */
@media(max-width:767px) and (max-height:700px){.fg-stage .g2-home:has(.g2-resume){gap:4px}.g2-home:has(.g2-resume) .g2-hero{min-height:132px}.g2-home:has(.g2-resume) .g2-form{gap:6px}.g2-home:has(.g2-resume) .g2-xp{gap:2px;padding-block:4px 5px}.g2-home:has(.g2-resume) .g2-form .g2-start-alt{min-height:40px}}
/* review R1 MINOR-1: short screens shrink the crest instead of hiding it (the hero, flex 1 1 0, gives up the room) */
@media(max-width:767px) and (max-height:700px){.g2-home .g2-hero,.g2-try .g2-hero{flex-grow:5}.g2-crest{flex:1 1 0;height:auto;max-height:64px;min-height:44px}.g2-crest-svg{max-height:64px}}
/* guest try on the stage: trial note as a pill, sapling hero, the same tokens + gold start; run and done views keep readable colours */
.g2-try .guest-try-note{margin:0;padding:6px 12px;border-radius:var(--r-pill);background:rgba(11,17,40,.72);border:1px solid rgba(255,214,107,.42);font-size:var(--fs-caption);font-weight:700;color:var(--on-night)}
.try-page.fg-stage .masthead .brand,.fg-stage .try-page .masthead .brand{flex:none}
@media(max-width:360px){.fg-stage .try-page .masthead{gap:4px}.fg-stage .try-page .masthead .brand{font-size:var(--fs-body)}.fg-stage .try-page .masthead .lang-switch{padding-inline:8px;gap:4px}}
.g2-try .g2-form{flex:1 1 auto;margin-top:0}
.g2-try .guest-try-run{color:var(--on-night)}
.g2-try .guest-timer{color:var(--on-night)}
.g2-try .guest-sprout-ico{color:var(--exp)}
.g2-try .guest-try-used{color:var(--night-muted)}
.g2-try .guest-get-pi{color:var(--loc)}
.g2-try .guest-seed{width:100%}
/* review R2 MAJOR-A: public/assets/tree/fx.css paints a time-of-day gradient over the whole tree card (dawn, dusk, night = about 16 h a day). G2 has no card
   frame, so that layer showed as a hard-edged box on the stage; the stage itself already carries the sky, so the card layer is switched off inside the G2 hero
   (the tree keeps fx.css's night/dusk brightness, which has no box). Probe: work/g2phase.py, browser clock at 06:30/12:30/18:30/22:30. */
.g2-hero .tree-card-fx::before{content:none}
/* review R2 MAJOR-B: 360x640 with a session running, the first-session hint wrapped to 2 lines in 8 languages and pushed the second start under the tab bar.
   While a session runs, the hint (advice for starting) is kept for screen readers only; probe: g2cls.py running state x 39 languages. */
@media(max-width:767px) and (max-height:700px){.g2-home:has(.g2-resume) .g2-first{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}}
/* review R2 MINOR-C: below 64 px the "FocusGrove" ribbon text cannot be read, so on short screens (crest 44-64 px) the ribbon is not drawn; the button keeps its name */
@media(max-width:767px) and (max-height:700px){.g2-crest .g2-crest-ribbon{display:none}}
/* review R2 MINOR-D: desktop with a session running (resume + second start): a lower hero keeps both buttons above the fold at 1280x900 */
@media(min-width:768px){.g2-home:has(.g2-resume) .g2-hero{height:240px}}
