html,
body{
    width:100%;
    max-width:100%;
    min-height:100%;
    overflow-x:hidden;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

body{
    overflow-y:auto;
    touch-action:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:none;
}

.checkin-page{
    min-height:100vh;
    min-height:100dvh;
    padding:
        calc(20px + env(safe-area-inset-top))
        calc(16px + env(safe-area-inset-right))
        calc(24px + env(safe-area-inset-bottom))
        calc(16px + env(safe-area-inset-left));
    color:#fff;
    font-family:Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 18% 0%,rgba(229,9,20,.30),transparent 34%),
        radial-gradient(circle at 85% 8%,rgba(255,184,0,.12),transparent 26%),
        linear-gradient(135deg,#000 0%,#130000 48%,#030303 100%);
}

.checkin-page::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
        linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
    background-size:42px 42px;
    opacity:.34;
    mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 78%);
    z-index:-2;
}

.checkin-page .page-menu-btn{
    margin-bottom:16px;
}

.checkin-wrap{
    width:100%;
    max-width:760px;
    margin:0 auto;
}

.checkin-card{
    width:100%;
    position:relative;
    overflow:hidden;
    border:1px solid rgba(229,9,20,.23);
    border-radius:26px;
    padding:22px;
    background:
        radial-gradient(circle at 100% 0%,rgba(229,9,20,.17),transparent 34%),
        linear-gradient(155deg,rgba(19,19,19,.97),rgba(8,8,8,.98));
    box-shadow:
        0 18px 46px rgba(0,0,0,.48),
        0 0 30px rgba(229,9,20,.14),
        inset 0 1px 0 rgba(255,255,255,.052);
}

.checkin-card::after{
    content:"";
    position:absolute;
    right:-42px;
    top:120px;
    width:140px;
    height:210px;
    border-radius:999px;
    background:linear-gradient(180deg,rgba(229,9,20,.26),rgba(255,184,0,.08));
    filter:blur(2px);
    opacity:.72;
    pointer-events:none;
}

.checkin-hero,
.action-row,
.checkin-info,
.progress-card,
#checkinBtn,
.checkin-status{
    position:relative;
    z-index:1;
}

.checkin-hero{
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(170px,.72fr);
    gap:16px;
    align-items:stretch;
    margin-bottom:16px;
}

.checkin-badge{
    display:inline-flex;
    align-items:center;
    width:max-content;
    margin-bottom:10px;
    padding:6px 11px;
    border-radius:999px;
    background:rgba(255,184,0,.09);
    border:1px solid rgba(255,184,0,.30);
    color:#ffcf66;
    font-size:11px;
    font-weight:900;
    letter-spacing:.55px;
}

.hero-copy h1{
    margin-bottom:8px;
    font-size:clamp(26px,7vw,36px);
    line-height:1.04;
    letter-spacing:-.7px;
}

.hero-copy p{
    max-width:470px;
    color:#c8c8c8;
    font-size:14px;
    line-height:1.65;
}

.coin-balance{
    min-height:132px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:16px 14px;
    text-align:center;
    border-radius:20px;
    background:
        radial-gradient(circle at top,rgba(255,184,0,.16),transparent 52%),
        rgba(255,255,255,.045);
    border:1px solid rgba(255,184,0,.24);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 10px 24px rgba(0,0,0,.22);
}

.coin-balance span,
.coin-balance small{
    color:#a8a8a8;
    font-size:12px;
}

.coin-balance strong{
    display:block;
    margin:5px 0 4px;
    color:#ffbf35;
    font-size:34px;
    font-weight:950;
    letter-spacing:-.8px;
    text-shadow:0 0 16px rgba(255,184,0,.20);
}

.action-row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-bottom:14px;
}

.action-btn{
    min-height:62px;
    padding:12px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.085);
    color:#fff;
    text-align:left;
    cursor:pointer;
    background:
        linear-gradient(145deg,rgba(255,255,255,.070),rgba(255,255,255,.030));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
    transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}

.action-btn strong,
.action-btn span{
    display:block;
}

.action-btn strong{
    margin-bottom:4px;
    font-size:14px;
    font-weight:850;
}

.action-btn span{
    color:#a9a9a9;
    font-size:12px;
    line-height:1.35;
}

.action-btn:hover{
    border-color:rgba(255,184,0,.28);
    background:linear-gradient(145deg,rgba(255,184,0,.08),rgba(229,9,20,.055));
}

.action-btn:active,
#checkinBtn:active{
    transform:scale(.985);
}

.checkin-info{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-bottom:14px;
}

