/* Category menu */
body:has(#lobby:not([hidden])){
  background:radial-gradient(ellipse at 72% -10%,#dcefd8 0%,transparent 43%),#f1f5ee;
}
.masthead{background:#102d26;border-bottom-color:#36584a}
.masthead-inner{display:grid;grid-template-columns:1fr auto 1fr}
.masthead .help-button{justify-self:start;border-color:#648275;background:#1d4034;color:#f4faf3}
.masthead .help-button:hover{background:#315a4b}
#sync-status{justify-self:end;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#lobby{color:#152a22;padding-bottom:53px}
.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:23px}
.catalog-heading h1{font-size:clamp(1.65rem,4.4vw,2.65rem);line-height:1.33}
.catalog-heading p{color:#4c6157;margin-top:6px;font-size:15px}
.catalog-heading .limit-note{color:#934428}
.play-stat{display:flex;flex:none;align-items:center;gap:9px;min-height:62px;padding:9px 13px;border:1px solid #c4d3c6;border-radius:13px;background:#fff;box-shadow:0 3px 9px #1d402412}
.play-stat-icon{display:grid;place-items:center;width:36px;height:36px;background:#deeadb;border-radius:9px;color:#284c36}
.play-stat-icon svg{width:20px;height:20px}
.play-stat>div{display:grid;gap:1px}
.play-stat strong{font:700 25px/.95 var(--english);color:#173d2e;text-align:right}
.play-stat>div span{font-size:13px;line-height:1.4;color:#3c5146;white-space:nowrap}

#lobby .resume-panel{margin:0 0 17px;background:#e4efe3;border-color:#a9bfa9;box-shadow:none}
#lobby .resume-panel p{color:#42594c}
#lobby .resume-panel .subtle-button{background:#f6fbf5;color:#244c3a;border-color:#bdd2be}
#lobby .resume-panel .subtle-button:hover{background:#e9f2e7}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;margin-bottom:19px;border-bottom:1px solid #c7d6c9}
.group-nav{display:flex;gap:6px;flex-wrap:wrap}
.group-nav a{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:9px;border:1px solid #bcccbf;background:#fff;color:#274e3b;text-decoration:none;font:700 13px/1.55 var(--title)}
.group-nav a:hover,.group-nav a:focus-visible{background:#e1eddc;border-color:#6f9a7d}
.group-nav svg{width:17px;height:17px;color:#396e50}
.mix-button{border-color:#9eb7a2;background:#e4efdf;color:#244532;white-space:nowrap}
.mix-button svg{color:#375e44}
.mix-button:hover:not(:disabled){border-color:#739781;background:#d5e8ce}
.mix-button:disabled{opacity:.65}

.category-groups{display:grid;gap:27px}
.category-group{scroll-margin-top:14px}
.group-heading{display:flex;align-items:center;gap:8px;margin-bottom:12px;--section-color:#306348;--section-wash:#deebdc}
#group-general .group-heading{--section-color:#89512e;--section-wash:#faead7}
#group-tech .group-heading{--section-color:#386689;--section-wash:#deeaf2}
.group-heading>span{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--section-wash);color:var(--section-color)}
.group-heading svg{width:19px;height:19px}
.group-heading h3{font-size:17px}
.group-heading small{color:#485e53;font:700 13px/1.25 var(--english);letter-spacing:.04em;text-transform:uppercase}
.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.category{
  --tile-wash:color-mix(in srgb,var(--tile-color) 8%,white);
  position:relative;display:grid;grid-template-rows:auto 1fr auto;justify-items:center;align-items:center;
  aspect-ratio:1.18;min-width:0;min-height:145px;text-align:center;padding:12px 9px 10px;
  border:1px solid #bdcfc1;border-radius:16px;background:var(--tile-wash);color:#152b22;
  box-shadow:0 3px 7px #24432d13;transition:transform .18s,border-color .18s,box-shadow .18s;
}
.category:hover:not(:disabled){transform:translateY(-3px);border-color:#7d9d86;box-shadow:0 7px 14px #254a3322}
.category[aria-pressed=true]{border-color:#326447;box-shadow:inset 0 0 0 2px #326447,0 4px 13px #2676482b}
.category:focus-visible{outline:2px solid #340d80}
.category.all-packs-used{opacity:.60}
.category-title{width:100%;padding-inline:21px;font:700 clamp(.81rem,1.3vw,1.03rem)/1.44 var(--title);overflow-wrap:anywhere}
.tile-visual{display:grid;place-items:center}
.category .tile-visual{width:100%;min-height:72px;height:100%;padding:5px 0;overflow:hidden}
.category:has(.category-poster){aspect-ratio:auto;min-height:193px}
.category-logo,.category-art,.category-poster{display:block;object-fit:contain;background:transparent;transition:transform .24s ease-out}
.category .category-art{width:94%;height:100%;max-height:116px}
.category .category-poster{width:100%;height:100%;max-height:130px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .category:hover :is(.category-art,.category-logo,.category-poster){transform:translateY(-2px) scale(1.035)}
  .category[data-category="celebrities"]:hover .category-art{animation:celebrity-tilt .72s ease-in-out}
}
@media(prefers-reduced-motion:no-preference){
  .category[data-category="celebrities"]:is(:focus-visible,[aria-pressed=true]) .category-art{animation:celebrity-tilt .72s ease-in-out}
}
@keyframes celebrity-tilt{
  25%{rotate:-5deg;scale:1.04}
  58%{rotate:4deg;scale:1.04}
}
.category-logo{display:block;width:90%;height:100%;max-width:158px;max-height:81px;filter:drop-shadow(0 1px 1px #0005)}
.category[data-category="gta5"] .category-logo,.category[data-category="clash-royale"] .category-logo{max-height:96px}
.category[data-category="playstation"] .category-logo,.category[data-category="phones"] .category-logo{max-height:62px;max-width:83px}
.category-illustration{display:grid;place-items:center}
.category .category-illustration{color:var(--tile-color);width:66px;height:66px;border-radius:18px;background:transparent}
.category .category-illustration svg{width:40px;height:40px}
.category .pick-mark{display:grid;place-items:center;position:absolute;top:9px;left:9px;width:26px;height:26px;border-radius:50%;border:1px solid #aebeb0;background:#ffffffc7;color:#365443;transition:background .18s,color .18s}
.pick-mark svg{width:14px;height:14px}
.category[aria-pressed=true] .pick-mark{background:#235339;border-color:#235339;color:#edffdd}
.pack-count{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:3px 8px;border-radius:8px;background:#214637;color:#f3f9ee;max-width:100%;white-space:nowrap}
.pack-number{font:700 18px/1.15 var(--english);color:#d7fa70}
.pack-label{font:700 11px/1.45 var(--title)}
.category.all-packs-used .pack-count{background:#56665b}
.category.selection-shake{animation:selection-shake .18s ease}
@keyframes selection-shake{25%{transform:translateX(3px)}75%{transform:translateX(-3px)}}


.selection-tray{position:fixed;inset:auto 0 0;z-index:5;padding-bottom:env(safe-area-inset-bottom);background:#fcfff9f0;border-top:1px solid #c2d0c1;box-shadow:0 -3px 18px #213e2c15;backdrop-filter:blur(10px)}
.selection-tray-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:1280px;margin:auto;padding:11px 32px}
.tray-progress{width:min(240px,60%)}
.progress-label{display:flex;justify-content:space-between;align-items:center;gap:6px}
.progress-label>span{font-size:14px;color:#345343}
.progress-label b{font:700 20px/1.15 var(--english);color:#1e4735;white-space:nowrap}
.progress-slots{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin-top:5px}
.progress-slots i{height:5px;border-radius:6px;background:#d6e2d6;transition:background .2s}
.progress-slots i.filled{background:#346b4a}
.selection-tray .primary{min-height:44px;min-width:148px;border-radius:10px}
.selection-tray .primary:disabled{background:#dfe7dc;color:#42564a;border-color:#d2ddd0}
.selection-tray svg,.setup-go svg{width:16px;height:16px}

.setup-selection{padding-inline-end:25px;margin-bottom:15px;overflow-wrap:anywhere}
.setup-go{margin-top:13px}

@media(max-width:1040px){.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
  #lobby{padding-bottom:17px}
  .catalog-heading{margin-bottom:15px}
  .catalog-heading p{font-size:13px;line-height:1.55}
  .play-stat{min-height:54px;padding:7px 8px;gap:6px}
  .play-stat-icon{height:27px;width:27px}
  .play-stat-icon svg{height:16px;width:16px}
  .play-stat strong{font-size:23px}
  .play-stat>div span{font-size:11px}
  .catalog-toolbar{padding-bottom:9px;margin-bottom:14px}
  .group-nav{gap:4px}
  .group-nav a{padding:5px 7px;font-size:11px}
  .group-nav svg{display:none}
  .mix-button{min-height:35px;padding:5px 7px;font-size:11px;gap:4px}
  .mix-button svg{width:14px;height:14px}
  .category-groups{gap:19px}
  .group-heading{margin-bottom:8px}
  .category-grid{gap:9px}
  .category{min-height:139px;padding:9px 6px 8px;border-radius:11px}
  .category-title{padding-inline:12px;font-size:.78rem}
  .category .category-art{max-height:84px}
  .category:has(.category-poster){min-height:160px}
  .category .category-poster{max-height:100px}
  .category .pick-mark{top:6px;left:6px;width:19px;height:19px}
  .pick-mark svg{width:11px;height:11px}
  .category-logo{width:85%;max-width:120px;max-height:62px}
  .category[data-category="gta5"] .category-logo,.category[data-category="clash-royale"] .category-logo{max-height:69px}
  .category[data-category="playstation"] .category-logo,.category[data-category="phones"] .category-logo{max-height:47px}
  .category .category-illustration{width:50px;height:50px;border-radius:14px}
  .category .category-illustration svg{width:33px;height:33px}
  .pack-count{padding:2px 6px;gap:4px}
  .pack-label{font-size:10px}
  .pack-number{font-size:16px}
  .selection-tray-inner{padding:9px 16px;gap:11px}
  .selection-tray .primary{min-width:121px;padding-inline:9px;font-size:12px}
}
@media(max-width:560px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:370px){.selection-tray-inner{padding-inline:12px}.progress-label>span{font-size:12px}.play-stat-icon{display:none}}
.category[data-category="focus"] .category-illustration{
  color:#e4f7a0;background:linear-gradient(150deg,#60518e,#3e355d);box-shadow:0 5px 11px #4c437a38;
}
