:root {
  color-scheme: dark;
  --night-950: #111326;
  --night-900: #171a31;
  --night-800: #242744;
  --plum-700: #5c466e;
  --plum-500: #8e6e94;
  --sage-600: #617a6e;
  --sage-400: #93aa9c;
  --blue-700: #46566f;
  --blue-500: #70829d;
  --rose-400: #d49baa;
  --gold-500: #d8b675;
  --gold-300: #f2d69a;
  --paper: #fbf7ef;
  --paper-2: #f3ebdf;
  --ink: #2b2931;
  --ink-soft: #6d6570;
  --line: rgba(79, 66, 72, 0.14);
  --shadow-heavy: 0 32px 80px rgba(6, 8, 23, 0.42);
  --shadow-soft: 0 16px 42px rgba(20, 18, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--night-950);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(148, 102, 142, 0.18), transparent 32%),
    radial-gradient(circle at 88% 68%, rgba(71, 91, 127, 0.22), transparent 36%),
    linear-gradient(155deg, #111326 0%, #181a31 55%, #101224 100%);
  color: #f8f2eb;
  font-family: "Noto Sans TC", "PingFang TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.18;
}

.ambient-left {
  top: -180px;
  left: -160px;
  background: #c080aa;
}

.ambient-right {
  right: -220px;
  bottom: -180px;
  background: #5477a5;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 58px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(242, 214, 154, 0.42);
  border-radius: 50%;
  background: rgba(242, 214, 154, 0.08);
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.kicker,
.eyebrow,
.panel-eyebrow {
  margin: 0;
  color: var(--gold-300);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-lockup h1 {
  margin: 1px 0 0;
  font-family: "Noto Serif TC", "Songti TC", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.preview-badge {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.intro {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.intro h2 {
  margin: 10px 0 18px;
  font-family: "Noto Serif TC", "Songti TC", Georgia, serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.22;
  text-wrap: balance;
}

.intro-copy {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(246, 240, 234, 0.68);
  font-size: 15px;
}

.experience {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 24px;
  align-items: stretch;
}

.scene-card,
.room-panel {
  min-height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  box-shadow: var(--shadow-heavy);
}

.scene-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(12, 15, 35, 0.08), rgba(19, 20, 41, 0.25)),
    url("assets/night-garden-backdrop.png") center / cover no-repeat;
}

.hybrid-version .scene-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 76%, transparent 0 33%, rgba(14, 14, 28, 0.1) 68%, rgba(8, 9, 21, 0.28) 100%),
    linear-gradient(180deg, rgba(25, 28, 55, 0.02), rgba(67, 45, 57, 0.11));
  content: "";
  pointer-events: none;
}

.hybrid-version .moon,
.hybrid-version .cloud {
  display: none;
}

.hybrid-version .stars {
  opacity: 0.28;
}

.hybrid-version .route,
.hybrid-version .countdown,
.hybrid-version .house-wrap,
.hybrid-version .rain,
.hybrid-version .scene-hint {
  z-index: 5;
}

.scene-card::after {
  position: absolute;
  inset: 0;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.sky-glow {
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: 12%;
  width: 78%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 181, 163, 0.42), transparent 68%);
  filter: blur(16px);
}

.hybrid-version .sky-glow {
  right: -18%;
  bottom: -2%;
  width: 92%;
  height: 56%;
  background: radial-gradient(circle, rgba(226, 154, 142, 0.22), transparent 70%);
  mix-blend-mode: screen;
}

.moon {
  position: absolute;
  top: 42px;
  right: 56px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f7e8c2;
  box-shadow: 0 0 40px rgba(247, 232, 194, 0.42);
}

.moon::after {
  position: absolute;
  top: -5px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #353452;
  content: "";
}

.stars i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff7df;
  box-shadow: 0 0 10px rgba(255, 247, 223, 0.82);
  animation: twinkle 4.8s ease-in-out infinite;
}

.stars i:nth-child(1) { top: 58px; left: 16%; }
.stars i:nth-child(2) { top: 112px; left: 34%; animation-delay: -1.2s; }
.stars i:nth-child(3) { top: 38px; left: 52%; animation-delay: -2.6s; }
.stars i:nth-child(4) { top: 126px; right: 18%; animation-delay: -3.4s; }
.stars i:nth-child(5) { top: 192px; left: 11%; animation-delay: -0.7s; }
.stars i:nth-child(6) { top: 178px; right: 9%; animation-delay: -2s; }
.stars i:nth-child(7) { top: 82px; right: 33%; animation-delay: -4s; }

