:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #293831;
  --muted: #5e6b65;
  --line: #dce2df;
  --mint: #386452;
  --coral: #f28d76;
  --accent: #b44936;
  --tint: #e9f0ec;
  --dark: #293e34;
  --paper: #ffffff;
  --danger: #b33d32;
  --cw: 294px;
  --ch: 468px;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  color: inherit;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button,
input,
textarea {
  border-radius: 6px;
}
img {
  display: block;
  max-width: 100%;
}
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
input:focus,
textarea:focus {
  outline: none;
}
button,
.photo-picker,
summary {
  touch-action: manipulation;
}
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 36px;
}
h2 {
  font-size: 25px;
}
h3 {
  font-size: 23px;
}
em {
  font-style: normal;
  color: var(--accent);
}
[hidden],
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.icon {
  width: 21px;
  height: 21px;
  flex: none;
  filter: none;
  opacity: 0.8;
}
.topbar {
  max-width: 1120px;
  min-height: 92px;
  padding: 20px 28px;
  margin: auto;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  padding: 0;
  text-align: left;
  min-width: 0;
}
.brand > img {
  height: 44px;
  width: 44px;
  border-radius: 8px;
}
.brand > span {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.25;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: transparent;
  padding: 10px;
  border: 1px solid transparent;
}
.icon-button:hover {
  background: var(--tint);
}
.account-trigger {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
}
.account-wrap,
.overflow-wrap {
  position: relative;
}
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 210px;
  background: var(--paper);
  color: var(--dark);
  box-shadow: 0 8px 28px #21382d14;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  z-index: 30;
  text-align: left;
}
.menu p {
  font-size: 13px;
  padding: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: none;
  font-size: 14px;
}
.menu .icon {
  filter: none;
  opacity: 0.7;
}
.menu button:hover {
  background: var(--tint);
}
.menu .danger {
  color: var(--danger);
}
#accountMenu {
  width: 160px;
  padding: 4px;
  top: calc(100% + 6px);
}
#accountMenu p {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
}
#accountMenu button {
  min-height: 44px;
  padding: 8px 10px;
  line-height: 1.4;
}
#main {
  min-height: calc(100svh - 180px);
}
.page {
  max-width: 650px;
  margin: auto;
  padding: 60px 28px 50px;
}
.eyebrow {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.lede {
  color: var(--muted);
  font-size: 15px;
  margin-top: 22px;
  line-height: 1.8;
}
.site-footer {
  max-width: 1064px;
  margin: auto;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.icp-link {
  color: inherit;
  text-decoration: none;
}
.icp-link:hover,
.icp-link:focus-visible {
  text-decoration: underline;
}
.primary,
.secondary {
  min-height: 50px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  text-align: center;
  line-height: 1.4;
  font-size: 15px;
  font-weight: 650;
}
.primary {
  background: var(--coral);
  color: var(--ink);
  width: 100%;
  border: 1px solid var(--coral);
}
.primary .icon {
  filter: none;
}
.primary:hover:not(:disabled) {
  background: #ed7f68;
}
.primary:active:not(:disabled) {
  transform: translateY(1px);
}
.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--mint);
}
.secondary:hover {
  border-color: var(--mint);
}
.text-button {
  min-height: 44px;
  background: none;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}
