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

@font-face {
  font-family: "Monocraft";
  src: url("assets/fonts/Monocraft-ttf/weights/Monocraft-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #100f14;
  --panel: #18161e;
  --panel-soft: #1d1a23;
  --panel-raised: #24202b;
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --text: #f8f5fb;
  --muted: #aaa3b2;
  --accent: #a24ee2;
  --accent-2: #d287ff;
  --coral: #ff746f;
  --good: #69e08f;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
}

html {
  background: var(--bg);
  overflow-x: hidden;
}

body {
  font-family: "Monocraft", "Segoe UI", sans-serif;
  background: var(--bg);
  letter-spacing: 0;
  overflow-x: hidden;
}

.page-bg {
  display: none;
}

.drawer {
  z-index: 80;
}

#app {
  width: 100%;
  margin: 0;
  padding: 0 0 34px;
}

.topbar {
  width: min(1180px, calc(100vw - 32px));
  margin: 14px auto 0;
  border-radius: 8px;
  background: rgba(16, 15, 20, 0.86);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.3);
}

.content {
  margin-top: 0;
}

.server-logo {
  display: block;
  width: auto;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}

.drawer-brand .server-logo {
  width: min(230px, 78vw);
  height: auto;
  margin: 18px auto;
}

.icon-btn,
.status-chip,
.drawer-panel,
.drawer-nav button {
  border-radius: 6px;
}

.hero {
  position: relative;
  width: 100%;
  min-height: clamp(590px, 84svh, 890px);
  margin: -70px 0 86px;
  padding: 120px 0 64px;
  display: flex;
  align-items: flex-end;
  overflow: visible;
  border: 0;
  border-radius: 0;
  isolation: isolate;
  background: #17121b url("assets/hero-astrixland.jpg") center 42% / cover no-repeat;
  box-shadow: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 8, 13, 0.78) 0%, rgba(10, 8, 13, 0.42) 38%, rgba(10, 8, 13, 0.08) 68%, rgba(10, 8, 13, 0.22) 100%),
    linear-gradient(0deg, rgba(16, 15, 20, 0.92) 0%, rgba(16, 15, 20, 0.12) 40%, rgba(16, 15, 20, 0.08) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -88px;
  height: 190px;
  z-index: 0;
  pointer-events: none;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(16, 15, 20, 0), var(--bg) 62%);
  filter: blur(7px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 40px));
  max-width: none;
  margin: 0 auto;
}

.hero-welcome {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(14px, 1.4vw, 19px);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 22px;
  max-width: 820px;
  color: #fff;
  font-size: clamp(54px, 9vw, 126px);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 5px 0 rgba(47, 11, 65, 0.8), 0 18px 38px rgba(0, 0, 0, 0.5);
}

.hero-status,
.sale-clock {
  width: max-content;
  max-width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 6px;
  background: rgba(13, 11, 17, 0.63);
  backdrop-filter: blur(10px);
  color: #e8e3ec;
}

.sale-clock[hidden] {
  display: none;
}

.hero-status strong,
.sale-clock time {
  color: #fff;
}

.sale-clock small {
  color: #a9a1b0;
}

.hero-actions {
  margin-top: 20px;
}

.hero-cta,
.hero-server {
  border-radius: 6px;
}

.hero-cta {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(162, 78, 226, 0.3);
}

.hero-server {
  background: rgba(13, 11, 17, 0.7);
}

.catalog-shell,
.recent-purchases,
.monitor-shell,
.monitor,
.footer-links,
.detail,
.description-block,
.agreement,
.back-btn {
  width: min(1180px, calc(100vw - 32px));
  margin-left: auto;
  margin-right: auto;
}

.catalog-shell .tabs {
  gap: 10px;
  padding: 0 0 12px;
}

.catalog-shell .tabs button {
  min-height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--panel);
}

.catalog-shell .tabs button.active {
  background: var(--accent);
  border-color: #c57cf6;
}

.catalog-shell .section-head {
  margin-top: 32px;
}

.catalog-shell .section-head h2,
.recent-purchases h2,
.monitor h2,
.agreement h1,
.doc-card h2 {
  letter-spacing: 0;
}

.catalog-shell .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalog-shell .product-card {
  position: relative;
  min-width: 0;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: #19171e;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.catalog-shell .product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 113, 246, 0.48);
  background: #1e1b24;
}

.sale-corner {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--coral);
  color: #211319;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(255, 116, 111, 0.24);
}

