@font-face {
  font-family: Peyda;
  src: url("fonts/peyda-vf.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #faf6ee;
  --paper: #fffdf8;
  --ink: #281936;
  --muted: #66566f;
  --purple: #684780;
  --purple-deep: #3a264b;
  --lilac: #eee4f4;
  --line: #e4d8e9;
  --orange: #b9340a;
  --orange-dark: #992b08;
  --shadow: 0 12px 32px #4527510b;
  --width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(ellipse 70rem 39rem at 93% -18rem, #e8d8ef 14%, transparent 100%),
    radial-gradient(ellipse 72rem 34rem at 12% 20rem, #eadbf2 0%, transparent 73%), radial-gradient(ellipse 42rem 30rem at 90% 25rem, #fae7db 0%, transparent 93%),
    var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.75 Peyda, Tahoma, sans-serif;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #8551a5; outline-offset: 4px; }
[role="search"], [id] { scroll-margin-block-start: 24px; }
.wrap { width: min(var(--width), calc(100% - 96px)); margin-inline: auto; }
.icon { display: block; flex: 0 0 auto; width: 22px; height: 22px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  block-size: 1px;
  inline-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 2; inset: 10px 10px auto auto; padding: 8px 16px; background: var(--paper); }

.site-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-block-start: 24px;
  min-height: 72px;
  padding: 10px 19px;
  border: 1px solid #e4d7e8;
  border-radius: 24px;
  background: #fffdf8ed;
  box-shadow: var(--shadow);
}
.brand {
  display: inline-block;
  width: min(100%, 156px);
  padding: 4px 8px;
  border-radius: 12px;
  background: #161c24;
}
.brand img { width: 100%; height: auto; }
.guide-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff9fa;
  background: linear-gradient(145deg, #79538d, #513464);
  border-radius: 14px;
}
.desktop-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 35px); }
.desktop-nav a, .site-footer nav a { color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.desktop-nav a:hover, .site-footer nav a:hover, .desktop-nav a[aria-current] { color: var(--purple-deep); }
.desktop-nav a[aria-current] { position: relative; font-weight: 800; }
.desktop-nav a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 -7px;
  height: 2px;
  border-radius: 999px;
  background: #a571b8;
}
.header-tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.search-trigger, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--purple-deep);
  background: #f5edf7;
}
.search-trigger { padding: 8px 14px; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.search-trigger:hover, .icon-button:hover { background: #ecdef2; }
.search-trigger .icon { width: 18px; height: 18px; }
.icon-button { width: 44px; padding: 0; }
.mobile-nav { display: none; }
.mobile-nav summary::-webkit-details-marker, .guide summary::-webkit-details-marker { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(27px, 4.5vw, 70px);
  padding-block: 52px 60px;
}
.hero-copy { padding-inline-start: clamp(0px, 2.1vw, 30px); }
.hero-kicker { display: flex; align-items: center; gap: 9px; color: var(--purple); font-weight: 750; font-size: .92rem; }
.hero-kicker .icon { width: 21px; height: 21px; }
.hero h1 { font-size: clamp(3.15rem, 5.65vw, 5.1rem); font-weight: 900; line-height: 1.16; margin-block: 15px 20px; }
.hero-title-accent { display: block; color: var(--purple); }
.hero-dot { color: var(--orange); }
.hero-intro { max-width: 32ch; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 27px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  font-size: .95rem;
}
.button .icon { width: 18px; height: 18px; }
.primary { color: white; background: var(--orange); box-shadow: 0 6px 14px #b9340a24; }
.primary:hover { background: var(--orange-dark); }
.secondary { background: #fffdf896; border-color: #d8c7df; color: var(--purple-deep); }
.secondary:hover { background: var(--lilac); }
.hero-showcase {
  --stage-base: #27143f;
  --stage-midtone: #593285;
  --stage-ink: #513174;
  --stage-light: #e2aefc;
  --stage-hot: #ffbd8d;
  min-width: 0;
}
.hero-showcase[data-platform="steam"] {
  --stage-base: #0f2145;
  --stage-midtone: #214f83;
  --stage-ink: #27446f;
  --stage-light: #9deaff;
  --stage-hot: #c4b0ff;
}
.hero-showcase[data-platform="xbox"] {
  --stage-base: #0c302e;
  --stage-midtone: #1b664e;
  --stage-ink: #1d5d46;
  --stage-light: #a9ffba;
  --stage-hot: #ffd582;
}
.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.48;
  border: 1px solid #b5a0c4;
  border-radius: clamp(46px, 7vw, 98px) 24px 24px 24px;
  background: var(--stage-base);
  box-shadow: 0 21px 50px #46204a32, 0 0 0 5px #fffdf8d9;
  transition: background-color .42s ease;
}
.hero-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% -6%, var(--stage-hot), transparent 49%),
    radial-gradient(ellipse at 38% 52%, var(--stage-midtone), transparent 72%),
    linear-gradient(#ffffff15 1px, transparent 1px),
    linear-gradient(90deg, #ffffff15 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  opacity: .75;
}
.hero-floor {
  position: absolute;
  inset: 67% 15% 3%;
  background: radial-gradient(ellipse at 50% 25%, var(--stage-light), transparent 64%);
  filter: blur(20px);
  opacity: .43;
}
.hero-layer {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0);
  transition: transform .22s ease-out;
}
.hero-card-stack, .hero-object-slot { position: absolute; inset: 0; }
.hero-object-slot { opacity: 0; transition: opacity .24s ease-in; pointer-events: none; }
.hero-object-slot[data-active] { opacity: 1; z-index: 1; }
.hero-object {
  position: absolute;
  width: 81%;
  height: 83%;
  inset: 5% 9% auto auto;
  object-fit: contain;
  filter: drop-shadow(0 23px 18px #0906189e);
}
.hero-ripple {
  position: absolute;
  inset: 15% 8% 19%;
  opacity: 0;
  border: 2px solid var(--stage-light);
  border-radius: 50%;
  box-shadow: 0 0 28px var(--stage-light), inset 0 0 18px var(--stage-light);
}
.hero-orbit {
  --orbit-angle: -20deg;
  position: absolute;
  inset: 15% 5% 18%;
  border: 1px solid #ffffff46;
  border-inline-end-color: var(--stage-hot);
  border-block-end-color: var(--stage-light);
  border-radius: 50%;
  transform: rotate(var(--orbit-angle));
}
.orbit-front {
  --orbit-angle: 21deg;
  inset: 22% 3% 25%;
  border-inline-end-color: #ffffff28;
  border-block-end-color: #ffffff28;
  border-inline-start-color: var(--stage-light);
}
.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 15% auto auto 13%;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fffafb;
  box-shadow: 0 0 12px 3px var(--stage-light);
}
.orbit-front::before { inset: auto 16% 14% auto; width: 5px; }
.hero-star { position: absolute; pointer-events: none; color: #fff8ed; filter: drop-shadow(0 0 12px var(--stage-hot)); }
.hero-star .icon { width: 100%; height: auto; fill: currentColor; stroke-width: 0; }
.hero-star-large { inset: 19% auto auto 11%; width: clamp(22px, 3.6vw, 43px); }
.hero-star-small { inset: auto 14% 23% auto; width: clamp(12px, 1.8vw, 24px); }
.hero-star-trailing { inset: 17% 14% auto auto; width: clamp(12px, 1.55vw, 21px); }
.hero-is-ready .hero-card-stack { animation: hero-card-float 4s ease-in-out infinite; }
.hero-is-ready .hero-orbit { animation: hero-orbit-drift 6s ease-in-out infinite alternate; }
.hero-is-ready .orbit-front { animation-delay: -3s; }
.hero-is-ready .hero-star { animation: hero-star-glow 3.5s ease-in-out infinite; }
.hero-is-ready .hero-star-small { animation-delay: -1.4s; }
.hero-is-ready .hero-star-trailing { animation-delay: -2.45s; }
.hero-is-ready:not(.hero-is-paused) .hero-object-slot[data-active] .hero-object { animation: hero-card-drop .72s cubic-bezier(.2, .85, .32, 1) both; }
.hero-is-ready:not(.hero-is-paused) .hero-object-slot[data-active] .hero-ripple { animation: hero-ripple .85s ease-out both; }
:is(.hero-is-paused, .hero-is-offscreen) :is(.hero-card-stack, .hero-star, .hero-orbit, .hero-object, .hero-ripple) { animation-play-state: paused; }
.hero-is-paused .hero-layer { transform: none; }
.hero-is-paused :is(.hero-layer, .hero-stage, .hero-object-slot) { transition: none; }

@keyframes hero-card-float {
  0%, 100% { transform: translateY(4px) rotate(-1.8deg); }
  50% { transform: translateY(-16px) rotate(1.7deg); }
}
@keyframes hero-orbit-drift {
  to { transform: rotate(calc(var(--orbit-angle) + 16deg)) scale(.93); }
}
@keyframes hero-star-glow {
  0%, 100% { transform: translateY(7px) scale(.68) rotate(-8deg); opacity: .55; }
  49% { transform: translateY(-9px) scale(1.18) rotate(11deg); opacity: 1; }
}
@keyframes hero-card-drop {
  from { transform: translate(14%, 12%) rotate(-12deg) scale(.81); opacity: .55; }
  66% { transform: translate(-2%, -2%) rotate(2deg) scale(1.035); opacity: 1; }
  to { transform: translate(0) rotate(0) scale(1); }
}
@keyframes hero-ripple {
  0% { transform: scale(.57) rotate(-15deg); opacity: 0; }
  25% { opacity: .62; }
  100% { transform: scale(1.13) rotate(-15deg); opacity: 0; }
}


.hero-featured { position: absolute; inset: auto auto 5% 5%; max-width: 90%; }
.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 52px;
  padding: 6px 8px 6px 13px;
  border: 1px solid #fff;
  border-radius: 15px;
  background: #fffdf8f2;
  box-shadow: 0 7px 23px #39204728;
  transition: background-color .18s ease;
}
.hero-feature:hover { background: #fff; }
.hero-feature:focus-visible { outline-offset: 2px; }
.hero-feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--stage-ink);
  color: #fff;
}
.hero-feature-icon .icon { width: 23px; height: 23px; }
.hero-feature strong, .hero-feature small { display: block; }
.hero-feature strong { color: var(--ink); font-size: .86rem; line-height: 1.45; font-weight: 850; }
.hero-feature small { color: var(--muted); font-size: .75rem; line-height: 1.35; }
.hero-stage-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 15px 2px 0; }
.hero-stage-controls[hidden], .hero-feature[hidden] { display: none; }
.hero-platforms {
  display: flex;
  gap: 3px;
  padding: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf3;
  box-shadow: 0 3px 9px #4223580b;
}
.hero-platform, .hero-motion {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  padding: 4px clamp(8px, 1.2vw, 15px);
  color: var(--purple-deep);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 750;
  line-height: 1;
  transition: background-color .2s ease, color .2s ease;
}
.hero-platform .icon { width: 18px; height: 18px; }
.hero-platform:hover, .hero-motion:hover { background: var(--lilac); }
.hero-platform[aria-pressed="true"] { background: var(--stage-ink); color: #fff; box-shadow: 0 3px 7px #2b18303e; }
.hero-motion { min-height: 44px; width: 44px; flex: 0 0 auto; padding: 0; background: #fffaf3; border-color: var(--line); }
.hero-motion .icon { width: 20px; height: 20px; }
.hero-motion .hero-play-icon, .hero-motion[aria-pressed="true"] .hero-pause-icon { display: none; }
.hero-motion[aria-pressed="true"] .hero-play-icon { display: block; }


.section { margin-block-end: 63px; }
.section-head, .catalog-bar { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-block-end: 20px; }
.section h2 { font-size: clamp(1.45rem, 2.4vw, 2.04rem); font-weight: 850; line-height: 1.35; }
.section-head p, .catalog-bar p { margin-block-start: 6px; color: var(--muted); font-size: .98rem; }
.category-grid, .product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.category {
  --category-bg: #eee2f6;
  --category-fg: #66417f;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 86px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  box-shadow: 0 4px 15px #43255307;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.category-pc { --category-bg: #e7e7fa; --category-fg: #504583; }
.category-store { --category-bg: #f9e8db; --category-fg: #984329; }
.category-ingame { --category-bg: #f4e4ee; --category-fg: #86446c; }
.category:hover, .category[aria-current] { border-color: #ae8ec1; box-shadow: var(--shadow); }
.category:hover { transform: translateY(-3px); }
.category-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--category-bg); color: var(--category-fg); }
.category strong, .category small { display: block; }
.category strong { font-size: 1rem; font-weight: 800; }
.category small { color: var(--muted); font: 500 .75rem/1.4 Peyda, sans-serif; margin-block-start: 2px; }

.catalog { padding-block-start: 30px; border-block-start: 1px solid var(--line); }
.catalog-bar { margin-block-end: 25px; }
.search-form {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(100%, 370px);
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.search-form:focus-within { border-color: #9c6caf; box-shadow: 0 0 0 3px #9c6caf26; }
.search-form .icon { width: 19px; color: var(--purple); }
.search-form input { flex: 1; min-width: 0; min-height: 38px; padding: 0; border: 0; background: transparent; color: var(--ink); outline: none; font-size: .93rem; }
.search-form input::placeholder { color: #73637a; opacity: 1; }
.search-form button { padding: 5px 12px; min-height: 37px; border: 0; border-radius: 9px; color: var(--purple-deep); background: var(--lilac); font-size: .85rem; font-weight: 800; }
.search-form button:hover { background: #e5d3ee; }
.shelf + .shelf { margin-block-start: 32px; }
.shelf-head { display: flex; align-items: center; gap: 8px; margin-block-end: 14px; }
.shelf-head .icon { width: 19px; height: 19px; color: var(--orange); }
.shelf-head h3 { font-size: 1.13rem; font-weight: 850; }
.result-head { align-items: center; }
.result-head h2 { overflow-wrap: anywhere; font-size: 1.25rem; }
.text-link { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.empty-state { display: flex; align-items: center; gap: 10px; padding: 22px; background: var(--paper); border: 1px dashed #cdb8db; border-radius: 15px; color: var(--muted); }

.product { min-width: 0; }
.product-link {
  display: block;
  height: 100%;
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 5px 18px #3a234609;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.product-link:hover { transform: translateY(-3px); border-color: #c4a9d2; box-shadow: 0 12px 21px #3a234615; }
.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  min-height: 132px;
  aspect-ratio: 1.65;
  border-radius: 14px;
  color: #fff;
  background: radial-gradient(ellipse at 71% 81%, var(--surface-glow), transparent 83%), var(--surface);
}
.tone-ps { --surface: #23143d; --surface-glow: #674381; }
.tone-steam { --surface: #132644; --surface-glow: #285e82; }
.tone-xbox { --surface: #0d322b; --surface-glow: #246147; }
.tone-apple { --surface: #3b2854; --surface-glow: #85659b; }
.tone-roblox { --surface: #1d2353; --surface-glow: #485cb0; }
.tone-google { --surface: #103d46; --surface-glow: #368386; }
.tone-nintendo { --surface: #541b35; --surface-glow: #a03956; }
.tone-riot { --surface: #472335; --surface-glow: #8c4754; }
.product-image {
  position: absolute;
  inset: 12% 7% 1%;
  width: 86%;
  height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px #09061182);
  transition: transform .32s cubic-bezier(.18, .73, .3, 1);
}
.product-link:hover .product-image { transform: translateY(-3px) scale(1.05); }
.product-platform {
  position: absolute;
  inset: 7px auto auto 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid #fff4;
  border-radius: 7px;
  background: #1e142ac7;
  font-size: .69rem;
  line-height: 1.1;
  font-weight: 750;
}
.product-platform .icon { width: 13px; height: 13px; }

.product-body { padding: 11px 6px 5px; }
.product-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .82rem; }
.product-meta bdi { padding-inline: 6px; border-radius: 5px; color: var(--purple-deep); background: #f0e8f5; line-height: 1.5; }
.product-name { font-size: clamp(.94rem, 1.25vw, 1.08rem); font-weight: 850; margin-block: 5px 10px; }
.product-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 7px; padding-block-start: 8px; border-block-start: 1px solid #eee5ef; }
.price { font-size: 1rem; font-weight: 850; color: var(--ink); }
.price small { font-size: .77rem; color: var(--muted); font-weight: 600; }
.product-action { font-size: .8rem; font-weight: 750; color: var(--purple); }

.product-dialog {
  width: min(460px, calc(100% - 30px));
  max-height: calc(100% - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 20px 70px #24153052;
}
.product-dialog::backdrop { background: #28193690; }
.dialog-inner { position: relative; padding: 13px 13px 20px; }
.dialog-close { position: absolute; z-index: 1; inset: 22px auto auto 22px; }
.dialog-close .icon-button { background: var(--paper); }
.dialog-inner .product-visual { max-height: 202px; aspect-ratio: auto; }
.dialog-inner .product-image { inset-inline: 11%; width: 78%; }
.dialog-inner h2, .dialog-inner > p, .dialog-inner .specs { margin-inline: 9px; }
.dialog-inner h2 { margin-block-start: 16px; }
.dialog-inner > p, .selected-product p { margin-block-start: 6px; color: var(--muted); }
.specs { margin-block: 14px 0; }
.specs div { display: flex; justify-content: space-between; gap: 10px; padding-block: 7px; border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 750; }
.selected-product { display: grid; grid-template-columns: minmax(0, 230px) 1fr; align-items: center; gap: 21px; padding: 13px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); margin-block-end: 26px; }

.guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  padding: clamp(17px, 3vw, 36px);
  border: 1px solid #e2d2eb;
  border-radius: 27px;
  background: linear-gradient(125deg, #f7eeeb, #eee4f6 80%);
}
.guide-mark { margin-block-end: 13px; }
.guide-intro p { margin-block-start: 7px; color: var(--muted); }
.guide details { border-block-end: 1px solid #dac9e4; }
.guide details:first-child { border-block-start: 1px solid #dac9e4; }
.guide summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 11px; color: var(--purple-deep); font-weight: 750; }
.guide summary .icon { width: 17px; height: 17px; }
.guide details[open] summary .icon { transform: rotate(180deg); }
.guide details p { color: var(--muted); padding-block-end: 11px; }
.moments { margin-block-start: 82px; }
.moments-frame {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(155deg, #fffcfa 32%, #f1e6f6);
  box-shadow: var(--shadow);
}
.moments-content {
  align-self: center;
  min-width: 0;
  padding: clamp(23px, 4.3vw, 63px);
}
.moments-controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-block-end: 21px;
  padding: 4px;
  border: 1px solid #e6d7ed;
  border-radius: 999px;
  background: #efe5f4;
}
.moments-controls[hidden], .moment-detail[hidden], .moments-media img[hidden] { display: none; }
.moments-controls button {
  min-height: 40px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--purple-deep);
  background: transparent;
  font-size: .83rem;
  font-weight: 750;
}
.moments-controls button:hover { background: #e5d5ee; }
.moments-controls button[aria-pressed="true"] { color: #fff; background: var(--purple); }
.moment-detail h3 { font-size: clamp(1.55rem, 2.95vw, 2.55rem); font-weight: 900; line-height: 1.28; }
.moment-detail p { max-width: 33ch; margin-block: 12px 22px; color: var(--muted); }
.moment-detail .button { min-height: 45px; }
.moments-media { min-height: clamp(325px, 36vw, 470px); position: relative; background: #dccde4; }
.moments-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.moments-frame.is-enhanced .moments-media img:not([hidden]) { animation: moment-image-in .48s ease-out both; }
@keyframes moment-image-in { from { opacity: .5; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }

.pulse {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(355px, 34vw, 490px);
  padding-block: clamp(56px, 8vw, 100px);
  background:
    radial-gradient(ellipse at 85% 86%, #5a356b 0%, transparent 50%),
    radial-gradient(ellipse at 2% 0%, #402665 0%, transparent 55%),
    #251538;
  color: #fffaf6;
  text-align: center;
}
.pulse-art { position: absolute; z-index: -1; width: 100%; height: 100%; inset: 0; }
.pulse-lines { stroke: url(#pulse-ink); stroke-width: 1.2; opacity: .66; fill: none; }
.pulse-signal { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .16 1; stroke-dashoffset: .17; opacity: 0; }
.signal-first { stroke: #e9c3ff; }
.signal-second { stroke: #ffceaa; }
.pulse.is-in-view .pulse-lines { animation: pulse-drift 4.3s ease-out both; }
.pulse.is-in-view .signal-first { animation: pulse-travel 2.9s ease-in-out .2s both; }
.pulse.is-in-view .signal-second { animation: pulse-travel 2.75s ease-in-out .88s both; }
@keyframes pulse-drift {
  from { transform: translateY(24px) scale(1.035); opacity: .38; }
  48% { opacity: .94; }
  to { opacity: .66; transform: translateY(0) scale(1); }
}
@keyframes pulse-travel {
  0% { stroke-dashoffset: .17; opacity: 0; }
  23%, 78% { opacity: .93; }
  100% { stroke-dashoffset: -.98; opacity: 0; }
}
.pulse-copy { position: relative; }
.pulse h2 { font-size: clamp(2.18rem, 5.4vw, 5rem); line-height: 1.24; letter-spacing: -.02em; }
.pulse h2 span { color: #ebccff; }
.pulse p { max-width: 38ch; margin: 17px auto 23px; color: #f4e7fa; }
.pulse-cta { color: #3d2457; background: #fff5e9; border-color: #fff9; }
.pulse-cta:hover { background: #f0d5f2; }

.site-footer {
  border-block-start: 1px solid #e8d8ec;
  background:
    radial-gradient(ellipse at 10% 20%, #f6e2d9a8 0%, transparent 49%),
    linear-gradient(150deg, #f6eef8, #eee3f3);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .72fr) minmax(0, .85fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3.6vw, 52px);
  padding-block: clamp(38px, 5vw, 72px);
}
.footer-brand p { max-width: 24ch; margin-block-start: 14px; color: var(--muted); }
.footer-main nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-main h2 { font-size: 1rem; font-weight: 850; }
.footer-main nav a { line-height: 1.55; white-space: normal; }
.footer-search {
  align-self: start;
  padding: 17px;
  border: 1px solid #e4d3e9;
  border-radius: 18px;
  background: #fffaf4b8;
}
.footer-search .button { min-height: 44px; margin-block-start: 12px; font-size: .82rem; white-space: nowrap; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-block: 15px;
  border-block-start: 1px solid #decee6;
  color: var(--muted);
  font-size: .85rem;
}
.footer-bottom a { display: inline-flex; color: var(--purple-deep); font-weight: 700; gap: 6px; align-items: center; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .icon { width: 16px; height: 16px; transform: rotate(180deg); }


@media (max-width: 1050px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 34px; }
  .category { grid-template-columns: 42px minmax(0, 1fr); gap: 9px; }
  .category-icon { width: 42px; height: 42px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { grid-template-columns: 1fr auto; min-height: 62px; margin-block-start: 13px; padding: 8px 12px; border-radius: 18px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { list-style: none; }
  .mobile-nav nav { position: absolute; inset: calc(100% + 7px) 0 auto 0; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); }
  .mobile-nav nav a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 650; }
  .mobile-nav nav a:hover, .mobile-nav nav a[aria-current] { background: var(--lilac); }
  .hero { gap: 23px; padding-block: 47px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.7rem, 7vw, 4rem); }
  .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }

  .section { margin-block-end: 45px; }
}
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; gap: 27px; padding-block: 36px 42px; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4rem); margin-block: 10px 12px; }
  .hero-title-accent { display: inline; }
  .hero-intro { max-width: 34ch; }
  .hero-actions { margin-block-start: 19px; }
  .hero-stage { aspect-ratio: 1.34; border-radius: 50px 17px 17px 17px; }
  .section-head, .catalog-bar { margin-block-end: 15px; }
  .catalog-bar { align-items: stretch; flex-direction: column; gap: 12px; }
  .catalog { padding-block-start: 22px; }
  .category { grid-template-columns: 38px minmax(0, 1fr); min-height: 69px; padding: 8px; gap: 7px; border-radius: 14px; }
  .category-icon { width: 38px; height: 38px; border-radius: 11px; }
  .category strong { font-size: .91rem; }
  .product-link { border-radius: 15px; padding: 5px; }
  .product-visual { border-radius: 10px; min-height: 94px; }
  .product-body { padding: 8px 4px 4px; }
  .guide { gap: 17px; grid-template-columns: 1fr; }
  .selected-product { grid-template-columns: 1fr; gap: 12px; }
  .selected-product .product-visual { max-height: 140px; aspect-ratio: auto; }
}
@media (max-width: 405px) {
  .search-trigger { width: 44px; padding: 0; }
  .search-trigger span { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; }
  .result-head { align-items: start; flex-direction: column; gap: 5px; }
}
@media (max-width: 350px) {
  .hero-platform { font-size: .75rem; padding-inline: 6px; gap: 3px; }
  .hero-platform .icon { width: 14px; height: 14px; }
}
@media (max-width: 800px) {
  .moments { margin-block-start: 60px; }
  .moments-content { padding: 24px; }
  .moments-media { min-height: 350px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .moments-frame { grid-template-columns: minmax(0, 1fr); }
  .moments-media { min-height: 0; aspect-ratio: 1.5; }
  .moments-content { padding: 20px; }
  .moments-controls { margin-block-end: 16px; }
  .footer-main { gap: 24px 12px; }
  .footer-brand, .footer-search { grid-column: 1 / -1; }
  .footer-search { max-width: 310px; }
  .footer-bottom { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-motion { display: none; }
  .hero-layer { transform: none; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.shop-header-tool { position: relative; flex-shrink: 0; }
.shop-header-tool .icon { width: 19px; height: 19px; }
.shop-cart-count {
  position: absolute; inset: auto auto -5px -5px; min-width: 18px; height: 18px; padding: 0 2px;
  border: 1px solid #fff8; border-radius: 999px; background: var(--orange); color: white;
  text-align: center; font-size: .66rem; font-weight: 850; line-height: 16px;
}
@media (max-width: 1010px) {
  .site-header { gap: 12px; }
  .search-trigger { width: 44px; padding: 0; }
  .search-trigger span { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; }
}
@media (max-width: 405px) {
  .header-tools { gap: 5px; }
  .header-tools :is(.icon-button,.search-trigger) { width: 36px; min-height: 37px; border-radius: 10px; }
}
@media (max-width: 350px) {
  .site-header .brand { width: min(100%, 128px); padding-inline: 5px; }
  .header-tools .search-trigger { display: none; }
}
