* {
  box-sizing: border-box;
}
:host {
  margin: 0;
  background: #fcfaf9;
  color: #19191c;
  font:
    16px Arial,
    'Microsoft YaHei',
    'Noto Sans CJK SC',
    sans-serif;
}
button {
  font: inherit;
  cursor: pointer;
}
header {
  height: 76px;
  border-bottom: 1px solid #efedee;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(6vw, calc((100vw - 1280px) / 2));
  gap: 24px;
}
.brand {
  width: 118px;
  display: block;
}
nav {
  display: flex;
  gap: 30px;
  font-size: 15px;
}
nav b {
  color: #f33a73;
  font-weight: 500;
}
.enter,
.hall {
  border: 0;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14px;
  white-space: nowrap;
}
.enter {
  background: #19191c;
  color: white;
}
.hall {
  background: white;
  border: 1px solid #e9e3e4;
  color: #19191c;
  font-weight: 600;
}
.section {
  padding: 76px 0 44px;
  min-height: calc(100vh - 76px);
  background:
    radial-gradient(ellipse at 0% 65%, #f9eee7 0, transparent 45%),
    radial-gradient(ellipse at 100% 70%, #f0edf3 0, transparent 46%), #fcfaf9;
}
.head {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  color: #89848c;
  font-size: 12px;
  letter-spacing: 1px;
}
.eyebrow:before {
  content: '•';
  color: #fa896c;
  margin-right: 10px;
}
h2 {
  font-size: clamp(32px, 4vw, 57px);
  letter-spacing: -2px;
  margin: 17px 0 0;
  line-height: 1.16;
}
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 40px auto 14px;
  padding: 0 20px;
}
.filters button {
  border: 1px solid #e7e0e4;
  border-radius: 30px;
  padding: 10px 17px;
  background: #ffffffbf;
  color: #77727c;
  font-size: 13px;
}
.filters button.on {
  background: #19191c;
  color: white;
  border-color: #19191c;
}
.stage {
  position: relative;
  width: 100%;
  height: clamp(270px, 31vw, 440px);
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.stage.drag {
  cursor: grabbing;
}
.stage svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.tile {
  cursor: pointer;
}
.tile-face { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .card-switch {
    animation: doulami-card-fade var(--card-fade-duration) var(--motion-ease-out);
  }
  @keyframes doulami-card-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile-face { transition: transform var(--motion-feedback-duration) var(--motion-ease-out); }
  .stage:not(.drag) .tile:hover .tile-face,
  .tile:focus-visible .tile-face { transform: translateY(var(--motion-card-lift)); }
}
.tile:focus-visible {
  outline: none;
}
.tile:focus-visible .panel {
  stroke: #f35a79;
  stroke-width: 3;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  color: #8a838a;
  font-size: 12px;
}
.controls button {
  background: #fff;
  border: 1px solid #e9e2e7;
  color: #514a52;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.hint {
  font-size: 12px;
  color: #938b92;
  text-align: center;
  margin: 14px 15px 0;
}
.selected {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin: 8px 0 0;
}
.controls button:focus-visible,
.filters button:focus-visible {
  outline: 2px solid #ec5e7d;
  outline-offset: 3px;
}
@media (max-width: 800px) {
  header {
    padding: 0 20px;
    height: 64px;
  }
  nav {
    display: none;
  }
  .section {
    padding-top: 44px;
  }
  .head {
    align-items: flex-start;
  }
  .hall {
    padding: 10px;
    font-size: 12px;
  }
  .filters {
    margin-top: 26px;
  }
  .stage {
    height: 320px;
  }
  h2 {
    letter-spacing: -1px;
  }
  .brand {
    width: 100px;
  }
}
.section {
  background:
    radial-gradient(ellipse at 5% 72%, #f5ede7 0, transparent 43%),
    radial-gradient(ellipse at 95% 73%, #f0edf2 0, transparent 42%), #fcfaf9;
  padding-top: 72px;
}
.filters {
  margin-top: 38px;
  margin-bottom: 20px;
}
.filters button {
  background: #ffffff75;
  border-color: #e9e4e5;
  padding: 10px 18px;
}
.filters button.on {
  background: #19191c;
  color: white;
}
.stage {
  height: clamp(300px, 31vw, 440px);
}
.controls {
  margin-top: 18px;
  gap: 14px;
}
.controls button {
  width: 34px;
  height: 34px;
  background: #ffffff90;
}
.selected {
  display: none;
}
.hint {
  font-size: 11px;
  letter-spacing: 0.4px;
  margin-top: 16px;
}
.hall {
  box-shadow: 0 5px 20px #34232607;
}
.gallery-caption {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1px;
  color: #a19a9b;
  font-size: 10px;
  letter-spacing: 1.7px;
}
.gallery-caption span:last-child {
  letter-spacing: 0.6px;
}
.gallery-caption .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #ef8263;
  border-radius: 50%;
  margin-right: 7px;
}
@media (max-width: 800px) {
  .gallery-caption {
    padding: 0 20px;
  }
  .section {
    padding-top: 42px;
  }
  .stage {
    height: 320px;
  }
  .filters {
    margin-top: 25px;
  }
}

/* Refined warm-white editorial gallery */
:host {
  background: #faf9f8;
}
.section {
  padding-top: 84px;
  background:
    radial-gradient(ellipse at 3% 66%, #f7ece5 0, transparent 44%),
    radial-gradient(ellipse at 98% 70%, #efebf2 0, transparent 46%),
    linear-gradient(180deg, #faf9f8 0%, #fbf9f8 55%, #f9f6f7 100%);
  overflow: hidden;
}
.head {
  max-width: 1280px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.6px;
}
.filters {
  margin: 42px auto 28px;
  gap: 10px;
}
.filters button {
  background: #ffffffb0;
  border-color: #e6e0e3;
  padding: 10px 17px;
  transition:
    background var(--motion-feedback-duration),
    border-color var(--motion-feedback-duration);
}
.filters button:hover {
  border-color: #d6c7cc;
}
.filters button.on {
  box-shadow: 0 5px 13px #25212b15;
}
.stage {
  width: 100%;
  height: clamp(310px, 30vw, 420px);
  isolation: isolate;
}
.stage svg {
  overflow: visible;
  filter: drop-shadow(0 15px 20px rgba(63, 42, 49, 0.055));
}
.stage:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(248, 240, 235, 0.83),
    transparent 8%,
    transparent 92%,
    rgba(243, 238, 244, 0.83)
  );
  mask-image: linear-gradient(transparent 0%, #000 13%, #000 87%, transparent 100%);
}
.controls {
  margin-top: 22px;
  gap: 14px;
}
.controls > span:first-child {
  display: none;
}
.controls button {
  background: #ffffffb8;
  border: 1px solid #e8e1e5;
  width: 34px;
  height: 34px;
  transition: background var(--motion-feedback-duration);
}
.controls button:hover {
  background: #fff;
  border-color: #d7c9cf;
}
.controls #count {
  font-variant-numeric: tabular-nums;
  min-width: 55px;
  text-align: center;
}
.hint {
  color: #9b9399;
  letter-spacing: 0.5px;
  font-size: 11px;
  margin-top: 15px;
}
.hall {
  padding: 14px 21px;
  box-shadow: 0 7px 25px #34232608;
}
.tile:focus-visible .panel {
  stroke: #f35a79;
  stroke-width: 2;
}
@media (max-width: 800px) {
  .section {
    min-height: auto;
    padding: 32px 0 24px;
  }
  .filters {
    margin: 18px auto 8px;
  }
  .stage {
    height: clamp(270px, 74vw, 300px);
  }
  .stage:after {
    background: linear-gradient(90deg, #f7eeea99, transparent 7%, transparent 93%, #f0ebf299);
  }
  .controls { margin-top: 6px; }
  .hint { margin: 8px 16px 0; }
}

:host {
  display: block;
  -webkit-font-smoothing: auto;
}
.tile {
  text-decoration: none;
}
.hall {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.head {
  width: calc(100% - 2 * clamp(32px, 4.4vw, 88px));
  max-width: 1320px;
  padding: 0;
}
.gallery-selection {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100% - 32px, 600px);
  margin: 14px auto 0;
}
.tutorial-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 10px;
  color: #fff;
  background: #262227;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}
.tutorial-entry:hover { background: #433740; }
#metric-note { width: min(100%, 460px); }
#metric-note summary {
  position: absolute;
  top: 0;
  left: calc(50% + 90px);
  padding: 14px 2px;
  white-space: nowrap;
  color: #66565c;
  font-size: 12px;
  cursor: pointer;
}
#metric-note p {
  margin: 10px auto 0;
  color: #60565c;
  font-size: 13px;
  line-height: 1.65;
}
#metric-note a { color: #694153; white-space: nowrap; }
.gallery-selection :focus-visible, .hall:focus-visible {
  outline: 2px solid #a2496b;
  outline-offset: 3px;
}
.gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 780px) {
  .head {
    width: calc(100% - 48px);
    display: grid;
    justify-content: start;
    gap: 12px;
  }
  .head h2 { margin-top: 10px; }
  .hall { justify-self: start; min-height: 44px; padding: 8px 14px; }
  .controls button { width: 44px; height: 44px; }
  .gallery-selection { margin-top: 10px; }
}
@media (max-width: 365px) {
  .head { width: calc(100% - 40px); }
}
@media (prefers-reduced-motion: reduce) {
  .filters button, .controls button { transition: none; }
}