.clock-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.clock-icon::before,
.clock-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: 1px 5px;
}

.clock-icon::after {
  transform: rotate(125deg);
}

.catalog-shell .product-art {
  position: relative;
  width: 100%;
  height: 178px;
  display: grid;
  place-items: center;
  margin: 10px 0 16px;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(170, 83, 226, 0.22), rgba(22, 20, 27, 0) 68%);
}

.catalog-shell .product-art::after {
  content: "";
  position: absolute;
  inset: 26px;
  z-index: 0;
  border-radius: 50%;
  background: rgba(172, 83, 227, 0.2);
  filter: blur(22px);
}

.catalog-shell .product-art img {
  position: relative;
  z-index: 1;
  width: min(155px, 76%);
  height: 155px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.48));
}

.product-category {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f7f5f8;
  font-size: 11px;
}

.product-category img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.catalog-shell .product-name {
  display: block;
  min-height: 48px;
  margin: 8px 0 10px;
  color: #c86cf5;
  font-size: 18px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.price-row {
  min-height: 43px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-stack del {
  color: #77727d;
  font-size: 11px;
  line-height: 1;
}

.price-stack strong {
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
}

.sale-percent {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 5px;
  background: #8735c7;
  color: #fff;
  font-size: 11px;
  font-style: normal;
}

.price-row small {
  max-width: 104px;
  color: #8f8797;
  font-size: 9px;
  text-align: right;
}

.recent-purchases,
.monitor,
.agreement,
.doc-card,
.detail,
.description-block {
  border-radius: 8px;
  background: var(--panel);
}

.recent-purchases {
  margin-top: 48px;
}

.monitor {
  margin-top: 24px;
  background: #19171f;
}

.footer-links {
  margin-top: 22px;
}

.agreement {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 46px) 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.agreement h1 {
  margin: 12px 0 14px;
  color: #fff;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1;
}

.doc-card {
  width: 100%;
  margin: 14px 0 0;
  padding: clamp(18px, 3vw, 30px);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.doc-card h2 {
  color: #ca78f5;
}

.doc-card p,
.rule-line,
.doc-note {
  color: #c8c1cd;
  line-height: 1.7;
}

.rule-penalty {
  color: #d477fb;
}

@media (max-width: 980px) {
  .catalog-shell .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .topbar {
    width: calc(100vw - 20px);
    margin-top: 10px;
  }

  .server-logo {
    height: 28px;
    max-width: 172px;
  }

  .status-chip {
    max-width: 134px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 680px;
    margin-top: -64px;
    margin-bottom: 68px;
    padding: 116px 0 48px;
    background-position: 58% center;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(16, 15, 20, 0.96) 0%, rgba(16, 15, 20, 0.54) 48%, rgba(16, 15, 20, 0.05) 78%),
      linear-gradient(90deg, rgba(10, 8, 13, 0.45), rgba(10, 8, 13, 0.05));
  }

  .hero-copy {
    width: calc(100vw - 28px);
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .hero-actions,
  .hero-cta,
  .hero-server {
    width: 100%;
  }

  .hero-cta,
  .hero-server {
    justify-content: center;
  }

  .catalog-shell,
  .recent-purchases,
  .monitor,
  .footer-links,
  .detail,
  .description-block,
  .agreement,
  .back-btn {
    width: calc(100vw - 20px);
  }

  .catalog-shell .section-head {
    display: block;
  }

  .catalog-shell .section-head p {
    margin-top: 8px;
    text-align: left;
  }

  .catalog-shell .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .catalog-shell .product-card {
    min-height: 306px;
    padding: 11px;
  }

  .catalog-shell .product-art {
    height: 140px;
    margin-top: 16px;
  }

  .catalog-shell .product-art img {
    width: min(120px, 82%);
    height: 120px;
  }

  .catalog-shell .product-name {
    min-height: 43px;
    font-size: 15px;
  }

  .price-stack strong {
    font-size: 15px;
  }

  .product-category {
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .topbar-meta .status-chip {
    display: none;
  }

  .catalog-shell .product-card {
    min-height: 290px;
  }

  .catalog-shell .product-art {
    height: 126px;
  }

  .catalog-shell .product-art img {
    height: 106px;
  }

  .sale-corner {
    top: 8px;
    right: 8px;
    padding: 4px 6px;
    font-size: 9px;
  }
}

/* 2026-10 storefront polish */
.topbar {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 50;
  width: min(1240px, calc(100vw - 28px));
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

.topbar .brand-wrap,
.topbar .topbar-meta {
  pointer-events: auto;
}

.topbar .menu-btn,
.topbar .status-chip {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 14, 21, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.topbar .menu-btn {
  width: 50px;
  border-radius: 8px 18px 8px 18px;
}

.topbar .status-chip {
  max-width: min(260px, 62vw);
  border-radius: 18px 8px 18px 8px;
  color: #f4ecf8;
}

.hero {
  min-height: clamp(610px, 88svh, 900px);
  margin: 0 0 54px;
  padding: 118px 0 74px;
  overflow: hidden;
  background-position: center center;
}

.hero::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(150px, 24vh, 260px);
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 15, 20, 0) 0%,
    rgba(16, 15, 20, 0.18) 24%,
    rgba(16, 15, 20, 0.7) 66%,
    var(--bg) 100%
  );
  filter: none;
}

.hero-brand {
  width: min(440px, 58vw);
  max-width: none;
  min-height: 0;
  margin: 8px 0 22px;
  line-height: 1;
  text-shadow: none;
}

.hero-brand img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 0 rgba(29, 5, 41, 0.44)) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.44));
}

