:root {
  --bg: #121212;
  --rail: #000000;
  --panel: #1a1a1a;
  --panel-2: #222222;
  --line: #2e2e2e;
  --text: #d4d4d4;
  --muted: #8a8a8a;
  --title: #f0f0f0;
  --accent: #e63d4c;
  --accent-soft: rgba(230, 61, 76, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ui: "Segoe UI", system-ui, sans-serif;
  --hit: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
}
:focus { outline: none; }
:focus-visible {
  outline: 2px solid rgba(230, 61, 76, 0.65);
  outline-offset: 2px;
}

.app {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--rail);
  border-right: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow: hidden;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 18px;
  border-bottom: 1px solid #1a1a1a;
  min-height: 72px;
  transition: background 160ms var(--ease-out);
}
.brand:hover { background: #0a0a0a; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: 0 0 auto;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.brand-title {
  font-size: 17px;
  font-weight: 650;
  color: #fff;
  line-height: 1.2;
  text-wrap: balance;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  flex: 1;
  overflow: auto;
  padding: 12px 8px 24px;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}
.nav::-webkit-scrollbar { width: 8px; }
.nav::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.nav-group { margin-bottom: 4px; }
.nav-group.nested {
  margin: 2px 0 2px 2px;
  border-left: 1px solid #1e1e1e;
  padding-left: 2px;
}
.nav-group.nested .drop-in > a {
  font-size: 13px;
  padding: 8px 10px 8px 12px;
  color: #949494;
}
.nav-group.nested .drop-in > a:hover,
.nav-group.nested .drop-in > a.active {
  color: #fff;
}

.nav-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: #bdbdbd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition-property: color, background-color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}
.nav-toggle:hover {
  color: #fff;
  background: #141414;
}
.nav-group.open > .nav-toggle { color: #fff; }

.nav-toggle.sub {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  color: #cfcfcf;
  padding: 9px 10px;
}
.nav-group.nested.open > .nav-toggle.sub {
  color: #fff;
  background: #161616;
}

.chev {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  transition: transform 420ms var(--ease-out);
  flex: 0 0 auto;
}
.nav-group.open > .nav-toggle > .chev { transform: rotate(225deg); }

.drop {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 480ms var(--ease-out);
}
.nav-group.open > .drop { grid-template-rows: 1fr; }
.drop-in {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 2px 0 6px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 280ms var(--ease-in-out),
    transform 420ms var(--ease-out),
    padding 420ms var(--ease-out);
}
.nav-group:not(.open) > .drop > .drop-in {
  transition-delay: 0s;
}
.nav-group.open > .drop > .drop-in {
  opacity: 1;
  transform: none;
  padding: 4px 2px 8px 6px;
  transition-delay: 60ms, 40ms, 0s;
}
.nav-group.nested > .drop > .drop-in {
  padding-left: 8px;
}
.nav-group.nested.open > .drop > .drop-in {
  padding-left: 8px;
}

.drop-in > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px 9px 14px;
  border-radius: var(--radius-sm);
  border: 0;
  color: #a3a3a3;
  font-size: 14px;
  text-wrap: pretty;
  transition-property: color, background-color, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}
.drop-in > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.drop-in > a.active {
  color: #fff;
  background: var(--accent-soft);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}

.shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  min-height: 100vh;
}
.site-credit {
  margin-top: auto;
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #5c5c5c;
  user-select: none;
  border-top: 1px solid #1a1a1a;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
}
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--panel);
  place-items: center;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}
.burger span::before,
.burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }
.crumb {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  outline: none;
  border-radius: 6px;
  padding: 4px 8px;
  margin: -4px -8px;
  min-width: 40px;
  transition: background 160ms var(--ease), box-shadow 160ms var(--ease), color 160ms var(--ease);
}
.crumb-edit {
  color: #fff;
  cursor: text;
}
.crumb-edit:hover,
.crumb-edit:focus {
  background: #1c1c1c;
  box-shadow: inset 0 0 0 1px #333;
}
.live-edit {
  outline: none;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 200ms var(--ease);
}
.live-edit:focus,
.live-edit:focus-within {
  box-shadow: inset 0 0 0 1px #3a3a3a;
}
body.is-editing .live-edit {
  cursor: text;
}
body.is-editing .live-edit .win-btn {
  cursor: text;
}
body.is-editing .live-edit .win-btn .chev {
  cursor: pointer;
  flex: 0 0 auto;
}
body.is-editing .edit-field {
  outline: none;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 160ms var(--ease), background 160ms var(--ease);
}
body.is-editing .edit-field:hover {
  box-shadow: inset 0 0 0 1px #333;
}
body.is-editing .edit-field:focus {
  box-shadow: inset 0 0 0 1px #555;
  background: rgba(255, 255, 255, 0.02);
}
body.is-editing .nav-edit {
  cursor: text;
}
body.is-editing a.nav-edit:hover {
  background: rgba(255, 255, 255, 0.08);
}
.win-btn .win-title {
  flex: 1;
  text-align: left;
  min-width: 0;
}
.edit-hint {
  font-size: 11px;
  color: #7a7a7a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 4px;
}

