/* Clear actions, a shared time balance and visible paths to rewards. */
:root{--app-safe-bottom:env(safe-area-inset-bottom,0px)}
.app-shell{min-height:var(--app-viewport-height,100svh)}
.rating-page .tabs{position:relative;isolation:isolate;display:inline-grid;grid-template-columns:1fr 1fr;gap:0}
.rating-page .tabs:before{content:'';position:absolute;inset:4px auto 4px 4px;width:calc(50% - 4px);border-radius:7px;background:#382047;z-index:-1;transition:transform .22s ease}
.rating-page .tabs[data-period=all]:before{transform:translateX(100%)}
.rating-page .tab.active{background:transparent}
.ranking-personal-time,.ranking-personal-place strong{font-variant-numeric:tabular-nums}

.sound-stage .night-objects{position:absolute;inset:0;pointer-events:none}
.sound-stage .object-disco{width:23%;height:23%;left:1%;top:2%}
.sound-stage .object-headphones{width:29%;height:29%;right:0;top:35%}
.sound-stage .object-cocktail{width:25%;height:25%;left:0;top:70%}
.sound-stage .spark-one{left:auto;right:6%;top:87%;font-size:15px}
.sound-stage .spark-two{left:7%;top:48%;font-size:13px}
.sound-stage .spark-three{left:auto;right:8%;top:12%;font-size:12px}

/* Keep the complete first screen above navigation, including Telegram chrome. */
@media(max-width:760px){
 body{padding-bottom:calc(78px + var(--app-safe-bottom))}
 .brand-header{height:clamp(46px,8.2svh,62px);height:clamp(46px,calc(var(--app-viewport-height,100svh)*.082),62px)}
 .centered-brand{font-size:25px;gap:7px}
 .centered-brand svg{width:27px;height:27px}
 .home-intro{margin:3px 0 13px}
 .greeting{font-size:18px;gap:6px}
 .greeting-mask{padding:2px 0 4px}
 .mood-emoji{font-size:25px;height:30px;min-width:30px}
 .home-page .night-stage{padding:0 0 12px}
 .night-headline{font-size:clamp(26px,7.7vw,32px);max-width:310px;line-height:1.12}
 .home-page .sound-stage{position:relative;width:clamp(170px,calc(var(--app-viewport-height,100svh) - 360px - var(--app-safe-bottom)),310px);max-width:100%;height:auto;aspect-ratio:1;margin:4px auto 7px}
 .night-stage .timer-value{font-size:clamp(22px,6.7vw,27px);margin-top:8px}
 .night-stage .timer-state{font-size:7px;letter-spacing:1.6px}
 .home-page .hero-footer{margin:0;padding:0;gap:4px}
 .hero-footer .checkin-button{width:min(100%,270px);min-width:0;min-height:48px;padding:12px 18px;font-size:13px;border-radius:13px}
 .hero-footer .how-button{min-height:40px;font-size:11px}
 .home-below{margin-top:22px}
 .mobile-nav{height:calc(64px + var(--app-safe-bottom));padding-bottom:var(--app-safe-bottom)}
 .modal{max-height:calc(var(--app-viewport-height,100dvh) - 28px - var(--app-safe-bottom))}
}
@media(prefers-reduced-motion:reduce){.rating-page .tabs:before{transition:none}}
.ui-icon{vertical-align:middle}
.position-change,.dashboard-growth,[data-rank-movement]{display:inline-flex;align-items:center;gap:4px}
.position-change svg,[data-rank-movement] svg{height:13px;width:13px;flex-shrink:0}
.invite-mini [data-icon=chevron] svg{height:16px;width:16px}
.friend-bubbles>span:last-child svg{width:13px;height:13px}
.home-page .night-reward-card{align-items:center;text-align:center}
.home-page .night-reward-name{display:block;width:100%;text-align:center;align-self:center;margin:0}
.home-page .night-reward-price{justify-content:center;width:100%;gap:7px}
.home-page .monthly-prize img{image-rendering:auto;filter:none}
.home-page .prize-vip .prize-object{padding:5px}
.home-page .prize-phone .prize-object{padding:3px}

.home-dashboard{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:15px;margin:15px 0 43px;text-align:left}
.home-dashboard>button{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:0;min-height:179px;padding:23px;border-radius:23px;color:#edddfa;background:#19131f}
.home-dashboard .dashboard-time{background:radial-gradient(ellipse at 100% 0,#70498645,transparent 75%),#211729}
.dashboard-caption{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.6;color:#bca4cd}
.dashboard-caption svg{height:16px;width:16px;flex-shrink:0}
.dashboard-month{font-size:8px;letter-spacing:1.4px;position:absolute;right:21px;top:27px;color:#9177a4}
.home-dashboard strong{display:block;font-size:34px;line-height:1.5;letter-spacing:-1px;font-weight:600;margin:17px 0 9px;font-variant-numeric:tabular-nums}
.home-dashboard strong small{font-size:13px;margin-left:3px;font-weight:400;letter-spacing:0;color:#ae90c2}
.dashboard-hint{display:flex;align-items:center;gap:9px;font-size:11px;line-height:1.7;margin-top:auto;color:#a88abc}
.dashboard-hint svg{height:14px;width:14px}
.dashboard-growth{position:absolute;right:20px;top:66px;font-size:12px;line-height:1.5;background:#c095e916;color:#c7a4e2;border-radius:9px;padding:5px 7px}
.home-dashboard .dashboard-bonuses{background:linear-gradient(155deg,#241c2e,#16121e)}
.home-dashboard>button:hover{box-shadow:inset 0 0 0 1px #8b6aa744}

.night-limit-label{font-size:10px;line-height:1.7;padding:5px 9px;border-radius:8px;color:#bc9ed1;background:#a67cc118;white-space:nowrap}
.gift-journey{padding:25px;border-radius:24px;background:radial-gradient(ellipse at 100% 0,#65407733,transparent 75%),#1b1423;margin:10px 0 22px;position:relative}
.gift-goal-head{display:flex;justify-content:space-between;align-items:center;gap:15px}
.gift-goal-head>div{min-width:0}
.gift-goal-head .section-kicker{font-size:9px;letter-spacing:1.7px}
.gift-goal-head h3{font-size:22px;font-weight:600;letter-spacing:-.6px;margin:10px 0 7px;line-height:1.4}
.gift-goal-head .text-button{font-size:11px;color:#b89acd;min-height:28px;gap:4px}
.gift-goal-head>img{width:104px;height:104px;object-fit:contain;flex-shrink:0;padding:7px}
.gift-steps{list-style:none;padding:0;margin:20px 0 23px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.gift-steps li{display:flex;align-items:center;gap:8px;color:#9580a3;font-size:12px;line-height:1.6;position:relative}
.step-dot{height:26px;width:26px;display:grid;place-items:center;border:1px solid #8d6ca644;border-radius:50%;background:#272031;color:#b69bc9;flex-shrink:0;font-size:11px}
.step-dot svg{height:14px;width:14px}
.gift-steps .done{color:#d5c0e4}
.done .step-dot{background:#ad87ca;color:#1f142a;border-color:transparent}
.gift-hour-track{display:flex;gap:7px;padding-bottom:24px;margin:0 0 8px}
.gift-hour-track>span{display:block;position:relative;background:#45344f77;border-radius:4px;height:5px;flex:1;min-width:0}
.gift-hour-track i{display:block;height:100%;background:linear-gradient(90deg,#9f72d0,#ddbbf5);border-radius:4px;transition:width .4s}
.gift-hour-track small{position:absolute;top:11px;right:0;color:#90779e;font-size:9px;white-space:nowrap}
.gift-progress-copy{font-size:12px;line-height:1.8;color:#b29ac3;margin:0 0 19px}
.journey-action{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:12px 16px;min-height:44px;font-size:13px;font-weight:600;border-radius:12px;background:#c9a4e6;color:#25132f}
.journey-action svg{width:18px;height:18px}
.gift-detail-copy{font-size:13px!important;color:#b79ac8;line-height:1.8;margin:0 0 22px}
.gift-detail .modal-eyebrow{font-size:10px;line-height:1.7;letter-spacing:1.6px}
.gift-detail h2{font-size:23px;line-height:1.4}
.gift-detail-progress{margin:23px 0 24px}
.gift-detail-progress>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#b49ac6;line-height:1.7}
.gift-detail-progress strong{font-size:12px;white-space:nowrap;font-weight:500;color:#d9bcec}
.gift-meter{height:5px;border-radius:5px;background:#4a355c66;overflow:hidden;margin-top:13px}
.gift-meter>span{display:block;height:100%;background:linear-gradient(90deg,#9a6ac7,#ddb8f8);border-radius:5px}
.gift-state-note{display:flex;align-items:flex-start;gap:12px;margin:15px 0 23px;font-size:13px;line-height:1.8;color:#cbb2dc}
.gift-state-note svg{width:20px;height:20px;flex-shrink:0;margin-top:2px}
.gift-remaining{font-size:14px!important;line-height:1.8;color:#d4b7e7;margin:17px 0 25px}
.spend-preview{display:grid;gap:13px;padding:17px;margin:12px 0 25px;border-radius:15px;background:#cba4e408}
.spend-preview>div{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:12px;line-height:1.8;color:#ad93bf}
.spend-preview strong{font-size:14px;font-weight:600;color:#e4c9f7;white-space:nowrap}
.gift-detail .primary-button{min-height:47px;font-size:13px}
.gift-detail>.text-button{font-size:12px;min-height:44px;gap:8px}
.gift-detail .modal-note{font-size:11px;line-height:1.85;color:#947da3}

.invitation-page{max-width:630px;margin:0 auto}
.invitation-page .profile-back{font-size:12px;margin:4px 0 23px}
.invitation-header{margin-bottom:24px}
.invitation-header .eyebrow{font-size:9px;letter-spacing:1.7px;color:#a487bc}
.invitation-header h1{font-family:var(--font);font-size:32px;font-weight:750;line-height:1.3;letter-spacing:-1.1px;margin:13px 0 0}
.referral-path{padding:27px 28px;background:radial-gradient(ellipse at 100% 0,#7251ad66,transparent 78%),linear-gradient(135deg,#2e243f,#1c1726);border:1px solid #82629d44;border-radius:27px}
.referral-reward{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:32px}
.referral-reward>div>span{font-size:9px;letter-spacing:2px;line-height:1.7;color:#bba4d3;display:block}
.referral-reward strong{font-size:65px;font-weight:650;line-height:1.2;letter-spacing:-2.5px;display:block;margin:9px 0;color:#f1ddff}
.referral-reward small{font-size:13px;line-height:1.8;color:#c0a6d1;display:block;max-width:205px}
.referral-gift{height:93px;width:93px;display:grid;place-items:center;border-radius:26px;transform:rotate(9deg);color:#e4caff;background:linear-gradient(145deg,#b49ae044,#70509044 48%,#44325d);box-shadow:inset 1px 1px 0 #dcc2ff44,inset -1px -1px 1px #b295dc44,0 14px 30px #0003;flex-shrink:0}
.referral-gift svg{height:56px;width:56px;stroke-width:1.3;filter:drop-shadow(0 4px 3px #1d092966)}
.referral-steps{list-style:none;display:grid;gap:24px;padding:0;margin:0;position:relative}
.referral-steps:before{content:'';position:absolute;top:18px;bottom:19px;left:17px;width:1px;background:linear-gradient(#b49bdd66,#9b67b977)}
.referral-steps li{display:flex;align-items:flex-start;gap:16px;position:relative}
.referral-steps li>span{height:35px;width:35px;display:grid;place-items:center;border-radius:50%;font-size:14px;font-weight:600;color:#efdbff;background:#665184;box-shadow:0 0 0 5px #292036;flex-shrink:0;z-index:1}
.referral-steps li:nth-child(2)>span{background:#795a9f}.referral-steps li:nth-child(3)>span{background:#92609c}
.referral-steps strong{font-size:16px;line-height:1.6;display:block;font-weight:650;color:#e5d5ee}
.referral-steps small{font-size:12px;line-height:1.8;color:#ad93bf;display:block;margin-top:3px}
.invite-controls{margin:18px 0;padding:23px;background:#1b1524;border-radius:23px;border:1px solid #76538b22}
.invite-copy-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.invite-copy-head h2{font-size:17px;font-weight:650;margin:0;line-height:1.5;letter-spacing:-.3px}
.copy-invite-pill{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;min-height:38px;border-radius:13px;background:#aa82d523;color:#d6b6ef;font-size:12px}
.copy-invite-pill svg{height:15px;width:15px}
.referral-link{font-size:12px;line-height:1.9;color:#a98ebc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:13px}
.invite-controls .invite-share{display:flex;align-items:center;justify-content:center;width:100%;gap:11px;min-height:51px;font-size:14px;margin:22px 0 0;border-radius:15px;background:linear-gradient(110deg,#af84ec,#b484e8 50%,#997de6);color:#1d122b}
.invite-share svg{width:21px;height:21px}
.referral-stats{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.referral-stats>div{padding:20px;background:linear-gradient(135deg,#221b2d,#17121f);border:1px solid #795b9429;border-radius:20px;min-width:0}
.referral-stats strong{font-size:29px;line-height:1.5;display:block;font-weight:600;color:#d9bced;letter-spacing:-.8px}
.referral-stats span{font-size:11px;line-height:1.8;color:#a68bb7;display:block;margin-top:4px}
.referral-demo{font-size:11px;line-height:1.8;color:#846e92;margin:20px 0 8px}
.referral-teaser{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 90px;text-align:left;align-items:center;gap:20px;margin:26px 0 29px;padding:26px;border-radius:25px;border:1px solid #75528e44;background:radial-gradient(ellipse at 100% 0,#7049a155,transparent 75%),#261c34}
.referral-teaser-copy{display:flex;flex-direction:column;gap:9px}
.referral-teaser-copy>small{font-size:8px;letter-spacing:1.2px;line-height:1.8;color:#b59acc}
.referral-teaser-copy>strong{font-size:39px;line-height:1.3;letter-spacing:-1.4px;font-weight:650;color:#ead9f9}
.referral-teaser-copy>strong>span{font-size:15px;letter-spacing:-.2px;font-weight:500;color:#c6a9db}
.referral-teaser-copy>span{font-size:12px;line-height:1.8;color:#ae90c3}
.referral-teaser-gift{display:grid;place-items:center;height:75px;width:75px;border-radius:21px;rotate:9deg;background:linear-gradient(145deg,#bca0de33,#64447c22);box-shadow:inset 1px 1px 0 #bb98dd33;color:#ccace6}
.referral-teaser-gift svg{width:43px;height:43px;stroke-width:1.3}
.referral-teaser-action{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:15px;color:#d3b5e8;font-size:13px;line-height:1.8}
.referral-teaser-action svg{height:18px;width:18px}

@media(max-width:760px){
 .home-dashboard{grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 34px}
 .home-dashboard>button{padding:20px;min-height:159px;border-radius:22px}
 .home-dashboard .dashboard-time{grid-column:1/-1;min-height:172px;padding:22px}
 .dashboard-caption{font-size:11px;gap:6px}
 .dashboard-caption svg{width:15px;height:15px}
 .home-dashboard strong{font-size:33px;margin-top:15px;margin-bottom:11px}
 .home-dashboard .dashboard-time strong{font-size:38px;margin-top:10px}
 .home-dashboard strong small{font-size:12px}
 .dashboard-hint{font-size:11px;gap:7px}
 .dashboard-month{right:22px;top:26px;font-size:8px}
 .dashboard-growth{top:61px;right:17px;font-size:11px;padding:4px 6px}
 .home-page .night-reward-name{font-size:13px;width:100%;text-align:center}
 .home-page .night-reward-price{font-size:12px;justify-content:center}
 .home-page .night-reward-card{min-height:168px}
 .night-limit-label{font-size:9px;padding:4px 7px}
 .gift-journey{padding:21px;border-radius:23px;margin-top:4px;margin-bottom:18px}
 .gift-goal-head h3{font-size:20px;margin-top:8px}
 .gift-goal-head>img{width:92px;height:92px;padding:5px}
 .gift-goal-head .section-kicker{font-size:8px;letter-spacing:1.4px}
 .gift-goal-head .text-button{font-size:10px}
 .gift-steps{grid-template-columns:1fr;gap:14px;margin:20px 0 23px;position:relative}
 .gift-steps:before{content:'';position:absolute;top:13px;bottom:13px;left:12px;width:1px;background:#8d6ca644}
 .gift-steps li{font-size:13px;gap:12px;min-height:26px}
 .step-dot{z-index:1;box-shadow:0 0 0 3px #1b1423}
 .gift-progress-copy{font-size:12px;line-height:1.85;margin-bottom:16px}
 .journey-action{font-size:12px;min-height:45px}
 .gift-hour-track{gap:5px}
 .gift-detail .night-reward-art{height:140px;width:180px}
 .gift-detail h2{font-size:22px;margin-top:14px}
 .gift-detail-progress{margin:18px 0 21px}
 .gift-detail .modal-note{font-size:10px}
 .gift-detail .primary-button{font-size:12px}
 .gift-detail-copy{font-size:12px!important;margin-bottom:16px}
 .gift-state-note{font-size:12px}
 .spend-preview{padding:14px}
 .spend-preview>div{font-size:11px;gap:12px}
 .spend-preview strong{font-size:13px}
 .invitation-header h1{font-size:28px;line-height:1.3;letter-spacing:-.9px}
 .invitation-header .eyebrow{font-size:8px;letter-spacing:1.4px}
 .referral-path{padding:24px 21px;border-radius:25px}
 .referral-reward{margin-bottom:29px;gap:10px}
 .referral-reward strong{font-size:59px;letter-spacing:-2px}
 .referral-reward small{font-size:12px;max-width:180px}
 .referral-reward>div>span{font-size:8px;letter-spacing:1.7px}
 .referral-gift{height:73px;width:73px;border-radius:22px}
 .referral-gift svg{height:45px;width:45px}
 .referral-steps{gap:23px}
 .referral-steps li{gap:13px}
 .referral-steps strong{font-size:14px}
 .referral-steps small{font-size:11px;line-height:1.8}
 .invite-controls{padding:21px;border-radius:23px}
 .invite-copy-head h2{font-size:16px}
 .copy-invite-pill{font-size:11px;padding:9px 11px;min-height:38px}
 .copy-invite-pill svg{height:14px;width:14px}
 .referral-link{font-size:11px;margin-top:13px}
 .invite-controls .invite-share{font-size:13px;min-height:49px;margin-top:20px}
 .referral-stats>div{padding:18px}
 .referral-stats strong{font-size:29px}
 .referral-stats span{font-size:10px}
 .referral-demo{font-size:10px}
 .referral-teaser{padding:22px;grid-template-columns:minmax(0,1fr) 65px;gap:18px}
 .referral-teaser-copy>strong{font-size:34px}
 .referral-teaser-copy>strong>span{font-size:13px}
 .referral-teaser-copy>small{font-size:7px;letter-spacing:1px}
 .referral-teaser-gift{height:61px;width:61px;border-radius:18px}
 .referral-teaser-gift svg{height:36px;width:36px}
}
@media(max-width:360px){
 .home-dashboard>button{padding:18px;min-height:151px}
 .home-dashboard .dashboard-time{padding:21px}
 .home-dashboard strong{font-size:30px}
 .home-dashboard .dashboard-time strong{font-size:35px}
 .dashboard-growth{right:12px;top:60px;padding:3px 5px;font-size:10px}
 .dashboard-caption{font-size:10px}
 .gift-journey{padding:19px}
 .gift-goal-head h3{font-size:18px}
 .gift-goal-head>img{width:78px;height:88px}
 .gift-steps li{font-size:12px}
 .home-page .night-reward-card{min-height:159px;padding-left:4px;padding-right:4px}
 .home-page .night-reward-name{font-size:11px}
 .night-limit-label{font-size:8px}
 .referral-path{padding:22px 18px}
 .referral-reward strong{font-size:51px}
 .referral-gift{height:61px;width:61px;border-radius:18px}
 .referral-gift svg{height:39px;width:39px}
 .referral-steps li{gap:12px}
 .referral-steps strong{font-size:13px}
 .referral-steps small{font-size:10px}
 .referral-steps li>span{height:31px;width:31px;font-size:12px}
 .referral-steps:before{left:15px}
 .invite-controls{padding:19px}
 .invite-copy-head h2{font-size:15px}
 .copy-invite-pill{font-size:10px;gap:5px;padding:9px}
 .invitation-header h1{font-size:25px}
 .referral-stats{gap:10px}
 .referral-stats>div{padding:17px}
 .referral-stats span{font-size:10px;line-height:1.8}
}