.cloud {
  position: absolute;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(0.2px);
  animation: cloud-drift 18s ease-in-out infinite alternate;
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.cloud::before { left: 14px; width: 26px; height: 26px; }
.cloud::after { right: 12px; width: 20px; height: 20px; }
.cloud-one { top: 132px; left: 11%; width: 74px; }
.cloud-two { top: 84px; right: 28%; width: 58px; animation-delay: -7s; }

.route {
  position: absolute;
  z-index: 4;
  top: 38px;
  left: 42px;
  width: calc(100% - 84px);
  height: 92px;
}

.flight-line {
  position: absolute;
  top: 24px;
  left: 80px;
  right: 80px;
  height: 52px;
  border-top: 1px dashed rgba(242, 214, 154, 0.62);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.plane {
  position: absolute;
  top: 12px;
  left: 84px;
  color: var(--gold-300);
  font-size: 15px;
  filter: grayscale(1) sepia(1) drop-shadow(0 2px 6px rgba(242, 214, 154, 0.3));
  animation: fly 14s ease-in-out infinite;
}

.city {
  position: absolute;
  top: 42px;
  display: grid;
  gap: 1px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.city::before {
  position: absolute;
  top: -15px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-300);
  border-radius: 50%;
  background: rgba(242, 214, 154, 0.16);
  box-shadow: 0 0 12px rgba(242, 214, 154, 0.46);
  content: "";
}

.city small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.city-left { left: 0; text-align: left; }
.city-right { right: 0; text-align: right; }
.city-left::before { left: 0; }
.city-right::before { right: 0; }

.countdown {
  position: absolute;
  z-index: 6;
  top: 132px;
  left: 50%;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 14px;
  align-items: center;
  min-width: 252px;
  padding: 12px 18px 11px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 16px;
  background: rgba(250, 243, 235, 0.88);
  box-shadow: 0 12px 32px rgba(30, 22, 37, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.countdown-label {
  grid-column: 1 / -1;
  color: var(--plum-700);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.countdown-main {
  font-family: "Noto Serif TC", "Songti TC", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.countdown-days {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.countdown-days strong {
  color: #9b4f5d;
  font-family: Georgia, serif;
  font-size: 22px;
}

.house-wrap {
  position: absolute;
  z-index: 5;
  bottom: 60px;
  left: 50%;
  width: min(390px, 72%);
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 30px rgba(11, 10, 20, 0.48));
}

.hybrid-version .house-wrap::after {
  position: absolute;
  right: 2%;
  bottom: 13px;
  left: 2%;
  z-index: -1;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(246, 205, 132, 0.18), transparent 68%);
  filter: blur(10px);
  content: "";
  pointer-events: none;
}

.room-trigger {
  border: 0;
  color: #fffaf1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.roof {
  position: relative;
  z-index: 5;
  display: block;
  width: calc(100% + 46px);
  height: 152px;
  margin-left: -23px;
  padding: 44px 24px 18px;
  clip-path: polygon(50% 0, 100% 88%, 96% 100%, 4% 100%, 0 88%);
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(255, 255, 255, 0.075) 26px 28px),
    linear-gradient(145deg, #765979 0%, #4c3a61 62%, #392e4f 100%);
  text-align: center;
  transition: filter 260ms ease, transform 260ms ease;
}

.hybrid-version .roof {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.13), transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(239, 216, 204, 0.1) 25px 27px),
    repeating-linear-gradient(92deg, rgba(45, 31, 53, 0.12) 0 2px, transparent 2px 23px),
    linear-gradient(145deg, #735777 0%, #4d3a60 58%, #352b49 100%);
}

.roof::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 42%);
  content: "";
  pointer-events: none;
}

.roof-light {
  position: absolute;
  top: 66px;
  left: 50%;
  width: 68px;
  height: 38px;
  transform: translateX(-50%);
  border: 2px solid rgba(250, 237, 210, 0.72);
  border-radius: 34px 34px 5px 5px;
  background: rgba(250, 210, 137, 0.14);
  box-shadow: inset 0 0 18px rgba(245, 197, 117, 0.14);
  transition: background 260ms ease, box-shadow 260ms ease;
}

.roof-copy {
  position: relative;
  z-index: 2;
  transform: translateY(22px);
}

.eave {
  position: relative;
  z-index: 6;
  width: calc(100% + 20px);
  height: 12px;
  margin: -10px 0 -2px -10px;
  border-radius: 7px;
  background: linear-gradient(#e4d0ba, #ad8f79);
  box-shadow: 0 6px 10px rgba(38, 27, 35, 0.22);
}

.chimney {
  position: absolute;
  z-index: 4;
  top: 55px;
  left: 62px;
  width: 31px;
  height: 66px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #8f5e58, #6c454c);
}

.chimney::before {
  position: absolute;
  top: -7px;
  left: -5px;
  width: 41px;
  height: 10px;
  border-radius: 4px;
  background: #61404a;
  content: "";
}

.chimney i {
  position: absolute;
  left: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(245, 233, 223, 0.36);
  opacity: 0;
  animation: smoke 6s ease-out infinite;
}

.chimney i:nth-child(1) { top: -22px; }
.chimney i:nth-child(2) { top: -22px; animation-delay: -2s; }
.chimney i:nth-child(3) { top: -22px; animation-delay: -4s; }

.floor {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  width: 100%;
  min-height: 90px;
  padding: 14px 18px;
  border-left: 9px solid rgba(61, 45, 54, 0.22);
  border-right: 9px solid rgba(61, 45, 54, 0.22);
  text-align: center;
  transition: filter 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.floor-two {
  background:
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(255, 255, 255, 0.045) 14px 15px),
    linear-gradient(145deg, #80968b, #5d746b 65%, #53685f);
}

.hybrid-version .floor-two {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.08), transparent 32%),
    radial-gradient(circle at 20% 40%, rgba(231, 219, 195, 0.08), transparent 30%),
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(255, 255, 255, 0.055) 13px 15px),
    linear-gradient(145deg, #7b9186, #596e65 66%, #4e635a);
}

.floor-one {
  min-height: 118px;
  padding-bottom: 34px;
  border-radius: 0 0 10px 10px;
  background:
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(255, 255, 255, 0.04) 14px 15px),
    linear-gradient(145deg, #708099, #4e607b 65%, #41516a);
}

.hybrid-version .floor-one {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.075), transparent 34%),
    radial-gradient(circle at 78% 36%, rgba(229, 212, 197, 0.06), transparent 28%),
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(255, 255, 255, 0.045) 13px 15px),
    linear-gradient(145deg, #6c7b94, #4a5c76 66%, #3d4d66);
}

.room-copy {
  display: grid;
  gap: 2px;
  pointer-events: none;
}

.room-copy b,
.umbrella b {
  font-family: "Noto Serif TC", "Songti TC", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.room-copy small,
.umbrella small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.window {
  position: relative;
  display: block;
  width: 34px;
  height: 40px;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid rgba(243, 232, 213, 0.82);
  border-radius: 18px 18px 4px 4px;
  background: #d7a85f;
  box-shadow: inset 0 0 12px rgba(99, 60, 34, 0.38), 0 0 14px rgba(243, 199, 116, 0.22);
  pointer-events: none;
  transition: background 280ms ease, box-shadow 280ms ease;
}

.window::before,
.window::after {
  position: absolute;
  z-index: 2;
  background: rgba(244, 236, 219, 0.82);
  content: "";
}

.window::before { top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); }
.window::after { top: 52%; left: 0; right: 0; height: 2px; }

.window i {
  position: absolute;
  right: -6px;
  bottom: -9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 234, 173, 0.34);
}

.door {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 48px;
  height: 59px;
  transform: translateX(-50%);
  border: 3px solid #b99175;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, #725348, #553d3d);
  box-shadow: inset 8px 0 15px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.door::before {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 15px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 10px 10px 3px 3px;
  background: #e7c47f;
  box-shadow: 0 0 16px rgba(231, 196, 127, 0.48);
  content: "";
}

.door i {
  position: absolute;
  top: 39px;
  right: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-300);
}

.foundation {
  width: calc(100% + 22px);
  height: 12px;
  margin-left: -11px;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(#ba9a83, #79665b);
}

.garden {
  position: relative;
  width: calc(100% + 98px);
  height: 22px;
  margin: -1px 0 0 -49px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(30, 31, 42, 0.44), transparent 66%);
}

.stone {
  position: absolute;
  top: 4px;
  width: 17px;
  height: 7px;
  border-radius: 50%;
  background: #c6aa93;
  opacity: 0.76;
}

.stone-one { left: calc(50% - 22px); }
.stone-two { left: calc(50% + 1px); width: 14px; opacity: 0.58; }
.stone-three { left: calc(50% + 21px); width: 10px; opacity: 0.42; }

.grass {
  position: absolute;
  top: -3px;
  width: 34px;
  height: 16px;
  border-radius: 50% 50% 12px 12px;
  background: #5d6f60;
}

.grass-left { left: 18px; transform: rotate(-6deg); }
.grass-right { right: 22px; transform: rotate(5deg); }

.umbrella {
  position: absolute;
  right: -10px;
  bottom: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
  padding: 10px 14px 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(59, 48, 65, 0.62);
  box-shadow: 0 8px 22px rgba(20, 14, 26, 0.18);
  text-align: left;
  backdrop-filter: blur(10px);
  transition: background 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.umbrella-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 155, 170, 0.18);
  color: #f3c6d1;
  font-family: Georgia, serif;
  font-size: 24px;
}

.umbrella span:last-child {
  display: grid;
  gap: 0;
}

.umbrella b { font-size: 13px; }
.umbrella small { font-size: 9px; }

.room-trigger:hover {
  filter: brightness(1.09);
}

.floor:hover,
.umbrella:hover {
  transform: translateY(-3px);
}

