/* ফর্দ shell: cover, top bar, the book, index tabs, page turns, rickshaw, sheets, toast, tour. */

/* ---------- App frame ---------- */
.app {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--cloth);
  background-image: var(--weave), radial-gradient(120% 90% at 50% 0, var(--cloth-hi), var(--cloth) 55%, var(--cloth-lo));
}
.bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 2px var(--pad-r) 2px var(--pad-l);
  color: var(--on-cloth);
}
.logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--f-sign);
  font-size: 32px;
  line-height: 1;
}
.logo .foil {
  padding: 4px 4px 6px 0;
}
[data-lang='en'] .logo {
  font-size: 28px;
}
.bar-sub {
  display: none;
  font-size: 14.5px;
  color: var(--on-cloth-2);
}
.bar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 38px;
  padding: 2px 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-cloth);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 233, 190, 0.34);
  transition: background-color 0.15s;
}
.bar-btn.sq {
  padding: 0;
}
.bar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Book ---------- */
.book {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.spread-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  perspective: 1600px;
  perspective-origin: 0 50%;
}
.spread {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 12px 12px 0 0;
  scrollbar-width: thin;
}
.page {
  min-width: 0;
  background: var(--paper);
  position: relative;
}
.page-l {
  display: flex;
  flex-direction: column;
}
.app[data-tab='list'] .page-l {
  min-height: 100%;
}
.app[data-tab='list'] .page-r {
  display: none;
}
.page-r:empty {
  display: none;
}

/* Bazar mode gets the whole phone */
.app[data-mode='bazar'] .bar,
.app[data-mode='bazar'] .tabs {
  display: none;
}
.app[data-mode='bazar'] .spread {
  border-radius: 0;
}

/* ---------- Index tabs ---------- */
.tabs {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-inline: max(0px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
  background: transparent;
  overflow: hidden;
}
.tab-ind {
  position: absolute;
  top: 0;
  left: max(0px, env(safe-area-inset-left, 0px));
  width: calc((100% - max(0px, env(safe-area-inset-left, 0px)) - max(0px, env(safe-area-inset-right, 0px))) / 4);
  height: calc(100% - 7px);
  background: var(--paper);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 3px 0 rgba(30, 0, 8, 0.28);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 0.55s var(--spring);
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 62px;
  padding: 4px 2px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--on-cloth-2);
  transition: color 0.25s, transform 0.12s var(--ease);
}
.tab .i {
  width: 24px;
  height: 24px;
  transition: transform 0.45s var(--spring);
}
.tab.on {
  color: var(--ink);
  font-weight: 700;
}
.tab.on .i {
  transform: translateY(-1px) scale(1.1);
}
.tab:active {
  transform: scale(0.96);
}

/* Open-book spread from 1080px */
@media (min-width: 1080px) {
  .bar {
    padding: 8px 32px 4px;
    max-width: 1500px;
    width: 100%;
    margin-inline: auto;
  }
  .logo {
    font-size: 38px;
  }
  .bar-sub {
    display: block;
  }
  .book {
    width: min(calc(100% - 136px), 1380px);
    margin: 4px auto 26px;
    transform: translateX(-20px);
  }
  .spread {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: visible;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(60, 10, 20, 0.5), 2px 3px 0 var(--paper-2), 4px 6px 0 var(--paper-3), 6px 9px 0 var(--paper-2), 8px 12px 0 var(--paper-3), 0 22px 50px rgba(30, 0, 8, 0.55);
  }
  .page {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--paper-3) transparent;
  }
  .page-l {
    border-radius: 6px 0 0 6px;
    box-shadow: inset -34px 0 34px -34px rgba(40, 20, 40, 0.42);
  }
  .page-r,
  .app[data-tab='list'] .page-r {
    display: block;
    border-radius: 0 6px 6px 0;
    box-shadow: inset 34px 0 34px -34px rgba(40, 20, 40, 0.42);
    padding: 22px 34px 34px;
  }
  .page-r:empty {
    display: block;
  }
  .app[data-mode='bazar'] .bar,
  .app[data-mode='bazar'] .tabs {
    display: flex;
  }
  .app[data-mode='bazar'] .tabs {
    display: grid;
  }
  .app[data-mode='bazar'] .spread {
    border-radius: 6px;
  }
  .tabs {
    position: absolute;
    left: 100%;
    top: 34px;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 84px;
    padding-left: 5px;
    overflow: visible;
  }
  .tab-ind {
    display: none;
  }
  .tab {
    min-height: 74px;
    padding: 6px 4px;
    color: var(--on-cloth);
    background: var(--tabc);
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 3px 0 rgba(30, 0, 8, 0.32);
    transform-origin: left center;
    transition: transform 0.28s var(--ease), background-color 0.2s, color 0.2s;
  }
  .tab:nth-of-type(1) {
    --tabc: #c56a05;
  }
  .tab:nth-of-type(2) {
    --tabc: #0f6d4a;
  }
  .tab:nth-of-type(3) {
    --tabc: #0d5f8e;
  }
  .tab:nth-of-type(4) {
    --tabc: #5f2a9a;
  }
  .tab:hover {
    transform: translateX(5px);
  }
  .tab.on {
    background: var(--paper);
    color: var(--ink);
    transform: translateX(-5px);
    padding-left: 10px;
  }
}
@media (max-height: 480px) and (max-width: 1079px) {
  .bar {
    display: none;
  }
  .spread {
    border-radius: 0;
  }
  .tab {
    min-height: 46px;
    padding-bottom: 7px;
    flex-direction: row;
    gap: 6px;
  }
}