.text-button:hover {
  color: var(--ink);
}
.danger {
  color: var(--danger);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 10px;
}
input,
textarea {
  background: transparent;
  border: 0;
  color: var(--ink);
  width: 100%;
  font-size: 16px;
  line-height: 1.7;
  min-width: 0;
}
textarea {
  display: block;
  padding: 16px;
  resize: vertical;
  min-height: 125px;
  max-height: 300px;
}
input {
  padding: 12px 14px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.scene-field,
.name-field {
  border: 1px solid #ccd6d0;
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}
.scene-field:focus-within,
.name-field:focus-within {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px #38645214;
}
.scene-field.invalid {
  border-color: var(--danger);
}
.field-error {
  font-size: 12px;
  color: var(--danger);
  padding: 0 16px 10px;
}
.field-error:empty {
  display: none;
}
.form-error {
  font-size: 13px;
  color: var(--danger);
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.form-error:empty {
  margin: 0;
}
.name-field {
  display: flex;
  align-items: center;
}
.name-field .icon-button {
  margin-right: 4px;
}
form > .primary {
  margin-top: 24px;
}
.input-page form {
  margin-top: 32px;
}
.photo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  min-height: 44px;
}
.photo-picker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: var(--mint);
  font-size: 13px;
  margin: 0;
  padding: 10px 0;
}
.photo-preview {
  display: flex;
  gap: 6px;
  align-items: center;
}
.photo-preview > img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}
.auth-page {
  text-align: center;
  padding-top: 36px;
  max-width: 480px;
}
.auth-page h1 {
  font-size: 34px;
}
.auth-page .eyebrow {
  margin-bottom: 12px;
}
.auth-form {
  text-align: left;
  margin-top: 28px;
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #edf0ef;
  margin-bottom: 24px;
}
.segmented button {
  background: none;
  min-height: 40px;
  color: var(--muted);
  font-size: 14px;
}
.segmented button[aria-selected="true"] {
  background: var(--surface);
  color: var(--dark);
  font-weight: 600;
  box-shadow: 0 1px 4px #29383112;
}
.auth-form > .name-field {
  margin-bottom: 18px;
}
.deck-page {
  max-width: 1120px;
  margin: auto;
  padding: 34px 0 34px;
  overflow: hidden;
}
.deck-heading {
  text-align: center;
  padding: 0 24px;
}
.deck-heading h1 {
  font-size: 28px;
}
.recap {
  max-width: 560px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-height: 72px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.recap:empty {
  display: none;
}
.fallback-note {
  color: #80631f;
  font-size: 12px;
  margin-top: 12px;
}
.stage {
  height: 540px;
  position: relative;
  perspective: 1400px;
  touch-action: pan-y;
  isolation: isolate;
  max-width: 1100px;
  margin: 16px auto 0;
}
.slot {
  position: absolute;
  width: var(--cw);
  height: var(--ch);
  top: 30px;
  left: calc(50% - var(--cw) / 2);
  transform: translateX(var(--x, 0px)) translateY(var(--y, 0px))
    rotate(var(--r, 0deg)) scale(var(--s, 1));
  z-index: var(--z, 1);
  transition:
    transform 0.42s cubic-bezier(0.18, 0.9, 0.3, 1.08),
    opacity 0.35s;
}
.stage.dragging .slot,
.stage.holding .slot,
.stage.ring-moving .slot {
  transition: none;
}
.stage.dragging .card {
  cursor: grabbing;
}
.card:not(:disabled) {
  cursor: grab;
}
.stage .card {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.stage .slot.active.revealed .card,
.stage .slot.active.revealed .card-copy {
  touch-action: none;
  -webkit-touch-callout: none;
}
.stage.holding .slot.active .card {
  filter: drop-shadow(0 14px 18px #20392d20);
  cursor: grabbing;
}
.drag-intent {
  position: absolute;
  inset: 0 0 auto;
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  pointer-events: none;
  z-index: 40;
}
.drag-intent:not(:empty) {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 2px 12px #20392d12;
}
.stage.empty {
  height: 160px;
}
.stage.empty::after {
  content: "这组不合适，就换一组。";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.card img {
  -webkit-user-drag: none;
}
.slot.absent {
  opacity: 0;
  pointer-events: none;
}
.card {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  color: var(--dark);
  border: 0;
  text-align: left;
  perspective: 1200px;
  border-radius: 8px;
}
.card:disabled {
  opacity: 1;
}
.card-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.slot.revealed .card-inner {
  transform: rotateY(180deg);
}
.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px #20392d1c;
}
.card-back {
  background: #dbe9e8;
  border: 1px solid #acc5c5;
}
.card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-front {
  transform: rotateY(180deg);
  background: var(--paper);
  border: 2px solid #d5e1e2;
  padding: 12px;
}
.slot.active .card-front {
  border-color: #ce6853;
  box-shadow:
    0 0 0 3px #f28d7614,
    0 14px 32px #20392d1f;
}
.card-art {
  width: 100%;
  height: 164px;
  object-fit: cover;
  flex: none;
  border-radius: 3px;
}
.card-art,
.album-art,
.detail-art {
  filter: saturate(1.08);
}
.card-copy {
  touch-action: pan-y;
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  padding: 0 6px;
  scrollbar-width: thin;
  scrollbar-color: #b2c5b0 transparent;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #617366;
  margin-top: 13px;
}
.card-title {
  display: block;
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.card-description {
  display: block;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 12px;
  color: #435c4f;
  overflow-wrap: anywhere;
}
.card-why {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #d6dece;
  color: #657469;
  overflow-wrap: anywhere;
}
.card-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-size: 10px;
  color: #657469;
  padding: 10px 6px 0;
  flex: none;
}
.complete-stamp {
  position: absolute;
  right: -8px;
  top: 28px;
  z-index: 4;
  background: #c1deba;
  color: #315c41;
  font-size: 13px;
  padding: 5px 14px;
  border: 2px solid #537557;
  transform: rotate(9deg);
  border-radius: 3px;
}
.deck-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: -10px;
  min-height: 44px;
}
.deck-navigation > span {
  font-size: 12px;
  color: var(--muted);
  min-width: 144px;
  text-align: center;
}
.deck-navigation .icon-button {
  border-color: var(--line);
  background: var(--surface);
}
.card-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  height: 28px;
}
.card-dots button {
  background: none;
  width: 28px;
  height: 28px;
  padding: 10px;
  display: grid;
  place-items: center;
}
.card-dots button:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c4cec8;
}
.card-dots button[aria-pressed="true"]:before {
  background: var(--accent);
  width: 8px;
  height: 8px;
}
.deck-actions {
  max-width: 350px;
  margin: 16px auto 0;
  padding: 0 16px;
  text-align: center;
}
.secondary-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 5px;
}
.stage.loading .slot {
  animation: shuffle 1.5s ease-in-out infinite;
}
.stage.loading .slot:nth-child(2) {
  animation-delay: 0.15s;
}
.stage.loading .slot:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes shuffle {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}
.history-page {
  max-width: 820px;
}
.history-page .section-heading { align-items: center; margin-bottom: 22px; }
.history-page .section-heading h1 { font-family: inherit; font-size: 24px; line-height: 1.4; font-weight: 600; }
.history-page .section-heading .overflow-wrap { margin-top: 0; }
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}
.section-heading h1 {
  font-size: 35px;
}
.section-heading .overflow-wrap {
  margin-top: 5px;
}
.history-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}
.history-top .icon-button {
  width: 36px;
  height: 36px;
}
.history-toggle {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  text-align: left;
  background: none;
  padding: 8px 0 12px;
}
.history-thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}
.history-copy {
  min-width: 0;
  flex: 1;
}
.history-scene {
  display: block;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.history-follow,
.history-selected {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.history-selected {
  color: var(--mint);
}
.history-details {
  padding-top: 4px;
}
.history-suggestion {
  display: flex;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.history-suggestion > img {
  width: 75px;
  height: 54px;
  object-fit: cover;
  border-radius: 3px;
  flex: none;
}
.history-suggestion h3 {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}
.history-suggestion p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.history-suggestion.selected h3 {
  color: var(--accent);
}
.history-details > .text-button {
  padding-left: 0;
  color: var(--mint);
}
.empty-state {
  padding: 50px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty-state img {
  width: 180px;
  margin: 0 auto 24px;
  border-radius: 5px;
  opacity: 0.8;
}
.empty-state button {
  margin: 18px auto 0;
}
.profile-page {
  max-width: 550px;
}
.profile-page form {
  margin-top: 35px;
}
.profile-login {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.choice-album { --album-cw: 220px; }
.album-viewport {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.album-viewport::-webkit-scrollbar { display: none; }
.album-viewport.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.album-track {
  display: flex;
  width: max-content;
  gap: 20px;
  padding: 8px 0 12px;
}
.choice-card {
  flex: 0 0 var(--album-cw);
  width: var(--album-cw);
  scroll-snap-align: start;
}
.choice-card.is-current { opacity: 1; }
.choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 14px;
  gap: 8px;
}
.choice-top time {
  font-size: 11px;
  line-height: 20px;
  color: var(--muted);
}
.deferred-label {
  flex: none;
  font-size: 10px;
  line-height: 20px;
  padding: 0 5px;
  border-radius: 3px;
  color: var(--muted);
  background: var(--tint);
}
.choice-main {
  position: relative;
  -webkit-touch-callout: none;
  width: 100%;
  height: 352px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  color: var(--dark);
  background: var(--paper);
  border: 1px solid #d5e1e2;
  box-shadow: 0 3px 9px #294c5008;
  border-radius: 6px;
  text-align: left;
  user-select: none;
  cursor: inherit;
}
.album-art {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: 3px;
  flex: none;
  pointer-events: none;
}
.choice-main:active { border-color: var(--accent); }
.choice-main:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.choice-main[aria-busy="true"] { opacity: 0.65; }
.choice-main .complete-stamp {
  top: 16px;
  right: 14px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
}
.album-copy { display: block; flex: 1; min-height: 0; overflow: hidden; padding: 12px 3px 0; }
.album-title {
  font: 500 19px/1.45 Georgia, "Songti SC", serif;
  margin: 9px 0;
  -webkit-line-clamp: 2;
}
.album-description {
  color: #546b5f;
  font-size: 13px;
  line-height: 1.8;
  -webkit-line-clamp: 3;
}
.album-title, .album-description, .album-copy .card-why {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.album-copy .card-why { display: none; }
.album-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 3px 0;
  font-size: 11px;
  color: #607469;
}
.record-delete { display: block; color: var(--muted); font-size: 12px; margin-top: 24px; }
body:has(.choice-sheet[open]) {
  overflow: hidden;
}
dialog.choice-sheet {
  color-scheme: light;
  width: min(600px, calc(100% - 32px));
  padding: 0;
  max-height: 90dvh;
  overscroll-behavior: contain;
  background: var(--paper);
  box-shadow: 0 20px 80px #25372d26;
}
.choice-sheet .icon { filter: none; opacity: 0.75; }
.sheet-tools { display: flex; align-items: center; gap: 2px; }
.choice-sheet .sheet-tools .icon-button { width: 40px; height: 40px; }
.choice-sheet-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: var(--paper);
  font-size: 12px;
  color: var(--muted);
}
.choice-sheet-top .icon-button {
  border: 0;
}
.choice-sheet-body {
  padding: 4px 28px max(28px, env(safe-area-inset-bottom));
}
.choice-sheet h2 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 23px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.choice-sheet h3 {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}
.choice-idea { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.idea-heading { display: flex; align-items: center; gap: 16px; }
.idea-heading > div { min-width: 0; }
.detail-art { width: 76px; height: 64px; object-fit: cover; border-radius: 4px; flex: none; }
.choice-sheet .idea-meta { font-size: 11px; margin: 0 0 5px; }
.choice-activity {
  overflow-wrap: anywhere;
}
.experience {
  padding: 26px 0 0;
}
.experience:not(.has-record):not(.is-editing) h3 { display: none; }
.experience:not(.has-record):not(.is-editing) [data-record-view] { display: none; }
.experience:not(.has-record):not(.is-editing) [data-edit-record] { padding: 9px 22px; border: 1px solid #a3b7a6; border-radius: 4px; color: var(--ink); }
.experience-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.experience-heading .text-button {
  color: var(--accent);
}
[data-record-view] > p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}
[data-record-view] .record-empty {
  color: var(--muted);
  font-size: 13px;
}
.experience-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.experience-photos.single {
  grid-template-columns: 1fr;
}
.experience-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}
.experience-photos.single img {
  aspect-ratio: 3/2;
}
.experience-photos > div {
  position: relative;
}
.experience-photos .icon-button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  background: #16392f;
}
.choice-sheet .experience-photos .icon { filter: invert(1); opacity: 1; }
.experience-photos .icon {
  width: 16px;
  height: 16px;
}
.experience-picker {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 12px 0 0;
  font-size: 13px;
  cursor: pointer;
}
.experience-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.experience-picker:focus-within {
  outline: 2px solid var(--accent);
}
.experience-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 18px;
}
.experience-actions .primary {
  width: auto;
  min-height: 44px;
  padding: 12px 18px;
}
.choice-sheet textarea {
  margin-top: 14px;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}
.choice-sheet textarea::placeholder { color: var(--muted); }
.choice-sheet textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px #38645214; }
.record-prompt .original-scene,
.record-prompt .detail-art,
.record-prompt .idea-meta,
.record-prompt .choice-activity,
.record-prompt .experience-heading,
.record-prompt .sheet-tools .overflow-wrap { display: none; }
.record-prompt .choice-idea { margin: 0; padding: 0; border: 0; }
.record-prompt .experience { padding-top: 6px; }
.record-prompt textarea { min-height: 120px; }
.original-scene {
  padding-top: 10px;
}
.choice-sheet .original-scene h3 { font-size: 12px; font-weight: 500; color: var(--muted); }
.original-content p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 500 18px/1.8 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  margin-top: 12px;
}
.original-content .scene-follow { font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.8; color: var(--muted); }
.original-content > img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  object-position: left;
  margin-top: 18px;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .choice-album { --album-cw: max(128px, calc((100vw - 60px) / 2)); }
  .album-track { gap: 12px; }
  .choice-main { height: 306px; padding: 8px; }
  .album-title { font-size: 18px; }
  .album-description { font-size: 12px; }
  .album-copy { padding: 10px 2px 0; }
  .album-copy .card-meta, .album-foot { font-size: 10px; }
  .album-foot { gap: 3px; padding: 8px 2px 0; }
  .choice-top { gap: 0; }
  .choice-top time { font-size: 10px; }
  dialog.choice-sheet {
    position: fixed;
    top: auto;
    bottom: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    border-radius: 8px 8px 0 0;
  }
  .choice-sheet-body {
    padding: 2px 22px max(28px, env(safe-area-inset-bottom));
  }
  .choice-sheet h2 {
    font-size: 21px;
  }
}
.settings-row {
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  font-size: 14px;
}
.data-settings {
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 20px 0;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.data-settings p {
  padding-bottom: 12px;
}
.data-settings .text-button {
  padding-left: 0;
}
dialog {
  color-scheme: light;
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--surface);
  color: var(--ink);
  max-height: 85svh;
  overflow: auto;
}
dialog::backdrop {
  background: #20312966;
}
dialog p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 14px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 23px;
}
.confirm-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.confirm-actions > * {
  flex: 1;
}
.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 12px);
  max-width: calc(100% - 36px);
  width: max-content;
  z-index: 100;
  background: #294b3d;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 5px;
  font-size: 13px;
  box-shadow: 0 5px 25px #20392d20;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 700px) {
  :root {
    --cw: 224px;
    --ch: 386px;
  }
  .topbar {
    margin: 0 20px;
    min-height: 80px;
    padding: 16px 0;
  }
  .brand > img {
    width: 38px;
    height: 38px;
  }
  .brand > span {
    font-size: 17px;
  }
  .brand small {
    font-size: 8px;
  }
  .page {
    padding: 38px 24px 36px;
  }
  h1 {
    font-size: 32px;
  }
  .lede {
    font-size: 14px;
    margin-top: 18px;
  }
  .eyebrow {
    margin-bottom: 14px;
  }
  .site-footer {
    margin: 0 24px;
    font-size: 10px;
  }
  .input-page form {
    margin-top: 28px;
  }
  .auth-page {
    padding-top: 30px;
  }
  .auth-page h1 {
    font-size: 32px;
  }
  .auth-form {
    margin-top: 24px;
  }
  .deck-page {
    padding-top: 28px;
  }
  .deck-heading {
    padding: 0 20px;
  }
  .deck-heading h1 {
    font-size: 24px;
  }
  .recap {
    font-size: 12px;
    max-width: 350px;
    max-height: 62px;
  }
  .stage {
    height: 431px;
    margin-top: 13px;
  }
  .slot {
    top: 26px;
  }
  .card-art {
    height: 124px;
  }
  .card-front {
    padding: 10px;
  }
  .card-title {
    font-size: 21px;
  }
  .card-description {
    font-size: 13px;
    line-height: 1.8;
  }
  .card-why {
    font-size: 11px;
  }
  .deck-navigation {
    margin-top: -8px;
  }
  .deck-actions {
    margin-top: 14px;
    max-width: 348px;
  }
  .section-heading h1 {
    font-size: 31px;
  }
  .history-scene {
    font-size: 15px;
  }
  .history-thumb {
    width: 57px;
    height: 57px;
  }
  .history-toggle {
    gap: 12px;
  }
  .history-suggestion > img {
    width: 64px;
    height: 46px;
  }
  .history-top {
    gap: 6px;
  }
  .section-heading {
    margin-bottom: 25px;
  }
}
@media (max-width: 359px) {
  :root {
    --cw: 208px;
    --ch: 386px;
  }
  .topbar {
    margin: 0 16px;
  }
  .page {
    padding-left: 20px;
    padding-right: 20px;
  }
  h1 {
    font-size: 30px;
  }
  .deck-heading h1 {
    font-size: 23px;
  }
  .stage {
    height: 431px;
  }
  .card-art {
    height: 112px;
  }
  .card-title {
    font-size: 21px;
  }
  .deck-actions {
    padding: 0 24px;
  }
  .card-description {
    font-size: 13px;
  }
  .photo-picker {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
