html, body, #root { margin: 0; min-height: 100%; background: #0b0720; }
.zn-root { position: relative; width: 100%; height: 740px; overflow: hidden; color: #fff3e6; font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", system-ui, sans-serif; background: #0b0720; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.zn-root * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.zn-aurora { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 10%, #8a3fb0aa, transparent 55%), radial-gradient(ellipse at 85% 35%, #c2306fa0, transparent 55%), radial-gradient(ellipse at 50% 100%, #3a2a8a99, transparent 60%), linear-gradient(#0b0720, #1f0f3d 70%, #3a1245); animation: zn-aur 12s ease-in-out infinite alternate; }
@keyframes zn-aur { to { filter: hue-rotate(35deg) brightness(1.2); } }
.zn-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.zn-scene { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 56px 22px 44px; gap: 12px; animation: zn-in .8s ease both; }
@keyframes zn-in { from { opacity: 0; transform: scale(.96); } }
.zn-rise { opacity: 0; animation: zn-rise 1s ease forwards; }
@keyframes zn-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.zn-kicker { margin: 0; letter-spacing: 2px; color: #ffd98a; font-size: 15px; opacity: .9; }
.zn-name { margin: 0; font-size: 92px; line-height: 1.1; font-weight: 800; color: #ffd98a; text-shadow: 0 0 18px #ffb347, 0 0 50px #ff5d8f, 0 0 90px #ff5d8f; animation: zn-rise 1s ease forwards, zn-glow 3s ease-in-out infinite alternate; }
@keyframes zn-glow { to { text-shadow: 0 0 28px #ffd98a, 0 0 70px #ff8fb1, 0 0 120px #ff5d8f; } }
.zn-heartline { font-size: 22px; color: #ff6f9f; letter-spacing: 10px; }
.zn-sub { margin: 0; font-size: 17px; line-height: 1.8; opacity: .9; max-width: 320px; }
.zn-big { margin: 6px 0; font-size: 38px; font-weight: 800; color: #fff; text-shadow: 0 0 24px #ff8fb1; line-height: 1.4; max-width: 340px; }
.zn-h2 { margin: 0; font-size: 30px; color: #ffd98a; text-shadow: 0 0 22px #ffb34788; }
.zn-hint { margin: 0; font-size: 14px; opacity: .8; }
.zn-btn { margin-top: 14px; border: 0; border-radius: 999px; padding: 14px 34px; font: inherit; font-size: 18px; font-weight: 700; color: #3a0b25; background: linear-gradient(135deg, #ffe3a6, #ff9ec0); box-shadow: 0 0 26px #ff8fb1aa; cursor: pointer; min-height: 48px; }
.zn-btn:active { transform: scale(.96); }
.zn-gate { gap: 10px; }
.zn-bigheart { border: 0; background: none; cursor: pointer; filter: drop-shadow(0 0 30px #ff5d8f); animation: zn-beat 1.1s ease-in-out infinite; padding: 0; }
@keyframes zn-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
.zn-gate-t { margin: 8px 0 0; font-size: 34px; color: #ffd98a; text-shadow: 0 0 20px #ffb347; }
.zn-paper { width: 100%; max-width: 380px; padding: 16px 18px; border-radius: 20px; background: linear-gradient(160deg, #fff3e6f2, #ffe2ecf2); color: #4a1530; text-align: right; box-shadow: 0 0 50px #ff8fb166; }
.zn-paper h3 { margin: 0 0 4px; font-size: 24px; color: #b01e55; }
.zn-line { margin: 0 0 6px; font-size: 16px; line-height: 1.7; opacity: 0; animation: zn-rise .9s ease forwards; }
.zn-sign { font-weight: 800; color: #b01e55; font-size: 19px; }
.zn-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 380px; margin-top: 8px; }
.zn-card { position: relative; height: 150px; border: 0; padding: 0; background: none; perspective: 700px; cursor: pointer; font: inherit; color: inherit; }
.zn-face { position: absolute; inset: 0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; backface-visibility: hidden; transition: transform .7s cubic-bezier(.3, 1.3, .5, 1); }
.zn-front { background: linear-gradient(145deg, #c2306f, #6d2a9c); box-shadow: 0 0 24px #ff5d8f77; }
.zn-front small { opacity: .8; font-size: 13px; }
.zn-front b { font-size: 26px; color: #ffe3a6; }
.zn-front em { font-style: normal; color: #ff9ec0; font-size: 20px; }
.zn-back { background: linear-gradient(145deg, #fff3e6, #ffd5e4); color: #4a1530; font-size: 14.5px; line-height: 1.7; font-weight: 600; transform: rotateY(180deg); }
.zn-card.flip .zn-front { transform: rotateY(180deg); }
.zn-card.flip .zn-back { transform: rotateY(0); }
.zn-meter { width: 80%; max-width: 300px; height: 12px; border-radius: 99px; background: #ffffff22; overflow: hidden; }
.zn-meter div { height: 100%; background: linear-gradient(90deg, #ffd98a, #ff5d8f); transition: width .3s; box-shadow: 0 0 14px #ff5d8f; }
.zn-score { margin: 0; font-size: 20px; font-weight: 700; color: #ffd98a; }
.zn-field { position: relative; width: 100%; max-width: 380px; flex: 1; min-height: 300px; border-radius: 22px; border: 1px dashed #ffffff33; background: #ffffff0a; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.zn-fall { position: absolute; top: -60px; border: 0; background: none; padding: 0; color: #ff5d8f; font-size: 44px; line-height: 1; cursor: pointer; text-shadow: 0 0 16px #ff5d8f; animation: zn-drop linear forwards; display: flex; align-items: center; justify-content: center; }
@keyframes zn-drop { to { transform: translateY(470px) rotate(20deg); } }
.zn-won { display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.7; padding: 16px; }
.zn-won b { font-size: 34px; color: #ffd98a; }
.zn-ask { margin: 0 0 14px; font-size: 40px; line-height: 1.4; color: #fff; text-shadow: 0 0 26px #ff8fb1, 0 0 60px #ff5d8f; }
.zn-yesno { position: relative; display: flex; gap: 18px; align-items: center; justify-content: center; min-height: 200px; width: 100%; }
.zn-yes { border: 0; border-radius: 999px; padding: 18px 30px; font: inherit; font-size: 22px; font-weight: 800; color: #3a0b25; background: linear-gradient(135deg, #ffe3a6, #ff9ec0); box-shadow: 0 0 36px #ff5d8f; animation: zn-beat 1.3s ease-in-out infinite; cursor: pointer; }
.zn-no { border: 1px solid #ffffff55; border-radius: 999px; padding: 12px 18px; font: inherit; font-size: 15px; color: #fff3e6; background: #ffffff14; transition: transform .25s ease; cursor: pointer; }
.zn-music { position: absolute; top: 10px; right: 10px; z-index: 5; display: flex; align-items: center; gap: 8px; border: 1px solid #ffffff44; background: #00000044; color: #fff3e6; padding: 8px 12px; border-radius: 99px; font: inherit; font-size: 13px; cursor: pointer; backdrop-filter: blur(6px); }
.zn-music b { font-weight: 600; }
.zn-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.zn-eq i { width: 3px; height: 4px; background: #ffd98a; border-radius: 2px; }
.zn-music.on .zn-eq i { animation: zn-bar .8s ease-in-out infinite alternate; }
.zn-music.on .zn-eq i:nth-child(2) { animation-delay: .2s; } .zn-music.on .zn-eq i:nth-child(3) { animation-delay: .4s; } .zn-music.on .zn-eq i:nth-child(4) { animation-delay: .1s; }
@keyframes zn-bar { to { height: 14px; } }
.zn-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 4; pointer-events: none; }
.zn-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ffffff44; }
.zn-dots i.on { background: #ffd98a; box-shadow: 0 0 10px #ffd98a; }
@media (max-width: 360px) { .zn-name { font-size: 76px; } .zn-ask { font-size: 32px; } .zn-big { font-size: 32px; } }
@media (min-width: 700px) { .zn-root { height: 780px; } .zn-name { font-size: 120px; } }

.zn-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; max-width: 360px; margin: 10px 0; }
.zn-count div { background: linear-gradient(160deg, #ffffff1c, #ff5d8f2e); border: 1px solid #ffffff33; border-radius: 16px; padding: 14px 4px; box-shadow: 0 0 22px #ff5d8f44; }
.zn-count b { display: block; font-size: 34px; color: #ffd98a; text-shadow: 0 0 16px #ffb347; font-variant-numeric: tabular-nums; }
.zn-count span { font-size: 13px; opacity: .85; }
html, body, #root { height: 100%; }
body { overflow-x: hidden; }
.zn-root { height: 100dvh; min-height: 640px; }
@media (min-width: 700px) { .zn-root { height: 100dvh; } }
