/* vietnamese */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-stretch: 100%;
  font-weight: 560;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-vietnamese.woff2") 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;
}

/* latin-ext */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-stretch: 100%;
  font-weight: 560;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-stretch: 100%;
  font-weight: 560;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") 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;
}

/* vietnamese */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-stretch: 100%;
  font-weight: 760;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-vietnamese.woff2") 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;
}

/* latin-ext */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-stretch: 100%;
  font-weight: 760;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-stretch: 100%;
  font-weight: 760;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") 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;
}

/* hebrew */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* math */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/heebo-math.woff2") format("woff2");
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}

/* symbols */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/heebo-symbols.woff2") format("woff2");
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}

/* latin-ext */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/heebo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/heebo-latin.woff2") 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;
}

/* hebrew */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* math */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/heebo-math.woff2") format("woff2");
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}

/* symbols */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/heebo-symbols.woff2") format("woff2");
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}

/* latin-ext */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/heebo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/heebo-latin.woff2") 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;
}

/* hebrew */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* math */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/heebo-math.woff2") format("woff2");
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}

/* symbols */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/heebo-symbols.woff2") format("woff2");
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}

/* latin-ext */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/heebo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/heebo-latin.woff2") 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;
}

:root {
  --bg: #100c0a;
  --bg-raise: #1c1612;
  --ink: #f6f0e6;
  --muted: #b3a89a;
  --card-artist: #efe6da;
  --line: rgba(246, 240, 230, 0.14);
  --ember: #ff5a1f;
  --gold: #ffc857;
  --mint: #5ee0a0;
  --rose: #ff5d73;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
  font-family: "Heebo", "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(255, 90, 31, 0.22), transparent 55%),
    radial-gradient(700px 380px at 110% 110%, rgba(255, 200, 87, 0.08), transparent 45%),
    var(--bg);
  color: var(--ink);
}

body { min-height: 100dvh; }

button, input { font: inherit; color: inherit; }

audio { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

button { cursor: pointer; touch-action: manipulation; }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

h1, h2, .brand, .buzzer {
  font-family: "Bricolage Grotesque", "Heebo", sans-serif;
  letter-spacing: -0.03em;
}

html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] .brand,
html[lang="he"] .buzzer {
  font-family: "Heebo", sans-serif;
  letter-spacing: 0;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[lang="he"] .eyebrow { letter-spacing: 0; text-transform: none; }

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 0.95;
}