/* ---------- Page turn ---------- */
.turn {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  transform-style: preserve-3d;
}
.snap {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  width: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: block;
}
.turn-sheet {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  border-radius: 12px 12px 0 0;
}
.turn-sheet.fwd {
  transform-origin: left center;
  box-shadow: 18px 0 40px rgba(40, 10, 20, 0.28);
}
.turn-half,
.turn-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
}
.turn-half.l,
.turn-leaf.l {
  left: 0;
}
.turn-half.r,
.turn-leaf.r {
  left: 50%;
}
.turn-half .snap {
  display: flex;
}
.turn-leaf {
  overflow: visible;
  transform-style: preserve-3d;
}
.turn-leaf.r {
  transform-origin: left center;
}
.turn-leaf.l {
  transform-origin: right center;
}
.face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.face.b {
  transform: rotateY(180deg);
}

/* ---------- Rickshaw wipe ---------- */
.ride {
  position: fixed;
  inset: 0;
  z-index: 250;
  overflow: hidden;
  pointer-events: none;
}
.ride-curtain {
  position: absolute;
  inset: 0;
  background-color: var(--cloth);
  background-image: var(--weave), linear-gradient(90deg, var(--cloth-lo), var(--cloth) 40%, var(--cloth-hi));
  transform: translateX(-100%);
}
.ride-road {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 70px);
  height: 4px;
  opacity: 0;
  background: repeating-linear-gradient(90deg, var(--foil-2) 0 26px, transparent 26px 46px);
}
.ride-rick {
  position: absolute;
  top: calc(50% - 84px);
  left: 0;
  width: 256px;
  will-change: transform;
}
.rick {
  display: block;
  width: 100%;
  height: auto;
}
.whl {
  animation: spin 0.55s linear infinite;
}
.rk-man {
  transform-origin: 100px 40px;
  animation: pedal 0.5s ease-in-out infinite alternate;
}
.rk-body {
  animation: rickbob 0.22s ease-in-out infinite alternate;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pedal {
  to {
    transform: rotate(3deg) translateY(1.5px);
  }
}
@keyframes rickbob {
  to {
    transform: translateY(1px);
  }
}
.ride-bell {
  position: absolute;
  left: 58%;
  top: -18px;
  padding: 3px 12px 5px;
  font-family: var(--f-hand);
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--foil-ink);
  background: var(--foil-1);
  border-radius: 10px 10px 10px 2px;
  transform: rotate(-4deg);
}

/* ---------- Flyers + petals ---------- */
.flyer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 260;
  pointer-events: none;
  color: var(--ink);
  will-change: transform;
}
.flyer .glyph {
  width: 56px;
  height: 56px;
  display: block;
}
.fly-t {
  display: block;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}
.fly-tag {
  display: block;
  padding: 4px 12px 5px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
  background: var(--tint-y);
  border-radius: 3px;
  box-shadow: 0 5px 12px rgba(40, 10, 30, 0.32);
}
.petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 260;
  pointer-events: none;
}

