/* Спільне: вікно гри, обрізка обличчя, кнопки, оплата — «Я в Грі» */
.gw { position: fixed; inset: 0; z-index: 100; background: #0C0B10; display: flex; flex-direction: column; animation: gwIn .25s ease-out; }
@keyframes gwIn { from { opacity: 0; transform: scale(.98); } }
.gw-top { display: flex; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; color: #fff; background: #16141D; }
.gw-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px 0 8px; border: 0; border-radius: 14px; background: #2C2839; color: #fff; font: 700 15px "Golos Text", sans-serif; cursor: pointer; }
.gw-back svg { width: 22px; height: 22px; }
.gw-title { flex: 1; text-align: center; font: 800 16px Unbounded, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-face { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #FFC53D; object-fit: cover; }
/* звук і голос у вікні гри */
.gw-snd { flex: none; width: 44px; height: 44px; border-radius: 14px; border: 0; background: #2C2839; color: #fff; display: grid; place-items: center; cursor: pointer; }
.gw-snd svg { width: 24px; height: 24px; }
.gw-snd.off { color: #8A8FAA; }
.gw-snd-panel { position: absolute; top: calc(64px + env(safe-area-inset-top)); right: 10px; z-index: 5; width: min(330px, calc(100% - 20px)); background: #fff; color: #1B1F3B; border-radius: 22px; padding: 8px 16px; box-shadow: 0 24px 50px rgba(0,0,0,.45); animation: payIn .2s ease-out; }
.gw-snd-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EFEDF6; cursor: pointer; }
.gw-snd-row:last-of-type { border-bottom: 0; }
.gw-snd-row span { flex: 1; }
.gw-snd-row b { display: block; font: 800 15px "Golos Text", sans-serif; }
.gw-snd-row small { font: 600 12px "Golos Text", sans-serif; color: #555B7A; }
.gw-snd-note { margin: 0 0 8px; font: 700 12px "Golos Text", sans-serif; color: #B4232A; }
.gw-snd-panel .sw, .sw { width: 52px; height: 32px; border-radius: 16px; background: #DAD6E8; border: 0; position: relative; cursor: pointer; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.sw.on { background: #2FB24C; } .sw.on::after { left: 23px; }
.sw:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 480px) { .gw-back span { display: none; } .gw-back { padding-left: 10px; padding-right: 10px; } .gw-title { font-size: 14px; } }
@media (max-width: 380px) { .gw-top { gap: 8px; } .gw-snd { width: 40px; height: 40px; } }
.gw-field { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.gw-err { color: #fff; font: 500 16px "Golos Text", sans-serif; padding: 24px; text-align: center; }
.gw-wait { display: flex; gap: 8px; }
.gw-wait i { width: 14px; height: 14px; border-radius: 50%; background: #FFC53D; animation: wait 1s infinite ease-in-out; }
.gw-wait i:nth-child(2) { animation-delay: .15s; background: #FF3D8B; }
.gw-wait i:nth-child(3) { animation-delay: .3s; background: #2DD4E8; }
@keyframes wait { 50% { transform: translateY(-12px); } }

.crop { position: fixed; inset: 0; z-index: 120; background: rgba(12, 11, 16, .78); display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(6px); }
.crop-card { width: 100%; max-width: 380px; background: #fff; color: #1B1F3B; border-radius: 28px; padding: 22px 20px 20px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.crop-h { margin: 0 0 6px; font: 800 20px Unbounded, sans-serif; }
.crop-p { margin: 0 0 16px; font: 500 14px/1.45 "Golos Text", sans-serif; color: #555B7A; }
.crop-stage { position: relative; width: 300px; height: 300px; margin: 0 auto; border-radius: 24px; overflow: hidden; touch-action: none; cursor: grab; }
.crop-canvas { width: 300px; height: 300px; display: block; }
.crop-mask { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 0 148px, rgba(12,11,16,.55) 150px); }
.crop-mask::after { content: ""; position: absolute; inset: 0; margin: auto; width: 296px; height: 296px; border-radius: 50%; border: 4px dashed #FFC53D; box-sizing: border-box; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 14px 4px 18px; font: 800 22px Unbounded, sans-serif; color: #8B6CFF; }
.crop-zoom span { cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; }
.crop-zoom input { flex: 1; accent-color: #8B6CFF; height: 32px; }
.crop-btns { display: flex; gap: 10px; }
.crop-btns .btn { flex: 1; }

.btn { --c: #FF3D8B; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 18px; background: var(--c); color: #fff; font: 800 16px Unbounded, sans-serif; letter-spacing: -.01em; cursor: pointer; text-decoration: none; box-shadow: 0 6px 0 rgba(0,0,0,.18), 0 14px 30px -10px var(--c); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.btn.ghost { background: #F1EEF8; color: #1B1F3B; box-shadow: 0 4px 0 #DCD6EA; }
.btn.big { min-height: 64px; font-size: 18px; padding: 0 32px; border-radius: 22px; }

/* оплата (демо) */
.pay { position: fixed; inset: 0; z-index: 110; background: rgba(12,11,16,.7); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(6px); }
@media (min-width: 700px) { .pay { align-items: center; } }
.pay-card { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: #fff; color: #1B1F3B; border-radius: 28px 28px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); animation: payIn .3s ease-out; }
@media (min-width: 700px) { .pay-card { border-radius: 28px; } }
@keyframes payIn { from { transform: translateY(40px); opacity: 0; } }
.pay-h { margin: 0 0 4px; font: 800 22px Unbounded, sans-serif; }
.pay-sub { margin: 0 0 16px; font: 500 15px/1.45 "Golos Text", sans-serif; color: #555B7A; }
.pay-plans { display: grid; gap: 10px; margin-bottom: 16px; }
.pay-plan { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 3px solid #ECE8F5; border-radius: 20px; cursor: pointer; background: #fff; text-align: left; font: inherit; color: inherit; }
.pay-plan.on { border-color: #FF3D8B; background: #FFF2F7; }
.pay-plan b { font: 800 17px Unbounded, sans-serif; }
.pay-plan small { display: block; font: 500 13px "Golos Text", sans-serif; color: #555B7A; margin-top: 2px; }
.pay-plan .p { margin-left: auto; font: 800 20px Unbounded, sans-serif; white-space: nowrap; }
.pay-plan .tag { font: 800 10px Unbounded, sans-serif; background: #FF3D8B; color: #fff; padding: 4px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.pay-pick { margin: 0 0 16px; }
.pay-pick h4 { margin: 0 0 8px; font: 800 14px Unbounded, sans-serif; }
.pay-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 240px; overflow: auto; padding: 2px; }
.pay-pick-grid label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #F6F4FB; font: 600 13px "Golos Text", sans-serif; cursor: pointer; min-height: 40px; }
.pay-pick-grid input { accent-color: #FF3D8B; width: 18px; height: 18px; }
.pay-note { margin: 12px 0 0; font: 500 12px/1.45 "Golos Text", sans-serif; color: #8A8FAA; text-align: center; }
.pay-methods { display: flex; justify-content: center; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }
.pay-methods span { font: 700 11px "Golos Text", sans-serif; color: #555B7A; border: 1.5px solid #E2DEEE; border-radius: 8px; padding: 5px 9px; }
.pay-x { float: right; width: 44px; height: 44px; border: 0; border-radius: 14px; background: #F1EEF8; cursor: pointer; font: 700 20px "Golos Text", sans-serif; color: #1B1F3B; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 130; background: #1B1F3B; color: #fff; font: 700 15px "Golos Text", sans-serif; padding: 14px 20px; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.3); animation: payIn .3s ease-out; max-width: calc(100% - 32px); text-align: center; }