.roof:hover {
  transform: translateY(-4px);
}

.roof.room-active .roof-light {
  background: rgba(250, 210, 137, 0.58);
  box-shadow: 0 0 28px rgba(250, 210, 137, 0.68), inset 0 0 12px rgba(255, 244, 202, 0.46);
}

.floor.room-active .window {
  background: #f0c879;
  box-shadow: 0 0 25px rgba(246, 202, 119, 0.64), inset 0 0 13px rgba(255, 245, 205, 0.28);
}

.room-trigger.room-active {
  filter: brightness(1.1) saturate(1.04);
}

.floor.room-active {
  z-index: 3;
  box-shadow: inset 0 0 0 2px rgba(242, 214, 154, 0.34), 0 0 34px rgba(242, 214, 154, 0.24);
}

.umbrella.room-active {
  background: rgba(114, 78, 96, 0.82);
  box-shadow: 0 0 30px rgba(231, 174, 193, 0.25);
}

.scene-hint {
  position: absolute;
  z-index: 8;
  right: 22px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.scene-hint span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 10px rgba(242, 214, 154, 0.8);
  animation: breathe 3.6s ease-in-out infinite;
}

.rain {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: hidden;
  pointer-events: none;
}

.rain i {
  position: absolute;
  top: -60px;
  width: 1px;
  height: 34px;
  transform: rotate(12deg);
  background: linear-gradient(transparent, rgba(220, 231, 247, 0.72));
  opacity: 0;
}

.rain i:nth-child(1) { left: 8%; }
.rain i:nth-child(2) { left: 16%; animation-delay: -0.4s; }
.rain i:nth-child(3) { left: 25%; animation-delay: -1.1s; }
.rain i:nth-child(4) { left: 34%; animation-delay: -0.7s; }
.rain i:nth-child(5) { left: 43%; animation-delay: -1.6s; }
.rain i:nth-child(6) { left: 51%; animation-delay: -0.2s; }
.rain i:nth-child(7) { left: 59%; animation-delay: -1.2s; }
.rain i:nth-child(8) { left: 67%; animation-delay: -0.6s; }
.rain i:nth-child(9) { left: 75%; animation-delay: -1.5s; }
.rain i:nth-child(10) { left: 82%; animation-delay: -0.9s; }
.rain i:nth-child(11) { left: 89%; animation-delay: -1.8s; }
.rain i:nth-child(12) { left: 95%; animation-delay: -0.3s; }

.scene-card.is-raining {
  background:
    linear-gradient(180deg, rgba(8, 12, 31, 0.36), rgba(20, 24, 42, 0.55)),
    url("assets/night-garden-backdrop.png") center / cover no-repeat;
}

.scene-card.is-raining .rain i {
  animation: rain-fall 2.2s linear infinite;
}

.scene-card.is-raining .moon,
.scene-card.is-raining .stars {
  opacity: 0.2;
  transition: opacity 500ms ease;
}

.room-panel {
  position: relative;
  overflow: hidden;
  padding: 44px 38px 32px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.76), transparent 36%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.room-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  border-radius: 0 0 0 100%;
  background: radial-gradient(circle at 80% 20%, rgba(192, 151, 164, 0.16), transparent 65%);
  content: "";
}

.panel-heading {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.panel-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(92, 70, 110, 0.24);
  border-radius: 50%;
  color: var(--plum-700);
  font-family: Georgia, serif;
  font-size: 18px;
}

.panel-eyebrow {
  color: var(--plum-700);
  font-size: 9px;
}

.panel-heading h3 {
  margin: 7px 0 0;
  font-family: "Noto Serif TC", "Songti TC", Georgia, serif;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.28;
  text-wrap: balance;
}

.panel-lead {
  margin: 26px 0 22px;
  color: var(--ink-soft);
  font-family: "Noto Serif TC", "Songti TC", Georgia, serif;
  font-size: 16px;
  line-height: 1.85;
}

.thoughts {
  display: grid;
  gap: 10px;
}

.thought-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 15px;
  border: 1px solid rgba(87, 74, 80, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.thought-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(92, 70, 110, 0.09);
  color: var(--plum-700);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.thought-card b {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.thought-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.panel-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 15px 17px;
  border-radius: 12px;
  background: #292a3e;
  color: #fffaf1;
}

.note-light {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 16px rgba(242, 214, 154, 0.72);
}

.panel-note p {
  display: grid;
  gap: 1px;
  margin: 0;
}

.panel-note b {
  color: var(--gold-300);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.panel-note span {
  font-size: 12px;
}

.room-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.room-tab {
  padding: 8px 6px;
  border: 1px solid rgba(77, 65, 72, 0.16);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.room-tab.room-active {
  border-color: var(--plum-700);
  background: var(--plum-700);
  color: #fff;
}

.sheet-close,
.panel-handle,
.sheet-scrim {
  display: none;
}

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  letter-spacing: 0.06em;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.32; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.4); }
}

@keyframes cloud-drift {
  from { transform: translateX(-10px); }
  to { transform: translateX(24px); }
}

@keyframes fly {
  0% { left: 84px; transform: translateY(26px) rotate(-12deg); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translateY(-1px) rotate(0deg); }
  92% { opacity: 1; }
  100% { left: calc(100% - 102px); transform: translateY(26px) rotate(12deg); opacity: 0; }
}

