/* FRAY TON Mini App overlay */
#tg-dock{position:fixed;left:calc(10px + env(safe-area-inset-left,0px));top:calc(8px + env(safe-area-inset-top,0px));z-index:9998;pointer-events:none}
#tg-dock .tg-pill{pointer-events:auto;display:flex;align-items:center;gap:7px;border:1px solid #2C3A5C;background:linear-gradient(180deg,#121A2Bf2,#0A111Bf2);color:#EEF3FF;border-radius:3px;padding:5px 8px;font:800 9px/1.1 'Rubik','Segoe UI',sans-serif;letter-spacing:.8px;box-shadow:0 4px 18px #000a;cursor:pointer;backdrop-filter:blur(6px)}
#tg-dock .tg-pill:active{transform:translateY(1px)}
#tg-dock .tg-dot{width:6px;height:6px;border-radius:50%;background:#39E07A;box-shadow:0 0 8px #39E07A}
#tg-dock b{color:#F6A83B;font-weight:900;border-left:1px solid #26324D;padding-left:7px}
#tg-panel{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;background:#070C14d9;backdrop-filter:blur(4px);padding:12px}
#tg-panel.on{display:flex}
#tg-panel .tg-sheet{width:min(430px,96vw);max-height:92vh;display:flex;flex-direction:column;background:linear-gradient(180deg,#121A2B,#0A111B);border:1px solid #2C3A5C;border-radius:3px;box-shadow:0 30px 90px #000d, inset 0 1px 0 #D6802922}
#tg-panel .tg-head{display:flex;align-items:flex-start;justify-content:space-between;padding:14px 16px 10px;border-bottom:1px solid #1B2540}
#tg-panel .tg-kicker{font:800 7px 'Rubik','Segoe UI',sans-serif;letter-spacing:2px;color:#F6A83B}
#tg-panel h2{font:400 26px/1 'Bungee','Arial Black',sans-serif;letter-spacing:2px;color:#F6A83B;margin:3px 0 0}
#tg-panel .tg-x{width:32px;height:32px;border:1px solid #26324D;background:#0A111B;color:#A8B4D0;border-radius:2px;font:800 14px 'Rubik','Segoe UI',sans-serif}
#tg-panel .tg-body{padding:12px 16px 16px;overflow:auto;-webkit-overflow-scrolling:touch}
#tg-panel .tg-user{display:flex;align-items:baseline;gap:8px;margin-bottom:10px}
#tg-panel .tg-user span{font:900 14px 'Rubik','Segoe UI',sans-serif;letter-spacing:1px;color:#EEF3FF}
#tg-panel .tg-user small{font:700 9px 'Rubik','Segoe UI',sans-serif;color:#7D89A8}
#tg-panel .tg-sec{margin-top:12px}
#tg-panel .tg-label{font:800 8px 'Rubik','Segoe UI',sans-serif;letter-spacing:1.8px;color:#F6A83B;margin-bottom:6px}
#tg-panel .tg-addr{margin-top:7px;padding:7px 8px;background:#0A111B;border:1px solid #1B2540;font:700 10px 'Rubik','Segoe UI',sans-serif;color:#F6A83B;word-break:break-all}
#tg-panel .tg-balancebox{display:flex;align-items:baseline;justify-content:space-between;margin-top:12px;padding:10px 12px;border:1px solid #26324D;background:linear-gradient(135deg,#121A2B,#0A111B)}
#tg-panel .tg-balancebox span{font:800 8px 'Rubik','Segoe UI',sans-serif;letter-spacing:1.4px;color:#7D89A8}
#tg-panel .tg-balancebox b{font:400 28px/1 'Bungee','Arial Black',sans-serif;color:#F6A83B}
#tg-panel .tg-row{display:flex;align-items:center;gap:8px}
#tg-panel .tg-btn{flex:0 0 auto;border:1px solid #2C3A5C;background:linear-gradient(#F6A83B,#D68029);color:#0A111B;font:900 10px 'Rubik','Segoe UI',sans-serif;letter-spacing:1px;padding:9px 12px;border-radius:2px}
#tg-panel .tg-btn:disabled{opacity:.45;filter:grayscale(.4)}
#tg-panel .tg-note{font:700 9px/1.35 'Rubik','Segoe UI',sans-serif;color:#7D89A8}
#tg-panel .tg-token{font:700 10px/1.5 'Rubik','Segoe UI',sans-serif;color:#A8B4D0;padding:8px;border:1px solid #1B2540;background:#0A111B}
#tg-panel .tg-ledger{max-height:140px;overflow:auto;border-top:1px solid #1B2540}
#tg-panel .tg-lrow{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #121A2B;font:700 9px 'Rubik','Segoe UI',sans-serif;color:#A8B4D0}
#tg-panel .tg-lrow b.pos{color:#39E07A}
#tg-panel .tg-lrow b.neg{color:#FF4F8B}
#tg-panel .tg-foot{margin-top:14px;font:700 9px/1.45 'Rubik','Segoe UI',sans-serif;color:#7D89A8}
#tg-panel #ton-connect-root{margin:2px 0 4px}
#tg-panel #ton-connect-root button{width:100%!important;border-radius:2px!important}
/* 0.7.0: quick wallet buttons */
#tg-panel .tg-wapps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:6px 0 2px}
#tg-panel .tg-wapps button{padding:7px 2px;border:1px solid #1B2540;border-radius:2px;background:#0F1A2C;color:#CFE3FF;font:800 8.5px/1.1 'Rubik','Segoe UI',sans-serif;letter-spacing:.06em;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#tg-panel .tg-wapps button:active{background:#18263F}
#tg-toast{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);z-index:10001;opacity:0;pointer-events:none;background:#121A2B;border:1px solid #2C3A5C;color:#EEF3FF;font:800 10px 'Rubik','Segoe UI',sans-serif;letter-spacing:.5px;padding:8px 12px;border-radius:2px;transition:.2s;max-width:88vw;text-align:center}
#tg-toast.on{opacity:1;transform:translate(-50%,0)}
#sk-w-mwa,#sk-w-inj,#sk-envnote{display:none!important}

