:root {
  --bg: #050915;
  --bg-2: #07111f;
  --panel: rgba(8, 22, 42, 0.9);
  --panel-2: rgba(11, 31, 56, 0.78);
  --line: rgba(134, 225, 255, 0.24);
  --line-strong: rgba(117, 234, 255, 0.62);
  --text: #f3fbff;
  --heading: #c6eaff;
  --heading-strong: #d4f6ff;
  --muted: #9eb3c7;
  --cyan: #65e7ff;
  --blue: #2f8cff;
  --green: #66e6a5;
  --warn: #ffc857;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(4, 9, 20, 0.2), rgba(5, 9, 21, 0.92) 54%, #050915),
    repeating-linear-gradient(90deg, rgba(101, 231, 255, 0.035) 0, rgba(101, 231, 255, 0.035) 1px, transparent 1px, transparent 78px),
    var(--bg);
  overflow-x: hidden;
}

html.story-open,
body.story-open {
  height: 100%;
  overflow: hidden;
}

button,
summary {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.app-shell {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: calc(max(14px, env(safe-area-inset-top)) + 72px) 14px calc(116px + env(safe-area-inset-bottom));
}

.app-shell.info-page-shell {
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}

.app-shell.agreement-shell {
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.telegram-topbar {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  z-index: 20;
  isolation: isolate;
  display: grid;
  grid-template-columns: 56px 1fr 92px;
  gap: 10px;
  align-items: center;
  width: min(calc(100% - 28px), 432px);
  transform: translateX(-50%);
}

.telegram-topbar::before {
  content: "";
  position: absolute;
  inset: -16px -18px -34px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 9, 21, 0.96),
    rgba(5, 9, 21, 0.74) 44%,
    rgba(5, 9, 21, 0.3) 76%,
    rgba(5, 9, 21, 0)
  );
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.round-action,
.action-pill,
.brand-pill,
.pinned-strip,
.message-bubble,
.launch-panel,
.split-panels article,
.info-card,
.page-panel,
.details-panel details {
  border: 1px solid rgba(101, 231, 255, 0.16);
  background: linear-gradient(180deg, rgba(8, 22, 42, 0.9), rgba(5, 12, 24, 0.95));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(101, 231, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.round-action {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.round-action svg,
.action-pill svg,
.bottom-cta svg,
.story-header button svg,
.bubble-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.round-action svg {
  width: 31px;
  height: 31px;
  transform: translateX(-1px);
}

.brand-pill {
  min-width: 0;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px 8px 9px;
  border-radius: 30px;
}

.brand-logo,
.story-header img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.brand-pill div {
  min-width: 0;
}

.brand-pill strong {
  display: block;
  font-size: 19px;
  line-height: 1.05;
}

.brand-pill .brand-title {
  font-size: 22px;
}

.brand-status-pill {
  justify-content: flex-start;
}

.brand-status-pill .brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.top-status {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.brand-pill .top-status strong {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
  text-shadow: 0 0 16px rgba(101, 231, 255, 0.2);
}

.brand-pill span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-pill {
  height: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  border-radius: 30px;
}

.action-pill button,
.story-header button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.pinned-strip {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: center;
  padding: 13px 16px;
  border-radius: 28px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38), inset 0 0 24px rgba(47, 140, 255, 0.08);
}

.pin-line {
  width: 6px;
  height: 52px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), rgba(47, 140, 255, 0.25));
  box-shadow: 0 0 18px rgba(101, 231, 255, 0.52);
}

.pinned-strip strong,
.message-bubble h2,
.section-head h2,
.details-panel summary {
  margin: 0;
  color: var(--heading);
  font-size: 20px;
  line-height: 1.12;
  text-shadow: 0 0 18px rgba(101, 231, 255, 0.12);
}

.pinned-strip p,
.message-bubble p,
.split-panels p,
.info-card p,
.content-page p,
.details-panel p,
.hero-copy p,
.step-list p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.38;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 470px;
  padding: 20px 18px 0;
  border-radius: 34px;
  border: 1px solid rgba(101, 231, 255, 0.18);
  background: linear-gradient(90deg, #07111f 0%, #07111f 64%, #0a1d32 100%);
  box-shadow:
    0 24px 100px rgba(0, 0, 0, 0.48),
    inset -72px 0 96px rgba(101, 231, 255, 0.075),
    inset 0 0 28px rgba(0, 0, 0, 0.22);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 58%, rgba(101, 231, 255, 0.06) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-pill,
.split-panels span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 99px;
  color: #b8f6ff;
  background: rgba(101, 231, 255, 0.12);
  border: 1px solid rgba(101, 231, 255, 0.22);
  font-size: 12px;
}

.hero-copy h1 {
  margin: 13px 0 0;
  color: var(--heading-strong);
  font-size: 48px;
  line-height: 0.98;
  font-weight: 800;
  text-shadow: 0 0 22px rgba(101, 231, 255, 0.16);
}

.hero-copy p {
  max-width: 330px;
  font-size: 17px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 278px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-visual img {
  width: min(76%, 290px);
  max-height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.58));
}

.signal-card {
  position: absolute;
  min-width: 86px;
  padding: 9px 13px;
  border: 1px solid rgba(101, 231, 255, 0.26);
  border-radius: 20px;
  background: rgba(8, 20, 36, 0.8);
  box-shadow: 0 0 32px rgba(101, 231, 255, 0.16);
}

.signal-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.signal-card strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.signal-profit {
  left: 5px;
  bottom: 86px;
}

.signal-risk {
  right: 4px;
  bottom: 30px;
}

.home-section + .home-section {
  margin-top: 20px;
}

.stories-section,
.strategies-section,
.info-section {
  margin-top: 14px;
  scroll-margin-top: 96px;
}

.stories-section .section-head,
.strategies-section .section-head,
.info-section .section-head {
  min-height: auto;
  margin-bottom: 14px;
  padding: 0 2px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.section-head-left {
  justify-content: flex-start;
}

.section-head-center {
  justify-content: center;
  margin-bottom: 14px;
}

.section-pill {
  min-height: 32px;
  padding: 6px 13px;
  font-weight: 700;
}

.section-label {
  display: block;
  color: var(--heading);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.12;
  text-shadow: 0 0 18px rgba(101, 231, 255, 0.12);
}

.story-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74px;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}

.story-rail::-webkit-scrollbar {
  display: none;
}

.story-button {
  min-width: 74px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: center;
}

.story-button span {
  position: relative;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  border-radius: 50%;
  background: rgba(9, 24, 45, 0.72);
  box-shadow: 0 0 12px rgba(101, 231, 255, 0.08);
}

.story-button span::before,
.story-button span::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}