@keyframes smoke {
  0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
  18% { opacity: 0.55; }
  100% { transform: translate(17px, -62px) scale(1.45); opacity: 0; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes rain-fall {
  0% { transform: translate3d(0, -60px, 0) rotate(12deg); opacity: 0; }
  12% { opacity: 0.7; }
  100% { transform: translate3d(-80px, 820px, 0) rotate(12deg); opacity: 0; }
}

@media (max-width: 980px) {
  .page-shell {
    width: min(760px, calc(100% - 32px));
  }

  .experience {
    grid-template-columns: 1fr;
  }

  .scene-card,
  .room-panel {
    min-height: 690px;
  }

  .room-panel {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 520px);
    padding-top: 18px;
  }

  .topbar {
    margin-bottom: 40px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .kicker {
    font-size: 8px;
  }

  .brand-lockup h1 {
    font-size: 15px;
  }

  .preview-badge {
    padding: 7px 10px;
    font-size: 9px;
  }

  .intro {
    margin-bottom: 26px;
  }

  .intro h2 {
    margin-top: 8px;
    font-size: clamp(34px, 10.4vw, 46px);
  }

  .intro-copy {
    padding: 0 10px;
    font-size: 13px;
  }

  .scene-card {
    min-height: 690px;
    border-radius: 24px;
  }

  .route {
    top: 30px;
    left: 22px;
    width: calc(100% - 44px);
  }

  .flight-line {
    left: 60px;
    right: 60px;
  }

  .plane {
    left: 64px;
  }

  .city {
    font-size: 10px;
  }

  .city small {
    font-size: 6px;
  }

  .moon {
    top: 108px;
    right: 24px;
    width: 34px;
    height: 34px;
  }

  .moon::after {
    width: 34px;
    height: 34px;
  }

  .countdown {
    top: 134px;
    min-width: 236px;
    padding: 10px 15px;
  }

  .house-wrap {
    bottom: 74px;
    width: min(318px, 82%);
  }

  .roof {
    height: 132px;
  }

  .roof-light {
    top: 58px;
  }

  .chimney {
    top: 47px;
    left: 46px;
  }

  .floor {
    grid-template-columns: 52px 1fr 52px;
    min-height: 82px;
    padding-right: 11px;
    padding-left: 11px;
  }

  .floor-one {
    min-height: 110px;
  }

  .window {
    width: 30px;
    height: 36px;
  }

  .room-copy b {
    font-size: 15px;
  }

  .room-copy small {
    font-size: 9px;
  }

  .umbrella {
    right: -4px;
    bottom: -18px;
    min-width: 164px;
    padding: 8px 10px;
  }

  .umbrella-icon {
    width: 31px;
    height: 31px;
    font-size: 21px;
  }

  .umbrella b { font-size: 11px; }
  .umbrella small { font-size: 8px; }

  .scene-hint {
    right: auto;
    bottom: 19px;
    left: 20px;
  }

  .room-panel {
    position: fixed;
    z-index: 80;
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-height: 0;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    padding: 30px 20px 20px;
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 28px));
    transition: transform 300ms ease, opacity 240ms ease;
  }

  body.sheet-open {
    overflow: hidden;
  }

  body.sheet-open .room-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sheet-close {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(60, 47, 58, 0.08);
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 22px;
  }

  .panel-handle {
    display: block;
    width: 42px;
    height: 4px;
    margin: -16px auto 20px;
    border-radius: 999px;
    background: rgba(43, 41, 49, 0.18);
  }

  .panel-heading {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    padding-right: 34px;
    padding-bottom: 18px;
  }

  .panel-number {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  .panel-heading h3 {
    font-size: 24px;
  }

  .panel-lead {
    margin: 18px 0 16px;
    font-size: 14px;
  }

  .thought-card {
    padding: 12px;
  }

  .panel-note {
    margin-top: 16px;
  }

  .room-nav {
    position: sticky;
    bottom: -20px;
    margin: 18px -20px -20px;
    padding: 12px 20px 16px;
    background: linear-gradient(transparent, var(--paper) 20%);
  }

  .sheet-scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(8, 9, 21, 0.58);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: opacity 240ms ease;
  }

  body.sheet-open .sheet-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .footer-note {
    display: grid;
    gap: 3px;
    padding: 0 4px;
  }
}

@media (max-width: 390px) {
  .topbar {
    gap: 10px;
  }

  .brand-lockup {
    gap: 9px;
  }

  .preview-badge {
    max-width: 92px;
    text-align: center;
  }

  .scene-card {
    min-height: 660px;
  }

  .house-wrap {
    width: min(286px, 84%);
  }

  .umbrella {
    right: -9px;
  }
}

/* B3: generated city landmarks and restored full relationship content */
.landmark-generated {
  bottom: calc(100% + 4px);
  width: 62px;
  height: 66px;
  filter: drop-shadow(0 5px 8px rgba(10, 12, 20, 0.34));
}

