@font-face {
  font-family: WorryHand;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./street/caveat-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: WorryHand;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./street/caveat-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
:root {
  --bg: #f6f5ee;
  --ink: #19231f;
  --lime: #c9f36a;
  --blue: #c8d9ff;
  --coral: #ff795e;
  --paper: #fffdf7;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
textarea {
  font: inherit;
}
button,
select {
  color: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid #19231f28;
  background: var(--paper);
  border-radius: 14px;
  padding: 13px 17px;
  min-height: 46px;
  font-weight: 650;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.trash-layout {
  margin: clamp(20px, 3vw, 44px) auto 50px;
}
.trash-showcase {
  text-align: center;
}
.trash-heading {
  margin: 0 auto clamp(18px, 2vw, 28px);
  padding-inline: 8px;
}
.trash-heading h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.trash-heading p {
  margin: 9px auto 0;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.45;
  color: #526156;
}
.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #19231f25;
  border-radius: clamp(18px, 2vw, 30px);
  background: #fdf6eb;
  padding: 10px;
  scroll-margin-top: 12px;
}
.stage::before, .stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  width: min(400px, calc(50% - clamp(150px, 16vw, 208px) - 24px));
  background-image: url("../home/picker/trash-landscape.webp");
  background-repeat: no-repeat;
  opacity: .13;
  pointer-events: none;
}
.stage::before {
  left: 0;
  background-position: left center;
  background-size: 237% auto;
  mask-image: linear-gradient(to right, black 92%, transparent);
}
.stage::after {
  right: 1%;
  background-position: right center;
  background-size: 193% auto;
  mask-image: linear-gradient(to left, black 92%, transparent);
}
.trash-reel {
  position: relative;
  width: min(100%, 380px, 39svh);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 12px;
  background: #f6f1e2;
  box-shadow: 0 2px 14px #19231f1a;
}
#scene { display: block; width: 100%; height: 100%; }
.worry-composer {
  /* Overlay the paper drawn at (150, 296), 420 × 278 in the recording. */
  position: absolute;
  top: 23.125%;
  inset-inline: 20.833333%;
}
.worry-sheet {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 420 / 278;
}
.worry-sheet:focus-within { outline: 2px solid #82965e; outline-offset: 2px; }
#worry {
  position: absolute;
  inset: 7.5% 4% 12% 9.3%;
  width: 86.7%;
  height: 80.5%;
  padding: 0;
  border: 0;
  resize: none;
  background: transparent;
  outline: none;
  color: var(--ink);
  font: 500 max(16px, 6.65cqw)/1.08 WorryHand, cursive;
}
#worry::placeholder { color: #666d60; opacity: 1; }
.counter {
  position: absolute;
  bottom: 3%;
  right: 4%;
  font-size: 11px;
  color: #61685b;
  font-variant-numeric: tabular-nums;
}
.note-action {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #25342e;
  border-radius: 13px;
  background: var(--lime);
  box-shadow: 0 3px 0 #25342e;
  font-size: 16px;
  font-weight: 750;
}
.note-action:hover:enabled { background: #d6fa89; }
.note-action:active:enabled { transform: translateY(2px); box-shadow: 0 1px 0 #25342e; }
.stage.running .worry-composer { display: none; }
#status, .micro, .privacy {
  color: #59665e;
  line-height: 1.5;
  font-size: 13px;
}
#status { margin: 12px 0 0; }
#status:empty { margin: 0; }
.privacy { margin: 12px auto 0; max-width: 68ch; padding-inline: 8px; text-wrap: pretty; }
.trash-showcase + .trash-result { margin-top: clamp(28px, 4vw, 54px); }
@media (max-width: 680px) {
  .stage { padding: 5px; }
  .stage::before { width: 100%; background-position: center; background-size: 100% auto; mask-image: none; }
  .stage::after { display: none; }
  .trash-reel { width: min(100%, 45svh); }
  .privacy { font-size: 12px; }
}
.trash-result {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr);
  grid-template-areas: "film copy" "film actions" "replay replay";
  grid-template-rows: 1fr 1fr auto;
  column-gap: clamp(24px, 5vw, 76px);
  padding: clamp(18px, 3vw, 44px);
  background: var(--paper);
  border: 1px solid #19231f26;
  border-radius: 26px;
  scroll-margin-block-start: 18px;
}
.trash-result:focus, .stage:focus { outline: none; }
.trash-film {
  grid-area: film;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(12px, 2vw, 24px);
  border-radius: 18px;
  background: #eaf0df;
}
.trash-film video {
  display: block;
  width: min(100%, 230px);
  aspect-ratio: 9 / 16;
  border-radius: 11px;
  background: #eee9d7;
  box-shadow: 0 6px 20px #19231f1c;
}
.trash-share-copy { grid-area: copy; align-self: end; }
.trash-share-copy h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(26px, 3.8vw, 54px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.trash-share-copy p {
  margin: 14px 0 0;
  max-width: 42ch;
  color: #4c5a51;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.5;
}
.trash-share-actions { grid-area: actions; align-self: start; margin-top: 22px; }
#file-actions, .trash-next-round {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.trash-result button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #19231f50;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}
#share { background: var(--lime); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.trash-result button:hover:enabled { border-color: var(--ink); }
#video-status:empty { display: none; }
.trash-message-link {
  display: inline-flex;
  gap: .45em;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: .2em;
}
.trash-next-round {
  grid-area: replay;
  justify-content: space-between;
  margin-top: clamp(20px, 3vw, 36px);
  padding-top: 20px;
  border-top: 1px solid #19231f24;
}
.trash-next-round p { margin: 0; font-size: clamp(16px, 1.7vw, 22px); font-weight: 700; }
.trash-next-round button { background: #edf2fd; }
.trash-result.no-file { grid-template-areas: "copy copy" "actions actions" "replay replay"; grid-template-rows: auto; }
.trash-result.no-file .trash-film, .trash-result.no-file #file-actions, .trash-result.no-file #share-caption { display: none; }
@media (max-width: 620px) {
  .trash-result {
    grid-template-columns: minmax(94px, .75fr) minmax(0, 1.25fr);
    grid-template-areas: "film copy" "actions actions" "replay replay";
    grid-template-rows: auto;
    column-gap: 14px;
    border-radius: 18px;
    padding: 15px;
  }
  .trash-film { padding: 4px; border-radius: 12px; }
  .trash-share-copy { align-self: center; }
  .trash-share-copy h2 { font-size: clamp(22px, 6vw, 32px); overflow-wrap: anywhere; }
  .trash-share-copy p { margin-top: 8px; font-size: 14px; }
  .trash-share-actions { margin-top: 16px; }
  #file-actions button { flex: 1 1 auto; font-size: 14px; }
  .trash-next-round { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.trash-guide {
  display: grid;
  gap: 24px;
  margin-top: clamp(22px, 3vw, 40px);
  padding: clamp(18px, 2.6vw, 32px);
  background: var(--paper);
  border: 1px solid var(--site-line);
  border-radius: 18px;
  box-shadow: 0 12px 34px #19231f06;
}
.trash-guide h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.trash-guide h3 { margin: 0 0 12px; font-size: 16px; }
.trash-guide p {
  max-width: 80ch;
  margin: 10px 0 0;
  color: #526156;
  font-size: 15px;
  line-height: 1.65;
}
.trash-guide-steps, .trash-guide-faq {
  display: grid;
  gap: 10px;
}
.trash-guide-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.trash-guide-steps li, .trash-guide-faq details {
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: var(--bg);
}
.trash-guide-steps li { padding: 14px; font-size: 14px; line-height: 1.5; }
.trash-guide-steps span {
  display: block;
  margin-bottom: 6px;
  color: #536e27;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.trash-guide-faq {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.trash-guide-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}
.trash-guide-faq summary::-webkit-details-marker { display: none; }
.trash-guide-faq summary::after {
  content: "";
  flex: 0 0 12px;
  height: 12px;
  color: #526156;
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
}
.trash-guide-faq details[open] summary::after { background-size: 12px 2px, 0 0; }
.trash-guide-faq summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.trash-guide-faq p { margin: 0; padding: 0 14px 14px; font-size: 14px; }
@media (max-width: 680px) {
  .trash-guide { gap: 20px; }
  .trash-guide-steps, .trash-guide-faq { grid-template-columns: minmax(0, 1fr); }
  .trash-guide-steps li { display: flex; align-items: baseline; gap: 12px; }
  .trash-guide-steps span { margin: 0; }
}