.stage {
  padding: 22px 24px 72px;
  outline: none;
}

.view {
  max-width: 880px;
  margin: 0 auto;
  animation: rise 520ms var(--ease-out) both;
}
.view > .m,
.view > .box,
.view > .hero,
.view > .drops,
.view > .drops > .win {
  animation: rise 560ms var(--ease-out) both;
}
.view > .m:nth-child(1),
.view > .hero { animation-delay: 40ms; }
.view > .m:nth-child(2),
.view > .box { animation-delay: 90ms; }
.view > .m:nth-child(3),
.view > .drops { animation-delay: 140ms; }
.view > .drops > .win:nth-child(1) { animation-delay: 160ms; }
.view > .drops > .win:nth-child(2) { animation-delay: 210ms; }
.view > .drops > .win:nth-child(3) { animation-delay: 260ms; }
.view > .drops > .win:nth-child(4) { animation-delay: 310ms; }
.view > .drops > .win:nth-child(5) { animation-delay: 360ms; }
.view > .drops > .win:nth-child(n+6) { animation-delay: 400ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hero {
  position: relative;
  height: clamp(148px, 18vw, 208px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: #000;
  border: 1px solid #222;
}
.hero--gradient {
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 40%, #2a1010 78%, #3d1515 100%);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
  outline: none;
}
.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.home { padding-top: 8px; }
.home-hero {
  height: clamp(180px, 24vw, 260px);
  margin-bottom: 14px;
}
.home-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 20px;
}
.home-hero__kicker {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.home-hero__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.home-hero__code {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.home-status {
  padding: 16px 18px;
}
.home-status .prose { min-width: 0; }
.home-status .prose p { margin: 0; }

.m, .box {
  background: var(--panel);
  border: 1px solid #242424;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 12px 0;
}
.box {
  color: var(--title);
  font-weight: 600;
  font-size: 14px;
  text-wrap: pretty;
}

.t {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.doc-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 650;
  color: var(--title);
  text-wrap: balance;
}
.doc-sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  text-wrap: pretty;
}

.prose {
  line-height: 1.65;
  font-size: 14px;
  color: var(--text);
  text-wrap: pretty;
}
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 {
  margin: 16px 0 8px;
  font-size: 14px;
  color: var(--title);
}
.prose ul, .prose ol {
  margin: 0 0 12px;
  padding-left: 1.2em;
}
.prose li { margin: 0 0 5px; }
.prose strong { color: var(--title); }

.meta { margin-top: 4px; }
.meta div {
  display: grid;
  grid-template-columns: minmax(150px, 200px) 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.meta div:last-child { border-bottom: 0; }
.meta b { color: var(--title); font-weight: 600; }

.redacted {
  display: inline-block;
  background: #000;
  color: transparent;
  min-width: 8ch;
  border-radius: 2px;
  user-select: none;
}

.figure { margin: 4px 0; }

.map-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 28px 22px 22px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(230, 61, 76, 0.28), transparent 55%),
    linear-gradient(180deg, #1a0a0c 0%, #0a0a0a 55%, #000 100%);
  border: 1px solid rgba(230, 61, 76, 0.35);
  text-align: center;
}
.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 18px,
      rgba(230, 61, 76, 0.04) 18px,
      rgba(230, 61, 76, 0.04) 19px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(230, 61, 76, 0.04) 18px,
      rgba(230, 61, 76, 0.04) 19px
    );
  pointer-events: none;
}
.map-panel > * { position: relative; z-index: 1; }
.map-panel__mark {
  color: #e63d4c;
  font-size: 18px;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 18px rgba(230, 61, 76, 0.7);
}
.map-panel__title {
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 4px;
}
.map-panel__meta {
  color: #e63d4c;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.map-panel__line {
  width: 56px;
  height: 1px;
  margin: 0 auto 14px;
  background: linear-gradient(90deg, transparent, #e63d4c, transparent);
}
.map-panel p {
  margin: 0 0 8px;
  color: #d4d4d4;
  font-size: 14px;
}
.map-panel__note {
  margin: 0 !important;
  color: #8a8a8a !important;
  font-size: 12px !important;
}

.drops {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.win {
  background: var(--panel);
  border: 1px solid #242424;
  border-radius: var(--radius);
  overflow: hidden;
  transition-property: border-color, box-shadow;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-out);
}
.win.open {
  border-color: #333;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}
.win-btn {
  width: 100%;
  min-height: var(--hit);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--title);
  background: var(--panel-2);
  transition-property: background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out);
  user-select: text;
}
.win-btn:hover { background: #282828; }
.win-btn:active { transform: scale(0.995); }
.win-btn .chev { transition: transform 420ms var(--ease-out); }
.win.open .win-btn .chev {
  transform: rotate(225deg);
  color: var(--accent);
}

.win-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 500ms var(--ease-out);
}
.win.open .win-body { grid-template-rows: 1fr; }
.win-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 300ms var(--ease-in-out),
    transform 440ms var(--ease-out),
    padding 440ms var(--ease-out);
  padding: 0 15px;
}
.win:not(.open) .win-inner {
  transition-delay: 0s;
}
.win.open .win-inner {
  opacity: 1;
  transform: none;
  padding: 14px 15px 16px;
  transition-delay: 70ms, 50ms, 0s;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text);
  transition-property: border-color, color, transform;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out);
}
.tag:hover {
  border-color: #444;
  color: #fff;
  transform: translateY(-1px);
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 30;
  opacity: 0;
  animation: fade 200ms ease forwards;
}
@keyframes fade {
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(290px, 88vw);
    transform: translateX(-105%);
    transition: transform 280ms var(--ease);
  }
  .rail.open { transform: none; }
  .burger { display: grid; }
  .stage { padding: 16px 14px 56px; }
  .meta div { grid-template-columns: 1fr; gap: 2px; }
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: var(--hit);
  height: var(--hit);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #cfcfcf;
  background: transparent;
  transition-property: background-color, color, transform;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out);
}
.icon-btn:hover {
  background: #1c1c1c;
  color: #fff;
}
.icon-btn:active { transform: scale(0.96); }