.landmark-generated img {
  position: absolute;
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.landmark-kaohsiung { left: -16px; }
.landmark-kaohsiung img { right: 7px; bottom: 0; width: 42px; height: 68px; }
.landmark-kumamoto { right: -15px; width: 78px; }
.landmark-kumamoto .castle-art { right: 15px; bottom: 0; width: 62px; height: 62px; }
.landmark-kumamoto .bear-art {
  right: 0;
  bottom: -1px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  box-shadow: 0 4px 10px rgba(10,12,20,.25);
}

.room-panel {
  height: 720px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(92, 70, 110, .28) transparent;
  scrollbar-width: thin;
}

.content-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 14px;
  padding: 9px 11px;
  border: 1px solid rgba(92, 70, 110, .12);
  border-radius: 10px;
  background: rgba(92, 70, 110, .055);
}
.content-status span { display: inline-flex; align-items: center; gap: 7px; color: var(--plum-700); font-size: 11px; font-weight: 700; }
.content-status i { width: 7px; height: 7px; border-radius: 50%; background: #56a26f; box-shadow: 0 0 0 4px rgba(86,162,111,.12); }
.content-status small { color: var(--ink-soft); font-size: 9px; text-align: right; }

.detailed-thoughts { gap: 14px; }
.detail-card {
  overflow: hidden;
  border: 1px solid rgba(78, 70, 76, .13);
  border-left: 4px solid var(--detail-color, var(--plum-700));
  border-radius: 14px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 5px 16px rgba(55, 45, 50, .055);
}
.detail-purple { --detail-color: #8a62aa; }
.detail-green { --detail-color: #5e8b70; }
.detail-blue { --detail-color: #5b779b; }
.detail-red { --detail-color: #b8616b; }
.detail-card > header {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 13px 14px 10px;
}
.detail-index {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--detail-color) 12%, white);
  color: var(--detail-color);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
}
.detail-card h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; line-height: 1.35; }
.detail-card h4 span { font-size: 17px; }
.detail-body { padding: 0 15px 13px 54px; color: #4f4951; font-size: 12px; line-height: 1.75; }
.detail-body ul { margin: 0; padding-left: 18px; }
.detail-body li + li { margin-top: 5px; }
.ask { color: #c43b47; font-weight: 700; }
.eg { color: #38835a; }
.fact { margin-top: 10px; padding: 9px 10px; border-radius: 9px; background: rgba(78,112,151,.09); color: #536879; font-size: 10px; }
.detail-body details { margin-top: 10px; padding: 9px 10px; border-radius: 9px; background: rgba(214,174,94,.11); }
.detail-body summary { color: #7d5e2b; cursor: pointer; font-weight: 700; }
.detail-body details p { margin: 7px 0 0; }
.stamp-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.stamp-preview button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px dashed rgba(82,116,91,.4);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: #58705e;
  cursor: pointer;
  font-size: 10px;
}
.stamp-preview button.is-stamped { border-style: solid; background: #5e8b70; color: #fff; }
.stamp-preview button.is-stamped::before { content: "✓ "; }
.micro-note { margin: 5px 0 0; color: #8a8188; font-size: 9px; }

.discussion-log { border-top: 1px dashed rgba(78,70,76,.18); padding: 9px 13px 11px; }
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.log-head button { min-height: 32px; border: 0; background: transparent; cursor: pointer; font-size: 10px; }
.log-toggle { color: #675f68; }
.log-add { padding: 4px 10px; border: 1px solid rgba(74,108,153,.2) !important; border-radius: 999px; color: #386ba5; }
.log-list { display: none; gap: 7px; margin-top: 8px; }
.log-list.is-open { display: grid; }
.log-empty { margin: 0; color: #948a91; font-size: 9px; line-height: 1.55; }
.log-entry { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; padding: 8px 9px; border-radius: 8px; background: rgba(92,70,110,.055); font-size: 10px; }
.log-entry time { color: #8a7f88; font-size: 9px; }
.log-entry span { grid-column: 2; color: #746a72; }
.log-form { display: none; gap: 7px; margin-top: 8px; }
.log-form.is-open { display: grid; }
.log-form input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid rgba(78,70,76,.18); border-radius: 8px; background: rgba(255,255,255,.8); color: var(--ink); font: inherit; font-size: 11px; }
.log-form input[aria-invalid="true"] { border-color: #c43b47; }
.log-form div { display: flex; gap: 7px; }
.log-form button { min-height: 34px; padding: 6px 13px; border: 1px solid rgba(92,70,110,.22); border-radius: 8px; background: transparent; color: var(--plum-700); cursor: pointer; font-size: 10px; }
.log-form .log-save { background: var(--plum-700); color: #fff; }
.room-panel .panel-note { position: relative; }
.room-panel .room-nav {
  position: sticky;
  z-index: 4;
  bottom: -32px;
  margin: 18px -38px -32px;
  padding: 14px 38px 24px;
  background: linear-gradient(transparent 0, rgba(251,247,239,.96) 24%);
  backdrop-filter: blur(8px);
}

@media (max-width: 760px) {
  .room-panel { height: auto; }
  .landmark-generated { transform: scale(.82); }
  .landmark-kaohsiung { left: -18px; transform-origin: bottom left; }
  .landmark-kumamoto { right: -18px; transform-origin: bottom right; }
  .detail-body { padding-left: 15px; font-size: 12px; }
  .content-status { align-items: flex-start; flex-direction: column; }
  .content-status small { text-align: left; }
  .log-head button, .stamp-preview button, .log-form button { min-height: 44px; }
  .log-form input { min-height: 44px; }
  .room-panel .room-nav { bottom: -20px; margin: 18px -20px -20px; padding: 12px 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* 場景氛圍（飛機航線、雨滴）是頁面主體，手機開「減少動態效果」也照播 */
  .plane {
    animation-duration: 14s !important;
    animation-iteration-count: infinite !important;
  }

  .scene-card.is-raining .rain i {
    animation-duration: 2.2s !important;
    animation-iteration-count: infinite !important;
  }
}

/* B2: generated miniature house + automatic day/night presentation */
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.theme-icon {
  color: var(--gold-300);
  font-size: 16px;
  line-height: 1;
}

.theme-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

body,
.scene-card,
.brand-mark,
.preview-badge,
.theme-toggle,
.intro-copy,
.kicker,
.eyebrow,
.footer-note {
  transition: color 420ms ease, background 620ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.scene-card {
  transition: color 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.theme-night .scene-card {
  background:
    linear-gradient(180deg, rgba(12, 15, 35, 0.06), rgba(19, 20, 41, 0.22)),
    url("assets/night-garden-backdrop.png") center / cover no-repeat;
}

.theme-day {
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 245, 212, 0.72), transparent 30%),
    radial-gradient(circle at 88% 70%, rgba(132, 174, 174, 0.24), transparent 36%),
    linear-gradient(155deg, #e9efeb 0%, #dce8e7 52%, #ccdadd 100%);
  color: #30333a;
}

.theme-day .ambient-left { background: #f2d29d; }
.theme-day .ambient-right { background: #86aeb1; }
.theme-day .brand-mark {
  border-color: rgba(109, 78, 78, 0.3);
  background: rgba(255, 255, 255, 0.42);
  color: #765468;
}
.theme-day .kicker,
.theme-day .eyebrow { color: #765468; }
.theme-day .intro-copy { color: rgba(45, 49, 54, 0.68); }
.theme-day .preview-badge,
.theme-day .theme-toggle {
  border-color: rgba(60, 65, 70, 0.15);
  background: rgba(255, 255, 255, 0.52);
  color: rgba(42, 47, 51, 0.78);
  box-shadow: 0 8px 24px rgba(71, 86, 89, 0.08);
}
.theme-day .theme-icon { color: #a27242; }
.theme-day .footer-note { color: rgba(47, 51, 55, 0.54); }
.theme-day .scene-card {
  border-color: rgba(72, 83, 86, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(83, 100, 102, 0.08)),
    url("assets/day-garden-backdrop.png") center / cover no-repeat;
  box-shadow: 0 28px 64px rgba(66, 78, 79, 0.22);
}
.theme-day.hybrid-version .scene-card::before {
  background:
    radial-gradient(circle at 50% 76%, transparent 0 34%, rgba(62, 74, 72, 0.04) 68%, rgba(64, 78, 78, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(110, 94, 84, 0.04));
}

.landmark {
  position: absolute;
  bottom: calc(100% + 5px);
  display: block;
  filter: drop-shadow(0 3px 8px rgba(10, 12, 20, 0.28));
}

.city::before { display: none; }
.city-copy { display: grid; gap: 0; }

.landmark-85 {
  left: 0;
  width: 27px;
  height: 37px;
  border-radius: 3px 3px 1px 1px;
  background:
    linear-gradient(90deg, transparent 0 3px, rgba(238, 225, 202, 0.88) 3px 5px, transparent 5px 22px, rgba(238, 225, 202, 0.88) 22px 24px, transparent 24px),
    linear-gradient(90deg, #526a76 0 7px, #d0b590 7px 20px, #526a76 20px 27px);
  clip-path: polygon(9% 28%, 31% 28%, 31% 13%, 43% 13%, 47% 0, 53% 0, 57% 13%, 69% 13%, 69% 28%, 91% 28%, 100% 100%, 0 100%);
}

.landmark-85 i {
  position: absolute;
  top: 17px;
  left: 11px;
  width: 5px;
  height: 15px;
  background: repeating-linear-gradient(180deg, #f7df9a 0 2px, transparent 2px 4px);
}

.kumamon-mark {
  right: 0;
  width: 38px;
  height: 34px;
  border-radius: 48% 48% 46% 46%;
  background: #18191b;
}
.kumamon-mark::before,
.kumamon-mark::after {
  position: absolute;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #18191b;
  content: "";
}
.kumamon-mark::before { left: 2px; }
.kumamon-mark::after { right: 2px; }
.kumamon-eye {
  position: absolute;
  z-index: 2;
  top: 8px;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 58%, #17181a 0 1.5px, #fff 2px);
}
.eye-left { left: 10px; }
.eye-right { right: 10px; }
.kumamon-cheek {
  position: absolute;
  z-index: 2;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #df3e3e;
}
.cheek-left { left: 3px; }
.cheek-right { right: 3px; }
.kumamon-mouth {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: 13px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 45% 45% 55% 55%;
  background: #f5f1e9;
}

.theme-day .city { color: rgba(39, 48, 52, 0.9); }
.theme-day .city small { color: rgba(39, 48, 52, 0.58); }
.theme-day .flight-line { border-color: rgba(105, 75, 70, 0.55); }
.theme-day .plane { color: #7b5b68; filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.5)); }

.house-wrap {
  bottom: 56px;
  width: min(430px, 79%);
  aspect-ratio: 1;
  filter: drop-shadow(0 28px 28px rgba(10, 10, 18, 0.42));
}

.theme-day .house-wrap {
  filter: drop-shadow(0 26px 26px rgba(57, 56, 45, 0.28));
}

.house-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.hybrid-version .house-wrap::after {
  right: 8%;
  bottom: 2%;
  left: 8%;
  z-index: 0;
}

.house-wrap .roof,
.house-wrap .floor {
  position: absolute;
  z-index: 4;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fffaf1;
  transition: filter 220ms ease, transform 220ms ease;
}

.house-wrap .roof {
  top: 3%;
  left: 7%;
  width: 86%;
  height: 43%;
  clip-path: polygon(50% 0, 100% 90%, 95% 100%, 5% 100%, 0 90%);
}
.house-wrap .roof::after { display: none; }
.house-wrap .floor-two {
  top: 43%;
  left: 13%;
  width: 74%;
  min-height: 0;
  height: 24%;
}
.house-wrap .floor-one {
  top: 66%;
  left: 13%;
  width: 74%;
  min-height: 0;
  height: 27%;
}

.house-wrap .room-copy {
  position: absolute;
  left: 50%;
  display: flex;
  width: max-content;
  max-width: 78%;
  align-items: baseline;
  gap: 8px;
  padding: 6px 11px 7px;
  transform: translateX(-50%);
  border: 1px solid rgba(242, 214, 154, 0.34);
  border-radius: 999px;
  background: rgba(37, 32, 45, 0.74);
  box-shadow: 0 7px 18px rgba(17, 15, 23, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  line-height: 1.15;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.house-wrap .room-copy b { font-size: 13px; letter-spacing: 0.08em; }
.house-wrap .room-copy small { color: rgba(255, 255, 255, 0.74); font-size: 9px; letter-spacing: 0.06em; }
.house-wrap .roof-copy { bottom: 7%; }
.house-wrap .floor-two .room-copy { top: 9%; }
.house-wrap .floor-one .room-copy { top: 3%; }

.house-wrap .room-active .room-copy {
  border-color: rgba(255, 224, 155, 0.78);
  background: rgba(71, 52, 67, 0.9);
  box-shadow: 0 0 26px rgba(242, 205, 130, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.house-wrap .floor.room-active { box-shadow: none; }
.house-wrap .room-trigger:hover { filter: brightness(1.08); }
.house-wrap .roof:hover,
.house-wrap .floor:hover { transform: translateY(-2px); }

.garden {
  position: absolute;
  z-index: 3;
  bottom: 3%;
  left: 50%;
  width: 86%;
  height: 18px;
  margin: 0;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(30, 31, 42, 0.34), transparent 67%);
  pointer-events: none;
}
.umbrella {
  z-index: 7;
  right: -2%;
  bottom: 0;
}

.theme-day .umbrella {
  border-color: rgba(61, 57, 62, 0.18);
  background: rgba(255, 251, 242, 0.74);
  color: #433c45;
}
.theme-day .umbrella small { color: rgba(67, 60, 69, 0.68); }
.theme-day .scene-hint { color: rgba(45, 51, 52, 0.62); }

.theme-night .scene-card.is-raining {
  background:
    linear-gradient(180deg, rgba(8, 12, 31, 0.36), rgba(20, 24, 42, 0.55)),
    url("assets/night-garden-backdrop.png") center / cover no-repeat;
}
.theme-day .scene-card.is-raining {
  background:
    linear-gradient(180deg, rgba(82, 94, 102, 0.22), rgba(68, 79, 82, 0.3)),
    url("assets/day-garden-backdrop.png") center / cover no-repeat;
}

@media (max-width: 760px) {
  body.sheet-open .page-shell { z-index: auto; }
  .sheet-close { width: 44px; height: 44px; }
  .room-tab { min-height: 44px; }
  .top-actions { gap: 6px; }
  .theme-toggle { min-width: 44px; min-height: 44px; justify-content: center; padding: 7px 10px; }
  .theme-label { display: none; }
  .house-wrap { bottom: 72px; width: min(352px, 92%); }
  .house-wrap .room-copy { gap: 5px; padding: 5px 8px 6px; }
  .house-wrap .room-copy b { font-size: 12px; }
  .house-wrap .room-copy small { font-size: 8px; }
  .landmark-85 { transform: scale(0.88); transform-origin: bottom left; }
  .kumamon-mark { transform: scale(0.88); transform-origin: bottom right; }
  .umbrella { right: -1%; bottom: -2%; }
}

@media (max-width: 390px) {
  .preview-badge { display: none; }
  .house-wrap { width: min(330px, 96%); }
  .house-wrap .room-copy small { display: none; }
  .house-wrap .room-copy { padding-right: 12px; padding-left: 12px; }
}

/* ===================== B4 資料層元件（沿用 B3 色票） ===================== */

/* --- 可編輯內容 --- */
.detail-body .editable {
  outline: none;
  border-bottom: 1px dashed rgba(78, 70, 76, 0.28);
  border-radius: 6px;
  padding-bottom: 4px;
  transition: background 0.15s;
}
.detail-body .editable:hover { background: rgba(92, 70, 110, 0.05); }
.detail-body .editable:focus { background: rgba(74, 108, 153, 0.08); border-bottom-color: #5b779b; }

/* --- 掛件開關與容器 --- */
.widget-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  min-height: 32px;
  padding: 5px 13px;
  border: 1px solid rgba(92, 70, 110, 0.24);
  border-radius: 999px;
  background: rgba(92, 70, 110, 0.07);
  color: var(--plum-700);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}
.widget-toggle:hover { background: rgba(92, 70, 110, 0.13); }
.widget-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(92, 70, 110, 0.045);
  border: 1px solid rgba(78, 66, 72, 0.1);
}

/* --- 迷你按鈕（表單/掛件共用） --- */
.mini-btn {
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid rgba(92, 70, 110, 0.22);
  border-radius: 8px;
  background: transparent;
  color: var(--plum-700);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}
.mini-btn.mini-primary { background: var(--plum-700); border-color: var(--plum-700); color: #fff; }

/* --- 九州集章卡 --- */
.stamp-prog { margin-bottom: 10px; text-align: center; color: #b8616b; font-size: 12px; font-weight: 700; }
.stamp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 9px; }
.stamp-grid .stamp { width: 100%; max-width: 108px; margin: 0 auto; }
.stamp {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  font: inherit;
  transition: transform 0.15s;
  padding: 4px;
}
.stamp:hover { transform: scale(1.05); }
.stamp.no { border: 2px dashed rgba(78, 70, 76, 0.28); color: var(--ink-soft); background: rgba(255, 255, 255, 0.72); }
.stamp.no .se { filter: grayscale(1); opacity: 0.5; }
.stamp.yes {
  border: 3px double #b8616b;
  color: #b8616b;
  background: #fdf6f4;
  transform: rotate(-6deg);
  box-shadow: 0 1px 4px rgba(184, 97, 107, 0.3);
}
.stamp.yes:hover { transform: rotate(-6deg) scale(1.05); }
.stamp .se { font-size: 19px; line-height: 1.2; }
.stamp .sn { font-size: 10px; font-weight: 700; line-height: 1.3; }
.stamp .sd { font-size: 8px; }
.stamp-add { display: flex; gap: 6px; margin-top: 11px; }
.stamp-add input {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(78, 70, 76, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}
.stamp-add input:focus { outline: none; border-color: #5b779b; }

/* --- 見面藏寶圖（台日放假日曆） --- */
.cal-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.cal-nav {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(78, 70, 76, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { padding: 2px 0; text-align: center; color: var(--ink-soft); font-size: 10px; }
.cal-day {
  position: relative;
  min-height: 32px;
  padding: 4px 0 14px;
  border: 1px solid rgba(78, 66, 72, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
}
.cal-day.out { visibility: hidden; }
.cal-day.we { background: rgba(78, 66, 72, 0.07); }
.cal-day.tw { background: #e2efe4; border-color: #c4dfc9; }
.cal-day.jp { background: #f7ecd2; border-color: #ecd9a4; }
.cal-day.both { background: linear-gradient(135deg, #f2d69a, #e0a94e); font-weight: 700; }
.cal-day.today { outline: 2px solid #5b779b; }
.cal-day .mk { position: absolute; bottom: 2px; left: 0; right: 0; font-size: 9px; line-height: 1; }
.cal-pens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 4px; }
.pen-label { color: var(--ink-soft); font-size: 11px; }
.pen-btn {
  min-height: 30px;
  padding: 3px 11px;
  border: 1px solid rgba(78, 70, 76, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}
.pen-btn.sel { border-color: #5b779b; background: rgba(74, 108, 153, 0.12); color: #3d5a80; font-weight: 700; }
.cal-legend { margin-top: 7px; color: var(--ink-soft); font-size: 10px; line-height: 1.8; }
.cal-fineprint { font-size: 9px; }

/* --- 紅色電話使用紀錄 --- */
.usage-box { margin-top: 11px; padding-top: 9px; border-top: 1px dashed rgba(184, 97, 107, 0.35); }
.usage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.usage-title { color: #b8616b; font-size: 11px; font-weight: 700; }
.usage-sum { margin-top: 4px; color: var(--ink-soft); font-size: 10px; }
.who-row { display: flex; gap: 7px; }
.who-btn {
  min-height: 32px;
  padding: 4px 16px;
  border: 1px solid rgba(78, 70, 76, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}
.who-btn.sel { border-color: #b8616b; background: rgba(184, 97, 107, 0.12); color: #9c4650; font-weight: 700; }

/* --- 討論足跡補充（立場/記錄人/刪除鈕） --- */
.log-entry { position: relative; padding-right: 26px; }
.log-entry .log-by { color: #8a7f88; font-size: 9px; }
.log-del {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  background: none;
  color: #948a91;
  cursor: pointer;
  font-size: 11px;
  padding: 3px 5px;
}
.log-del:hover { color: #b8616b; }

/* --- 倒數牌空狀態 --- */
.countdown.empty { cursor: pointer; border-style: dashed; }
.countdown.empty:hover { background: rgba(255, 255, 255, 0.95); }

/* --- 身分 chip / 頁尾工具 --- */
.me-chip { color: var(--gold-300); font-size: 11px; white-space: nowrap; }
.me-chip a { color: rgba(251, 247, 239, 0.65); text-decoration: underline; cursor: pointer; margin-left: 5px; }
.theme-day .me-chip { color: #765468; }
.theme-day .me-chip a { color: rgba(45, 49, 54, 0.55); }
.foot-tools { display: inline-flex; align-items: center; gap: 4px; }
.link-btn {
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  padding: 2px 4px;
}
.link-btn:hover { color: var(--gold-300); }

/* --- 進門（通行碼） --- */
#gate {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 20%, #2a2d4e 0%, var(--night-950) 70%);
}
#gate.on { display: flex; }
.gate-card {
  width: 100%;
  max-width: 340px;
  padding: 32px 28px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-heavy);
  text-align: center;
  color: var(--ink);
}
.gate-big { font-size: 40px; }
.gate-card h3 { margin: 8px 0 4px; font-size: 18px; font-weight: 700; }
.gate-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 13px; }
.gate-card input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid rgba(78, 70, 76, 0.22);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-align: center;
}
.gate-card input:focus { outline: none; border-color: var(--plum-700); }
.gate-card button {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: var(--plum-700);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
}
.gate-err { margin-top: 8px; min-height: 16px; color: #b8616b; font-size: 12px; }

/* --- Toast --- */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  z-index: 60;
  padding: 10px 24px;
  border-radius: 10px;
  background: rgba(23, 21, 32, 0.92);
  color: #fff;
  font-size: 13px;
  transition: transform 0.25s;
  pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ===================== B4.1 手機微調（2026-07-14 David 回饋） ===================== */

/* toast 未顯示時徹底隱形——否則整頁截圖(iOS/Playwright)會把畫面外的空 toast 畫在頁中間,像一顆黑藥丸蓋住門口 */
#toast { visibility: hidden; }
#toast.show { visibility: visible; }

@media (max-width: 760px) {
  /* 頂欄減壓:手機不顯示「線上共編」徽章(資訊性低,存檔已有 toast 回饋) */
  #modeBadge { display: none; }
  .me-chip { font-size: 10px; }

  /* 標題不折行:品牌區一行收好 */
  .kicker { white-space: nowrap; letter-spacing: 0.14em; }
  .brand-lockup h1 { white-space: nowrap; }
  .top-actions { flex: none; }

  /* hero 標語字級微縮:讓「是我們一起點亮的房間。」一行收好,不出現孤字「間。」 */
  .intro h2 { font-size: clamp(30px, 8.4vw, 40px); }
}

/* ===================== B5 陶朱隱園微縮塔 ===================== */
.scene-card { min-height: 900px; }
.tower-wrap {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  bottom: 52px;
  width: 653px;
  max-width: none;
  transform: translateX(-50%) perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  filter: drop-shadow(0 30px 28px rgba(7, 8, 16, 0.44));
  transition: transform 360ms cubic-bezier(.2,.8,.2,1), filter 420ms ease;
  will-change: transform;
}
.theme-day .tower-wrap { filter: drop-shadow(0 28px 26px rgba(48, 55, 48, 0.26)); }
.tower-art {
  z-index: 2;
  animation: tower-breathe 7s ease-in-out infinite;
  transform-origin: 50% 88%;
}
.tower-light {
  position: absolute;
  z-index: 3;
  top: 17%;
  right: 22%;
  bottom: 14%;
  left: 22%;
  border-radius: 42%;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 224, 157, .2), transparent 63%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: tower-window-glow 5.8s ease-in-out infinite;
}
.theme-day .tower-light { opacity: .18; }
.helipad-pulse {
  position: absolute;
  z-index: 5;
  top: 2.4%;
  left: 50%;
  width: 160px;
  height: 51px;
  transform: translateX(-50%) rotateX(58deg);
  border: 1px solid rgba(245, 215, 148, .64);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(245, 215, 148, .28), inset 0 0 12px rgba(245, 215, 148, .16);
  pointer-events: none;
  animation: helipad-breathe 3.8s ease-in-out infinite;
}
.theme-day .helipad-pulse {
  border-color: rgba(118, 86, 71, .42);
  box-shadow: 0 0 14px rgba(255, 245, 199, .5), inset 0 0 9px rgba(255,255,255,.3);
}
.tower-wrap .garden { display: none; }
.tower-wrap .roof,
.tower-wrap .floor-two,
.tower-wrap .floor-one {
  left: 19%;
  width: 62%;
  min-height: 0;
  border-radius: 22px;
  clip-path: none;
}
.tower-wrap .roof { top: 0; height: 24%; }
.tower-wrap .floor-two { top: 23%; height: 43%; }
.tower-wrap .floor-one { top: 65%; height: 31%; }
.tower-wrap .roof-copy { right: auto; bottom: 4%; }
.tower-wrap .floor-two .room-copy { top: 44%; }
.tower-wrap .floor-one .room-copy { top: 42%; }
.tower-wrap .room-trigger::before {
  position: absolute;
  inset: 8% 4%;
  border: 1px solid transparent;
  border-radius: 28px;
  background: transparent;
  content: "";
  pointer-events: none;
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}
.tower-wrap .room-trigger.room-active::before {
  border-color: rgba(244, 215, 151, .28);
  background: radial-gradient(ellipse, rgba(246, 213, 140, .08), transparent 70%);
  box-shadow: 0 0 24px rgba(244, 208, 137, .12);
}
.tower-wrap .umbrella { right: -3%; bottom: 0; }
@keyframes tower-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.003); }
}
@keyframes tower-window-glow {
  0%, 100% { opacity: .34; }
  50% { opacity: .7; }
}
@keyframes helipad-breathe {
  0%, 100% { opacity: .38; transform: translateX(-50%) rotateX(58deg) scale(.94); }
  50% { opacity: .82; transform: translateX(-50%) rotateX(58deg) scale(1.05); }
}
@media (max-width: 760px) {
  .scene-card { min-height: 780px; }
  .tower-wrap { bottom: 48px; width: 497px; max-width: none; transform: translateX(-50%); }
  .tower-wrap .roof,
  .tower-wrap .floor-two,
  .tower-wrap .floor-one { left: 18%; width: 64%; }
  .helipad-pulse { width: 133px; height: 43px; }
  .tower-wrap .umbrella { right: -1%; bottom: -2%; }
}
@media (prefers-reduced-motion: reduce) {
  .tower-art,
  .tower-light,
  .helipad-pulse { animation: none !important; }
  .tower-wrap { transform: translateX(-50%); }
}

/* ===================== B5.1 手機微調（Claude 驗收補） ===================== */
@media (max-width: 760px) {
  /* 傘卡原本 right:-2% 以塔身為準,手機會溢出場景卡被裁掉(實測溢出51px)——改貼場景右緣內側 */
  .house-wrap .room-trigger.umbrella,
  .room-trigger.umbrella {
    right: max(-6%, calc((100vw - 100%) / -2 + 26px));
  }
}

/* ===================== v6 質感整理（2026-09-24 預覽） ===================== */
/* 全站線條 icon：同一筆畫、同一尺寸，跟著文字顏色走 */
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.me-chip { display: inline-flex; align-items: center; gap: 4px; }
.me-chip .ic { width: 14px; height: 14px; }

/* 旅收入口：從標題上方移到文案下方——先讀故事，再看工具 */
.trip-entry { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 18px;
  min-height: 44px; border-radius: 999px; border: 1px solid rgba(242, 214, 154, 0.38);
  background: rgba(251, 247, 239, 0.06); color: var(--gold-300); font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; text-decoration: none; }
.trip-entry .ic-arrow { opacity: 0.7; }
.trip-entry:hover { background: rgba(251, 247, 239, 0.12); }
.theme-day .trip-entry { color: var(--plum-700); border-color: rgba(92, 70, 110, 0.28); background: rgba(255, 255, 255, 0.55); }

/* 倒數牌：心形改線條 icon */
.countdown-days .ic-heart { width: 13px; height: 13px; margin-left: 3px; color: #c4566a; fill: rgba(196, 86, 106, 0.18); }

/* 房間抽屜：狀態列不再是一個框，退成一行提示 */
.content-status { flex-direction: row !important; align-items: baseline !important; flex-wrap: wrap; gap: 4px 10px;
  margin: 0 0 16px; padding: 0; border: 0; background: none; }
.content-status span { font-size: 12px; font-weight: 600; }
.content-status small { font-size: 11px; text-align: left !important; }

/* 內容卡：色線、底色徽章、emoji 三重編碼 → 只留編號徽章帶顏色 */
.detail-card { border-left-width: 1px; border-color: rgba(78, 70, 76, 0.1); background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 10px rgba(55, 45, 50, 0.05); border-radius: 16px; }
.detail-card > header { padding: 16px 16px 10px; }
.detail-index { font-size: 11px; font-family: "Noto Serif TC", "Songti TC", Georgia, serif; font-variant-numeric: lining-nums; }
.detail-card h4 { font-family: "Noto Serif TC", "Songti TC", Georgia, serif; font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.detail-card h4 span { font-size: 15px; }
.detail-body { font-size: 13px; line-height: 1.8; }
.fact, .micro-note, .log-empty, .log-entry, .log-entry time, .log-entry .log-by { font-size: 11px; }
.stamp-preview button, .log-form button, .log-form input { font-size: 12px; }

/* 討論足跡列：icon + 字 同一條基線 */
.log-head button { font-size: 12px; }
.log-toggle { display: inline-flex; align-items: center; gap: 5px; }
.log-toggle .ic { width: 15px; height: 15px; }
.log-toggle .ic-chev { width: 13px; height: 13px; opacity: 0.6; }
.log-add { color: var(--plum-700); border-color: rgba(92, 70, 110, 0.22) !important; }

@media (max-width: 760px) {
  .detail-body { font-size: 13px; }
  .topbar { gap: 8px; }
  .me-chip { gap: 3px; }
  .me-chip .ic { width: 12px; height: 12px; }
}

/* ===================== v6.1 第二輪（2026-09-24 預覽） ===================== */
/* 換人：不用底線，退成淡色小字 */
.me-chip a { text-decoration: none; opacity: .7; padding: 6px 0; margin-left: 6px; }

/* 小字下限：眉標、倒數標籤不再 8–9px */
.panel-eyebrow { font-size: 11px; letter-spacing: .16em; }
.countdown-label { font-size: 10px; }

/* 內容卡顏色降噪：紅＝待討論（唯一強調色），舉例退成柔和墨色 */
.ask { color: #a8475a; font-weight: 600; }
.eg { color: #6f6770; }

/* 倒數牌空狀態：三行直排，不再把句子折斷 */
.countdown.empty { grid-template-columns: 1fr; row-gap: 2px; text-align: left; }
.countdown.empty .countdown-days { padding-left: 0; border-left: 0; }
.countdown-main { white-space: nowrap; }

@media (max-width: 760px) {
  /* 房間標題：拿掉左邊大圓編號，標題吃滿寬度，不再「撐／著」斷詞 */
  .panel-heading { grid-template-columns: 1fr; padding-right: 48px; }
  .panel-number { display: none; }
  .panel-heading h3 { font-size: 25px; letter-spacing: 0; }
}
/* 標題只在標點後換行（JS 在，、。後插 <wbr>），不把詞拆開 */
.panel-heading h3 { word-break: keep-all; overflow-wrap: anywhere; }
/* 小螢幕（≤360px，如 iPhone SE）：收掉英文小標、身分拿掉 icon（換人保留） */
@media (max-width: 360px) {
  .kicker { display: none; }
  .brand-lockup h1 { font-size: 15px; }
  .me-chip .ic { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 12px; }
}
