@font-face { font-family: 'HM2 Suez'; src: url('fonts/SuezOne.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'HM2 Rubik'; src: url('fonts/Rubik.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
html, body { margin: 0; min-height: 100%; }
body { background: #a58df0; }
.hm2-root { position: relative; font-family: 'HM2 Rubik', system-ui, sans-serif; color: #fff; background: linear-gradient(160deg, #7f95f5 0%, #a58df0 50%, #d49be8 100%); padding: 18px 14px 36px; overflow: hidden; min-height: 100vh; box-sizing: border-box; }
.hm2-stars { position: absolute; inset: 0; pointer-events: none; }
.hm2-stars span { position: absolute; color: #fff; font-size: 16px; opacity: .85; animation: hm2-tw 2.6s ease-in-out infinite; text-shadow: 0 0 8px #fff; }
.hm2-stars span:nth-child(3n) { font-size: 24px; color: #fff7c2; }
@keyframes hm2-tw { 50% { opacity: .1; transform: scale(.5) rotate(40deg); } }
.hm2-root > div { position: relative; max-width: 640px; margin: 0 auto; }
.hm2-hide { display: none !important; }
.hm2-entry { text-align: center; }
.hm2-logo { display: block; margin: 0 auto; width: 120px; height: auto; border-radius: 18px; background: #fff; padding: 6px; box-shadow: 0 6px 0 rgba(60,30,120,.25), 0 10px 24px rgba(40,20,90,.35); animation: hm2-float 4s ease-in-out infinite; }
@keyframes hm2-float { 50% { transform: translateY(-6px); } }
.hm2-pill { display: inline-block; background: #4a2c8f; color: #ffe27a; font-weight: 700; font-size: 14px; padding: 6px 16px; border-radius: 999px; margin-top: 12px; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.hm2-title { font-family: 'HM2 Rubik', sans-serif; font-weight: 900; font-size: 56px; line-height: 1.05; margin: 6px 0 6px; letter-spacing: 0; background: linear-gradient(180deg, #fff176 0%, #ffca28 50%, #ff9800 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 0 #8a4b00); animation: hm2-pop 0.7s cubic-bezier(.2,1.6,.4,1) both; }
.hm2-title.hm2-s { font-size: 40px; }
@keyframes hm2-pop { from { transform: scale(.6); opacity: 0; } }
.hm2-sub { margin: 4px auto 6px; max-width: 460px; font-size: 18px; line-height: 1.5; color: #fff; font-weight: 500; text-shadow: 0 1px 6px rgba(50,20,100,.4); }
.hm2-menorah-wrap { max-width: 540px; margin: 4px auto; }
.hm2-menorah { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 8px 14px rgba(50,20,110,.35)); }
.hm2-candle { cursor: pointer; outline: none; }
.hm2-candle.hm2-static { cursor: default; }
.hm2-candle:hover circle:nth-of-type(2) { filter: brightness(1.12); }
.hm2-candle:focus-visible .hm2-halo { stroke: #fff; stroke-width: 4; }
.hm2-halo { transform-box: fill-box; transform-origin: center; animation: hm2-spin 14s linear infinite; }
@keyframes hm2-spin { to { transform: rotate(360deg); } }
.hm2-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: hm2-fl 1.1s ease-in-out infinite alternate; }
.hm2-glow { animation: hm2-gl 1.8s ease-in-out infinite alternate; }
@keyframes hm2-fl { from { transform: scale(1, .94) rotate(-2deg); } to { transform: scale(.96, 1.06) rotate(2deg); } }
@keyframes hm2-gl { from { opacity: .18; } to { opacity: .42; } }
.hm2-card { background: #fff; color: #2a1b5c; border-radius: 26px; padding: 18px 16px; box-shadow: 0 6px 0 rgba(70,40,140,.25), 0 14px 30px rgba(40,20,90,.25); }
.hm2-form { display: flex; flex-direction: column; gap: 12px; max-width: 400px; margin: 14px auto; text-align: start; }
.hm2-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 15px; color: #4a2c8f; }
.hm2-form input { font: inherit; font-size: 17px; padding: 12px 14px; min-height: 50px; border-radius: 14px; border: 2.5px solid #d9d0f5; background: #faf8ff; color: #2a1b5c; box-sizing: border-box; width: 100%; }
.hm2-form input:focus { outline: none; border-color: #ff7043; background: #fff; }
.hm2-btn { font: inherit; font-weight: 900; font-size: 22px; min-height: 56px; padding: 10px 20px; border: 0; border-radius: 18px; background: linear-gradient(180deg, #ffe45c, #f5a800); color: #4a2a00; cursor: pointer; box-shadow: 0 6px 0 #e0197d, 0 10px 18px rgba(40,20,90,.3); transition: transform .08s; }
.hm2-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #e0197d; }
.hm2-btn:disabled { opacity: .6; }
.hm2-link { font: inherit; background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 8px; font-weight: 500; }
.hm2-note { font-size: 13px; color: #fff; max-width: 380px; margin: 4px auto; opacity: .9; }
.hm2-err { background: #ffe3e5; color: #a3121f; border-radius: 12px; padding: 9px 12px; font-size: 14px; margin: 6px 0; font-weight: 500; }
.hm2-lock { background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.6); border-radius: 14px; padding: 10px 12px; font-size: 15px; margin: 10px 0; font-weight: 500; }
.hm2-prog { text-align: center; font-weight: 800; font-size: 17px; color: #fff; margin: 10px auto; background: rgba(74,44,143,.55); border: 2px solid #ffd54f; border-radius: 16px; padding: 10px 12px; max-width: 460px; }
.hm2-dayhead { display: flex; align-items: center; gap: 12px; background: #fff; color: #2a1b5c; border-radius: 22px; border-inline-start: 10px solid; padding: 12px 14px; margin: 6px 0 12px; box-shadow: 0 5px 0 rgba(70,40,140,.25); }
.hm2-daynum { width: 48px; height: 48px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 24px; flex: none; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.1); }
.hm2-daytitle { font-weight: 900; font-size: 22px; }
.hm2-daydate { font-size: 14px; color: #6a5a9a; font-weight: 500; }
.hm2-daycount { margin-inline-start: auto; font-weight: 900; font-size: 20px; color: #4a2c8f; }
.hm2-list { display: flex; flex-direction: column; gap: 10px; }
.hm2-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border-radius: 18px; border: 0; background: #fff; color: #2a1b5c; font: inherit; font-weight: 600; font-size: 17px; text-align: start; cursor: pointer; box-sizing: border-box; box-shadow: 0 5px 0 rgba(70,40,140,.28); transition: transform .08s; }
.hm2-row:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(70,40,140,.28); }
.hm2-row.on { background: #fff8d6; box-shadow: 0 5px 0 #e0a800; }
.hm2-row:disabled { opacity: .6; cursor: not-allowed; }
.hm2-box { flex: none; width: 32px; height: 32px; border-radius: 10px; border: 3px solid #c7bbea; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; background: #fff; font-size: 20px; }
.hm2-row.on .hm2-box { background: #2eb872; border-color: #2eb872; animation: hm2-pop .3s cubic-bezier(.2,1.6,.4,1); }
.hm2-fam { background: #ffeaf4; }
.hm2-win { font-weight: 900; font-size: 26px; text-align: center; color: #fff59d; margin: 14px 0 0; text-shadow: 0 3px 0 #a35f00, 0 6px 12px rgba(50,20,100,.4); animation: hm2-pop .6s cubic-bezier(.2,1.6,.4,1); }
.hm2-table-wrap { overflow-x: auto; background: #fff; border-radius: 18px; margin-bottom: 12px; box-shadow: 0 5px 0 rgba(70,40,140,.25); }
.hm2-table { width: 100%; border-collapse: collapse; color: #2a1b5c; font-size: 15px; }
.hm2-table th, .hm2-table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid #eee8ff; white-space: nowrap; }
.hm2-table th { background: #efe9ff; font-weight: 800; }
@media (min-width: 768px) { .hm2-root { padding: 30px 28px 40px; } .hm2-title { font-size: 76px; } .hm2-title.hm2-s { font-size: 52px; } }
@media (prefers-reduced-motion: reduce) { .hm2-root * { animation: none !important; } }

.hm2-ic { height: auto; display: block; }
.hm2-band { display: flex; justify-content: center; align-items: flex-end; gap: 6px; flex-wrap: nowrap; margin: 6px auto 4px; overflow: hidden; }
.hm2-band .hm2-ic { flex: 0 1 auto; max-width: 11vw; animation: hm2-bob 3s ease-in-out infinite; filter: drop-shadow(0 3px 3px rgba(40,20,90,.3)); }
.hm2-band .hm2-ic:nth-child(2n) { animation-delay: .6s; } .hm2-band .hm2-ic:nth-child(3n) { animation-delay: 1.2s; }
@keyframes hm2-bob { 50% { transform: translateY(-5px) rotate(4deg); } }
.hm2-floats { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hm2-floats .hm2-ic { position: absolute; opacity: .4; filter: drop-shadow(0 3px 4px rgba(40,20,90,.3)); animation: hm2-drift 7s ease-in-out infinite; }
.hm2-floats .f1 { top: 10%; inset-inline-start: 3%; transform: rotate(-14deg); } .hm2-floats .f2 { top: 24%; inset-inline-end: 2%; } .hm2-floats .f3 { top: 40%; inset-inline-start: 1%; }
.hm2-floats .f4 { top: 56%; inset-inline-end: 3%; } .hm2-floats .f5 { top: 68%; inset-inline-start: 6%; } .hm2-floats .f6 { top: 78%; inset-inline-end: 5%; transform: rotate(12deg); }
.hm2-floats .f7 { top: 5%; inset-inline-end: 8%; } .hm2-floats .f8 { top: 88%; inset-inline-start: 4%; }
.hm2-floats .f2, .hm2-floats .f5, .hm2-floats .f8 { animation-delay: 1.5s; }
@keyframes hm2-drift { 50% { transform: translateY(-14px) rotate(8deg); } }
@media (max-width: 520px) { .hm2-floats .f3, .hm2-floats .f6, .hm2-floats .f8 { display: none; } .hm2-floats .hm2-ic { opacity: .4; } }
.hm2-root > div, .hm2-stars { z-index: 1; }
.hm2-card { position: relative; z-index: 3; }
