html.app-mobile {
  --app-width: 430px;
  --app-yellow: #ffda00;
  --app-lime: #d4ff08;
  background: #e9e9eb;
  scroll-padding-bottom: 110px;
}
.app-mobile body {
  width: min(100%, var(--app-width));
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  background: var(--app-yellow);
  color: #080808;
}
@media (min-width: 600px) {
  html.app-mobile { --app-width: 390px; }
  .app-mobile body { box-shadow: 0 0 0 1px #0001; }
}
.app-mobile .top { background: #090909; }
.app-mobile .top-inner {
  height: 77px;
  padding: 0 20px;
}
.app-mobile .brand { gap: 10px; font-size: 21px; }
.app-mobile .brand-mark { width: 38px; height: 38px; }
.app-mobile .top-workshop { display: none; }
.app-mobile .shell {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 calc(120px + env(safe-area-inset-bottom, 0px));
}
.app-mobile .sample-card, .app-mobile #analytics { display: none; }
.app-mobile .step-line {
  background: #090909;
  color: white;
  padding: 0 20px 14px;
  margin: 0;
}
.app-mobile .segments i { background: #4a4a4a; }
.app-mobile .segments i.active { background: var(--app-lime); }
.app-mobile .work { background: linear-gradient(#090909 0 50px, transparent 50px); }
.app-mobile .panel {
  margin: 0;
  padding: 22px 20px 26px;
  border: 0;
  border-radius: 32px;
  background: white;
}
.app-mobile .panel h1 {
  font-size: clamp(36px, 10.77cqw, 46px);
  letter-spacing: -.055em;
  line-height: 1.04;
}
.app-mobile .panel .intro { font-size: 15px; line-height: 1.44; }
.app-mobile .primary, .app-mobile .secondary { min-height: 52px; border-radius: 28px; }
.app-mobile #preview .buttons {
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  gap: 8px;
}
.app-mobile #preview .buttons button {
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  font-size: 14px;
}
.app-mobile #begin-payment { flex-direction: column; gap: 2px; }
.app-mobile #preview-price { white-space: nowrap; }
.app-mobile #preview .video-frame { margin: 12px 0 8px; }
.app-mobile #preview .scene-review { padding: 5px 0; }
.app-mobile :is(.field input,.field select,textarea) { font-size: 16px; }
.app-mobile .archive .order-list { display: grid; grid-template-columns: minmax(0,1fr); }
.app-mobile .archive .order-card { grid-template-columns: minmax(74px, 31%) minmax(0,1fr); }
.app-mobile .archive h2 { overflow-wrap: anywhere; }
.app-mobile :is(.scene-choice, .scene-photo-tools, .checkout-card) { min-width: 0; }
.app-mobile #home-player { width: min(calc(100vw - 24px), 410px); }
.app-mobile .dock {
  width: min(calc(100% - 24px), calc(var(--app-width) - 24px));
  height: 74px;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  padding: 0 10px;
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  gap: 0;
  border-radius: 48px;
  background: #090909;
  box-shadow: 0 3px 14px #0002;
}
.app-mobile .dock a {
  justify-self: stretch;
  min-width: 0;
  min-height: 64px;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -.025em;
  gap: 4px;
  text-align: center;
}
.app-mobile .dock a[aria-current="page"] { color: var(--app-lime); }
.app-mobile .dock #menu-create {
  width: 84px;
  height: 84px;
  align-self: center;
  justify-self: center;
  margin-block: -5px;
  gap: 6px;
  background: white;
  border: 0;
  color: #080808;
  box-shadow: 0 3px 8px #0002;
}
.app-mobile .dock #menu-create[aria-current="page"] { box-shadow: inset 0 0 0 3px var(--app-lime); }
.app-mobile .dock svg { display: none; }
.app-mobile #menu-home::before,
.app-mobile #menu-orders::before,
.app-mobile .dock-plus {
  content: "";
  display: block;
  background: currentColor;
  mask: var(--dock-icon) center / contain no-repeat;
}
.app-mobile #menu-home::before { --dock-icon: url('/mobile/home.svg'); width: 27px; height: 26px; }
.app-mobile #menu-orders::before { --dock-icon: url('/mobile/library.svg'); width: 30px; height: 25px; }
.app-mobile .dock-plus { --dock-icon: url('/mobile/create.svg'); width: 24px; height: 24px; }
.app-home .home-main { background: linear-gradient(#090909 0 48px, transparent 48px); padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.home-feature { overflow: hidden; border-radius: 38px; background: white; }
.home-feature-title { padding: 19px 24px 12px; }
.home-feature-title p { font-size: 17px; line-height: 23px; font-weight: 630; letter-spacing: -.025em; }
.home-feature-title h1 { margin-top: 4px; font-size: clamp(35px, 10.77cqw, 46px); line-height: 1.13; font-weight: 660; letter-spacing: -.048em; }
.home-film { position: relative; aspect-ratio: 390 / 336; }
.home-film-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.gift-callout { position: absolute; top: 9.5%; left: 4.1%; display: grid; gap: 3px; padding: 8px 12px; border-radius: 14px; background: white; box-shadow: 0 2px 6px #0003; }
.gift-callout strong { font-size: 14px; line-height: 17px; }
.gift-callout span { font-size: 12px; line-height: 16px; color: #454541; }
.gift-callout::after { content: ''; position: absolute; z-index: 1; pointer-events: none; left: 54%; top: 100%; width: 22px; height: 48px; background: url('/mobile/leader.svg') center / contain no-repeat; }
.gift-callout::before { content: ''; position: absolute; z-index: 2; pointer-events: none; left: calc(54% + 15px); top: calc(100% + 41px); width: 10px; height: 10px; background: url('/mobile/dot.svg') center / contain no-repeat; }
#home-example { position: absolute; left: 16px; bottom: 12px; display: inline-flex; align-items: center; min-height: 48px; color: white; }
#home-example span { display: inline-flex; align-items: center; gap: 6px; background: #050505; border-radius: 24px; padding: 8px 12px; font-weight: 650; font-size: 12px; line-height: 16px; }
.home-content { padding: 24px 16px 0; }
.first-film, .recent-film { background: white; border-radius: 24px; padding: 16px; position: relative; display: block; }
.first-film { min-height: 126px; }
.first-film h2, .home-section-title { font-size: 24px; line-height: 1.1; font-weight: 700; letter-spacing: -.045em; }
.first-film h2 { padding-right: 24px; }
.first-film p { margin: 13px 0 0; max-width: 29ch; font-size: 16px; line-height: 22px; }
.first-film-price { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; }
.card-forward { width: 22px; height: 22px; display: block; }
.first-film .card-forward { position: absolute; top: 18px; right: 16px; }
.recent-film { display: grid; grid-template-columns: 88px minmax(0,1fr) 22px; align-items: center; padding: 9px 13px 9px 9px; gap: 12px; }
.recent-thumb { width: 88px; height: 82px; border-radius: 16px; object-fit: cover; }
.recent-copy { display: grid; gap: 5px; }
.recent-copy strong { font-size: 23px; line-height: 1.06; letter-spacing: -.04em; overflow-wrap: anywhere; }
.recent-copy small { color: #54554e; }
.recent-state { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.recent-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #969180; }
.recent-state[data-status="ready"]::before { background: #6b9000; }
.home-section-title { margin: 0 4px 12px; }
.home-formats { margin: 8px 0 20px; }
.home-formats summary { min-height: 54px; display: flex; align-items: center; gap: 7px; padding: 0 4px; cursor: pointer; font-size: 20px; font-weight: 650; letter-spacing: -.04em; list-style: none; }
.home-formats summary::-webkit-details-marker { display: none; }
.home-formats summary strong { margin-left: auto; font-size: 18px; font-weight: 700; }
.home-formats summary::after { content: ''; width: 7px; height: 7px; margin: -4px 2px 0 3px; border-right: 1.8px solid; border-bottom: 1.8px solid; transform: rotate(45deg); }
.home-formats[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.format-list { display: grid; background: white; border-radius: 22px; padding: 0 16px; }
.format-list a, .format-soon { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.format-list a + a { border-top: 1px solid #e8e7df; }
.format-list a span, .format-soon span { display: grid; gap: 3px; }
.format-list a small, .format-options, .format-soon { color: #54554e; }
.format-list a b { white-space: nowrap; }
.format-options { padding: 0 0 12px; line-height: 1.4; font-size: 13px; }
.format-soon { border-top: 1px solid #e8e7df; }
.home-ideas-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.home-ideas-grid a { min-width: 0; overflow: hidden; border-radius: 20px; background: white; }
.home-ideas-grid img { width: 100%; height: auto; aspect-ratio: 1.5; display: block; object-fit: cover; }
.home-ideas-grid span { display: grid; padding: 11px 12px 14px; gap: 6px; }
.home-ideas-grid strong { font-size: 17px; line-height: 1.12; letter-spacing: -.035em; }
.home-ideas-grid small { font-size: 13px; line-height: 1.34; color: #50514c; }
#idea-letter img { object-position: center 48%; }
#idea-wish img { object-position: 50% 56%; }
.player-file { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: underline; }
#player-close { font-size: 26px; line-height: 1; }
@media (max-width: 349px) {
  .app-mobile .top-inner { height: 66px; padding-inline: 16px; }
  .app-mobile .panel { padding-inline: 15px; }
  .app-mobile .dock { height: 66px; grid-template-columns: 1fr 74px 1fr; }
  .app-mobile .dock #menu-create { width: 74px; height: 74px; }
  .app-mobile .dock a { font-size: 13px; }
  .home-feature-title { padding-inline: 20px; }
  .home-content { padding: 16px 12px 0; }
}
