@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/manrope-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/manrope-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/manrope-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/manrope-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/manrope-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/manrope-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #2993d1;
  --accent-press: #1f7cb5;
  --accent-soft: #e7f4fb;
  --navy: #152c4a;
  --bg: #eef3f8;
  --card: #ffffff;
  --muted: #7b8da3;
  --line: #d7e3ee;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 16px 40px rgba(90, 130, 180, 0.14);
  --shadow-blue: 0 14px 28px rgba(41, 147, 209, 0.32);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  background: #e4ebf3;
  color: var(--navy);
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
}

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  transform: translateY(-120%);
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

.app {
  position: relative;
  width: min(100%, 420px);
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.app::before {
  content: none;
}

.login-screen,
#shell,
.reader {
  position: relative;
  z-index: 1;
}

#shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

#shell[hidden] {
  display: none;
}

#screens {
  flex: 1;
  overflow: auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px 96px;
}

.screen[hidden],
.reader[hidden] {
  display: none;
}

.login-screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: auto;
  padding: calc(24px + env(safe-area-inset-top)) 16px 32px;
}

.brand {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 12px auto 20px;
}

.login-card {
  padding: 28px 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 48px rgba(90, 130, 180, 0.16);
}

.mark svg {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 24px;
  box-shadow: var(--shadow-blue);
}

.top h1,
.panel-title,
.install h2,
.story span {
  text-wrap: balance;
}

.lead,
.panel-text,
.balance-note,
.install p,
.reader p {
  text-wrap: pretty;
}

.eyebrow,
.balance-label,
.panel-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1 {
  max-width: 680px;
  margin: 4px 0 0;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
}

.glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 999px;
  background: #e8f4fc;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(41, 147, 209, 0.08);
}

.glyph-lg {
  width: 48px;
  height: 48px;
}

.stories {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding: 18px 8px 10px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}

.stories::-webkit-scrollbar {
  display: none;
}

.story {
  flex: 0 0 auto;
  width: 76px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  cursor: pointer;
}

.story > span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border: 2.5px solid transparent;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, #8fd0f2, #2993d1 48%, #155f96) border-box;
  color: var(--accent);
  box-shadow: 0 10px 22px rgba(41, 147, 209, 0.24);
  transition: transform 180ms var(--ease);
}

.story-ring img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.story:hover .story-ring {
  box-shadow: 0 8px 16px rgba(41, 147, 209, 0.28);
}

.balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 24px;
  border-radius: 28px;
  background: var(--card);
  color: var(--navy);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 44px rgba(90, 130, 180, 0.16);
}

.balance-copy {
  min-width: 0;
}

.balance-ring {
  width: 88px;
  height: 88px;
  flex: none;
  filter: drop-shadow(0 8px 12px rgba(41, 147, 209, 0.28));
}

.balance-label {
  color: var(--accent);
}

