@import url('https://fonts.googleapis.com/css2?family=Lalezar&family=Vazirmatn:wght@500;800;900&display=swap');
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; }
body { overflow: hidden; font-family: 'Vazirmatn', system-ui, sans-serif; background: #0b1021; color: #fff; user-select: none; -webkit-user-select: none; }
canvas { display: block; touch-action: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.app { position: fixed; inset: 0; overflow: hidden; line-height: 1.7; }
.intro, .hud, .overlay { position: absolute; inset: 0; z-index: 5; }
.intro { display: flex; flex-direction: column; align-items: center; padding: max(12px, env(safe-area-inset-top)) 14px 28px; pointer-events: none; background: linear-gradient(#0b1021cc, transparent 40%, transparent 60%, #0b1021aa); }
.intro > * { pointer-events: auto; }
.topbar { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.coinpill { display: flex; align-items: center; gap: 4px; background: #0d1530d9; border: 2px solid #3a4a7a; border-radius: 99px; padding: 0 12px 0 4px; height: 36px; font-weight: 900; }
.coinpill img { width: 34px; height: 34px; margin-inline-start: -10px; }
.roundbtn { width: 40px; height: 40px; border-radius: 50%; background: #1d2a5c; border: 2px solid #f2c14e; display: grid; place-items: center; box-shadow: 0 3px 0 #0a1030; }
.roundbtn img { width: 26px; }
.logo { width: min(52vw, 210px); margin-top: 6px; filter: drop-shadow(0 6px 12px #000a); animation: float 3s ease-in-out infinite; }
.title { font-family: Lalezar, Vazirmatn; font-weight: 400; font-size: clamp(44px, 13vw, 64px); line-height: 1.1; margin-top: -10px; background: linear-gradient(#7ff0e0, #2bb3a0 60%, #17706a); -webkit-background-clip: text; color: transparent; -webkit-text-stroke: 1.5px #f2c14e; filter: drop-shadow(0 4px 0 #0a1a2a); }
.spacer { flex: 1; }
.lvname { font-weight: 900; font-size: 15px; text-shadow: 0 2px 4px #000; margin-bottom: 8px; }
.btn-green, .btn-blue { display: block; width: 100%; font-weight: 900; border-radius: 16px; font-size: 22px; padding: 6px; transition: transform .1s; }
.btn-green { background: linear-gradient(#8ef05a, #3fae2a); border: 3px solid #f2c14e; box-shadow: 0 5px 0 #1f6a14, inset 0 2px 0 #fff6; text-shadow: 0 2px 0 #1f6a14; }
.btn-green.big { width: min(64vw, 250px); font-size: 30px; padding: 4px; animation: pulse 1.4s ease-in-out infinite; }
.btn-green.sm { width: auto; font-size: 15px; padding: 4px 14px; }
.btn-green:disabled { filter: grayscale(1) brightness(.7); }
.btn-blue { background: linear-gradient(#4a6fe0, #2b45a8); border: 2px solid #f2c14e; box-shadow: 0 4px 0 #15245e; font-size: 17px; }
button:active { transform: translateY(3px) scale(.98); }
.menuicons { display: flex; gap: 22px; margin-top: 14px; }
.menuicons button { display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: 13px; text-shadow: 0 2px 3px #000; }
.ic { width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(#2f4590, #17224d); border: 3px solid #f2c14e; display: grid; place-items: center; }
.ic img { width: 44px; }
.hud { pointer-events: none; padding: max(10px, env(safe-area-inset-top)) 10px; }
.hud button { pointer-events: auto; }
.hudrow { display: flex; align-items: center; gap: 8px; direction: ltr; }
.lvbadge { width: 44px; height: 50px; background: #2c4fa8; border: 3px solid #f2c14e; clip-path: polygon(0 0,100% 0,100% 60%,50% 100%,0 60%); display: grid; place-items: center; font-weight: 900; font-size: 20px; flex: none; }
.prog { flex: 1; min-width: 0; text-align: center; }
.progname { font-weight: 900; font-size: 13px; text-shadow: 0 2px 3px #000; }
.bar { position: relative; height: 12px; background: #0d1530; border: 2px solid #3a4a7a; border-radius: 99px; }
.bar i { position: absolute; inset-block: 0; left: 0; background: linear-gradient(90deg, #00b8c8, #00f0ff); border-radius: 99px; transition: width .15s; }
.skull { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: #3a2a4a; border: 2px solid #f2c14e; display: grid; place-items: center; font-size: 16px; }
.tip { margin: 12px auto 0; width: fit-content; max-width: 92%; display: flex; align-items: center; gap: 8px; background: #0d1530e6; border: 2px solid #f2c14e88; border-radius: 99px; padding: 2px 14px 2px 4px; font-weight: 800; font-size: 13px; transition: opacity .4s, transform .4s; }
.tip img { width: 34px; height: 34px; border-radius: 50%; background: #1d2a5c; object-fit: cover; }
.tip.hide { opacity: 0; transform: translateY(-10px); }
.hint { position: absolute; bottom: 22px; inset-inline: 0; text-align: center; font-size: 13px; opacity: .7; pointer-events: none; text-shadow: 0 2px 3px #000; z-index: 4; animation: fadeout 4s forwards; }
.overlay { display: grid; place-items: center; background: #050816b0; padding: 20px; animation: fade .25s; }
.panel { position: relative; width: min(100%, 340px); background: linear-gradient(#1f2e66, #121c45); border: 3px solid #f2c14e; border-radius: 18px; padding: 44px 16px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 40px #000; animation: popin .35s cubic-bezier(.2,1.6,.4,1); }
.ribbon { position: absolute; top: -28px; inset-inline: 30px; text-align: center; font-family: Lalezar, Vazirmatn; font-size: 34px; line-height: 1.5; background: linear-gradient(#8a2a2a, #561616); border: 3px solid #f2c14e; border-radius: 10px; color: #ffe08a; text-shadow: 0 3px 0 #2a0808; }
.stat { display: flex; justify-content: space-between; background: #0d1530; border-radius: 8px; padding: 3px 12px; font-weight: 800; font-size: 14px; }
.earn { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 26px; font-weight: 900; }
.earn img { width: 44px; }
.tiptext { text-align: center; color: #ffd54a; font-size: 12.5px; font-weight: 800; }
.row2 { display: flex; gap: 10px; }
.shop { display: flex; justify-content: space-between; align-items: center; background: #0d1530; border-radius: 10px; padding: 8px 12px; }
.shop div { display: flex; flex-direction: column; } .shop small { opacity: .7; }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes pulse { 50% { transform: scale(1.05); } }
@keyframes popin { from { transform: scale(.6); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeout { 70% { opacity: .7; } to { opacity: 0; } }
