:root {
  --forest-deep: #0b1b15;
  --forest: #1f4d3a;
  --forest-mid: #163329;
  --gold: #e6c35c;
  --gold-soft: rgba(230, 195, 92, 0.16);
  --poppy: #d4532b;
  --cream: #f7f1e8;
  --muted: #a8b8ae;
  --line: rgba(230, 195, 92, 0.18);
  --card: #12261f;
  --btn-grey: #2e3b36;
  --btn-grey-hover: #3a4842;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-ui: "Sora", "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  background: var(--forest-deep);
  font-family: var(--font-ui);
  line-height: 1.55;
  min-height: 100vh;
}

.site-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.site-main {
  min-width: 0;
}

.side-panel {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
  padding: 24px 16px;
  background: rgba(8, 20, 16, 0.92);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
}

.side-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.side-add-btn {
  width: 100%;
  justify-content: center;
  margin-top: -8px;
}

.side-edit-btn {
  width: 100%;
  justify-content: center;
  margin-top: -12px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-link-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.side-panel.side-editing-links .side-link-row {
  cursor: grab;
}

.side-panel.side-editing-links .side-link-row:active {
  cursor: grabbing;
}

.side-link-dragging {
  opacity: 0.55;
}

.side-link-drop-target {
  outline: 2px dashed rgba(230, 195, 92, 0.65);
  outline-offset: 2px;
  border-radius: 12px;
}

.side-panel.side-editing-links .side-link {
  pointer-events: none;
  user-select: none;
}

.side-link {
  flex: 1;
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--btn-grey);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.side-link:hover,
.side-link:focus-visible {
  background: var(--gold-soft);
  border-color: rgba(230, 195, 92, 0.35);
  outline: none;
}

.side-remove {
  display: none;
  width: 40px;
  border: 1px solid rgba(212, 83, 43, 0.35);
  border-radius: 12px;
  background: rgba(212, 83, 43, 0.12);
  color: #ffb4a0;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.side-panel.side-editing-links .side-remove {
  display: inline-grid;
  place-items: center;
}

.side-remove:hover {
  background: rgba(212, 83, 43, 0.22);
}

.side-admin {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.side-add-link {
  display: grid;
  gap: 8px;
}

.side-add-link input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font: inherit;
}

.side-add-link .btn {
  width: 100%;
  justify-content: center;
}

.side-admin-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(230, 195, 92, 0.18);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.quick-add-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
}

.quick-add-root .quick-add-backdrop,
.quick-add-root .quick-add-dialog,
.quick-add-root .quick-add-toast {
  pointer-events: auto;
}

.quick-add-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.quick-add-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #10241c;
  color: var(--cream);
  box-shadow: var(--shadow);
}

.quick-add-dialog::backdrop {
  display: none;
}

.side-link-out {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.side-link-external {
  font-size: 0.82rem;
  opacity: 0.75;
}

.quick-add-help {
  margin: 0 22px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.quick-add-dialog h2 {
  margin: 6px 0 0;
  font-size: 1.35rem;
}

.quick-add-form {
  display: grid;
  gap: 12px;
  padding: 18px 22px 22px;
}

.quick-add-form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.quick-add-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font: inherit;
}

.quick-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.quick-add-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(18, 38, 31, 0.96);
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("../assets/pattern.svg");
  background-size: 280px;
  color: var(--gold);
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--forest-deep);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  left: 8px;
}

.masthead {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(7, 16, 24, 0.82), rgba(7, 16, 24, 0.42));
  border-bottom: 1px solid transparent;
}

.banner {
  position: relative;
  margin: 0;
  background: #071018;
}

.banner img {
  width: 100%;
  height: clamp(200px, 32vh, 340px);
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.78);
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 24, 0.28);
  pointer-events: none;
  z-index: 1;
}

.banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(transparent, rgba(7, 16, 24, 0.35) 35%, var(--forest-deep));
  pointer-events: none;
  z-index: 1;
}

.banner-compact img {
  height: clamp(140px, 24vw, 260px);
  object-position: center top;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #071018;
  box-shadow: 0 0 0 1px rgba(230, 195, 92, 0.35);
}

.brand span {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  line-height: 1.15;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--forest-deep) !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.banner .hero {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: 12px;
  z-index: 2;
  padding: 0 0 8px;
  text-align: center;
}

.banner .hero .kicker {
  margin-bottom: 8px;
}

.banner .hero .lede {
  margin: 0 auto;
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.kicker {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--forest-deep);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
  background: var(--btn-grey);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--btn-grey-hover);
  border-color: rgba(230, 195, 92, 0.35);
  color: var(--gold);
  outline: none;
}

.phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  transform: rotate(-4deg);
}