#tg-panel .tg-openbot{display:block;margin:0 0 10px;padding:9px 10px;border:1px solid #2C3A5C;background:#121A2B;color:#F6A83B;font:900 10px 'Rubik','Segoe UI',sans-serif;letter-spacing:.6px;text-align:center;text-decoration:none;border-radius:2px}

/* Telegram Mini App safe area: keep native top controls clear */
#sk{top:max(var(--tg-top,0px),env(safe-area-inset-top,0px));bottom:max(var(--tg-bottom,0px),env(safe-area-inset-bottom,0px));height:auto}
#sk .pane{padding-top:calc(8px + max(var(--tg-extra-top,0px),0px))}
#sk .pane{padding-top:8px}

/* Portrait start hint */
#rotate-hint{position:fixed;inset:0;z-index:10002;display:none;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:28px 22px;text-align:center;background:radial-gradient(circle at 50% 42%,#1B2540 0,#0A111B 62%,#070C14 100%);color:#EEF3FF}
#rotate-hint:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,#ffffff05 0 1px,transparent 1px 4px);pointer-events:none}
#rotate-hint .rh-phone{width:64px;height:104px;border:2px solid #F6A83B;border-radius:9px;position:relative;transform:rotate(90deg);box-shadow:0 0 0 1px #000,0 0 28px #F6A83B33;animation:rh-tilt 2.4s ease-in-out infinite}
#rotate-hint .rh-phone:before{content:"";position:absolute;left:50%;top:6px;width:16px;height:3px;border-radius:2px;background:#2C3A5C;transform:translateX(-50%)}
#rotate-hint .rh-phone:after{content:"";position:absolute;left:50%;bottom:6px;width:8px;height:8px;border:2px solid #F6A83B;border-radius:50%;transform:translateX(-50%)}
#rotate-hint .rh-phone i{position:absolute;inset:12px 8px 18px;border:1px solid #2C3A5C;background:linear-gradient(135deg,#1B2540,#0A111B)}
#rotate-hint b{font:400 19px/1 'Bungee','Arial Black',sans-serif;letter-spacing:2px;color:#F6A83B;position:relative}
#rotate-hint span{font:800 11px/1.55 'Rubik','Segoe UI',sans-serif;letter-spacing:.4px;color:#A8B4D0;max-width:290px;position:relative}
@keyframes rh-tilt{0%,18%{transform:rotate(90deg)}50%,68%{transform:rotate(0deg)}100%{transform:rotate(90deg)}}
@media (orientation:portrait){#rotate-hint{display:flex}}
@media (orientation:landscape){#rotate-hint{display:none!important}}

/* TON dock: keep clear of Telegram's top-left close control */
#tg-dock{left:50%;right:auto;transform:translateX(-50%);top:calc(6px + max(var(--tg-top,0px),env(safe-area-inset-top,0px)))}
#tg-dock .tg-pill{backdrop-filter:blur(8px)}

/* Bottom nav: anchor to the device edge, not the Telegram content safe area */
#sk{bottom:0}
#sk-nav{bottom:calc(6px + env(safe-area-inset-bottom,0px))!important}

/* Bottom nav: flush to the device edge, with the safe area inside the bar */
#sk-nav{bottom:0!important;height:calc(var(--sk-nav-h) + env(safe-area-inset-bottom,0px))!important;padding-bottom:calc(4px + env(safe-area-inset-bottom,0px))!important}

/* Lift the screen content slightly above the bottom nav */
#sk-lobby{padding-bottom:calc(var(--sk-nav-h) + var(--sk-nav-gap) + 24px + env(safe-area-inset-bottom,0px))!important}


/* Keep the top bar clear of Telegram's close (left) and menu (right) controls */
#sk-top{width:100%;box-sizing:border-box;padding-left:calc(50px + env(safe-area-inset-left,0px));padding-right:calc(50px + env(safe-area-inset-right,0px))}

/* Final layout: lift content to the Telegram close row, keep gutters, compact nav */
#sk{top:max(0px,calc(var(--tg-top,0px) - 24px))!important}
#sk-top{width:100%;box-sizing:border-box;padding-left:calc(50px + env(safe-area-inset-left,0px));padding-right:calc(50px + env(safe-area-inset-right,0px))}
#sk-nav{bottom:0!important;height:var(--sk-nav-h)!important;padding:4px 6px!important}
#sk-lobby{padding-bottom:calc(var(--sk-nav-h) + var(--sk-nav-gap) + 16px)!important}

/* Social: friends, guilds, referrals, Stars */
#social-panel{position:fixed;inset:0;z-index:10000;display:none;align-items:center;justify-content:center;background:#070C14e0;backdrop-filter:blur(5px);padding:10px}
#social-panel.on{display:flex}
#social-panel .soc-sheet{width:min(560px,97vw);max-height:94vh;display:flex;flex-direction:column;background:linear-gradient(180deg,#121A2B,#0A111B);border:1px solid #2C3A5C;border-radius:3px;box-shadow:0 30px 90px #000e,inset 0 1px 0 #D6802922}
#social-panel .soc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:14px 15px 10px;border-bottom:1px solid #1B2540}
#social-panel .soc-kicker{font:800 7px 'Rubik','Segoe UI',sans-serif;letter-spacing:2px;color:#F6A83B}
#social-panel h2{font:400 24px/1 'Bungee','Arial Black',sans-serif;letter-spacing:2px;color:#F6A83B;margin:3px 0 0}
#social-panel .soc-code{font:800 8px 'Rubik','Segoe UI',sans-serif;letter-spacing:1px;color:#7D89A8;text-align:right;white-space:nowrap}
#social-panel .soc-code b{display:block;color:#F6A83B;font-size:11px;letter-spacing:1.5px;margin:3px 0}
#social-panel .soc-code button{margin-top:2px}
#social-panel .soc-tabs{display:flex;gap:2px;padding:4px 10px;border-bottom:1px solid #1B2540;flex:none}
#social-panel .soc-tabs button{flex:1;border:1px solid transparent;background:#0A111B;color:#7D89A8;font:900 9px 'Rubik','Segoe UI',sans-serif;letter-spacing:.7px;padding:8px 4px;border-radius:2px}
#social-panel .soc-tabs button.on{background:#121A2B;border-color:#2C3A5C;color:#F6A83B}
#social-panel .soc-body{padding:12px 15px 14px;overflow:auto;-webkit-overflow-scrolling:touch}
#social-panel .soc-label{font:900 8px 'Rubik','Segoe UI',sans-serif;letter-spacing:1.5px;color:#F6A83B;margin:12px 0 6px}
#social-panel .soc-card{margin-top:10px;padding:10px;border:1px solid #1B2540;background:#0A111B}
#social-panel .soc-hint{font:700 9px/1.5 'Rubik','Segoe UI',sans-serif;color:#7D89A8;margin-top:7px}
#social-panel .soc-hint b{color:#A8B4D0}
#social-panel .soc-row{display:flex;align-items:center;gap:7px;margin-top:6px}
#social-panel .soc-item{padding:7px 0;border-bottom:1px solid #121A2B}
#social-panel .soc-av{width:28px;height:28px;flex:none;display:grid;place-items:center;border:1px solid #26324D;color:#F6A83B;font:900 12px 'Rubik','Segoe UI',sans-serif;background:#0A111B}
#social-panel .soc-grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#social-panel .soc-grow b{font:900 11px 'Rubik','Segoe UI',sans-serif;color:#EEF3FF;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#social-panel .soc-grow span{font:700 9px 'Rubik','Segoe UI',sans-serif;color:#7D89A8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#social-panel .soc-btn{border:1px solid #2C3A5C;background:linear-gradient(#F6A83B,#D68029);color:#0A111B;font:900 10px 'Rubik','Segoe UI',sans-serif;letter-spacing:.6px;padding:9px 10px;border-radius:2px;flex:none}
#social-panel .soc-btn.alt{background:#0A111B;color:#A8B4D0;border-color:#26324D}
#social-panel .soc-wide{width:100%}
#social-panel .soc-mini{border:1px solid #26324D;background:#0A111B;color:#A8B4D0;font:900 8px 'Rubik','Segoe UI',sans-serif;letter-spacing:.6px;padding:7px 8px;border-radius:2px;flex:none}
#social-panel .soc-mini.gold{border-color:#2C3A5C;color:#F6A83B}
#social-panel input{flex:1;min-width:0;background:#0A111B;border:1px solid #1B2540;color:#EEF3FF;font:800 10px 'Rubik','Segoe UI',sans-serif;padding:9px;border-radius:2px;outline:none}
#social-panel input::placeholder{color:#7D89A8}
#social-panel .soc-empty{font:700 10px 'Rubik','Segoe UI',sans-serif;color:#7D89A8;padding:12px 0;text-align:center}
#social-panel .soc-link{font:700 10px 'Rubik','Segoe UI',sans-serif;color:#F6A83B;word-break:break-all;background:#0A111B;border:1px solid #1B2540;padding:8px;margin-top:6px}
#social-panel .soc-stats{display:flex;gap:6px;margin-top:12px}
#social-panel .soc-stats>div{flex:1;border:1px solid #26324D;background:#0A111B;padding:9px;text-align:center}
#social-panel .soc-stats b{display:block;font:400 18px 'Bungee','Arial Black',sans-serif;color:#F6A83B}
#social-panel .soc-stats span{font:900 7px 'Rubik','Segoe UI',sans-serif;letter-spacing:.8px;color:#7D89A8}
#social-panel .soc-foot{padding:8px 15px;border-top:1px solid #1B2540;font:800 7px 'Rubik','Segoe UI',sans-serif;letter-spacing:1.4px;color:#7D89A8;text-align:center}

#social-panel .soc-code #soc-close{display:block;margin:4px 0 0 auto;border:1px solid #26324D;background:#0A111B;color:#A8B4D0;font:900 7px 'Rubik','Segoe UI',sans-serif;letter-spacing:.8px;padding:4px 7px;border-radius:2px}

/* Social presence, chat, treasury */
#social-panel .soc-av.on{border-color:#39E07A;box-shadow:inset 0 0 0 1px #39E07A}
#social-panel .soc-av.on:after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:#39E07A;transform:translate(10px,10px)}
#social-panel .soc-av{position:relative}
#social-panel .soc-chat{height:118px;overflow:auto;border:1px solid #1B2540;background:#0A111B;padding:6px;margin-top:4px;display:flex;flex-direction:column;gap:4px}
#social-panel .soc-msg{display:flex;gap:6px;font:700 9px/1.35 'Rubik','Segoe UI',sans-serif}
#social-panel .soc-msg b{color:#F6A83B;flex:none;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#social-panel .soc-msg span{color:#A8B4D0;word-break:break-word}
#social-panel #soc-donateinput{max-width:90px;flex:none}

#social-panel select{background:#0A111B;border:1px solid #1B2540;color:#EEF3FF;font:800 9px 'Rubik','Segoe UI',sans-serif;padding:8px;border-radius:2px;min-width:0}
#social-panel .soc-actions{flex-wrap:wrap}

#social-panel .soc-del{background:transparent;border:0;color:#7D89A8;font:900 12px 'Rubik','Segoe UI',sans-serif;padding:0 2px;flex:none;line-height:1}
#social-panel .soc-del:hover{color:#FF4F8B}

/* Premium pass offers */
.sk-passoffers{display:flex;gap:8px;overflow-x:auto;padding:10px 2px 6px;scroll-snap-type:x proximity}
.sk-offer{flex:0 0 215px;scroll-snap-align:start;background:linear-gradient(160deg,#121A2B,#121A2B);border:1px solid #26324D;padding:10px;border-radius:2px;display:flex;flex-direction:column;gap:5px}
.sk-offer b{font:900 12px 'Rubik','Segoe UI',sans-serif;letter-spacing:1.2px;color:#F6A83B}
.sk-offer span{font:700 9px/1.4 'Rubik','Segoe UI',sans-serif;color:#7D89A8;min-height:38px}
.sk-offer i{font:800 8px 'Rubik','Segoe UI',sans-serif;letter-spacing:1px;color:#F6A83B;font-style:normal}
.sk-offer .sk-btn{font-size:10px;letter-spacing:1px;padding:7px 8px;text-align:center;width:100%}
.sk-offer .sk-btn:after{content:none}
.sk-offer.prem{border-color:#2C3A5C}
.sk-offer.starter{border-color:#2BA3EE}
.sk-ptier.prem{flex:0 0 128px;border-color:#26324D}
.sk-ptier em{font:800 8px/1.25 'Rubik','Segoe UI',sans-serif;letter-spacing:.5px;font-style:normal;text-align:center;color:#F6A83B;display:block;min-height:22px}
.sk-ptier em.locked{color:#7D89A8}
.sk-ptier em.unlocked{color:#39E07A}

/* Six-mode home deployment panel: compact 2-column grid */
#sk-side{max-height:calc(100vh - 120px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#D68029 #121A2B}
#sk-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 4px;width:100%}
#sk-modes .sk-mode{padding:7px 5px 7px 22px;font-size:10px;letter-spacing:.5px;border:1px solid #1B2540;min-width:0}
#sk-modes .sk-mode:before{left:6px;top:9px;font-size:8px}
#sk-modes .sk-mode small{font-size:7px;letter-spacing:.4px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sk-modes .sk-mode.on{border-left:1px solid var(--copper);border-color:#2C3A5C}

/* Deathmatch score + timer */
#sk-dm-score{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:45;display:none;align-items:center;gap:10px;background:#0A111Bdd;border:1px solid #2C3A5C;border-radius:2px;padding:7px 12px;color:#EEF3FF;font:800 10px/1 'Rubik','Segoe UI',sans-serif;letter-spacing:1.2px;backdrop-filter:blur(4px);pointer-events:none}
#sk-dm-score.on{display:flex}
#sk-dm-score b{color:#F6A83B;font-size:9px}
#sk-dm-score span{font-size:13px;color:#fff}
#sk-dm-score em{font-style:normal;color:#A8B4D0;font-size:10px;border-left:1px solid #26324D;padding-left:10px}

/* TON Connect modal must sit above the FRAY wallet sheet */
tc-root [data-tc-modal], tc-root [data-tc-wallets-modal-container], tc-root [data-tc-modal="true"] { z-index: 10050 !important; }

/* Wallet picker shortcuts */
.tg-wallets{display:flex;gap:5px;margin-top:8px;flex-wrap:wrap}
.tg-wallets button{flex:1 1 auto;min-width:88px;border:1px solid #26324D;background:#0A111B;color:#A8B4D0;font:800 7px 'Rubik','Segoe UI',sans-serif;letter-spacing:.6px;padding:7px 5px;border-radius:2px}
.tg-wallets button:first-child{flex-basis:100%;border-color:#2BA3EE;color:#F6A83B;font-size:8px}

.crew-waitleader{border:1px dashed #26324D;color:#A8B4D0;font:800 8px 'Rubik','Segoe UI',sans-serif;letter-spacing:1px;text-align:center;padding:11px;border-radius:2px}

/* Home squad strip */

/* Collapsible home squad dropdown */
#sk-side{max-height:none!important;overflow:visible!important}

/* Mode selector: compact single-column list, no inner scrolling */
#sk-modes{grid-template-columns:1fr!important;gap:3px!important}
#sk-modes .sk-mode{padding:8px 7px 8px 24px!important;font-size:11px!important}
#sk-modes .sk-mode small{font-size:8px!important}

/* Map selector */
.sk-maprow{display:flex;gap:4px;margin:5px 0 2px;overflow-x:auto;padding-bottom:2px}
.sk-map{flex:1;min-width:58px;border:1px solid #26324D;background:#121A2B;color:#A8B4D0;border-radius:3px;padding:5px 4px;text-align:left}
.sk-map b{display:block;font:900 7px 'Rubik','Segoe UI',sans-serif;letter-spacing:.5px;color:#EEF3FF;white-space:nowrap}
.sk-map small{display:block;font:800 6px 'Rubik','Segoe UI',sans-serif;letter-spacing:.7px;color:#7D89A8;margin-top:2px}
.sk-map.on{border-color:var(--copper);background:#121A2B;color:#FCD286}
.sk-map.on b{color:#FCD286}
.sk-map.on small{color:#D68029}


/* In-match gadget */
#sk-gadget{position:absolute;right:calc(18px + env(safe-area-inset-right,0px));bottom:calc(102px + env(safe-area-inset-bottom,0px));z-index:60;display:none;flex-direction:column;align-items:center;gap:2px;border:1px solid #2BA3EE;background:#121A2Bdd;color:#EEF3FF;border-radius:999px;width:72px;height:72px;justify-content:center;box-shadow:0 8px 24px #000a}
body.sk-match #sk-gadget{display:flex}
#sk-gadget b{font:900 9px 'Rubik','Segoe UI',sans-serif;letter-spacing:.6px}
#sk-gadget small{font:800 7px 'Rubik','Segoe UI',sans-serif;letter-spacing:.5px;color:#39E07A}
#sk-gadget.cool{border-color:#2C3A5C;background:#121A2Bcc;color:#7D89A8}
#sk-gadget.cool small{color:#7D89A8}
#sk-gadget:active{transform:scale(.94)}

/* Market */
.sk-shop-hero{padding:4px 0 8px}
.sk-shop-title{font:900 21px var(--font);letter-spacing:.5px;color:#EEF3FF;line-height:1.05;margin-top:2px}
.sk-shop-title span{color:var(--gold)}
.sk-offer-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0 8px}
.sk-shop-card{position:relative;border:1px solid #26324D;background:linear-gradient(160deg,#121A2B,#0A111B);border-radius:7px;padding:9px 8px;display:flex;flex-direction:column;gap:3px;min-height:112px}
.sk-shop-card.featured{border-color:#B86F1F;background:linear-gradient(160deg,#121A2B,#0A111B)}
.sk-shop-tag{font:800 6px 'Rubik','Segoe UI',sans-serif;letter-spacing:1px;color:#F6A83B}
.sk-shop-card.featured .sk-shop-tag{color:#F6A83B}
.sk-shop-name{font:900 10px 'Rubik','Segoe UI',sans-serif;letter-spacing:.5px;color:#EEF3FF}
.sk-shop-desc{font:700 7px 'Rubik','Segoe UI',sans-serif;line-height:1.45;color:#7D89A8;flex:1}
.sk-shop-price{font:900 9px 'Rubik','Segoe UI',sans-serif;color:#F6A83B}
.sk-shop-card .sk-btn{margin-top:3px!important;font-size:8px!important;padding:5px!important}
@media(max-width:380px){.sk-offer-grid{grid-template-columns:1fr}}

.reduce-motion *{animation-duration:.001s!important;transition-duration:.001s!important}
#settings .seg button.on{border-color:var(--copper);color:#FCD286;background:#121A2B}

/* Concept art callout in hero detail */
.sk-hero-art{position:relative;border:1px solid #26324D;border-radius:8px;overflow:hidden;margin-bottom:7px;background:#0A111B}
.sk-hero-art img{display:block;width:100%;height:150px;object-fit:cover;object-position:center 28%;filter:saturate(1.05)}
.sk-hero-art span{position:absolute;left:7px;bottom:6px;font:800 7px 'Rubik','Segoe UI',sans-serif;letter-spacing:1px;color:#FCD286;text-shadow:0 1px 4px #000}

/* V2 home layout: reserve the fixed bottom nav; no CTA underneath it */
#sk-lobby{padding-bottom:calc(var(--sk-nav-h) + 16px)!important}
#sk-side{max-height:calc(100vh - var(--sk-nav-h) - 92px)!important;overflow-y:auto!important;scrollbar-width:none}
#sk-side::-webkit-scrollbar{display:none}
#sk-playwrap{flex:none}

/* Concept-art thumbnails: focus the main figure instead of the full sheet */
.sk-mini .px img[src*="concept_"]{object-fit:cover!important;object-position:50% 16%!important;transform:scale(1.08)}

/* 3D hero viewer */
#fm-overlay{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:rgba(3,5,6,.8);backdrop-filter:blur(10px);opacity:0;pointer-events:none;transition:opacity .18s}
#fm-overlay.on{opacity:1;pointer-events:auto}
.fm-card{width:min(94vw,430px);height:min(88vh,620px);border:1px solid #26324D;border-radius:18px;background:linear-gradient(160deg,#121A2B,#0A111B 60%);box-shadow:0 30px 90px rgba(0,0,0,.7);display:flex;flex-direction:column;overflow:hidden}
.fm-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;border-bottom:1px solid #26324D}
.fm-kicker{font-size:8px;letter-spacing:.22em;color:#F6A83B;margin-bottom:3px}
.fm-head b{font:400 18px/1 'Bungee','Arial Black',sans-serif;letter-spacing:.04em;color:#EEF3FF}
.fm-head button{width:30px;height:30px;border:1px solid #2C3A5C;background:#1B2540;color:#EEF3FF;border-radius:50%;font-size:14px;cursor:pointer}
.fm-stage{flex:1;position:relative;min-height:0;background:radial-gradient(ellipse at 50% 42%,#1B2540 0%,#0A111B 65%,#0A111B 100%)}
#fm-canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}
.fm-hint{position:absolute;left:0;right:0;bottom:8px;text-align:center;font-size:8px;letter-spacing:.16em;color:#7D89A8;pointer-events:none}
.fm-actions{display:flex;gap:6px;padding:10px 12px 14px;border-top:1px solid #26324D}
.fm-actions button{flex:1;padding:8px 4px;border:1px solid #2C3A5C;border-radius:7px;background:#1B2540;color:#A8B4D0;font:700 9px/1 'Rubik','Segoe UI',sans-serif;letter-spacing:.1em;cursor:pointer}
.fm-actions button.on{background:#F6A83B;border-color:#F6A83B;color:#0A111B}
.sk-hmodelbtn{width:100%;margin-top:7px}

/* compact live-ops / season ticker */
.sk-season{cursor:pointer}
.sk-season .sl-top span{max-width:62%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