.version {
  margin: 4px 0 0;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.tagline, .hint, .meta { color: var(--muted); }

.tagline { margin: 4px 0 0; }

.lang {
  display: flex;
  background: var(--bg-raise);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.lang button, .segment button, .chip, .text-btn, .primary, .team-pick, .option, .score-pill {
  border: 1px solid transparent;
}

.lang button {
  border-radius: 999px;
  background: transparent;
  min-height: 36px;
  padding: 0 12px;
}

.lang button[aria-pressed="true"] {
  background: var(--gold);
  color: #2a1604;
  font-weight: 800;
}

.card {
  background: rgba(28, 22, 18, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.stack { display: flex; flex-direction: column; gap: 8px; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }

input[type="text"],
input[type="number"],
input[type="search"] {
  width: 100%;
  background: #0e0b09;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 16px;
  min-height: 48px;
}

input:focus, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.team-row, .age-row, .slider-labels, .split {
  display: flex;
  gap: 8px;
  align-items: center;
}

.team-row input { flex: 1; }

.icon-btn, .text-btn {
  background: transparent;
  color: var(--muted);
  min-height: 48px;
  border-radius: 12px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.subchips, .diva-chips { flex-basis: 100%; }

.diva-chips { padding-inline-start: 8px; }

.chip.sub { min-height: 36px; font-size: clamp(15px, 4vw, 17px); }

.chip {
  background: #0e0b09;
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 14px;
  border-color: var(--line);
  font-size: clamp(15px, 4vw, 17px);
}

.chip[aria-pressed="true"], .chip.on {
  background: var(--gold);
  color: #2a1604;
  font-weight: 800;
  border-color: transparent;
}

.artist-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0e0b09;
  border-radius: 999px;
  padding: 4px 4px 4px 10px;
  border: 1px solid var(--line);
  font-size: clamp(16px, 4.2vw, 18px);
}

.artist-chip button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-raise);
}

.results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.results button, .team-pick, .primary, .option {
  text-align: start;
}

.results button {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #0e0b09;
  border-radius: 14px;
  min-height: 52px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-size: clamp(16px, 4.2vw, 18px);
}

.results img, .reveal img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #2a211b;
}

.slider-labels { justify-content: space-between; font-size: 14px; color: var(--muted); }

.sfx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sfx-row span { font-weight: 700; }
.sfx-row .chip { min-width: 72px; }

input[type="range"] {
  width: 100%;
  accent-color: var(--ember);
  direction: ltr;
  height: 36px;
}

.segment {
  display: flex;
  background: #0e0b09;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}

.segment button {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  background: transparent;
}

.segment button[aria-pressed="true"] {
  background: var(--ink);
  color: #1a120d;
  font-weight: 800;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.numbers label { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }

.form-error { color: var(--rose); margin: 0; min-height: 1.2em; }

.credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 10px;
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.credit-links { display: inline-flex; gap: 10px; }

.menu-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.report-link {
  display: block;
  margin: 6px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(179, 168, 154, 0.55);
  font-size: 11px;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.report-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 6, 5, 0.72);
}
.report-panel {
  width: min(360px, 100%);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.report-panel h2 { margin: 0 0 10px; font-size: 20px; }
.report-panel textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  background: #0e0b09;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 16px;
}
.report-panel .hint { margin: 8px 0; font-size: 14px; }
.report-actions { display: flex; gap: 8px; justify-content: flex-end; }
.report-actions .primary { width: auto; min-height: 44px; padding: 0 16px; box-shadow: none; }

.legal-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-back {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 6, 5, 0.72);
}

.legal-panel {
  width: min(420px, 100%);
  max-height: min(78dvh, 560px);
  overflow: auto;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  text-align: start;
}

.legal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.legal-head h2 { margin: 0; }

.legal-panel p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.start-bar {
  position: fixed;
  z-index: 8;
  bottom: 0;
  left: 0;
  right: 0;
  width: min(480px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
}

#app[data-screen="setup"] {
  padding-bottom: var(--start-bar-space, calc(210px + env(safe-area-inset-bottom)));
}

.primary {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(180deg, #ffb15a, #ff5a1f);
  color: #2a0d04;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 10px 30px rgba(255, 90, 31, 0.35);
}

.primary:disabled { opacity: 0.55; }

.scores {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.score-pill {
  flex: 1 0 108px;
  background: var(--bg-raise);
  border-radius: 16px;
  padding: 8px 10px 10px;
  border-top: 3px solid var(--gold);
  text-align: start;
}

.score-pill.active { box-shadow: inset 0 0 0 2px var(--gold); }

.score-pill span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.score-pill.named span,
.score-pill.named strong { color: inherit; }

.score-pill.named,
.team-pick.named {
  border: 1px solid rgba(246, 240, 230, 0.4);
}

.who-chip {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  line-height: 1.45;
}

.score-pill strong { font-size: 26px; line-height: 1.1; }

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  min-height: 360px;
}

.buzzer-wrap {
  position: relative;
  width: min(78vw, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  inset: -8px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.ring circle { fill: none; stroke-width: 3; }

.ring-bg { stroke: rgba(246, 240, 230, 0.12); }

.ring-fg {
  stroke: var(--gold);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.2s linear;
}

.buzzer {
  width: 86%;
  height: 86%;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffe0b8, #ff8a3d 36%, #e23b12 72%, #7a140c);
  color: #2a0a04;
  font-size: clamp(32px, 8vw, 46px);
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 10px rgba(255, 90, 31, 0.12),
    0 18px 40px rgba(226, 59, 18, 0.45),
    inset 0 -14px 24px rgba(0, 0, 0, 0.28);
}

html[lang="he"] .buzzer { letter-spacing: 0; text-transform: none; font-size: clamp(28px, 7vw, 40px); }

.buzzer.live { animation: glow 1.8s ease-in-out infinite; }

.buzzer.idle {
  background:
    radial-gradient(circle at 35% 30%, #d7fff1, #3ecf9a 42%, #0e7a62 78%);
  box-shadow:
    0 0 0 10px rgba(94, 224, 160, 0.12),
    0 18px 40px rgba(14, 122, 98, 0.35),
    inset 0 -14px 24px rgba(0, 0, 0, 0.25);
  color: #04241b;
}

@keyframes glow {
  50% { box-shadow: 0 0 0 16px rgba(255, 90, 31, 0.2), 0 18px 50px rgba(255, 90, 31, 0.55), inset 0 -14px 24px rgba(0, 0, 0, 0.28); }
}

.readout { font-size: 22px; font-weight: 800; margin: 0; }

.readout span { color: var(--gold); }

.legend { margin: 0; color: var(--muted); font-size: 13px; }

.team-list { width: 100%; display: flex; flex-direction: column; gap: 8px; }

.team-pick {
  width: 100%;
  min-height: 64px;
  border-radius: 16px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  font-size: 20px;
  font-weight: 800;
  padding: 0 16px;
}

.count {
  font-size: 72px;
  line-height: 0.9;
  margin: 0;
  font-weight: 800;
}

.options {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.option {
  min-height: 96px;
  min-width: 0;
  border-radius: 16px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.option b,
.option small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.option b {
  font-size: clamp(17px, 4.6vw, 22px);
  font-weight: 800;
}

.option small {
  color: var(--card-artist);
  font-size: clamp(15px, 4.1vw, 18px);
  font-weight: 500;
}

.option.is-correct { background: #143528; border-color: var(--mint); }
.option.is-wrong { background: #3a1520; border-color: var(--rose); }

.reveal {
  width: 100%;
  background: var(--bg-raise);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: start;
  position: relative;
  overflow: hidden;
}

.reveal img { width: 84px; height: 84px; border-radius: 16px; }

.reveal h2 { margin: 0 0 4px; font-size: 22px; }

.stamp {
  position: absolute;
  inset-inline-start: 10px;
  top: 22px;
  font-size: 76px;
  font-weight: 800;
  color: var(--rose);
  opacity: 0.92;
  transform: rotate(-14deg);
  line-height: 1;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.reveal .copy { position: relative; z-index: 1; min-width: 0; }

.delta { font-size: 28px; font-weight: 800; margin: 0; }
.delta.plus { color: var(--mint); }
.delta.minus { color: var(--rose); }

.banner {
  width: 100%;
  background: #3a1520;
  color: #ffd0d8;
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0;
}

.center-card {
  margin: auto;
  text-align: center;
  padding: 28px 18px;
}

.rank-list { display: flex; flex-direction: column; gap: 8px; }

.feedback {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raise);
}
.feedback p { margin: 0; color: var(--muted); font-size: 13px; }
.feedback-actions { display: flex; gap: 8px; align-items: center; }
.feedback-actions .text-btn { margin-top: 0; }
.feedback-actions button[aria-pressed="true"] { border-color: var(--ember); color: var(--ink); }
.share-btn {
  margin-inline-start: auto;
  border: 1px solid var(--line);
  background: #0e0b09;
  color: var(--ink);
  font-weight: 700;
  padding: 0 14px;
}
.feedback textarea {
  width: 100%;
  margin-top: 8px;
  min-height: 56px;
  resize: vertical;
  background: #0e0b09;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 16px;
}
.feedback > .text-btn { margin-top: 8px; }
.feedback-thanks { text-align: center; margin: 8px 0 0; }

#app[data-screen="results"] {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  gap: 8px;
}
#app[data-screen="results"] .rank-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
#app[data-screen="results"] .feedback,
#app[data-screen="results"] .results-actions { flex: 0 0 auto; }
#app[data-screen="results"] .primary { min-height: 48px; box-shadow: none; }
#app[data-screen="results"] .feedback textarea { min-height: 40px; }
.results-actions { display: flex; flex-direction: column; gap: 8px; }
.ghost {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}
#app[data-screen="results"] .rank { padding: 8px 12px; }
#app[data-screen="results"] .rank b { font-size: 22px; }

.share-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
}
.share-panel {
  position: relative;
  width: min(360px, 100%);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 16px;
}
.share-panel h2 { margin: 0 32px 8px 0; font-size: 22px; }
html[dir="rtl"] .share-panel h2 { margin: 0 0 8px 32px; }
.share-text { margin: 0 0 8px; }
.share-url { margin: 0 0 12px; color: var(--muted); font-size: 13px; word-break: break-all; }
.share-qr {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 12px;
}
.share-qr svg { width: min(220px, 100%); height: auto; }
.share-x {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  min-width: 44px;
  font-size: 22px;
}
.share-panel .primary { margin-top: 0; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 14px;
}
.toast[hidden] { display: none; }

.rank {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-raise);
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
}

.rank b { font-size: 28px; }

.place {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #2a1604;
  font-weight: 800;
}

.play-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 32px;
}

.game-btn {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.skip-btn { color: var(--ink); }

.play-status {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-bar .lang button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.menu-pop {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  width: min(260px, 86vw);
  background: #241c16;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-align: start;
  box-shadow: var(--shadow);
}

.menu-title {
  margin: 0 0 4px;
  font-weight: 800;
}

.menu-pop .hint { margin: 0 0 10px; font-size: 13px; }

.menu-actions {
  display: flex;
  gap: 8px;
}

.menu-actions .text-btn,
.menu-actions .primary {
  flex: 1;
  min-height: 40px;
  font-size: 14px;
}

html:has(#app[data-screen="buzzer"]),
html:has(#app[data-screen="options"]),
body:has(#app[data-screen="buzzer"]),
body:has(#app[data-screen="options"]) {
  height: 100dvh;
  overflow: hidden;
}

#app[data-screen="buzzer"],
#app[data-screen="options"] {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 6px;
}

#app[data-screen="buzzer"] .scores,
#app[data-screen="options"] .scores {
  flex: 0 0 auto;
  overflow: hidden;
  gap: 6px;
}

#app[data-screen="buzzer"] .score-pill,
#app[data-screen="options"] .score-pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 4px 6px 5px;
  border-radius: 12px;
}

#app[data-screen="buzzer"] .score-pill span,
#app[data-screen="options"] .score-pill span {
  font-size: 11px;
}

#app[data-screen="buzzer"] .score-pill strong,
#app[data-screen="options"] .score-pill strong {
  font-size: 18px;
}

#app[data-screen="buzzer"] .meta,
#app[data-screen="options"] .meta {
  margin: 0;
  flex: 0 0 auto;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app[data-screen="buzzer"] .stage,
#app[data-screen="options"] .stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  gap: 6px;
}

#app[data-screen="buzzer"] .stage.fit,
#app[data-screen="options"] .stage.fit {
  justify-content: flex-start;
  align-items: stretch;
}

#app[data-screen="options"] .stage.fit .options {
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
  gap: 6px;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
#app[data-screen="options"] .options[data-count="6"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#app[data-screen="options"] .options[data-count="6"] .option b {
  font-size: clamp(19px, 5.4vw, 26px);
}
#app[data-screen="options"] .options[data-count="6"] .option small {
  font-size: clamp(16px, 4.8vw, 22px);
}

#app[data-screen="options"] .option {
  min-height: 0;
  height: auto;
  padding: 4px;
  border-radius: 12px;
  gap: 2px;
  overflow: hidden;
}