.phone {
  background: linear-gradient(180deg, var(--forest-mid), #0a1712);
  border: 1px solid var(--line);
  border-radius: 28px;
  min-height: 340px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.phone:nth-child(2) {
  margin-top: 36px;
  background: linear-gradient(180deg, #10221c, #071410);
}

.phone-bar {
  height: 8px;
  width: 42%;
  margin: 0 auto 18px;
  border-radius: 99px;
  background: rgba(247, 241, 232, 0.18);
}

.phone h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.phone p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.app-card .chip-row {
  margin-top: auto;
}

.chip {
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
}

.section {
  position: relative;
  z-index: 1;
  padding: 28px 0 40px;
}

#apps {
  padding-top: 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.nav-links .auth-slot {
  display: flex;
  align-items: center;
  gap: 18px;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--btn-grey);
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.user-menu-trigger:hover,
.user-menu-trigger:focus-visible {
  background: var(--btn-grey-hover);
  color: var(--gold);
  border-color: rgba(230, 195, 92, 0.35);
  outline: none;
}

.user-menu-caret {
  font-size: 0.75rem;
  opacity: 0.8;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #10241c;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  z-index: 80;
}

.user-menu-panel[hidden] {
  display: none;
}

.user-menu-panel a,
.user-menu-panel button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--cream);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.user-menu-panel a:hover,
.user-menu-panel a:focus-visible,
.user-menu-panel button:hover,
.user-menu-panel button:focus-visible {
  background: var(--gold-soft);
  color: var(--gold);
  outline: none;
}

.user-menu-panel [data-logout] {
  color: #ffb4a0;
}

.user-menu-panel [data-logout]:hover,
.user-menu-panel [data-logout]:focus-visible {
  background: rgba(212, 83, 43, 0.14);
  color: #ffc9bb;
}

.store-search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.store-search input,
.form-card input,
.form-card textarea,
.form-card select {
  background: #0c1a15;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.store-search input {
  min-width: min(280px, 100%);
}

button.btn {
  cursor: pointer;
  font: inherit;
}

button.btn-ghost {
  background: var(--btn-grey);
  color: var(--cream);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

.filter[aria-pressed="true"] {
  background: var(--gold);
  color: var(--forest-deep);
  border-color: var(--gold);
}

.store-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.sort-label select {
  background: #0c1a15;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.grid,
.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(150px, auto));
  gap: 12px;
}

.app-slot {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(18, 38, 31, 0.28);
  min-height: 150px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
}

.publisher {
  color: var(--muted);
  font-size: 0.85rem;
  margin: -6px 0 12px;
}

.mark-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 14px;
}

.mark-letter {
  font-weight: 700;
  font-size: 1.2rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 12px;
}

.form-wide {
  max-width: 720px;
}

.form-card label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
}

.rich-field {
  display: grid;
  gap: 8px;
}

.rich-editor {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0c1a15;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 38, 31, 0.72);
}

.rich-btn {
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #12261f;
  color: var(--cream);
  font: inherit;
  cursor: pointer;
}

.rich-btn:hover,
.rich-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.rich-body {
  min-height: 160px;
  padding: 12px 14px;
  outline: none;
  line-height: 1.5;
  color: var(--cream);
}

.rich-body:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.rich-count {
  margin: 0;
  padding: 8px 12px 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.rich-content strong,
.rich-content b {
  font-weight: 700;
}

.rich-content em,
.rich-content i {
  font-style: italic;
}

.rich-content u {
  text-decoration: underline;
}

.rich-content,
.rich-content span,
.rich-content p,
.rich-content div {
  color: var(--cream) !important;
}

.form-error {
  color: #fca5a5;
  min-height: 1.2em;
  margin: 0;
}

.check-row {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mine-list {
  margin-top: 24px;
}

.mine-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-top: 14px;
  background: var(--card);
}

.detail .hero-actions,
.mine-card .hero-actions {
  justify-content: flex-start;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  height: 100%;
  transition: transform 160ms ease, border-color 160ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.app-card.hidden {
  display: none;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.status {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.app-card h3 {
  font-size: 1.15rem;
}

.app-card p {
  color: var(--muted);
  margin: 0 0 6px;
}

.app-card .app-blurb {
  font-size: 0.72rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card .publisher {
  font-size: 0.7rem !important;
  margin: 0 0 6px !important;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge-new {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #16a34a;
  color: #ecfdf5;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.58rem;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.35);
  animation: flash-new 1.05s ease-in-out infinite;
}

@keyframes flash-new {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.45), 0 0 12px rgba(74, 222, 128, 0.8);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
  }
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.mark svg {
  width: 26px;
  height: 26px;
}

.detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(18, 38, 31, 0.72);
  margin-bottom: 18px;
}

.detail h1 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.15;
  margin-bottom: 12px;
  word-break: break-word;
}

.back-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.back-store:hover,
.back-store:focus-visible {
  color: var(--cream);
}

.back-store-arrow {
  display: inline-block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  transform: scaleX(1.35);
  transform-origin: center;
}

.detail-summary {
  max-width: none;
  color: var(--cream);
}

.detail ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.detail li + li {
  margin-top: 8px;
}

.platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
}

.platform {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
}

.studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.note {
  border-left: 3px solid var(--poppy);
  padding-left: 16px;
  color: var(--muted);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-row a {
  color: var(--gold);
}

.legal {
  max-width: 720px;
  margin: 48px auto 80px;
  padding: 0 20px;
}

.legal h1 {
  font-size: 2.4rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .site-header .menu-btn {
    margin-right: auto;
  }

  .side-panel {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .banner .hero {
    bottom: 8px;
  }

  .grid,
  .banner-grid,
  .detail,
  .studio,
  .section-head,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .banner-grid {
    grid-template-rows: none;
  }

  .app-slot {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset: 72px 20px auto;
    background: #10241c;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .phones {
    transform: none;
    max-width: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .app-card {
    transition: none;
  }

  .badge-new {
    animation: none;
  }
}
