.tt {
  --night: #16213a;
  --deep: #0d1428;
  --gilt: #e2c27a;
  --aurora: #6fe0b4;
  --plate-shadow: #0b1222;
}

.tt-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(92svh, 860px);
  margin-top: -82px;
  padding-block: 162px calc(clamp(56px, 8vw, 96px) + var(--kant));
  color: var(--hero-ink);
  overflow: clip;
}

.tt-hero-text {
  width: min(570px, 100%);
  margin-left: auto;
  text-shadow: 0 2px 16px rgb(13 20 40 / 0.85), 0 0 3px rgb(13 20 40 / 0.6);
}

.tt-hook {
  max-width: 12em;
  margin-top: 28px;
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-stretch: 78%;
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1;
  text-wrap: balance;
}

.tt-promise {
  max-width: 30em;
  margin-top: 18px;
  color: var(--hero-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.tt-hero-film {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  background: var(--deep);
}

.tt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(to top, rgb(22 33 58 / 1) 0%, rgb(22 33 58 / 0.5) 14%, rgb(22 33 58 / 0) 34%),
    linear-gradient(to left, rgb(13 20 40 / 0.72), rgb(13 20 40 / 0) 58%);
}

.tt-hero h1 {
  margin: 0;
  line-height: 0;
}

.tt-mark {
  position: relative;
  display: block;
  width: min(420px, 100%);
  filter: drop-shadow(0 6px 22px rgb(13 20 40 / 0.7));
}

.tt-mark img {
  width: 100%;
  height: auto;
}

.tt-mark .tt-lids {
  position: absolute;
  left: 36.213%;
  top: 29.57%;
  width: 5.953%;
  opacity: 0;
}

.tt-hero .lead {
  max-width: 28em;
  margin-top: 18px;
  color: var(--hero-ink);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.tt-hero .pills {
  align-items: center;
  margin-top: 28px;
  gap: 12px 18px;
}

.tt-fly {
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px);
  color: var(--hero-ink);
}

.tt-h {
  max-width: 13em;
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  font-stretch: 78%;
  line-height: 0.98;
}

.tt-intro {
  max-width: 34em;
  margin-top: 20px;
  color: var(--hero-muted);
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.tt-plates {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(16px, 3vw, 40px);
  margin-top: clamp(44px, 6vw, 80px);
}

.tt-plate {
  margin: 0;
}

.tt-plate:nth-child(1) {
  grid-column: 1 / span 7;
}

.tt-plate:nth-child(2) {
  grid-column: 8 / span 5;
  padding-top: clamp(0px, 7vw, 96px);
}

.tt-plate:nth-child(3) {
  grid-column: 2 / span 5;
}

.tt-plate:nth-child(4) {
  grid-column: 7 / span 6;
  padding-top: clamp(0px, 5vw, 64px);
}

.tt-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid var(--gilt);
  border-radius: 14px;
  background: var(--deep);
  box-shadow: 0 8px 0 var(--plate-shadow);
}

.tt-frame video,
.tt-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-plate figcaption {
  margin-top: 26px;
}

.tt-plate h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-stretch: 86%;
  line-height: 1.08;
}

.tt-plate p {
  max-width: 28em;
  margin-top: 8px;
  color: var(--hero-muted);
  text-wrap: pretty;
}

.tt-sunroom {
  padding-block: clamp(24px, 4vw, 48px) calc(clamp(72px, 9vw, 120px) + var(--kant));
  color: var(--hero-ink);
}

.tt-scene {
  position: relative;
  aspect-ratio: 16 / 7;
  margin-top: clamp(32px, 5vw, 56px);
  overflow: hidden;
  border: 3px solid var(--gilt);
  border-radius: 20px;
  background: var(--deep);
  box-shadow: 0 8px 0 var(--plate-shadow);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  --sky-a: #171d45;
  --sky-b: #3b3a6b;
  --hill-far: #0e1527;
  --hill-near: #131c30;
  --night: 1;
}

.tt-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--sky-a), var(--sky-b) 78%);
}

