/* cs.skins / THE SKIN EDIT
   Presentation layer. Original palette, font families and functional selectors
   are retained. Keep the commerce modules and SEO templates independent. */

:root { --atelier-edge: rgba(191,216,255,.12); --atelier-panel: #10131c; }
body { background: var(--bg); }
body::before { background: radial-gradient(900px 620px at 88% 0,rgba(91,157,255,.055),transparent 75%); animation: none; }
.bg-art { opacity: .13; }
.site-header { background: rgba(10,12,18,.93); }
.site-header .inner { gap: 30px; }
.site-header::after { background: linear-gradient(90deg,transparent,rgba(191,216,255,.16),transparent); }
.logo { gap: 10px; letter-spacing: -.045em; font-size: 21px; }
.logo::before { content: ''; display: block; width: 31px; height: 31px; flex: none; background: url('/brand-mark.svg') center / contain no-repeat; }
.logo .gradient-text { background: none; color: var(--ice); -webkit-text-fill-color: var(--ice); }
.nav { gap: 25px; }
.nav a { transition: color .18s, background .18s; }
.nav a:hover { color: var(--ice); }
.btn { border-radius: 9px; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.btn-primary { background: var(--accent); border: 1px solid rgba(191,216,255,.2); color: #071226; box-shadow: inset 0 1px 0 rgba(255,255,255,.2),0 5px 18px -10px rgba(91,157,255,.4); }
.btn-primary:hover { background: var(--blue); color: #071226; box-shadow: 0 8px 24px -12px rgba(91,157,255,.55); transform: translateY(-1px); }
.btn-primary::before, .btn-primary::after { display: none; }
.btn-ghost { background: rgba(191,216,255,.035); border-color: var(--atelier-edge); }
.btn-ghost:hover { background: rgba(191,216,255,.075); border-color: rgba(191,216,255,.25); }
:where(a,button,input,select,summary):focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.section-head h2 { letter-spacing: -.04em; text-shadow: none; }
.block { padding-top: 54px; padding-bottom: 54px; }
.block + .block::before { opacity: .24; }
.site-footer { background: linear-gradient(180deg,transparent,rgba(16,19,28,.55)); }
.block + .block::before,.atelier-hero .hero-panel::before { display: none; }
.atelier-cat-num { display: none !important; }

/* First screen: a calm editorial composition, with the skin as the object. */
.atelier-hero { overflow: hidden; }
.atelier-hero::before { filter: none; animation: none; background: radial-gradient(ellipse at 82% 40%,rgba(91,157,255,.065),transparent 53%); }
.atelier-hero .hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; padding: 62px 28px 58px; align-items: center; }
.atelier-hero .hero-grid::before { display: none; }
.atelier-hero .hero-copy { position: relative; z-index: 2; max-width: 610px; }
.atelier-hero .eyebrow { color: var(--text-2); font-size: 10px; letter-spacing: .16em; margin-bottom: 22px; }
.atelier-hero .eyebrow::before { width: 16px; height: 16px; border-radius: 0; background: url('/brand-mark.svg') center / contain; animation: none; box-shadow: none; }
.atelier-hero h1 { font-size: clamp(42px,4.3vw,66px); font-weight: 760; line-height: 1.055; letter-spacing: -.06em; text-shadow: none; margin: 0 0 23px; }
.atelier-hero h1 .fade { background: linear-gradient(100deg,var(--ice-2),var(--accent)); background-clip: text; -webkit-background-clip: text; }
.atelier-hero .lead { font-size: 15px; line-height: 1.7; max-width: 450px; color: var(--text-2); margin-bottom: 25px; }
.atelier-hero .lead-accent { display: block; border: 0; background: none; border-radius: 0; box-shadow: none; padding: 0; margin-top: 2px; color: var(--muted); font-weight: 400; }
.atelier-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.atelier-actions .btn { min-height: 48px; padding: 12px 22px; font-size: 13px; gap: 16px; }
.atelier-hero .hero-search { max-width: 453px; padding: 5px; gap: 4px; background: rgba(191,216,255,.035); border: 1px solid var(--atelier-edge); border-radius: 12px; margin-bottom: 20px; }
.atelier-hero .hero-search input { border: 0; background: transparent; padding: 9px 10px; font-size: 12px; box-shadow: none; }
.atelier-hero .hero-search:focus-within { border-color: rgba(91,157,255,.55); }
.atelier-hero .hero-search .btn { min-height: 35px; background: rgba(191,216,255,.07); color: var(--text-2); border-color: rgba(191,216,255,.07); box-shadow: none; font-size: 11px; padding: 8px 12px; }
.atelier-hero .hero-badges { max-width: 470px; gap: 8px 14px; }
.atelier-hero .hero-badges .badge { padding: 0; background: none; border: 0; border-radius: 0; color: var(--muted); font-size: 9.5px; font-weight: 450; }
.atelier-hero .hero-badges .icon { width: 12px; height: 12px; color: var(--blue); }

.atelier-showroom { position: relative; min-width: 0; background: linear-gradient(145deg,rgba(27,38,59,.45),rgba(16,19,28,.35) 54%,rgba(16,19,28,.8)); border: 1px solid var(--atelier-edge); border-radius: 20px; isolation: isolate; }
.atelier-showroom::before { content: ''; position: absolute; width: 36px; height: 4px; top: -2px; left: 28px; background: var(--accent); border-radius: 4px; }
.atelier-showroom-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 21px 25px 0; font-size: 9px; letter-spacing: .16em; font-weight: 600; color: var(--text-2); }
.atelier-showroom-top > span:first-child { display: flex; align-items: center; gap: 8px; }
.atelier-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.atelier-edition { color: var(--muted); font-size: 9px; }
.atelier-stage { position: relative; height: 310px; display: grid; place-items: center; }
.atelier-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 60%,rgba(91,157,255,.17),transparent 62%); }
.atelier-stage-word { position: absolute; width: 100%; text-align: center; top: 21%; color: rgba(191,216,255,.035); font-size: clamp(38px,5.5vw,86px); font-weight: 850; letter-spacing: -.065em; line-height: 1; overflow: hidden; }
.atelier-orbit { position: absolute; inset: 3% 5%; width: 90%; height: 94%; fill: none; stroke: rgba(127,178,255,.12); stroke-width: .8; }
.atelier-orbit ellipse:nth-child(2) { stroke-dasharray: 2 7; opacity: .65; }
.atelier-orbit .atelier-orbit-light { stroke: rgba(127,178,255,.6); stroke-width: 1.3; }
.atelier-stage-image { display: block; position: relative; width: 92%; height: 95%; object-fit: contain; z-index: 1; transform: rotate(-12deg); filter: drop-shadow(0 26px 22px rgba(0,0,0,.55)); transition: transform .55s cubic-bezier(.22,.68,.21,1); }
.atelier-showroom:hover .atelier-stage-image { transform: translateY(-6px) rotate(-8deg); }
.atelier-stage-caption { position: absolute; bottom: 5px; font-size: 9px; letter-spacing: .035em; color: var(--muted); }
.atelier-showroom-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 25px; }
.atelier-kicker { display: block; font-size: 9px; color: var(--muted); margin-bottom: 5px; }
.atelier-skin-name { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.035em; }
.atelier-skin-name span { color: var(--muted); font-weight: 450; }
.atelier-round-link { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--atelier-edge); border-radius: 50%; color: var(--ice); background: rgba(191,216,255,.025); transition: background .2s, transform .2s; }
.atelier-round-link:hover { background: var(--accent-soft); transform: rotate(-35deg); }
.atelier-finish-tabs { display: flex; padding: 12px 17px; border-top: 1px solid var(--atelier-edge); gap: 6px; }
.atelier-finish-tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); padding: 9px 4px; font: 500 10px var(--font); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.atelier-finish-tabs button:hover { color: var(--ice); background: rgba(191,216,255,.03); }
.atelier-finish-tabs [aria-selected='true'] { background: rgba(91,157,255,.09); color: var(--ice); border-color: rgba(127,178,255,.2); }
.atelier-swatch { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.swatch-doppler { background: linear-gradient(135deg,#1d253e,#6786d7 45%,#3b225c); }
.swatch-printstream { background: linear-gradient(135deg,#eaf2ff 40%,#747f98 43%,#0a0c12 60%); }
.swatch-asiimov { background: linear-gradient(135deg,#eaf2ff 40%,#d68036 43%,#0a0c12 70%); }

/* Numbers come from the existing catalog; no invented volume or ratings. */
body:has(.atelier-hero) .hero + .block { padding-top: 0 !important; padding-bottom: 22px; }
body:has(.atelier-hero) .stats { background: none; border: 0; border-radius: 0; box-shadow: none; gap: 0; }
body:has(.atelier-hero) .stat { padding: 21px 27px; border: 0; border-right: 1px solid var(--atelier-edge); background: none; }
body:has(.atelier-hero) .stat:first-child { padding-left: 0; }
body:has(.atelier-hero) .stat:last-child { border-right: 0; }
body:has(.atelier-hero) .stat::after { display: none; }
body:has(.atelier-hero) .stat-icon { display: none; }
body:has(.atelier-hero) .stat .value { font-size: 29px; font-weight: 600; letter-spacing: -.05em; line-height: 1.2; background: none; -webkit-text-fill-color: var(--ice); color: var(--ice); }
body:has(.atelier-hero) .stat .value.mono { font-size: 23px; padding-top: 4px; }
body:has(.atelier-hero) .stat .label { margin-top: 9px; font-size: 10px; max-width: 220px; }
body:has(.atelier-hero) .stat-go { font-size: 10px; margin-top: 8px; color: var(--blue); }

.atelier-market-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: center; }
.atelier-market-copy .eyebrow { font-size: 9px; letter-spacing: .12em; }
.atelier-market-copy h2 { font-size: clamp(27px,3vw,40px); font-weight: 650; letter-spacing: -.045em; line-height: 1.15; margin: 0 0 18px; }
.atelier-market-copy .fade, .atelier-discovery .fade { color: var(--muted); }
.atelier-market-copy p { font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 350px; }
.atelier-text-link { display: inline-flex; gap: 24px; align-items: center; margin-top: 15px; font-size: 11px; font-weight: 550; color: var(--blue); }
.atelier-text-link span { font-size: 20px; }
.atelier-market .hero-panel { box-shadow: none; background: linear-gradient(135deg,rgba(21,25,36,.7),rgba(16,19,28,.7)); border-color: var(--atelier-edge); border-radius: 15px; }
.atelier-market .panel-head { letter-spacing: .12em; padding: 16px 20px; font-size: 9px; }
.atelier-market .panel-head a { font-size: 10px; }
.atelier-market .panel-foot { font-size: 10px; }
.atelier-market .ri-name { font-size: 11px; }
.atelier-market .ri-meta { font-size: 9px; }
.atelier-market .ri-price { font-size: 12px; }
.atelier-market .hero-rows-track:focus-within { animation-play-state: paused; }

/* Eleven original category destinations, now recognisable at a glance. */
#categories .section-head { margin-bottom: 24px; }
#categories .section-head h2 { font-size: 29px; font-weight: 650; }
.cat-grid { grid-template-columns: repeat(30,minmax(0,1fr)); gap: 10px; }
.cat-grid .cat-card { grid-column: span 6; }
.cat-grid .cat-card { display: flex; flex-direction: column; position: relative; min-width: 0; min-height: 185px; padding: 19px; border-radius: 13px; background: linear-gradient(150deg,rgba(27,33,48,.4),rgba(16,19,28,.7)); border: 1px solid var(--atelier-edge); overflow: hidden; transition: background .25s, border-color .25s, transform .25s; }
.cat-grid .cat-card:hover { transform: translateY(-3px); background: linear-gradient(150deg,rgba(91,157,255,.1),rgba(16,19,28,.9)); border-color: rgba(127,178,255,.35); }
.atelier-cat-num { position: absolute; left: 16px; top: 14px; font-size: 8px; letter-spacing: .1em; color: var(--muted); opacity: .7; }
.atelier-cat-art { display: grid; place-items: center; height: 95px; margin: -5px -5px 8px; }
.atelier-cat-art img { width: 100%; height: 108px; object-fit: contain; transform: rotate(-10deg); filter: drop-shadow(0 8px 8px rgba(0,0,0,.35)); transition: transform .35s; }
.cat-card:hover .atelier-cat-art img { transform: rotate(-4deg) scale(1.08); }
.atelier-cat-art svg { width: 73px; height: 45px; fill: var(--ice-2); opacity: .7; }
.atelier-cat-art .atelier-line-icon { fill: none; stroke: var(--ice-2); stroke-width: 1.2; width: 40px; height: 40px; }
.cat-grid .cat-name { margin-top: auto; font-size: 12px; font-weight: 600; letter-spacing: -.02em; }
.cat-grid .cat-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.cat-grid .cat-card:nth-child(n+6) { grid-column: span 5; min-height: 104px; padding-right: 57px; }
.cat-grid .cat-card:nth-child(n+6) .atelier-cat-art { position: absolute; top: 24px; right: 12px; width: 38px; height: 38px; margin: 0; opacity: .45; }
.cat-grid .cat-card:nth-child(n+6) .atelier-cat-art svg { width: 38px; height: 30px; }
.cat-grid .cat-card:nth-child(n+6) .atelier-cat-num { position: static; margin-bottom: 10px; }
.cat-grid .cat-card:last-child { grid-column: span 5; }

/* A short, native GET form using the catalog's real search/priceMax filters. */
.atelier-discovery-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr .8fr; gap: 90px; padding: 46px 55px; border: 1px solid rgba(127,178,255,.18); border-radius: 19px; background: radial-gradient(ellipse at 0 100%,rgba(91,157,255,.12),transparent 60%),var(--atelier-panel); }
.atelier-discovery-panel::after { content: ''; position: absolute; top: -90px; right: 45%; width: 240px; height: 420px; border: 1px solid rgba(127,178,255,.07); transform: rotate(32deg); border-radius: 30px; pointer-events: none; }
.atelier-discovery-panel > div, .atelier-finder { position: relative; z-index: 1; }
.atelier-discovery .eyebrow { font-size: 9px; letter-spacing: .12em; }
.atelier-discovery h2 { font-size: 42px; line-height: 1.12; letter-spacing: -.05em; font-weight: 650; margin: 0 0 20px; }
.atelier-discovery p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-bottom: 0; }
.atelier-finder { display: flex; flex-direction: column; align-self: center; }
.atelier-finder > label { margin: 0 0 9px; font-size: 10px; color: var(--text-2); }
.atelier-find-options { display: flex; gap: 6px; margin-bottom: 20px; }
.atelier-find-options button { flex: 1; background: rgba(191,216,255,.035); color: var(--muted); border: 1px solid var(--atelier-edge); border-radius: 7px; padding: 9px 4px; font: 500 11px var(--font); cursor: pointer; }
.atelier-find-options [aria-pressed='true'] { background: var(--accent-soft); border-color: rgba(127,178,255,.4); color: var(--ice); }
.atelier-finder select { width: 100%; min-height: 43px; margin-bottom: 14px; font-size: 12px; background-color: var(--bg); border-color: var(--atelier-edge); border-radius: 8px; }
.atelier-finder .btn { min-height: 44px; justify-content: space-between; font-size: 12px; }
.atelier-finder-note { text-align: center; margin-top: 9px; font-size: 9px; color: var(--muted); }

/* Shared visual language: quiet surfaces, readable data, blue primary action. */
.steps { gap: 16px; }
.step { background: linear-gradient(145deg,rgba(21,25,36,.6),rgba(16,19,28,.5)); border-color: var(--atelier-edge); border-radius: 14px; padding: 29px; box-shadow: none; }
.step .num { color: rgba(127,178,255,.25); font-size: 38px; letter-spacing: -.06em; font-weight: 600; }
.step h3 { font-size: 15px; }
.step p { font-size: 12px; line-height: 1.8; }
.trust-item, .help-card { background: rgba(16,19,28,.5); border-color: var(--atelier-edge); box-shadow: none; border-radius: 13px; }
.cta-band { border-radius: 18px; border: 1px solid rgba(127,178,255,.2); background: radial-gradient(ellipse at 100% 0,rgba(91,157,255,.13),transparent 65%),var(--atelier-panel); box-shadow: none; }
.cta-band::before { background: url('/brand-mark.svg') center / contain no-repeat; inset: auto 30px -25px auto; width: 180px; height: 180px; opacity: .045; filter: none; animation: none; }
.faq-item { border-color: var(--atelier-edge); border-radius: 10px; background: rgba(16,19,28,.4); }
.catalog-head { padding-top: 33px; }
.catalog-title { font-size: 30px; letter-spacing: -.04em; font-weight: 650; }
.catalog-layout { gap: 24px; }
.catalog-layout .filters { background: rgba(16,19,28,.8); border: 1px solid var(--atelier-edge); border-radius: 13px; }
.catalog-layout .toolbar { padding: 0 0 16px; margin-bottom: 0; }
.weapon-rail { gap: 8px; }
.weapon-chip { border-radius: 9px; }
.cards { gap: 13px; }
.cards .item-card { border-radius: 13px; background: linear-gradient(155deg,#151924,#10131c); border-color: rgba(191,216,255,.095); box-shadow: none; }
.cards .item-card:hover { border-color: rgba(127,178,255,.36); box-shadow: 0 16px 28px -20px rgba(0,0,0,.7); transform: translateY(-3px) !important; }
.cards .item-art { height: 160px; background: radial-gradient(ellipse at 50% 85%,color-mix(in srgb,var(--rarity,#7fb2ff) 9%,transparent),transparent 68%),linear-gradient(145deg,rgba(191,216,255,.025),transparent); border-bottom-color: rgba(191,216,255,.045); }
.cards .item-card:hover .item-art { background: radial-gradient(ellipse at 50% 85%,color-mix(in srgb,var(--rarity,#7fb2ff) 14%,transparent),transparent 68%); }
.cards .art-lg .item-icon-img { max-height: 129px; width: 90%; object-fit: contain; }
.cards .item-card:hover .item-icon-img { transform: translateY(-4px) rotate(-3deg) scale(1.035); }
.cards .item-body { gap: 8px; padding: 14px; }
.cards .item-title { font-size: 13px; min-height: 36px; line-height: 1.42; }
.cards .price-row .price { font-size: 21px; font-weight: 650; }
.cards .item-actions .btn { min-height: 36px; border-radius: 7px; font-size: 11px; }
.cards .item-actions .btn-cart { width: 36px; }
.art-frame { background: radial-gradient(ellipse at 50% 60%,rgba(91,157,255,.08),transparent 65%),var(--atelier-panel); border-color: var(--atelier-edge); box-shadow: none; border-radius: 18px; }
.art-frame:hover { box-shadow: none; }
.modal { border-radius: 16px; border-color: rgba(127,178,255,.22); }

@media(min-width:1500px) {
  .atelier-hero .hero-grid { padding-top: 78px; padding-bottom: 68px; }
  .atelier-stage { height: 350px; }
}
@media(max-width:1150px) {
  .site-header .inner { gap: 20px; }
  .nav { gap: 15px; }
  .logo { font-size: 19px; }
  .logo::before { width: 26px; height: 26px; }
  .atelier-hero .hero-grid { gap: 35px; padding-top: 45px; }
  .atelier-hero h1 { font-size: 51px; }
  .atelier-stage { height: 280px; }
  .atelier-market-grid { gap: 45px; }
  .atelier-discovery-panel { gap: 45px; padding: 35px; }
  .cat-grid .cat-card { padding: 15px; }
}
@media(max-width:850px) {
  .atelier-hero .hero-grid { gap: 25px; }
  .atelier-hero h1 { font-size: 42px; }
  .atelier-hero .lead { font-size: 13px; }
  .atelier-hero .eyebrow { font-size: 8px; }
  .atelier-actions { gap: 7px; }
  .atelier-actions .btn { padding: 10px 13px; min-height: 43px; font-size: 11px; gap: 10px; }
  .atelier-stage { height: 245px; }
  .atelier-showroom-top { padding: 18px 18px 0; font-size: 8px; }
  .atelier-showroom-bottom { padding: 17px; }
  .atelier-skin-name { font-size: 15px; }
  .atelier-finish-tabs { padding: 10px; gap: 2px; }
  .atelier-finish-tabs button { font-size: 9px; gap: 4px; }
  .atelier-swatch { width: 10px; height: 10px; }
  .cat-grid { grid-template-columns: repeat(12,minmax(0,1fr)); }
  .cat-grid .cat-card { grid-column: span 4; }
  .cat-grid .cat-card:nth-child(n+4) { grid-column: span 3; min-height: 104px; padding-right: 57px; }
  .cat-grid .cat-card:nth-child(n+4) .atelier-cat-art { position: absolute; top: 23px; right: 12px; width: 38px; height: 38px; margin: 0; opacity: .5; }
  .cat-grid .cat-card:nth-child(n+4) .atelier-cat-art svg { width: 38px; height: 30px; }
  .cat-grid .cat-card:nth-child(n+4) .atelier-cat-art img { width: 64px; height: 56px; }
  .cat-grid .cat-card:nth-child(n+4) .atelier-cat-num { position: static; margin-bottom: 10px; }
  .atelier-discovery-panel { gap: 25px; padding: 28px; }
  .atelier-discovery h2 { font-size: 36px; }
  body:has(.atelier-hero) .stat { padding: 16px; }
  body:has(.atelier-hero) .stat .value { font-size: 25px; }
  body:has(.atelier-hero) .stat .value.mono { font-size: 20px; }
}
@media(max-width:680px) {
  .site-header .inner { gap: 8px; }
  .block { padding-top: 34px; padding-bottom: 34px; }
  .atelier-hero .hero-grid { grid-template-columns: minmax(0,1fr); gap: 32px; padding: 35px 20px 30px; }
  .atelier-hero .hero-copy { max-width: none; }
  .atelier-hero h1 { font-size: clamp(35px,8.3vw,52px); max-width: 540px; }
  .atelier-hero .eyebrow { font-size: 8px; margin-bottom: 18px; }
  .atelier-hero .lead { font-size: 13px; max-width: 420px; margin-bottom: 20px; }
  .atelier-actions { margin-bottom: 18px; }
  .atelier-actions .btn { min-height: 45px; font-size: 12px; padding: 11px 18px; }
  .atelier-hero .hero-search { max-width: none; margin-bottom: 15px; }
  .atelier-hero .hero-badges .badge { font-size: 9px; white-space: normal; }
  .atelier-showroom { border-radius: 15px; }
  .atelier-stage { height: 250px; }
  .atelier-stage-word { font-size: clamp(42px,12vw,70px); top: 27%; }
  .atelier-stage-image { width: 85%; }
  .atelier-finish-tabs button { font-size: 10px; padding: 10px 3px; }
  .atelier-swatch { width: 13px; height: 13px; }
  .atelier-showroom-bottom { padding: 17px 20px; }
  .atelier-skin-name { font-size: 18px; }
  body:has(.atelier-hero) .stats { grid-template-columns: 1fr 1fr; }
  body:has(.atelier-hero) .stat { padding: 18px 0 18px 20px; border-bottom: 1px solid var(--atelier-edge); }
  body:has(.atelier-hero) .stat:nth-child(odd) { padding-left: 0; padding-right: 14px; }
  body:has(.atelier-hero) .stat:nth-child(even) { border-right: 0; }
  body:has(.atelier-hero) .stat:nth-child(n+3) { border-bottom: 0; }
  body:has(.atelier-hero) .stat .label { font-size: 9px; }
  .atelier-market-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .atelier-market-copy h2 { font-size: 32px; }
  .atelier-market-copy p { max-width: none; font-size: 12px; }
  .atelier-market-copy .eyebrow { font-size: 8px; }
  .atelier-text-link { margin-top: 3px; }
  .atelier-market .hero-panel .panel-head { padding: 14px; font-size: 8px; }
  .atelier-market .hero-rows-track .row-item { padding-left: 12px; padding-right: 12px; }
  .atelier-market .hero-rows-track .row-item .ri-art { width: 47px; }
  .atelier-market .hero-rows-track .row-item .ri-name { font-size: 10px; }
  .atelier-market .hero-rows-track .row-item .ri-price { font-size: 11px; }
  .atelier-market .hero-rows-track .row-item .ri-meta { font-size: 8px; }
  .atelier-market .hero-rows-track .row-item .ri-price .discount { font-size: 8px; }
  .cat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .cat-grid .cat-card, .cat-grid .cat-card:nth-child(n+4) { grid-column: span 1; }
  .cat-grid .cat-card { min-height: 166px; }
  .cat-grid .cat-card:nth-child(3) { min-height: 166px; padding-right: 15px; }
  .cat-grid .cat-card:nth-child(4) { min-height: 166px; padding-right: 15px; }
  .cat-grid .cat-card:nth-child(4) .atelier-cat-art { position: static; width: auto; height: 95px; opacity: 1; margin: -5px -5px 8px; }
  .cat-grid .cat-card:nth-child(4) .atelier-cat-art img { width: 100%; height: 100px; }
  .cat-grid .cat-card:nth-child(4) .atelier-cat-num { position: absolute; }
  .cat-grid .cat-card:last-child { grid-column: 1 / -1; min-height: 80px; }
  #categories .section-head h2 { font-size: 26px; }
  .atelier-discovery-panel { grid-template-columns: minmax(0,1fr); gap: 27px; padding: 26px 22px; border-radius: 14px; }
  .atelier-discovery h2 { font-size: 36px; margin-bottom: 13px; }
  .atelier-discovery .eyebrow { font-size: 8px; }
  .atelier-desktop-break { display: none; }
  .atelier-find-options button { min-height: 40px; }
  .atelier-finder select, .atelier-finder .btn { min-height: 46px; }
  .steps { gap: 10px; }
  .step { padding: 24px; }
  .catalog-title { font-size: 25px; }
  .cards { gap: 9px; }
  .cards .item-art { height: 133px; }
  .cards .art-lg .item-icon-img { max-height: 107px; }
  .cards .item-body { padding: 11px; }
  .cards .item-title { font-size: 11.5px; min-height: 33px; }
  .cards .price-row .price { font-size: 18px; }
  .cards .item-actions .btn { font-size: 10px; }
}
@media(max-width:430px) {
  .site-header .header-right { gap: 4px; }
  .site-header .logo { font-size: 17px; gap: 6px; }
  .site-header .logo::before { width: 23px; height: 23px; }
  .site-header .lang-btn { padding: 3px 4px; font-size: 10px; }
  .site-header .currency-btn { padding: 6px; gap: 4px; font-size: 10px; }
  .site-header .auth-slot .btn-steam { padding: 8px; font-size: 11px; }
  .site-header .nav-toggle { width: 32px; height: 34px; padding: 7px; flex: none; }
}
@media(max-width:390px) {
  .logo { font-size: 17px; gap: 6px; }
  .logo::before { width: 23px; height: 23px; }
  .atelier-hero .hero-grid { padding-left: 16px; padding-right: 16px; }
  .atelier-actions .btn { padding: 11px 14px; }
  .atelier-stage { height: 225px; }
  .atelier-finish-tabs { padding: 10px 7px; }
  .atelier-finish-tabs button { font-size: 9px; }
  .atelier-market .hero-rows-track .row-item .ri-art { width: 37px; }
}
@media(prefers-reduced-motion:reduce) {
  .atelier-stage-image, .atelier-round-link, .cat-grid .cat-card, .atelier-cat-art img { transition: none; }
  .atelier-showroom:hover .atelier-stage-image { transform: rotate(-12deg); }
  .cat-grid .cat-card:hover, .cards .item-card:hover { transform: none !important; }
  .cards .item-card:hover .item-icon-img { transform: none; }
}

/* Refinement: stable hit areas, generous text insets, useful live products. */
.atelier-hero .hero-panel { min-width: 0; border-color: var(--atelier-edge); box-shadow: none; }
.atelier-hero .hero-panel::before { content: ''; position: absolute; width: 36px; height: 3px; top: 0; left: 25px; background: var(--accent); }
body:has(.atelier-hero) .stats { gap: 12px; overflow: visible; }
body:has(.atelier-hero) .stats .stat,
body:has(.atelier-hero) .stats .stat:first-child,
body:has(.atelier-hero) .stats .stat:last-child { padding: 21px 23px; border: 1px solid var(--atelier-edge); border-radius: 12px; background: rgba(16,19,28,.6); transform: none; }
body:has(.atelier-hero) .stats .stat:hover { background: rgba(127,178,255,.055); border-color: rgba(127,178,255,.28); }
body:has(.atelier-hero) .stats .stat::before { display: none; }
body:has(.atelier-hero) .stats .stat .stat-go { padding-top: 10px; gap: 8px; }
.faq-item { overflow: hidden; margin-bottom: 9px; border: 1px solid var(--atelier-edge); }
.faq-item > summary, .faq-page .faq-item > summary { padding: 20px 24px; }
.faq-item .answer, .faq-page .faq-item .answer { padding: 0 24px 22px; max-width: 82ch; }
.faq-item summary::after { margin-right: 2px; }
.cart-art { position: relative; }
.cart-art > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-row { min-width: 0; }
.sell-main > .sell-bar { position: sticky; top: calc(var(--header-h) + 8px); bottom: auto; margin: 0 0 14px; z-index: 8; padding: 12px 16px; box-shadow: 0 8px 20px -15px #000; }
.sell-main > .sell-bar .sell-all { min-height: 34px; padding: 6px 11px; border: 1px solid rgba(127,178,255,.24); border-radius: 8px; background: var(--accent-soft); color: var(--ice); font-size: 12px; }
.of-availability { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font); font-size: 10px; line-height: 1.3; font-weight: 500; white-space: nowrap; color: var(--ok); }
.of-availability .icon { width: 12px; height: 12px; stroke-width: 1.6; }
.of-availability.is-waiting { color: var(--ice-2); }
.of-price-delivery { display: block; margin-top: 7px; }
.offers-table .of-buy { min-width: 120px; justify-content: center; }
.offers-table .of-action { vertical-align: middle; }
.atelier-live-shop .section-head { align-items: flex-end; gap: 20px; }
.atelier-live-shop .section-head h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.atelier-live-shop .section-head p { font-size: 12px; margin: 10px 0 0; color: var(--muted); }
.atelier-live-shop .eyebrow { font-size: 9px; margin-bottom: 12px; }
.atelier-shop-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 20px; }
.atelier-shop-tabs button { padding: 10px 15px; font: 500 12px var(--font); color: var(--muted); background: rgba(191,216,255,.025); border: 1px solid var(--atelier-edge); border-radius: 9px; cursor: pointer; }
.atelier-shop-tabs button:hover { border-color: rgba(127,178,255,.3); color: var(--ice); }
.atelier-shop-tabs [aria-pressed='true'] { color: var(--ice); background: var(--accent-soft); border-color: rgba(127,178,255,.38); }
.atelier-shop-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; min-height: 320px; }
.atelier-shop-message { grid-column: 1 / -1; display: grid; place-items: center; min-height: 260px; font-size: 13px; text-align: center; border: 1px solid var(--atelier-edge); border-radius: 14px; padding: 30px; color: var(--muted); }
.atelier-product { border: 1px solid var(--atelier-edge); border-radius: 14px; background: linear-gradient(150deg,#151924,#10131c); overflow: hidden; transition: border-color .18s,box-shadow .18s; min-width: 0; }
.atelier-product:hover { border-color: rgba(127,178,255,.4); box-shadow: 0 14px 26px -20px #000; }
.atelier-product-art { position: relative; display: grid; place-items: center; height: 174px; background: radial-gradient(ellipse at 50% 90%,color-mix(in srgb,var(--rarity) 11%,transparent),transparent 70%); border-bottom: 1px solid rgba(191,216,255,.04); }
.atelier-product-art > img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 12px 16px; object-fit: contain; filter: drop-shadow(0 10px 14px #0004); transition: transform .25s; }
.atelier-product-art img[hidden], .atelier-product-fallback[hidden] { display: none; }
.atelier-product:hover .atelier-product-art > img { transform: translateY(-4px) rotate(-3deg); }
.atelier-product-fallback .item-icon { width: 115px; height: 80px; }
.atelier-product-discount { position: absolute; top: 12px; right: 12px; border-radius: 6px; padding: 4px 7px; color: var(--ice-2); background: rgba(91,157,255,.13); border: 1px solid rgba(127,178,255,.22); font-size: 10px; }
.atelier-product-info { padding: 17px; }
.atelier-product-weapon { display: block; font-size: 10px; color: var(--muted); min-height: 16px; }
.atelier-product-name { display: block; font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -.025em; color: var(--ice); margin: 4px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atelier-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 10px; color: var(--muted); min-height: 17px; }
.atelier-product-prices { display: flex; gap: 9px; flex-wrap: wrap; align-items: baseline; margin: 15px 0; }
.atelier-product-prices strong { font-size: 21px; letter-spacing: -.04em; font-weight: 650; }
.atelier-product-prices s { font-size: 10px; color: var(--muted); }
.atelier-product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; border-top: 1px solid var(--atelier-edge); padding-top: 13px; }
.atelier-compare-pick { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 5px 0 5px 5px; background: transparent; color: var(--muted); font: 500 10px var(--font); cursor: pointer; }
.atelier-compare-pick .icon { width: 12px; height: 12px; }
.atelier-compare-pick:hover, .atelier-compare-pick[aria-pressed='true'] { color: var(--blue); }
.atelier-shop-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; font-size: 11px; color: var(--muted); }
.atelier-shop-footer > span { display: inline-flex; align-items: center; gap: 7px; }
.atelier-shop-footer .atelier-text-link { margin: 0; white-space: nowrap; }
.atelier-compare-tray { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 45; display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: rgba(21,25,36,.96); border: 1px solid rgba(127,178,255,.3); box-shadow: 0 12px 40px #0006; border-radius: 14px; max-width: calc(100% - 32px); font-size: 12px; backdrop-filter: blur(16px); }
.atelier-compare-tray[hidden] { display: none; }
.atelier-compare-tray > span { white-space: nowrap; }
.atelier-compare-thumbs { display: flex; }
.atelier-compare-thumbs img { object-fit: contain; }
.atelier-compare-dialog { width: min(960px,calc(100% - 32px)); max-height: 90vh; padding: 28px; background: var(--surface); color: var(--text); border: 1px solid rgba(127,178,255,.27); border-radius: 18px; box-shadow: 0 24px 80px #0008; }
.atelier-compare-dialog::backdrop { background: rgba(3,5,10,.8); backdrop-filter: blur(6px); }
.atelier-compare-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.atelier-compare-head .eyebrow { font-size: 9px; margin-bottom: 6px; }
.atelier-compare-head h2 { font-size: 26px; letter-spacing: -.04em; margin: 0; }
.atelier-compare-head button { font-size: 22px; min-width: 36px; }
.atelier-compare-content { overflow-x: auto; }
.atelier-compare-columns { display: grid; grid-template-columns: repeat(var(--compare-cols),minmax(190px,1fr)); gap: 14px; }
.atelier-compare-column { position: relative; background: var(--bg); border: 1px solid var(--atelier-edge); border-radius: 12px; padding: 18px; }
.atelier-compare-remove { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: rgba(191,216,255,.04); color: var(--muted); font-size: 19px; cursor: pointer; z-index: 1; }
.atelier-compare-art { position: relative; height: 130px; overflow: hidden; }
.atelier-compare-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.atelier-compare-column h3 { font-size: 13px; line-height: 1.5; min-height: 58px; margin: 10px 0; }
.atelier-compare-column dl { margin: 0 0 20px; }
.atelier-compare-column dl > div { min-height: 62px; border-top: 1px solid var(--atelier-edge); padding: 9px 0; }
.atelier-compare-column dt { font-size: 10px; color: var(--muted); }
.atelier-compare-column dd { margin: 4px 0 0; font-size: 13px; }
.atelier-compare-column dl > div:first-child dd { font-size: 18px; font-weight: 650; }
.atelier-compare-column > a { display: flex; font-size: 11px; justify-content: space-between; }
.atelier-compare-note { font-size: 11px; color: var(--muted); margin: 18px 0 0; }
@media(max-width:1050px) { .atelier-product-info { padding: 13px; } .atelier-product-prices strong { font-size: 18px; } .atelier-product-bottom { flex-wrap: wrap; } }
@media(max-width:850px) { .atelier-shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .atelier-live-shop .section-head { align-items: flex-start; } }
@media(max-width:680px) {
  body:has(.atelier-hero) .stats { gap: 9px; }
  body:has(.atelier-hero) .stats .stat, body:has(.atelier-hero) .stats .stat:first-child, body:has(.atelier-hero) .stats .stat:last-child { padding: 17px 14px; }
  .faq-item > summary,.faq-page .faq-item > summary { padding: 18px; font-size: 13px; }
  .faq-item .answer,.faq-page .faq-item .answer { padding: 0 18px 20px; }
  .atelier-hero .hero-panel .panel-head { font-size: 9px; padding: 15px; }
  .atelier-hero .hero-panel .ri-name { font-size: 11px; }
  .atelier-hero .hero-panel .ri-price { font-size: 12px; }
  .atelier-live-shop .section-head { flex-direction: column; gap: 0; }
  .atelier-live-shop .section-head h2 { font-size: 26px; }
  .atelier-shop-tabs { gap: 6px; margin-top: 20px; }
  .atelier-shop-tabs button { padding: 10px 11px; font-size: 11px; }
  .atelier-shop-grid { gap: 9px; }
  .atelier-product-art { height: 136px; }
  .atelier-product-info { padding: 12px; }
  .atelier-product-name { font-size: 13px; }
  .atelier-product-meta { font-size: 9px; flex-wrap: wrap; min-height: 28px; }
  .atelier-product-prices { gap: 5px; margin: 11px 0; }
  .atelier-product-prices strong { font-size: 18px; }
  .atelier-product-bottom { gap: 6px; padding-top: 8px; }
  .atelier-shop-footer { flex-direction: column; align-items: flex-start; }
  .atelier-compare-tray { gap: 8px; padding: 10px; bottom: 12px; flex-wrap: wrap; justify-content: center; }
  .atelier-compare-thumbs { display: none; }
  .atelier-compare-tray > span { font-size: 10px; white-space: normal; max-width: 100%; text-align: center; }
  .atelier-compare-tray .btn { font-size: 10px; padding: 8px 9px; }
  .atelier-compare-dialog { padding: 20px; }
  .atelier-compare-head h2 { font-size: 22px; }
  .atelier-compare-column { padding: 13px; }
  .sell-main > .sell-bar { gap: 9px; padding: 9px; flex-wrap: wrap; }
  .sell-main > .sell-bar .sell-count { font-size: 11px; }
  .sell-main > .sell-bar .sell-refresh { display: none; }
  .cart-art > img { padding: 5px; }
}
@media(prefers-reduced-motion:reduce) { .atelier-product-art > img { transition: none; } .atelier-product:hover .atelier-product-art > img { transform: none; } }
