/* Dynamic ASP.NET content helpers. The page geometry comes from the original design reference CSS. */
.reference-rich-copy{white-space:pre-line;line-height:1.75}.reference-empty{width:100%;padding:3rem 1rem;text-align:center;color:var(--clr-dark-blue);font-weight:700}.reference-qr-status{display:block;margin-top:.4rem;font-size:.75rem;color:var(--clr-blue)}
.btn-form-wrap.grow{display:flex}.btn-form-wrap.grow .btn-main{width:100%}.reference-video-frame{position:relative;width:min(95%,42rem);aspect-ratio:4/3;overflow:hidden;border-radius:.75rem;background:#081424;box-shadow:0 1rem 2rem rgba(0,0,0,.25)}.reference-video-frame video{width:100%;height:100%;object-fit:cover}.reference-scan-corners{position:absolute;inset:12%;border:3px solid #ffdc36;border-radius:1rem;pointer-events:none}.reference-scanner-result{width:min(95%,42rem);margin-top:1rem}.scanner-manual{position:relative;z-index:10;width:min(92%,42rem);margin:1rem auto}.scanner-manual>div{display:flex;gap:.5rem}.scanner-manual input{min-height:2.75rem;flex:1;padding:.5rem .75rem;border:1px solid #8aa6ba;border-radius:.5rem}.scanner-manual label{display:block;margin-bottom:.35rem}.scan-booth-bg{min-height:100vh}
.event-login-view{justify-content:flex-start}.event-login-content{position:relative;z-index:10;display:flex;flex:1;flex-direction:column;justify-content:center;width:min(100%,30rem);margin:0 auto;padding:1.5rem 1rem 8rem}.event-login-intro{display:flex;align-items:center;gap:1rem;margin-bottom:1.25rem;padding:1rem;border:2px solid var(--clr-blue);border-radius:.75rem;background:rgba(255,255,255,.9);box-shadow:0 .5rem 1.5rem rgba(0,79,145,.1)}.event-login-intro .game-badge{position:static;flex:0 0 auto}.event-login-avatar{overflow:hidden;border-color:#ffb800;background:#fff}.event-login-avatar img{width:100%;height:100%;object-fit:cover}.event-login-intro p,.event-login-intro h2,.event-login-intro span,.event-login-intro small{display:block;margin:0;max-width:100%;overflow-wrap:anywhere}.event-login-intro p{color:var(--clr-blue);font-size:.75rem;font-weight:800}.event-login-intro h2{color:var(--clr-dark-blue);font-size:1.25rem;line-height:1.2}.event-login-intro span,.event-login-intro small{color:#52687a;font-size:.72rem}.event-login-intro small{margin-top:.2rem;font-weight:700}.event-social-login{display:grid;gap:.75rem}.event-social-login .btn-main{width:100%}.event-login-divider{display:flex;align-items:center;gap:.75rem;margin:1.25rem 0;color:#64748b;font-size:.75rem}.event-login-divider::before,.event-login-divider::after{content:"";height:1px;flex:1;background:#b9dbea}.event-member-login-form{display:grid;gap:.75rem;width:100%}.event-member-login-form .form-item{display:grid;width:100%;max-width:none;gap:.35rem}.event-member-login-form .form-item input{box-sizing:border-box;width:100%;min-width:0;min-height:2.85rem;padding:.55rem .75rem;border:2px solid var(--clr-blue);border-radius:.5rem;background:#f5f7fa}.event-login-footer{position:absolute;right:0;bottom:0;left:0;min-height:7rem}.event-login-footer .footer-decorate{position:absolute;inset:auto 0 0}.event-login-footer .footer-decorate img{width:100%}
.reference-booth-select{position:relative;z-index:10;display:flex;flex:1;flex-direction:column;justify-content:center;gap:1rem;padding:1rem}.reference-booth-select>p{text-align:center}.reference-booth-options{display:grid;gap:.65rem}.reference-booth-options .btn-main{width:100%;justify-content:space-between;text-align:left}.reference-booth-options .btn-main span{display:grid}.reference-booth-options small{font-size:.7rem}.event-admin-theme{background:#f7fbfd}.event-admin-theme .admin-nav{background:#075495}.event-admin-theme .admin-topbar{border-bottom:3px solid #20b5dc}.event-admin-theme .button--primary{background:#20b5dc}.event-admin-theme .eyebrow{color:#159bc5}.event-admin-theme .admin-section,.event-admin-theme .data-region,.event-admin-theme .form-section{border-color:#a9dbea}
@media(max-width:600px){.reference-video-frame{aspect-ratio:3/4}.scanner-manual>div{align-items:stretch;flex-direction:column}}

/* Keep database-driven labels inside the untouched reference geometry. */
.head-wrap,.footer-wrap,.text-title,.user-wrap,.user-info-box,.user-info-detail,.footer-btn-wrap,.btn-main,.btn-text{min-width:0;max-width:100%}.head-wrap,.footer-wrap{overflow:hidden}.text-title h1{margin-inline:auto;max-width:min(100%,28ch);line-height:1.15;text-wrap:balance}.text-title h1,.text-title,.text-detail-head,.text-detail-name,.text-detail-id,.btn-text{overflow-wrap:anywhere;word-break:break-word}.user-info-detail>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.footer-btn-wrap{width:100%}.btn-text{overflow:hidden;line-height:1.3;text-align:center;text-overflow:ellipsis}.footer-decorate{pointer-events:none}
.event-social-login .social-google{border:1px solid #dadce0;color:#3c4043;background:#fff;box-shadow:0 1px 2px rgba(60,64,67,.18)}.event-social-login .social-google .btn-text{color:#3c4043}.event-social-login .social-apple{border:1px solid #000;color:#fff;background:#000}.event-social-login .social-apple i,.event-social-login .social-apple .btn-text{color:#fff}.event-social-login .social-google:hover{background:#f8f9fa}.event-social-login .social-apple:hover{background:#202124}
.event-login-intro,.event-social-login .btn-main,.event-member-login-form .form-item input,.event-member-login-form .btn-main{border-radius:.75rem}.event-member-login-form .form-item input:focus{border-color:var(--clr-dark-blue);outline:0;box-shadow:0 0 0 3px rgba(32,181,220,.18)}
.event-member-login-form .form-item{position:relative}.event-login-input{position:relative;display:flex;align-items:center;width:100%;min-width:0}.event-login-input>i{position:absolute;z-index:2;left:.9rem;color:var(--clr-blue);pointer-events:none}.event-member-login-form .event-login-input>input{padding-left:2.6rem;padding-right:2.75rem}.event-password-toggle{position:absolute;z-index:3;right:.45rem;width:2.25rem;height:2.25rem;display:grid;place-items:center;border:0;border-radius:.5rem;color:#52687a;background:transparent;cursor:pointer}.event-password-toggle:hover,.event-password-toggle:focus-visible{color:var(--clr-dark-blue);background:rgba(32,181,220,.12);outline:0}.event-member-login-form keeper-lock{display:none!important}
.reference-page-footer{position:absolute;inset:auto 0 0;min-height:1px;pointer-events:none}.admin-footer{padding:1rem 2rem;color:#62798b;font-size:.68rem;font-weight:800;letter-spacing:.12em;text-align:center}

/* Event not found */
.event-not-found-page{position:relative;isolation:isolate;width:min(100%,46rem);min-height:100dvh;margin:0 auto;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;color:var(--clr-dark-blue);background:linear-gradient(180deg,#f7fbfe 0%,#edf8fd 66%,#d9f3fc 100%);box-shadow:0 0 3rem rgba(4,54,91,.14)}
.event-not-found-header{position:relative;z-index:3;display:flex;align-items:center;gap:.75rem;min-height:5.25rem;padding:1rem clamp(1rem,4vw,2rem);color:#f8fbfd;background-color:var(--clr-lite-blue);background-image:url('/event-design/images/head-genplay-cover.webp');background-position:center 30%;background-size:cover}
.event-not-found-header div{display:grid;gap:.05rem}.event-not-found-header p{margin:0;font-size:.7rem;font-weight:700;letter-spacing:.16em}.event-not-found-header strong{font-size:1.15rem;line-height:1.15}
.event-not-found-main{position:relative;z-index:2;align-self:center;display:grid;grid-template-columns:minmax(12rem,.82fr) minmax(17rem,1.18fr);align-items:center;gap:clamp(1.25rem,5vw,3rem);padding:clamp(2rem,7vw,4rem) clamp(1.25rem,5vw,3.5rem) clamp(6.5rem,13vw,8rem)}
.event-not-found-visual{position:relative;display:grid;place-items:center;aspect-ratio:1}.event-not-found-visual::before{content:"";position:absolute;inset:8%;border:1px solid rgba(15,158,215,.24);border-radius:50%;background:rgba(248,251,253,.72);box-shadow:0 1.25rem 3rem rgba(4,54,91,.12)}
.event-not-found-visual img{position:relative;width:min(78%,13rem);height:auto;object-fit:contain;filter:drop-shadow(0 .8rem 1rem rgba(4,54,91,.14))}.event-not-found-orbit{position:absolute;inset:1%;border:2px dashed rgba(15,158,215,.28);border-radius:50%}.event-not-found-orbit::after{content:"";position:absolute;top:7%;right:12%;width:.8rem;height:.8rem;border-radius:50%;background:#1bb1e7;box-shadow:0 0 0 .4rem rgba(27,177,231,.16)}
.event-not-found-copy{min-width:0}.event-not-found-code{margin:0 0 .4rem;color:var(--clr-blue);font-size:.72rem;font-weight:800;letter-spacing:.12em}.event-not-found-copy h1{margin:0;color:var(--clr-dark-blue);font-size:clamp(2rem,7vw,3.25rem);line-height:1.08;letter-spacing:-.035em}.event-not-found-message{max-width:34rem;margin:.85rem 0 1.25rem;color:#52687a;line-height:1.7;overflow-wrap:anywhere}
.event-not-found-reference{display:flex;align-items:center;gap:.65rem;width:fit-content;max-width:100%;margin:0 0 1.5rem;padding:.55rem .75rem;border:1px solid #b7dce9;border-radius:.6rem;background:rgba(248,251,253,.78)}.event-not-found-reference dt{color:#60798b;font-size:.68rem;font-weight:700}.event-not-found-reference dd{min-width:0;margin:0;color:var(--clr-dark-blue);font-size:.8rem;font-weight:800;overflow-wrap:anywhere}
.event-not-found-actions{display:flex;flex-wrap:wrap;gap:.65rem}.event-not-found-actions .btn-main{min-height:3rem;min-width:9.5rem;border:1px solid transparent;cursor:pointer}.event-not-found-back{color:var(--clr-dark-blue);border-color:#a9cfdd!important;background:#f8fbfd}.event-not-found-back:hover{border-color:var(--clr-blue)!important;background:#e7f6fc}
.event-not-found-footer{position:relative;z-index:3;min-height:6.5rem;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:.15rem;padding:1rem 1rem 1.2rem;color:#f8fbfd;text-align:center}.event-not-found-footer span{font-size:.68rem;font-weight:800;letter-spacing:.12em}.event-not-found-footer small{font-size:.65rem}.event-not-found-footer img{position:absolute;z-index:-1;inset:auto 0 0;width:100%;height:100%;object-fit:cover;object-position:top center}.event-not-found-decor{position:absolute;z-index:1;width:12rem;pointer-events:none;user-select:none}.event-not-found-decor--green{right:-6rem;bottom:6rem}.event-not-found-decor--yellow{left:-6rem;bottom:8rem}
@media(max-width:600px){.event-not-found-main{grid-template-columns:1fr;justify-items:center;text-align:center;padding-top:1.5rem}.event-not-found-visual{width:min(56vw,12rem)}.event-not-found-message{margin-inline:auto}.event-not-found-reference{margin-inline:auto}.event-not-found-actions{justify-content:center;width:100%}.event-not-found-actions .btn-main{flex:1 1 9rem}.event-not-found-decor{width:9rem}.event-not-found-footer small{max-width:30ch}}
@media(max-width:360px){.event-not-found-header{min-height:4.75rem}.event-not-found-main{padding-inline:1rem}.event-not-found-actions{display:grid;grid-template-columns:1fr}.event-not-found-actions .btn-main{width:100%}}

/* Scanner feedback and long database content */
.scanner-status{width:min(95%,42rem);min-height:2.75rem;display:flex;align-items:center;justify-content:center;margin-top:.8rem;padding:.6rem .85rem;border:1px solid rgba(169,219,234,.72);border-radius:.65rem;color:var(--clr-dark-blue);background:rgba(247,251,253,.88);font-size:.85rem;font-weight:700;overflow-wrap:anywhere}
.scanner-status[data-state="busy"]{color:#075495;background:#e1f5fc}.scanner-status[data-state="ok"]{color:#14613c;border-color:#8fd2ad;background:#e9f8ef}.scanner-status[data-state="error"]{color:#9c2430;border-color:#efadb4;background:#fff0f1}
.reference-scanner-result h2,.reference-scanner-result li span{overflow-wrap:anywhere}.reference-scanner-result li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.65rem 0;border-bottom:1px solid #d5e6ed}.reference-scanner-result li:last-child{border-bottom:0}.reference-scanner-result li button{min-height:2.75rem;padding:.55rem .75rem;border:0;border-radius:.55rem;color:#f8fbfd;background:var(--clr-blue);font-weight:700;cursor:pointer}.reference-scanner-result li button:disabled{color:#637986;background:#d9e4e9;cursor:not-allowed}.scanner-item-code{display:block;margin:1rem 0;padding:.75rem;border:2px dashed #1bb1e7;border-radius:.65rem;color:var(--clr-dark-blue);background:#fff8d9;text-align:center;font-size:1.1rem;font-weight:800;overflow-wrap:anywhere}.scanner-next{width:100%;min-height:3rem;margin-top:1rem}
.detail-content>img{width:100%;max-height:18rem;object-fit:cover;border-radius:.75rem}.detail-content,.reference-rich-copy,.item-card-head-text,.item-card-detail{overflow-wrap:anywhere}.stamper-card>div:first-child{min-width:0}.stamper-card small{display:block;margin-top:.25rem;color:#dcebf2;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:520px){.reference-scanner-result li{grid-template-columns:1fr}.reference-scanner-result li button{width:100%}.scanner-status{font-size:.78rem}}

/* Cohesive member-event pages: typography, cards, headers and action bars. */
.event-home-view,.event-stamper-view,.event-detail-view,.event-rewards-view,.event-login-view{display:flex;flex-direction:column;color:#08345a;background-color:#fff;background-image:linear-gradient(135deg,rgba(255,218,56,.11) 0 1px,transparent 1px 22px),linear-gradient(180deg,rgba(32,181,220,.035),transparent 42%)}
.event-home-view .head-wrap,.event-stamper-view .head-wrap,.event-detail-view .head-wrap,.event-rewards-view .head-wrap,.event-login-view .head-wrap{flex:0 0 auto;border-radius:0 0 12px 12px;background-position:center;background-size:cover}
.event-home-view .text-title h1,.event-stamper-view .text-title h1,.event-detail-view .text-title h1,.event-rewards-view .text-title h1,.event-login-view .text-title h1{font-size:1.2rem;font-weight:800;letter-spacing:-.02em;text-shadow:0 1px 1px rgba(0,55,95,.15)}
.event-detail-view .head-wrap.small-head,.event-rewards-view .head-wrap.small-head,.event-login-view .head-wrap.small-head{min-height:76px;padding:14px 20px}

/* Large event identity header. */
.event-home-view .head-wrap.big-head,.event-stamper-view .head-wrap.big-head{box-sizing:border-box;display:flex;height:auto;min-height:148px;flex-direction:column;justify-content:flex-start;padding:14px 16px 12px;gap:8px}
.event-home-view .head-wrap.big-head .text-title,.event-stamper-view .head-wrap.big-head .text-title{position:relative;inset:auto;width:100%;height:auto;flex:0 0 auto;text-align:center}
.event-home-view .head-wrap.big-head .user-wrap,.event-stamper-view .head-wrap.big-head .user-wrap{position:relative;inset:auto;display:grid;width:100%;height:auto;min-height:78px;grid-template-columns:82px minmax(0,1fr);align-items:center;margin:0}
.event-home-view .game-badge-wrap,.event-stamper-view .game-badge-wrap{position:relative;z-index:2;width:82px;height:82px}
.event-home-view .game-badge,.event-stamper-view .game-badge{width:76px;height:76px;border-width:4px;box-shadow:0 5px 14px rgba(4,54,91,.18)}
.event-home-view .user-info-box,.event-stamper-view .user-info-box{box-sizing:border-box;width:calc(100% + 10px);min-height:66px;margin-left:-10px;padding:9px 12px 9px 20px;border:2px solid #fff;border-radius:8px;background:#0870bd;box-shadow:0 5px 14px rgba(4,54,91,.12)}
.event-home-view .user-info-detail,.event-stamper-view .user-info-detail{display:flex;height:auto;min-height:44px;flex-direction:column;justify-content:center;gap:1px;text-align:left}
.event-home-view .user-info-detail>*,.event-stamper-view .user-info-detail>*{position:static;width:100%;height:auto;line-height:1.25;color:#fff}
.event-home-view .text-detail-head,.event-stamper-view .text-detail-head{font-size:.8rem;font-weight:800}
.event-home-view .text-detail-name,.event-stamper-view .text-detail-name{font-size:.76rem}
.event-home-view .text-detail-id,.event-stamper-view .text-detail-id{font-size:.73rem;font-weight:800;color:#ffe04b}
.event-home-view .head-wrap.big-head .user-wrap,.event-stamper-view .head-wrap.big-head .user-wrap{max-width:340px;grid-template-columns:74px minmax(0,1fr);margin-inline:auto}.event-home-view .game-badge-wrap,.event-stamper-view .game-badge-wrap{z-index:3;width:78px;height:78px;transform:translateX(6px)}.event-home-view .game-badge,.event-stamper-view .game-badge{width:72px;height:72px;border:4px solid #1bb1e7;background:#fff}.event-home-view .user-info-box,.event-stamper-view .user-info-box{width:calc(100% + 4px);min-height:70px;margin-left:-4px;padding:10px 12px 10px 20px;border-color:rgba(255,255,255,.94);background:linear-gradient(135deg,#0868b4,#075495)}.event-home-view .user-info-detail,.event-stamper-view .user-info-detail{gap:3px}.event-home-view .text-detail-head,.event-stamper-view .text-detail-head{font-size:.85rem;line-height:1.25}.event-home-view .text-detail-id,.event-stamper-view .text-detail-id{display:flex;align-items:center;gap:6px;color:#ffe04b}.event-home-view .text-detail-id span{display:inline-flex;padding:2px 5px;border-radius:4px;color:#fff;background:rgba(4,54,91,.45);font-size:.58rem;letter-spacing:.04em}

/* Content rhythm and cards. */
.event-stamper-view .stamper-main-wrap,.event-detail-view .detail-main-wrap,.event-rewards-view .item-main-wrap{box-sizing:border-box;height:auto;min-height:0;flex:1;align-content:start;padding:24px 20px 104px}
.event-stamper-view .stamper-main-wrap{display:grid;gap:12px}
.event-stamper-view .stamper-card{box-sizing:border-box;width:100%;max-width:340px;min-height:82px;margin:0 auto;padding:14px 16px;border:2px solid #d6e4eb;border-radius:10px;background:#f7fbfd;box-shadow:0 8px 20px rgba(4,54,91,.08)}
.event-stamper-view .stamper-card--pending{border-color:#1bb1e7}.event-stamper-view .stamper-card--done{border-color:#31ad72;background:#eefaf3}
.event-stamper-view .stamper-card__title{margin:0;color:#08345a;font-size:1rem;line-height:1.35}.event-stamper-view .stamper-card small{color:#52687a;font-size:.78rem}
.event-stamper-view .stamper-card__status{width:34px;height:34px;border-width:2px;background:#fff}
.event-detail-view .detail-main-wrap{display:block;padding-top:28px}.event-detail-view .detail-content{box-sizing:border-box;width:100%;max-width:340px;margin:0 auto;padding:20px;border:1px solid #cae4ee;border-radius:12px;background:rgba(255,255,255,.94);box-shadow:0 10px 26px rgba(4,54,91,.09);text-align:left}
.event-detail-view .detail-content>img{margin-bottom:16px}.event-detail-view .detail-content p{margin:.55rem 0;color:#405d73;line-height:1.75}.event-detail-view .detail-content p:first-of-type{display:inline-flex;margin-top:0;padding:.35rem .7rem;border-radius:999px;color:#075495;background:#e4f6fc;font-size:.78rem;font-weight:800}
.event-detail-view .detail-content h2{margin:.35rem 0 .15rem;color:#08345a;font-size:1.15rem;line-height:1.35}
.event-rewards-view .item-main-wrap{display:block;padding-top:24px}.event-rewards-view .item-main-wrap>p{max-width:340px;margin:0 auto 14px;padding:10px 14px;border-radius:10px;color:#075495;background:#e4f6fc;text-align:center;font-size:.88rem;font-weight:700;line-height:1.5}
.event-rewards-view .item-card{box-sizing:border-box;width:100%;max-width:340px;margin:0 auto 12px;overflow:hidden;border:1px solid #cae4ee;border-radius:10px;background:#f8fbfd;box-shadow:0 8px 20px rgba(4,54,91,.08)}
.event-rewards-view .item-card-head{padding:11px 16px;color:#fff;background:#075495;border-bottom:0}.event-rewards-view .item-card-head-text{color:#fff;font-size:.78rem;line-height:1.35}.event-rewards-view .item-card-detail{padding:12px 16px;color:#405d73;background:#f8fbfd}.event-rewards-view .item-card-detail p{margin:0 0 8px;color:#08345a;line-height:1.5}.event-rewards-view .item-card-detail>*:last-child{margin-bottom:0}

/* One footer/action system on every member page. */
.event-home-view .footer-wrap,.event-stamper-view .footer-wrap,.event-detail-view .footer-wrap,.event-rewards-view .footer-wrap{position:relative;inset:auto;box-sizing:border-box;min-height:72px;flex:0 0 auto;display:flex;align-items:flex-end;padding:10px 12px 12px;background:#0868b4}
.event-home-view .footer-btn-wrap,.event-stamper-view .footer-btn-wrap,.event-detail-view .footer-btn-wrap,.event-rewards-view .footer-btn-wrap{position:relative;z-index:2;inset:auto;width:100%;max-width:360px;height:auto;margin:0 auto}
.event-home-view .footer-btn-wrap>.btn-primary-wrap,.event-stamper-view .footer-btn-wrap>.btn-primary-wrap,.event-detail-view .footer-btn-wrap>.btn-primary-wrap,.event-rewards-view .footer-btn-wrap>.btn-primary-wrap{display:flex;width:100%;gap:8px}
.event-home-view .btn-main,.event-stamper-view .btn-main,.event-detail-view .btn-main,.event-rewards-view .btn-main{box-sizing:border-box;min-height:44px;height:auto;padding:9px 12px;border-radius:9px;font-size:.92rem;font-weight:700;line-height:1.25}
.event-home-view .btn-main img,.event-stamper-view .btn-main img,.event-detail-view .btn-main img,.event-rewards-view .btn-main img{width:21px;height:21px;flex:0 0 auto;object-fit:contain}
.event-stamper-view .footer-btn-wrap .btn-primary-wrap>*,.event-rewards-view .footer-btn-wrap .btn-primary-wrap>*{min-width:0;flex:1 1 0}.event-stamper-view .btn-form-wrap,.event-rewards-view .btn-form-wrap{display:flex}.event-stamper-view .btn-form-wrap .btn-main,.event-rewards-view .btn-form-wrap .btn-main{width:100%}
.event-detail-view .footer-btn-wrap .btn-main{width:100%}.event-home-view .footer-decorate,.event-stamper-view .footer-decorate,.event-detail-view .footer-decorate,.event-rewards-view .footer-decorate{position:absolute;inset:auto 0 0;opacity:.28}
.event-home-view .qr-main-wrap{box-sizing:border-box;height:auto;min-height:0;flex:1;padding-bottom:24px}.event-home-actions{box-sizing:border-box;display:grid;width:100%;max-width:360px;gap:8px;margin:22px auto 0;padding:0 10px}.event-home-actions .btn-main{width:100%;min-height:44px}.event-home-view .footer-btn-wrap .btn-primary-wrap,.event-home-view .footer-btn-wrap .btn-form-wrap,.event-home-view .footer-btn-wrap .btn-main{width:100%}

/* Login uses the same controls and spacing as the authenticated pages. */
.event-login-view .event-login-content{justify-content:flex-start;padding:22px 16px 116px}.event-login-view .event-login-intro{margin-bottom:18px;padding:14px;border-radius:12px}.event-login-view .event-social-login .btn-main,.event-login-view .event-member-login-form .btn-main{min-height:48px;font-size:.92rem}.event-login-view .event-member-login-form .form-item input{min-height:50px;font-size:1rem}.event-login-view .event-login-divider{margin:16px 0}.event-login-view .event-login-footer{min-height:88px}
.event-login-view .event-member-login-form{box-sizing:border-box;grid-template-columns:minmax(0,1fr);align-items:stretch;justify-items:stretch}.event-login-view .event-member-login-form .form-item{box-sizing:border-box;grid-template-columns:minmax(0,1fr);align-items:stretch;justify-content:stretch;justify-items:stretch}.event-login-view .event-member-login-form .form-item label{width:100%;margin:0}.event-login-view .event-login-input{box-sizing:border-box;align-self:stretch;max-width:none}.event-login-view .event-member-login-form .event-login-input>input{display:block;width:100%!important;max-width:none!important;flex:1 1 100%}.event-login-view .event-member-login-form>.btn-primary-wrap{display:flex;width:100%;max-width:none}.event-login-view .event-member-login-form>.btn-primary-wrap .btn-main{width:100%}

@media(max-width:420px){.event-home-view,.event-stamper-view,.event-detail-view,.event-rewards-view,.event-login-view{width:100%;min-height:100dvh;border-width:0;border-radius:0}.event-home-view .head-wrap.big-head,.event-stamper-view .head-wrap.big-head{min-height:142px;padding-inline:12px}.event-home-view .head-wrap.big-head .user-wrap,.event-stamper-view .head-wrap.big-head .user-wrap{grid-template-columns:76px minmax(0,1fr)}.event-home-view .game-badge-wrap,.event-stamper-view .game-badge-wrap{width:76px;height:76px}.event-home-view .game-badge,.event-stamper-view .game-badge{width:70px;height:70px}.event-home-view .user-info-box,.event-stamper-view .user-info-box{padding-right:9px}.event-stamper-view .stamper-main-wrap,.event-detail-view .detail-main-wrap,.event-rewards-view .item-main-wrap{padding-inline:16px}.event-stamper-view .footer-wrap,.event-detail-view .footer-wrap,.event-rewards-view .footer-wrap{padding-inline:10px}.event-stamper-view .btn-main,.event-rewards-view .btn-main{padding-inline:8px;font-size:.85rem}}

/* Member event shell v2: clear header, content and footer ownership. */
.event-home-view{--event-navy:oklch(24% .09 253);--event-navy-deep:oklch(17% .075 255);--event-blue:oklch(60% .18 246);--event-surface:oklch(98% .006 240);--event-canvas:oklch(94% .035 240);--event-ink:oklch(25% .055 252);--event-muted:oklch(51% .035 250);--event-green:oklch(72% .15 161);--event-yellow:oklch(72% .14 230);background:var(--event-surface)}
.event-home-view .head-wrap.big-head{min-height:166px;padding:16px 18px 18px;gap:12px;border-radius:0;background-color:var(--event-blue);background-image:url('/event-design/images/head-genplay-cover.webp');box-shadow:0 5px 18px oklch(24% .09 253/.14)}
.event-home-view .head-wrap.big-head .text-title h1{font-size:1.12rem;line-height:1.25}.event-home-view .head-wrap.big-head .user-wrap{max-width:340px;grid-template-columns:66px minmax(0,1fr);min-height:72px}.event-home-view .game-badge-wrap{width:70px;height:70px;transform:none}.event-home-view .game-badge{width:64px;height:64px;border:3px solid var(--event-yellow);box-shadow:0 4px 12px oklch(17% .075 255/.2)}.event-home-view .game-badge img{width:100%;height:100%;object-fit:cover}.event-home-view .user-info-box{width:100%;min-height:68px;margin:0;padding:10px 14px;border:1px solid oklch(98% .006 240/.78);border-radius:10px;background:var(--event-navy);box-shadow:none}.event-home-view .user-info-detail{gap:4px}.event-home-view .text-detail-head{font-size:.86rem}.event-home-view .text-detail-name{font-size:.75rem}.event-home-view .text-detail-id{font-size:.75rem}
.event-home-view .qr-main-wrap{display:flex;justify-content:flex-start;box-sizing:border-box;min-height:0;padding:30px 20px 24px;background:var(--event-surface)}.event-home-view .qr-main-wrap__frame{box-sizing:border-box;width:auto;padding:12px;border:1px solid oklch(84% .035 240);border-radius:16px;background:oklch(99% .004 240);box-shadow:0 10px 28px oklch(24% .09 253/.09)}.event-home-view .qr-main-wrap__image{width:210px;max-width:58vw;max-height:none}.event-home-view .qr-main-wrap>.text-xl{max-width:330px;margin-top:18px;color:var(--event-ink);font-size:1rem;line-height:1.55}.event-home-view .reference-qr-status{width:fit-content;margin:8px auto 0;padding:4px 9px;border-radius:999px;color:oklch(45% .12 156);background:oklch(94% .06 158);font-size:.7rem;font-weight:800}
.event-home-actions{display:grid;box-sizing:border-box;width:100%;max-width:340px;gap:9px;margin:24px auto 0;padding:0}.event-home-actions .event-action{display:grid;width:100%;min-height:50px;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:8px 12px;border:1px solid oklch(84% .035 240);border-radius:10px;color:var(--event-ink);background:oklch(99% .004 240);box-shadow:0 3px 10px oklch(24% .09 253/.06);text-align:left;cursor:pointer;transition:border-color 180ms ease-out,background-color 180ms ease-out,transform 180ms ease-out}.event-home-actions .event-action:hover{filter:none;transform:translateY(-1px);border-color:var(--event-blue)}.event-home-actions .event-action:focus-visible{outline:3px solid oklch(60% .18 246/.28);outline-offset:2px}.event-home-actions .event-action__icon{display:grid;width:32px;height:32px;place-items:center;border-radius:8px;background:var(--event-canvas)}.event-home-actions .event-action__icon img{width:20px;height:20px;object-fit:contain}.event-home-actions .event-action>.btn-text{color:inherit;font-size:.9rem;font-weight:750;text-align:left}.event-home-actions .event-action>i:last-child{color:var(--event-muted);font-size:.72rem}.event-home-actions .event-action--stamp{border-color:oklch(72% .14 230);background:oklch(96% .03 230)}.event-home-actions .event-action--stamp .event-action__icon{background:oklch(91% .06 225)}.event-home-actions .event-action--reward{border-color:oklch(83% .09 161);background:oklch(97% .035 161)}.event-home-actions .event-action--reward .event-action__icon{background:oklch(91% .08 161)}.event-home-actions .event-action--kiosk{border-color:var(--event-blue);color:var(--event-surface);background:var(--event-blue)}.event-home-actions .event-action--kiosk .event-action__icon{color:var(--event-surface);background:oklch(98% .006 240/.16)}.event-home-actions .event-action--kiosk>i:last-child{color:oklch(98% .006 240/.76)}
.event-home-view .footer-wrap{min-height:68px;padding:10px 20px 14px;border-top:1px solid oklch(88% .025 240);background:var(--event-canvas)}.event-home-view .footer-btn-wrap{max-width:340px}.event-home-view .btn-logout{min-height:44px;border:1px solid oklch(75% .035 250);color:var(--event-navy);background:transparent}.event-home-view .btn-logout .btn-text{color:var(--event-navy);font-size:.88rem}.event-home-view .btn-logout:hover{filter:none;background:oklch(90% .035 240)}
@media(max-width:420px){.event-home-view .head-wrap.big-head{min-height:158px;padding:14px 16px 16px}.event-home-view .head-wrap.big-head .user-wrap{grid-template-columns:62px minmax(0,1fr)}.event-home-view .game-badge-wrap{width:64px;height:64px}.event-home-view .game-badge{width:58px;height:58px}.event-home-view .user-info-box{min-height:62px;padding:8px 10px}.event-home-view .qr-main-wrap{padding:24px 18px 20px}.event-home-view .qr-main-wrap__image{width:190px;max-width:58vw}}
@media(prefers-reduced-motion:reduce){.event-home-actions .event-action{transition:none}}

/* Shared action bar colors and centered mission flow. */
.event-stamper-view .stamper-main-wrap{display:flex;flex-direction:column;align-items:center;justify-content:safe center;gap:12px;overflow-y:auto}.event-stamper-view .stamper-card{flex:0 0 auto}.event-stamper-view .stamper-card--pending .stamper-card__status{border-color:oklch(72% .14 230);background:oklch(96% .03 230)}.event-stamper-view .stamper-card--pending .stamper-card__check{visibility:hidden}.event-stamper-view .stamper-card--done .stamper-card__status{border-color:oklch(66% .15 161);background:oklch(94% .055 161)}.event-stamper-view .stamper-card--done .stamper-card__check{visibility:visible}
.event-stamper-view .footer-wrap,.event-detail-view .footer-wrap,.event-rewards-view .footer-wrap{border-top:1px solid oklch(88% .025 240);background:oklch(94% .035 240)}.event-stamper-view .footer-decorate,.event-detail-view .footer-decorate,.event-rewards-view .footer-decorate{display:none}.event-stamper-view .btn-primary,.event-detail-view .btn-primary,.event-rewards-view .btn-primary{border:1px solid oklch(60% .18 246);color:oklch(98% .006 240);background:oklch(60% .18 246)}.event-stamper-view .btn-primary:hover,.event-detail-view .btn-primary:hover,.event-rewards-view .btn-primary:hover{filter:none;background:oklch(54% .18 246)}.event-stamper-view .btn-logout,.event-rewards-view .btn-logout{border:1px solid oklch(24% .09 253);color:oklch(98% .006 240);background:oklch(24% .09 253)}.event-stamper-view .btn-logout:hover,.event-rewards-view .btn-logout:hover{filter:none;background:oklch(17% .075 255)}.event-stamper-view .btn-main i,.event-detail-view .btn-main i,.event-rewards-view .btn-main i{color:inherit}.event-stamper-view .btn-main:focus-visible,.event-detail-view .btn-main:focus-visible,.event-rewards-view .btn-main:focus-visible,.event-home-view .btn-main:focus-visible,.event-login-view .btn-main:focus-visible{outline:3px solid oklch(60% .18 246/.3);outline-offset:2px}
.event-ended-view{display:flex;flex-direction:column;color:oklch(25% .055 252);background:oklch(98% .006 240)}.event-ended-view .head-wrap.big-head{flex:0 0 auto;min-height:158px}.event-ended-view .qr-main-wrap{box-sizing:border-box;min-height:0;flex:1;padding:28px 20px}.event-ended-view .footer-wrap{min-height:76px;padding:10px 16px 14px;border-top:1px solid oklch(88% .025 240);background:oklch(94% .035 240)}.event-ended-view .footer-decorate{display:none}.event-ended-view .footer-btn-wrap{position:relative;inset:auto;width:100%;max-width:340px;margin:0 auto}.event-ended-view .btn-main{min-height:44px;border-radius:10px}.event-ended-view .btn-secondary{border:1px solid oklch(83% .09 161);color:oklch(32% .09 161);background:oklch(97% .035 161)}.event-ended-view .btn-logout{color:oklch(98% .006 240);background:oklch(24% .09 253)}

/* Keep the supplied reference artwork for headers/footers; actions belong to page bodies. */
.event-home-view .head-wrap.big-head,.event-stamper-view .head-wrap.big-head,.event-ended-view .head-wrap.big-head,.event-ended-view .head-wrap.small-head{height:auto;min-height:0;padding:1rem 0;gap:0;border-radius:0 0 .75rem .75rem;background-color:var(--clr-lite-blue);background-image:url('/event-design/images/head-genplay-cover.webp');background-repeat:no-repeat;background-size:440px 440px;background-position:center top -9rem;box-shadow:none}
.event-login-view .head-wrap.small-head,.event-detail-view .head-wrap.small-head,.event-rewards-view .head-wrap.small-head{height:auto;min-height:0;padding:1.5rem 0;border-radius:0 0 .75rem .75rem;background-color:var(--clr-lite-blue);background-image:url('/event-design/images/head-genplay-cover.webp');background-repeat:no-repeat;background-size:400px 400px;background-position:center top -11.5rem;box-shadow:none}
.event-home-view .head-wrap.big-head .text-title,.event-stamper-view .head-wrap.big-head .text-title{position:relative;width:auto;height:auto}.event-home-view .head-wrap.big-head .user-wrap,.event-stamper-view .head-wrap.big-head .user-wrap{position:relative;display:flex;width:300px;max-width:300px;min-height:95px;flex-direction:column;align-items:flex-end;margin:0}.event-home-view .game-badge-wrap,.event-stamper-view .game-badge-wrap{position:absolute;left:0;top:0;z-index:3;display:flex;width:95px;height:95px;align-items:center;justify-content:center;border-radius:9999px;background:#f3f4f6;transform:none}.event-home-view .game-badge,.event-stamper-view .game-badge{width:88px;height:88px;border:4px solid #1bb1e7}.event-home-view .user-info-box,.event-stamper-view .user-info-box{display:flex;width:260px;min-height:95px;margin:0;padding:0 .5rem;align-items:flex-end;justify-content:center;border:2px solid #f3f4f6;border-radius:.5rem;background:var(--clr-blue);box-shadow:none}.event-home-view .user-info-detail,.event-stamper-view .user-info-detail{display:flex;min-width:0;flex-direction:column;align-items:stretch;gap:.25rem}.event-home-view .text-detail-head,.event-stamper-view .text-detail-head{font-size:.875rem;line-height:1.25rem;text-decoration:underline;text-decoration-color:#f3f4f6;text-underline-offset:4px}.event-home-view .text-detail-name,.event-stamper-view .text-detail-name,.event-home-view .text-detail-id,.event-stamper-view .text-detail-id{font-size:.75rem;line-height:1rem}.event-home-view .text-detail-id,.event-stamper-view .text-detail-id{color:#1bb1e7}
.event-home-view .footer-wrap,.event-stamper-view .footer-wrap,.event-detail-view .footer-wrap,.event-rewards-view .footer-wrap,.event-ended-view .footer-wrap{position:relative;display:flex;width:100%;min-height:88px;height:auto;margin-top:auto;padding:0;flex-direction:column;align-items:center;border:0;background:transparent}.event-home-view .footer-decorate,.event-stamper-view .footer-decorate,.event-detail-view .footer-decorate,.event-rewards-view .footer-decorate,.event-ended-view .footer-decorate{position:absolute;display:block;bottom:0;z-index:10;width:100%;opacity:1;pointer-events:none}.event-home-view .footer-decorate img,.event-stamper-view .footer-decorate img,.event-detail-view .footer-decorate img,.event-rewards-view .footer-decorate img,.event-ended-view .footer-decorate img{display:block;width:100%;min-height:88px;object-fit:cover;object-position:top center}
.event-body-actions{position:relative!important;inset:auto!important;z-index:12!important;box-sizing:border-box;width:100%!important;max-width:340px!important;height:auto!important;margin:22px auto 0!important;padding:0!important;flex:0 0 auto}.event-body-actions .btn-primary-wrap{display:flex;width:100%;gap:8px}.event-body-actions .btn-primary-wrap>*{min-width:0;flex:1 1 0}.event-body-actions .btn-form-wrap{display:flex}.event-body-actions .btn-main{width:100%;min-height:44px}
.event-home-view .event-body-actions{margin-top:10px!important}.event-detail-view .detail-main-wrap,.event-rewards-view .item-main-wrap{padding-bottom:28px}.event-stamper-view .stamper-main-wrap{padding-bottom:28px}
@media(max-width:420px){.event-home-view .head-wrap.big-head,.event-stamper-view .head-wrap.big-head{min-height:0;padding:1rem 0}.event-home-view .head-wrap.big-head .user-wrap,.event-stamper-view .head-wrap.big-head .user-wrap{width:300px;max-width:calc(100% - 24px);grid-template-columns:none}.event-home-view .game-badge-wrap,.event-stamper-view .game-badge-wrap{width:95px;height:95px}.event-home-view .game-badge,.event-stamper-view .game-badge{width:88px;height:88px}.event-home-view .user-info-box,.event-stamper-view .user-info-box{width:260px;max-width:calc(100% - 40px);min-height:95px;padding:0 .5rem}.event-home-view .footer-wrap,.event-stamper-view .footer-wrap,.event-detail-view .footer-wrap,.event-rewards-view .footer-wrap{padding:0}}

/* Final body rhythm: positions, spacing, colors, text and corner radii. */
.event-home-view .qr-main-wrap,.event-detail-view .detail-main-wrap,.event-stamper-view .stamper-main-wrap,.event-rewards-view .item-main-wrap{box-sizing:border-box;width:100%;padding-inline:20px}
.event-home-actions,.event-body-actions{width:100%;max-width:340px;margin-inline:auto}.event-home-actions{gap:10px;margin-top:24px}.event-body-actions{margin-top:24px!important}.event-home-actions .event-action,.event-body-actions .btn-main{min-height:48px;border-radius:10px;font-size:.9rem;line-height:1.35}.event-body-actions .btn-primary-wrap{gap:10px}
.event-home-actions .event-action--detail{border-color:#a9dbea;color:#08345a;background:#f7fbfd}.event-home-actions .event-action--stamp{border-color:#1bb1e7;color:#08345a;background:#e4f6fd}.event-home-actions .event-action--reward{border-color:#8fd2ad;color:#17563a;background:#eefaf3}.event-home-actions .event-action--kiosk{border-color:#0f9ed7;color:#f7fbfd;background:#0f9ed7}.event-home-actions .event-action--kiosk .btn-text{color:#f7fbfd}.event-home-actions .event-action>.btn-text{font-size:.9rem;font-weight:750;line-height:1.35}
.event-detail-view .detail-content,.event-stamper-view .stamper-card,.event-rewards-view .item-card-wrap{box-sizing:border-box;width:100%;max-width:340px;margin-inline:auto;border-radius:12px;overflow:hidden;box-shadow:0 8px 20px rgba(4,54,91,.08)}
.event-detail-view .detail-content{padding:20px;border:1px solid #cae4ee;color:#405d73;background:#f7fbfd}.event-detail-view .detail-content h2{color:#08345a;font-size:1.1rem;line-height:1.4}.event-detail-view .reference-rich-copy{color:#405d73;font-size:.9rem;line-height:1.75}
.event-stamper-view .stamper-main-wrap{gap:12px;padding-top:28px;padding-bottom:28px}.event-stamper-view .stamper-card{min-height:84px;padding:14px 16px;border:2px solid #d6e4eb;color:#08345a;background:#f7fbfd}.event-stamper-view .stamper-card--pending{border-color:#1bb1e7;background:#e4f6fd}.event-stamper-view .stamper-card--done{border-color:#65bd8b;background:#eefaf3}.event-stamper-view .stamper-card__title{color:#08345a;font-size:1rem;line-height:1.4}.event-stamper-view .stamper-card small{margin-top:4px;color:#52687a;font-size:.78rem;line-height:1.55}
.event-rewards-view .item-main-wrap{padding-top:28px;padding-bottom:28px}.event-rewards-view .item-main-wrap>p{margin-bottom:16px;border-radius:10px;color:#075495;background:#e4f6fc;font-size:.88rem;line-height:1.6}.event-rewards-view .item-card-wrap{margin-bottom:14px;border:1px solid #cae4ee;background:#f7fbfd}.event-rewards-view .item-card-head{min-height:54px;padding:11px 14px;border:0;color:#f7fbfd;background:#075495}.event-rewards-view .item-card-head-text{color:#f7fbfd;font-size:.8rem;font-weight:700;line-height:1.45}.event-rewards-view .item-card-head-text span{color:#1bb1e7}.event-rewards-view .item-card-detail{padding:14px;color:#405d73;background:#f7fbfd}.event-rewards-view .item-card-detail p{margin:0 0 10px;color:#08345a;font-size:.88rem;line-height:1.6}.event-rewards-view .expire-wrap{color:#9a6700;font-size:.78rem;font-weight:750}.event-rewards-view .code-wrap{gap:8px;margin-top:12px}.event-rewards-view .code-slot{min-width:0;color:#08345a;font-weight:800;overflow-wrap:anywhere}.event-rewards-view .btn-card{min-height:40px;padding:7px 12px;border-radius:8px;color:#08345a;background:#1bb1e7;font-weight:800}
.event-body-actions .btn-primary{color:#f7fbfd;background:#0f9ed7}.event-body-actions .btn-logout{color:#f7fbfd;background:#04365b}.event-body-actions .btn-primary .btn-text,.event-body-actions .btn-logout .btn-text{color:#f7fbfd}.event-body-actions .btn-main i{color:inherit}
@media(max-width:360px){.event-home-view .qr-main-wrap,.event-detail-view .detail-main-wrap,.event-stamper-view .stamper-main-wrap,.event-rewards-view .item-main-wrap{padding-inline:14px}.event-body-actions .btn-primary-wrap{gap:8px}.event-body-actions .btn-main{padding-inline:8px;font-size:.82rem}}

/* Back / logout buttons always sit at the very bottom of the page body: the body grows to fill the screen and pushes the buttons down. */
.main-view>main:has(.event-body-actions){display:flex;flex-direction:column;flex:1 0 auto;justify-content:flex-start}
.main-view>main .event-body-actions{margin-top:auto!important;padding-top:24px!important}

/* User box text position as in the reference design: a column, vertically centered, pinned to the right (away from the game badge). */
.event-home-view .user-info-box,.event-stamper-view .user-info-box{flex-direction:column;align-items:flex-end;justify-content:center}
.event-home-view .user-info-detail,.event-stamper-view .user-info-detail{width:auto;max-width:100%;text-align:left}

/* Mission cards open a detail popup. */
.event-stamper-view .stamper-card[data-mission-detail]{cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.event-stamper-view .stamper-card[data-mission-detail]:hover{box-shadow:0 10px 24px rgba(4,54,91,.14)}
.event-stamper-view .stamper-card[data-mission-detail]:active{transform:scale(.99)}
.event-stamper-view .stamper-card[data-mission-detail]:focus-visible{outline:3px solid #0f9ed7;outline-offset:2px}
.stamper-detail-popup{width:min(92vw,340px)!important;border-radius:14px!important;font-family:"Noto Sans Thai",sans-serif}
.stamper-detail-popup .swal2-title{color:#08345a;font-size:1.1rem;line-height:1.4}
.stamper-detail-popup .swal2-confirm{background:#0f9ed7!important;border-radius:10px!important}
.stamper-detail{display:grid;gap:8px;text-align:left}
.stamper-detail p{margin:0}
.stamper-detail__desc{color:#52687a;font-size:.9rem;line-height:1.5;overflow-wrap:anywhere}
.stamper-detail__row{display:flex;justify-content:space-between;gap:12px;padding-top:8px;border-top:1px solid #e1ecf2;font-size:.88rem;color:#52687a}
.stamper-detail__row strong{color:#08345a}
.stamper-detail__row strong.is-done{color:#1f8a58}
.stamper-detail__row strong.is-pending{color:#b37a00}

/* Header / footer exactly as in design-event-system (event-get-item.css): this block wins over the earlier layers. */
.main-view .head-wrap{position:relative!important;z-index:20!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:100%!important;height:auto!important;min-height:0!important;gap:0!important;margin:0!important;border:0!important;border-radius:0 0 .75rem .75rem!important;background-color:var(--clr-lite-blue)!important;background-image:url('/event-design/images/head-genplay-cover.webp')!important;background-repeat:no-repeat!important;box-shadow:none!important;color:#f3f4f6}
.main-view .head-wrap.big-head{padding:1rem 0!important;background-size:440px 440px!important;background-position:center top -9rem!important}
.main-view .head-wrap.small-head{padding:1.5rem 0!important;background-size:400px 400px!important;background-position:center top -11.5rem!important}
.main-view .head-wrap .text-title{position:static!important;z-index:10;width:auto!important;height:auto!important;font-size:1.25rem!important;line-height:1.75rem!important;font-weight:700!important;text-align:center}
.main-view .head-wrap .text-title h1{margin:0!important;font-size:inherit!important;line-height:inherit!important;font-weight:inherit!important}
.main-view .head-wrap .head-arrow{position:absolute!important;bottom:-1rem!important;left:auto!important;right:auto!important;z-index:10!important;display:flex!important;width:2.5rem!important;height:2.5rem!important;flex-direction:row;align-items:center;justify-content:center;padding:1rem 0 0!important;border-radius:9999px!important;background:rgb(16 192 241)!important;color:#fff}
.main-view .head-wrap .user-wrap{position:relative!important;z-index:30!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important;width:300px!important;max-width:calc(100% - 24px)!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important}
.main-view .head-wrap .game-badge-wrap{position:absolute!important;left:0!important;top:0!important;z-index:3;display:flex!important;align-items:center;justify-content:center;width:95px!important;height:95px!important;border-radius:9999px!important;background:#f3f4f6!important;transform:none!important}
.main-view .head-wrap .game-badge{display:flex!important;align-items:center;justify-content:center;width:88px!important;height:88px!important;border:4px solid #1bb1e7!important;border-radius:9999px!important;background-color:#f3f4f6;overflow:hidden}
.main-view>footer.footer-wrap{position:relative!important;z-index:auto;display:flex!important;flex-direction:column!important;align-items:center!important;width:100%!important;height:auto!important;min-height:0!important;margin:auto 0 0!important;padding:0!important;border:0!important;background:transparent!important;aspect-ratio:1024/300}
.main-view>footer.footer-wrap .footer-decorate{position:absolute!important;bottom:0!important;left:0!important;z-index:10!important;display:block!important;width:100%!important;opacity:1!important;pointer-events:none;cursor:none}
.main-view>footer.footer-wrap .footer-decorate img{display:block;width:100%!important;height:auto!important;object-fit:cover}

/* Back / logout buttons live inside the footer, above the wave artwork (as in design-event-system). */
.main-view>footer.footer-wrap{justify-content:flex-end!important}
.main-view>footer.footer-wrap .event-body-actions{position:relative!important;z-index:20!important;width:100%!important;max-width:340px!important;margin:0 auto 1rem!important;padding:24px 0 0!important;box-sizing:border-box}
.main-view>footer.footer-wrap .event-body-actions .btn-secondary{width:100%}
.main-view .head-wrap{overflow:visible!important}

/* Button shape and spacing as in design-event-system (colors untouched). */
.main-view .event-body-actions .btn-main{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:.5rem;box-sizing:border-box;padding:.5rem 1rem;border-radius:.5rem;font-size:1rem;line-height:1.5rem}
.main-view .btn-primary-wrap{display:flex;flex-direction:row;gap:.75rem;width:100%}
.main-view .btn-primary-wrap>.btn-primary,.main-view .btn-primary-wrap>.btn-logout,.main-view .btn-primary-wrap>.btn-form-wrap{flex:1 1 0;min-width:0}
.main-view .btn-form-wrap{display:flex;flex-direction:column}
.main-view .btn-form-wrap>.btn-main{width:100%}
.main-view .event-body-actions{width:300px!important;max-width:calc(100% - 40px)!important;gap:.5rem!important;margin-inline:auto!important}

/* User box text sits right next to the game badge (badge is 95px wide and overlaps the box by 55px). */
.main-view .head-wrap .user-info-box{align-items:flex-start!important;padding-left:67px!important;padding-right:.5rem!important}

/* Polish: header user box text hierarchy and rhythm. */
.main-view .head-wrap .user-info-box{justify-content:center!important;padding-top:10px!important;padding-bottom:10px!important}
.main-view .head-wrap .user-info-detail{width:100%!important;gap:.3rem!important}
.main-view .head-wrap .text-detail-head{font-size:1rem!important;line-height:1.35!important;font-weight:700!important;letter-spacing:.01em;text-decoration-thickness:1px;text-underline-offset:5px;white-space:normal!important;overflow-wrap:anywhere}
.main-view .head-wrap .text-detail-name{font-size:.8rem!important;line-height:1.3!important;color:#e5eef7;opacity:.92}
.main-view .head-wrap .text-detail-id{font-size:.82rem!important;line-height:1.3!important;font-weight:700!important;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* CABAL Red logo sits on the dark blue part of the login footer wave. */
.main-view>footer.event-login-footer .event-login-footer__logo{position:relative;z-index:20;display:block;width:min(52%,200px);height:auto;margin:0 auto 14px;pointer-events:none}
.main-view .head-wrap .game-badge img{display:block;width:100%;height:100%;border-radius:9999px;object-fit:cover}

/* Stamper: header and footer stay in place, missions list top to bottom and scrolls when it is too long. */
.event-stamper-view.main-view{height:100vh;height:100svh;min-height:0}
@media(min-width:768px){.event-stamper-view.main-view{height:95vh}}
.event-stamper-view>.head-wrap,.event-stamper-view>footer.footer-wrap{flex:0 0 auto}
.event-stamper-view>.stamper-main-wrap{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;flex:1 1 0!important;min-height:0!important;gap:12px;padding:28px 20px 24px!important;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#9fc3d6 transparent}
.event-stamper-view>.stamper-main-wrap::-webkit-scrollbar{width:6px}
.event-stamper-view>.stamper-main-wrap::-webkit-scrollbar-thumb{border-radius:9999px;background:#9fc3d6}
.event-stamper-view>.stamper-main-wrap>.stamper-card{flex:0 0 auto}

/* Click-Clack menu button: same card as the other menu items, game-controller icon. */
.event-action--clickclack .event-action__icon{color:var(--event-blue);font-size:1rem}

/* Menu items that are not available yet (event not started): visible but not clickable. Colours unchanged. */
.event-action[aria-disabled="true"]{opacity:.5;pointer-events:none;cursor:not-allowed}

/* Booth scanner: change-booth / logout row under the manual QR box. */
.scanner-session{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap;padding:.5rem 1rem 1rem;position:relative;z-index:10}
.scanner-session form{display:contents}
.scanner-session .btn-main{padding:.5rem 1rem;border-radius:.5rem;gap:.5rem}

/* Visual fixes: booth select logout text, scanner manual label, empty item-code box, long stamper instruction. */
.reference-booth-select .btn-logout,.reference-booth-select .btn-logout span{color:#f7fbfd}
.scanner-manual label{color:#08345a;font-weight:700}
.reference-scanner-result [hidden],.scanner-item-code[hidden]{display:none!important}
.event-stamper-view .head-wrap .text-detail-id{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal!important;overflow:hidden;text-overflow:ellipsis;line-height:1.3!important}

/* Booth home: assigned booths (read-only) + scan button */
.booth-home__list{display:grid;gap:.5rem;margin:0;padding:0;list-style:none}
.booth-home__list li{display:flex;align-items:center;gap:.75rem;min-height:3.25rem;padding:.6rem .9rem;border:2px solid var(--clr-blue);border-radius:.75rem;color:#08345a;background:rgba(255,255,255,.92)}
.booth-home__list li>i{color:var(--clr-blue);font-size:1.1rem}
.booth-home__list li span{display:grid;min-width:0}
.booth-home__list small{color:#52687a;font-size:.72rem;font-weight:700;letter-spacing:.04em}
.booth-home__list strong{font-size:1rem;overflow-wrap:anywhere}
.booth-home__note{margin:0;color:#075495;font-size:.85rem;font-weight:700;text-align:center}
.booth-home__scan{min-height:3.5rem;justify-content:center;gap:.6rem;font-size:1.05rem;text-decoration:none}
.booth-home__scan i{font-size:1.25rem}

/* Booth home on phones: compact brand header, full-width card and buttons */
@media (max-width:767px){
.qr-scan-head.booth-home-head{width:100%;box-sizing:border-box;margin:0;padding:10px 16px;gap:10px;justify-content:center}
.booth-home-head .qr-icon-title-wrap{margin-right:0;padding-right:10px;border-right-width:3px}
.booth-home-head .qr-icon-title-wrap img{width:44px!important;height:44px!important}
.booth-home-head .qr-text-title{gap:2px;font-size:1.15rem;line-height:1.15}
.booth-select-reference{width:100%;min-height:0;flex:1}
.booth-select-reference .head-wrap.small-head{min-height:56px;padding:10px 16px}
.booth-select-reference .text-title h1{font-size:1.15rem}
.reference-booth-select.booth-home{padding:16px 16px 24px;gap:12px}
.booth-home .booth-home__scan,.booth-home form,.booth-home form .btn-logout{width:100%;box-sizing:border-box}
.booth-home form .btn-logout{min-height:48px;justify-content:center}
.booth-home__scan{min-height:56px}
}

/* Booth home with many booths: info note above the list, 2-column cards from 4 booths, actions always reachable */
.booth-home__note{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 10px;border-radius:10px;background:#e4f6fc}
.booth-home__note i{flex:0 0 auto}
.booth-home__list--grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.booth-home__list--grid li{min-height:56px;padding:8px 10px;gap:8px}
.booth-home__list--grid li>i{font-size:.95rem}
.booth-home__list--grid strong{font-size:.9rem;line-height:1.25}
.booth-home__actions{display:grid;gap:8px;margin-top:auto}
.booth-home__actions form,.booth-home__actions .btn-main{width:100%;box-sizing:border-box}
.booth-home__actions .btn-main{justify-content:center}
@media (max-width:767px){
.reference-booth-select.booth-home{padding-bottom:calc(150px + env(safe-area-inset-bottom))}
.booth-home__actions{position:fixed;left:0;right:0;bottom:0;z-index:30;margin:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);box-shadow:0 -8px 22px rgba(4,54,91,.12)}
.booth-home__actions .btn-logout{min-height:44px}
}
.reference-booth-select.booth-home{justify-content:flex-start}
.booth-home__list{width:100%}
@media (max-width:767px){
.scan-view-login-wrap.booth-select-reference{filter:none}
}
.reference-booth-select.booth-home{width:100%;box-sizing:border-box;align-self:stretch}

/* Booth scanner on phones: same compact header as the booth home, full-width card, wrapped booth names */
@media (max-width:767px){
.scan-view-wrap.booth-scanner{width:100%;filter:none}
.booth-scanner > .head-wrap.small-head{min-height:0;padding:10px 16px}
.booth-scanner .text-booth h2{margin:0;font-size:.95rem;line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-align:center}
.booth-scanner .reference-video-frame,.booth-scanner .scanner-status,.booth-scanner .reference-scanner-result{width:100%}
.booth-scanner main{padding-inline:16px}
.booth-scanner .scanner-manual{width:auto;margin:12px 16px 0}
.booth-scanner .scanner-session{padding:12px 16px 20px}
.booth-scanner .scanner-session .btn-main{flex:1 1 0;justify-content:center;min-height:44px}
}
@media (max-width:767px){
.booth-scanner.has-member .reference-video-frame{display:none}
.booth-scanner .scanner-manual{align-self:stretch;width:auto}
.booth-scanner.has-member{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
.booth-scanner.has-member [data-scanner-reset]{position:fixed;left:16px;right:16px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:30;width:auto;min-height:52px;margin:0;box-shadow:0 8px 22px rgba(4,54,91,.25)}
}

/* Booth scanner result panel: member card, clear sections, results instead of a struck-through list */
.booth-scanner .reference-scanner-result{box-sizing:border-box;padding:14px;border:1px solid #d6e8f0;border-radius:16px;background:#fff;box-shadow:0 10px 26px rgba(4,54,91,.08);text-align:left}
.booth-member-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 4px;padding:12px 14px;border-radius:12px;color:#fff;background:linear-gradient(135deg,#0868b4,#075495)}
.booth-member-card>div{min-width:0}
.booth-member-card .eyebrow{margin:0;color:#bfe9fb;font-size:.66rem;letter-spacing:.14em}
.booth-member-card h2{margin:2px 0 0;color:#fff;font-size:1.15rem;font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.booth-member-stamps{flex:0 0 auto;display:grid;justify-items:center;margin:0;padding:6px 10px;border-radius:12px;color:#e4f6fc;background:rgba(255,255,255,.16);font-size:.68rem;font-weight:700;line-height:1.2}
.booth-member-stamps strong{color:#ffe04b;font-size:1.5rem;line-height:1.1}
.booth-scanner .booth-section-title{margin:16px 0 8px;color:#075495;font-size:.78rem;font-weight:800;letter-spacing:.06em}
.booth-scanner .booth-multi-group{margin:0 0 8px;padding:10px 12px;border:1px solid #d6e8f0;background:#f4f9fc}
.booth-scanner .booth-multi-group h4{color:#08345a;font-size:.9rem}
.booth-scanner .booth-multi-group li{color:#405d73;font-size:.88rem}
.booth-scanner .booth-multi-group li[data-done="true"] span:first-child{opacity:1;text-decoration:none}
.booth-scanner .booth-multi-group li[data-done="true"] .booth-multi-mark{color:#2e9d4f}
.booth-scanner .booth-multi-group li[data-done="false"] .booth-multi-mark{color:#b26b00}
.booth-scanner .booth-multi-note{margin:8px 0;padding:8px 10px;border-radius:10px;color:#14613c;background:#e9f8ef;font-size:.85rem}
.booth-scanner .booth-multi:has([data-stamp-all-result]:not([hidden])) :is(.booth-multi-title,[data-booth-list],[data-all-note]){display:none!important}
.booth-scanner .booth-multi-result{margin:0}
.booth-scanner .booth-multi-result ul{border:1px solid #d6e8f0;border-radius:12px;overflow:hidden;background:#fff}
.booth-scanner .booth-multi-result li{align-items:center;margin:0;padding:10px 12px;border-bottom:1px solid #e3eef3;color:#08345a;font-size:.88rem}
.booth-scanner .booth-multi-result li:last-child{border-bottom:0}
.booth-scanner .booth-multi-result li.booth-multi-summary{justify-content:center;color:#14613c;background:#e9f8ef;font-weight:800}
.booth-scanner :is([data-reward-list],[data-mission-list]) li{display:grid;align-items:center;grid-template-columns:minmax(0,1fr) auto!important;gap:10px;padding:10px 0;color:#08345a;font-weight:700}
.booth-scanner :is([data-reward-list],[data-mission-list]) li button{width:auto!important;min-width:96px;min-height:40px;border-radius:10px;font-size:.85rem}
.booth-scanner [data-scanner-reset]{min-height:48px;border-radius:12px;font-size:1rem;font-weight:800}
.booth-scanner .scanner-session .btn-main{white-space:nowrap}
.booth-scanner.has-member .scanner-manual{display:none}
@media (max-width:767px){
.booth-scanner > .head-wrap .head-arrow,.booth-select-reference > .head-wrap .head-arrow{display:none!important}
.booth-scanner .scanner-session{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.booth-scanner .scanner-session form{display:block}
.booth-scanner .scanner-session .btn-main{width:100%;box-sizing:border-box;padding:8px 10px;gap:6px;font-size:.9rem;white-space:nowrap}
.booth-scanner .scanner-session .btn-text{overflow:visible;text-overflow:clip}
.booth-member-card h2{font-size:1.05rem}
}
.booth-scanner .scanner-session .btn-logout i{color:#f7fbfd}

/* Booth scanner on phones: one screen — header and buttons stay, the camera takes the space left, results scroll inside */
@media (max-width:767px){
body:has(.booth-scanner){height:100vh;height:100dvh;min-height:0;overflow:hidden;justify-content:flex-start}
.scan-view-wrap.booth-scanner{flex:1 1 auto;min-height:0!important;display:flex;flex-direction:column;overflow:hidden}
.booth-scanner > .head-wrap{flex:0 0 auto}
.booth-scanner > main{flex:1 1 auto;min-height:0;justify-content:flex-start!important;padding-top:10px;padding-bottom:8px;overflow:hidden}
.booth-scanner .wrap-qrcode-scanner{flex:1 1 auto;min-height:0;height:100%}
.booth-scanner .reference-video-frame{flex:1 1 auto;min-height:160px;aspect-ratio:auto!important;margin:0}
/* the picture fills the whole frame: a percentage height does not resolve inside the stretched flex item on iPhone / LINE, so the video is laid over the frame instead */
.booth-scanner .reference-video-frame video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.booth-scanner .scanner-status{flex:0 0 auto;min-height:40px;margin-top:8px}
.booth-scanner .scanner-manual{flex:0 0 auto;margin:6px 16px 0!important}
.booth-scanner .scanner-manual>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.booth-scanner .scanner-manual>div{flex-direction:row!important;align-items:stretch}
.booth-scanner .scanner-manual input{min-height:40px;font-size:.85rem}
.booth-scanner .scanner-manual button{flex:0 0 auto;min-height:40px;padding:0 14px}
.booth-scanner .scanner-session{flex:0 0 auto;padding:8px 16px calc(10px + env(safe-area-inset-bottom))}
.booth-scanner.has-member{padding-bottom:0}
.booth-scanner.has-member .reference-scanner-result{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin-top:8px;padding-bottom:72px}
.booth-scanner.has-member .wrap-qrcode-scanner{display:flex;flex-direction:column}
.booth-scanner.has-member [data-scanner-reset]{bottom:calc(64px + env(safe-area-inset-bottom))}
}
@media (max-width:767px){
html.swal2-height-auto:has(.booth-scanner),body.swal2-height-auto:has(.booth-scanner){height:100vh!important;height:100dvh!important}
}

/* Booth scanner: after a scan the panel lists this booth's missions (one Stamp button each) and any reward ready to hand out; the camera is hidden while the panel is open */
.booth-scanner [data-booths-section]{display:none!important}
.booth-scanner [data-reward-list] li:has(button:disabled){display:none}
.event-rewards-view .item-card-detail ul{color:#405d73}
.swal2-container .swal2-confirm.swal2-styled{background-color:#0f9ed7;color:#fff;border-radius:.5rem;padding:.6em 1.4em}
.swal2-container .swal2-cancel.swal2-styled{background-color:#52687a;color:#fff;border-radius:.5rem;padding:.6em 1.4em}

.qr-scan-head .qr-icon-title-wrap:only-child{margin-right:0;padding-right:0;border-right-width:0}
.qr-scan-head:has(>.qr-icon-title-wrap:only-child){justify-content:center}
/* Scanner and Catmin pages: a long page (member panel, results, small phone) scrolls instead of being cut off at the screen height */
html:has(.booth-scanner){overflow-y:auto}
body:has(.booth-scanner){height:auto!important;min-height:100vh;min-height:100dvh;overflow-y:auto!important}
.scan-view-wrap.booth-scanner{min-height:100dvh!important;overflow:visible!important}
.booth-scanner>main{flex:1 0 auto;overflow:visible!important}
.booth-home__actions .btn-main{min-height:48px}
/* Scanner and Catmin pages on a phone: the window is the only scroller (also while a SweetAlert is open), the panel clips its animated corner decorations so the page length never jumps, and the ticket background stays still behind the page */
html:has(.booth-scanner){height:auto!important;overflow-x:hidden;overflow-y:auto}
body:has(.booth-scanner),html.swal2-height-auto:has(.booth-scanner),body.swal2-height-auto:has(.booth-scanner){height:auto!important;overflow:visible!important}
.scan-view-wrap.booth-scanner{min-height:100svh!important;overflow:hidden!important;overflow:clip!important}
body.scan-booth-bg:has(.booth-scanner){background-image:none}
body.scan-booth-bg:has(.booth-scanner)::before{content:"";position:fixed;inset:0;z-index:-1;background:url("../event-design/images/bg-ticket.webp") center/cover no-repeat;pointer-events:none}
/* Event page title: always in the middle of the header (the 28ch cap of the h1 used to sit on the left when the header is wider, margin was forced to 0) */
.main-view .head-wrap .text-title{flex:1 1 auto;width:100%!important;text-align:center}
.main-view .head-wrap .text-title h1{margin-inline:auto!important;text-align:center}
