/* Mobile shell and touch interactions. Desktop layouts keep their original rules. */
.mobile-member-strip,.mobile-menu-heading,.mobile-only-entry,.mobile-menu-backdrop{display:none}
@media(max-width:768px), (max-width:1024px) and (pointer:coarse){
 html{scroll-padding-top:calc(var(--mobile-header-height,144px) + 16px);-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body.white-dragon-theme{font-size:15px;padding-bottom:calc(var(--mobile-dock-height,80px) + 18px);max-width:100%}
 .wrap{width:calc(100% - 28px)}
 main,.page,.page>*,header .header-inner>*{min-width:0}
 button,a.button,input,textarea,select{-webkit-tap-highlight-color:#bd955b2b}
 button,.button,a.button{touch-action:manipulation}
 .button{min-height:46px;line-height:1.45;font-size:13px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%}
 body.white-dragon-theme input:not([type=checkbox]):not([type=radio]),body.white-dragon-theme select,body.white-dragon-theme textarea{font-size:16px!important}
 input[type=checkbox],input[type=radio]{width:20px;height:20px;flex-shrink:0;accent-color:#76243b}
 .check-field{font-size:13px;line-height:1.65;align-items:flex-start;gap:10px;padding-block:8px}
 .check-field input{margin-top:3px}
 header{background:#fffdf9;box-shadow:0 2px 10px #5420320b}
 header .header-inner{height:68px;min-height:68px;gap:8px}
 header .header-inner>.brand{min-width:0;max-width:calc(100% - 102px)!important}
 header .original-logo{width:190px;max-width:100%}
 header .brand-subtitle{font-size:7px;letter-spacing:1.4px;padding-left:28px;line-height:1.5;margin-top:4px}
 header .header-actions{gap:7px!important}
 header .icon-button{width:44px;height:44px;border-radius:12px 4px}
 header .cart-button b{font-size:11px;min-width:21px;height:21px;line-height:17px}
 header .mobile-menu[aria-expanded=true]{background:#722239;color:#ffe6b4;border-color:#722239}
 .mobile-member-strip{display:grid;grid-template-columns:minmax(0,1fr) 104px;align-items:stretch;gap:8px;padding:0 0 10px}
 .mobile-profile-button{display:flex;align-items:center;min-width:0;min-height:72px;padding:0 6px 0 0;border:1px solid #b88e53;border-radius:13px 4px;background:radial-gradient(ellipse at 8% 0,#bc805333,transparent 70%),linear-gradient(120deg,#622239,#321321);color:#fff0d2;text-align:left}
 .mobile-profile-button>.kd-header-identity{width:100%;max-width:none;gap:0;overflow:visible;color:inherit}
 .mobile-profile-button .kd-vip-avatar{--kd-avatar-size:72px!important;flex-shrink:0;margin:0 -5px 0 -1px}
 .mobile-profile-button .kd-vip-frame{width:100%;height:100%}
 .mobile-profile-button .kd-header-text{display:flex;flex:1;min-width:0;padding:5px 0;gap:3px}
 .mobile-profile-button .kd-header-text>strong{font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;color:#fff0d2}
 .mobile-profile-button .kd-header-eyebrow,.mobile-profile-button .kd-header-chevron,.mobile-profile-button .kd-header-level small{display:none}
 .mobile-profile-button .kd-header-tier{display:flex;align-items:center;gap:3px 6px;flex-wrap:wrap;min-width:0}
 .mobile-profile-button .kd-header-level{display:inline-flex;align-items:center;gap:0;padding:0;border:0;background:none;color:#ffe0a0}
 .mobile-profile-button .kd-header-level b{font-size:11px}
 .mobile-profile-button .kd-vip-badge{display:inline-block;width:66px;max-width:none}
 .mobile-profile-button .kd-vip-badge>svg{width:100%;height:auto}
 .mobile-profile-button .kd-header-guest{font-size:13px;line-height:1.5;padding:12px}
 .mobile-balance-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:72px;padding:9px 6px;border:1px solid #d7bd86;border-radius:12px 4px;background:#fff5df;color:#672439}
 .mobile-balance-button small{font-size:10px;line-height:1.45;color:#947344}
 .mobile-balance-button b{max-width:100%;font-size:12px;line-height:1.45;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
 .mobile-menu-open{overflow:hidden}
 .mobile-menu-open header{z-index:60}
 .mobile-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:55;background:#28111c70;touch-action:none;border:0;padding:0}
 header.mobile-open .header-inner>nav{display:grid;position:fixed;top:var(--mobile-menu-top,144px);bottom:var(--mobile-dock-height,80px);left:0;right:0;width:100%;height:auto;max-height:calc(var(--mobile-viewport-height,100dvh) - var(--mobile-menu-top,144px) - var(--mobile-dock-height,80px));grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-items:stretch;gap:9px;padding:14px max(14px,env(safe-area-inset-left)) 22px;overflow:auto;overscroll-behavior:contain;background:#fffdf8;border-top:1px solid #e4d0aa;border-bottom:1px solid #c4a46c;border-radius:0 0 18px 18px;box-shadow:0 14px 32px #2e13272b;scrollbar-gutter:stable}
 header.mobile-open .mobile-menu-heading{display:flex;grid-column:1/-1;align-items:center;justify-content:space-between;gap:12px;order:-3;color:#632339}
 .mobile-menu-heading strong{font-size:16px;letter-spacing:-.3px}
 .mobile-menu-heading button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border:1px solid #d7bd86;border-radius:11px;background:#fff5df;color:#722239;font-size:24px}
 header.mobile-open .nav-item{height:auto;min-height:50px;min-width:0;padding:10px 12px;font-size:13px;line-height:1.5;white-space:normal;justify-content:flex-start}
 header.mobile-open .nav-item>span:last-child{min-width:0;overflow-wrap:anywhere}
 header.mobile-open .nav-item>span[data-icon]{flex-shrink:0}
 header.mobile-open .nav-item.active{background:#73243a;color:#fff0d2;border-color:#73243a}
 header.mobile-open .mobile-account-nav{order:-2;grid-column:1/-1;min-height:96px}
 header.mobile-open .header-balance{grid-column:1/-1;order:-1;display:flex;min-height:56px;padding:10px 14px;gap:12px;background:#fff0d0;border-radius:12px;border:1px solid #c7a568}
 header.mobile-open .header-balance>span:last-child{display:flex;flex:1;align-items:center;justify-content:space-between;gap:12px;min-width:0}
 header.mobile-open .header-balance small{font-size:12px}
 header.mobile-open .header-balance b{font-size:14px;white-space:normal;overflow-wrap:anywhere}
 header.mobile-open .mobile-only-entry{display:inline-flex}
 header.mobile-open .mobile-admin-link{display:flex;align-items:center;gap:9px;min-height:48px;padding:10px 14px;border:1px solid #d9be86;border-radius:10px;background:#fff4db;font-size:13px;font-weight:600;color:#6c293d}
 .mobile-dock{grid-template-columns:repeat(6,minmax(0,1fr))!important;height:auto;min-height:calc(76px + env(safe-area-inset-bottom));padding:7px max(5px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));gap:2px;align-items:stretch;box-shadow:0 -4px 20px #51283b0a}
 .mobile-dock .nav-item{height:60px;min-height:60px;min-width:0;padding:6px 1px;gap:5px;font-size:10px;font-weight:600;line-height:1.4;white-space:normal;justify-content:center;text-align:center;border-radius:11px}
 .mobile-dock .nav-item>span:last-child{display:block;max-width:100%;overflow-wrap:normal}
 .mobile-dock .nav-item svg{width:23px;height:23px;flex-shrink:0}
 .mobile-dock .nav-item.active{background:#76243b;color:#fff0d0}
 .mobile-dock .nav-item.active:after{display:none}
 .mobile-menu-open .mobile-dock{z-index:65}
 .mobile-keyboard-open{padding-bottom:16px!important}
 .mobile-keyboard-open .mobile-dock{display:none!important}
 .mobile-keyboard-open .mobile-member-strip{display:none}
 .mobile-keyboard-open .motion-control{display:none}
 .overlay{padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));align-items:flex-end;overflow:hidden}
 .modal,.modal.wide{width:100%;max-width:100%;max-height:calc(var(--mobile-viewport-height,100dvh) - 16px - env(safe-area-inset-bottom));padding:18px;border-radius:20px 20px 8px 8px;overscroll-behavior:contain;scroll-padding:78px 12px 22px;overflow-y:auto;overflow-x:hidden}
 .modal-head{position:sticky;top:-18px;z-index:4;min-height:64px;padding:10px 0;margin:-8px 0 18px;background:#fff;border-bottom:1px solid #e1cfab;gap:12px}
 .modal-head h2{font-size:21px;line-height:1.45;letter-spacing:-.5px;overflow-wrap:anywhere}
 .close-modal{width:44px;height:44px;flex-shrink:0}
 .modal .modal-intro{align-items:flex-start;gap:12px;padding-bottom:18px;margin-bottom:20px}
 .modal .modal-product-icon{width:52px;height:52px;flex-shrink:0}
 .modal h3{font-size:16px;line-height:1.5}
 .modal p,.modal .hint,.modal .soft-note,.modal .prose{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
 .modal .field-label,.modal .form-field{font-size:13px;line-height:1.6}
 .modal .form-field input{min-height:48px;padding:12px}
 .modal .plans{grid-template-columns:1fr;gap:10px;margin-bottom:20px}
 .modal .plan{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;text-align:left;gap:5px 12px;min-height:72px;padding:13px 14px;font-size:14px;white-space:normal}
 .modal .plan b{font-size:15px;line-height:1.5;margin:0}
 .modal .plan small{grid-column:1/-1;font-size:12px;line-height:1.55}
 .modal .quantity-row{gap:14px;align-items:center}
 .modal .quantity button{width:44px;height:44px;min-height:44px}
 .modal .quantity{flex-shrink:0}
 .modal .quantity-row p{font-size:12px}
 .modal .total-line{flex-wrap:wrap;gap:8px 12px;align-items:baseline;font-size:14px}
 .modal .total-line strong{max-width:100%;font-size:24px;overflow-wrap:anywhere}
 .modal .modal-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:22px}
 .modal .modal-actions .button{width:100%;min-width:0;min-height:48px;white-space:normal;font-size:14px;padding:12px 14px}
 .modal .checkout-layout,.modal .support-cards{grid-template-columns:1fr;gap:20px}
 .modal .checkout-side{padding:17px;min-width:0}
 .modal .checkout-line{gap:10px;align-items:flex-start;font-size:13px;line-height:1.6}
 .modal .checkout-line>span{min-width:0;overflow-wrap:anywhere}
 .modal .checkout-line strong{font-size:13px;flex-shrink:0}
 .modal .cart-item{display:grid;grid-template-columns:1fr;gap:10px;padding-block:18px;min-width:0}
 .modal .cart-item>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
 .modal .cart-item h3{font-size:15px;overflow-wrap:anywhere}
 .modal .cart-item p{font-size:13px}
 .modal .remove-item{min-height:44px;font-size:13px;padding:8px 0}
 .modal .payment-methods{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .modal .pay-method{min-height:48px;font-size:13px;padding:10px 8px}
 .modal .payment-information,.modal .wallet-value,.modal .order-reference{font-size:13px;line-height:1.8;min-width:0;overflow-wrap:anywhere;word-break:normal}
 .modal .support-socials{display:grid;grid-template-columns:1fr;gap:10px}
 .modal .support-socials>a{min-height:48px;font-size:14px}
 .modal .checkout-member-profile .kd-vip-identity{gap:3px}
 .toast{bottom:calc(var(--mobile-dock-height,80px) + 14px);max-width:calc(100% - 28px);width:max-content;padding:13px 16px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
 .mobile-keyboard-open .toast{bottom:18px}
 .community-compose-hint .touch-chat-hint{display:inline}
 .community-compose-hint .desktop-chat-hint{display:none}
}
@media(min-width:769px){
 .community-compose-hint .touch-chat-hint{display:none}
 .community-compose-hint .desktop-chat-hint{display:inline}
}
@media(max-width:359px){
 header .original-logo{width:166px}
 header .brand-subtitle{font-size:6px;padding-left:24px;letter-spacing:1.1px}
 .mobile-member-strip{grid-template-columns:minmax(0,1fr) 94px;gap:6px}
 .mobile-profile-button .kd-vip-avatar{--kd-avatar-size:66px!important}
 .mobile-profile-button .kd-header-text>strong{font-size:12px}
 .mobile-balance-button small{font-size:9px}
 .mobile-balance-button b{font-size:11px}
 .mobile-dock .nav-item{font-size:9.5px}
 .modal{padding:16px}
 .modal-head{top:-16px}
 .modal .checkout-line{flex-wrap:wrap}
}
@media(max-width:768px) and (orientation:landscape) and (max-height:550px){
 .mobile-member-strip{display:none}
 .modal,.modal.wide{max-height:calc(var(--mobile-viewport-height,100dvh) - 10px);border-radius:12px}
}
@media(prefers-reduced-motion:reduce){.mobile-menu-backdrop,.mobile-dock,.mobile-member-strip{transition:none}}

@media(min-width:769px) and (max-width:1024px) and (pointer:coarse){.community-compose-hint .touch-chat-hint{display:inline}.community-compose-hint .desktop-chat-hint{display:none}}

@media(max-width:768px), (max-width:1024px) and (pointer:coarse){body.royal-demo-mode .mobile-profile-button .kd-header-eyebrow{display:block;font-size:7px;line-height:1.4;letter-spacing:.5px;color:#e2c58c}}

@media (max-width:768px), (max-width:1024px) and (pointer:coarse){header .header-inner{display:flex}header .header-inner>nav{display:none}header .header-actions .account-button,header .header-actions .admin-entry{display:none!important}header .mobile-menu{display:flex!important}.mobile-dock{display:grid!important}header.mobile-open .header-inner>nav{display:grid}header.mobile-open .mobile-account-nav{display:inline-flex!important}header.mobile-open .header-balance{margin:0;height:auto}header.mobile-open .header-inner .nav-item{padding:10px 12px!important;font-size:13px!important}.mobile-menu-heading{grid-row:auto}}
@media(max-width:1024px) and (pointer:coarse) and (orientation:landscape) and (max-height:550px){.mobile-member-strip{display:none}}
