/* BALI Telegram Mini App 2026-10-28: fixed, centered, five-tab layout.
   Deliberately scoped to Telegram; website and catalog scrolling are unchanged. */
body.bali-guest-theme .app>.nav{
 width:min(100%,560px)!important;
 margin-inline:auto!important;
 display:grid!important;
 grid-template-columns:repeat(5,minmax(0,1fr))!important;
 gap:clamp(2px,1vw,8px)!important;
 padding:4px clamp(8px,3.1vw,16px) 5px!important;
 align-items:stretch!important;
 justify-items:stretch!important;
}
body.bali-guest-theme .app>.nav button{
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 align-items:center!important;min-width:0!important;text-align:center!important;
 gap:clamp(1px,.4dvh,4px)!important;
 font-size:clamp(8px,1.4dvh,10px)!important;letter-spacing:0!important;
}
body.bali-guest-theme .app>.nav button .tg-nav-art{
 display:grid!important;place-items:center!important;margin-inline:auto!important;
}
body.bali-guest-theme .tg-page:not(.tg-page-menu){overflow:hidden!important;overscroll-behavior:none}
body.bali-guest-theme .tg-page-home{position:relative!important;min-height:0!important;overflow:hidden!important}
body.bali-guest-theme .tg-page-home .tg-home-intro{
 flex:1 1 0!important;height:100%!important;min-height:0!important;max-height:100%!important;
 display:flex!important;flex-direction:column!important;
 gap:clamp(8px,1.55dvh,14px)!important;
 overflow:hidden!important;overscroll-behavior:none!important;
 padding:clamp(4px,.8dvh,9px) 1px clamp(57px,8.4dvh,70px)!important;
}
body.bali-guest-theme .tg-home-hero-copy{display:flex!important;flex:none!important;flex-direction:column;gap:clamp(4px,.7dvh,7px)!important}
body.bali-guest-theme .tg-home-hero-copy .tg-eyebrow{color:#cca9f8!important;letter-spacing:.23em!important;font-size:clamp(8px,1.4dvh,10px)!important}
body.bali-guest-theme .tg-home-hero-copy h1{
 display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:4px 8px!important;
 margin:0!important;font:950 clamp(27px,4.4dvh,36px)/1 Manrope,Inter,sans-serif!important;
 color:#fff2d4!important;text-shadow:0 2px 11px #bb86ff4a!important;
}
body.bali-guest-theme .tg-home-hero-copy h1 span{
 color:#e6d8fa!important;font:850 clamp(14px,2.3dvh,18px)/1.12 Manrope,Inter,sans-serif!important;
 text-shadow:none!important;
}
body.bali-guest-theme .tg-home-hero-copy p:last-child{
 margin:0!important;font:560 clamp(11px,1.8dvh,13px)/1.36 Manrope,Inter,sans-serif!important;
 color:#d4d1e5!important;max-width:520px!important;
}
body.bali-guest-theme .tg-home-launches{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 grid-template-rows:minmax(0,1fr)!important;gap:clamp(8px,2.4vw,14px)!important;
 height:clamp(152px,28dvh,238px)!important;min-height:0!important;flex:none!important;
}
body.bali-guest-theme .tg-home-action{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 position:relative!important;isolation:isolate!important;overflow:hidden!important;
 min-width:0!important;height:100%!important;padding:0!important;
 border:1px solid #bb9dd273!important;border-radius:20px!important;
 color:#fff!important;text-align:left!important;
 background:linear-gradient(135deg,#291d3d,#100f26 70%)!important;
 box-shadow:inset 0 1px #ffffff4a,0 5px 0 #080a16,0 12px 25px #0009!important;
 transition:transform .16s ease,filter .16s ease!important;
}
body.bali-guest-theme .tg-home-action:active{transform:translateY(3px) scale(.985)!important;filter:brightness(1.18)!important}
body.bali-guest-theme .tg-home-action-game{
 background:radial-gradient(ellipse at 48% 27%,#b97af75a,transparent 66%),linear-gradient(150deg,#432657,#1d1437 63%,#080e23)!important;
 border-color:#c9a8ffaf!important;
}
body.bali-guest-theme .tg-home-action-card{
 background:radial-gradient(ellipse at 62% 14%,#f8d69239,transparent 63%),linear-gradient(155deg,#392b2c,#1c1825 67%,#0b111d)!important;
 border-color:#e9cd969a!important;
}
body.bali-guest-theme .tg-home-action>span{
 grid-row:auto!important;grid-column:auto!important;width:auto!important;height:auto!important;
 display:block!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;padding:0;
}
body.bali-guest-theme .tg-home-action .tg-home-game-glow{
 position:absolute!important;inset:-25% -30% 33%!important;
 background:radial-gradient(ellipse,#b880ff3e,transparent 64%)!important;
 z-index:-1!important;pointer-events:none!important;
}
body.bali-guest-theme .tg-home-dj-art{
 display:block!important;position:absolute!important;z-index:1!important;
 top:-4%!important;left:-15%!important;width:130%!important;height:78%!important;
 max-width:none!important;object-fit:contain!important;object-position:center bottom!important;
 filter:drop-shadow(0 7px 8px #020410c9) drop-shadow(0 0 13px #b774df63)!important;
 pointer-events:none!important;
}
body.bali-guest-theme .tg-home-action .tg-home-action-copy{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-end!important;
 position:relative!important;z-index:3!important;margin-top:auto!important;width:100%!important;
 padding:27px clamp(9px,2.5vw,14px) 3px!important;
 background:linear-gradient(180deg,transparent,#100f20dd 33%,#100f20f0 100%)!important;
}
body.bali-guest-theme .tg-home-action-copy small{
 color:#d5bbff!important;font:800 clamp(8px,1.1dvh,9px)/1.2 Manrope,Inter,sans-serif!important;letter-spacing:.1em;
}
body.bali-guest-theme .tg-home-action-copy b{
 color:#f9f1e5!important;font:950 clamp(14px,2.3dvh,20px)/1.1 Manrope,Inter,sans-serif!important;
 letter-spacing:-.02em!important;margin-top:2px;
}
body.bali-guest-theme .tg-home-action-copy em{
 color:#cfc8e0!important;font:650 clamp(9px,1.4dvh,11px)/1.16 Manrope,Inter,sans-serif!important;
 font-style:normal!important;margin-top:2px;
}
body.bali-guest-theme .tg-home-action-card .tg-home-action-copy small{color:#f5cc85!important}
body.bali-guest-theme .tg-home-action .tg-home-action-cta{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 position:relative!important;z-index:4!important;flex:none!important;
 margin:0 clamp(8px,2.5vw,13px) clamp(7px,1dvh,10px)!important;
 padding:clamp(5px,.8dvh,8px) 10px!important;border-radius:9px!important;
 background:linear-gradient(105deg,#9e77d6,#6449ab)!important;
 color:#fff!important;font:900 clamp(9px,1.5dvh,11px)/1.1 Manrope,Inter,sans-serif!important;
 box-shadow:inset 0 1px #ffffff65,0 2px 0 #3c2b5b!important;
}
body.bali-guest-theme .tg-home-action-card .tg-home-action-cta{
 color:#271e1b!important;background:linear-gradient(110deg,#fce8be,#cfa065)!important;box-shadow:inset 0 1px #fff9,0 2px 0 #76502a!important;
}
body.bali-guest-theme .tg-home-action-cta i{font-style:normal}
body.bali-guest-theme .tg-home-action .tg-home-card-art{
 position:absolute!important;left:12%!important;top:12%!important;z-index:1!important;
 display:block!important;width:78%!important;height:auto!important;aspect-ratio:1.59!important;
 border:1px solid #f1d6a2aa!important;border-radius:8px!important;
 overflow:hidden!important;transform:rotate(-7deg) perspective(280px) rotateY(-9deg)!important;
 background:linear-gradient(132deg,#b78a4d,#4d362c 50%,#130f19)!important;
 box-shadow:inset 0 1px #fff6,7px 10px 14px #02020ba8,0 0 19px #e6b77929!important;
}
body.bali-guest-theme .tg-home-card-art[data-tier="silver"]{background:linear-gradient(130deg,#e4e7ee,#838c9c,#303644)!important;color:#131923!important}
body.bali-guest-theme .tg-home-card-art[data-tier="platinum"]{background:linear-gradient(125deg,#e0e8fa,#72849d,#2b3a4d)!important}
body.bali-guest-theme .tg-home-card-art[data-tier="black"]{background:linear-gradient(130deg,#303238,#090b10 80%)!important}
body.bali-guest-theme .tg-home-card-art[data-tier="private"]{background:linear-gradient(130deg,#ffeb88,#9d681f,#2a2017)!important}
body.bali-guest-theme .tg-home-card-art[data-tier="brsm"]{background:linear-gradient(130deg,#cc291e,#78251e 56%,#193524)!important}
body.bali-guest-theme .tg-home-card-art[data-tier="member"]{background:linear-gradient(120deg,#394753,#101721)!important}
body.bali-guest-theme .tg-home-card-art .tg-home-card-top{
 position:absolute!important;z-index:2;top:8%;left:8%;right:8%;display:flex!important;justify-content:space-between!important;
 color:#fff5dc;font:800 clamp(5px,.9dvh,8px)/1.1 Manrope,Inter,sans-serif!important;
 text-shadow:0 1px 4px #000a;
}
body.bali-guest-theme .tg-home-card-top i{font-style:normal}
body.bali-guest-theme .tg-home-card-top em{font-style:normal;text-align:right}
body.bali-guest-theme .tg-home-card-art img{
 display:block!important;position:absolute!important;top:21%!important;left:29%!important;
 width:42%!important;height:55%!important;object-fit:contain!important;
 filter:brightness(0) invert(1) drop-shadow(0 2px 2px #0006)!important;opacity:.9!important;
}
body.bali-guest-theme .tg-home-card-owner,
body.bali-guest-theme .tg-home-card-number{
 position:absolute!important;bottom:8%;z-index:2;color:#fff5dc;
 font:800 clamp(5px,.86dvh,8px)/1 Manrope,Inter,sans-serif!important;
 text-shadow:0 1px 4px #000c;max-width:72%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.bali-guest-theme .tg-home-card-owner{left:8%}
body.bali-guest-theme .tg-home-card-number{right:8%;font-variant-numeric:tabular-nums}
body.bali-guest-theme .tg-home-contacts{
 flex:none!important;display:flex!important;flex-direction:column!important;
 gap:clamp(5px,.8dvh,8px)!important;padding:clamp(9px,1.35dvh,13px)!important;
 border:1px solid #c6aae35e!important;border-radius:17px!important;
 background:linear-gradient(145deg,#271e36,#181825 75%)!important;
 box-shadow:inset 0 1px #ffffff18,0 5px 17px #0005;
}
body.bali-guest-theme .tg-home-contacts h2{
 color:#f5e5ca!important;font:900 clamp(12px,1.8dvh,15px)/1.1 Manrope,Inter,sans-serif!important;letter-spacing:.035em;
}
body.bali-guest-theme .tg-home-contacts p{
 color:#bcb2ce!important;font:650 clamp(9px,1.4dvh,11px)/1.2 Manrope,Inter,sans-serif!important;
}
body.bali-guest-theme .tg-home-contacts>.tg-home-contact-grid{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:clamp(4px,1vw,8px)!important;margin:2px 0 0!important;
}
body.bali-guest-theme .tg-home-contact-link{
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 gap:3px!important;min-width:0!important;height:clamp(45px,7dvh,58px)!important;
 padding:4px 1px!important;
 border:1px solid #8e7ba37b!important;border-radius:11px!important;
 background:linear-gradient(155deg,#393047,#211e32)!important;color:#f1e7fa!important;
 font:850 clamp(8px,1.25dvh,10px)/1.1 Manrope,Inter,sans-serif!important;letter-spacing:0!important;
}
body.bali-guest-theme .tg-home-contact-link span{font-size:clamp(17px,2.8dvh,22px)!important;color:#e1bafc!important}
body.bali-guest-theme .tg-home-contact-phone{border-color:#d0a77b9e!important;background:linear-gradient(155deg,#51402e,#2b2332)!important}
body.bali-guest-theme .tg-home-contact-phone span{color:#f8d294!important}
body.bali-guest-theme .tg-home-contact-link:active{transform:translateY(2px)!important;filter:brightness(1.17)!important}
body.bali-guest-theme .tg-page-home>.tg-home-photo-fab{
 position:absolute!important;left:1px!important;right:1px!important;bottom:clamp(3px,.7dvh,8px)!important;
 display:flex!important;justify-content:center!important;align-items:center!important;
 gap:9px!important;height:clamp(43px,6.7dvh,54px)!important;padding:4px 10px!important;
 border-radius:13px!important;animation:none!important;
 background:linear-gradient(120deg,#bc89e3,#f1cf96)!important;
 color:#26192d!important;border:1px solid #f5d7c7!important;
 box-shadow:inset 0 1px #fff9,0 3px 0 #5c4561,0 8px 15px #0006!important;
}
body.bali-guest-theme .tg-page-home>.tg-home-photo-fab[disabled]{
 opacity:1!important;cursor:default!important;
 background:linear-gradient(115deg,#343145,#272633)!important;
 color:#c5b7d2!important;border-color:#655875!important;box-shadow:inset 0 1px #ffffff15!important;
}
body.bali-guest-theme .tg-page-home>.tg-home-photo-fab .tg-fab-camera{
 flex:none!important;display:grid!important;place-items:center!important;
 width:32px!important;height:32px!important;border-radius:9px!important;
 font-size:24px!important;color:inherit!important;
 background:#1917295e!important;box-shadow:none!important;
}
body.bali-guest-theme .tg-page-home>.tg-home-photo-fab b{font-size:clamp(11px,1.8dvh,14px)!important}
body.bali-guest-theme .tg-page-home>.tg-home-photo-fab small{font-size:clamp(8px,1.3dvh,10px)!important}
body.bali-guest-theme .tg-page-card .tg-work-launcher{
 width:100%!important;min-width:0!important;height:clamp(70px,10.4dvh,89px)!important;
 min-height:70px!important;background:linear-gradient(110deg,#382958,#262544 58%,#241b37)!important;
 border:1px solid #bd9af7ba!important;
}
body.bali-guest-theme .tg-page-card .tg-work-launcher-icon{
 border-color:#d9a9ff!important;color:#f8e5ff!important;
 background:radial-gradient(circle at 34% 26%,#fffbff,#a966cf 40%,#432764 74%)!important;
 font-size:30px!important;
}
body.bali-guest-theme .tg-page-card .tg-work-launcher-text b{color:#f6dcff!important}
body.bali-guest-theme .tg-page-card .tg-work-launcher-text small{
 color:#ddd0f5!important;font-size:clamp(9px,1.35dvh,11px)!important;
 line-height:1.22!important;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden!important;
}
body.bali-guest-theme .tg-page-profile .tg-profile-actions{
 display:grid!important;grid-template-columns:1fr!important;gap:clamp(5px,.8dvh,8px)!important;
 margin:clamp(5px,1dvh,9px) 0!important;flex:none!important;
}
body.bali-guest-theme .tg-page-profile .tg-profile-actions .tile{
 min-height:0!important;height:clamp(48px,7.8dvh,60px)!important;
 text-align:left!important;
}
body.bali-guest-theme .tg-page-profile .tg-profile-actions .tile b{font-size:clamp(11px,1.85dvh,14px)!important}
body.bali-guest-theme .tg-page-profile .tg-profile-actions .tile p{font-size:clamp(9px,1.3dvh,10px)!important}
body.bali-guest-theme .tg-page-history .tg-receipt-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
body.bali-guest-theme .tg-page-history .tg-receipt-tabs .button{min-width:0!important;font-size:clamp(9px,1.4dvh,11px)!important;padding:6px 3px!important;line-height:1.15!important}
body.bali-guest-theme .tg-page-calendar .tg-instagram-swipe-cue,
body.bali-guest-theme .tg-page-calendar .tg-instagram-swipe-cue::before{display:none!important;animation:none!important}
@media(max-height:650px){
 body.bali-guest-theme .tg-page-home .tg-home-intro{gap:clamp(4px,1dvh,8px)!important;padding-bottom:51px!important}
 body.bali-guest-theme .tg-home-launches{height:clamp(126px,24dvh,176px)!important}
 body.bali-guest-theme .tg-home-hero-copy h1{font-size:clamp(23px,4.5dvh,29px)!important}
 body.bali-guest-theme .tg-home-hero-copy h1 span{font-size:clamp(12px,2.2dvh,15px)!important}
 body.bali-guest-theme .tg-home-hero-copy p:last-child{font-size:clamp(9px,1.6dvh,11px)!important}
 body.bali-guest-theme .tg-home-contacts{padding:7px!important;gap:4px!important}
 body.bali-guest-theme .tg-home-contact-link{height:40px!important}
 body.bali-guest-theme .tg-home-action .tg-home-action-copy{padding-top:16px!important}
 body.bali-guest-theme .tg-page-home>.tg-home-photo-fab{height:41px!important}
 body.bali-guest-theme .tg-page-home>.tg-home-photo-fab .tg-fab-camera{width:27px!important;height:27px!important}
 body.bali-guest-theme .tg-page-card .tg-work-launcher{height:69px!important;min-height:69px!important}
}
@media(prefers-reduced-motion:reduce){
 body.bali-guest-theme .tg-home-action{transition:none!important}
}

/* WORK quests: all missions are accessible by fixed previous/next buttons. */
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-missions{
 overflow:hidden!important;touch-action:none!important;
 scrollbar-width:none!important;padding:1px 2px!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission[hidden]{
 display:none!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission-pager{
 display:flex!important;flex:none!important;align-items:center!important;justify-content:space-between!important;
 gap:10px!important;margin:1px 0 0!important;min-height:29px!important;
 color:#e8d5ff;font:800 11px/1.1 Manrope,Inter,sans-serif;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission-pager .button{
 width:92px!important;min-height:29px!important;height:29px!important;
 padding:5px!important;font-size:10px!important;
 border:1px solid #d5b7ed8c!important;background:#2b2341!important;
}
body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission-pager .button:disabled{opacity:.4!important}
@media(max-height:720px){
 body.bali-guest-theme .tg-page-work:not(.tg-page-crew) .tg-work-mission{min-height:clamp(90px,15dvh,110px)!important}
}

/* COIN SHOP: no page or list scrolling; full catalogue remains reachable by pager. */
body.bali-guest-theme .tg-page-shop .tg-coinshop-display{
 display:flex!important;flex:1 1 0!important;flex-direction:column!important;
 min-height:0!important;overflow:hidden!important;touch-action:auto!important;
 gap:5px!important;
}
body.bali-guest-theme .tg-page-shop .tg-coinshop-display .coin-shop-products,
body.bali-guest-theme .tg-page-shop .tg-coinshop-display .coin-shop-history-list{
 flex:1 1 0!important;min-height:0!important;max-height:100%!important;
 overflow:hidden!important;grid-auto-rows:minmax(0,1fr)!important;
 grid-template-rows:none!important;align-content:stretch!important;
}
body.bali-guest-theme .tg-page-shop .tg-coinshop-display .coin-shop-product{
 min-height:0!important;height:100%!important;max-height:100%!important;
 overflow:hidden!important;
}
body.bali-guest-theme .tg-page-shop .tg-coinshop-display .coin-shop-product p{
 display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;
 overflow:hidden!important;
}
body.bali-guest-theme .tg-page-shop .tg-shop-fixed-pager{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:9px!important;flex:none!important;width:100%!important;height:clamp(30px,5dvh,37px)!important;
 padding:2px 4px!important;color:#f9e1ae;font:800 11px/1 Manrope,Inter,sans-serif;
}
body.bali-guest-theme .tg-page-shop .tg-shop-fixed-pager button{
 width:92px!important;min-height:29px!important;max-height:32px!important;
 padding:5px!important;font-size:10px!important;
}
@media(max-height:650px){
 body.bali-guest-theme .tg-page-shop .tg-coinshop-display .coin-shop-product{
  grid-template-columns:70px minmax(0,1fr)!important;
  padding:5px!important;
 }
 body.bali-guest-theme .tg-page-shop .tg-coinshop-display .coin-shop-product p{
  -webkit-line-clamp:1!important;
 }
}