/* ---------- Sheets ---------- */
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  animation: fadeIn 0.22s both;
}
.sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 94%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px 16px 0 0;
  padding: 6px var(--pad-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--pad-l);
  box-shadow: var(--shadow);
  animation: sheetUp 0.46s var(--spring) both;
  transition: transform 0.28s var(--ease);
  scrollbar-width: thin;
}
.grab {
  width: 44px;
  height: 5px;
  margin: 4px auto 10px;
  border-radius: 3px;
  background: var(--paper-3);
  touch-action: none;
  cursor: grab;
}
.sheet-drag {
  touch-action: none;
}
.closing .scrim {
  animation: fadeOut 0.22s both;
}
.closing .sheet {
  animation: sheetDown 0.22s cubic-bezier(0.5, 0, 0.9, 0.5) both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
  }
}
@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
}
@keyframes sheetDown {
  to {
    transform: translateY(100%);
  }
}
@media (min-width: 720px) {
  .sheet-wrap {
    align-items: center;
    padding: 24px;
  }
  .sheet {
    max-width: 480px;
    max-height: 100%;
    border-radius: 12px;
    padding: 12px 20px 20px;
    animation-name: dialogIn;
  }
  .grab {
    display: none;
  }
  .closing .sheet {
    animation-name: dialogOut;
  }
  @keyframes dialogIn {
    from {
      opacity: 0;
      transform: translateY(26px) scale(0.95) rotate(-0.7deg);
    }
  }
  @keyframes dialogOut {
    to {
      opacity: 0;
      transform: translateY(16px) scale(0.97);
    }
  }
}
.sheet.small {
  max-width: 420px;
}
.dlg {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0 2px;
}
.dlg h2 {
  font-size: 22px;
  font-weight: 700;
}
.dlg p {
  color: var(--ink-2);
}
.dlg-a {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.dlg-a .btn {
  flex: 1;
}

/* ---------- Toast ---------- */
#toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(136px + env(safe-area-inset-bottom, 0px));
  z-index: 320;
  display: flex;
  justify-content: center;
  padding-inline: var(--pad-l) var(--pad-r);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  min-height: 46px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: toastIn 0.42s var(--spring) both;
}
.toast.out {
  animation: toastOut 0.2s both;
}
.toast-undo {
  min-height: 34px;
  padding: 2px 8px;
  font-weight: 700;
  color: var(--marigold);
  white-space: nowrap;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (min-width: 1080px) {
  #toasts {
    bottom: 40px;
  }
}

/* ---------- Cover ---------- */
.cover {
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow: hidden;
  perspective: 1900px;
  perspective-origin: 12% 50%;
}
.cover.opening {
  pointer-events: none;
}
.cv-shade {
  position: absolute;
  inset: 0;
  background: #1a0308;
  opacity: 0;
}
.cv-page {
  display: none;
}
.cv-board {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: left center;
  background-color: var(--cloth);
  background-image: var(--weave), radial-gradient(100% 80% at 50% 42%, var(--cloth-hi), var(--cloth) 50%, var(--cloth-lo) 95%);
  color: var(--on-cloth);
  will-change: transform;
}
.cv-spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(16px, 3.2vw, 44px);
  background: linear-gradient(90deg, var(--cloth-deep), rgba(60, 5, 18, 0.25) 75%, transparent);
}
.cv-spine::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 18%;
  border-right: 2px dashed rgba(255, 230, 170, 0.32);
}
.cv-frame {
  position: absolute;
  inset: clamp(14px, 3vmin, 30px) clamp(14px, 3vmin, 30px) clamp(14px, 3vmin, 30px) clamp(30px, 6vw, 72px);
  border: 2px solid var(--foil-2);
  outline: 1px solid var(--foil-2);
  outline-offset: -8px;
  opacity: 0.62;
  border-radius: 3px;
}
.cv-garland {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  padding-inline: clamp(22px, 5vw, 66px) clamp(6px, 2vw, 22px);
  pointer-events: none;
  z-index: 1;
}
.cv-garland i {
  display: block;
  width: clamp(21px, 4.4vmin, 44px);
  height: calc(var(--n) * clamp(48px, 10vmin, 100px));
  background-repeat: repeat-y;
  background-size: 100% auto;
  transform-origin: top center;
  will-change: transform;
  animation: sway 5.5s ease-in-out infinite alternate;
  animation-delay: calc(var(--d) * -1);
}
@keyframes sway {
  from {
    transform: rotate(-2.2deg);
  }
  to {
    transform: rotate(2.2deg);
  }
}
.cv-lang {
  position: absolute;
  bottom: calc(clamp(14px, 3vmin, 30px) + 14px);
  right: calc(clamp(14px, 3vmin, 30px) + 14px);
  z-index: 3;
  display: flex;
  padding: 3px;
  background: rgba(50, 4, 14, 0.62);
  border-radius: 8px;
}
.cv-lang button {
  min-height: 36px;
  padding: 2px 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-cloth);
  border-radius: 6px;
  transition: background-color 0.18s, color 0.18s;
}
.cv-lang button.on {
  background: var(--foil-1);
  color: var(--foil-ink);
}
.cv-main {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 36px 40px 52px;
  text-align: center;
}
.cv-mark {
  color: var(--foil-2);
  opacity: 0.92;
}
.cv-scale {
  width: clamp(72px, 13vmin, 118px);
  height: auto;
  display: block;
  animation: markIn 1.1s var(--ease) both;
}
@keyframes markIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}
.cv-title {
  font-family: var(--f-sign);
  font-weight: 400;
  font-size: clamp(104px, 27vmin, 230px);
  line-height: 1.02;
  padding-inline: 0.12em;
  animation: titleIn 1.1s 0.1s var(--ease) both;
}
[data-lang='en'] .cv-title {
  font-size: clamp(84px, 21vmin, 190px);
}
@keyframes titleIn {
  from {
    opacity: 0;
    letter-spacing: 0.08em;
    transform: scale(0.94);
  }
}
.cv-sub {
  font-size: clamp(21px, 4vmin, 32px);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.02em;
  margin-top: -4px;
  animation: markIn 1s 0.25s var(--ease) both;
}
.cv-pitch {
  max-width: min(34ch, 76vw);
  margin-top: 12px;
  font-size: clamp(16px, 2.5vmin, 19px);
  line-height: 1.55;
  color: var(--on-cloth);
  text-wrap: balance;
  animation: markIn 1s 0.4s var(--ease) both;
}
.cv-open {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 22px;
  padding: 10px 26px;
  font-size: 19px;
  font-weight: 700;
  color: var(--foil-ink);
  background-image: linear-gradient(105deg, var(--foil-2), var(--foil-1) 48%, #fff5cb 52%, var(--foil-2));
  background-size: 200% 100%;
  background-position: var(--glint, 30%) 0;
  border-radius: 8px 7px 9px 6px;
  box-shadow: 0 4px 0 var(--foil-3), 0 14px 28px rgba(30, 0, 8, 0.45);
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease);
  animation: markIn 1s 0.55s var(--ease) both;
}
.cv-open::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1.5px dashed currentColor;
  border-radius: 5px;
  opacity: 0.4;
}
.cv-open .i {
  transition: transform 0.25s var(--ease);
}
.cv-open:hover .i {
  transform: translateX(5px);
}
.cv-open:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--foil-3), 0 6px 14px rgba(30, 0, 8, 0.45);
}
.cv-foot {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--on-cloth-2);
  animation: markIn 1s 0.7s var(--ease) both;
}
.cv-motion {
  max-width: min(44ch, 78vw);
  min-height: 40px;
  margin-top: 8px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--foil-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-height: 560px) {
  .cv-mark,
  .cv-pitch {
    display: none;
  }
  .cv-title {
    font-size: clamp(70px, 30vmin, 120px);
  }
  .cv-open {
    margin-top: 10px;
  }
  .cv-foot {
    margin-top: 8px;
  }
}