#app[data-screen="options"] .option b {
  font-size: clamp(17px, 4.6vw, 22px);
  line-height: 1.15;
  -webkit-line-clamp: 2;
}

#app[data-screen="options"] .option small {
  font-size: clamp(15px, 4.1vw, 18px);
  -webkit-line-clamp: 2;
}

#app[data-screen="buzzer"] .readout,
#app[data-screen="options"] .readout {
  font-size: 16px;
  flex: 0 0 auto;
}

#app[data-screen="buzzer"] .legend {
  font-size: 12px;
  line-height: 1.3;
}

#app[data-screen="buzzer"] .buzzer-wrap {
  width: min(56vw, 210px);
  flex: 0 1 auto;
}

#app[data-screen="buzzer"] .team-pick {
  min-height: 46px;
  font-size: 18px;
  border-radius: 14px;
}

#app[data-screen="buzzer"] .count {
  font-size: 56px;
}

#app[data-screen="options"] .reveal {
  flex: 0 0 auto;
  padding: 8px;
  border-radius: 14px;
  gap: 8px;
}

#app[data-screen="options"] .reveal img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

#app[data-screen="options"] .reveal h2 {
  font-size: 16px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#app[data-screen="options"] .reveal .hint,
#app[data-screen="options"] .delta {
  margin: 0;
  font-size: 13px;
}

#app[data-screen="options"] .stamp {
  font-size: 40px;
  top: 6px;
}

#app[data-screen="buzzer"] .primary,
#app[data-screen="options"] .primary {
  flex: 0 0 auto;
  min-height: 44px;
  font-size: 16px;
  border-radius: 12px;
}

#app[data-screen="options"] .menu-pop .primary,
#app[data-screen="buzzer"] .menu-pop .primary {
  width: auto;
  flex: 1 1 0;
  min-height: 40px;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .buzzer.live { animation: none; }
  .ring-fg { transition: none; }
}
