@font-face {
  font-family: "AtlasDisplay";
  src: url("/assets/fonts/atlas-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AtlasBody";
  src: url("/assets/fonts/atlas-body.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-main: #fff9ea;
  --bg-panel: #ffffff;
  --bg-mute: #fef4cf;
  --line: #1f2f47;
  --ink: #17263c;
  --ink-soft: #3d4e67;
  --accent: #ff8f4b;
  --accent-2: #45bf87;
  --accent-3: #6e7dff;
  --shadow: 0 18px 45px rgba(31, 47, 71, 0.12);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --interactive-glow: rgba(255, 166, 94, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "AtlasBody", Georgia, serif;
  background:
    radial-gradient(1200px 500px at 0% 0%, rgba(255, 179, 83, 0.22), transparent 65%),
    radial-gradient(1000px 500px at 100% 10%, rgba(107, 210, 156, 0.2), transparent 68%),
    var(--bg-main);
  color: var(--ink);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(23, 38, 60, 0.04) 0.8px, transparent 0.8px);
  background-size: 14px 14px;
  opacity: 0.35;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent-3);
  outline-offset: 3px;
}

.site-header,
.site-footer,
.breadcrumbs,
.main-shell {
  width: min(1220px, calc(100vw - 24px));
  margin-inline: auto;
}

.site-header {
  margin-top: 12px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 170, 82, 0.18), transparent 22%),
    linear-gradient(132deg, rgba(255, 254, 248, 0.95), rgba(255, 243, 210, 0.92));
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 8px;
  z-index: 50;
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.brand-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand strong {
  font-family: "AtlasDisplay", "Courier New", monospace;
  font-size: 1.1rem;
  letter-spacing: 0.11em;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
}

.brand small {
  display: block;
  color: var(--ink-soft);
  margin-top: 2px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 143, 75, 0.9), rgba(255, 143, 75, 0.2)),
    repeating-linear-gradient(90deg, #17324f 0 5px, transparent 5px 10px);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.city-switch {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  background: #fff;
  font-size: 0.93rem;
  box-shadow: 0 5px 0 rgba(31, 47, 71, 0.22);
  transition: transform 200ms ease, background-color 220ms ease, box-shadow 180ms ease;
}

.city-switch:hover {
  transform: translateY(-2px);
  background: #fdf6df;
  box-shadow: 0 7px 0 rgba(31, 47, 71, 0.19);
}

.city-switch:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(31, 47, 71, 0.25);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.top-nav a:hover {
  transform: translateY(-1px);
  background: #fff6df;
  border-color: rgba(23, 38, 60, 0.85);
}

.top-nav a.has-items {
  border-style: solid;
  background: #fff2cd;
}

.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  min-height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffd58f;
  font-size: 0.76rem;
  line-height: 1;
}

.nav-count.is-pop {
  animation: counterPop 320ms ease;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.crumb-sep {
  opacity: 0.7;
}

.main-shell {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-scene,
.search-block,
.scene-card,
.home-notes,
.scene-header,
.scene-sheet,
.scene-hints,
.item-article,
.collection-card,
.collection-page,
.rules-grid article,
.contacts-card,
.not-found,
.my-list-header,
.my-list-items,
.collections-header {
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-scene {
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 143, 75, 0.25), transparent 45%),
    radial-gradient(circle at 82% 0%, rgba(76, 191, 136, 0.2), transparent 45%),
    #fffef8;
}

.hero-scene::before {
  content: "";
  position: absolute;
  right: 22px;
  top: 18px;
  width: 92px;
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 170, 82, 0.95), rgba(255, 213, 143, 0.55));
  box-shadow: 0 0 0 2px rgba(31, 47, 71, 0.14);
  transform: rotate(-6deg);
}

.hero-scene h1 {
  max-width: none;
}

.eyebrow {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fff4db;
}

h1,
h2,
h3 {
  font-family: "AtlasDisplay", "Courier New", monospace;
  line-height: 1.1;
}

h1 {
  margin: 10px 0;
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
}

.hero-copy {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.55;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 4px 10px;
  font-size: 0.82rem;
  font-family: "AtlasDisplay", "Courier New", monospace;
  text-transform: lowercase;
}

.chip-free {
  background: rgba(69, 191, 135, 0.22);
}

.chip-conditional {
  background: rgba(255, 183, 56, 0.24);
}

.chip-separate {
  background: rgba(255, 122, 159, 0.22);
}

