/* Legba · «Атлас» — редизайн по прототипу D «Металл» (владелец 19.10: «адаптируй D под оформление „Атлас“, сделай для всех страниц» →
   «внедри Атлас по D, переделав жидкий металл на главной в моноцветный»). D — claude/design/prototypes/home3/d_metal.html: гравированные заглавные
   с разрядкой, волосяные линейки, блик металла, прозрачные пилюли, хромовые числа, 3D-монеты. Цвета и смысловые значения «Атласа» — skin-atlas.css
   (этот файл — второй слой режима), кобальт — акцент; металл — графит и серебро. Главная — FR10_welcome/atlas-home.js, движение — FR11_motion/atlas.js. */
:root[data-skin="atlas"] {
  --ad-chrome: linear-gradient(180deg, #2a2d33 0%, #6d737d 38%, #15171a 52%, #8c929c 74%, #3a3e45 100%);
  --ad-cobalt: linear-gradient(180deg, #5d7cf5 0%, #2446d8 45%, #1a35a6 55%, #4a68e8 100%);
  --ad-silver: linear-gradient(180deg, #ffffff 0%, #eef0f3 45%, #dde0e5 55%, #f7f8fa 100%);
  --ad-hair: rgba(21, 23, 26, .14);
}

/* ── гравировка: заглавные с разрядкой — заголовки разделов, шапки панелей, подписи ── */
:root[data-skin="atlas"] :is(.tile h2, .card h2, .win h2, .tile h3) { font: 500 15px/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
:root[data-skin="atlas"] :is(.kick, .wl-h, .answer .k, .wl-pvh, th, .since) { font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; font-size: var(--fs-11); }
:root[data-skin="atlas"] .tn-logo { text-transform: uppercase; letter-spacing: .32em; font-size: var(--fs-16); }
:root[data-skin="atlas"] .ahead h1 { text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-24); }
/* крупные числа — хром по графиту */
:root[data-skin="atlas"] :is(.big, .wl-tile .v) { background: var(--ad-chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── волосяные линейки вместо мягких теней; блик металла по карточке — один раз при появлении (.ad-sheen, atlas.js); при наведении блика нет (владелец 16.11) ── */
:root[data-skin="atlas"] :is(.tile, .card, .win, .wl-pv, .wl-feat, .feed, .pcwrap) { box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px var(--ad-hair); border-color: transparent; position: relative; overflow: hidden; }
:root[data-skin="atlas"] :is(.tile, .card, .wl-feat)::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .75) 48%, rgba(36, 70, 216, .06) 52%, transparent 62%) -160% 0 / 220% 100% no-repeat; transition: background-position 0s; }
:root[data-skin="atlas"] .ad-sheen::after { background-position: 160% 0 !important; transition: background-position 1.2s cubic-bezier(.2, .7, .2, 1) !important; }   /* разовый блик при появлении (atlas.js) */

/* ── кнопки: прозрачные пилюли с графитовым контуром; главная — кобальтовый металл ── */
:root[data-skin="atlas"] :is(.open, .btn:not(.pri), .hm-btn, .ghost, .copy, .wl-btn.sec, .hbtn:not(.lsn-btn)) { background: transparent; color: var(--head); border: 1px solid rgba(21, 23, 26, .45); font-family: var(--font-mono); font-size: var(--fs-12); letter-spacing: .1em; text-transform: uppercase; }
:root[data-skin="atlas"] :is(.open, .btn:not(.pri), .hm-btn, .ghost, .copy, .wl-btn.sec, .hbtn:not(.lsn-btn)):hover { background: var(--head); color: var(--surface); border-color: var(--head); }
:root[data-skin="atlas"] :is(.btn.pri, .wl-btn.pri) { background: var(--ad-cobalt); color: #fff; border: 0; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-size: var(--fs-12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 20px -10px rgba(36, 70, 216, .7); }
:root[data-skin="atlas"] :is(.btn.pri, .wl-btn.pri):hover { filter: brightness(1.1); }
:root[data-skin="atlas"] .seg { background: var(--ad-silver); box-shadow: 0 0 0 1px var(--ad-hair) inset; }

/* ── верхняя панель: серебро ── */
:root[data-skin="atlas"] .tnav { background: var(--ad-silver); border-bottom-color: var(--ad-hair); }

/* ── главная: первый экран — гравированный заголовок слева, хромовый сгусток справа (atlas-home.js), сводка ниже ── */
:root[data-skin="atlas"] .wl-hero { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); padding-top: 0; }
:root[data-skin="atlas"] .wl-hero::before { display: none; }
:root[data-skin="atlas"] .wl-hero > .fade:first-child { position: relative; z-index: 2; min-height: calc(100dvh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; padding: var(--sp-7) 0; max-width: 620px; pointer-events: none; }
:root[data-skin="atlas"] .wl-hero > .fade:first-child > * { pointer-events: auto; }
:root[data-skin="atlas"] .wl h1 { font: 400 clamp(34px, 4.6vw, 64px)/1.12 var(--font-text); letter-spacing: .08em; text-transform: uppercase; max-width: 18ch; }
:root[data-skin="atlas"] .wl h1 em { font-style: normal; background: var(--ad-cobalt); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-skin="atlas"] .wl-hero > .fade:nth-child(2) { position: relative; z-index: 2; }
:root[data-skin="atlas"] .wl-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
:root[data-skin="atlas"] .wl-tile { background: transparent; border-left: 1px solid var(--ad-hair); border-radius: 0; padding: 6px 16px; }
:root[data-skin="atlas"] .wl-tile .v { font-size: clamp(24px, 2.6vw, 36px); font-family: var(--font-text); font-weight: 500; }
/* металл — во всю ширину окна, не колонки страницы: на широком экране колонка обрезала сгусток (владелец 20.10); лишнее по краям срезает html:has(.wl-hero) в welcome.css */
.ad-chrome { position: absolute; z-index: 1; top: 0; left: calc(50% - 50vw); width: 100vw; height: calc(100dvh - var(--nav-h)); pointer-events: none; }
.ad-chrome canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ad-chrome .ad-floor { position: absolute; left: calc(50% + .39 * (100dvh - var(--nav-h)) - 270px); width: 540px; bottom: 14%; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(21, 23, 26, .16), transparent); filter: blur(6px); }   /* под сгустком: его центр — на 0,39 высоты сцены правее середины (X 1,25 при Z 5,4 в atlas-home.js) */
.ad-chrome .ad-meta { position: absolute; right: max(var(--sp-6), calc((100vw - var(--maxw)) / 2 + var(--sp-6))); bottom: 24px; font: var(--fs-11)/1.7 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); text-align: right; }

/* монеты токенов (atlas-home.js) */
.ad-coins { margin: var(--sp-6) 0 var(--sp-5); }
.ad-coins .sh { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--ad-hair, rgba(21, 23, 26, .14)); padding-bottom: 12px; margin-bottom: var(--sp-6); flex-wrap: wrap; }
.ad-coins h2 { margin: 0; font: 400 clamp(20px, 2.4vw, 30px)/1.2 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--head); }
.ad-coins .sh span { font: var(--fs-11) var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ad-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 34px 18px; perspective: 900px; }
.ad-cw { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.ad-coin { position: relative; width: 116px; height: 116px; transform-style: preserve-3d; animation: ad-turn 9s linear infinite; animation-delay: var(--d); }
.ad-cw:hover .ad-coin { animation-play-state: paused; }
@keyframes ad-turn { to { transform: rotateY(360deg); } }
.ad-coin i { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(90deg, #8f96a2, #e3e6eb 50%, #7b828e); }
.ad-coin .fc { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; text-align: center; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: radial-gradient(circle at 32% 28%, #ffffff, #eceef2 22%, #b7bdc7 52%, #e7e9ee 74%, #8e95a1); box-shadow: inset 0 0 0 5px rgba(21, 23, 26, .08), inset 0 0 0 7px rgba(255, 255, 255, .7); color: #15171a; }
.ad-coin .fc b { font: 500 19px/1 var(--font-text); letter-spacing: .08em; }
.ad-coin .fc small { display: block; font: 600 10px var(--font-mono); letter-spacing: .12em; margin-top: 4px; color: #3b3f46; }
.ad-coin .bk { transform: rotateY(180deg) translateZ(6px); background: radial-gradient(circle at 32% 28%, #9fb2ff, #5d7cf5 30%, #2446d8 60%, #1a35a6); color: #fff; }
.ad-coin .bk small { color: #dfe6ff; }
.ad-coin .fr { transform: translateZ(6px); }
.ad-cw .h { font: var(--fs-11)/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.ad-cw .h b { display: block; color: var(--head); font: 500 13px var(--font-text); letter-spacing: .14em; }

/* ── появление: окна выезжают и ловят блик (atlas.js) ── */
:root[data-skin="atlas"] .ad-r { opacity: 0; transform: translateY(18px); }
:root[data-skin="atlas"] .ad-r.ad-on { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }

@media (max-width: 900px) {
  :root[data-skin="atlas"] .wl-hero > .fade:first-child { min-height: 0; padding-top: 46vh; justify-content: flex-end; }
  .ad-chrome { height: 50vh; } .ad-chrome .ad-meta, .ad-chrome .ad-floor { display: none; }
  .ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 10px; } .ad-coin { width: 86px; height: 86px; } .ad-coin .fc b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .ad-coin { animation: none; }
  :root[data-skin="atlas"] .ad-r { opacity: 1; transform: none; }
  :root[data-skin="atlas"] :is(.tile, .card, .wl-feat)::after { display: none; }
}
