.card-window{display:contents}.compact-scrollbar{display:none}
/* One mobile landscape layout, after the older themed/adaptive rules. */
@media (orientation:landscape) and (max-height:700px){
 body.touch #hud .player-hud{width:174px;height:43px;padding:4px 7px;gap:5px;border-radius:5px 10px 5px 5px}
 body.touch #hud #avatar{width:26px;height:26px}
 body.touch #hud #player-name{font-size:10px;line-height:14px}
 body.touch #hud .progress-label{font-size:8px;line-height:11px;margin:2px 0}
 body.touch #hud .player-hud .track{height:4px;margin-top:2px;max-width:100px}
 body.touch #hud .player-hud .combat-status{top:calc(100% + 6px)}
 body.touch #hud #health{width:69px;height:23px}
 body.touch #hud #swim-badge{right:4px;bottom:3px}
 body.touch #hud .ability-badge{width:13px;height:13px;font-size:11px}
 body.touch #hud .top-actions{gap:5px}
 body.touch #hud .top-actions .iconbutton{width:32px;height:32px;min-height:32px;font-size:18px;border-radius:5px}
 body.touch #hud .coins{height:30px;min-width:50px;padding:3px 6px;font-size:11px}
 body.touch #hud .coin,body.touch #hud .coin .currency-icon{width:22px;height:22px}
 body.touch #hud .location{width:auto;min-width:0;max-width:calc(100vw - 370px);font-size:10px}
 body.touch #hud .location b{font-size:10px;padding:2px 9px}
 body.touch #hud .event-banner{top:calc(var(--edge-top) + 25px);width:max-content;min-width:0;max-width:calc(100vw - 370px);font-size:8px;padding:3px 8px}
 body.touch #rank-dock{top:calc(var(--edge-top) + 73px);left:var(--edge-left);gap:6px}
 body.touch #hud #rank-dock #rank{width:107px;min-width:0;padding:3px 5px;font-size:8px;line-height:1.2;border-top-width:2px;box-shadow:2px 2px #303653}
 body.touch #hud #rank>b{font-size:8px}
 body.touch #hud #rank>div{padding:0;gap:4px}
 body.touch #bait-stock{width:60px;grid-template-columns:23px minmax(3ch,1fr);padding:3px;gap:0;border-radius:6px;box-shadow:2px 2px #303653}
 body.touch #bait-stock img{width:23px;height:23px}body.touch #bait-stock b{font-size:11px}
 body.touch #bait-stock small{font-size:8px}
 body.touch #bait-event{top:calc(var(--edge-top) + 52px);font-size:10px;padding:3px 7px}

 body.touch #modal[data-menu-theme=stickers]:not([data-menu-theme=field]){display:grid;grid-template:32px 34px minmax(0,1fr)/minmax(0,1fr);gap:5px;padding:8px 12px;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border-radius:0;box-sizing:border-box}
 body.touch #modal[data-menu-theme=stickers] .modal-head{grid-area:1/1;margin:0;padding:0;min-height:0;gap:8px}
 body.touch #modal[data-menu-theme=stickers] .modal-head h2{font-size:19px;line-height:1.1}
 body.touch #modal[data-menu-theme=stickers] #close-modal{width:32px;height:32px;min-height:32px;font-size:21px;padding:0;box-shadow:2px 2px #597155}
 body.touch #modal[data-menu-theme=stickers] #menu-tabs{grid-area:2/1;display:flex;flex-direction:row;gap:6px;padding:0;margin:0;border:0;border-bottom:2px solid #303754;min-height:0}
 body.touch #modal[data-menu-theme=stickers] #menu-tabs button{flex:0 1 auto;display:flex;flex-direction:row;align-items:center;gap:5px;min-height:30px;height:30px;padding:3px 12px;font-size:12px;rotate:0deg;transform:none}
 body.touch #modal[data-menu-theme=stickers] #menu-tabs svg{width:17px;height:17px}
 body.touch #modal[data-menu-theme=stickers] #modal-body{grid-area:3/1;padding:3px 3px 5px;min-height:0;min-width:0}
 body.touch #modal[data-menu-theme=stickers] .card-window{display:block;position:relative;flex:1;min-height:0;min-width:0;overflow:hidden;padding-right:13px}
 body.touch #modal[data-menu-theme=stickers] .card-window>.card-scroll{width:100%;height:100%;max-height:none;min-height:0;flex:none;overflow-y:scroll;overflow-x:hidden;scrollbar-width:none;touch-action:pan-y;overscroll-behavior:contain;box-sizing:border-box;padding:6px 6px 8px;margin:0;gap:12px 6px;align-content:start;scroll-snap-type:none}
 .card-scroll::-webkit-scrollbar{display:none}
 .compact-scrollbar{display:block;position:absolute;right:1px;top:5px;bottom:7px;width:7px;border-radius:5px;background:#d9d4bf;touch-action:none}
 .compact-scrollbar>i{display:block;position:absolute;left:0;right:0;top:0;min-height:18px;border-radius:5px;background:#7d8b70}
 .compact-scrollbar[hidden]{display:none}
 body.touch #modal[data-menu-theme=stickers] :is(.look-card,.index4-card,.class-card){rotate:0deg!important;transform:none!important;scroll-snap-align:none;margin:0!important;box-sizing:border-box}

 body.touch #modal[data-menu-theme=stickers][data-screen=expeditions] #modal-body{gap:8px;grid-template-rows:minmax(0,1fr) 46px}
 body.touch #modal[data-menu-theme=stickers] .expedition-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);gap:12px}
 body.touch #modal[data-menu-theme=stickers] .profession-picker h3{font-size:14px;margin:0 0 4px}
 body.touch #modal[data-menu-theme=stickers] .class-grid{grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:var(--card-height,82px)}
 body.touch #modal[data-menu-theme=stickers] .class-card{height:var(--card-height,82px);min-height:0;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto auto;padding:4px;gap:2px 6px;overflow:hidden}
 body.touch #modal[data-menu-theme=stickers] .class-card .profession-art{width:28px;height:28px;grid-row:1/4}
 body.touch #modal[data-menu-theme=stickers] .class-card b{font-size:12px}
 body.touch #modal[data-menu-theme=stickers] .class-card small{display:block;font-size:10px;line-height:1.2;grid-column:2}
 body.touch #modal[data-menu-theme=stickers] .class-card span{font-size:9px;margin:0;grid-column:2}
 body.touch #modal[data-menu-theme=stickers] .expedition-worlds{gap:6px;overflow-y:auto;padding:6px 6px 8px;scrollbar-width:thin}
 body.touch #modal[data-menu-theme=stickers] .expedition-worlds .biome-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:10px;flex:none}
 body.touch #modal[data-menu-theme=stickers] .expedition-worlds .biome-tile>.biome-card{display:flex;padding:0 0 32px!important;gap:4px;box-shadow:3px 3px #303754}
 body.touch #modal[data-menu-theme=stickers] .expedition-worlds .biome-picture{height:clamp(42px,18vh,100px);width:100%;object-fit:contain;aspect-ratio:auto;max-height:none}
 body.touch #modal[data-menu-theme=stickers] .expedition-worlds .biome-card b{font-size:13px;line-height:1.2;padding:0 5px!important;margin:0}
 body.touch #modal[data-menu-theme=stickers] .expedition-worlds .biome-card span{display:block;font-size:9px;line-height:1.2;padding:0 5px!important;margin:0}
 body.touch #modal[data-menu-theme=stickers] .biome-collection{font-size:10px;min-height:24px;bottom:5px;right:5px;padding:2px 5px}
 body.touch #modal[data-menu-theme=stickers] .biome-collection svg{width:14px;height:14px}
 body.touch #modal[data-menu-theme=stickers] .expedition-footer{gap:2px;padding:0;min-height:0}
 body.touch #modal[data-menu-theme=stickers] #begin-expedition{min-height:30px;height:30px;padding:3px 10px;font-size:15px;box-shadow:3px 3px #303754;width:min(420px,80%)}
 body.touch #modal[data-menu-theme=stickers] .expedition-footer p{font-size:10px}

 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-head{position:absolute;top:9px;right:58px;margin:0}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-head>b{font-size:11px;gap:4px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-head button{min-height:27px;padding:3px 7px;font-size:11px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-head .currency-icon{width:19px;height:19px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .ticket-wallet{margin-left:5px;gap:2px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-layout{grid-template-columns:minmax(100px,.26fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:10px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-stage{display:flex;position:static;height:100%;width:100%;margin:0}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-stage>canvas{width:100%;height:100%;min-height:0;max-height:none}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-shop{gap:5px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-tabs{display:flex;flex-wrap:wrap;flex:none;overflow:visible;gap:4px;padding:0;margin:0}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-tabs button{flex:1 0 auto;min-width:0;min-height:27px;padding:3px 6px;font-size:10px;white-space:nowrap;transform:none}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-items{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:var(--card-height,104px)}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .look-card{height:var(--card-height,104px);transform:none!important;min-height:0;padding:4px;gap:2px;box-shadow:2px 2px #303754;outline-offset:0!important}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .look-swatch{flex:1;min-height:20px;height:auto;position:relative;font-size:26px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .look-swatch canvas{position:absolute;inset:0;height:100%;max-height:none;width:100%;object-fit:contain}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .look-card b{font-size:11px;line-height:13px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .look-card small{font-size:10px;line-height:13px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .rarity-seal{font-size:8px;top:3px;left:3px;height:16px;width:auto;padding:1px 4px;line-height:12px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .clothing-type{width:19px;height:19px;right:3px;top:3px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .clothing-type svg{width:16px;height:16px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] #look-apply{min-height:29px;height:29px;padding:3px 8px;margin:0 auto 3px;font-size:13px;box-shadow:3px 3px #303754;flex:none}

 body.touch #modal[data-menu-theme=stickers] .index-biomes{gap:8px;margin:0 0 5px}
 body.touch #modal[data-menu-theme=stickers] .index-biome{flex:0 1 230px;flex-direction:row;padding:2px 6px!important;gap:5px;box-shadow:2px 2px #303754;min-height:30px}
 body.touch #modal[data-menu-theme=stickers] .index-biome .biome-picture{width:54px;height:24px;max-height:24px;object-fit:contain}
 body.touch #modal[data-menu-theme=stickers] .index-biome span{font-size:11px}
 body.touch #modal[data-menu-theme=stickers][data-screen=collection] .collection-note{font-size:10px;margin:0 0 3px;line-height:13px}
 body.touch #modal[data-menu-theme=stickers] .index4-grid{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:auto}
 body.touch #modal[data-menu-theme=stickers] .index-divider{font-size:17px;line-height:24px;height:24px;margin:0;gap:8px}
 body.touch #modal[data-menu-theme=stickers] .index4-card{height:var(--card-height,95px);min-height:0;padding:4px;gap:2px;box-shadow:2px 2px #303754}
 body.touch #modal[data-menu-theme=stickers] .index4-card canvas{flex:1;min-height:20px;height:0;width:100%;object-fit:contain}
 body.touch #modal[data-menu-theme=stickers] .index4-card b{font-size:11px;line-height:13px}
 body.touch #modal[data-menu-theme=stickers] .index4-card small{font-size:9px;line-height:11px}
}
@media (orientation:landscape) and (max-width:700px){body.touch #modal[data-menu-theme=stickers] .index4-grid{grid-template-columns:repeat(4,minmax(0,1fr))}body.touch #modal[data-menu-theme=stickers] .modal-head h2{font-size:16px}body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-head button{font-size:10px;padding:3px 5px}}

@media (orientation:landscape) and (max-height:340px){
 body.touch #modal[data-menu-theme=stickers]:not([data-menu-theme=field]){grid-template-rows:26px 28px minmax(0,1fr);gap:4px;padding-top:6px;padding-bottom:6px}
 body.touch #modal[data-menu-theme=stickers] #menu-tabs button{height:26px;min-height:26px}
 body.touch #modal[data-menu-theme=stickers] #close-modal{height:26px;min-height:26px;width:28px}
 body.touch #modal[data-menu-theme=stickers][data-screen=wardrobe] .wardrobe-head{top:6px}
}


/* Bait stays with health; the leaderboard stays with the pause controls. */
body #hud #bait-stock{position:absolute;left:24px;top:170px}
body.touch #hud #bait-stock{left:var(--edge-left);top:calc(var(--edge-top) + 104px)}
body.touch #hud #rank-dock{left:auto;right:var(--edge-right);top:calc(var(--edge-top) + 52px)}
@media(min-width:681px) and (max-height:560px){body:not(.touch) #hud #bait-stock{left:13px;top:140px}}
@media(orientation:landscape) and (max-height:700px){
 body.touch #hud #bait-stock{top:calc(var(--edge-top) + 73px)}
 body.touch #hud #rank-dock{top:calc(var(--edge-top) + 42px)}
}
body.training #hud #bait-stock{top:45px;left:14px}

@media(orientation:landscape) and (max-height:330px){body.touch #hud #rank-dock{right:calc(var(--edge-right) + 68px)}}
@media(orientation:landscape) and (max-height:330px){body.touch #hud #bait-call{bottom:calc(var(--edge-bottom) + 102px)}}
