/* The supplied skeleton's organic stage, photo flip and kinetic controls,
   scoped to Time & Place and adapted to Lost Purpose's botanical palette. */
body.tp-active { background: #111613; }
.tp-app {
  --tp-bg: #111613; --tp-mid: #1d2c22; --tp-light: #304333;
  --tp-glass: #19231ccc; --tp-pill: #ffffff0a; --tp-border: #ffffff16;
  --tp-accent: #c7f47b; --tp-text: #f4f6f1; --tp-muted: #aab5aa;
  --tp-ease: cubic-bezier(.22,1,.36,1); --tp-spring: cubic-bezier(.34,1.4,.64,1);
  position: relative; isolation: isolate; min-height: 100svh; color: var(--tp-text);
  font: 14px/1.5 system-ui, sans-serif;
}
.tp-app *, .tp-app *::before, .tp-app *::after { box-sizing: border-box; }
.tp-app [hidden] { display: none !important; }
.tp-app button, .tp-app input { font: inherit; }
.tp-app button, .tp-app a { -webkit-tap-highlight-color: transparent; }
.tp-app button { cursor: pointer; }
.tp-app button:disabled { cursor: default; }
.tp-app button:focus-visible, .tp-app input:focus-visible, .tp-app a:focus-visible, .tp-app summary:focus-visible, .tp-viewport:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: 4px; }
.tp-app h1, .tp-app h2, .tp-app h3, .tp-app p { margin: 0; }
.tp-app h1, .tp-app h2, .tp-app h3 { color: var(--tp-text); font-family: inherit; line-height: 1.12; }
.tp-app h2[tabindex="-1"]:focus { outline: none; }
.tp-app a { color: inherit; }
.tp-background { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; background: var(--tp-bg); }
.tp-blob-mid, .tp-blob-light { position: absolute; transition: translate 1.4s var(--tp-ease), scale 1.4s var(--tp-ease); }
.tp-blob-mid { width: 92vw; height: 122vh; right: -20vw; top: -10vh; background: var(--tp-mid); border-radius: 58% 42% 48% 52% / 44% 56% 44% 56%; animation: tp-drift-mid 18s ease-in-out infinite alternate; }
.tp-blob-light { width: 48vw; height: 78vh; right: -6vw; bottom: -18vh; background: var(--tp-light); border-radius: 52% 48% 63% 37% / 58% 44% 56% 42%; animation: tp-drift-light 14s ease-in-out infinite alternate; }
[data-state=guessing] .tp-blob-mid { translate: -4vw 2vh; }
[data-state=reveal] .tp-blob-mid { translate: -8vw -4vh; scale: 1.08; }
[data-state=reveal] .tp-blob-light { translate: -6vw -6vh; scale: 1.12; }
[data-state=summary] .tp-blob-mid { translate: -20vw 6vh; scale: 1.2; }
@keyframes tp-drift-mid { from { transform: rotate(-14deg); } to { transform: rotate(-6deg) scale(1.04); } }
@keyframes tp-drift-light { from { transform: rotate(-8deg); } to { transform: rotate(9deg) translateY(-3vh); } }
.tp-shell { width: min(1440px, 100%); margin: auto; padding: 0 clamp(16px, 3vw, 44px) 20px; }
.tp-app .tp-header { display: flex; align-items: center; gap: 12px; padding: 20px 0; margin: 0; width: 100%; height: auto; max-width: none; border: 0; }
.tp-brand { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #c7f47b15; color: var(--tp-accent) !important; font-size: 24px; font-weight: 750; letter-spacing: -2px; text-decoration: none; flex: none; }
.tp-title small { color: var(--tp-muted); font-size: 10px; letter-spacing: .06em; }
.tp-title h1 { font-size: 21px; letter-spacing: -.04em; margin-top: 3px; }
.tp-progress { display: flex; align-items: center; gap: 5px; margin-left: 20px; }
.tp-progress span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; font-size: 11px; color: var(--tp-muted); background: #ffffff09; transition: .4s; }
.tp-progress .is-current { background: var(--tp-accent); color: #182310; transform: scale(1.1); }
.tp-progress .is-done { background: #c7f47b19; color: var(--tp-accent); }
.tp-total { display: flex; align-items: baseline; gap: 7px; margin-left: auto; padding: 6px 15px; background: #ffffff07; border-radius: 30px; white-space: nowrap; }
.tp-total strong { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--tp-accent); }
.tp-total span { color: var(--tp-muted); font-size: 11px; }
.tp-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; border: 0; border-radius: 50%; color: var(--tp-text); background: #ffffff0a; text-decoration: none; transition: background .2s, transform .25s var(--tp-spring); }
.tp-icon:hover:not(:disabled) { background: #ffffff19; transform: translateY(-1px); }
.tp-icon:disabled { opacity: .35; }
.tp-stage { padding: 8px 0 0; margin: 0; max-width: none; width: 100%; }
.tp-board { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(360px, 1fr); gap: 22px; align-items: stretch; }
.tp-photo-panel, .tp-controls, .tp-summary { border: 1px solid var(--tp-border); background: var(--tp-glass); border-radius: 25px; backdrop-filter: blur(10px); box-shadow: 0 12px 45px #00000014; }
.tp-photo-panel { display: flex; flex-direction: column; padding: 14px; min-width: 0; }
.tp-photo-meta { display: flex; align-items: center; gap: 10px; padding: 1px 4px 13px; font-size: 12px; font-weight: 650; }
.tp-muted { color: var(--tp-muted); }
.tp-tier { padding: 3px 9px; border-radius: 20px; color: var(--tp-accent); background: #c7f47b12; font-size: 10px; }
.tp-perspective { perspective: 1400px; flex: 1; min-height: 320px; height: clamp(320px, 54vh, 580px); }
.tp-flipper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .85s var(--tp-spring); }
.tp-flipper.is-mystery { transform: rotateY(180deg) scale(.94); }
.tp-photo-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; overflow: hidden; }
.tp-photo-front { transform: rotateY(0); background: #0c110e; }
.tp-photo-mystery { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; background: #18251d; }
.tp-photo-mystery > span { font-size: 120px; font-weight: 650; color: var(--tp-accent); }
.tp-photo-mystery small { color: var(--tp-muted); font-size: 11px; letter-spacing: .08em; }
.tp-viewport { position: absolute; inset: 0; overflow: hidden; cursor: zoom-in; }
.tp-viewport.is-zoomed { cursor: grab; touch-action: none; }
.tp-viewport.is-zoomed:active { cursor: grabbing; }
.tp-transform { width: 100%; height: 100%; display: grid; place-items: center; transition: transform .24s var(--tp-ease); }
.tp-transform.is-dragging { transition: none; }
.tp-photo-crop { width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; }
.tp-photo-crop img { width: 100%; height: 100%; display: block; object-fit: contain; user-select: none; }
.tp-photo-crop.is-cropped { height: auto; max-height: 100%; display: block; width: auto; max-width: 100%; }
.tp-photo-crop.is-cropped img { height: auto; object-fit: initial; }
#tp-image-error { position: absolute; inset: 30%; text-align: center; color: var(--tp-text); }
.tp-photo-footer { padding: 14px 4px 2px; display: flex; gap: 15px; align-items: center; }
.tp-photo-footer p { color: var(--tp-muted); font-size: 12px; line-height: 1.55; flex: 1; }
.tp-kicker { display: block; color: var(--tp-accent); text-transform: uppercase; font-size: 10px; letter-spacing: .13em; font-weight: 650; }
.tp-photo-footer .tp-kicker { margin-bottom: 5px; }
.tp-zoom { display: flex; align-items: center; gap: 4px; }
.tp-zoom output { font-size: 11px; min-width: 36px; text-align: center; color: var(--tp-muted); font-variant-numeric: tabular-nums; }
.tp-controls { padding: clamp(18px, 2vw, 30px); min-width: 0; display: flex; flex-direction: column; }
.tp-panel-top { display: flex; justify-content: space-between; align-items: center; }
.tp-available { padding: 4px 10px; background: #ffffff08; border-radius: 20px; color: var(--tp-muted); font-size: 11px; }
.tp-available b { color: var(--tp-accent); font-variant-numeric: tabular-nums; }
.tp-controls h2 { font-size: clamp(24px, 2.5vw, 32px); margin: 15px 0 20px; letter-spacing: -.045em; }
.tp-year-heading { display: flex; align-items: center; justify-content: space-between; }
.tp-year-heading > label, .tp-places legend { color: var(--tp-text); font-size: 13px; font-weight: 650; }
.tp-year-stepper { display: flex; align-items: center; padding: 3px; background: #ffffff07; border-radius: 12px; }
.tp-year-stepper .tp-icon { background: transparent; width: 28px; height: 28px; }
.tp-app #tp-year-number { width: 74px; padding: 0; border: 0; color: var(--tp-text); background: none; font-size: 28px; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; }
#tp-year-number::-webkit-inner-spin-button, #tp-year-number::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tp-track { position: relative; margin-top: 22px; height: 28px; }
.tp-track-base { position: absolute; top: 10px; left: 12px; right: 12px; height: 7px; border-radius: 10px; background: #ffffff17; }
#tp-year-fill { height: 100%; background: var(--tp-accent); border-radius: inherit; }
.tp-app #tp-year { appearance: none; -webkit-appearance: none; position: relative; z-index: 2; width: 100%; height: 28px; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; }
#tp-year::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 25px; height: 25px; border-radius: 50%; background: var(--tp-accent); border: 4px solid #f5f8ee; box-shadow: 0 3px 12px #0005; transition: transform .25s var(--tp-spring); }
#tp-year::-moz-range-thumb { width: 19px; height: 19px; border-radius: 50%; background: var(--tp-accent); border: 4px solid #f5f8ee; }
#tp-year:hover:not(:disabled)::-webkit-slider-thumb { transform: scale(1.14); }
.tp-decade { position: absolute; top: -4px; height: 15px; border: 1px solid var(--tp-accent); background: #c7f47b55; border-radius: 20px; opacity: 0; transform: scaleX(0); transition: .55s var(--tp-spring); }
.tp-decade.is-active { opacity: 1; transform: scaleX(1); }
.tp-connector { position: absolute; height: 9px; top: -1px; background: #f4cf72; border-radius: 10px; animation: tp-connector-in .8s var(--tp-ease) both; transform-origin: left; }
@keyframes tp-connector-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tp-actual-pin { position: absolute; z-index: 3; top: -4px; height: 15px; width: 4px; background: var(--tp-accent); transform: translateX(-50%); animation: tp-rise .6s var(--tp-ease) both; }
.tp-actual-pin span { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 2px 6px; border-radius: 5px; background: var(--tp-accent); color: #182310; font-size: 12px; font-weight: 700; }
.tp-ticks { position: relative; height: 15px; margin-inline: 12px; color: var(--tp-muted); font-size: 10px; }
.tp-ticks span { position: absolute; transform: translateX(-50%); }
.tp-ticks span:nth-child(1) { left: 0; }
.tp-ticks span:nth-child(2) { left: 35.714%; }
.tp-ticks span:nth-child(3) { left: 71.429%; }
.tp-ticks span:nth-child(4) { left: 100%; }
.tp-feedback { color: var(--tp-accent); font-size: 11px; padding-top: 10px; }
.tp-app .tp-places { margin: 24px 0 18px; padding: 0; border: 0; min-width: 0; }
.tp-places legend { padding: 0 0 10px; }
.tp-location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tp-location { display: flex; align-items: center; text-align: left; gap: 9px; min-height: 58px; padding: 11px; color: var(--tp-text); background: var(--tp-pill); border: 1px solid var(--tp-border); border-radius: 14px; transition: transform .28s var(--tp-spring), background .25s, border-color .25s, opacity .3s; }
.tp-location > span:nth-child(2) { font-size: 12px; line-height: 1.45; font-weight: 550; }
.tp-location:hover:not(:disabled) { transform: translateY(-2px); background: #ffffff11; border-color: #ffffff44; }
.tp-radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #ffffff60; flex: none; }
.tp-location.is-selected { background: #c7f47b14; border-color: var(--tp-accent); transform: scale(1.01); }
.tp-location.is-selected .tp-radio { border-color: var(--tp-accent); background: var(--tp-accent); box-shadow: inset 0 0 0 3px #203020; }
.tp-location-tag { margin-left: auto; color: var(--tp-accent); font-size: 12px; }
.tp-location.is-eliminated { opacity: .35; text-decoration: line-through; transform: scale(.97); }
.tp-location.is-eliminated .tp-location-tag { display: none; }
.tp-location.is-exact { background: #c7f47b20; border-color: var(--tp-accent); }
.tp-location.is-region { background: #f4cf721a; border-color: #f4cf72; }
.tp-location.is-wrong { background: #ee7a801a; border-color: #ee7a80; }
.tp-location.is-region .tp-location-tag { color: #f4cf72; }
.tp-location.is-wrong .tp-location-tag { color: #ee7a80; }
#tp-guess-actions { margin-top: auto; }
.tp-hints { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 15px; }
.tp-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; border-radius: 30px; border: 1px solid #ffffff28; background: #ffffff08; color: var(--tp-text); padding: 10px 18px; text-decoration: none; font-weight: 600; line-height: 1.4; transition: transform .28s var(--tp-spring), background .25s, box-shadow .25s; }
.tp-button:hover:not(:disabled) { background: #ffffff15; transform: translateY(-2px); }
.tp-hints .tp-button { padding: 8px 13px; font-size: 11px; }
.tp-hints .tp-button span { color: var(--tp-accent); }
.tp-hints .tp-button:disabled { opacity: .35; }
.tp-app .tp-primary { background: var(--tp-accent); color: #182310; border-color: transparent; box-shadow: 0 5px 25px #c7f47b12; }
.tp-primary:hover:not(:disabled) { background: #d7ff99; box-shadow: 0 6px 24px #c7f47b24; }
.tp-primary:disabled { background: #ffffff0d; color: #ffffff55; box-shadow: none; }
#tp-submit, #tp-next { width: 100%; justify-content: space-between; padding: 15px 22px; }
.tp-scoring { margin-top: 12px; color: var(--tp-muted); font-size: 11px; }
.tp-scoring summary { cursor: pointer; width: fit-content; }
.tp-scoring p { padding-top: 5px; line-height: 1.5; }
.tp-story { padding: 16px 0; }
.tp-story-heading { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.tp-story-heading h3 { font-size: 16px; line-height: 1.3; letter-spacing: -.02em; }
.tp-story-heading strong { font-size: 28px; color: var(--tp-accent); line-height: 1; font-variant-numeric: tabular-nums; }
.tp-story p { font-size: 12px; line-height: 1.6; margin-top: 10px; color: var(--tp-muted); }
.tp-story .tp-answer { color: var(--tp-text); font-weight: 600; }
.tp-story small { display: block; margin-top: 10px; font-size: 10px; color: var(--tp-muted); }
.tp-credit a { color: var(--tp-accent); text-underline-offset: 3px; }
.tp-app .tp-ad { margin: 22px auto 0; padding: 0; width: min(970px, 100%); max-width: none; }
.tp-ad > span { display: block; text-align: center; font-size: 8px; letter-spacing: .15em; text-transform: uppercase; color: #9cab9c80; margin-bottom: 5px; }
.tp-app .tp-ad .banner-placement { width: 100%; height: 90px; min-height: 90px; border: 1px solid #ffffff09; border-radius: 10px; background: #0c100d22; }
.tp-intro { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; padding: clamp(24px, 5vw, 70px); background: #111613bb; backdrop-filter: blur(14px); transition: opacity .42s; }
.tp-intro.is-leaving { opacity: 0; pointer-events: none; }
.tp-intro-heading h2 { font-size: clamp(34px, 5.5vw, 78px); max-width: 1000px; letter-spacing: -.06em; margin-top: 14px; }
.tp-intro-demo { display: flex; align-items: center; justify-content: center; gap: 65px; margin: auto; opacity: 0; transform: scale(.45) translateY(35px); transition: transform .78s var(--tp-spring), opacity .45s; }
.tp-intro-demo.show { opacity: 1; transform: scale(1) translateY(0); }
.tp-lens { width: min(32vw, 350px); height: min(32vw, 350px); overflow: hidden; background: #293d2d; animation: tp-wobble 9s ease-in-out infinite; box-shadow: 0 0 0 14px #ffffff08, 0 25px 65px #0005; }
.tp-lens img { width: 100%; height: 100%; object-fit: cover; }
.tp-demo-badges { display: flex; flex-direction: column; align-items: start; gap: 20px; max-width: 320px; }
.tp-demo-badge { opacity: 0; transform: translateY(16px) scale(.85); transition: transform .55s var(--tp-spring), opacity .4s; border: 1px solid #ffffff22; border-radius: 20px; padding: 18px 24px; background: #213025cc; box-shadow: 0 10px 30px #0002; }
.tp-demo-badge.show { opacity: 1; transform: translateY(0) scale(1); }
.tp-demo-badge small { display: block; color: var(--tp-accent); font-size: 12px; margin-bottom: 4px; }
.tp-demo-badge strong { font-size: 23px; line-height: 1.2; }
#tp-demo-number { font-size: 56px; font-variant-numeric: tabular-nums; }
#tp-skip-intro { align-self: center; min-width: 150px; }
@keyframes tp-wobble { 0%,100% { border-radius: 60% 40% 48% 52% / 56% 60% 40% 44%; } 33% { border-radius: 52% 48% 58% 42% / 50% 48% 52% 50%; } 66% { border-radius: 48% 52% 45% 55% / 62% 52% 48% 38%; } }
@keyframes tp-rise { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.tp-summary { max-width: 850px; margin: 10px auto 0; padding: clamp(20px, 3vw, 40px); }
.tp-summary h2 { font-size: clamp(28px, 3.5vw, 44px); margin: 10px 0 18px; }
.tp-summary-score { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.tp-summary-score strong { font-size: clamp(42px, 5vw, 64px); color: var(--tp-accent); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.tp-summary-score div > span { color: var(--tp-muted); margin-left: 10px; }
.tp-rank { color: var(--tp-accent); font-size: 12px; padding: 8px 12px; border-radius: 30px; background: #c7f47b0c; }
.tp-summary ol { list-style: none; margin: 0 0 24px; padding: 0; }
.tp-summary li { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.tp-summary li + li { border-top: 1px solid #ffffff08; }
.tp-summary li img { width: 64px; height: 52px; border-radius: 9px; object-fit: cover; }
.tp-summary li div { flex: 1; min-width: 0; }
.tp-summary li strong { display: block; font-size: 13px; }
.tp-summary li span { display: block; color: var(--tp-muted); font-size: 11px; margin-top: 2px; }
.tp-summary li small { display: block; color: #8d9c8f; font-size: 10px; margin-top: 4px; }
.tp-summary li b { color: var(--tp-accent); font-size: 18px; }
.tp-summary-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-archive-dialog { background: #1b261e; color: var(--tp-text); padding: 28px; border: 1px solid var(--tp-border); border-radius: 20px; width: min(400px, calc(100% - 32px)); }
.tp-archive-dialog::backdrop { background: #090d0abd; backdrop-filter: blur(6px); }
.tp-archive-dialog label { display: block; margin: 20px 0 8px; font-size: 12px; color: var(--tp-muted); }
.tp-archive-dialog input { color-scheme: dark; width: 100%; padding: 12px; border: 1px solid var(--tp-border); border-radius: 8px; background: #111613; color: var(--tp-text); }
.tp-archive-dialog form > div { display: flex; justify-content: end; gap: 10px; margin-top: 22px; }
@media (min-width: 960px) and (max-height: 800px) {
  .tp-app .tp-header { padding-block: 13px; }
  .tp-controls { padding: 18px 22px; }
  .tp-controls h2 { margin: 10px 0 14px; font-size: 27px; }
  .tp-app .tp-places { margin-block: 18px 14px; }
  .tp-location { min-height: 50px; }
  .tp-photo-footer { padding-top: 12px; }
  .tp-story { padding-block: 10px; }
  .tp-perspective { min-height: 290px; height: 44vh; }
}
@media (max-width: 1000px) { .tp-progress { display: none; } .tp-photo-footer { flex-wrap: wrap; } .tp-photo-footer p { flex-basis: 100%; } .tp-zoom { margin-left: auto; } .tp-board { gap: 14px; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 1fr); } }
@media (max-width: 760px) {
  .tp-app .tp-header { gap: 8px; flex-wrap: wrap; padding-block: 16px; }
  .tp-title { flex: 1; } .tp-title h1 { font-size: 19px; }
  .tp-total { margin-left: 0; padding-inline: 10px; }
  .tp-total strong { font-size: 18px; }
  .tp-header > .tp-icon { width: 30px; height: 30px; }
  .tp-board { grid-template-columns: 1fr; }
  .tp-photo-panel { padding: 10px; }
  .tp-photo-meta { padding-bottom: 10px; }
  .tp-perspective { min-height: 240px; height: 45svh; flex: auto; }
  .tp-photo-footer { gap: 10px; } .tp-photo-footer p { flex-basis: auto; }
  .tp-photo-footer .tp-zoom { margin-left: 0; }
  .tp-controls { padding: 22px; }
  .tp-intro-demo { flex-direction: column; gap: 25px; }
  .tp-lens { width: min(52vw, 240px); height: min(52vw, 240px); }
  .tp-demo-badges { flex-direction: row; gap: 12px; align-items: stretch; max-width: 100%; }
  .tp-demo-badge { padding: 12px 16px; flex: 1; }
  .tp-demo-badge strong { font-size: 17px; } #tp-demo-number { font-size: 30px; }
  .tp-summary li img { width: 46px; height: 46px; }
  .tp-summary-score { align-items: start; flex-direction: column; gap: 5px; }
  .tp-app .tp-ad .banner-placement { min-height: 50px; height: 50px; }
}
@media (max-width: 420px) { .tp-title { flex-basis: calc(100% - 60px); } .tp-total { margin-right: auto; } .tp-photo-footer { display: block; } .tp-zoom { justify-content: end; margin-top: 10px; } .tp-controls { padding: 18px; } .tp-location { padding: 10px 8px; gap: 7px; } }
@media (max-height: 620px) and (min-width: 761px) { .tp-lens { width: 200px; height: 200px; } .tp-intro-heading h2 { font-size: 42px; } .tp-intro { padding: 24px 40px; } }
@media (prefers-reduced-motion: reduce) { .tp-app *, .tp-app *::before, .tp-app *::after { animation: none !important; transition: none !important; } }