.search-block {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-row input {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-row button,
.my-list-actions button,
.item-save,
.sheet-save,
.collection-filters button,
.collection-save,
.my-list-items button {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff5df;
  padding: 9px 12px;
  font: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 0 rgba(31, 47, 71, 0.22);
  transition: transform 160ms ease, background-color 200ms ease, box-shadow 160ms ease;
}

.search-row button::before,
.my-list-actions button::before,
.item-save::before,
.sheet-save::before,
.collection-filters button::before,
.collection-save::before,
.my-list-items button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.6) 50%, transparent 78%);
  transform: translateX(-120%);
  transition: transform 360ms ease;
}

.search-row button:hover,
.my-list-actions button:hover,
.item-save:hover,
.sheet-save:hover,
.collection-filters button:hover,
.collection-save:hover,
.my-list-items button:hover {
  transform: translateY(-1px);
  background: #ffe7bc;
  box-shadow: 0 6px 0 rgba(31, 47, 71, 0.17);
}

.search-row button:hover::before,
.my-list-actions button:hover::before,
.item-save:hover::before,
.sheet-save:hover::before,
.collection-filters button:hover::before,
.collection-save:hover::before,
.my-list-items button:hover::before {
  transform: translateX(120%);
}

.search-row button:active,
.my-list-actions button:active,
.item-save:active,
.sheet-save:active,
.collection-filters button:active,
.collection-save:active,
.my-list-items button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 2px 0 rgba(31, 47, 71, 0.22);
}

.search-row button:disabled,
.my-list-actions button:disabled,
.item-save:disabled,
.sheet-save:disabled,
.collection-filters button:disabled,
.collection-save:disabled,
.my-list-items button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  background: #f1eadc;
}

