@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap');

:root{
  --bg:#1434A4;
  --bg-gradient:linear-gradient(135deg, #1434A4 0%, #102f96 45%, #0a1f70 100%);
  --bg-gradient-soft:linear-gradient(135deg, rgba(20,52,164,.98) 0%, rgba(16,47,150,.98) 48%, rgba(10,31,112,.98) 100%);
  --header:linear-gradient(135deg, #1434A4 0%, #102f96 52%, #0a1f70 100%);
  --text:#ffffff;
  --yellow:#ffc12d;
  --yellow2:#ffda65;
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.18);
  --shadow:0 18px 40px rgba(0,0,0,.28);
  --pill:#0a267f;
  --pill-border:rgba(255,255,255,.20);
  --panel:#0a267f;
  --panel-hover:#071f6c;
  --field:#0a267f;
  --soft-glow:0 0 0 1px rgba(255,255,255,.08), 0 0 18px rgba(111,108,187,.24), inset 0 0 22px rgba(255,255,255,.05);
  --toolbar-sticky-desktop:71px;
  --toolbar-sticky-mobile:120px;
}


*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{scrollbar-width:thin;scrollbar-color:#1434A4 #071f6c}
body{margin:0;background:var(--bg-gradient);color:var(--text);font-family:'Montserrat',system-ui,-apple-system,sans-serif;overflow-x:hidden}
body.modal-open{overflow:hidden}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:#071f6c}
::-webkit-scrollbar-thumb{background:#1434A4;border-radius:0;border:0}
::-webkit-scrollbar-thumb:hover{background:#1b43c8}
::-webkit-scrollbar-corner{background:#071f6c}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
img{max-width:100%;display:block}

.lobby-shell{width:100%;min-height:100vh;background:var(--bg-gradient)}
.top-header{position:relative;z-index:40;background:var(--header)}
.header-row{width:100%;display:grid;align-items:center}
.header-main{height:108px;grid-template-columns:180px minmax(0,1fr) auto;gap:24px;padding:0 44px}
.brand{width:135px;display:block}
.brand img{width:100%;height:auto}
.ticker-wrap{height:36px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.header-ticker{font-size:24px;font-weight:800;letter-spacing:.2px;text-align:center;white-space:nowrap;animation:tickerFade 4.2s ease-in-out infinite}
.header-actions{display:flex;align-items:center;gap:12px}
.header-pill-btn{height:auto;padding:0;border-radius:0;border:0;background:transparent;color:#fff;font-size:16px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap;transition:.2s ease;gap:8px}
.header-pill-btn:hover{background:transparent;border-color:transparent;color:#ffffff;opacity:.92}
.header-pill-btn--promo .promo-fire{font-size:15px;line-height:1;display:inline-flex;align-items:center;transform:translateY(-1px)}
.header-pill-btn:focus-visible{outline:none;color:#ffffff;opacity:1}
.header-auth-btn{height:40px;padding:0 17px;border-radius:11px;border:1.5px solid var(--yellow);display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap;font-size:15px;font-weight:800;line-height:1;transition:.2s ease;box-shadow:0 8px 18px rgba(0,0,0,.16)}
.header-auth-btn--register{background:var(--yellow);color:#101010;border-color:var(--yellow)}
.header-auth-btn--login{background:rgba(10,8,24,.18);color:var(--yellow)}
.header-auth-btn:hover{transform:translateY(-1px);filter:brightness(1.03)}
.header-auth-btn:focus-visible{outline:2px solid rgba(255,255,255,.84);outline-offset:3px}
.header-icon-btn{width:auto;height:auto;border:0;border-radius:0;background:transparent;display:grid;place-items:center;cursor:pointer;color:#d9d6ee;text-decoration:none;transition:.2s ease;padding:2px 0 2px 2px;box-shadow:none;opacity:.92}
.header-icon-btn svg{width:30px;height:30px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.header-icon-btn:hover{transform:translateY(-1px);color:#ffffff;opacity:1}
.header-icon-btn:focus-visible{outline:none;color:#ffffff}
.btn{height:54px;padding:0 22px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:16px;font-weight:800;border:2px solid var(--pill-border);transition:.2s ease;white-space:nowrap}
.btn-ghost{background:rgba(33,28,73,.96);color:#fff}
.btn-primary{background:var(--yellow);border-color:transparent;color:#1a1710}
.btn svg{width:18px;height:18px;display:block;fill:currentColor;flex:0 0 auto}
.btn span{display:inline-flex;align-items:center}
.btn:hover,.lang-btn:hover{transform:translateY(-1px)}
.lang-btn{padding:2px}
.lang-btn svg{width:30px;height:30px;fill:currentColor;color:var(--yellow);opacity:.96}

@keyframes tickerFade{
  0%,100%{opacity:0;transform:translateY(8px)}
  12%,82%{opacity:1;transform:translateY(0)}
}

.hero-slider{position:relative;height:350px;overflow:hidden;background:var(--bg-gradient)}
.slides{position:relative;height:100%}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .45s ease}
.slide.is-active{opacity:1}
.slide img{width:100%;height:100%;object-fit:cover}
.hero-slider::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg, rgba(7,5,20,.04) 0%, rgba(7,5,20,.26) 100%);pointer-events:none}
.slider-dots{position:absolute;left:50%;bottom:26px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;height:44px;padding:0 18px;border-radius:22px;background:rgba(76,55,32,.62);backdrop-filter:blur(6px);z-index:4}
.dot{width:12px;height:12px;border-radius:50%;border:0;background:rgba(255,255,255,.46);cursor:pointer;padding:0}
.dot.is-active{background:#fff}

.catalog-panel{position:relative;background:var(--bg-gradient)}
.toolbar-section{position:sticky;top:0;z-index:30;background:var(--bg-gradient-soft);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.toolbar-wrap{display:grid;grid-template-columns:383.99px 1fr;gap:18px;align-items:center;padding:14px 44px}
.search-box{height:41.47px;border:2px solid rgba(255,255,255,.20);border-radius:8px;background:var(--field);display:flex;align-items:center;gap:12px;padding:0 16px;transition:.22s ease;width:383.99px;max-width:100%}
.search-box:focus-within{border-color:rgba(255,255,255,.38);background:#071f6c;box-shadow:var(--soft-glow)}
.search-box svg{width:22px;height:22px;fill:#d6d0f1;opacity:.95;flex:0 0 auto}
.search-box input{width:100%;border:0;outline:0;background:transparent;color:#fff;font-size:16px}
.search-box input::placeholder{color:#b8b4d4;opacity:1}
.catalog-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.tool-btn{height:38.96px;min-width:unset;padding:0 18px;border-radius:12px;border:2px solid var(--pill-border);background:var(--pill);color:#fff;font-size:16px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:.2s ease;width:auto}
.tool-btn:hover{background:#071f6c;border-color:rgba(255,255,255,.30)}
.tool-btn svg{width:15px;height:15px;display:block;fill:currentColor;color:currentColor;flex:0 0 auto}
.view-switcher{display:flex;align-items:center;gap:8px;margin-left:4px}
.view-btn{width:52px;height:52px;border:0;border-radius:10px;background:transparent;display:grid;place-items:center;cursor:pointer;transition:.18s ease}
.view-btn svg{width:24px;height:24px;fill:#7d74b1}
.view-btn.is-active,.view-btn:hover{background:rgba(9,27,99,.82)}
.view-btn.is-active svg{fill:var(--yellow)}

.category-divider{width:100%;height:1px;background:rgba(255,255,255,.08)}
.catalog-body{display:block}
.category-section{position:sticky;top:var(--toolbar-sticky-desktop);z-index:28;background:var(--bg-gradient-soft);backdrop-filter:blur(18px);padding:18px 44px 22px;border-bottom:1px solid var(--line)}
.category-strip{display:flex;align-items:stretch;gap:18px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.category-strip::-webkit-scrollbar{display:none}
.cat-btn{width:112px;min-width:112px;height:80px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:var(--panel);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;padding:8px 6px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);transition:.18s ease}
.cat-btn:hover{background:var(--panel-hover);transform:translateY(-1px)}
.cat-icon{width:22px;height:22px;display:block;object-fit:contain;object-position:center;filter:brightness(0) invert(1)}
.cat-btn span{font-size:12px;font-weight:500;line-height:1.2;text-align:center}
.cat-btn.is-active{background:var(--yellow);color:#101010;border-color:rgba(255,193,45,.6)}
.cat-btn.is-active .cat-icon{filter:none}

.games-section{padding:22px 44px 34px}
.hero-slider.is-collapsed{height:0;min-height:0;opacity:0;overflow:hidden}
.hero-slider,.toolbar-section,.category-section{transition:height .32s ease, opacity .28s ease, padding .28s ease, margin .28s ease}
body.slider-collapsed .toolbar-section{box-shadow:0 10px 24px rgba(0,0,0,.18)}
body.slider-collapsed .category-section{box-shadow:0 8px 18px rgba(0,0,0,.08)}
.games-grid{display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:18px 16px;justify-content:stretch}
.game-card{width:100%;min-width:0}
.game-card__media{position:relative;display:block;width:100%;height:auto;aspect-ratio:1/1;border-radius:20px;overflow:hidden;background:#1b153f;box-shadow:0 18px 36px rgba(0,0,0,.26)}
.game-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .28s ease}
.game-card:hover .game-card__media img{transform:scale(1.03)}
.game-badge{position:absolute;top:8px;left:18px;z-index:2;font-size:15px;font-weight:900;color:#fff5e9;text-shadow:0 2px 6px rgba(0,0,0,.42);letter-spacing:.3px}
.game-players,.game-favorite{position:absolute;top:12px;z-index:2;height:28px;min-width:28px;padding:0 10px;border-radius:14px;background:rgba(26,23,42,.72);backdrop-filter:blur(6px);display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700}
.game-players{left:10px;gap:6px}
.game-players svg{width:14px;height:14px;fill:#31d07d}
.game-favorite{right:10px;width:30px;padding:0;font-size:19px;line-height:1}
.game-meta-pill{display:none}
.game-title{margin:7px 0 0;text-align:center;font-size:15px;font-weight:600;line-height:1.25;color:#fff}

.lang-modal-backdrop,.account-modal-backdrop{position:fixed;inset:0;background:rgba(4,3,15,.56);backdrop-filter:blur(10px);z-index:60}
.lang-modal,.account-modal{position:fixed;inset:0;z-index:61;display:grid;place-items:center;padding:20px}
.lang-modal-card,.account-modal-card{width:min(100%, 670px);border-radius:18px;padding:26px;background:linear-gradient(180deg, rgba(67,52,42,.76), rgba(23,18,61,.9));border:1px solid rgba(255,255,255,.08);box-shadow:0 22px 60px rgba(0,0,0,.34);position:relative}
.account-modal-card{width:min(100%, 670px)}
.lang-close,.account-close{position:absolute;top:14px;right:16px;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#d9d2d2;font-size:28px;line-height:1;cursor:pointer}
.lang-modal-card h2,.account-modal-card h2{margin:0 0 18px;text-align:center;font-size:24px;font-weight:700}
.lang-search{height:52px;width:100%;border:1px solid rgba(255,255,255,.12);border-radius:10px;display:flex;align-items:center;gap:12px;padding:0 16px;background:rgba(24,21,58,.55);margin-bottom:16px}
.lang-search svg{width:20px;height:20px;fill:#bfb9d7}
.lang-search input{width:100%;border:0;outline:0;background:transparent;color:#fff;font-size:16px}
.lang-search input::placeholder{color:#aaa5c5}
.lang-options,.account-options{display:flex;flex-direction:column;gap:14px}
.lang-option{width:100%;min-height:76px;border-radius:12px;border:2px solid rgba(255,255,255,.08);background:rgba(102,78,56,.22);padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#fff;text-align:left;cursor:pointer}
.lang-option.is-selected{border-color:#ffc12d;background:rgba(120,88,52,.28)}
.lang-option-text{display:flex;flex-direction:column;gap:4px}
.lang-option-text strong{font-size:18px;font-weight:700}
.lang-option-text small{font-size:13px;color:#ddd6e9}
.lang-check{color:#ffc12d;font-size:28px;font-weight:800;opacity:0}
.lang-option.is-selected .lang-check{opacity:1}
.account-option{width:100%;min-height:76px;border-radius:12px;border:2px solid rgba(255,255,255,.08);background:rgba(102,78,56,.22);padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#fff;font-size:16px;font-weight:700;transition:.2s ease}
.account-option:hover{border-color:#ffc12d;background:rgba(120,88,52,.28)}
.account-option-main{display:flex;align-items:center;gap:14px}.account-option-index{width:40px;height:40px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(24,21,58,.55);display:inline-flex;align-items:center;justify-content:center;color:#ffc12d;font-size:13px;font-weight:800;letter-spacing:.6px}.account-option-text{display:flex;flex-direction:column;gap:4px}.account-option-text strong{font-size:18px;font-weight:700;color:#fff;line-height:1.1}.account-option-text small{font-size:13px;color:#ddd6e9}.account-option-arrow{color:#ffc12d;font-size:24px;font-weight:800;line-height:1}
[hidden]{display:none !important}

@media (max-width:1440px){
  .toolbar-wrap{grid-template-columns:minmax(320px, 650px) 1fr}
  .games-grid{grid-template-columns:repeat(6, minmax(0, 1fr));gap:18px 14px}
  .game-card,.game-card__media{width:100%}
  .game-card__media{height:auto;aspect-ratio:1/1}
}

@media (max-width:1180px){
  .header-main{padding:0 24px}
  .toolbar-wrap,.category-section,.games-section{padding-left:24px;padding-right:24px}
  .tool-btn{min-width:146px}
  .games-grid{grid-template-columns:repeat(4, minmax(180px,1fr))}
}

@media (max-width:900px){
  .header-main{height:92px;grid-template-columns:96px minmax(0,1fr);gap:8px;padding:0 10px}
  .brand{width:96px}
  .ticker-wrap{display:none}
  .header-ticker{font-size:14px;font-weight:700;max-width:100%}
  .header-actions{gap:7px 8px;justify-self:end;justify-content:flex-end;align-content:center;flex-wrap:wrap;max-width:100%}
  .header-pill-btn{height:auto;padding:0;font-size:12px;border-radius:0;gap:5px;line-height:1.1}
  .header-auth-btn{height:30px;padding:0 11px;border-radius:9px;font-size:12px;border-width:1.3px}
  .btn{height:28px;padding:0 8px;font-size:9px;border-radius:10px;display:inline-flex;gap:4px}
  .header-icon-btn{padding:1px}
  .header-icon-btn svg{width:24px;height:24px}

  .hero-slider{height:160px}
  .slider-dots{bottom:10px;height:28px;padding:0 10px;gap:6px;border-radius:14px}
  .dot{width:8px;height:8px}

  .toolbar-section{top:0}
  .toolbar-wrap{grid-template-columns:1fr auto auto;gap:6px;padding:12px 10px 12px;align-items:center}
  .search-box{grid-column:1 / -1;height:52px;padding:0 14px;gap:10px;border-radius:10px;width:100%}
  .search-box svg{width:20px;height:20px}
  .search-box input{font-size:14px}
  .catalog-actions{width:100%;grid-column:1 / -1;justify-content:space-between;gap:6px}
  .tool-btn{flex:1;min-width:auto;height:38.96px;padding:0 12px;font-size:12px;border-radius:10px}
  .view-switcher{margin-left:0;gap:4px}
  .view-btn{width:42px;height:42px;border-radius:10px}
  .view-btn svg{width:20px;height:20px}

  .catalog-body{display:grid;grid-template-columns:45.33px minmax(0,1fr);gap:10px;padding:14px 10px 16px;align-items:start}
  .category-section{position:sticky;top:var(--toolbar-sticky-mobile);background:transparent;backdrop-filter:none;padding:0;border-bottom:0;z-index:20}
  .category-strip{display:flex;flex-direction:column;align-items:flex-start;gap:10px;justify-content:flex-start;overflow:visible;width:45.33px;padding-bottom:0}
  .cat-btn{width:45.33px;min-width:45.33px;max-width:45.33px;height:60.79px;min-height:60.79px;gap:4px;padding:6px 3px;border-radius:8px}
  .cat-icon{width:16px;height:16px}
  .cat-btn span{font-size:8px;line-height:1.05;max-width:100%;word-break:break-word}

  .games-section{padding:0;height:calc(100dvh - 240px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
  .games-section::-webkit-scrollbar{display:none}
  .games-grid{grid-template-columns:repeat(2, minmax(0,1fr));gap:12px;justify-content:stretch}
  .game-card{width:100%}
  .game-card__media{width:100%;height:auto;aspect-ratio:1/1;border-radius:16px}
  .game-badge{top:6px;left:10px;font-size:12px}
  .game-players,.game-favorite{top:8px;height:24px;font-size:11px}
  .game-players{left:8px;padding:0 8px}
  .game-favorite{right:8px;width:26px;font-size:16px}
  .game-meta-pill{display:none}
  .game-title{font-size:12px;margin-top:5px}

  .lang-modal-card,.account-modal-card{width:min(100%, 387px);padding:22px 16px 16px;border-radius:16px}
  .lang-close,.account-close{top:10px;right:10px;width:30px;height:30px;font-size:24px}
  .lang-modal-card h2,.account-modal-card h2{font-size:20px;margin-bottom:14px}
  .lang-search{height:46px;border-radius:10px;padding:0 14px}
  .lang-search input{font-size:14px}
  .lang-option{min-height:64px;border-radius:10px;padding:14px 16px}
  .account-option{min-height:64px;border-radius:10px;padding:14px 16px;font-size:14px}
}

@media (max-width:480px){
  .account-option-main{gap:10px}
  .account-option-index{width:34px;height:34px;font-size:12px;border-radius:8px}
  .account-option-text strong{font-size:16px}
  .account-option-text small{font-size:11px}
}


@media (max-width:480px){
  .header-main{height:92px;grid-template-columns:88px minmax(0,1fr);padding:0 8px;gap:8px}
  .brand{width:88px}
  .header-ticker{font-size:11px}
  .header-actions{gap:6px 7px}
  .header-pill-btn{height:auto;padding:0;font-size:11px;border-radius:0;gap:5px}
  .header-auth-btn{height:28px;padding:0 10px;border-radius:8px;font-size:11px}
  .btn{height:26px;padding:0 7px;font-size:8px;border-radius:8px;gap:3px}
  .header-icon-btn{padding:1px}
  .header-icon-btn svg{width:22px;height:22px}
  .hero-slider{height:144px}
  .games-section{height:calc(100dvh - 240px)}
}

@media (max-width:390px){
  .header-main{grid-template-columns:82px minmax(0,1fr)}
  .brand{width:82px}
  .header-ticker{font-size:10px}
  .btn{padding:0 6px;font-size:7px}
  .header-pill-btn{font-size:10px;gap:4px}
  .header-auth-btn{height:27px;padding:0 8px;border-radius:8px;font-size:10px}
  .tool-btn{padding:0 8px;font-size:10px}
  .games-grid{gap:10px}
}


/* ===== Standard global scrollbar ===== */
html{
  scrollbar-width: thin;
  scrollbar-color: #1434A4 #071f6c;
}

body,
*[style*="overflow"],
.overflow-y-auto,
.overflow-x-auto,
.overflow-auto,
.scroll-area{
  scrollbar-width: thin;
  scrollbar-color: #1434A4 #071f6c;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*[style*="overflow"]::-webkit-scrollbar,
.overflow-y-auto::-webkit-scrollbar,
.overflow-x-auto::-webkit-scrollbar,
.overflow-auto::-webkit-scrollbar,
.scroll-area::-webkit-scrollbar{
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*[style*="overflow"]::-webkit-scrollbar-track,
.overflow-y-auto::-webkit-scrollbar-track,
.overflow-x-auto::-webkit-scrollbar-track,
.overflow-auto::-webkit-scrollbar-track,
.scroll-area::-webkit-scrollbar-track{
  background: #071f6c;
  border-radius: 0 !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*[style*="overflow"]::-webkit-scrollbar-thumb,
.overflow-y-auto::-webkit-scrollbar-thumb,
.overflow-x-auto::-webkit-scrollbar-thumb,
.overflow-auto::-webkit-scrollbar-thumb,
.scroll-area::-webkit-scrollbar-thumb{
  background: #1434A4;
  border-radius: 0 !important;
  border: none;
  box-shadow: none;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*[style*="overflow"]::-webkit-scrollbar-thumb:hover,
.overflow-y-auto::-webkit-scrollbar-thumb:hover,
.overflow-x-auto::-webkit-scrollbar-thumb:hover,
.overflow-auto::-webkit-scrollbar-thumb:hover,
.scroll-area::-webkit-scrollbar-thumb:hover{
  background: #1b43c8;
}


/* ===== Refinamiento v4: promos + auth modals ===== */
.header-auth-btn{cursor:pointer}
.lang-btn svg{color:#ffffff;fill:currentColor}
.tool-btn--promo{border-color:var(--yellow);background:rgba(7,31,108,.46);color:var(--yellow)}
.tool-btn--promo:hover{background:rgba(7,31,108,.66);border-color:var(--yellow2);color:var(--yellow2)}
.tool-emoji{display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1;transform:translateY(-1px)}

.auth-modal-backdrop{position:fixed;inset:0;background:rgba(4,3,15,.56);backdrop-filter:blur(10px);z-index:60}
.auth-modal{position:fixed;inset:0;z-index:61;display:grid;place-items:center;padding:20px}
.auth-modal-card{width:min(100%, 670px);max-height:calc(100dvh - 40px);overflow-y:auto;border-radius:18px;padding:26px;background:linear-gradient(180deg, rgba(67,52,42,.76), rgba(23,18,61,.9));border:1px solid rgba(255,255,255,.08);box-shadow:0 22px 60px rgba(0,0,0,.34);position:relative;scrollbar-width:thin;scrollbar-color:#1434A4 #0d236f}
.auth-modal-card--sm{width:min(100%, 520px)}
.auth-close{position:absolute;top:14px;right:16px;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#d9d2d2;font-size:28px;line-height:1;cursor:pointer}
.auth-modal-card h2{margin:0 0 18px;text-align:center;font-size:24px;font-weight:700;color:#fff}
.auth-form{display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:14px}
.auth-modal-card--sm .auth-form{grid-template-columns:1fr}
.auth-field{display:flex;flex-direction:column;gap:7px;color:#fff}
.auth-field span{font-size:13px;font-weight:700;color:#f4efff}
.auth-field input{width:100%;height:52px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(24,21,58,.55);outline:0;color:#fff;padding:0 15px;font-size:15px;transition:.18s ease}
.auth-field input::placeholder{color:#aaa5c5;opacity:1}
.auth-field input:focus{border-color:rgba(255,193,45,.72);box-shadow:0 0 0 3px rgba(255,193,45,.08)}
.password-wrap{position:relative;display:flex;align-items:center}
.password-wrap input{padding-right:50px}
.password-toggle{position:absolute;right:9px;width:36px;height:36px;border:0;border-radius:10px;background:rgba(255,255,255,.06);color:#ffffff;display:grid;place-items:center;cursor:pointer;transition:.18s ease}
.password-toggle:hover{background:rgba(255,193,45,.18);color:var(--yellow)}
.password-toggle svg{width:20px;height:20px;fill:currentColor}
.auth-submit{grid-column:1 / -1;height:46px;border:1.5px solid var(--yellow);border-radius:11px;background:var(--yellow);color:#101010;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(0,0,0,.16);transition:.2s ease;margin-top:2px}
.auth-submit:hover{transform:translateY(-1px);filter:brightness(1.03)}

.auth-modal-card::-webkit-scrollbar{width:8px}
.auth-modal-card::-webkit-scrollbar-track{background:#0d236f;border-radius:0}
.auth-modal-card::-webkit-scrollbar-thumb{background:#1434A4;border-radius:0}

@media (max-width:900px){
  .catalog-actions{gap:5px}
  .tool-btn{height:36px;padding:0 9px;font-size:10px;border-radius:9px;gap:6px;min-width:auto}
  .view-switcher{gap:2px}
  .view-btn{width:34px;height:36px;border-radius:9px}
  .view-btn svg{width:18px;height:18px}
  .auth-modal-card{width:min(100%, 387px);padding:22px 16px 16px;border-radius:16px}
  .auth-close{top:10px;right:10px;width:30px;height:30px;font-size:24px}
  .auth-modal-card h2{font-size:20px;margin-bottom:14px}
  .auth-form{grid-template-columns:1fr;gap:12px}
  .auth-field span{font-size:12px}
  .auth-field input{height:46px;border-radius:10px;font-size:14px}
  .auth-submit{height:44px}
}

@media (max-width:480px){
  .tool-emoji{display:none}
  .tool-btn{padding:0 8px;font-size:9px;gap:5px}
  .catalog-actions{overflow-x:auto;scrollbar-width:none}
  .catalog-actions::-webkit-scrollbar{display:none}
  .auth-modal{padding:14px}
  .auth-modal-card{max-height:calc(100dvh - 28px)}
}