.info-box{
    padding:13px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.065);
    background:rgba(255,255,255,.040);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.info-box span{
    display:block;
    margin-bottom:5px;
    color:#999;
    font-size:12px;
}

.info-box strong{
    color:#fff;
    font-size:18px;
    font-weight:850;
}

.progress-card{
    margin-bottom:14px;
    padding:14px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.065);
    background:rgba(0,0,0,.20);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}

.progress-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom:13px;
}

.progress-head strong{
    font-size:14px;
}

.progress-head span{
    max-width:190px;
    color:#999;
    font-size:12px;
    line-height:1.35;
    text-align:right;
}

.checkin-progress{
    --checkin-point-size:27px;
    position:relative;
    padding:0 calc(var(--checkin-point-size) / 2);
}

.checkin-line{
    height:7px;
    width:100%;
    overflow:hidden;
    border-radius:999px;
    background:#252525;
    box-shadow:inset 0 0 8px rgba(0,0,0,.72);
}

#checkinFill{
    width:0%;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#e50914,#ffb800);
    box-shadow:0 0 14px rgba(255,184,0,.26);
    transition:width .3s ease;
}

.checkin-points{
    display:flex;
    justify-content:space-between;
    gap:0;
    margin-top:12px;
}

.checkin-points span{
    width:var(--checkin-point-size);
    height:var(--checkin-point-size);
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.10);
    background:#1e1e1e;
    color:#aaa;
    font-size:11px;
    line-height:1;
}

.checkin-points span.done{
    border-color:rgba(255,184,0,.44);
    background:linear-gradient(135deg,#e50914,#9b0008);
    color:#fff;
    box-shadow:0 0 12px rgba(229,9,20,.38);
}

#checkinBtn{
    width:100%;
    min-height:48px;
    padding:14px;
    border:none;
    border-radius:16px;
    color:#fff;
    background:
        linear-gradient(135deg,rgba(229,9,20,.95),rgba(120,0,7,.98));
    box-shadow:
        0 12px 24px rgba(229,9,20,.20),
        inset 0 1px 0 rgba(255,255,255,.10);
    cursor:pointer;
    font-size:15px;
    font-weight:900;
    transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;
}

#checkinBtn:hover:not(:disabled){
    filter:brightness(1.05);
    box-shadow:
        0 14px 28px rgba(229,9,20,.24),
        inset 0 1px 0 rgba(255,255,255,.11);
}

#checkinBtn:disabled{
    cursor:not-allowed;
    color:#d4d4d4;
    background:linear-gradient(135deg,#343434,#222);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055);
}

.checkin-status{
    min-height:20px;
    margin-top:12px;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.055);
    color:#aaa;
    background:rgba(255,255,255,.028);
    font-size:13px;
    line-height:1.45;
    text-align:center;
}

@media(max-width:560px){
    .checkin-page{
        padding:
            calc(17px + env(safe-area-inset-top))
            calc(14px + env(safe-area-inset-right))
            calc(20px + env(safe-area-inset-bottom))
            calc(14px + env(safe-area-inset-left));
    }

    .checkin-card{
        padding:18px;
        border-radius:22px;
        box-shadow:
            0 10px 26px rgba(0,0,0,.38),
            0 0 16px rgba(229,9,20,.10),
            inset 0 1px 0 rgba(255,255,255,.045);
    }

    .checkin-card::after{
        right:-68px;
        top:150px;
        opacity:.45;
    }

    .checkin-hero{
        grid-template-columns:1fr;
        gap:12px;
    }

    .coin-balance{
        min-height:auto;
        padding:14px;
    }

    .coin-balance strong{
        font-size:32px;
    }

    .action-row{
        grid-template-columns:1fr 1fr;
    }

    .action-btn{
        min-height:66px;
        padding:11px;
    }

    .action-btn strong{
        font-size:13px;
    }

    .action-btn span{
        font-size:11px;
    }

    .checkin-info{
        grid-template-columns:1fr 1fr;
    }

    .progress-head{
        display:block;
    }

    .progress-head span{
        display:block;
        max-width:none;
        margin-top:4px;
        text-align:left;
    }
}

@media(max-width:360px){
    .action-row,
    .checkin-info{
        gap:8px;
    }

    .action-btn{
        min-height:72px;
    }

    .checkin-progress{
        --checkin-point-size:24px;
    }

    .checkin-points span{
        font-size:10px;
    }
}

html,
body{
    overflow-x:hidden;
}

.row-scroll{
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    touch-action:auto;
}