.item-save.is-saved,
.sheet-save.is-saved,
.collection-save.is-saved {
  background: #e3f9eb;
  border-color: color-mix(in srgb, #2f8f61 45%, var(--line));
  box-shadow: 0 5px 0 rgba(34, 120, 80, 0.25);
}

.collection-save.is-partial {
  background: #fff2cd;
  border-color: color-mix(in srgb, #d9a13b 40%, var(--line));
  box-shadow: 0 5px 0 rgba(156, 119, 41, 0.22);
}

.search-results {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.search-results li {
  border: 1px solid rgba(23, 38, 60, 0.22);
  border-radius: 11px;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  background: #fff;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.search-results li:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 38, 60, 0.42);
  box-shadow: 0 8px 16px rgba(31, 47, 71, 0.08);
}

.search-results small {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.scene-card {
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
  position: relative;
  transform: rotate(var(--scene-tilt));
  background:
    linear-gradient(170deg, color-mix(in srgb, var(--scene-accent) 22%, #fff) 0%, #fff 65%),
    #fff;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.scene-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed color-mix(in srgb, var(--scene-accent) 55%, var(--line));
  border-radius: 16px;
  pointer-events: none;
}

.scene-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 20px 42px rgba(31, 47, 71, 0.16);
}

.scene-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.scene-link {
  width: max-content;
  text-decoration: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(31, 47, 71, 0.2);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 180ms ease;
}

.scene-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(31, 47, 71, 0.16);
  background: #fff5df;
}

.scene-link:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(31, 47, 71, 0.22);
}

.home-notes {
  padding: 16px;
}

.scene-header,
.scene-sheet,
.scene-hints,
.collections-header,
.my-list-header,
.contacts-card,
.not-found {
  padding: 20px;
}

.scene-stage {
  position: relative;
  min-height: 520px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #fff7df, #f6fcff);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.scene-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 176, 84, 0.18), transparent 20%),
    radial-gradient(circle at 84% 18%, rgba(110, 125, 255, 0.14), transparent 20%);
  z-index: 0;
}

.scene-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.scene-backdrop::before,
.scene-backdrop::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(20, 42, 68, 0.25);
  pointer-events: none;
}

.scene-kitchen::before {
  left: 4%;
  right: 4%;
  bottom: 7%;
  height: 17%;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffe3b4, #f3c27e);
}

.scene-kitchen::after {
  left: 12%;
  right: 12%;
  top: 8%;
  height: 15%;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff3d9, #ffdca8);
}

.scene-bathroom::before {
  left: 6%;
  right: 52%;
  bottom: 9%;
  height: 22%;
  border-radius: 42px 42px 14px 14px;
  background: linear-gradient(180deg, #d8f0ff, #9bd3ff);
}

.scene-bathroom::after {
  right: 6%;
  top: 9%;
  width: 22%;
  height: 34%;
  border-radius: 14px;
  background: linear-gradient(180deg, #e8f7ff, #bee4ff);
}

.scene-balcony::before {
  left: 5%;
  right: 5%;
  bottom: 8%;
  height: 12%;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe1bb, #e8c18f);
}

.scene-balcony::after {
  right: 8%;
  top: 8%;
  width: 28%;
  height: 22%;
  border-radius: 12px;
  background: linear-gradient(180deg, #e2f4d5, #bde59a);
}

.scene-garage::before {
  left: 6%;
  right: 6%;
  bottom: 8%;
  height: 14%;
  border-radius: 10px;
  background: linear-gradient(180deg, #d4dbe6, #9daec4);
}

.scene-garage::after {
  left: 8%;
  top: 9%;
  width: 30%;
  height: 18%;
  border-radius: 12px;
  background: linear-gradient(180deg, #edf1f7, #cbd5e5);
}

.scene-yard::before {
  left: 4%;
  right: 4%;
  bottom: 8%;
  height: 14%;
  border-radius: 12px;
  background: linear-gradient(180deg, #b8e295, #88c96a);
}

.scene-yard::after {
  left: 8%;
  top: 8%;
  width: 20%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #dbffb8, #93cf73 60%);
}

.scene-after-repair::before {
  left: 5%;
  right: 5%;
  bottom: 8%;
  height: 13%;
  border-radius: 10px;
  background: linear-gradient(180deg, #ead8c2, #c9ac89);
}

.scene-after-repair::after {
  right: 6%;
  top: 10%;
  width: 24%;
  height: 24%;
  border-radius: 12px;
  background: repeating-linear-gradient(
    45deg,
    #ffd29a 0 8px,
    #f7b977 8px 16px
  );
}

.scene-office-warehouse::before {
  left: 5%;
  right: 5%;
  bottom: 8%;
  height: 14%;
  border-radius: 10px;
  background: linear-gradient(180deg, #d9e3ff, #a6b6df);
}

.scene-office-warehouse::after {
  right: 8%;
  top: 8%;
  width: 26%;
  height: 25%;
  border-radius: 12px;
  background: linear-gradient(180deg, #e8f0ff, #c2d1f4);
}

.scene-layer {
  position: absolute;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    hsla(var(--layer-h), 70%, 78%, 0.55),
    hsla(var(--layer-h), 70%, 62%, 0.2)
  );
  border: 1px solid rgba(15, 38, 63, 0.2);
  animation: layerPulse 6s ease-in-out infinite;
  z-index: 1;
}

.scene-layer:nth-child(odd) {
  animation-duration: 8s;
}

.scene-objects {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.scene-object {
  position: absolute;
  width: 86px;
  height: 74px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, filter 200ms ease;
  filter: drop-shadow(0 8px 8px rgba(31, 47, 71, 0.25));
}

.scene-object-illustration {
  width: 58px;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: 16px 16px 12px 12px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  line-height: 1;
  z-index: 2;
  transform-origin: 50% 80%;
  animation: objectFloat 3.1s ease-in-out infinite;
}

.scene-object-base {
  position: absolute;
  bottom: 16px;
  width: 62px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(31, 47, 71, 0.35), rgba(31, 47, 71, 0.08));
  z-index: 1;
}

.scene-object-label {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  border: 1px solid rgba(23, 38, 60, 0.4);
  border-radius: 999px;
  padding: 2px 8px 3px;
  font-size: 0.64rem;
  line-height: 1.15;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  color: #10263f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 3;
  letter-spacing: 0.03em;
  font-family: "AtlasDisplay", "Courier New", monospace;
}

.scene-object-free .scene-object-illustration {
  background: linear-gradient(160deg, #b6f2d3, #7fd8b2);
}

.scene-object-conditional .scene-object-illustration {
  background: linear-gradient(160deg, #ffe4a1, #ffc66f);
}

.scene-object-separate .scene-object-illustration {
  background: linear-gradient(160deg, #ffc1d2, #ff9cb9);
}

.kind-furniture .scene-object-illustration {
  border-radius: 10px;
}

.kind-appliance .scene-object-illustration {
  border-radius: 18px 18px 12px 12px;
}

.kind-tools .scene-object-illustration,
.kind-repair .scene-object-illustration {
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.25) 0 6px, transparent 6px 12px);
}

.kind-box .scene-object-illustration,
.kind-archive .scene-object-illustration {
  border-radius: 12px;
}

.scene-object:hover,
.scene-object.is-active {
  transform: translate(-50%, -50%) scale(1.08);
  filter: drop-shadow(0 14px 14px rgba(31, 47, 71, 0.35));
}

.scene-object.is-active .scene-object-illustration {
  box-shadow: 0 0 0 3px var(--interactive-glow), 0 8px 16px rgba(31, 47, 71, 0.28);
}

.scene-object.is-saved .scene-object-base {
  background: radial-gradient(circle, rgba(32, 141, 91, 0.44), rgba(31, 47, 71, 0.08));
}

.scene-object.is-saved .scene-object-label::before {
  content: "✓ ";
}

.scene-object:hover .scene-object-label,
.scene-object.is-active .scene-object-label {
  background: #ffffff;
  border-color: rgba(16, 38, 63, 0.7);
}

.scene-sheet {
  position: sticky;
  bottom: 8px;
  z-index: 20;
  display: grid;
  gap: 10px;
  background: linear-gradient(120deg, #fffef9, #fff1cb);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.scene-sheet.is-updating {
  animation: sheetFlash 300ms ease;
}

.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sheet-link {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(31, 47, 71, 0.16);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.sheet-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 rgba(31, 47, 71, 0.12);
  background: #fff8e8;
}

.sheet-link:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(31, 47, 71, 0.18);
}

.scene-hints ul {
  margin: 0;
  padding-left: 18px;
}

.item-article,
.collection-page,
.rules-grid article,
.contacts-card,
.not-found {
  padding: 22px;
}

.item-article section + section,
.collection-page section + section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(23, 38, 60, 0.22);
}

.item-article ol,
.item-article ul,
.collection-page ul,
.rules-grid ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.item-scene {
  margin: 0;
  color: var(--ink-soft);
}

.status-explain {
  font-family: "AtlasDisplay", "Courier New", monospace;
}

.status-free { color: #1f7a58; }
.status-conditional { color: #986400; }
.status-separate { color: #a6405a; }

.collection-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-filters .is-active {
  background: #ffd58f;
}

.collection-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.collection-card {
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.collection-card.is-filtered-in {
  animation: collectionIn 260ms ease;
}

.collection-type {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 245, 223, 0.9);
  border: 1px solid rgba(23, 38, 60, 0.18);
}

.collection-save {
  justify-self: start;
}

.rules-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.my-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.my-list-items {
  list-style: none;
  margin: 0;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.my-list-items li {
  border: 1px solid rgba(23, 38, 60, 0.22);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.my-list-items small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
}

.my-list-empty {
  margin-top: 10px;
  color: var(--ink-soft);
}

.site-footer {
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 18px;
  background: linear-gradient(132deg, #fff5da, #fffdf7);
  display: grid;
  gap: 10px;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.hero-scene,
.search-block,
.home-notes,
.collections-header,
.my-list-header,
.contacts-card,
.not-found,
.scene-header,
.scene-stage,
.scene-sheet,
.scene-hints,
.item-article,
.collection-page {
  animation: panelRise 480ms cubic-bezier(0.2, 0.75, 0.24, 1) both;
}

.scene-card {
  animation: sceneCardRise 460ms cubic-bezier(0.2, 0.75, 0.24, 1) both;
}

.collection-card {
  animation: panelRise 460ms cubic-bezier(0.2, 0.75, 0.24, 1) both;
}

.scene-card:nth-child(2),
.collection-card:nth-child(2) { animation-delay: 40ms; }
.scene-card:nth-child(3),
.collection-card:nth-child(3) { animation-delay: 80ms; }
.scene-card:nth-child(4),
.collection-card:nth-child(4) { animation-delay: 120ms; }
.scene-card:nth-child(5),
.collection-card:nth-child(5) { animation-delay: 160ms; }
.scene-card:nth-child(6),
.collection-card:nth-child(6) { animation-delay: 200ms; }
.scene-card:nth-child(7),
.collection-card:nth-child(7) { animation-delay: 240ms; }

@keyframes objectFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sceneCardRise {
  from {
    opacity: 0;
    transform: rotate(var(--scene-tilt)) translateY(12px);
  }
  to {
    opacity: 1;
    transform: rotate(var(--scene-tilt)) translateY(0);
  }
}

@keyframes counterPop {
  0% { transform: scale(0.8); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes layerPulse {
  0% { transform: scale(1); opacity: 0.62; }
  50% { transform: scale(1.04); opacity: 0.82; }
  100% { transform: scale(1); opacity: 0.62; }
}

@keyframes collectionIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sheetFlash {
  0% {
    box-shadow: var(--shadow);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 20px 48px rgba(31, 47, 71, 0.2), 0 0 0 3px rgba(255, 170, 82, 0.22);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: var(--shadow);
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }

  .scene-stage,
  .scene-objects {
    min-height: 460px;
  }

  .scene-object {
    width: 76px;
    height: 66px;
  }

  .scene-object-illustration {
    width: 50px;
    height: 42px;
    font-size: 1.28rem;
  }

  .scene-object-label {
    width: 76px;
  }
}

@media (max-width: 640px) {
  .brand-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .scene-stage,
  .scene-objects {
    min-height: 420px;
  }

  .scene-sheet {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scene-object-illustration,
  .scene-layer {
    animation: none !important;
  }
}
