/* Mobile-first layout fixes */
*,*::before,*::after{box-sizing:border-box}
html{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{width:100%;min-width:0;max-width:100%;overflow-x:hidden}
img,video,canvas,svg{max-width:100%}
.page{min-width:0;width:auto}
main{min-width:0;max-width:100%}
.panel,.card,.hero,.cards,.shop-grid,.match-overview-grid,.profile-grid{min-width:0;max-width:100%}
input,select,textarea,button{max-width:100%;font:inherit}
@media(max-width:700px){
  .sidebar{position:fixed!important;left:0;right:0;bottom:0;top:auto;width:100%!important;height:auto!important;min-height:60px;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;z-index:1000;display:flex;align-items:center;justify-content:space-around;gap:4px;border-right:0;border-top:1px solid rgba(255,122,26,.25);background:rgba(10,8,16,.96);backdrop-filter:blur(16px)}
  .sidebar .logo,.sidebar .side-label,.sidebar .sidebar-bottom{display:none!important}
  .sidebar .side-link{display:flex!important;flex:1 1 0;min-width:0;min-height:44px;padding:6px 3px!important;flex-direction:column;justify-content:center;align-items:center;gap:2px;border-radius:10px;font-size:9px!important;line-height:1.1;text-align:center;white-space:nowrap}
  .sidebar .side-link i{font-size:17px!important;margin:0!important}
  .sidebar .side-link span{overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .sidebar .side-notify{display:none!important}
  .page{margin-left:0!important;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  .topbar{position:sticky;top:0;z-index:900;height:auto!important;min-height:58px;padding:8px 12px!important;gap:8px}
  .topbar .mobile-logo{display:flex!important;align-items:center;gap:7px;min-width:0;font-size:12px}
  .topbar .mobile-logo img{width:30px;height:30px;object-fit:contain}
  .mini-profile{min-width:0;max-width:65%;gap:5px!important;padding:5px 7px!important;font-size:11px}
  .mini-profile .coin-pill,.mini-profile .current-level-icon,.mini-profile>b,.mini-profile .support-badge{display:none!important}
  main,.page main{padding:18px 12px 28px!important}
  h1{font-size:clamp(27px,8vw,40px)!important;line-height:1.08;overflow-wrap:anywhere}
  h2{font-size:clamp(18px,5vw,25px)}
  .hero{grid-template-columns:minmax(0,1fr)!important;padding:18px 0 28px!important;gap:18px!important}
  .hero-art{width:100%;max-width:100%;height:190px!important}
  .hero-art strong{font-size:76px!important}
  .cards,.cards.two,.shop-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px}
  .panel{padding:14px!important;border-radius:15px}
  .panel-title,.rating-head,.dash-title{flex-wrap:wrap;gap:8px}
  .btn,.danger{min-height:42px}
  .form-row,.form-grid,.profile-layout{grid-template-columns:minmax(0,1fr)!important}
  .table-wrap,.rating-panel,.leaderboard-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .leader-head,.leader-row{min-width:570px}
  .match-chat-panel .match-chat-messages{max-height:42vh!important}
  #hw-toggle{right:10px;bottom:calc(78px + env(safe-area-inset-bottom));width:42px;height:42px;font-size:21px}
  footer{padding:12px 12px 20px;text-align:center;font-size:10px}
}
@media(max-width:380px){
  .sidebar .side-link{font-size:8px!important}
  .topbar .mobile-logo span{font-size:10px}
  .mini-profile{max-width:58%;font-size:10px}
  main,.page main{padding-left:9px!important;padding-right:9px!important}
}
/* Persistent account-ID copy control in the responsive header. */
.account-id-copy{white-space:nowrap;flex:0 0 auto;font-size:11px;padding:7px 9px;margin-left:6px}
@media(max-width:700px){.account-id-copy{font-size:10px;padding:6px 7px}.topbar{gap:6px}}
/* Admin player profile */
.admin-player-hero .admin-user{display:flex;align-items:center;gap:16px}.admin-player-hero h2{margin:0 0 6px}.admin-form label{display:flex;flex-direction:column;gap:6px}.admin-form label.wide{grid-column:1/-1}.admin-form textarea{width:100%;min-height:90px}.league-chip{display:inline-flex;align-items:center;justify-content:center;padding:7px 14px;border-radius:999px;font-weight:900;letter-spacing:.08em}.league-pro{background:linear-gradient(110deg,#ffe08a,#d99b27);color:#271800}.league-qual{background:linear-gradient(110deg,#b7d8ff,#477bc5);color:#071a35}.league-default{background:#303847;color:#e8edf7}.nick{font-weight:800}.nick-pink{color:#ff65b7!important}.nick-blue{color:#54aaff!important}.nick-black{color:#aeb6c5!important}


/* Compact, restrained admin utility buttons */
.admin-user .admin-action-btn,
.admin-player-hero .admin-action-btn{
  display:inline-flex!important;
  width:auto!important;
  min-height:32px!important;
  align-items:center!important;
  justify-content:center!important;
  padding:7px 11px!important;
  margin:5px 5px 3px 0!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.055)!important;
  color:#e9e5ed!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.15!important;
  letter-spacing:.01em!important;
  text-decoration:none!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
  transform:none!important;
  filter:none!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease!important;
}
.admin-user .admin-action-btn:hover,
.admin-player-hero .admin-action-btn:hover{
  background:rgba(255,122,31,.12)!important;
  border-color:rgba(255,122,31,.48)!important;
  color:#fff!important;
  box-shadow:0 3px 12px rgba(255,100,25,.10)!important;
  transform:translateY(-1px)!important;
}
.admin-user .admin-action-btn:active,
.admin-player-hero .admin-action-btn:active{
  transform:translateY(0)!important;
  background:rgba(255,122,31,.17)!important;
}
.admin-user .admin-action-btn:focus-visible,
.admin-player-hero .admin-action-btn:focus-visible{
  outline:2px solid #ffad78!important;
  outline-offset:2px!important;
}
@media(max-width:700px){
  .admin-user .admin-action-btn,
  .admin-player-hero .admin-action-btn{
    min-height:36px!important;
    padding:8px 10px!important;
    margin:7px 5px 3px 0!important;
  }
}

/* Daily reward case */
.daily-case{display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden;position:relative;margin:0 0 20px;padding:24px 28px;background:linear-gradient(115deg,rgba(37,19,53,.96),rgba(14,10,24,.98))!important;border:1px solid rgba(176,115,255,.24)!important}
.daily-case-copy{position:relative;z-index:1}
.daily-case-kicker{font-size:10px;font-weight:900;letter-spacing:.18em;color:#c49aff}
.daily-case h2{margin:7px 0;font-size:25px}
.daily-case p{margin:0 0 13px}
.daily-case-prizes{font-size:12px;color:#c5bdce;margin-bottom:16px}
.daily-case-open{min-height:40px;padding:10px 19px;border-radius:9px}
.daily-case-art{width:190px;height:150px;flex:0 0 190px;display:grid;place-items:center;position:relative}
.case-glow{position:absolute;width:130px;height:130px;border-radius:50%;background:rgba(154,86,255,.24);filter:blur(25px)}
.case-box{position:relative;width:112px;height:112px;border:1px solid rgba(255,190,110,.65);border-radius:17px;background:linear-gradient(145deg,#4b286b,#21162e 65%,#120d1c);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 15px 35px rgba(0,0,0,.45),0 0 25px rgba(156,94,255,.22);display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(-5deg)}
.case-box:before{content:"";position:absolute;left:-7px;right:-7px;top:17px;height:10px;border-radius:5px;background:linear-gradient(90deg,#ffb35d,#ff7b28,#ffca7b);box-shadow:0 0 12px rgba(255,153,70,.45)}
.case-box span{font-size:10px;letter-spacing:.22em;color:#f4d5b0;font-weight:900}
.case-box b{font-size:43px;line-height:1.05;color:#fff;text-shadow:0 0 18px rgba(255,188,105,.6)}
.case-box i{font-size:8px;letter-spacing:.2em;color:#c7b7d8;font-style:normal}
.profile-face .copy-btn,.faceit-profile-kicker .copy-btn,.faceit-game-id .copy-btn,
.profile-face .btn.small,.faceit-profile-kicker .btn.small,.faceit-game-id .btn.small{
  min-height:30px!important;padding:6px 10px!important;border-radius:7px!important;
  font-size:11px!important;line-height:1.1!important;box-shadow:none!important;
  transform:none!important;letter-spacing:0!important
}
.faceit-profile-kicker .copy-btn,.faceit-game-id .copy-btn{
  background:rgba(255,255,255,.06)!important;color:#eee!important;
  border:1px solid rgba(255,255,255,.16)!important
}
.faceit-profile-kicker .copy-btn:hover,.faceit-game-id .copy-btn:hover{
  background:rgba(255,122,31,.12)!important;border-color:rgba(255,122,31,.45)!important
}
@media(max-width:600px){
 .daily-case{padding:18px;gap:8px}
 .daily-case-art{width:105px;flex-basis:105px;height:125px}
 .case-box{width:88px;height:88px}
 .case-box b{font-size:34px}
 .daily-case h2{font-size:21px}
}

/* Consistent compact utility actions across player profile */
.profile-page .btn.small,.profile-page button.copy-btn,
.profile-page a.copy-btn,.profile-page .copy-btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:29px!important;padding:5px 9px!important;margin:3px!important;
  border-radius:7px!important;font-size:11px!important;line-height:1.1!important;
  font-weight:700!important;box-shadow:none!important;transform:none!important;
}


/* Daily case prize reel */
.daily-case{align-items:stretch}
.daily-case-copy{min-width:0;flex:1}
.daily-case-prize-list{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 16px;max-width:760px}
.daily-case-prize{font-size:11px;color:#eee2ff;background:rgba(170,119,255,.12);border:1px solid rgba(190,145,255,.22);border-radius:7px;padding:6px 9px}
.daily-case-reel-viewport{display:none;position:relative;overflow:hidden;width:min(100%,720px);height:76px;margin:14px 0 8px;border:1px solid rgba(190,145,255,.3);border-radius:10px;background:rgba(5,4,12,.7);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.daily-case-reel{display:flex;align-items:center;gap:10px;height:100%;padding:0 12px;will-change:transform}
.daily-case-reel-item{flex:0 0 138px;height:54px;display:grid;place-items:center;text-align:center;padding:6px;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(145deg,rgba(111,74,153,.32),rgba(39,27,55,.8));color:#eee;font-size:11px;font-weight:800;box-sizing:border-box}
.daily-case-reel-item.is-winner{border-color:#ffc477;background:linear-gradient(145deg,rgba(255,177,87,.35),rgba(100,54,25,.7));box-shadow:0 0 18px rgba(255,174,89,.35)}
.daily-case-pointer{position:absolute;left:50%;top:0;bottom:0;width:2px;background:#ffc477;transform:translateX(-50%);box-shadow:0 0 10px #ffb35d;pointer-events:none}
.daily-case-result{min-height:20px;margin:8px 0;color:#ffd49d;font-size:13px;font-weight:800}
.daily-case-open:disabled{opacity:.65;cursor:not-allowed;filter:saturate(.65)}
@media(max-width:700px){
 .daily-case{align-items:flex-start;gap:8px;padding:19px 16px}
 .daily-case-art{width:90px;flex-basis:90px;height:110px}
 .case-box{transform:scale(.78) rotate(-5deg)}
 .daily-case-prize-list{gap:5px}
 .daily-case-prize{font-size:10px;padding:5px 7px}
 .daily-case-reel-viewport{height:68px}
 .daily-case-reel-item{flex-basis:118px;height:50px;font-size:10px}
}

/* ===== Вкладка «Играть»: компактный экранный макет (в стиле сайта) ===== */
.play-hero,.play-elo,.play-league-panel{max-width:760px;margin-left:auto;margin-right:auto;border-radius:22px!important;background:linear-gradient(180deg,rgba(30,15,52,.95),rgba(12,7,20,.96))!important}
.play-hero{display:flex;align-items:center;gap:18px;padding:20px 22px;margin-bottom:14px}
.play-avatar{position:relative;flex:0 0 84px;width:84px;height:84px}
.play-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:14px;display:grid;place-items:center;background:#1a1226;font-size:34px;font-weight:900;border:1px solid #3a2559}
.play-avatar>.vip-avatar-frame{position:absolute;inset:-5px;border-radius:18px;pointer-events:none}
.play-online-dot{position:absolute;right:-4px;bottom:-4px;width:16px;height:16px;border-radius:50%;background:#43d96b;border:3px solid #120a1c;box-shadow:0 0 10px rgba(67,217,107,.6)}
.play-hero-info{min-width:0}
.play-nick{margin:0;font-size:26px;line-height:1.15;word-break:break-word}
.play-ids{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin-top:6px;font-size:12px;letter-spacing:.06em;color:#9b93a8;font-weight:700}
.play-ids code{color:#d9cfe8;font-family:inherit;user-select:all}
.play-copy{border:0;background:transparent;color:#bfa8e6;font-size:18px;cursor:pointer;padding:2px 6px;border-radius:8px}
.play-copy:hover{background:rgba(155,77,255,.18)}
.play-copy.copied{color:#6bf08f}
.play-elo{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding:20px 22px;margin-bottom:6px}
.play-level{display:grid;justify-items:center;gap:4px}
.play-level img{width:78px;height:78px;filter:drop-shadow(0 0 12px rgba(255,122,26,.6))}
.play-level small{font-size:10px;font-weight:900;letter-spacing:.14em;color:#c8b8e0}
.play-elo-value{display:flex;align-items:center;gap:12px}
.play-elo-value b{font-size:36px;line-height:1}
.play-chip{font-size:11px;font-weight:900;letter-spacing:.16em;padding:5px 12px;border-radius:999px;border:1px solid #ff7a1a;color:#ffb36b;background:rgba(255,122,26,.1)}
.play-bar{height:8px;margin:12px 0 6px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden}
.play-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#9b4dff,#ff7a1a);box-shadow:0 0 12px rgba(255,122,26,.5)}
.play-bar-labels{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#8f879c}
.play-bar-labels span:last-child{color:#ffb36b}
.play-elo-stats{display:grid;gap:8px;min-width:150px}
.play-elo-stats div{display:flex;justify-content:space-between;gap:16px;font-size:14px;color:#a79fb5}
.play-elo-stats b{color:#fff;font-size:15px}
.play-section-label{max-width:760px;margin:22px auto 10px;padding-left:6px;font-size:12px;font-weight:900;letter-spacing:.3em;color:#a89bbd}
.play-league-panel{padding:20px 22px 22px;margin-bottom:18px}
.play-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:26px}
.play-tab{position:relative;display:block;cursor:pointer}
.play-tab input{position:absolute;opacity:0;pointer-events:none}
.play-tab span{display:flex;align-items:center;justify-content:center;gap:6px;height:48px;border-radius:14px;border:1px solid transparent;font-weight:800;letter-spacing:.08em;color:#8f879c;transition:background .2s,border-color .2s,color .2s}
.play-tab input:checked + span{background:rgba(255,255,255,.07);border-color:#ff7a1a;color:#fff;box-shadow:0 0 18px rgba(255,122,26,.25)}
.play-tab:not(.locked):hover span{color:#fff}
.play-tab.locked{cursor:not-allowed;opacity:.55}
.play-pane[hidden]{display:none}
.play-pane-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.play-pane-head h2{margin:0;font-size:38px;letter-spacing:.02em}
.play-badge{padding:8px 16px;border-radius:999px;font-size:12px;font-weight:900;letter-spacing:.14em;color:#ffb36b;border:1px solid #ff7a1a;background:rgba(255,122,26,.1)}
.play-badge.locked{color:#b9a9d4;border-color:#5a4a78;background:rgba(155,77,255,.08)}
.play-pane-desc{margin:8px 0 6px;color:#b3abc0;font-size:16px}
.play-pane-live{font-size:12px;color:#8f879c;margin-bottom:6px}
.play-pane-live b{color:#eee}
.play-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}
.play-tile{padding:14px 14px 12px;border-radius:16px;border:1px solid #3a2559;background:rgba(155,77,255,.07);min-width:0}
.play-tile small{display:block;font-size:11px;font-weight:800;letter-spacing:.1em;color:#9b93a8}
.play-tile b{display:block;margin-top:8px;font-size:30px;line-height:1.1}
.play-tile em{display:block;margin-top:2px;font-style:normal;font-size:10px;color:#7d7590;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.play-season{margin:6px 2px 14px;font-size:15px;color:#c9c0d6}
.play-season b{color:#fff}
.play-rating-link{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;margin-bottom:16px;border-radius:14px;border:1px solid #3a2559;color:#d9cfe8;font-weight:700;text-decoration:none}
.play-rating-link:hover{border-color:#ff7a1a}
.play-find{display:flex;flex-direction:column;gap:10px;width:100%}
.play-find .btn{width:100%;min-height:56px;font-size:18px;border-radius:16px}
.play-league-panel #matchCooldown{margin:0 0 12px}
@media(max-width:700px){
  .play-hero{padding:16px;gap:14px}.play-avatar{flex-basis:72px;width:72px;height:72px}.play-nick{font-size:21px}
  .play-elo{grid-template-columns:auto 1fr;gap:14px;padding:16px}
  .play-elo-stats{grid-column:1/-1;grid-template-columns:repeat(3,1fr);min-width:0}
  .play-elo-stats div{flex-direction:column;gap:2px}
  .play-level img{width:62px;height:62px}.play-elo-value b{font-size:30px}
  .play-league-panel{padding:16px}.play-pane-head h2{font-size:30px}
  .play-tile b{font-size:24px}
}

/* SVG-иконки вкладки «Играть» (линейные, цвет — акцент сайта) */
.ic{width:1.15em;height:1.15em;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.22em;margin-right:.5em;color:#ff7a1a}
.play-elo-stats span{display:inline-flex;align-items:center}
.play-elo-stats .ic{width:20px;height:20px;margin-right:10px}
.play-tile small{display:flex;align-items:center}
.play-tile small .ic{width:18px;height:18px;margin-right:8px}
.play-copy{line-height:0}.play-copy .ic{width:20px;height:20px;margin:0;color:#bfa8e6}
.play-copy.copied .ic{color:#6bf08f}
.play-tab .ic{margin-right:0;color:currentColor;width:16px;height:16px}
.play-season{display:flex;align-items:center}
.play-season .ic{width:22px;height:22px}
.play-rating-link span:first-child{display:inline-flex;align-items:center}
.play-rating-link .ic{width:22px;height:22px}
.play-chev{font-size:24px;line-height:1;color:#9b93a8}
.play-find .btn{display:inline-flex;align-items:center;justify-content:center}
.play-find .btn .ic{color:currentColor;width:20px;height:20px}
@media(max-width:700px){.play-elo-stats span{justify-content:center}.play-elo-stats .ic{margin-right:6px}}
#hubWait{font-size:22px;white-space:nowrap}
.play-season b{margin:0 6px 0 4px}
.play-season .ic{margin-right:10px}
@media(max-width:700px){
  .play-elo-stats div{align-items:center;text-align:center}
  .play-elo-stats span{white-space:nowrap}
  .play-tile{padding:12px 10px}
  .play-tile small{font-size:10px;letter-spacing:.04em;white-space:nowrap}
  .play-tile small .ic{width:15px;height:15px;margin-right:5px}
  #hubWait{font-size:17px;margin-top:12px}
}

/* ===== «Играть»: десктопный двухколоночный макет ===== */
.play-grid{display:block}
.play-col-right{display:block}
@media(min-width:1000px){
  .play-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:18px 20px;align-items:start;grid-template-rows:min-content min-content 1fr;max-width:1180px;margin:0 auto}
  .play-hero,.play-elo,.play-league-panel,.play-party,.play-section-label{max-width:none;margin-left:0;margin-right:0}
  .play-hero,.play-elo,.play-party{grid-column:1;margin-bottom:0}
  .play-party{border-radius:22px!important;background:linear-gradient(180deg,rgba(30,15,52,.95),rgba(12,7,20,.96))!important}
  .play-col-right{grid-column:2;grid-row:1 / span 3;position:sticky;top:84px}
  .play-section-label{margin-top:0}
  .play-elo{grid-template-columns:auto 1fr;gap:14px 20px}
  .play-elo-stats{grid-column:1/-1;grid-template-columns:repeat(3,1fr);min-width:0;padding-top:14px;border-top:1px solid rgba(155,77,255,.2)}
  .play-elo-stats div{flex-direction:column;align-items:center;text-align:center;gap:4px}
  .play-elo-stats span{white-space:nowrap;justify-content:center}
  .play-league-panel{margin-bottom:14px}
  .play-pane-head h2{font-size:42px}
  .play-tile b{font-size:32px}
  .play-find .btn{min-height:60px}
  .play-find .btn:hover{transform:translateY(-2px)}
  .queue-panel{margin-bottom:0}
  #hubWait{font-size:18px;margin-top:10px}
  .play-tile small{letter-spacing:.06em}
}
@media(min-width:1500px){.play-grid{max-width:1280px;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}}

/* Кнопки копирования ID: только иконка */
button.copy-btn:not(.play-copy) .ic{width:16px;height:16px;margin:0;color:currentColor}
button.copy-btn:not(.play-copy):not(.account-id-copy){display:inline-flex;align-items:center;justify-content:center;line-height:0}
.account-id-copy{display:inline-flex;align-items:center;gap:6px}
.account-id-copy .ic{margin:0}
.copy-btn.copied .ic{color:inherit}

/* Ник на вкладке «Играть»: глобальный h1 имеет отрицательный letter-spacing — сбрасываем */
h1.play-nick{letter-spacing:.01em!important;font-weight:800;line-height:1.15;margin:0!important;font-size:clamp(22px,2.4vw,30px)!important}
.play-nick .nick{letter-spacing:inherit}

/* ===== Кнопки: основные — жёлтые, вторичные и мелкие — графитово-серые ===== */
.btn,button.btn,a.btn{
  background:linear-gradient(135deg,#ff5a00 0%,#ff8a00 45%,#ffc21a 100%)!important;
  color:#1f0f00!important;
  border:1px solid rgba(255,225,160,.5)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -1px 0 rgba(120,40,0,.25),0 10px 24px -10px rgba(255,122,0,.65)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.25);
}
.btn:hover,button.btn:hover,a.btn:hover{
  background:linear-gradient(135deg,#ff6a10 0%,#ff9a14 45%,#ffd23d 100%)!important;
  border-color:rgba(255,240,200,.8)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 0 26px rgba(255,150,20,.55),0 12px 28px -10px rgba(255,122,0,.75)!important;
}
.btn:active{background:linear-gradient(135deg,#e04d00 0%,#e07e00 50%,#e0a800 100%)!important}
.btn:focus-visible{outline:2px solid #ffd9a0!important;outline-offset:2px}
.btn:disabled,.btn[disabled]{opacity:.5;filter:grayscale(.35)}
.btn .ic,.play-find .btn .ic{color:currentColor}

.btn.secondary,button.btn.secondary,a.btn.secondary,
.btn.small,button.btn.small,a.btn.small{
  background:linear-gradient(180deg,#666a75 0%,#4a4d57 48%,#34363e 100%)!important;
  color:#f4f5f8!important;
  border:1px solid rgba(255,255,255,.2)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24),inset 0 -1px 0 rgba(0,0,0,.3),0 10px 22px -10px rgba(0,0,0,.75)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.35);
}
.btn.secondary:hover,.btn.small:hover,button.btn.small:hover,a.btn.small:hover{
  background:linear-gradient(180deg,#767b87 0%,#585c67 48%,#3d4049 100%)!important;
  border-color:rgba(255,255,255,.32)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 0 22px rgba(190,196,214,.22),0 12px 26px -10px rgba(0,0,0,.8)!important;
}
.btn.secondary{background:linear-gradient(180deg,#3a3c44 0%,#2a2c32 55%,#202227 100%)!important;color:#e9eaee!important}
.btn.secondary:hover{background:linear-gradient(180deg,#4a4d56 0%,#33353c 55%,#27292f 100%)!important}
.btn.secondary:focus-visible,.btn.small:focus-visible{outline-color:#aeb4c6!important}
.btn.copy-btn.copied{background:linear-gradient(180deg,#3f8f58,#2e6e43)!important;color:#fff!important}


/* ===== Mobile navigation: readable, swipeable, every destination reachable ===== */
@media(max-width:700px){
  .sidebar{
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    align-items:stretch!important;
    gap:5px!important;
    height:auto!important;
    min-height:68px!important;
    max-height:calc(78px + env(safe-area-inset-bottom))!important;
    padding:7px 9px calc(7px + env(safe-area-inset-bottom))!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    scroll-snap-type:x proximity;
  }
  .sidebar::-webkit-scrollbar{display:none!important}
  .sidebar .side-link{
    flex:0 0 68px!important;
    width:68px!important;
    min-width:68px!important;
    max-width:68px!important;
    min-height:52px!important;
    padding:6px 4px!important;
    margin:0!important;
    gap:4px!important;
    border:1px solid rgba(255,255,255,.07)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.035)!important;
    color:#c9c4d2!important;
    font-size:10px!important;
    font-weight:700!important;
    line-height:1.12!important;
    white-space:normal!important;
    scroll-snap-align:start;
  }
  .sidebar .side-link.active{
    color:#fff!important;
    border-color:rgba(255,133,32,.65)!important;
    background:linear-gradient(180deg,rgba(255,122,26,.24),rgba(255,122,26,.09))!important;
    box-shadow:inset 0 0 0 1px rgba(255,122,26,.12),0 3px 14px rgba(255,100,0,.12);
  }
  .sidebar .side-link i{display:block!important;font-size:19px!important;line-height:1!important;margin:0!important}
  .sidebar .side-link span{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:normal!important;
    text-align:center!important;
    overflow-wrap:anywhere;
  }
  .sidebar .side-link.logout-link{color:#ffb3a5!important}
  .page{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
  main,.page main{padding-bottom:30px!important}
}

/* ===== Profile achievements: square, scannable achievement tiles ===== */
@media(max-width:700px){
  .ach-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  .ach-grid .ach{
    position:relative;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:6px!important;
    min-width:0!important;
    min-height:0!important;
    aspect-ratio:1/1;
    overflow:hidden;
    padding:11px!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:15px!important;
    background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.018))!important;
    opacity:.78!important;
    filter:none!important;
  }
  .ach-grid .ach.done{
    opacity:1!important;
    border-color:rgba(255,145,49,.65)!important;
    background:linear-gradient(145deg,rgba(255,130,35,.19),rgba(255,255,255,.035))!important;
    box-shadow:inset 0 0 0 1px rgba(255,145,49,.08),0 7px 18px rgba(0,0,0,.12);
  }
  .ach-grid .ach>i{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 38px;
    width:38px;
    height:38px;
    border-radius:12px;
    background:rgba(255,255,255,.075);
    font-size:23px!important;
    font-style:normal;
  }
  .ach-grid .ach.done>i{background:rgba(255,130,35,.17)}
  .ach-grid .ach>b{
    display:-webkit-box;
    width:100%;
    min-width:0;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    font-size:12px!important;
    line-height:1.2!important;
    overflow-wrap:anywhere;
  }
  .ach-grid .ach .ach-desc{
    display:-webkit-box;
    width:100%;
    min-width:0;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    color:#aaa2b4!important;
    font-size:10px!important;
    line-height:1.25!important;
  }
  .ach-grid .ach .ach-progress{
    margin-top:auto;
    color:#e8e1ed;
    font-size:10px;
    font-weight:800;
    font-variant-numeric:tabular-nums;
  }
  .ach-grid .ach .ach-status{
    position:absolute;
    top:9px;
    right:9px;
    max-width:calc(100% - 60px);
    padding:4px 6px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    color:#c5bdcc;
    font-size:8px;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
  }
  .ach-grid .ach.done .ach-status{
    background:rgba(255,130,35,.2);
    color:#ffc18d;
  }
}
@media(max-width:360px){
  .ach-grid{gap:7px!important}
  .ach-grid .ach{padding:9px!important;border-radius:12px!important}
  .ach-grid .ach>b{font-size:11px!important}
  .sidebar .side-link{flex-basis:64px!important;width:64px!important;min-width:64px!important;max-width:64px!important}
}