.balance-value {
  display: block;
  margin-top: 8px;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.balance-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.pill {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  background: #e7f6ee;
  color: #1c7a45;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.pill.warn {
  background: #fde8e8;
  color: #9c2f2f;
}

.pay-main,
#chrome-install,
.button-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.pay-main,
#chrome-install {
  background: linear-gradient(180deg, #49b0ea 0%, #1d78c0 100%);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.button-secondary {
  background: #fff;
  color: var(--accent-press);
  box-shadow: var(--shadow);
}

.pay-main:hover,
#chrome-install:hover {
  background: linear-gradient(180deg, #3aa3e0 0%, #176aab 100%);
}

.button-secondary:hover {
  background: #d4ebf7;
}

.pay-main:active,
#chrome-install:active,
.button-secondary:active,
.quick button:active,
.service:active,
.method:active,
.story:active,
.list button:active,
.back:active {
  transform: scale(0.98);
}

.pay-main:focus-visible,
#chrome-install:focus-visible,
.button-secondary:focus-visible,
.quick button:focus-visible,
.service:focus-visible,
.method:focus-visible,
.story:focus-visible,
.list button:focus-visible,
.back:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pay-main:disabled {
  opacity: 0.72;
  cursor: progress;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #f7fafc;
  color: var(--navy);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #e4edf5;
}

.login-screen input {
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -1px 0 #d5e2ee;
}

.remember {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.remember input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: var(--accent);
  box-shadow: none;
}

.form-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.form-error {
  margin: 0;
  color: #9c2f2f;
  font-size: 14px;
  line-height: 20px;
}

.quick {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.quick button,
.service,
.method,
.panel,
.list button {
  border: 0;
  background: var(--card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}

.quick button:hover,
.service:hover,
.method:hover,
.list button:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.quick-wide,
.service-wide,
.method,
.panel {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border-radius: 24px;
}

.quick-copy,
.service-copy,
.method-copy,
.panel-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.quick strong,
.service strong,
.method strong,
.panel-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.quick-copy > span,
.service-copy > span,
.service-row .service > span,
.method-copy > span,
.panel-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.caret {
  color: var(--muted);
}

.quick-row,
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick-row button,
.service-row .service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 148px;
  padding: 16px;
  border-radius: 24px;
}

.services,
.help-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.help-actions .method {
  margin: 0;
}

.note-ok {
  margin: 0;
  color: #1c7a45;
  font-size: 14px;
  line-height: 20px;
}

.panel {
  margin-top: 16px;
}

.panel .pay-main,
.panel #pay-qr {
  flex: 1 0 100%;
  margin-top: 8px;
}

.panel {
  flex-wrap: wrap;
}

.tariff-link {
  flex: 1 0 100%;
  margin: 4px 0 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pay-sheet {
  align-items: stretch;
}

#pay-qr,
#pay-qr-slot svg {
  width: min(100%, 220px);
  height: auto;
  margin-top: 8px;
  border-radius: 16px;
  background: #fff;
}

.tariff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.tariff-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tariff-option[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px var(--accent), var(--shadow);
}

.tariff-option:disabled {
  opacity: 0.55;
  cursor: default;
}

.reader .remember {
  margin-top: 20px;
}

.tariff-option strong {
  display: block;
  font-size: 16px;
  line-height: 24px;
}

.tariff-option span {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.story-view {
  position: absolute;
  inset: 0;
  z-index: 6;
  background:
    radial-gradient(circle at 80% 18%, rgba(73, 176, 234, 0.42), transparent 28%),
    #101820;
  color: #fff;
  overflow: hidden;
}

.story-bars {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 4px;
  padding: calc(12px + env(safe-area-inset-top)) 12px 0;
}

.story-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-bar {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.story-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

.story-bar.done i {
  transform: scaleX(1);
}

.story-bar.active i {
  animation: story-fill 6s linear forwards;
}

.story-view.paused .story-bar.active i {
  animation-play-state: paused;
}

.story-close {
  position: absolute;
  top: calc(24px + env(safe-area-inset-top));
  left: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
}

.story-stage {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 48px;
  z-index: 1;
}

.story-kicker {
  margin: 0;
  color: #9fd4f2;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.story-stage h2 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.story-stage p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}

.story-view.has-photo .story-stage {
  padding: 72px 8px 12px;
  background: linear-gradient(transparent, rgba(8, 16, 28, 0.72) 42%);
}

.story-view.has-photo .story-stage h2 {
  font-size: 22px;
  line-height: 28px;
}

.story-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 30%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.story-hit-prev {
  left: 0;
}

.story-hit-next {
  right: 0;
  width: 70%;
}

@keyframes story-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

#pay-qr {
  width: min(100%, 240px);
  border-radius: 16px;
}

.section-title {
  margin: 32px 0 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.empty {
  margin: 12px 0 0;
  padding: 24px 16px;
  border-radius: 16px;
  background: var(--card);
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.fields {
  display: flex;
  flex-direction: column;
  margin: 24px 0 0;
}

.fields dt,
.fields dd {
  margin: 0;
}

.fields dt {
  padding: 12px 16px 0;
  border-radius: 16px 16px 0 0;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.fields dd {
  margin-bottom: 8px;
  padding: 4px 16px 12px;
  border-radius: 0 0 16px 16px;
  background: var(--card);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.banner,
.install {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--card);
  font-size: 14px;
  line-height: 20px;
}

.install h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}

.install ol {
  margin: 12px 0 0;
  padding-left: 16px;
}

.text-link,
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-press);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
}

.reader {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px 32px;
  background: var(--bg);
}

.reader h1 {
  font-size: 30px;
  line-height: 36px;
}

.reader p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 24px;
}

.tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 18px 8px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(238, 243, 248, 0) 0%, var(--bg) 36%);
}