.catalog-shell .product-card {
  min-height: 410px;
}

.catalog-shell .product-name {
  min-height: 46px;
  margin-bottom: 4px;
}

.catalog-shell .product-desc {
  display: -webkit-box;
  min-height: 55px;
  margin: 0 0 14px;
  overflow: hidden;
  color: rgba(225, 218, 230, 0.57);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.price-stack {
  position: relative;
  min-height: 42px;
  justify-content: flex-end;
}

.price-stack del {
  position: absolute;
  left: calc(100% + 7px);
  bottom: 24px;
  color: rgba(208, 146, 238, 0.56);
  font-size: 10px;
  text-decoration-color: rgba(227, 173, 252, 0.82);
  white-space: nowrap;
}

.sale-percent {
  padding: 6px 9px;
  background: linear-gradient(135deg, #cd64ff, #7626c2);
  box-shadow: 0 7px 18px rgba(159, 55, 223, 0.28);
}

.detail-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-price del {
  color: rgba(208, 146, 238, 0.6);
  font-size: 13px;
}

.recent-purchases {
  margin-top: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.recent-purchases > h2 {
  margin: 0 0 13px;
  color: #f7f3f9;
  font-size: clamp(25px, 3vw, 34px);
}

.purchase-slider {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.purchase-card {
  flex-basis: min(285px, 76vw);
  min-height: 96px;
  border-radius: 7px;
  background: #121016;
}

.monitor {
  position: relative;
  min-height: 274px;
  display: block;
  margin-top: 30px;
  padding: 30px 30px 30px 430px;
  overflow: hidden;
  border: 1px solid rgba(188, 105, 231, 0.19);
  background:
    radial-gradient(circle at 15% 100%, rgba(166, 47, 235, 0.19), transparent 34%),
    linear-gradient(110deg, #17141c, #1d1824);
}

.monitor::before {
  content: "";
  position: absolute;
  left: -90px;
  bottom: -145px;
  width: 590px;
  height: 330px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 50%, rgba(248, 88, 255, 0.82) 0 3%, transparent 4%),
    radial-gradient(circle at 54% 28%, rgba(167, 40, 255, 0.72) 0 4%, transparent 5%),
    radial-gradient(circle at 70% 57%, rgba(108, 39, 240, 0.76) 0 5%, transparent 6%),
    radial-gradient(ellipse, rgba(143, 36, 229, 0.5), rgba(79, 24, 142, 0.12) 48%, transparent 70%);
  filter: blur(8px);
  opacity: 0.8;
}

.monitor-dragon {
  left: -10px;
  right: auto;
  bottom: -38px;
  z-index: 1;
  width: 520px;
  opacity: 0.98;
  transform: scaleX(-1);
  transform-origin: center;
  filter: drop-shadow(0 10px 24px rgba(187, 55, 246, 0.3));
}

.monitor-main {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.monitor h2 {
  margin: 6px 0 10px;
  font-size: clamp(30px, 4.4vw, 52px);
}

.monitor-actions {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.monitor .xpbar {
  min-width: 0;
}

.monitor .play-btn {
  position: static;
  min-width: 214px;
  min-height: 48px;
  margin: 0;
  border-radius: 7px;
}

.back-btn,
.agreement {
  margin-top: 90px;
}

.footer-links {
  gap: 7px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.footer-links button,
.footer-links a {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 11px;
}

@media (max-width: 980px) {
  .monitor {
    padding-left: 330px;
  }

  .monitor-dragon {
    left: -24px;
    width: 440px;
  }

  .monitor-actions {
    grid-template-columns: 1fr;
  }

  .monitor .play-btn {
    width: min(260px, 100%);
  }
}

@media (max-width: 700px) {
  .topbar {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100vw - 18px);
    margin: 0;
  }

  .topbar .menu-btn {
    width: 44px;
    min-height: 42px;
  }

  .topbar .status-chip {
    min-height: 42px;
    max-width: 210px;
    padding: 0 11px;
    font-size: 10px;
  }

  .hero {
    min-height: 650px;
    margin-top: 0;
    margin-bottom: 38px;
    padding: 94px 0 54px;
    background-position: 57% center;
  }

  .hero-brand {
    width: min(280px, 72vw);
    margin-bottom: 18px;
  }

  .hero-actions {
    width: auto;
  }

  .hero-cta,
  .hero-server {
    width: auto;
    min-height: 43px;
    padding: 0 13px;
    font-size: 11px;
  }

  .catalog-shell .tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
  }

  .catalog-shell .tabs button {
    min-width: 0;
    min-height: 40px;
    padding: 0 5px;
    font-size: 9px;
  }

  .catalog-shell .tabs button span {
    min-width: 17px;
    padding: 2px 4px;
    font-size: 8px;
  }

  .catalog-shell .product-card {
    min-height: 350px;
  }

  .catalog-shell .product-desc {
    min-height: 50px;
    font-size: 9px;
  }

  .price-stack del {
    left: 0;
    bottom: 27px;
    font-size: 8px;
  }

  .sale-percent {
    padding: 5px 6px;
    font-size: 9px;
  }

  .recent-purchases {
    margin-top: 36px;
  }

  .purchase-slider {
    min-height: 116px;
    padding: 10px;
  }

  .purchase-card {
    flex-basis: min(245px, 76vw);
    grid-template-columns: 58px 1fr;
    min-height: 88px;
    padding: 9px;
  }

  .purchase-card img {
    width: 58px;
    height: 58px;
  }

  .monitor {
    min-height: 390px;
    padding: 22px 16px 154px;
  }

  .monitor h2 {
    font-size: clamp(26px, 9vw, 38px);
  }

  .monitor-dragon {
    left: -12px;
    bottom: -22px;
    width: 310px;
  }

  .monitor::before {
    left: -120px;
    bottom: -170px;
    width: 470px;
  }

  .monitor-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .monitor .play-btn {
    width: auto;
    min-width: 142px;
    min-height: 42px;
    padding: 0 11px;
    font-size: 10px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100vw - 20px);
    gap: 6px;
  }

  .footer-links button,
  .footer-links a {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 6px 7px;
    overflow-wrap: anywhere;
    font-size: 9px;
    line-height: 1.25;
    text-align: center;
  }

  .footer-links a:last-child {
    grid-column: 1 / -1;
    width: 50%;
    justify-self: center;
  }
}

@media (max-width: 390px) {
  .topbar-meta .status-chip {
    display: inline-flex;
    max-width: 180px;
  }

  .catalog-shell .product-card {
    min-height: 338px;
  }

  .catalog-shell .product-name {
    min-height: 39px;
    font-size: 13px;
  }

  .monitor-actions {
    grid-template-columns: 1fr;
  }

  .monitor .play-btn {
    width: 100%;
  }
}

/* 2026-10 compact storefront and responsive hero/monitor pass */
.hero::after {
  top: auto;
}

.hero-brand {
  margin-bottom: 14px;
}

.sale-clock {
  margin: 0 0 12px;
  padding: 9px 12px;
}

.sale-clock > span:last-child {
  display: grid;
  gap: 2px;
}

.sale-clock strong {
  color: #f3c8ff;
  font-size: 12px;
}

.sale-clock small {
  color: #fff;
  font-size: 11px;
}

.sale-clock em {
  color: rgba(232, 225, 237, 0.66);
  font-size: 9px;
  font-style: normal;
}

.catalog-prompt {
  margin: 0 0 16px;
  color: #eee7f2;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.05;
}

.catalog-shell .product-card {
  min-height: 360px;
  padding: 14px;
}

.catalog-shell .product-art {
  height: 148px;
  margin: 7px 0 11px;
}

.catalog-shell .product-art img {
  width: min(132px, 74%);
  height: 132px;
}

.catalog-shell .product-name {
  min-height: 40px;
  margin: 6px 0 4px;
}

.catalog-shell .product-desc {
  min-height: 42px;
  margin-bottom: 9px;
  -webkit-line-clamp: 2;
}

.monitor {
  min-height: 274px;
  padding: 30px 430px 30px 30px;
}

.monitor-shell {
  margin-top: 30px;
}

.monitor-shell .monitor {
  width: 100%;
  margin: 0;
}

.monitor::before {
  left: auto;
  right: -90px;
}

.monitor-dragon {
  left: auto;
  right: -10px;
  transform: scaleX(-1);
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.legal-note {
  width: min(1040px, calc(100vw - 32px));
  margin: 16px auto 0;
  padding: 14px 0 max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--stroke);
  color: rgba(224, 216, 230, 0.56);
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.legal-note p {
  margin: 2px 0;
}

.legal-note p:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.legal-note img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

.footer-links {
  max-width: 1040px;
}

.footer-links button,
.footer-links a {
  flex: 0 1 auto;
  padding-inline: 10px;
}

@media (max-width: 980px) {
  .monitor {
    padding-right: 330px;
    padding-left: 24px;
  }

  .monitor-dragon {
    left: auto;
    right: -28px;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: min(720px, 96svh);
    background-color: var(--bg);
    background-position: 52% 35%;
    background-size: cover;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(10, 8, 13, 0.18) 0%, rgba(10, 8, 13, 0.22) 35%, rgba(10, 8, 13, 0.57) 70%, rgba(16, 15, 20, 0.94) 100%),
      linear-gradient(90deg, rgba(10, 8, 13, 0.4), rgba(10, 8, 13, 0.03) 72%);
  }

  .hero-copy {
    width: calc(100vw - 32px);
  }

  .hero-brand {
    width: min(330px, 84vw);
    margin: 5px 0 14px -3px;
  }

  .sale-clock {
    max-width: min(390px, 100%);
  }

  .recent-purchases {
    padding: 16px 12px;
  }

  .recent-purchases > h2 {
    font-size: clamp(28px, 8vw, 38px);
    margin-bottom: 12px;
  }

  .purchase-slider {
    gap: 8px;
    padding: 0 0 7px;
  }

  .purchase-card {
    min-width: 208px;
    min-height: 84px;
    padding: 9px;
    gap: 9px;
  }

  .purchase-card img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
  }

  .purchase-card strong {
    font-size: 14px;
  }

  .purchase-card span,
  .purchase-card small {
    font-size: 11px;
  }

  .catalog-shell .product-card {
    min-height: 298px;
    padding: 10px;
  }

  .catalog-shell .product-art {
    height: 112px;
    margin: 12px 0 8px;
  }

  .catalog-shell .product-art img {
    width: min(102px, 80%);
    height: 102px;
  }

  .catalog-shell .product-name {
    min-height: 35px;
    margin-top: 5px;
  }

  .catalog-shell .product-desc {
    min-height: 37px;
    margin-bottom: 7px;
    font-size: 8px;
  }

  .monitor-shell {
    position: relative;
    width: calc(100vw - 20px);
    margin-top: 30px;
    overflow: hidden;
  }

  .monitor-shell .monitor {
    width: 1180px;
    min-height: 274px;
    margin: 0;
    padding: 30px 430px 30px 30px;
    animation: none;
    transform-origin: top left;
  }

  .monitor-shell .monitor h2 {
    margin: 6px 0 10px;
    font-size: 52px;
  }

  .monitor-shell .monitor-dragon {
    left: auto;
    right: -10px;
    bottom: -38px;
    width: 520px;
    transform: scaleX(-1);
  }

  .monitor-shell .monitor::before {
    left: auto;
    right: -90px;
    bottom: -145px;
    width: 590px;
    height: 330px;
  }

  .monitor-shell .monitor-actions {
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 14px;
  }

  .monitor-shell .monitor .play-btn {
    width: auto;
    min-width: 214px;
    min-height: 48px;
    padding: 0 16px;
    font-size: inherit;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: calc(100vw - 34px);
  }

  .footer-links a:last-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .legal-note {
    width: calc(100vw - 34px);
    font-size: 8px;
  }
}

@media (max-width: 390px) {
  .hero-brand {
    width: min(300px, 86vw);
  }

  .catalog-shell .product-card {
    min-height: 286px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links a:last-child {
    width: 100%;
    justify-self: stretch;
  }
}
