/* Atlas 12.7 — Game-specific Elario catalog design.
   Presentation only: inventory/localStorage, imports and map data untouched. */
body.j127-catalog{
  --j127-gold:#ffd38c;--j127-violet:#bd80ee;--j127-rose:#edb2f2;
  background:radial-gradient(ellipse at 100% 0,#58326977,transparent 52rem),
             radial-gradient(ellipse at 4% 48%,#371b4b88,transparent 42rem),#10091f;
  color:#f9eefb;
}
body.j127-catalog .db-wrap{max-width:1350px;padding:clamp(12px,3vw,32px)}
body.j127-catalog .db-head{
  isolation:isolate;position:relative;min-height:340px;
  padding:clamp(24px,4vw,58px);overflow:hidden;
  border:2px solid #d78b9d;border-radius:26px;
  background:linear-gradient(92deg,#160c26fa 0%,#22102feb 45%,#20112793 76%,#1a102ca8 100%),
             url('./art/atlas93-garage-hero.webp') center 42% / cover;
  box-shadow:0 19px 46px #09030fcf,0 0 0 5px #a95ac11f;
}
body.j127-catalog .db-head::after{content:"";pointer-events:none;position:absolute;inset:auto 0 0;height:5px;
  background:linear-gradient(90deg,#f3b45f,#b75ede,#ee9d72)}
body.j127-catalog .j127-eyebrow{
  color:#ffda99;letter-spacing:.15em;font-size:11px;font-weight:900;
  text-transform:uppercase;margin:0 0 13px
}
body.j127-catalog .db-head h1{
  font-size:clamp(32px,5vw,66px);line-height:1.06;letter-spacing:-.035em;
  text-shadow:0 4px 18px #080317;color:#fff6fd;max-width:830px;font-weight:950
}
body.j127-catalog .db-head h1 em{font-style:normal;color:#ffca82}
body.j127-catalog .db-head>.db-note{font-size:clamp(13px,1.2vw,15px);line-height:1.68;
  max-width:83ch;color:#f7e7f4;text-shadow:0 2px 8px #0d0518}
body.j127-catalog .j127-entrypoints{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;max-width:100%;margin:23px 0;
}
body.j127-catalog .j127-entrypoints a{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:11px 15px;border-radius:11px;text-decoration:none;
  font-size:13px;font-weight:850;line-height:1.2;
  border:1px solid #d0a1db;background:#342246e8;color:#fff1fa;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
body.j127-catalog .j127-entrypoints a:first-child{
  background:linear-gradient(110deg,#ffdfa0,#ffad66);color:#291326;border-color:#ffe5ae
}
body.j127-catalog .j127-entrypoints a:hover{
  background:#643572;border-color:#ffe5ab;transform:translateY(-2px);color:white
}
body.j127-catalog .j127-entrypoints a:first-child:hover{background:#ffe5ae;color:#241127}
body.j127-catalog .j127-entrypoints a:focus-visible,
body.j127-catalog :is(button,input,select,a):focus-visible{
  outline:3px solid #ffe0a3!important;outline-offset:3px
}
body.j127-catalog .db-tools{align-items:center;gap:11px;margin:17px 0}
body.j127-catalog .db-tools :is(input,select),
body.j127-catalog .db-form :is(input,select){
  color:#fff8fd;background:#241632;border:1px solid #9872a9;
  min-height:44px;max-width:100%;border-radius:11px
}
body.j127-catalog .db-tools :is(input,select)::placeholder,
body.j127-catalog .db-form input::placeholder{color:#cfbcd5}
body.j127-catalog .db-tools button,
body.j127-catalog .db-form button,
body.j127-catalog .db-card button,
body.j127-catalog .db-slot button{
  color:#fff4fe;background:#493052;border:1px solid #bc8ab9;
  min-height:40px;border-radius:9px;font-weight:750;cursor:pointer
}
body.j127-catalog :is(.db-tools button,.db-form button,.db-card button):hover{
  border-color:#ffcd91;background:#713d72
}
body.j127-catalog button:disabled{opacity:.48;cursor:not-allowed}
body.j127-catalog .db-stats{font-size:13px;color:#f5d9fb;font-weight:700}
body.j127-catalog .db-section{
  padding:clamp(17px,2.5vw,32px);
  border:1px solid #835b99;border-radius:22px;
  background:linear-gradient(135deg,#2b1a3a,#181329 90%);
  box-shadow:0 13px 33px #09040f8c;margin:24px 0
}
body.j127-catalog .db-section h2{
  font-size:clamp(22px,2.7vw,31px);font-weight:900;color:#ffd69d;
  margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid #92568b
}
body.j127-catalog .db-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:16px}
body.j127-catalog .db-card{
  background:linear-gradient(150deg,#3a2448,#221a37);
  border:1px solid #995f9e;border-radius:16px;padding:17px;
  box-shadow:0 7px 20px #0c041b55;transition:border-color .15s ease
}
body.j127-catalog .db-card:hover{border-color:#f6c18a}
body.j127-catalog .db-card h3{color:#ffdfac;font-size:17px;line-height:1.3}
body.j127-catalog .db-card :is(p,label){color:#edd9e8;font-size:12px}
body.j127-catalog .db-slot{background:#2b1c3b;border-color:#92649d;color:#f5eaf7}
body.j127-catalog .db-note{color:#e8d5ed}
body.j127-catalog .db-related{color:#ffd9a0}
body.j127-catalog .db-section :is(a,.db-related){text-underline-offset:3px}
@media(max-width:740px){
  body.j127-catalog .db-wrap{padding:10px}
  body.j127-catalog .db-head{padding:22px 17px;min-height:unset;
    background-position:62% center}
  body.j127-catalog .j127-entrypoints a{flex:1 1 160px}
  body.j127-catalog .db-tools :is(input,select){flex:1 1 150px}
  body.j127-catalog .db-section{padding:16px 13px}
  body.j127-catalog .db-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  body.j127-catalog .j127-entrypoints a,body.j127-catalog .db-card{transition:none}
  body.j127-catalog .j127-entrypoints a:hover{transform:none}
}