.story-button span::before {
  inset: 0;
  background: linear-gradient(140deg, rgba(101, 231, 255, 0.28), rgba(47, 140, 255, 0.18) 52%, rgba(10, 20, 48, 0.24));
  opacity: 0.52;
}

.story-button span::after {
  inset: 2px;
  background: #07111f;
}

.story-button:first-child span::before {
  background: conic-gradient(from 0deg, var(--cyan), var(--blue), #b6fbff, var(--cyan));
  opacity: 1;
  animation: storyRingSpin 4s linear infinite;
}

.story-button img {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #07111f;
}

.story-button b {
  display: block;
  min-height: 30px;
  font-size: 12px;
  line-height: 1.16;
  color: #d6e7f4;
}

.story-button:first-child b {
  color: #f3fbff;
}

.message-stack {
  display: grid;
  gap: 12px;
}

.message-bubble {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 28px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4), inset 0 0 26px rgba(47, 140, 255, 0.08);
}

.message-bubble.wide {
  grid-template-columns: 48px 1fr;
  align-items: start;
}

.message-bubble.alt {
  border-color: rgba(102, 230, 165, 0.15);
  background: linear-gradient(180deg, rgba(8, 26, 32, 0.9), rgba(5, 14, 20, 0.95));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(102, 230, 165, 0.02);
}