.edit-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.edit-bar button {
  padding: 7px 10px;
  border-radius: 6px;
  background: #222;
  border: 1px solid #333;
  color: #eaeaea;
  font-size: 12px;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.edit-bar button:hover {
  background: #2a2a2a;
  border-color: #444;
}
.edit-bar button.ghost {
  background: transparent;
  color: var(--muted);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 12vh 16px 24px;
  animation: fade 180ms ease both;
}
.search-panel {
  width: min(560px, 100%);
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: rise 280ms var(--ease-out) both;
}
.search-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid #222;
  color: #888;
}
.search-head input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 16px;
  padding: 6px 0;
}
.search-head input::-webkit-search-cancel-button,
.search-head input::-webkit-search-decoration,
.search-head input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
  appearance: none;
}
.search-results {
  max-height: min(50vh, 420px);
  overflow: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a #161616;
}
.search-results::-webkit-scrollbar {
  width: 8px;
}
.search-results::-webkit-scrollbar-track {
  background: #161616;
  border-radius: 8px;
}
.search-results::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 8px;
  border: 2px solid #161616;
}
.search-results::-webkit-scrollbar-thumb:hover {
  background: #4a4a4a;
}
.search-empty {
  margin: 0;
  padding: 18px 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.search-hit {
  display: block;
  padding: 12px;
  border-radius: calc(var(--radius-sm) + 2px);
  transition-property: background-color;
  transition-duration: 140ms;
  transition-timing-function: var(--ease-out);
}
.search-hit:hover { background: #1c1c1c; }
.search-hit strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 4px;
  text-wrap: balance;
}
.search-hit span {
  display: block;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.45;
  text-wrap: pretty;
}

[hidden] { display: none !important; }
body.edit-login .app,
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  animation: fade 180ms ease both;
}
body.edit-login #editModal {
  background: #0b0b0b;
  backdrop-filter: none;
}
.login-card {
  width: min(416px, 100%);
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: rise 280ms var(--ease) both;
  text-align: center;
}
.login-card .login-label { text-align: left; }
.login-card .login-row { justify-content: center; }
.login-card.wide { width: min(640px, 100%); }
.login-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.login-label input,
.login-label textarea {
  background: #0e0e0e;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  color: #eee;
  padding: 10px 12px;
  font: inherit;
  outline: none;
  resize: vertical;
  transition: border-color 160ms var(--ease);
}
.login-label input:focus,
.login-label textarea:focus { border-color: #555; }
.login-brand { margin-bottom: 8px; }
.login-title {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #fff;
}
.login-btn {
  margin-top: 4px;
  min-height: var(--hit);
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--accent);
  border: 0;
  color: #fff;
  font-weight: 600;
  transition-property: background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out);
}
.login-btn:hover { background: #f04a58; }
.login-btn:active { transform: scale(0.96); }
.login-cancel {
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
}
.login-cancel:hover { color: #fff; }
.login-err {
  margin: 0;
  color: #c45c5c;
  font-size: 13px;
}
.login-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: smooth !important; }
  *,
  *::before,
  *::after {
    animation-duration: 0.45s !important;
    animation-delay: 0s !important;
    transition-duration: 0.3s !important;
    transition-delay: 0s !important;
    scroll-behavior: smooth !important;
  }
  .view > .hero,
  .view > .lead,
  .view > .box,
  .view > .drops,
  .view > .drops > .win {
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 720px) {
  .page, .shell, .content {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
  input, select, textarea, button {
    font-size: 16px !important;
    min-height: 2.75rem;
  }
  textarea { min-height: 6rem; }
}