/* ---------- Welcome ---------- */
.welcome {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.welcome-art {
  width: 190px;
  margin: 0 auto 2px;
}
.welcome h2 {
  font-size: 26px;
  font-weight: 800;
}
.welcome p {
  color: var(--ink-2);
}

/* ---------- Tour ---------- */
.tour {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  animation: fadeIn 0.3s both;
}
.tour.out {
  animation: fadeOut 0.24s both;
}
.t-dim {
  position: absolute;
  inset: 0;
}
.t-veil {
  fill: var(--veil);
}
.t-ring {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 2.5px var(--marigold);
  animation: ringPulse 1.5s ease-in-out infinite;
  will-change: transform;
}
.tour.final .t-ring,
.tour.hands-off .t-ring {
  animation: none;
}
.tour.final .t-ring {
  opacity: 0;
}
@keyframes ringPulse {
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.75);
  }
}
.t-blk {
  position: fixed;
  pointer-events: auto;
}
.t-cover {
  display: none;
  position: fixed;
  inset: 0;
  pointer-events: auto;
}
.tour.hands-off .t-cover {
  display: block;
}
.t-arrow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.t-arrow path {
  fill: none;
  stroke: var(--marigold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.t-note {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: min(372px, calc(100vw - 24px));
  padding: 14px 16px 12px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 4px 5px 6px 4px;
  box-shadow: var(--shadow);
  pointer-events: auto;
  transition: opacity 0.2s, left 0.34s var(--ease), top 0.34s var(--ease);
}
.t-note::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 76px;
  height: 20px;
  margin-left: -38px;
  background: rgba(245, 158, 11, 0.78);
  transform: rotate(-2deg);
}
.t-note.in > * {
  animation: noteIn 0.4s var(--ease) both;
}
@keyframes noteIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.t-prog {
  height: 3px;
  margin: 2px 0 9px;
  background: var(--paper-3);
  border-radius: 2px;
  overflow: hidden;
}
.t-prog i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--alta);
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}
.t-note h2 {
  font-family: var(--f-hand);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}
.t-note p {
  margin-top: 3px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.t-a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.t-skip {
  margin-right: auto;
  min-height: 40px;
  padding: 2px 4px;
  font-size: 14px;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.t-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-hand);
  font-size: 18px;
  font-weight: 600;
  color: var(--alta);
}
.t-a .btn {
  min-height: 44px;
}
.tour.final .t-a {
  justify-content: stretch;
}
.tour.final .t-a .btn {
  flex: 1 1 auto;
}