.bubble-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(101, 231, 255, 0.1);
  border: 1px solid rgba(101, 231, 255, 0.2);
}

.launch-panel {
  padding: 16px;
  border-radius: 28px;
}

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

.step-list li {
  min-height: 58px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 11px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 22px;
  background: rgba(6, 22, 42, 0.66);
  border: 1px solid rgba(101, 231, 255, 0.1);
}

.step-list span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06101e;
  background: var(--cyan);
  font-weight: 800;
}

.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.split-panels article {
  min-height: 154px;
  padding: 15px;
  border-radius: 28px;
}

.split-panels strong {
  display: block;
  margin-top: 14px;
  font-size: 34px;
  line-height: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  min-height: 176px;
  padding: 15px;
  border-radius: 28px;
  text-align: left;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* info-card-referral inherits default info-card blue styling */

.info-card span,
.page-panel span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 99px;
  color: #b8f6ff;
  background: rgba(101, 231, 255, 0.1);
  border: 1px solid rgba(101, 231, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.info-card strong {
  display: block;
  min-height: 56px;
  margin-top: 14px;
  color: var(--heading-strong);
  font-size: 25px;
  line-height: 1.04;
  text-shadow: 0 0 18px rgba(101, 231, 255, 0.14);
}

.info-card p {
  font-size: 14px;
  line-height: 1.32;
}

.content-page {
  display: grid;
  gap: 12px;
}

.info-page-shell .content-page {
  padding-top: 4px;
}

.content-page[hidden] {
  display: none;
}

.content-page h1 {
  margin: 2px 0 0;
  color: var(--heading-strong);
  font-size: 34px;
  line-height: 1.02;
  text-shadow: 0 0 22px rgba(101, 231, 255, 0.14);
}

.page-lead {
  max-width: 380px;
  font-size: 17px;
}

.strategy-hero-image {
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid rgba(101, 231, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.page-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 28px;
}

.info-page-shell .page-panel {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(101, 231, 255, 0.23);
}

.page-panel-accent {
  border-color: rgba(101, 231, 255, 0.42);
  background: linear-gradient(180deg, rgba(12, 32, 62, 0.9), rgba(6, 16, 32, 0.95));
  box-shadow: 0 20px 78px rgba(0, 0, 0, 0.42), inset 0 0 28px rgba(101, 231, 255, 0.12);
}

.info-page-shell .page-panel-accent {
  border-color: rgba(101, 231, 255, 0.48);
  box-shadow: none;
}

.page-panel h2 {
  margin: 0;
  color: var(--heading);
  font-size: 25px;
  line-height: 1.08;
  text-shadow: 0 0 18px rgba(101, 231, 255, 0.12);
}

.page-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-list li {
  position: relative;
  padding-left: 20px;
  color: #d7e8f5;
  line-height: 1.34;
}

.page-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(101, 231, 255, 0.34);
}

.page-note {
  padding-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.details-panel {
  display: grid;
  gap: 10px;
}

.details-panel details {
  border-radius: 22px;
  padding: 14px 16px;
}

.details-panel summary {
  cursor: pointer;
  list-style: none;
}

.details-panel summary::-webkit-details-marker {
  display: none;
}

.bottom-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5, 9, 21, 0.98), #050915 58%);
  isolation: isolate;
}

.cta-button {
  width: min(100%, 430px);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  color: #06101e;
  background: linear-gradient(135deg, var(--cyan), #d8fbff);
  box-shadow: 0 12px 46px rgba(101, 231, 255, 0.28);
  font-weight: 800;
}

.cta-button svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 50%;
  color: #eaffff;
  background: #06101e;
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  background: #050915;
}

.story-modal.is-open {
  display: flex;
}

.story-viewer {
  width: min(100vw, 56.3vh);
  width: min(100vw, 56.3dvh);
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: #06101e;
  box-shadow: none;
  touch-action: manipulation;
}

.story-progress {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(var(--segments, 1), 1fr);
  gap: 5px;
}

/* Animations & Micro-interactions */
.round-action:active,
.action-pill button:active,
.story-button:active,
.info-card:active,
.page-panel:active,
.cta-button:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

.round-action,
.action-pill button,
.story-button,
.info-card,
.page-panel,
.cta-button {
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Glowing CTA Button */
.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.cta-button:active::after {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0s, transform 0s;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 12px 46px rgba(101, 231, 255, 0.28); }
  50% { box-shadow: 0 12px 56px rgba(101, 231, 255, 0.5); }
  100% { box-shadow: 0 12px 46px rgba(101, 231, 255, 0.28); }
}

.cta-button {
  animation: pulse-glow 3s infinite alternate ease-in-out;
}

/* System Status Indicator */
.system-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(101, 231, 255, 0.1);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(101, 231, 255, 0.2);
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Smooth Accordion */
details {
  transition: background 0.3s ease;
}

details[open] {
  background: rgba(101, 231, 255, 0.05);
}

details summary {
  outline: none;
  position: relative;
}

details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--cyan);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