.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  padding: 0;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
}

.tabs button:focus,
.tabs button:focus-visible,
.tabs button:active {
  outline: none;
  transform: none;
}

.tab-glyph {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(90, 130, 180, 0.12);
}

.tabs .icon {
  width: 22px;
  height: 22px;
  padding: 0;
  background: none;
  box-shadow: none;
}

.tabs button[aria-selected="true"] {
  color: var(--accent-press);
}

.tabs button[aria-selected="true"] .tab-glyph {
  background: linear-gradient(180deg, #49b0ea 0%, #1d78c0 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(41, 147, 209, 0.22);
}

.screen:not([hidden]) {
  animation: screen-in 180ms ease-out;
}

@keyframes screen-in {
  from {
    opacity: 0.82;
  }

  to {
    opacity: 1;
  }
}

textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border: 0;
  border-radius: 20px;
  background: #f7fafc;
  color: var(--navy);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #e4edf5;
  resize: vertical;
}

.admin-only {
  display: none;
}

body.is-admin .admin-only {
  display: block;
}

body.is-admin .subscriber-only {
  display: none !important;
}

body.is-admin .tabs {
  grid-template-columns: repeat(3, 1fr);
}

.story-ring.add {
  color: var(--accent-press);
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
}

.story-delete {
  position: absolute;
  top: calc(24px + env(safe-area-inset-top));
  right: 12px;
  z-index: 4;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
}

.story-create {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: hidden;
  background: #101820;
  color: #fff;
}

.story-create video,
#story-edit-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-create-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.story-shutter {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  background: radial-gradient(circle, #fff 0 27px, #101820 28px 33px, #fff 34px);
  cursor: pointer;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

a.account-chip {
  text-decoration: none;
  color: inherit;
}

#switch-account {
  margin-top: 20px;
}

.account-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.account-chip strong {
  font-size: 16px;
  line-height: 24px;
}

.account-chip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.account-chip.is-active {
  box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-blue);
}

#add-account {
  margin-top: 16px;
}

.story-gallery,
#story-flip {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  cursor: pointer;
}

.story-gallery input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.story-aa {
  position: absolute;
  top: calc(24px + env(safe-area-inset-top));
  right: 12px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.story-overlay {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 3;
  max-width: 86%;
  transform: translate(-50%, -50%);
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  text-align: center;
  outline: none;
  cursor: grab;
}

.story-overlay:empty::before {
  content: "Напишите";
  color: rgba(255, 255, 255, 0.72);
}

.story-share {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 4;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  background: #fff;
  color: #101820;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  cursor: pointer;
}

.story-create-error {
  position: absolute;
  top: calc(76px + env(safe-area-inset-top));
  left: 24px;
  right: 24px;
  z-index: 4;
  margin: 0;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

@media (min-width: 760px) {
  body {
    padding: 32px 16px;
  }

  .app {
    height: min(860px, calc(100dvh - 64px));
    border-radius: 24px;
    box-shadow: var(--shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-bar.active i {
    animation: none;
    transform: scaleX(1);
  }

  .pay-main,
  .button-secondary,
  .quick button,
  .service,
  .method,
  .list button,
  .tabs button {
    animation: none;
    transition: opacity 300ms var(--ease);
  }

  .pay-main:active,
  .button-secondary:active,
  .quick button:active,
  .service:active,
  .method:active {
    transform: none;
    opacity: 0.8;
  }
}