.tt-stars {
  position: absolute;
  inset: 0 0 40%;
  opacity: var(--night);
  background:
    radial-gradient(1.6px 1.6px at 7% 22%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 15% 48%, #fff 60%, transparent),
    radial-gradient(1.8px 1.8px at 24% 14%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 33% 38%, #fff 60%, transparent),
    radial-gradient(1.6px 1.6px at 41% 10%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 52% 30%, #fff 60%, transparent),
    radial-gradient(1.8px 1.8px at 61% 18%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 70% 44%, #fff 60%, transparent),
    radial-gradient(1.6px 1.6px at 78% 12%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 86% 34%, #fff 60%, transparent),
    radial-gradient(1.8px 1.8px at 94% 20%, #fff 60%, transparent);
}

.tt-aurora {
  position: absolute;
  inset: 0;
  opacity: calc(var(--night) * 0.9);
  background:
    radial-gradient(ellipse 38% 34% at 30% 20%, rgb(111 224 180 / 0.5), transparent 72%),
    radial-gradient(ellipse 34% 30% at 64% 14%, rgb(139 107 216 / 0.42), transparent 72%),
    radial-gradient(ellipse 24% 22% at 84% 26%, rgb(111 224 180 / 0.3), transparent 72%);
}

.tt-orb {
  position: absolute;
  border-radius: 50%;
  translate: -50% -50%;
}

.tt-sun {
  width: 9%;
  aspect-ratio: 1;
  background: radial-gradient(circle, #fff7c9 0 36%, #ffd34d 38% 64%, rgb(255 198 41 / 0) 72%);
  box-shadow: 0 0 60px 30px rgb(255 214 120 / 0.45);
}

.tt-moon {
  width: 5.5%;
  aspect-ratio: 1;
  background: #eef2f7;
  box-shadow: inset -7px -3px 0 0 #c3cde0, 0 0 40px 10px rgb(220 230 255 / 0.3);
}

.tt-hill {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.tt-hill.far {
  left: -8%;
  right: -4%;
  height: 36%;
  background: var(--hill-far);
}

.tt-hill.near {
  left: -22%;
  right: -12%;
  height: 22%;
  background: var(--hill-near);
}

.tt-troll {
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 40%;
  height: auto;
  pointer-events: none;
}

.tt-bubble {
  position: absolute;
  left: 61%;
  top: 8%;
  display: grid;
  place-items: center;
  width: min(16rem, 32%);
  height: 4.2rem;
  padding: 6px 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fffaf0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  pointer-events: none;
}

.tt-sunrange-holder {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.tt-sunlabel {
  flex: none;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}

.tt-sunrange {
  flex: 1;
  height: 48px;
  margin: 0;
  background: transparent;
  cursor: grab;
  appearance: none;
}

.tt-sunrange:focus-visible {
  outline: 3px solid var(--focus-on-hero);
  outline-offset: 6px;
}

.tt-sunrange::-webkit-slider-runnable-track {
  height: 14px;
  border: 2px solid var(--gilt);
  border-radius: 999px;
  background: linear-gradient(to right, #0d1428 0, #3b3a6b 18%, #e58133 25%, #8cc3ec 34%, #dff0ff 50%, #ffd9a0 66%, #e58133 75%, #9e4d6b 82%, #0d1428 92%);
}

.tt-sunrange::-moz-range-track {
  height: 10px;
  border: 2px solid var(--gilt);
  border-radius: 999px;
  background: linear-gradient(to right, #0d1428 0, #3b3a6b 18%, #e58133 25%, #8cc3ec 34%, #dff0ff 50%, #ffd9a0 66%, #e58133 75%, #9e4d6b 82%, #0d1428 92%);
}

.tt-sunrange::-webkit-slider-thumb {
  width: 42px;
  height: 42px;
  margin-top: -16px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c9 0 34%, #ffd34d 38%);
  box-shadow: 0 0 20px rgb(255 214 120 / 0.8);
  appearance: none;
}

.tt-sunrange::-moz-range-thumb {
  width: 36px;
  height: 36px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c9 0 34%, #ffd34d 38%);
  box-shadow: 0 0 20px rgb(255 214 120 / 0.8);
}

.tt-scene-note {
  min-height: 3.2em;
  margin-top: 14px;
  max-width: 40em;
  color: var(--hero-muted);
}

.tt-paper h2 {
  max-width: 14em;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-stretch: 78%;
  line-height: 0.98;
}

.tt-paper .tt-intro {
  color: var(--muted);
}

.tt-tale {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px clamp(16px, 3vw, 44px);
  align-items: center;
  margin-top: clamp(48px, 7vw, 88px);
}

.tt-tale .tt-frame {
  grid-column: 1 / span 7;
  border-color: var(--ink);
  box-shadow: 0 8px 0 var(--ink);
}

.tt-tale-text {
  grid-column: 8 / span 5;
}

.tt-tale.flip .tt-frame {
  grid-column: 6 / span 7;
  grid-row: 1;
}

.tt-tale.flip .tt-tale-text {
  grid-column: 1 / span 5;
  grid-row: 1;
}

.tt-tale-text .when {
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}

.tt-tale-text h3 {
  margin-top: 4px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-stretch: 82%;
  line-height: 1.02;
}

.tt-tale-text p {
  margin-top: 12px;
  text-wrap: pretty;
}

.tt-seal {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

.tt-seal.free {
  background: var(--gilt);
  box-shadow: 0 3px 0 var(--ink);
}

.tt-grown {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 36px clamp(16px, 3vw, 44px);
  align-items: start;
  margin-top: clamp(72px, 10vw, 128px);
  padding: clamp(24px, 4vw, 48px);
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: #fffaf0;
  box-shadow: 0 8px 0 var(--ink);
}

.tt-grown-text {
  grid-column: 1 / span 7;
}

.tt-grown h2 {
  max-width: none;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
}

.tt-grown ul {
  margin-top: 20px;
  padding-left: 1.2em;
}

.tt-grown li + li {
  margin-top: 8px;
}

.tt-grown li::marker {
  color: var(--accent);
}

.tt-get {
  grid-column: 9 / span 4;
  display: grid;
  justify-items: start;
  gap: 18px;
}

.tt-get .store-badge img {
  height: 56px;
}

.tt-qr {
  width: min(100%, 220px);
  border: 3px solid var(--ink);
  border-radius: 10px;
}

.tt-get p {
  font-size: 0.98rem;
  color: var(--muted);
}

.tt-paper .note {
  margin-top: clamp(44px, 6vw, 72px);
}

.tt-room {
  margin-top: clamp(72px, 10vw, 128px);
}

.tt-room-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px clamp(16px, 3vw, 44px);
  align-items: stretch;
  margin-top: clamp(28px, 4vw, 44px);
}

.tt-room-stage {
  grid-column: 1 / span 6;
  aspect-ratio: 5 / 4;
  border-color: var(--ink);
  box-shadow: 0 8px 0 var(--ink);
}

.tt-room-stage.is-live {
  background: radial-gradient(ellipse 80% 60% at 50% 88%, #f7eed8, #ecdcbb 62%, #e0cfa9);
}

.tt-room-panel {
  position: relative;
  grid-column: 7 / span 6;
  min-height: 0;
}

.tt-panel-in {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) 2.9em;
  gap: 14px;
}

.tt-room-note {
  max-width: 44em;
  margin-top: clamp(32px, 5vw, 56px);
  color: var(--muted);
  text-wrap: pretty;
}

.tt-room [hidden] {
  display: none !important;
}

.tt-layers {
  position: absolute;
}

.tt-layers.hero {
  top: 3%;
  left: 50%;
  height: 94%;
  aspect-ratio: 480 / 624;
  translate: -50% 0;
}

.tt-layers.ship {
  top: 50%;
  left: 4%;
  width: 92%;
  aspect-ratio: 1000 / 709;
  translate: 0 -50%;
}

.tt-layers img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tt-layers.hero::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 12%;
  top: 87%;
  height: 6%;
  background: radial-gradient(ellipse at center, rgb(42 28 18 / 0.3), rgb(42 28 18 / 0) 70%);
}

.tt-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tt-tabs {
  display: flex;
  gap: 8px;
}

.tt-top .surprise {
  margin-left: auto;
}

.tt-rail {
  display: flex;
  gap: 8px;
}

.tt-cat {
  display: grid;
  flex: 1 1 0;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 62px;
  padding: 6px 2px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
}

.tt-cat-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tt-cat[aria-pressed="true"] {
  background: var(--ink);
  color: #fffaf0;
}

.tt-icon {
  width: 30px;
  height: 30px;
  flex: none;
}

.tt-options {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 10px 10px 4px;
  border-block: 2px dashed var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}

.tt-cat-body {
  display: grid;
  gap: 16px;
}

.tt-row {
  display: grid;
  gap: 8px;
}

.tt-row-label {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.tt-row.is-off {
  opacity: 0.38;
}

.tt-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
}

.tt-pill[aria-pressed="true"] {
  background: var(--ink);
  color: #fffaf0;
}

.tt-pill.tab {
  font-family: var(--display);
  font-size: 1.08rem;
}

.tt-pill .tt-icon {
  width: 22px;
  height: 22px;
}

.tt-pill.surprise {
  border-style: dashed;
}

.tt-dot {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tt-swatch {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
}

.tt-swatch:disabled {
  cursor: default;
}

.tt-swatch[aria-pressed="true"] {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.tt-hint {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.tt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .tt-plate:nth-child(n),
  .tt-tale .tt-frame,
  .tt-tale-text,
  .tt-tale.flip .tt-frame,
  .tt-tale.flip .tt-tale-text,
  .tt-room-stage,
  .tt-room-panel,
  .tt-grown-text,
  .tt-get {
    grid-column: 1 / -1;
    grid-row: auto;
    padding-top: 0;
  }

  .tt-hero {
    min-height: min(86svh, 720px);
    padding-top: 132px;
  }

  .tt-hero-film {
    object-position: 22% 50%;
  }

  .tt-hero-text {
    margin-left: 0;
  }

  .tt-qr {
    display: none;
  }

  .tt-room-panel {
    height: 30rem;
  }

  .tt-scene {
    aspect-ratio: 4 / 3;
  }

  .tt-troll {
    left: 28%;
    width: 68%;
  }

  .tt-bubble {
    left: 6%;
    top: 5%;
    width: 52%;
    height: 4.6rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tt-mark .tt-lids {
    animation: tt-blink 7s steps(1, end) 1.6s infinite;
  }

  @keyframes tt-blink {
    0%,
    95% {
      opacity: 0;
    }

    96%,
    98.5% {
      opacity: 1;
    }

    100% {
      opacity: 0;
    }
  }
}