details p {
  opacity: 0;
  animation: fade-in-down 0.3s ease forwards;
}

@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tron Hero Background Enhancement */
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 66%, rgba(47, 140, 255, 0.05) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Strategies Carousel */
.strategy-carousel {
  display: block;
  padding: 0;
}

.strategy-carousel::-webkit-scrollbar {
  display: none;
}

.strategy-card {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(101, 231, 255, 0.2);
  background: linear-gradient(180deg, rgba(8, 22, 42, 0.9), rgba(5, 12, 24, 0.95));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(101, 231, 255, 0.05);
  display: grid;
  align-content: start;
  gap: 8px;
  text-decoration: none;
}

.strategy-card.single-strategy {
  width: 100%;
}

.strategy-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(101, 231, 255, 0.3), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.strategy-card strong {
  font-size: 22px;
  color: var(--heading-strong);
  text-shadow: 0 0 12px rgba(101, 231, 255, 0.15);
}

.strategy-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.strategy-stats {
  margin-top: 8px;
  display: inline-flex;
  padding: 4px 8px;
  background: rgba(101, 231, 255, 0.1);
  border-radius: 12px;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
  width: fit-content;
}

.story-progress span {
  position: relative;
  overflow: hidden;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
}

.story-progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
}

.story-progress .is-seen::after {
  transform: scaleX(1);
}

.story-progress .is-active::after {
  animation: storyProgressFill var(--story-progress-duration, 5200ms) linear forwards;
}

.story-progress .is-active.is-paused::after {
  animation-play-state: paused;
}

@keyframes storyProgressFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.story-header {
  position: absolute;
  top: calc(max(12px, env(safe-area-inset-top)) + 14px);
  left: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
}

.story-header strong,
.story-header span {
  display: block;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.76);
}

.story-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.story-header button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.story-media {
  position: absolute;
  inset: 0;
}

.story-media img,
.story-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 32%, transparent 68%, rgba(0, 0, 0, 0.5));
}

.story-sound-hint {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 4;
  max-width: calc(100% - 42px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.story-sound-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.story-footer {
  display: none;
}

.story-footer button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

@keyframes storyRingSpin {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 370px) {
  .app-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .telegram-topbar {
    grid-template-columns: 50px 1fr 82px;
    gap: 7px;
    width: calc(100% - 20px);
  }

  .round-action,
  .action-pill {
    height: 50px;
  }

  .round-action {
    width: 50px;
  }

  .brand-pill {
    height: 52px;
    gap: 8px;
    padding: 7px 11px 7px 8px;
  }

  .brand-pill strong {
    font-size: 17px;
  }

  .brand-pill .top-status strong {
    font-size: 13px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .split-panels {
    grid-template-columns: 1fr;
  }
}
