/* CRYOTALE R27 MOBILE ONLY — PC styles fully unchanged.
   New approved portrait art, unique mobile heading treatment, transparent ice-crystal auth panel.
   This entire stylesheet has NO rules outside the phone/tablet auth media query. */
@media screen and (max-width:850px) {
  #auth-view.auth-layout:not(.hidden) {
    background-color:#07172f!important;
    background-image:url('/static/cryo_login_r27_mobile_v1/shuangyin-r27-mobile-1080x1920.webp?v=20261107-r27-portrait-approved01')!important;
    background-size:cover!important;
    background-position:center top!important;
    background-repeat:no-repeat!important;
    min-height:100dvh!important;
    height:100dvh!important;
    max-height:100dvh!important;
    overflow:hidden!important;
  }
  #auth-view .intro-panel {display:none!important}
  #auth-view .cryo-r14-cubes {opacity:.16!important;pointer-events:none!important}
  #auth-view .cryo-r14-cube:nth-child(n+5){display:none!important}
  #auth-view .auth-panel,
  #auth-view:has(#register-tab.active) .auth-panel {
    box-sizing:border-box!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    max-width:none!important;
    height:100dvh!important;
    max-height:100dvh!important;
    min-height:0!important;
    padding:clamp(250px,41dvh,375px) 14px max(20px,env(safe-area-inset-bottom))!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    background-image:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    transform:none!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none!important;
  }
  #auth-view .auth-panel::-webkit-scrollbar{display:none}
  #auth-view .auth-panel .cryo-r18-welcome.cryo-r21-welcome{
    position:relative!important;
    isolation:isolate!important;
    box-sizing:border-box!important;
    width:min(100%,440px)!important;
    max-width:440px!important;
    flex:0 0 auto!important;
    display:block!important;
    padding:3px 18px 17px!important;
    margin:0 auto 11px!important;
    text-align:center!important;
    white-space:normal!important;
    line-height:1.07!important;
    transform:none!important;
    filter:none!important;
    color:#effbff!important;
    text-shadow:0 2px 8px rgba(0,16,47,.65),0 0 13px rgba(74,204,255,.4)!important;
  }
  #auth-view .auth-panel .cryo-r21-welcome>span.welcome-top,
  #auth-view .auth-panel .cryo-r21-welcome>span.welcome-bottom {
    display:block!important;
    position:relative!important;
    font-family:'Noto Serif CJK SC','STKaiti','KaiTi','Songti SC',serif!important;
    transform:none!important;
    filter:none!important;
    white-space:nowrap!important;
  }
  #auth-view .auth-panel .cryo-r21-welcome>span.welcome-top {
    font-size:clamp(16px,4vw,20px)!important;
    font-weight:600!important;
    letter-spacing:.26em!important;
    line-height:1.4!important;
    padding:0!important;margin:0!important;
    color:#f2fbff!important;
    background:none!important;
    -webkit-text-fill-color:#f2fbff!important;
    text-shadow:0 2px 7px #062048,0 0 12px rgba(169,236,255,.8)!important;
  }
  #auth-view .auth-panel .cryo-r21-welcome>span.welcome-bottom {
    margin:1px 0 0!important;
    padding:0!important;
    font-size:clamp(39px,10.7vw,52px)!important;
    font-weight:700!important;
    letter-spacing:.11em!important;
    line-height:1.28!important;
    color:transparent!important;
    background:linear-gradient(180deg,#fff 5%,#e8f8ff 34%,#bdeaff 55%,#8edaff 82%,#f5fcff 100%)!important;
    background-clip:text!important;
    -webkit-background-clip:text!important;
    -webkit-text-fill-color:transparent!important;
    text-shadow:none!important;
    filter:drop-shadow(0 3px 3px rgba(0,14,45,.62)) drop-shadow(0 0 9px rgba(75,190,255,.53))!important;
  }
  #auth-view .auth-panel .cryo-r21-welcome::before,
  #auth-view .auth-panel .cryo-r21-welcome::after{
    content:''!important;
    display:block!important;
    position:absolute!important;
    top:auto!important;bottom:4px!important;
    width:calc(50% - 31px)!important;height:1px!important;
    border:none!important;border-radius:0!important;
    background:linear-gradient(90deg,transparent,rgba(179,241,255,.96))!important;
    box-shadow:0 0 8px rgba(65,211,255,.88)!important;
    opacity:1!important;
    transform:none!important;
  }
  #auth-view .auth-panel .cryo-r21-welcome::before{left:7px!important;right:auto!important}
  #auth-view .auth-panel .cryo-r21-welcome::after{right:7px!important;left:auto!important;transform:scaleX(-1)!important}
  #auth-view .auth-box{
    box-sizing:border-box!important;
    position:relative!important;
    width:min(100%,438px)!important;
    max-width:438px!important;
    height:auto!important;max-height:none!important;
    flex:0 0 auto!important;
    margin:0 auto!important;
    padding:16px 16px 13px!important;
    overflow:visible!important;
    border-radius:22px!important;
    border:1px solid rgba(186,242,255,.88)!important;
    background:rgba(190,235,255,.025)!important;
    background-image:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    box-shadow:0 0 0 1px rgba(60,185,255,.20),0 0 16px rgba(68,191,255,.45),inset 0 1px 0 rgba(255,255,255,.4)!important;
    transform:none!important;
  }
  #auth-view .auth-box::before{
    content:''!important;position:absolute!important;
    inset:7px!important;
    border-radius:16px!important;
    border:1px solid rgba(201,250,255,.12)!important;
    background:none!important;
    box-shadow:none!important;
    pointer-events:none!important;
  }
  #auth-view .auth-box::after{
    content:'✧'!important;
    position:absolute!important;top:-14px!important;right:19px!important;
    width:28px!important;height:28px!important;
    background:transparent!important;
    color:#e5faff!important;
    font:25px/28px 'Noto Serif CJK SC',serif!important;
    text-align:center!important;
    text-shadow:0 0 7px #75daff,0 0 14px #35baff!important;
    pointer-events:none!important;
  }
  #auth-view .auth-panel .tabs,
  #auth-view .auth-panel .tab:not(.active) {
    background:transparent!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  #auth-view .auth-panel .tab{height:44px!important;min-height:44px!important;font-size:15px!important;color:#fff!important}
  #auth-view .auth-panel .tab.active{
    border:1px solid rgba(197,249,255,.9)!important;
    background:linear-gradient(110deg,rgba(16,113,226,.72),rgba(72,160,255,.74))!important;
    box-shadow:0 0 11px rgba(73,203,255,.50),inset 0 1px 0 rgba(224,251,255,.5)!important;
  }
  #auth-view .auth-panel .auth-form label,
  #auth-view .auth-panel .cryo-secure-row label,
  #auth-view .auth-panel #invite-row label{
    color:#f6fcff!important;
    text-shadow:0 2px 5px #00112b,0 0 6px rgba(5,28,56,.5)!important;
  }
  #auth-view .auth-panel .auth-form input,
  #auth-view .auth-panel .cryo-secure-row input,
  #auth-view .auth-panel #invite-row input{
    box-sizing:border-box!important;
    height:45px!important;min-height:45px!important;
    background:rgba(145,216,255,.065)!important;
    color:#fff!important;
    border:1px solid rgba(191,236,255,.78)!important;
    border-radius:12px!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    box-shadow:inset 0 0 0 1px rgba(184,236,255,.06)!important;
    text-shadow:0 1px 2px rgba(0,17,40,.72)!important;
  }
  #auth-view .auth-panel .auth-form input::placeholder,
  #auth-view .auth-panel .cryo-secure-row input::placeholder,
  #auth-view .auth-panel #invite-row input::placeholder{
    color:rgba(240,250,255,.78)!important;
    opacity:1!important;
  }
  #auth-view .auth-panel .primary-btn{
    background:linear-gradient(105deg,#70e8fa 0%,#9fceff 100%)!important;
    color:#092947!important;
    min-height:48px!important;
    box-shadow:0 5px 20px rgba(19,112,218,.23),0 0 12px rgba(119,226,255,.36)!important;
    border:1px solid rgba(221,255,255,.85)!important;
  }
  #auth-view .auth-panel .cryo-link-button{
    color:#eafaff!important;
    text-shadow:0 2px 5px #021732,0 0 8px rgba(119,224,255,.35)!important;
  }
  #auth-view .auth-panel .cryo-action-tools{position:relative!important;z-index:2!important}
  #auth-view .auth-panel #cryo-register-message,
  #auth-view .auth-panel #auth-error{color:#fff!important;text-shadow:0 2px 4px #082044}
  #auth-view.auth-layout.hidden{display:none!important}
}
@media screen and (max-width:390px){
  #auth-view .auth-panel,
  #auth-view:has(#register-tab.active) .auth-panel{padding:clamp(245px,39dvh,330px) 11px 16px!important}
  #auth-view .auth-box{padding:14px 12px 12px!important}
  #auth-view .auth-panel .cryo-r21-welcome>span.welcome-bottom{font-size:clamp(35px,10.6vw,43px)!important}
}
@media screen and (max-width:850px) and (max-height:650px){
  #auth-view .auth-panel,
  #auth-view:has(#register-tab.active) .auth-panel{padding-top:clamp(195px,36dvh,275px)!important}
}
@media (prefers-reduced-motion:reduce) and (max-width:850px){
  #auth-view .cryo-r14-cubes{display:none!important}
}
