:root {
  --ink: #18312e;
  --ink-soft: #51625d;
  --paper: #f5f0e4;
  --paper-strong: #fffaf0;
  --sage: #688b76;
  --sage-dark: #345b4c;
  --amber: #d99a48;
  --terracotta: #b96345;
  --line: rgba(36, 65, 58, 0.18);
  --shadow: 0 18px 60px rgba(12, 35, 31, 0.2);
  --shadow-deep: 0 28px 90px rgba(7, 20, 18, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-numeric: "Avenir Next", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #102824;
  color: var(--ink);
  font-family: var(--font-numeric), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "zero" 1;
  overflow: hidden;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid #f1c67b;
  outline-offset: 3px;
}

#app,
.view {
  width: 100vw;
  height: 100dvh;
}

.view {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.scene-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.godot-room-view {
  background: #102824;
}

.godot-room-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #102824;
}

.godot-room-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: #fffaf0;
  background: #102824;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.godot-room-loading strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
  font-weight: 600;
}

.godot-room-loading small {
  color: rgba(255, 250, 240, 0.62);
  font-size: 11px;
}

.godot-room-loading.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px 28px;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper-strong);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  color: #fff7df;
  background: rgba(15, 48, 41, 0.58);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.brand-logo {
  width: 25px;
  height: 25px;
  stroke-width: 1.55;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 19px;
  letter-spacing: 0.16em;
}

.brand-copy small {
  opacity: 0.78;
  font-size: 9px;
  letter-spacing: 0.28em;
}

.glass-pill,
.icon-button,
.back-button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: white;
  background: rgba(16, 40, 36, 0.54);
  box-shadow: 0 10px 28px rgba(7, 23, 20, 0.18);
  backdrop-filter: blur(14px) saturate(1.1);
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a7dfa6;
  box-shadow: 0 0 0 5px rgba(167, 223, 166, 0.16);
}

.global-online-count,
.global-focus-count {
  display: inline-block;
  min-width: 2.35em;
  font-variant-numeric: tabular-nums;
}

.global-online-count.count-updated,
.global-focus-count.count-updated {
  animation: count-pop 520ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.global-presence {
  gap: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.profile-button,
.focus-profile-button {
  overflow: hidden;
  padding: 3px;
}

.profile-avatar-mini {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background-color: rgba(244, 229, 196, 0.9);
  background-position: center 25%;
  background-size: cover;
}

.presence-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.presence-stat strong {
  font-size: 14px;
}

.presence-stat small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

.presence-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.26);
}

.back-button,
.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
}

.back-button {
  font-size: 21px;
}

.primary-button,
.secondary-button,
.quiet-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  min-height: 52px;
  padding: 0 25px;
  color: #fffdf6;
  background: linear-gradient(135deg, #b66b42, #d59a51);
  box-shadow: 0 14px 34px rgba(123, 69, 37, 0.28);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.primary-button:hover,
.secondary-button:hover,
.quiet-button:hover {
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active,
.quiet-button:active {
  transform: translateY(0);
}

.secondary-button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 250, 240, 0.92);
  font-weight: 650;
}

.quiet-button {
  padding: 10px 16px;
  color: inherit;
  background: transparent;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Welcome */
.welcome::before,
.island::before,
.rooms::before,
.room::before,
.focus::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.welcome::before {
  background: linear-gradient(90deg, rgba(8, 27, 24, 0.88) 0%, rgba(8, 27, 24, 0.62) 38%, rgba(8, 27, 24, 0.12) 72%, rgba(8, 27, 24, 0.3) 100%);
}

.welcome .scene-image {
  transform: scale(1.05);
  animation: slow-drift 18s ease-in-out infinite alternate;
}

.welcome-content {
  position: absolute;
  top: 50%;
  left: clamp(34px, 7vw, 108px);
  width: min(540px, 54vw);
  transform: translateY(-46%);
  color: #fffaf0;
}

.welcome-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(21, 55, 47, 0.28);
  backdrop-filter: blur(10px);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.welcome h1 {
  max-width: 520px;
  margin: 0;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "FangSong", Georgia, serif;
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.055em;
  text-shadow: 0 5px 28px rgba(4, 22, 19, 0.28);
  text-wrap: balance;
}

.welcome-subtitle {
  max-width: 470px;
  margin: 25px 0 30px;
  color: rgba(255, 250, 240, 0.8);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.8;
}

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.welcome-note {
  color: rgba(255, 250, 240, 0.66);
  font-size: 12px;
}

.prototype-tag {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* Landing story */
body.landing-mode {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--paper);
}

body.landing-mode #app {
  width: 100%;
  height: auto;
}

.landing-page {
  width: 100%;
  overflow: clip;
  background: var(--paper);
}

.welcome-hero {
  min-height: 640px;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 9px 16px;
  border: 0;
  color: rgba(255, 250, 240, 0.74);
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.scroll-cue i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  font-style: normal;
  animation: scroll-cue-bob 2s ease-in-out infinite;
}

.landing-section {
  position: relative;
  isolation: isolate;
}

.section-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.landing-eyebrow {
  margin: 0 0 18px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.section-heading h2,
.center-heading h2,
.philosophy-heading h2,
.value-copy h2,
.final-cta-content h2,
.feedback-shell h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.problem-section {
  padding: clamp(104px, 12vw, 176px) 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(210, 154, 78, 0.12), transparent 31%),
    var(--paper);
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  align-items: start;
  gap: clamp(58px, 10vw, 140px);
}

.problem-copy {
  padding-top: 42px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 2;
}

.problem-copy p {
  margin: 0 0 24px;
}

.problem-copy .lead-copy {
  margin-bottom: 30px;
  color: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.55;
}

.journey-section {
  padding: clamp(92px, 10vw, 150px) 0;
  background: #e8e0d0;
}

.center-heading {
  max-width: 800px;
  margin: 0 auto clamp(62px, 8vw, 108px);
  text-align: center;
}

.center-heading > p:last-child {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.journey-track {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
}

.journey-shot {
  display: grid;
  grid-column: span 6;
  grid-template-rows: auto 1fr;
  min-width: 0;
  margin: 0;
}

.journey-shot:nth-child(even) {
  padding-top: 74px;
}

.journey-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(30, 49, 43, 0.17);
}

.journey-shot-map img {
  object-position: center;
}

.journey-shot figcaption {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 7px 12px;
  padding: 24px 6px 10px;
}

.journey-shot figcaption span {
  grid-row: 1 / 3;
  color: var(--terracotta);
  font-family: Georgia, serif;
  font-size: 17px;
}

.journey-shot figcaption strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 23px;
  font-weight: 500;
}

.journey-shot figcaption small {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.section-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 72px;
}

.section-action span {
  color: var(--ink-soft);
  font-size: 12px;
}

.scenes-section {
  padding: clamp(104px, 12vw, 176px) 0 clamp(96px, 11vw, 158px);
  background: #f6f1e6;
}

.scenes-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  align-items: end;
  column-gap: 80px;
  margin-bottom: 100px;
}

.scenes-heading .landing-eyebrow {
  grid-column: 1 / -1;
}

.scenes-heading > p:last-child {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.scene-story {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(46px, 8vw, 112px);
  margin-bottom: clamp(96px, 12vw, 168px);
}

.scene-story:nth-of-type(odd) .scene-story-visual {
  order: 2;
}

.scene-story-visual {
  position: relative;
}

.scene-story-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 28px -24px -24px 26px;
  border: 1px solid rgba(51, 89, 76, 0.18);
  border-radius: 34px;
}

.scene-story-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 15 / 10;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.scene-index {
  position: absolute;
  left: 22px;
  bottom: 20px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: white;
  background: rgba(13, 39, 34, 0.58);
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.scene-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(52, 91, 76, 0.2);
  border-radius: 50%;
  color: var(--sage-dark);
  background: rgba(255, 255, 255, 0.55);
}

.scene-icon svg {
  width: 25px;
  height: 25px;
}

.scene-story-copy h3 {
  margin: 0 0 24px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(31px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.25;
}

.scene-story-copy > p:not(.landing-eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.95;
}

.sound-line {
  display: grid;
  gap: 7px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.sound-line span {
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.sound-line strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.future-note {
  max-width: 640px;
  margin: -36px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  text-align: center;
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px;
  line-height: 1.8;
}

.philosophy-section {
  overflow: hidden;
  padding: clamp(104px, 12vw, 168px) 0;
  color: #fff8e9;
  background: #173e36;
}

.philosophy-glow {
  position: absolute;
  z-index: -1;
  top: -260px;
  right: -140px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 167, 89, 0.16), transparent 68%);
}

.philosophy-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(60px, 10vw, 140px);
}

.philosophy-heading {
  position: sticky;
  top: 80px;
  align-self: start;
}

.philosophy-heading .landing-eyebrow {
  color: #e2b46e;
}

.philosophy-heading > p:last-child {
  margin: 28px 0 0;
  color: rgba(255, 248, 233, 0.68);
  font-size: 15px;
  line-height: 1.9;
}

.principle-list {
  display: grid;
}

.principle-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.principle-list article > span {
  color: #dfae65;
  font-family: Georgia, serif;
  font-size: 16px;
}

.principle-list h3 {
  margin: 0 0 9px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 500;
}

.principle-list p {
  margin: 0;
  color: rgba(255, 248, 233, 0.62);
  font-size: 13px;
  line-height: 1.75;
}

.design-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 66px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.design-flow div {
  display: grid;
  gap: 7px;
}

.design-flow span {
  color: #e1b26c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.design-flow strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
  font-weight: 500;
}

.design-flow i {
  color: rgba(255, 255, 255, 0.35);
  font-style: normal;
}

.value-section {
  padding: clamp(104px, 12vw, 176px) 0;
  background: #eee8dc;
}

.value-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  align-items: center;
  gap: clamp(62px, 10vw, 140px);
}

.value-visual {
  position: relative;
}

.value-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 180px 180px 28px 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.value-visual p {
  position: absolute;
  right: -34px;
  bottom: 42px;
  max-width: 300px;
  margin: 0;
  padding: 22px 25px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  color: #fff8e9;
  background: rgba(20, 55, 48, 0.82);
  backdrop-filter: blur(12px);
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
  line-height: 1.8;
}

.value-copy h2 {
  margin-bottom: 40px;
  font-size: clamp(36px, 4vw, 56px);
}

.value-copy ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-copy li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
}

.value-copy li > span {
  color: var(--terracotta);
  font-family: Georgia, serif;
  font-size: 14px;
}

.value-copy li strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
  font-weight: 500;
}

.value-copy li p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.final-cta-section {
  display: grid;
  min-height: min(780px, 88dvh);
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.final-cta-section > img,
.final-cta-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.final-cta-section > img {
  object-fit: cover;
  transform: scale(1.04);
}

.final-cta-overlay {
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 27, 24, 0.35), rgba(7, 27, 24, 0.78));
}

.final-cta-content {
  width: min(720px, calc(100% - 44px));
  color: #fff9ec;
}

.free-badge {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(17, 55, 47, 0.34);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.final-cta-content h2 {
  font-size: clamp(46px, 6vw, 78px);
}

.final-cta-content p {
  margin: 25px 0 32px;
  color: rgba(255, 249, 236, 0.75);
  font-size: 16px;
}

.feedback-section {
  padding: 84px 0;
  background: #f5f0e4;
}

.feedback-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 70px;
}

.feedback-shell h2 {
  font-size: clamp(34px, 3.7vw, 50px);
}

.feedback-shell > div:first-child > p:last-child {
  max-width: 670px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.feedback-action {
  display: grid;
  justify-items: center;
  gap: 11px;
  min-width: 210px;
}

.feedback-link {
  display: inline-grid;
  min-width: 188px;
  min-height: 50px;
  place-items: center;
  border: 1px solid var(--sage-dark);
  border-radius: 999px;
  color: #fffdf7;
  background: var(--sage-dark);
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.feedback-link.is-disabled {
  border-color: var(--line);
  color: #7f8984;
  background: #e6e2d8;
  cursor: not-allowed;
}

.feedback-action small {
  max-width: 230px;
  color: #7a8882;
  text-align: center;
  font-size: 10px;
  line-height: 1.55;
}

.landing-footer {
  color: #fff9ec;
  background: #102b26;
}

.landing-footer .section-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  min-height: 116px;
}

.landing-footer p {
  margin: 0;
  color: rgba(255, 249, 236, 0.58);
  font-size: 12px;
}

.footer-enter {
  padding: 12px 0;
  border: 0;
  color: #e8bd7b;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

@keyframes scroll-cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Island */
.island {
  background: #aec4c1;
}

.island::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 29, 29, 0.32) 0%, transparent 22%, transparent 68%, rgba(6, 22, 22, 0.48) 100%);
}

.island-map-frame {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100vw;
  height: 100dvh;
}

.island-map-frame .scene-image {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.035) brightness(0.99);
}

.hotspot {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 126px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  color: white;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 8px 18px rgba(7, 28, 24, 0.3));
}

.hotspot-pin {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto -5px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50% 50% 50% 10%;
  transform: rotate(-45deg);
  color: var(--ink);
  background: #fff8e9;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16);
  transition: transform 180ms ease;
}

.hotspot-symbol {
  display: grid;
  place-items: center;
  transform: rotate(45deg);
}

.region-icon {
  width: 23px;
  height: 23px;
}

.hotspot-label {
  display: grid;
  gap: 2px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 13px;
  background: rgba(17, 48, 41, 0.76);
  backdrop-filter: blur(12px);
}

.hotspot-label strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
  font-weight: 600;
}

.hotspot-label small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.hotspot:hover .hotspot-pin {
  transform: rotate(-45deg) translate(3px, -3px) scale(1.08);
}

.hotspot.locked {
  min-width: auto;
  opacity: 0.82;
  cursor: not-allowed;
}

.hotspot.locked .hotspot-pin {
  width: 36px;
  height: 36px;
  background: rgba(240, 238, 223, 0.88);
}

.hotspot.locked .region-icon {
  width: 19px;
  height: 19px;
}

.hotspot.locked .hotspot-label {
  padding: 7px 10px;
}

.island-card {
  position: absolute;
  z-index: 4;
  left: 28px;
  bottom: 28px;
  width: min(390px, 36vw);
  padding: 19px 21px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: rgba(255, 250, 240, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.05);
}

.island-card h2 {
  margin: 0 0 7px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
  font-weight: 600;
}

.island-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* Rooms */
.rooms::before {
  background: linear-gradient(90deg, rgba(9, 28, 25, 0.78) 0%, rgba(9, 28, 25, 0.4) 42%, rgba(9, 28, 25, 0.18) 100%);
}

.rooms .scene-image {
  filter: saturate(0.85);
  transform: scale(1.03);
}

.cafe-room-selector::before {
  background:
    linear-gradient(90deg, rgba(7, 18, 15, 0.72) 0%, rgba(8, 21, 17, 0.53) 45%, rgba(8, 18, 15, 0.32) 100%),
    linear-gradient(180deg, rgba(4, 12, 10, 0.12), rgba(4, 12, 10, 0.28));
}

.cafe-room-selector .scene-image {
  filter: saturate(0.88) brightness(0.82);
  transform: scale(1.025);
  transition: opacity 220ms ease, filter 220ms ease;
}

.cafe-room-picker {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.9fr);
  align-items: center;
  gap: clamp(48px, 6vw, 104px);
  width: min(1420px, calc(100vw - 112px));
  height: 100%;
  margin: 0 auto;
  padding: 100px 0 46px;
}

.cafe-room-intro {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
  color: #fffaf0;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.46);
}

.cafe-room-intro .eyebrow {
  margin: 0 0 20px;
  color: rgba(255, 250, 240, 0.92);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: none;
}

.cafe-room-intro h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(52px, 5.4vw, 82px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
}

.cafe-room-intro-rule {
  display: block;
  width: 52px;
  height: 3px;
  margin: 28px 0 24px;
  border-radius: 999px;
  background: #e6b85f;
  box-shadow: 0 2px 12px rgba(230, 184, 95, 0.35);
}

.cafe-room-intro-copy {
  margin: 0;
  color: rgba(255, 250, 240, 0.9);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.65;
}

.cafe-room-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  width: min(700px, 100%);
  margin-top: 26px;
  text-shadow: none;
}

.cafe-room-feature {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 82px;
  padding: 13px 15px;
  border: 1px solid rgba(239, 195, 115, 0.5);
  border-radius: 17px;
  background: rgba(20, 26, 21, 0.42);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px) saturate(1.05);
}

.cafe-room-feature svg {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  color: #f0ce87;
}

.cafe-room-feature span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cafe-room-feature strong {
  overflow: hidden;
  color: #fff7e5;
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-room-feature small {
  overflow: hidden;
  color: rgba(255, 247, 229, 0.72);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-room-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 17px;
  min-height: 0;
  padding: clamp(24px, 2.25vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  color: var(--ink);
  background: rgba(250, 247, 237, 0.9);
  box-shadow: 0 30px 90px rgba(4, 14, 11, 0.34);
  backdrop-filter: blur(22px) saturate(1.06);
}

.cafe-room-list-heading {
  display: grid;
  gap: 4px;
  padding: 0 4px;
}

.cafe-room-list-heading strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 600;
}

.cafe-room-list-heading small {
  color: var(--ink-soft);
  font-size: 12px;
}

.cafe-room-preview-list {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.cafe-room-preview-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 15px;
  min-height: 91px;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(73, 98, 83, 0.14);
  border-radius: 19px;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.63);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cafe-room-preview-card:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 125, 44, 0.42);
  background: white;
}

.cafe-room-preview-card.is-selected {
  border-color: #cf9137;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 10px 28px rgba(133, 89, 31, 0.14), inset 0 0 0 1px rgba(215, 165, 78, 0.12);
}

.cafe-room-preview-card > img {
  width: 100%;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.cafe-room-preview-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cafe-room-preview-copy strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
}

.cafe-room-preview-copy small {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cafe-room-preview-occupancy {
  min-width: 64px;
  padding: 10px 12px;
  border-radius: 15px;
  color: var(--sage-dark);
  text-align: center;
  background: rgba(232, 237, 227, 0.88);
}

.cafe-room-preview-occupancy strong { font-size: 14px; }

.cafe-room-preview-check {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #dea84e, #b87526);
  box-shadow: 0 8px 18px rgba(155, 96, 28, 0.24);
  font-size: 17px;
  font-weight: 800;
}

.cafe-room-enter {
  width: 100%;
  min-height: 60px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #d7a54e, #bb7625);
  box-shadow: 0 13px 28px rgba(155, 96, 28, 0.23);
  cursor: pointer;
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
  transition: transform 180ms ease, filter 180ms ease;
}

.cafe-room-enter span { margin-left: 8px; }
.cafe-room-enter:hover { filter: brightness(1.06); transform: translateY(-1px); }

.rooms-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(380px, 1.18fr);
  gap: clamp(22px, 4vw, 66px);
  height: 100%;
  padding: 104px clamp(32px, 6vw, 96px) 44px;
}

.scene-intro {
  align-self: center;
  color: white;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.scene-intro h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
}

.scene-intro p {
  max-width: 440px;
  margin: 19px 0 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.8;
}

.scene-soundscape {
  display: inline-flex;
  gap: 9px;
  flex-wrap: wrap;
}

.sound-tag {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(17, 47, 42, 0.4);
  backdrop-filter: blur(8px);
  font-size: 11px;
}

.room-panel {
  align-self: center;
  max-height: calc(100vh - 150px);
  padding: clamp(21px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-xl);
  background: rgba(250, 247, 237, 0.94);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(18px);
  overflow: auto;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 600;
}

.panel-heading small {
  color: var(--ink-soft);
}

.room-list {
  display: grid;
  gap: 12px;
}

.room-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  width: 100%;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: inherit;
  text-align: left;
  background: rgba(255, 253, 247, 0.84);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.room-card:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 136, 108, 0.52);
  background: white;
  box-shadow: 0 14px 30px rgba(35, 63, 55, 0.1);
}

.room-card-copy strong {
  display: block;
  margin-bottom: 6px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
}

.room-card-copy span {
  color: var(--ink-soft);
  font-size: 12px;
}

.occupancy {
  display: grid;
  place-content: center;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 13px;
  color: var(--sage-dark);
  background: #e8eee6;
  text-align: center;
}

.occupancy strong {
  font-size: 18px;
}

.occupancy small {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.room-guideline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 17px 2px 0;
  color: var(--ink-soft);
  font-size: 11px;
}

/* Room and seats */
.room::before {
  background: linear-gradient(180deg, rgba(10, 29, 25, 0.28) 0%, transparent 28%, transparent 62%, rgba(7, 25, 22, 0.62) 100%);
}

.room-debug-shell,
.room-stage {
  position: absolute;
  inset: 0;
}

.room-stage {
  overflow: hidden;
}

.room-stage .scene-image {
  z-index: 0;
}

.room.animated-room:not(.is-debug-layout) {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 22% 10%, rgba(217, 139, 64, 0.16), transparent 34%),
    linear-gradient(135deg, #160d08 0%, #2c1a0f 52%, #101916 100%);
}

.room.animated-room:not(.is-debug-layout) .room-debug-shell {
  position: relative;
  inset: auto;
  width: min(100vw, calc(100dvh * 16 / 9));
  height: min(100dvh, calc(100vw * 9 / 16));
  max-width: 100vw;
  max-height: 100dvh;
}

.room.animated-room:not(.is-debug-layout) .room-stage {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.room.is-debug-layout {
  padding: 74px 22px 22px;
  overflow: auto;
  background:
    radial-gradient(circle at 22% 10%, rgba(217, 139, 64, 0.2), transparent 34%),
    linear-gradient(135deg, #160d08 0%, #2c1a0f 52%, #101916 100%);
}

.room.is-debug-layout::before {
  opacity: 0.4;
}

.room.is-debug-layout .room-debug-shell {
  position: relative;
  inset: auto;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(720px, 1fr) minmax(300px, 360px);
  gap: 18px;
  width: min(1480px, 100%);
  height: calc(100dvh - 96px);
  margin: 0 auto;
}

.room.is-debug-layout .room-stage {
  position: relative;
  inset: auto;
  min-width: 0;
  aspect-ratio: 16 / 9;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 177, 0.24);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(10, 5, 2, 0.36);
  background: #120d0a;
}

.room.is-debug-layout .scene-image {
  border-radius: inherit;
}

.room.is-debug-layout .room-title {
  top: 16px;
}

.room.is-debug-layout .room-footer {
  bottom: 18px;
  width: min(640px, calc(100% - 36px));
}

.room-title {
  position: absolute;
  z-index: 9;
  top: 21px;
  left: 50%;
  padding: 7px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(12, 36, 31, 0.28);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 18px rgba(7, 23, 20, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.room-region-icon {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}

.seat-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
}

/*
 * The wide background adds 89px to each side of the original 1586px scene.
 * Keep every furniture/avatar/marker coordinate in that original scene space,
 * so editor values remain unchanged while both room modes use a 16:9 canvas.
 */
.room.animated-room .seat-layer {
  inset: 0 auto 0 50%;
  width: calc(100% * 1586 / 1764);
  height: 100%;
  transform: translateX(-50%);
}

/* The library template is authored directly on the shared 1764×992 canvas. */
.room.library-room .seat-layer {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
}

/* Fast MVP: one calibrated 1672×941 canvas, six hotspots and six static occupied-seat overlays. */
.room.static-seat-room {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(218, 143, 67, 0.18), transparent 45%),
    #120d0a;
}

.room.static-seat-room .room-stage {
  position: relative;
  inset: auto;
  width: min(100vw, calc(100dvh * 1672 / 941));
  height: min(100dvh, calc(100vw * 941 / 1672));
  aspect-ratio: 1672 / 941;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
}

.room.static-seat-room .room-stage > .scene-image {
  object-fit: fill;
}

.room.static-seat-room .seat-layer {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
}

.static-occupants {
  position: absolute;
  z-index: 30;
  inset: 0;
  pointer-events: none;
}

.static-seat-occupant {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--width);
  height: var(--height);
  transform: scaleX(var(--flip, 1));
  transform-origin: center;
}

.static-seat-avatar {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.static-seat-label {
  position: absolute;
  z-index: 65;
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 0;
  transform: translate(-50%, -100%);
  border: 0;
  border-radius: 0;
  color: #fff8e9;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 2px 8px rgba(4, 14, 12, 0.95), 0 1px 2px rgba(4, 14, 12, 0.9);
  text-align: center;
  pointer-events: none;
}

.static-seat-label strong { font-size: 10px; line-height: 1.15; white-space: nowrap; }
.static-seat-label small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.82); font-size: 7px; line-height: 1.2; white-space: nowrap; }
.static-seat-label.is-mine strong { color: #ffe7a9; }
.static-seat-label.is-npc strong { color: #cce9d2; }

.static-seat-calibration-tools {
  position: absolute;
  z-index: 150;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 250, 239, 0.82);
  font-size: 10px;
}

.static-seat-calibration-tools button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 250, 239, 0.88);
  background: rgba(15, 29, 29, 0.34);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.static-seat-calibration-tools button:hover,
.static-seat-calibration-tools button:focus-visible {
  border-color: rgba(255, 230, 180, 0.52);
  color: #fffaf0;
  background: rgba(15, 29, 29, 0.62);
  outline: none;
}

.static-seat-room.is-static-seat-calibration [data-static-seat-marker] {
  cursor: grab;
  touch-action: none;
  box-shadow: 0 0 0 4px rgba(255, 207, 121, 0.2), 0 8px 20px rgba(4, 19, 16, 0.34);
}

.static-seat-room.is-static-seat-calibration [data-static-seat-marker].is-dragging {
  z-index: 90;
  cursor: grabbing;
}

.static-seat-room .seat-markers { z-index: 70; }
.static-seat-room button.seat:disabled { cursor: wait; opacity: 0.62; }

.room-immersive-prompt {
  position: absolute;
  z-index: 112;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 15px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 244, 220, 0.32);
  border-radius: 999px;
  color: rgba(255, 250, 239, 0.86);
  background: rgba(16, 34, 31, 0.7);
  box-shadow: 0 14px 38px rgba(6, 19, 17, 0.3);
  backdrop-filter: blur(18px) saturate(1.08);
  font-size: 11px;
  white-space: nowrap;
}

.room-immersive-prompt button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 231, 181, 0.78);
  border-radius: 999px;
  color: #35230f;
  background: linear-gradient(180deg, #ffe0a3, #eab45d);
  box-shadow: 0 7px 20px rgba(218, 145, 49, 0.25), inset 0 1px rgba(255, 255, 255, 0.58);
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.room-immersive-prompt button:hover,
.room-immersive-prompt button:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

.focus-transition-preview {
  position: absolute;
  z-index: 200;
  inset: 0;
  overflow: hidden;
  background: #12231f;
  opacity: 0;
  pointer-events: all;
  transition: opacity 1400ms cubic-bezier(0.3, 0, 0.18, 1);
}

.focus-transition-preview.is-visible { opacity: 1; }

.focus-transition-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.018);
  transition: transform 1400ms cubic-bezier(0.3, 0, 0.18, 1);
}

.focus-transition-preview.is-visible img { transform: scale(1); }

.seat-markers {
  position: absolute;
  z-index: 60;
  inset: 0;
  pointer-events: none;
}

.seat-markers .seat {
  pointer-events: auto;
}

.room.is-debug-layout .seat-markers .seat {
  cursor: pointer;
  touch-action: none;
}

.room.is-debug-layout .seat-markers .seat.is-selected {
  outline: 2px solid rgba(255, 213, 137, 0.95);
  outline-offset: 4px;
  box-shadow:
    0 0 0 1px rgba(77, 44, 17, 0.65),
    0 0 24px rgba(255, 183, 77, 0.52);
}

.room.is-debug-layout .seat-markers .seat.is-dragging {
  cursor: grabbing;
}

.cafe-scene-object-layer {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.room.is-debug-layout .cafe-scene-object-layer {
  pointer-events: auto;
}

/* The normal seat/action footer obscures the lower part of the canvas while
   arranging scene objects. It remains available in the ordinary room view. */
.room.is-debug-layout .room-footer {
  display: none;
}

.cafe-scene-object {
  position: absolute;
  z-index: var(--object-z-index, 20);
  left: var(--object-left);
  top: var(--object-top);
  width: var(--object-width);
  height: var(--object-height);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  transform: rotate(var(--object-rotate, 0deg)) scaleX(var(--object-flip, 1)) scale(var(--object-scale, 1));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 12px 16px rgba(22, 11, 5, 0.2));
}

.room.is-debug-layout .cafe-scene-object {
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
}

.cafe-scene-object.is-hidden {
  opacity: 0.12;
  filter: grayscale(1) opacity(0.35);
}

.cafe-scene-object.is-selected {
  outline: 2px solid rgba(255, 213, 137, 0.95);
  outline-offset: 3px;
  box-shadow:
    0 0 0 1px rgba(77, 44, 17, 0.65),
    0 0 24px rgba(255, 183, 77, 0.52);
}

.cafe-scene-object.is-dragging {
  cursor: grabbing;
}

body.is-cafe-object-dragging {
  cursor: grabbing;
  user-select: none;
}

img.cafe-scene-object {
  object-fit: contain;
}

.cafe-scene-object-track {
  display: block;
  width: var(--object-track-width, 800%);
  height: 100%;
  max-width: none;
  object-fit: fill;
  transform: translateX(0);
  user-select: none;
  -webkit-user-drag: none;
}

.cafe-scene-object-sprite[data-frame-count="8"] .cafe-scene-object-track {
  animation: cafe-seat-sprite-track-8 1120ms steps(7) infinite;
}

.cafe-seat-actor-layer,
.cafe-seat-empty,
.cafe-seat-idle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cafe-seat-actor-layer {
  z-index: 20;
  overflow: hidden;
}

.cafe-seat-empty,
.cafe-seat-idle {
  display: block;
  user-select: none;
  opacity: 0;
  transition: opacity 720ms cubic-bezier(0.2, 0.72, 0.22, 1);
  will-change: opacity;
}

.cafe-seat-empty {
  object-fit: cover;
  object-position: center;
}

.cafe-seat-idle {
  background-image: var(--seat-idle-sheet);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 600% 100%;
}

.cafe-seat-empty.is-visible,
.cafe-seat-idle.is-visible {
  opacity: 1;
}

.cafe-seat-idle.is-visible {
  animation: cafe-seat-idle-sheet 1080ms steps(6) infinite;
}

.cafe-seat-sprite {
  position: absolute;
  z-index: var(--sprite-z-index, 24);
  left: var(--sprite-left);
  top: var(--sprite-top);
  width: var(--sprite-width);
  height: var(--sprite-height);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translateY(5px) rotate(var(--sprite-rotate, 0deg)) scaleX(var(--sprite-flip, 1)) scale(calc(var(--sprite-scale, 1) * 0.985));
  transform-origin: 50% 100%;
  transition:
    opacity 720ms cubic-bezier(0.2, 0.72, 0.22, 1),
    transform 720ms cubic-bezier(0.2, 0.72, 0.22, 1);
  will-change: opacity, transform;
  filter: drop-shadow(0 14px 18px rgba(22, 11, 5, 0.28));
}

.cafe-seat-sprite.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--sprite-rotate, 0deg)) scaleX(var(--sprite-flip, 1)) scale(var(--sprite-scale, 1));
}

.cafe-seat-sprite-track {
  display: block;
  width: var(--sprite-track-width, 800%);
  height: 100%;
  max-width: none;
  object-fit: fill;
  transform: translateX(0);
  user-select: none;
  -webkit-user-drag: none;
}

.cafe-seat-sprite[data-frame-count="8"].is-visible .cafe-seat-sprite-track {
  animation: cafe-seat-sprite-track-8 1120ms steps(7) infinite;
}

.sprite-tuning-toggle,
.sprite-tuning-panel {
  position: absolute;
  z-index: 120;
  right: clamp(18px, 4vw, 54px);
}

.sprite-tuning-toggle {
  top: 92px;
  border: 1px solid rgba(255, 226, 177, 0.5);
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffe8c5;
  background: rgba(39, 24, 13, 0.78);
  box-shadow: 0 18px 40px rgba(18, 8, 2, 0.28);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.room:has(.session-hud) .sprite-tuning-toggle {
  top: 168px;
}

.session-hud {
  position: absolute;
  z-index: 128;
  inset: 0;
  pointer-events: none;
}

.focus .session-hud {
  inset: 0;
}

.focus-header,
.immersive-timer,
.focus-control-dock {
  transition: opacity 360ms ease, transform 360ms ease;
}

body.hud-idle .focus .focus-header {
  opacity: 0;
  pointer-events: none;
}

body.hud-idle .focus .immersive-timer {
  opacity: 1;
}

.focus-header {
  position: absolute;
  z-index: 132;
  top: max(18px, env(safe-area-inset-top));
  right: max(22px, env(safe-area-inset-right));
  left: max(22px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.focus-exit-button,
.focus-profile-button {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff8eb;
  background: rgba(15, 29, 29, 0.42);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(1.12);
  cursor: pointer;
}

.focus-exit-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
}

.focus-exit-button span { font-size: 24px; font-weight: 300; }
.focus-exit-button strong { font-weight: 650; }

.focus-profile-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
}

.focus-profile-button svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.focus-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.focus-control-cluster {
  position: absolute;
  z-index: 134;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  width: min(540px, calc(100vw - 36px));
  transform: translateX(-50%);
  pointer-events: none;
}

.immersive-timer {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: max-content;
  min-width: 0;
  padding: 2px 6px;
  border: 0;
  border-radius: 0;
  color: #fffaf1;
  background: transparent;
  box-shadow: none;
  opacity: 0.68;
  text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.78), 0 1px 3px rgba(0, 0, 0, 0.96);
  pointer-events: auto;
  transition: transform 280ms ease, opacity 280ms ease;
}

.immersive-timer strong {
  font-family: var(--font-numeric);
  font-size: clamp(23px, 2.4vw, 34px);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "zero" 1;
  font-weight: 720;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.immersive-timer small {
  display: none;
}

.focus-control-cluster:hover .immersive-timer,
.focus-control-cluster:focus-within .immersive-timer,
.session-hud.is-open .immersive-timer {
  transform: translateY(-2px);
  background: transparent;
  opacity: 0.96;
}

.session-control-panel {
  position: absolute;
  top: 37.5%;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100dvh - 200px);
  gap: 16px;
  padding: 22px;
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(197, 222, 217, 0.32);
  border-radius: 25px;
  color: #f9f4e9;
  background: linear-gradient(145deg, rgba(20, 47, 45, 0.91), rgba(18, 34, 34, 0.88));
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.44), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(24px) saturate(1.12);
  pointer-events: auto;
  animation: focus-panel-appear 360ms cubic-bezier(0.18, 0.8, 0.25, 1) both;
}

.session-control-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.session-control-panel header div {
  display: grid;
  gap: 5px;
}

.session-control-panel header strong { font-family: var(--font-serif); font-size: 24px; letter-spacing: 0.06em; }
.session-control-panel header small { color: rgba(232, 235, 222, 0.62); font-size: 11px; }
.session-control-panel header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.session-setting-group {
  display: grid;
  gap: 9px;
}

.session-setting-group > span {
  color: rgba(255, 245, 226, 0.78);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.session-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.session-choice-row button {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid rgba(225, 235, 229, 0.18);
  border-radius: 12px;
  color: rgba(255, 247, 233, 0.76);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 11px;
}

.session-choice-row button.active {
  border-color: rgba(255, 210, 133, 0.88);
  color: #31200d;
  background: linear-gradient(180deg, #ffd895, #efb75b);
  box-shadow: 0 7px 22px rgba(232, 157, 58, 0.27), inset 0 1px rgba(255, 255, 255, 0.45);
}

.focus-scene-grid,
.environment-sound-grid {
  display: flex;
  gap: 12px;
  padding: 3px 2px 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(242, 194, 113, 0.48) rgba(255, 255, 255, 0.055);
  scrollbar-width: thin;
}

.focus-scene-grid::-webkit-scrollbar,
.environment-sound-grid::-webkit-scrollbar { height: 5px; }
.focus-scene-grid::-webkit-scrollbar-track,
.environment-sound-grid::-webkit-scrollbar-track { border-radius: 999px; background: rgba(255, 255, 255, 0.055); }
.focus-scene-grid::-webkit-scrollbar-thumb,
.environment-sound-grid::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(242, 194, 113, 0.48); }

.environment-sound-grid {
  padding-bottom: 8px;
}

.environment-sound-button {
  display: grid;
  flex: 0 0 126px;
  scroll-snap-align: start;
  place-items: center;
  gap: 7px;
  padding: 0 0 2px;
  border: 0;
  color: rgba(255, 247, 233, 0.75);
  background: transparent;
  cursor: pointer;
}

.sound-option-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  height: 72px;
  overflow: hidden;
  border: 1px solid rgba(225, 235, 229, 0.26);
  border-radius: 15px;
  background: rgba(8, 18, 19, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sound-option-thumbnail img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.74) saturate(0.88); }
.sound-option-thumbnail i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff4df;
  font-family: var(--font-numeric);
  font-size: 17px;
  font-style: normal;
  font-weight: 650;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.74);
}

.environment-sound-button.is-music-track .sound-option-thumbnail i { font-size: 11px; letter-spacing: 0.12em; }
.environment-sound-button.is-muted-option .sound-option-thumbnail img { filter: grayscale(1) brightness(0.24); }
.environment-sound-button.is-muted-option .sound-option-thumbnail i { font-size: 25px; }
.environment-sound-button small { font-size: 10px; }
.environment-sound-button.active {
  color: #fff4dc;
}
.environment-sound-button.active .sound-option-thumbnail {
  border-color: #ffd27f;
  box-shadow: 0 0 0 2px rgba(255, 200, 108, 0.34), 0 8px 22px rgba(239, 159, 54, 0.2);
  transform: translateY(-1px);
}

.focus-view-button {
  display: grid;
  flex: 0 0 168px;
  scroll-snap-align: start;
  gap: 6px;
  padding: 4px 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(225, 235, 229, 0.18);
  border-radius: 13px;
  color: rgba(255, 247, 233, 0.72);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.focus-view-button img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  border-radius: 9px;
}

.focus-view-button small { font-size: 10px; }
.focus-view-button.active {
  border-color: #ffd187;
  color: #fff4da;
  box-shadow: 0 0 0 1px rgba(255, 196, 103, 0.26), 0 8px 20px rgba(0, 0, 0, 0.2);
}

.focus-control-dock {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 7px;
  width: 100%;
  max-height: 0;
  padding: 0 7px;
  overflow: hidden;
  transform: translateY(10px) scale(0.985);
  transform-origin: right bottom;
  border: 1px solid transparent;
  border-radius: 25px;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: auto;
  transition: max-height 280ms ease, padding 280ms ease, opacity 220ms ease, transform 280ms ease, border-color 280ms ease, background 280ms ease, box-shadow 280ms ease;
  transition-delay: 3s;
}

.focus-control-cluster:hover .focus-control-dock,
.focus-control-cluster:focus-within .focus-control-dock,
.session-hud.is-open .focus-control-dock {
  max-height: 76px;
  padding: 7px;
  transform: translateY(0) scale(1);
  border-color: rgba(232, 239, 235, 0.22);
  background: linear-gradient(145deg, rgba(14, 29, 29, 0.7), rgba(12, 21, 22, 0.64));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 1;
  backdrop-filter: blur(26px) saturate(1.18);
  pointer-events: auto;
  transition-delay: 0s;
}

.focus-dock-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 19px;
  color: rgba(255, 249, 238, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.focus-dock-button:hover,
.focus-dock-button:focus-visible {
  border-color: rgba(255, 224, 173, 0.34);
  color: #fff9ee;
  background: rgba(255, 255, 255, 0.09);
  outline: none;
  transform: translateY(-1px);
}

.focus-dock-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
}

.focus-dock-icon svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.focus-dock-button small { font-size: 12px; font-weight: 620; letter-spacing: 0.08em; }
.focus-dock-button.is-active .focus-dock-icon {
  border-color: rgba(255, 221, 164, 0.7);
  color: #40270d;
  background: linear-gradient(145deg, #f7d596, #dba450);
  box-shadow: 0 0 22px rgba(240, 164, 62, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.focus-dock-button.is-active {
  border-color: rgba(241, 188, 101, 0.25);
  color: #fff2d7;
  background: rgba(187, 119, 38, 0.12);
}

.focus-dock-button.is-danger .focus-dock-icon {
  border-color: rgba(222, 153, 126, 0.38);
  color: #f0b79f;
  background: rgba(143, 68, 43, 0.2);
}

.focus-dock-button.is-danger {
  color: rgba(255, 218, 201, 0.78);
}

@keyframes focus-panel-appear {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(0.985); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.rest-scene-veil {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 29, 29, 0.14), rgba(9, 26, 27, 0.25) 50%, rgba(9, 24, 25, 0.14));
  backdrop-filter: blur(1.5px) saturate(0.94);
}

.rest-next-badge {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(255, 216, 144, 0.62);
  border-radius: 999px;
  color: #fff4df;
  background: rgba(22, 54, 51, 0.75);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px) saturate(1.08);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.rest-next-badge svg {
  width: 22px;
  height: 22px;
  fill: #f7c46d;
  stroke: #704513;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rest-stage {
  position: absolute;
  z-index: 130;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 78px 24px 22px;
  pointer-events: none;
}

.rest-card {
  position: relative;
  width: min(760px, calc(100vw - 48px));
  padding: clamp(38px, 5vh, 54px) clamp(30px, 4.2vw, 48px) 28px;
  overflow: visible;
  border: 1px solid rgba(238, 177, 83, 0.76);
  border-radius: 28px;
  color: #183b35;
  background: linear-gradient(145deg, rgba(255, 250, 237, 0.93), rgba(244, 234, 213, 0.87));
  box-shadow: 0 34px 100px rgba(4, 20, 20, 0.42), inset 0 1px rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(28px) saturate(0.9);
  text-align: center;
  pointer-events: auto;
  animation: rest-card-arrive 520ms cubic-bezier(0.18, 0.8, 0.24, 1) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(187, 122, 42, 0.38) transparent;
}

.rest-bell {
  position: absolute;
  top: 16px;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 247, 225, 0.88);
  border-radius: 50%;
  color: #fff8e9;
  background: linear-gradient(145deg, #eca33e, #c56f22);
  box-shadow: 0 0 0 8px rgba(255, 224, 163, 0.34), 0 12px 28px rgba(171, 92, 24, 0.3);
}

.rest-bell svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rest-bell-wave {
  position: absolute;
  top: 17px;
  width: 16px;
  height: 30px;
  border: solid rgba(244, 178, 77, 0.8);
  opacity: 0;
  animation: rest-bell-ring 1.7s ease-out 2;
}

.rest-bell-wave-left { right: 57px; border-width: 0 0 0 2px; border-radius: 50% 0 0 50%; }
.rest-bell-wave-right { left: 57px; border-width: 0 2px 0 0; border-radius: 0 50% 50% 0; }

.rest-complete-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin: 40px 0 12px;
  padding: 6px 18px;
  border: 1px solid rgba(219, 145, 48, 0.5);
  border-radius: 999px;
  color: #a85e1c;
  background: rgba(255, 245, 220, 0.62);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.rest-card h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 520;
  letter-spacing: 0.06em;
}

.rest-description {
  margin: 0;
  color: #526a62;
  font-size: 15px;
  line-height: 1.6;
}

.rest-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 180px;
  margin: 14px auto 10px;
}

.rest-divider::before,
.rest-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 134, 65, 0.42));
}

.rest-divider::after { transform: scaleX(-1); }
.rest-divider span { width: 8px; height: 8px; transform: rotate(45deg); background: #dc9a3c; }

.rest-clock {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-bottom: 12px;
}

.rest-clock strong {
  font-family: var(--font-numeric);
  font-size: clamp(54px, 5.7vw, 82px);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "zero" 1;
  font-weight: 720;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.rest-clock small { color: #526a62; font-size: 13px; font-weight: 620; }

.rest-duration-setting {
  display: grid;
  gap: 12px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 252, 243, 0.48);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.58);
  text-align: left;
}

.rest-duration-setting h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
  font-weight: 650;
}

.rest-duration-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rest-duration-button {
  min-height: 50px;
  padding: 9px 12px;
  border: 1px solid rgba(55, 80, 72, 0.16);
  border-radius: 14px;
  color: #344d47;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rest-duration-button span { margin-right: 7px; }
.rest-duration-button:hover { transform: translateY(-1px); border-color: rgba(205, 126, 31, 0.44); }
.rest-duration-button.active {
  border-color: rgba(255, 210, 133, 0.94);
  color: #39220a;
  background: linear-gradient(180deg, #ffd895, #efb75b);
  box-shadow: 0 8px 22px rgba(203, 124, 28, 0.22), inset 0 1px rgba(255, 255, 255, 0.58);
}

.rest-custom-duration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(238, 225, 197, 0.5);
}

.rest-custom-duration label { color: #526a62; font-size: 12px; font-weight: 650; }
.rest-custom-duration > div { display: flex; align-items: center; gap: 8px; }
.rest-custom-duration input {
  width: 74px;
  height: 38px;
  border: 1px solid rgba(50, 77, 68, 0.22);
  border-radius: 10px;
  color: #183b35;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  font: 700 14px var(--font-numeric);
}
.rest-custom-duration span { color: #526a62; font-size: 12px; }
.rest-custom-duration button {
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  color: #fffaf0;
  background: #c6772b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.rest-auto-next {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #61726c;
  background: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  text-align: center;
}

.rest-auto-next svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rest-actions {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 14px;
  margin-top: 16px;
}

.rest-actions button {
  min-height: 54px;
  border-radius: 999px;
  cursor: pointer;
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
  font-weight: 650;
}

.rest-skip-button {
  border: 1px solid rgba(39, 72, 63, 0.24);
  color: #183b35;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
}

.rest-continue-button {
  border: 1px solid rgba(255, 216, 143, 0.78);
  color: #fffaf0;
  background: linear-gradient(135deg, #c6712b, #e1a23e);
  box-shadow: 0 12px 26px rgba(171, 91, 25, 0.22), inset 0 1px rgba(255, 255, 255, 0.26);
}

@keyframes rest-card-arrive {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rest-bell-ring {
  0% { opacity: 0; transform: scaleX(0.7); }
  28% { opacity: 0.9; }
  100% { opacity: 0; transform: scaleX(1.32); }
}

.sprite-tuning-panel {
  top: 88px;
  width: min(330px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 226, 177, 0.45);
  border-radius: 24px;
  color: #ffe8c5;
  background: rgba(33, 20, 11, 0.86);
  box-shadow: 0 24px 70px rgba(18, 8, 2, 0.34);
  backdrop-filter: blur(18px);
}

.room.is-debug-layout .sprite-tuning-panel {
  position: relative;
  inset: auto;
  align-self: stretch;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  border-radius: 28px;
  background: rgba(33, 20, 11, 0.92);
}

.sprite-tuning-head,
.sprite-tuning-actions,
.sprite-tuning-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sprite-tuning-head {
  justify-content: space-between;
}

.sprite-tuning-head strong {
  font-size: 0.95rem;
}

.sprite-tuning-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(247, 184, 95, 0.22);
  border-radius: 16px;
  color: rgba(255, 236, 207, 0.72);
  background: rgba(247, 184, 95, 0.08);
  font-size: 0.78rem;
  line-height: 1.55;
}

.scene-object-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.scene-object-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(255, 226, 177, 0.18);
  border-radius: 14px;
  color: rgba(255, 242, 220, 0.88);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.scene-object-list button.is-active {
  border-color: rgba(247, 184, 95, 0.68);
  color: #fff3dc;
  background: rgba(247, 184, 95, 0.16);
}

.scene-object-list small {
  color: rgba(255, 236, 207, 0.48);
  font-size: 0.7rem;
}

.sprite-tuning-head button,
.sprite-tuning-buttons button,
.sprite-tuning-actions button {
  border: 1px solid rgba(255, 226, 177, 0.35);
  border-radius: 999px;
  color: #ffe8c5;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.sprite-tuning-head button {
  padding: 6px 10px;
}

.sprite-tuning-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}

.sprite-tuning-grid label,
.sprite-tuning-slider {
  font-size: 0.82rem;
  color: rgba(255, 242, 220, 0.86);
}

.sprite-tuning-buttons button {
  width: 32px;
  height: 28px;
  font-size: 1.05rem;
}

.sprite-tuning-slider {
  display: grid;
  gap: 6px;
}

.sprite-tuning-slider input {
  width: 100%;
  accent-color: #f7b85f;
}

.sprite-tuning-actions {
  flex-wrap: wrap;
}

.sprite-tuning-actions button {
  padding: 8px 10px;
  font-size: 0.78rem;
}

.sprite-tuning-actions button.publish-layout {
  flex: 1 0 100%;
  border-color: rgba(255, 205, 112, 0.72);
  color: #2c1a0d;
  background: linear-gradient(135deg, #ffd58d, #e9a94d);
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(222, 143, 47, 0.24);
}

.sprite-tuning-actions button.danger {
  border-color: rgba(255, 128, 128, 0.42);
  color: #ffd2d2;
  background: rgba(190, 40, 40, 0.18);
}

.sprite-tuning-panel output,
.sprite-tuning-actions span {
  color: #ffd08a;
  font-variant-numeric: tabular-nums;
}

.sprite-tuning-panel small {
  color: rgba(255, 236, 207, 0.62);
  line-height: 1.5;
}

.seat {
  position: absolute;
  z-index: 7;
  display: grid;
  grid-template-columns: auto auto;
  width: auto;
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  gap: 5px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fffdf7;
  background: rgba(24, 49, 44, 0.78);
  box-shadow: 0 6px 16px rgba(4, 19, 16, 0.28);
  backdrop-filter: blur(9px);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.seat.available:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(31, 66, 57, 0.9);
  box-shadow: 0 8px 20px rgba(4, 19, 16, 0.34), 0 0 0 4px rgba(116, 217, 139, 0.18);
}

.seat.available.selected {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: rgba(255, 235, 183, 0.92);
  background: rgba(31, 66, 57, 0.94);
  box-shadow: 0 8px 22px rgba(4, 19, 16, 0.38), 0 0 0 5px rgba(246, 207, 133, 0.36);
}

.seat.occupied {
  cursor: not-allowed;
}

.seat.occupied::after {
  display: none;
}

.seat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.seat-status-dot.free {
  background: #74d98b;
  box-shadow: 0 0 6px rgba(116, 217, 139, 0.72);
}

.seat-status-dot.busy {
  background: #eb6b65;
  box-shadow: 0 0 6px rgba(235, 107, 101, 0.72);
}

.cafe-seat-status {
  pointer-events: auto;
  cursor: help;
}

.cafe-seat-status::after {
  display: none;
}

.cafe-seat-status .seat-number {
  font-size: 10px;
}

.seat-popover {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 12px);
  left: 50%;
  display: grid;
  width: 190px;
  gap: 5px;
  padding: 12px 13px;
  transform: translate(-50%, 5px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  color: #243f39;
  background: rgba(255, 250, 240, 0.97);
  box-shadow: 0 14px 34px rgba(5, 24, 20, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-align: left;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.seat-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -5px) rotate(45deg);
  background: rgba(255, 250, 240, 0.97);
}

.seat-popover strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 12px;
}

.seat-popover small {
  color: #66746f;
  font-size: 10px;
}

.seat-popover em {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #53705f;
  font-size: 9px;
  font-style: normal;
}

.seat-popover em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #83bc89;
}

.cafe-seat-status:hover,
.cafe-seat-status:focus-visible {
  z-index: 18;
  transform: translate(-50%, -50%) scale(1.05);
  outline: none;
}

.cafe-seat-status:hover .seat-popover,
.cafe-seat-status:focus-visible .seat-popover {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.animated-room button.seat:disabled { cursor: wait; }

.seat-number {
  font-size: 11px;
  font-weight: 800;
}

.seat-free-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  padding: 3px 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  color: #fffaf0;
  background: rgba(15, 43, 37, 0.76);
  box-shadow: 0 5px 14px rgba(5, 24, 20, 0.24);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.seat-zone-sofa .seat-free-label {
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%);
}

.cafe-seat-status.is-mine {
  border-color: #f3ce84 !important;
  background: rgba(124, 79, 42, 0.86) !important;
}

.room-footer {
  position: absolute;
  z-index: 6;
  right: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(680px, calc(100% - 48px));
  min-height: 74px;
  padding: 13px 14px 13px 20px;
  transform: translateX(50%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(16px);
}

.room-footer-copy strong {
  display: block;
  margin-bottom: 4px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px;
}

.room-footer-copy span {
  color: var(--ink-soft);
  font-size: 11px;
}

.room-sync-label {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #527063;
  background: rgba(104, 139, 118, 0.12);
  font-size: 9px;
  white-space: nowrap;
}

.room-card.is-locked {
  opacity: 0.58;
}

.view.room.entering-focus {
  animation: room-to-focus 760ms cubic-bezier(0.35, 0, 0.22, 1) forwards;
}

@keyframes room-to-focus {
  to { opacity: 0; transform: scale(1.045); filter: blur(2px); }
}

@keyframes cafe-seat-idle-sheet {
  to { background-position: -600% 0; }
}

@keyframes cafe-seat-sprite-track-8 {
  to { transform: translateX(-87.5%); }
}

.room-footer .primary-button[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Focus */
.focus .scene-image {
  transform: none;
  filter: saturate(1.03) contrast(1.02);
  object-position: center;
}

.focus::before {
  z-index: -2;
  background: linear-gradient(180deg, rgba(5, 20, 18, 0.24), transparent 18%, transparent 73%, rgba(5, 20, 18, 0.18));
}

.focus .topbar {
  opacity: 0.84;
}

.focus-stage {
  position: absolute;
  z-index: 11;
  top: 82px;
  right: 20px;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-areas:
    "timer presence controls"
    "modes sounds sounds";
  align-items: center;
  gap: 8px 12px;
  width: auto;
  max-width: calc(100vw - 96px);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 17px;
  color: #fffaf0;
  background: rgba(11, 34, 30, 0.62);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px) saturate(1.08);
}

.focus-presence {
  grid-area: presence;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: 10px;
  white-space: nowrap;
}

.focus-presence .presence-dot {
  animation: breathe 2.8s ease-in-out infinite;
}

.timer {
  grid-area: timer;
  margin: 0;
  font-family: var(--font-numeric);
  font-size: 24px;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "zero" 1;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.035em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.focus-label {
  display: none;
}

.timer-modes {
  grid-area: modes;
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(5, 26, 22, 0.32);
}

.mode-button {
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.mode-button.active {
  color: var(--ink);
  background: #f3e8ce;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.focus-controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.focus-controls .primary-button {
  min-width: 0;
}

.focus-controls .primary-button,
.focus-controls .secondary-button {
  min-height: 30px;
  padding: 0 11px;
  font-size: 10px;
}

.focus-controls .secondary-button {
  border-color: rgba(255, 255, 255, 0.24);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.sound-controls {
  grid-area: sounds;
  display: flex;
  justify-content: flex-start;
  gap: 5px;
  width: auto;
  margin: 0;
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.sound-toggle.on {
  border-color: rgba(185, 222, 177, 0.36);
  color: #f7f3e6;
  background: rgba(111, 155, 117, 0.28);
}

.sound-toggle small {
  font-size: 10px;
}

.focus-tip {
  display: none;
}

/* Summary */
.summary {
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 48px);
  background: #163e36;
}

.summary::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 239, 201, 0.02) 20%, rgba(7, 31, 27, 0.2) 100%),
    linear-gradient(180deg, rgba(9, 40, 35, 0.04), rgba(6, 32, 28, 0.15));
  pointer-events: none;
}

.summary-island-background {
  position: absolute;
  z-index: -2;
  inset: -1.5%;
  width: 103%;
  height: 103%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.94);
  transform: scale(1.015);
  animation: summary-island-arrive 1.2s ease-out both;
  user-select: none;
}

.summary-streak-badge {
  position: absolute;
  z-index: 2;
  top: clamp(22px, 4vw, 44px);
  right: clamp(22px, 4vw, 52px);
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 8px 17px;
  border: 1px solid rgba(255, 216, 144, 0.62);
  border-radius: 999px;
  color: #fff4df;
  background: rgba(20, 56, 51, 0.82);
  box-shadow: 0 12px 34px rgba(9, 29, 26, 0.2), inset 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(1.1);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.summary-streak-badge > span {
  color: #f6ae3a;
  font-size: 18px;
  transform: rotate(45deg);
}

.summary-streak-badge strong {
  font-family: var(--font-numeric);
  font-size: 14px;
  font-weight: 720;
}

.summary-card {
  position: relative;
  z-index: 1;
  width: min(830px, calc(100vw - 64px));
  padding: clamp(30px, 4.5vh, 46px) clamp(34px, 4vw, 44px) 30px;
  border: 1px solid rgba(236, 171, 72, 0.76);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 250, 237, 0.91), rgba(244, 234, 213, 0.84));
  box-shadow: 0 34px 100px rgba(12, 42, 36, 0.32), inset 0 1px rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(28px) saturate(0.88);
  text-align: center;
  animation: summary-card-arrive 520ms cubic-bezier(0.18, 0.8, 0.24, 1) both;
}

.summary-symbol {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 247, 225, 0.84);
  border-radius: 50%;
  color: #fff8e9;
  background: linear-gradient(145deg, #eca33e, #c56f22);
  box-shadow: 0 0 0 8px rgba(255, 224, 163, 0.36), 0 12px 28px rgba(171, 92, 24, 0.3);
  font-size: 31px;
  font-weight: 520;
}

.summary-symbol.quiet {
  color: #f6e4bd;
  background: #315d52;
  box-shadow: 0 0 0 8px rgba(199, 219, 204, 0.32), 0 12px 28px rgba(19, 54, 48, 0.26);
}

.summary-card .eyebrow {
  margin: 16px 0 8px;
  color: #526a62;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.2em;
}

.summary-card h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(32px, 3.1vw, 45px);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.summary-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.summary-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 170px;
  margin: 16px auto 14px;
  color: #d9993f;
}

.summary-divider::before,
.summary-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 134, 65, 0.34));
}

.summary-divider::after { transform: scaleX(-1); }
.summary-divider span {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: #dc9a3c;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}

.summary-stat {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 80px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: rgba(255, 252, 243, 0.48);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.48);
  text-align: left;
}

.summary-stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(229, 158, 55, 0.42);
  border-radius: 50%;
  color: #c9771e;
  background: linear-gradient(145deg, rgba(255, 243, 211, 0.92), rgba(247, 215, 158, 0.72));
  box-shadow: 0 6px 15px rgba(172, 100, 27, 0.12);
}

.summary-stat-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-stat strong,
.summary-stat span {
  display: block;
}

.summary-stat strong {
  margin-bottom: 3px;
  color: #183b35;
  font-family: var(--font-numeric), "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "zero" 1;
  font-weight: 720;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.summary-stat span {
  color: var(--ink-soft);
  font-size: 11px;
}

.feedback-title {
  margin: 3px 0 12px;
  color: #183b35;
  font-family: Georgia, "Songti SC", serif;
  font-size: 14px;
  font-weight: 700;
}

.feedback-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.feedback-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 9px 16px;
  border: 1px solid rgba(69, 90, 83, 0.18);
  border-radius: 999px;
  color: #324b46;
  background: rgba(255, 255, 255, 0.43);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.feedback-button svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-button .face-eye {
  fill: currentColor;
  stroke: none;
}

.feedback-button span {
  font-family: Georgia, "Songti SC", serif;
  font-size: 14px;
  font-weight: 650;
}

.feedback-button:hover,
.feedback-button.selected {
  transform: translateY(-1px);
  border-color: #dc8f2f;
  color: #bd661b;
  background: rgba(255, 245, 221, 0.74);
  box-shadow: 0 0 0 1px rgba(231, 151, 45, 0.16), 0 8px 20px rgba(155, 90, 27, 0.1);
}

.summary-actions {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(180px, 1fr) minmax(220px, 1.22fr);
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(44, 71, 63, 0.14);
}

.summary-actions .primary-button,
.summary-actions .secondary-button {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
  font-weight: 650;
}

.summary-actions .secondary-button {
  border-color: rgba(39, 72, 63, 0.24);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.6);
}

.summary-actions .primary-button {
  border: 1px solid rgba(255, 216, 143, 0.72);
  color: #fffaf0;
  background: linear-gradient(135deg, #c6712b, #e1a23e);
  box-shadow: 0 12px 26px rgba(171, 91, 25, 0.22), inset 0 1px rgba(255, 255, 255, 0.24);
}

.summary-actions .text-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 48px;
  padding: 8px 12px;
  border: 0;
  color: #46635b;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 620;
}

.summary-actions .text-button:hover {
  color: var(--ink);
}

@keyframes summary-card-arrive {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes summary-island-arrive {
  from { opacity: 0.72; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1.015); }
}

@media (max-width: 900px) {
  .rest-stage { padding: 72px 18px 16px; }
  .rest-card { width: min(720px, calc(100vw - 36px)); padding-inline: 25px; }
  .rest-duration-options { gap: 7px; }
  .rest-duration-button { padding-inline: 8px; }

  .summary-card {
    width: min(760px, calc(100vw - 36px));
    padding: 27px 26px 22px;
  }

  .summary-streak-badge { top: 16px; right: 18px; }
  .summary-stat { grid-template-columns: 36px minmax(0, 1fr); padding: 10px; }
  .summary-stat-icon { width: 36px; height: 36px; }
  .summary-stat-icon svg { width: 20px; height: 20px; }
  .summary-actions { grid-template-columns: minmax(120px, 0.8fr) 1fr 1.2fr; }
}

@media (max-height: 760px) and (orientation: landscape) {
  .rest-stage { padding-top: 66px; }
  .rest-card {
    padding-top: 34px;
    padding-bottom: 18px;
  }
  .rest-bell { top: 12px; width: 56px; height: 56px; }
  .rest-bell svg { width: 27px; height: 27px; }
  .rest-complete-pill { min-height: 29px; margin-top: 35px; margin-bottom: 7px; padding-block: 4px; }
  .rest-card h1 { font-size: 34px; }
  .rest-description { font-size: 13px; }
  .rest-divider { margin-block: 9px 6px; }
  .rest-clock { margin-bottom: 8px; }
  .rest-clock strong { font-size: 58px; }
  .rest-duration-setting { gap: 9px; padding-block: 12px 10px; }
  .rest-duration-button { min-height: 42px; }
  .rest-auto-next { min-height: 36px; }
  .rest-actions { margin-top: 11px; }
  .rest-actions button { min-height: 46px; }
}

.personal-center-overlay {
  position: fixed;
  z-index: 500;
  inset: 0;
  color: #213832;
}

.personal-center-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(5, 31, 27, 0.9), rgba(11, 48, 39, 0.76)),
    url("./assets/20261012-focus-island-map-detailed.webp") center / cover;
  filter: saturate(0.82);
}

.personal-center-shell {
  position: relative;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  width: min(1480px, calc(100vw - 48px));
  height: min(920px, calc(100dvh - 42px));
  margin: 21px auto;
  overflow: hidden;
  border: 1px solid rgba(247, 228, 185, 0.3);
  border-radius: 26px;
  background: rgba(243, 238, 224, 0.96);
  box-shadow: 0 30px 100px rgba(2, 17, 14, 0.48);
  backdrop-filter: blur(24px) saturate(1.05);
}

.personal-center-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 25px 18px 20px;
  color: #f8f2e4;
  background:
    linear-gradient(rgba(12, 52, 43, 0.93), rgba(17, 58, 48, 0.88)),
    url("./assets/20261013-cafe-window-real-focus-view.webp") center / cover;
}

.personal-center-brand .brand-mark {
  width: 38px;
  height: 38px;
}

.personal-center-brand .brand-copy strong { font-size: 17px; }

.personal-center-identity {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 34px 4px 25px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.personal-center-avatar,
.profile-hero-avatar {
  display: block;
  border: 2px solid rgba(244, 190, 102, 0.9);
  border-radius: 50%;
  background-color: #e8d8b7;
  background-position: center 25%;
  background-size: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.personal-center-avatar { width: 56px; height: 56px; }
.profile-hero-avatar { width: 78px; height: 78px; }

.personal-center-identity div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.personal-center-identity strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-center-identity small,
.personal-center-local-note { color: rgba(255, 248, 234, 0.62); font-size: 11px; }

.personal-center-sidebar nav { display: grid; gap: 7px; }

.personal-nav-button {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: rgba(255, 250, 240, 0.76);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.personal-nav-button span { font-size: 18px; text-align: center; }

.personal-nav-button:hover { background: rgba(255, 255, 255, 0.08); }

.personal-nav-button.is-active {
  border-color: rgba(240, 184, 91, 0.42);
  color: #24463c;
  background: linear-gradient(135deg, #fff7e7, #f2dfb8);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.personal-center-local-note {
  margin: auto 5px 0;
  line-height: 1.6;
}

.personal-center-main {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: linear-gradient(145deg, rgba(255, 252, 245, 0.96), rgba(239, 234, 220, 0.96));
}

.personal-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 18px 26px 14px;
  border-bottom: 1px solid rgba(35, 67, 58, 0.1);
}

.personal-center-header p,
.profile-settings-heading span,
.profile-panel-heading span,
.profile-history-title > div > span {
  margin: 0 0 4px;
  color: #a66c24;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.personal-center-header h1,
.profile-settings-heading h2,
.profile-panel-heading h3,
.profile-history-title h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 650;
}

.personal-center-header h1 { font-size: 28px; }

.personal-center-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(38, 68, 60, 0.17);
  border-radius: 50%;
  color: #35584e;
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.personal-focus-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  margin: 12px 26px 0;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(203, 137, 51, 0.32);
  border-radius: 13px;
  color: #704714;
  background: rgba(249, 226, 180, 0.72);
}

.personal-focus-notice span { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.personal-focus-notice i { width: 8px; height: 8px; border-radius: 50%; background: #d5953d; box-shadow: 0 0 0 5px rgba(213, 149, 61, 0.15); }
.personal-focus-notice button,
.profile-primary-button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #d99a48, #bd782a);
  box-shadow: 0 8px 20px rgba(168, 100, 25, 0.2);
  cursor: pointer;
}

.personal-center-content {
  min-height: 0;
  overflow: auto;
  padding: 20px 26px 26px;
}

.profile-overview,
.profile-settings-layout,
.profile-account-layout { display: grid; gap: 16px; }

.profile-hero-card,
.profile-panel,
.profile-stat-card,
.profile-calendar-card,
.profile-history-detail,
.profile-settings-card {
  border: 1px solid rgba(40, 71, 62, 0.12);
  border-radius: 17px;
  background: rgba(255, 252, 246, 0.82);
  box-shadow: 0 10px 28px rgba(24, 55, 47, 0.06);
}

.profile-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 122px;
  padding: 20px 22px;
  background:
    linear-gradient(90deg, rgba(255, 249, 237, 0.94), rgba(249, 235, 204, 0.82)),
    url("./assets/20261013-cafe-window-real-focus-view.webp") right center / 55% auto no-repeat;
}

.profile-hero-identity { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 16px; }
.profile-hero-identity span { color: #a56e2e; font-size: 11px; }
.profile-hero-identity h2 { margin: 3px 0; font-family: Georgia, "Songti SC", serif; font-size: 25px; }
.profile-hero-identity p { margin: 0; color: #66756f; font-size: 12px; }
.profile-hero-actions { display: flex; align-items: center; gap: 10px; }
.profile-primary-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding-inline: 22px; }
.profile-text-button,
.profile-panel-heading button {
  border: 0;
  color: #8f6329;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.profile-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.profile-stat-card { display: grid; gap: 5px; min-height: 100px; align-content: center; padding: 15px 17px; }
.profile-stat-card > span { color: #64746e; font-size: 11px; }
.profile-stat-card strong { color: #173d34; font-size: clamp(21px, 2vw, 29px); }
.profile-stat-card small { color: #89958f; font-size: 10px; }

.profile-overview-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr); gap: 16px; }
.profile-panel { min-width: 0; padding: 17px 19px; }
.profile-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.profile-panel-heading h3 { font-size: 18px; }
.profile-panel-heading > small { color: #6f7d77; font-size: 11px; }

.profile-week-chart { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 12px; height: 118px; margin-top: 12px; }
.profile-chart-day { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 7px; height: 100%; }
.profile-chart-bar { display: flex; width: min(26px, 68%); height: 100%; align-items: end; overflow: hidden; border-radius: 8px; background: rgba(40, 84, 70, 0.07); }
.profile-chart-bar i { display: block; width: 100%; min-height: 2px; border-radius: 8px; background: linear-gradient(#edb45f, #d28a32); }
.profile-chart-day small { color: #74817b; font-size: 10px; }
.profile-empty-inline { margin: -18px 0 0; color: #89958f; font-size: 11px; text-align: center; }

.profile-scene-list { display: grid; gap: 9px; margin-top: 12px; }
.profile-scene-item { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 11px; }
.profile-scene-item img { width: 78px; height: 46px; border-radius: 10px; object-fit: cover; }
.profile-scene-item div { display: grid; gap: 3px; }
.profile-scene-item strong { font-size: 12px; }
.profile-scene-item small { color: #7c8984; font-size: 10px; }

.profile-record-list { display: grid; gap: 6px; margin-top: 12px; }
.profile-record-item { display: grid; grid-template-columns: 78px 120px minmax(160px, 1fr) 78px; align-items: center; gap: 10px; min-height: 43px; padding: 7px 11px; border-radius: 11px; background: rgba(36, 76, 64, 0.045); font-size: 11px; }
.profile-record-item time,
.profile-record-item span { color: #687872; }
.profile-record-item em { justify-self: end; padding: 5px 9px; border-radius: 999px; font-style: normal; font-size: 10px; }
.profile-record-item em.is-completed { color: #3e7353; background: #e2f0df; }
.profile-record-item em.is-ended_early { color: #966024; background: #f7ead1; }
.profile-record-item em.is-interrupted { color: #6f6960; background: #ece9e2; }
.profile-empty-state { margin: 18px 0; color: #82908a; font-size: 12px; text-align: center; }

.profile-history-layout { display: grid; grid-template-columns: minmax(340px, 0.78fr) minmax(520px, 1.22fr); gap: 16px; min-height: 100%; }
.profile-calendar-card,
.profile-history-detail { padding: 18px; }
.profile-calendar-header { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 8px; }
.profile-calendar-header h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 21px; text-align: center; }
.profile-calendar-header button { height: 34px; border: 1px solid rgba(45, 78, 69, 0.14); border-radius: 9px; color: #31594e; background: white; cursor: pointer; font-size: 24px; }
.profile-calendar-weekdays,
.profile-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.profile-calendar-weekdays { margin: 17px 0 7px; color: #829089; font-size: 10px; text-align: center; }
.profile-calendar-day { position: relative; display: grid; min-height: 42px; place-items: center; border: 1px solid transparent; border-radius: 11px; color: #405c54; background: transparent; cursor: pointer; }
.profile-calendar-day:hover { background: rgba(224, 184, 112, 0.12); }
.profile-calendar-day.is-today { border-color: rgba(205, 140, 52, 0.45); }
.profile-calendar-day.is-selected { color: white; background: linear-gradient(135deg, #dc9c46, #be792b); }
.profile-calendar-day i { position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: #d89539; }
.profile-calendar-day.is-selected i { background: white; }

.profile-history-detail { min-width: 0; }
.profile-history-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.profile-history-title h2 { font-size: 22px; }
.profile-filter-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.profile-filter-row label { display: grid; gap: 3px; color: #7b8984; font-size: 9px; }
.profile-filter-row select { min-width: 100px; height: 32px; padding: 0 24px 0 9px; border: 1px solid rgba(45, 78, 69, 0.15); border-radius: 9px; color: #37574e; background: white; font: inherit; }
.profile-day-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 15px; }
.profile-day-summary .profile-stat-card { min-height: 82px; box-shadow: none; }
.profile-day-summary .profile-stat-card strong { font-size: 20px; }

.profile-settings-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.profile-settings-card { padding: 20px; }
.profile-settings-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.profile-settings-heading { margin-bottom: 15px; }
.profile-settings-heading h2 { font-size: 21px; }

.profile-segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 12px; background: rgba(37, 77, 65, 0.07); }
.profile-segmented button { min-height: 38px; border: 0; border-radius: 9px; color: #65746f; background: transparent; cursor: pointer; font-size: 11px; }
.profile-segmented button.is-active { color: #64400f; background: #f4c575; box-shadow: 0 5px 14px rgba(169, 103, 23, 0.14); }
.profile-segmented button:disabled { cursor: not-allowed; opacity: 0.42; }
.profile-segmented.is-compact { width: 210px; }
.profile-setting-row,
.profile-language-row,
.profile-data-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; border-bottom: 1px solid rgba(41, 74, 65, 0.09); }
.profile-setting-row > div,
.profile-language-row > div:first-child,
.profile-data-action > div { display: grid; gap: 4px; }
.profile-setting-row strong,
.profile-language-row strong,
.profile-data-action strong { font-size: 12px; }
.profile-setting-row small,
.profile-language-row small,
.profile-data-action small { color: #7e8b86; font-size: 10px; }
.profile-switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; border: 0; border-radius: 999px; background: #c6ccc8; cursor: pointer; }
.profile-switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16); transition: transform 180ms ease; }
.profile-switch.is-on { background: #d3943c; }
.profile-switch.is-on span { transform: translateX(18px); }
.profile-setting-row.is-disabled { opacity: 0.56; }

.profile-sound-settings { display: grid; gap: 8px; }
.profile-sound-row { display: grid; grid-template-columns: 150px minmax(160px, 1fr); align-items: center; gap: 15px; }
.profile-sound-toggle { display: grid; grid-template-columns: 42px 1fr; align-items: center; min-height: 43px; border: 1px solid rgba(43, 78, 68, 0.13); border-radius: 11px; color: #50645d; background: white; cursor: pointer; text-align: left; }
.profile-sound-toggle span { color: #89948f; font-size: 9px; }
.profile-sound-toggle strong { font-size: 11px; }
.profile-sound-toggle.is-on { border-color: rgba(205, 139, 50, 0.55); color: #6a4718; background: #fff4df; }
.profile-sound-row label { display: grid; grid-template-columns: 1fr 38px; align-items: center; gap: 8px; color: #6f7e78; font-size: 10px; }
.profile-sound-row input { width: 100%; accent-color: #d3923b; }
.profile-music-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 12px; }
.profile-music-grid button { display: grid; gap: 3px; min-height: 48px; padding: 7px; border: 1px solid rgba(43, 78, 68, 0.12); border-radius: 10px; color: #405b53; background: white; cursor: pointer; }
.profile-music-grid button.is-active { border-color: #d2923a; color: #744914; background: #fff0d5; }
.profile-music-grid span { font-size: 10px; }
.profile-music-grid small { color: #87938e; font-size: 8px; }

.profile-account-layout { grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); align-items: start; }
.profile-name-field { display: grid; gap: 7px; }
.profile-name-field > span,
.profile-avatar-field legend { color: #687972; font-size: 11px; }
.profile-name-field > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.profile-name-field input { min-width: 0; height: 42px; padding: 0 12px; border: 1px solid rgba(43, 78, 68, 0.17); border-radius: 10px; color: #29473f; background: white; font: inherit; }
.profile-name-field button,
.profile-data-action button { min-height: 38px; padding: 0 14px; border: 1px solid rgba(45, 79, 69, 0.16); border-radius: 10px; color: #31594e; background: white; cursor: pointer; }
.profile-name-field > small { color: #89958f; font-size: 9px; }
.profile-avatar-field { margin: 18px 0 0; padding: 0; border: 0; }
.profile-avatar-field > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 8px; }
.profile-avatar-option { display: grid; justify-items: center; gap: 5px; padding: 8px; border: 1px solid rgba(43, 78, 68, 0.13); border-radius: 12px; color: #52655e; background: white; cursor: pointer; }
.profile-avatar-option span { width: 54px; height: 54px; border-radius: 50%; background-color: #eadabe; background-position: center 25%; background-size: cover; }
.profile-avatar-option small { font-size: 9px; }
.profile-avatar-option.is-active { border-color: #d19139; color: #744914; background: #fff2da; box-shadow: inset 0 0 0 1px rgba(209, 145, 57, 0.16); }
.profile-local-id { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(41, 74, 65, 0.09); color: #6b7a74; font-size: 10px; }
.profile-local-id code { color: #3f5a52; }
.profile-storage-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; color: #6e756d; background: #f2ecdf; font-size: 10px; line-height: 1.65; }
.profile-data-action:last-child { border-bottom: 0; }
.profile-data-action.is-danger strong { color: #934c3a; }
.profile-data-action.is-danger button { color: #9f4a37; border-color: rgba(168, 78, 56, 0.22); }
.profile-data-action button:disabled { cursor: not-allowed; opacity: 0.42; }

.profile-password-form { display: grid; gap: 12px; }
.profile-password-form label { display: grid; gap: 6px; color: #687972; font-size: 11px; }
.profile-password-form input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border: 1px solid rgba(43, 78, 68, 0.17); border-radius: 10px; color: #29473f; background: white; font: inherit; }
.profile-password-form > small { color: #84918c; font-size: 9px; line-height: 1.6; }
.profile-password-form > button { min-height: 42px; border: 0; border-radius: 10px; color: white; background: #315f51; cursor: pointer; font-weight: 700; }
.profile-password-form > button:disabled { cursor: wait; opacity: 0.6; }
.profile-developer-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 16px; align-items: start; }
.profile-developer-card { border-color: rgba(164, 109, 38, .28); background: linear-gradient(145deg, rgba(255, 249, 234, .94), rgba(246, 237, 214, .82)); }
.profile-developer-card > p { margin: -3px 0 12px; color: #687972; font-size: 11px; line-height: 1.7; }
.profile-developer-card code { color: #80541d; }

.profile-confirm-backdrop { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(10, 32, 27, 0.5); backdrop-filter: blur(8px); }
.profile-confirm-dialog { width: min(430px, calc(100vw - 48px)); padding: 25px; border: 1px solid rgba(255, 255, 255, 0.48); border-radius: 18px; background: #fffaf0; box-shadow: 0 24px 70px rgba(3, 19, 16, 0.35); }
.profile-confirm-dialog > span { color: #aa6b22; font-size: 10px; letter-spacing: 0.15em; }
.profile-confirm-dialog h2 { margin: 7px 0; font-family: Georgia, "Songti SC", serif; font-size: 23px; }
.profile-confirm-dialog p { margin: 0; color: #6d7b75; font-size: 12px; line-height: 1.7; }
.profile-confirm-dialog > div { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.profile-confirm-dialog button { min-height: 39px; padding: 0 17px; border: 1px solid rgba(42, 75, 66, 0.16); border-radius: 999px; color: #38594f; background: white; cursor: pointer; }
.profile-confirm-dialog button.is-danger { border-color: transparent; color: white; background: #a95843; }

body.reduce-motion .personal-center-overlay *,
.developer-status-grid { display: grid; gap: 10px; margin: 20px 0; }
.developer-status-grid > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(60, 80, 65, .12); padding: 8px 0; }
.developer-status-grid dt { flex-shrink: 0; }
.developer-status-grid dd { margin: 0; overflow-wrap: anywhere; text-align: right; }
.developer-diagnostics { max-height: 280px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; padding: 16px; background: rgba(20, 45, 35, .05); border-radius: 12px; }
body.motion-effects-off .personal-center-overlay * { animation: none !important; transition-duration: 0.01ms !important; }

body.reduce-motion .view *,
body.motion-effects-off .view * { animation: none !important; transition-duration: 0.01ms !important; }

@media (max-width: 1280px), (max-height: 760px) {
  .personal-center-shell { grid-template-columns: 205px minmax(0, 1fr); width: calc(100vw - 24px); height: calc(100dvh - 20px); margin: 10px auto; border-radius: 20px; }
  .personal-center-sidebar { padding: 18px 14px 15px; }
  .personal-center-identity { margin-block: 20px 16px; padding-bottom: 16px; }
  .personal-center-header { min-height: 69px; padding: 12px 19px; }
  .personal-center-header h1 { font-size: 24px; }
  .personal-center-content { padding: 14px 19px 19px; }
  .personal-focus-notice { margin: 9px 19px 0; }
  .profile-hero-card { min-height: 104px; padding: 14px 17px; }
  .profile-hero-avatar { width: 66px; height: 66px; }
  .profile-hero-identity { grid-template-columns: 66px minmax(0, 1fr); }
  .profile-stat-card { min-height: 84px; padding: 11px 13px; }
  .profile-week-chart { height: 90px; }
  .profile-panel { padding: 14px 16px; }
  .profile-history-layout { grid-template-columns: minmax(310px, 0.75fr) minmax(490px, 1.25fr); }
  .profile-calendar-card, .profile-history-detail, .profile-settings-card { padding: 14px; }
  .profile-calendar-day { min-height: 36px; }
  .profile-record-item { min-height: 37px; }
  .profile-setting-row, .profile-language-row, .profile-data-action { min-height: 51px; }
}

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 26px;
  padding: 11px 17px;
  transform: translate(-50%, 20px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: white;
  background: rgba(13, 40, 35, 0.92);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  font-size: 12px;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.rotate-notice {
  display: none;
}

@keyframes slow-drift {
  from { transform: scale(1.05) translate3d(-0.4%, 0, 0); }
  to { transform: scale(1.1) translate3d(0.6%, -0.4%, 0); }
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(167, 223, 166, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(167, 223, 166, 0.2); }
}

@keyframes count-pop {
  0% { transform: translateY(0); color: inherit; }
  38% { transform: translateY(-3px) scale(1.08); color: #d9a14e; }
  100% { transform: translateY(0) scale(1); color: inherit; }
}

@media (max-width: 1120px) {
  .cafe-room-picker {
    grid-template-columns: minmax(330px, 0.78fr) minmax(500px, 1.22fr);
    gap: 34px;
    width: calc(100vw - 54px);
  }

  .cafe-room-features { gap: 8px; }
  .cafe-room-feature { gap: 8px; padding: 11px; }
  .cafe-room-feature svg { width: 25px; height: 25px; }
  .cafe-room-preview-card { grid-template-columns: 104px minmax(0, 1fr) auto auto; gap: 9px; }
  .cafe-room-preview-copy strong { font-size: 15px; }
}

@media (max-width: 950px) {
  .topbar {
    min-height: 64px;
    padding: 13px 18px;
  }

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

  .rooms-layout {
    padding: 82px 30px 28px;
    gap: 24px;
  }

  .scene-intro h1 {
    font-size: 44px;
  }

  .scene-intro p {
    font-size: 13px;
  }

  .room-panel {
    padding: 20px;
  }

  .room-card {
    padding: 13px 14px;
  }

  .cafe-room-picker {
    grid-template-columns: minmax(280px, 0.72fr) minmax(430px, 1.28fr);
    gap: 22px;
    width: calc(100vw - 36px);
    padding: 76px 0 18px;
  }

  .cafe-room-intro h1 { font-size: 46px; }
  .cafe-room-intro-rule { margin: 19px 0 16px; }
  .cafe-room-intro-copy { font-size: 15px; }
  .cafe-room-features { grid-template-columns: 1fr; margin-top: 18px; }
  .cafe-room-feature { min-height: 58px; }
  .cafe-room-list-panel { gap: 10px; padding: 17px; border-radius: 23px; }
  .cafe-room-list-heading strong { font-size: 24px; }
  .cafe-room-preview-list { gap: 7px; }
  .cafe-room-preview-card { min-height: 66px; padding: 6px 9px 6px 6px; }
  .cafe-room-preview-card > img { height: 54px; }
  .cafe-room-preview-copy { gap: 2px; }
  .cafe-room-preview-occupancy { min-width: 56px; padding: 8px; }
  .cafe-room-preview-check { width: 29px; height: 29px; }
  .cafe-room-enter { min-height: 49px; font-size: 15px; }

  .welcome-content {
    width: min(560px, 64vw);
  }

  .island-card {
    left: 18px;
    bottom: 18px;
    width: 330px;
  }

  .hotspot {
    min-width: 110px;
  }

  .focus-stage {
    grid-template-columns: auto auto;
    grid-template-areas:
      "timer controls"
      "modes sounds";
    gap: 7px 9px;
  }

  .focus-presence {
    display: none;
  }

  .section-shell {
    width: min(1180px, calc(100% - 44px));
  }

  .problem-grid,
  .philosophy-shell {
    gap: 54px;
  }

  .scene-story {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 50px;
  }

  .value-shell {
    gap: 66px;
  }
}

@media (max-width: 720px) {
  .section-shell {
    width: calc(100% - 36px);
  }

  .welcome-hero {
    min-height: 680px;
  }

  .welcome::before {
    background: linear-gradient(90deg, rgba(7, 27, 24, 0.91), rgba(7, 27, 24, 0.56) 72%, rgba(7, 27, 24, 0.34));
  }

  .welcome .scene-image {
    object-position: 58% center;
  }

  .welcome-content {
    top: 48%;
    left: 24px;
    width: calc(100% - 48px);
    transform: translateY(-50%);
  }

  .welcome-kicker {
    max-width: 100%;
    font-size: 10px;
    line-height: 1.5;
  }

  .welcome h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .welcome-subtitle {
    max-width: 90%;
    margin: 22px 0 26px;
    font-size: 15px;
    line-height: 1.7;
  }

  .welcome-actions {
    align-items: start;
    flex-direction: column;
    gap: 13px;
  }

  .prototype-tag {
    display: none;
  }

  .scroll-cue {
    bottom: 14px;
  }

  .section-heading h2,
  .center-heading h2,
  .philosophy-heading h2,
  .value-copy h2,
  .feedback-shell h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .problem-section,
  .journey-section,
  .scenes-section,
  .philosophy-section,
  .value-section {
    padding: 88px 0;
  }

  .problem-grid,
  .scenes-heading,
  .philosophy-shell,
  .value-shell,
  .feedback-shell {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .problem-copy {
    padding-top: 0;
    font-size: 15px;
  }

  .problem-copy .lead-copy {
    font-size: 24px;
  }

  .center-heading {
    margin-bottom: 52px;
    text-align: left;
  }

  .center-heading > p:last-child {
    margin-left: 0;
  }

  .journey-track {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .journey-shot,
  .journey-shot:nth-child(even) {
    grid-column: auto;
    padding-top: 0;
  }

  .journey-shot img {
    border-radius: 20px;
  }

  .journey-shot figcaption {
    padding: 18px 3px 0;
  }

  .journey-shot figcaption strong {
    font-size: 21px;
  }

  .section-action {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 54px;
  }

  .scenes-heading {
    margin-bottom: 70px;
  }

  .scenes-heading > p:last-child {
    margin-top: -16px;
  }

  .scene-story {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-bottom: 106px;
  }

  .scene-story:nth-of-type(odd) .scene-story-visual {
    order: initial;
  }

  .scene-story-visual::after {
    inset: 18px -9px -14px 14px;
    border-radius: 24px;
  }

  .scene-story-visual img {
    border-radius: 22px;
  }

  .scene-story-copy h3 {
    font-size: 35px;
  }

  .future-note {
    margin-top: -30px;
  }

  .philosophy-heading {
    position: static;
  }

  .principle-list article {
    grid-template-columns: 42px 1fr;
  }

  .design-flow {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 17px;
    margin-top: 20px;
  }

  .design-flow i {
    transform: rotate(90deg);
    transform-origin: left center;
  }

  .value-visual {
    width: calc(100% - 20px);
  }

  .value-visual img {
    border-radius: 120px 120px 22px 22px;
  }

  .value-visual p {
    right: -20px;
    bottom: 24px;
    max-width: 270px;
    font-size: 13px;
  }

  .value-copy h2 {
    margin-bottom: 26px;
  }

  .final-cta-section {
    min-height: 680px;
  }

  .final-cta-section > img {
    object-position: 58% center;
  }

  .final-cta-content h2 {
    font-size: clamp(45px, 13vw, 62px);
  }

  .final-cta-content p {
    line-height: 1.7;
  }

  .feedback-section {
    padding: 76px 0;
  }

  .feedback-action {
    justify-items: start;
  }

  .feedback-action small {
    text-align: left;
  }

  .landing-footer .section-shell {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 28px 0;
  }

  .landing-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .landing-footer .brand-mark {
    width: 36px;
    height: 36px;
  }
}

@media (orientation: portrait) and (max-width: 900px) {
  body:not(.landing-mode) #app {
    filter: blur(10px) brightness(0.45);
    pointer-events: none;
  }

  body:not(.landing-mode) .rotate-notice {
    position: fixed;
    z-index: 99;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    padding: 40px;
    color: white;
    background: rgba(11, 37, 32, 0.68);
    text-align: center;
  }

  .rotate-icon {
    font-size: 52px;
  }

  .rotate-notice strong {
    font-family: Georgia, "Songti SC", serif;
    font-size: 25px;
  }

  .rotate-notice small {
    color: rgba(255, 255, 255, 0.68);
  }
}

/* Landing v2 — a calm, product-first editorial system */
.landing-v2 {
  --landing-night: #0e2924;
  --landing-forest: #183f36;
  --landing-paper: #f6f0e4;
  --landing-paper-deep: #e9dfce;
  --landing-cream: #fffaf0;
  --landing-gold: #cf9656;
  --landing-coral: #b85e42;
  --landing-line: rgba(23, 58, 50, 0.16);
  color: #18342e;
  background: var(--landing-paper);
}

.landing-v2 a {
  color: inherit;
}

.landing-v2-shell {
  width: min(1220px, calc(100% - 72px));
  margin: 0 auto;
}

.landing-v2-nav {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  padding: 10px clamp(24px, 4vw, 68px);
  border-bottom: 1px solid rgba(23, 58, 50, 0.1);
  background: rgba(246, 240, 228, 0.9);
  box-shadow: 0 8px 32px rgba(23, 58, 50, 0.04);
  backdrop-filter: blur(18px) saturate(130%);
}

.landing-v2-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.landing-brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(23, 58, 50, 0.2);
  border-radius: 50%;
  color: var(--landing-forest);
  background: rgba(255, 250, 240, 0.75);
  box-shadow: inset 0 0 0 5px rgba(24, 63, 54, 0.04);
}

.landing-brand-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.55;
}

.landing-v2-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.landing-v2-brand strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.landing-v2-brand small {
  color: #66756f;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.landing-v2-nav nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
}

.landing-v2-nav nav a {
  position: relative;
  padding: 9px 0;
  color: #4f625c;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}

.landing-v2-nav nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--landing-coral);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.landing-v2-nav nav a:hover::after {
  transform: scaleX(1);
}

.landing-v2-nav-cta {
  justify-self: end;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--landing-forest);
  border-radius: 999px;
  color: var(--landing-cream);
  background: var(--landing-forest);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.landing-v2-nav-cta span {
  display: inline-block;
  margin-left: 8px;
}

.landing-v2-nav-cta:hover,
.landing-v2-primary:hover {
  background: #235448;
  box-shadow: 0 13px 32px rgba(17, 57, 48, 0.18);
  transform: translateY(-2px);
}

.landing-v2-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(380px, 0.84fr) minmax(560px, 1.16fr);
  align-items: center;
  gap: clamp(48px, 7vw, 106px);
  min-height: calc(100svh - 78px);
  padding: clamp(78px, 9vw, 132px) clamp(36px, 7vw, 112px) clamp(86px, 10vw, 138px);
  overflow: hidden;
  background:
    linear-gradient(rgba(24, 63, 54, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 63, 54, 0.045) 1px, transparent 1px),
    var(--landing-paper);
  background-size: 80px 80px;
}

.landing-v2-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.landing-v2-orb-a {
  top: -240px;
  right: 12%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(224, 169, 98, 0.18), rgba(224, 169, 98, 0) 69%);
}

.landing-v2-orb-b {
  bottom: -340px;
  left: -170px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(80, 135, 112, 0.13), rgba(80, 135, 112, 0) 68%);
}

.landing-v2-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.landing-v2-eyebrow {
  margin: 0 0 21px;
  color: var(--landing-coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.landing-v2-hero-copy > .landing-v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.landing-v2-hero-copy > .landing-v2-eyebrow span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.landing-v2 h1,
.landing-v2 h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.landing-v2 h1 {
  font-size: clamp(58px, 6.2vw, 94px);
  line-height: 0.99;
}

.landing-v2 h1 span,
.landing-v2 h2 span {
  display: block;
}

.landing-v2 h1 span:last-child {
  color: var(--landing-coral);
}

.landing-v2-lead {
  max-width: 580px;
  margin: 29px 0 0;
  color: #53655f;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.75;
}

.landing-v2-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.landing-v2-primary {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border: 1px solid var(--landing-forest);
  border-radius: 999px;
  color: var(--landing-cream);
  background: var(--landing-forest);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.025em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.landing-v2-primary span {
  font-size: 17px;
  transition: transform 180ms ease;
}

.landing-v2-primary:hover span {
  transform: translateX(3px);
}

.landing-v2-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: #3e554e;
  text-decoration: none;
  font-size: 12px;
  font-weight: 680;
}

.landing-v2-note {
  margin: 18px 0 0;
  color: #77847f;
  font-size: 10px;
  letter-spacing: 0.035em;
}

.landing-v2-product {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.landing-v2-product-frame {
  position: relative;
  overflow: hidden;
  padding: 34px 10px 10px;
  border: 1px solid rgba(23, 58, 50, 0.22);
  border-radius: 26px;
  background: #efe7d8;
  box-shadow: 0 42px 90px rgba(16, 49, 42, 0.24), 0 4px 0 rgba(255, 255, 255, 0.72) inset;
  transform: rotate(1.2deg);
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.landing-v2-product:hover .landing-v2-product-frame {
  transform: rotate(0deg) translateY(-4px);
}

.landing-v2-product-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 35px;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  color: rgba(37, 61, 55, 0.58);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.landing-v2-product-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b7aa98;
}

.landing-v2-product-bar i:first-child {
  background: #c77d63;
}

.landing-v2-product-bar i:nth-child(2) {
  background: #d2a75e;
}

.landing-v2-product-bar i:nth-child(3) {
  background: #6f9b82;
}

.landing-v2-product-bar span {
  margin-left: 5px;
}

.landing-v2-product-frame > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 17px;
  object-fit: cover;
}

.landing-v2-product-frame::after {
  content: "";
  position: absolute;
  inset: 34px 10px 10px;
  border-radius: 17px;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 31, 26, 0.38));
  pointer-events: none;
}

.landing-v2-product-card {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 30px;
  display: grid;
  min-width: 204px;
  gap: 3px;
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  color: #fff9ed;
  background: rgba(13, 48, 40, 0.75);
  box-shadow: 0 16px 38px rgba(8, 27, 23, 0.24);
  backdrop-filter: blur(13px);
}

.landing-v2-product-card span {
  color: #edc583;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.landing-v2-product-card strong {
  font-family: var(--font-numeric);
  font-size: 36px;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.landing-v2-product-card small {
  color: rgba(255, 249, 237, 0.72);
  font-size: 9px;
}

.landing-v2-open-pill {
  position: absolute;
  z-index: 2;
  top: 50px;
  left: 27px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff9ed;
  background: rgba(17, 52, 44, 0.46);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.landing-v2-open-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9bd39b;
  box-shadow: 0 0 0 4px rgba(155, 211, 155, 0.14);
}

.landing-v2-product-caption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 17px 10px 0 0;
  color: #6b7974;
  font-size: 10px;
}

.landing-v2-version {
  position: absolute;
  right: 25px;
  bottom: 18px;
  color: rgba(34, 61, 54, 0.44);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.landing-v2-bridge,
.landing-v2-how,
.landing-v2-presence,
.landing-v2-offer {
  scroll-margin-top: 76px;
}

.landing-v2-bridge {
  padding: clamp(104px, 12vw, 176px) 0;
  background: #fffaf0;
}

.landing-v2-bridge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: start;
  gap: clamp(60px, 10vw, 150px);
}

.landing-v2-bridge h2,
.landing-v2-section-head h2,
.landing-v2-presence h2,
.landing-v2-offer h2,
.landing-v2-final h2 {
  font-size: clamp(42px, 4.9vw, 70px);
  line-height: 1.12;
}

.landing-v2-bridge-copy {
  padding-top: 39px;
}

.landing-v2-bridge-copy > p {
  margin: 0;
  color: #566760;
  font-size: 16px;
  line-height: 2;
}

.landing-v2-threshold {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 47px;
  padding-top: 27px;
  border-top: 1px solid var(--landing-line);
}

.landing-v2-threshold span {
  display: grid;
  gap: 7px;
  color: var(--landing-coral);
  font-family: Georgia, serif;
  font-size: 13px;
}

.landing-v2-threshold small {
  color: #364f48;
  font-family: var(--font-numeric);
  font-size: 10px;
  font-weight: 700;
}

.landing-v2-threshold i {
  color: #a2aaa5;
  font-style: normal;
  font-size: 11px;
}

.landing-v2-how {
  padding: clamp(104px, 12vw, 170px) 0;
  background: var(--landing-paper-deep);
}

.landing-v2-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: clamp(50px, 8vw, 120px);
  margin-bottom: clamp(62px, 8vw, 106px);
}

.landing-v2-section-head > p {
  margin: 0 0 7px;
  color: #5e6d67;
  font-size: 14px;
  line-height: 1.85;
}

.landing-v2-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 38px);
}

.landing-v2-steps article {
  min-width: 0;
}

.landing-v2-step-visual {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(26, 55, 47, 0.15);
}

.landing-v2-step-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.landing-v2-steps article:hover img {
  transform: scale(1.035);
}

.landing-v2-step-visual span {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff9ec;
  background: rgba(13, 47, 39, 0.55);
  backdrop-filter: blur(9px);
  font-family: Georgia, serif;
  font-size: 12px;
}

.landing-v2-steps h3 {
  margin: 25px 0 11px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 500;
}

.landing-v2-steps p {
  margin: 0;
  color: #5d6b66;
  font-size: 13px;
  line-height: 1.82;
}

.landing-v2-center-action {
  display: flex;
  justify-content: center;
  margin-top: 70px;
}

.landing-v2-presence {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(104px, 12vw, 168px) 0;
  color: #fff9ed;
  background:
    radial-gradient(circle at 82% 4%, rgba(218, 159, 86, 0.16), transparent 31%),
    radial-gradient(circle at 10% 94%, rgba(97, 150, 126, 0.13), transparent 32%),
    var(--landing-night);
}

.landing-v2-presence .landing-v2-eyebrow {
  color: #e0ad6a;
}

.landing-v2-presence-intro {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.55fr);
  align-items: end;
  gap: 70px;
}

.landing-v2-presence-intro .landing-v2-eyebrow,
.landing-v2-presence-intro h2 {
  grid-column: 1;
}

.landing-v2-presence-intro h2 {
  margin-top: -8px;
}

.landing-v2-presence-intro > p:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0 0 6px;
  color: rgba(255, 249, 237, 0.67);
  font-size: 14px;
  line-height: 1.9;
}

.landing-v2-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 78px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.landing-v2-principles article {
  min-height: 270px;
  padding: 35px 34px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.landing-v2-principles article:last-child {
  border-right: 0;
}

.landing-v2-principles article > span {
  color: #e0ad6a;
  font-family: Georgia, serif;
  font-size: 13px;
}

.landing-v2-principles h3 {
  margin: 65px 0 13px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 500;
}

.landing-v2-principles p {
  margin: 0;
  color: rgba(255, 249, 237, 0.58);
  font-size: 12px;
  line-height: 1.78;
}

.landing-v2-offer {
  padding: clamp(104px, 12vw, 170px) 0;
  background: #f8f2e8;
}

.landing-v2-offer-head {
  max-width: 850px;
}

.landing-v2-offer-head > p:last-child {
  max-width: 670px;
  margin: 27px 0 0;
  color: #5d6d67;
  font-size: 15px;
  line-height: 1.9;
}

.landing-v2-price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 67px;
}

.landing-v2-price {
  position: relative;
  display: grid;
  min-height: 290px;
  align-content: start;
  padding: 28px 25px;
  border: 1px solid var(--landing-line);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.68);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.landing-v2-price:hover {
  border-color: rgba(24, 63, 54, 0.34);
  box-shadow: 0 20px 45px rgba(24, 63, 54, 0.1);
  transform: translateY(-4px);
}

.landing-v2-price-featured {
  color: #fff9ed;
  background: var(--landing-forest);
}

.landing-v2-price > span {
  color: var(--landing-coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-v2-price-featured > span {
  color: #e8be7c;
}

.landing-v2-price > strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 22px;
  font-family: var(--font-numeric);
  font-size: 38px;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.landing-v2-price > strong small {
  color: #7c8984;
  font-size: 10px;
  letter-spacing: 0;
}

.landing-v2-price-featured > strong small {
  color: rgba(255, 249, 237, 0.55);
}

.landing-v2-price > p {
  margin: 19px 0 0;
  color: #64736d;
  font-size: 12px;
  line-height: 1.7;
}

.landing-v2-price-featured > p {
  color: rgba(255, 249, 237, 0.66);
}

.landing-v2-price > button {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 15px;
  border: 1px solid var(--landing-forest);
  border-radius: 999px;
  color: #fff9ed;
  background: var(--landing-forest);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.landing-v2-price > button i {
  font-style: normal;
}

.landing-v2-price > em {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 8px;
  border-radius: 999px;
  color: #173d34;
  background: #e8bd7b;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.landing-v2-price-note {
  max-width: 840px;
  margin: 26px auto 0;
  color: #7a8782;
  text-align: center;
  font-size: 9px;
  line-height: 1.65;
}

.landing-v2-final {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(820px, 92svh);
  place-items: center;
  overflow: hidden;
  padding: 90px 28px;
  text-align: center;
}

.landing-v2-final > img,
.landing-v2-final-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-v2-final > img {
  object-fit: cover;
  transition: transform 9s ease;
}

.landing-v2-final:hover > img {
  transform: scale(1.035);
}

.landing-v2-final-overlay {
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 27, 23, 0.36), rgba(8, 27, 23, 0.78));
}

.landing-v2-final-copy {
  width: min(860px, 100%);
  color: #fff9ed;
}

.landing-v2-final .landing-v2-eyebrow {
  color: #edc481;
}

.landing-v2-final-copy > p:not(.landing-v2-eyebrow) {
  margin: 27px auto 33px;
  color: rgba(255, 249, 237, 0.76);
  font-size: 15px;
  line-height: 1.8;
}

.landing-v2-final .landing-v2-primary {
  border-color: #e7b873;
  color: #193d34;
  background: #e7b873;
}

.landing-v2-final .landing-v2-primary:hover {
  background: #f0c888;
}

.landing-v2-footer {
  color: #fff9ed;
  background: #0b241f;
}

.landing-v2-footer .landing-v2-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  min-height: 128px;
}

.landing-v2-footer .landing-brand-mark {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff9ed;
  background: rgba(255, 255, 255, 0.06);
}

.landing-v2-footer .landing-v2-brand small,
.landing-v2-footer > .landing-v2-shell > p {
  color: rgba(255, 249, 237, 0.52);
}

.landing-v2-footer > .landing-v2-shell > p {
  margin: 0;
  font-size: 11px;
}

.landing-v2-footer .landing-v2-shell > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-v2-footer a {
  text-decoration: none;
}

.landing-v2-footer .landing-v2-shell > div a {
  color: rgba(255, 249, 237, 0.58);
  font-size: 10px;
}

.landing-v2-footer button {
  padding: 8px 0;
  border: 0;
  color: #e5b56f;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

@media (max-width: 1100px) {
  .landing-v2-hero {
    grid-template-columns: minmax(330px, 0.82fr) minmax(460px, 1.18fr);
    gap: 45px;
    padding-right: 42px;
    padding-left: 42px;
  }

  .landing-v2 h1 {
    font-size: clamp(54px, 6.8vw, 78px);
  }

  .landing-v2-product-card {
    right: 22px;
    bottom: 22px;
    min-width: 182px;
  }

  .landing-v2-price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 840px) {
  .landing-v2-shell {
    width: min(100% - 40px, 680px);
  }

  .landing-v2-nav {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 9px 20px;
  }

  .landing-v2-nav nav {
    display: none;
  }

  .landing-v2-brand small {
    display: none;
  }

  .landing-v2-hero {
    grid-template-columns: 1fr;
    gap: 60px;
    min-height: auto;
    padding: 76px 20px 92px;
  }

  .landing-v2-hero-copy {
    max-width: 680px;
    margin: 0 auto;
  }

  .landing-v2-product {
    width: min(680px, 100%);
    margin: 0 auto;
  }

  .landing-v2-product-frame {
    transform: none;
  }

  .landing-v2-product:hover .landing-v2-product-frame {
    transform: translateY(-3px);
  }

  .landing-v2-bridge-grid,
  .landing-v2-section-head,
  .landing-v2-presence-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .landing-v2-bridge-copy {
    padding-top: 0;
  }

  .landing-v2-section-head > p {
    max-width: 560px;
  }

  .landing-v2-steps {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .landing-v2-step-visual img {
    aspect-ratio: 16 / 10;
  }

  .landing-v2-steps h3 {
    margin-top: 20px;
  }

  .landing-v2-presence-intro .landing-v2-eyebrow,
  .landing-v2-presence-intro h2,
  .landing-v2-presence-intro > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .landing-v2-principles {
    grid-template-columns: 1fr;
    margin-top: 58px;
  }

  .landing-v2-principles article {
    min-height: auto;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .landing-v2-principles article:last-child {
    border-bottom: 0;
  }

  .landing-v2-principles h3 {
    margin: 24px 0 10px;
  }

  .landing-v2-footer .landing-v2-shell {
    grid-template-columns: 1fr auto;
    padding: 28px 0;
  }

  .landing-v2-footer > .landing-v2-shell > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .landing-v2-nav-cta {
    min-height: 38px;
    padding: 0 13px;
    font-size: 10px;
  }

  .landing-brand-mark {
    width: 35px;
    height: 35px;
  }

  .landing-v2-brand strong {
    font-size: 15px;
  }

  .landing-v2-hero {
    padding-top: 60px;
  }

  .landing-v2 h1 {
    font-size: clamp(49px, 14.5vw, 65px);
  }

  .landing-v2-lead {
    font-size: 16px;
  }

  .landing-v2-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .landing-v2-primary {
    width: 100%;
  }

  .landing-v2-product-frame {
    padding: 30px 6px 6px;
    border-radius: 18px;
  }

  .landing-v2-product-frame > img,
  .landing-v2-product-frame::after {
    border-radius: 12px;
  }

  .landing-v2-product-frame::after {
    inset: 30px 6px 6px;
  }

  .landing-v2-product-card {
    right: 15px;
    bottom: 15px;
    min-width: 155px;
    padding: 12px 14px;
  }

  .landing-v2-product-card strong {
    font-size: 28px;
  }

  .landing-v2-open-pill {
    top: 40px;
    left: 14px;
    max-width: calc(100% - 28px);
  }

  .landing-v2-bridge h2,
  .landing-v2-section-head h2,
  .landing-v2-presence h2,
  .landing-v2-offer h2,
  .landing-v2-final h2 {
    font-size: clamp(38px, 11.5vw, 52px);
  }

  .landing-v2-threshold {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .landing-v2-threshold i {
    display: none;
  }

  .landing-v2-price-grid {
    grid-template-columns: 1fr;
  }

  .landing-v2-price {
    min-height: 245px;
  }

  .landing-v2-final {
    min-height: 720px;
  }

  .landing-v2-final > img {
    object-position: 62% center;
  }

  .landing-v2-footer .landing-v2-shell {
    grid-template-columns: 1fr;
  }

  .landing-v2-footer > .landing-v2-shell > p {
    grid-column: 1;
    grid-row: auto;
  }
}

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

@media (max-width: 1180px) {
  .room.is-debug-layout .room-debug-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .room.is-debug-layout .room-stage {
    aspect-ratio: 1586 / 992;
  }

  .room.is-debug-layout .sprite-tuning-panel {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* Account gate and server-enforced billing entry */
.access-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(8, 27, 23, 0.72);
  backdrop-filter: blur(18px);
}

.developer-console { display: grid; gap: 20px; color: #284d42; }
.developer-console-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.developer-eyebrow { color: #8b7548; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.developer-console-heading h2 { margin: 8px 0; font-size: clamp(22px, 2.2vw, 30px); }
.developer-console p { color: #6c7e74; font-size: 13px; line-height: 1.65; }
.developer-console-heading p { margin: 0; }
.developer-console button { border: 1px solid #bfcec1; border-radius: 12px; padding: 10px 14px; color: #315e4d; background: #f8faf4; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.developer-console button:hover:not(:disabled) { background: #eaf1e5; border-color: #7c9a83; }
.developer-console button:disabled { opacity: .45; cursor: not-allowed; }
.developer-console button.is-danger { color: #a0523e; border-color: #d9b6a7; }
.developer-release-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.developer-release-grid > div { display: grid; gap: 7px; padding: 16px; border-radius: 14px; background: #eaf0e5; min-width: 0; }
.developer-release-grid span { color: #718574; font-size: 11px; }
.developer-release-grid strong { font-size: 16px; overflow-wrap: anywhere; }
.developer-rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.developer-room-card { padding: 15px; border: 1px solid #d8e0d3; border-radius: 15px; background: #fffdf7; min-width: 0; }
.developer-room-card header { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 14px; font-size: 13px; }
.developer-room-card header span { color: #74846f; font-size: 12px; white-space: nowrap; }
.developer-seat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.developer-seat { display: grid; justify-items: center; gap: 5px; padding: 10px 3px; border-radius: 10px; background: #edf3e8; color: #56714e; }
.developer-seat b { font-size: 14px; }
.developer-seat small { font-size: 9px; text-align: center; overflow-wrap: anywhere; }
.developer-seat.is-occupied { background: #dfd8c8; color: #6e614c; }
.developer-seat.is-reserved, .developer-seat.is-moving { background: #f5e7c6; color: #9b7633; }
.developer-seat.is-unknown { background: #eeede7; color: #95988f; }
.developer-seat.is-mine { outline: 2px solid #577d5a; outline-offset: -2px; }
.developer-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.developer-console .profile-settings-card { margin: 0; min-width: 0; }
.developer-status-grid { display: grid; gap: 12px; margin: 20px 0; }
.developer-status-grid > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.developer-status-grid dt { color: #7b877a; }
.developer-status-grid dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.developer-session-card { display: grid; gap: 8px; padding: 14px; margin: 14px 0; background: #eff2e7; border-radius: 12px; font-size: 12px; }
.developer-session-card time, .developer-session-card span, .developer-session-card code { color: #788472; }
.developer-session-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.developer-empty { padding: 16px; border: 1px dashed #c6d3bd; border-radius: 12px; }
.developer-message { margin: 0; padding: 12px 16px; border-radius: 12px; }
.developer-message.is-error { background: #f9e9df; color: #9a573e; }
.developer-checked { font-variant-numeric: tabular-nums; }
.developer-raw { border: 1px solid #d9e0d3; border-radius: 14px; padding: 16px; font-size: 12px; }
.developer-raw summary { cursor: pointer; font-weight: 700; }
.developer-raw pre { margin: 16px 0 0; max-height: 300px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .developer-rooms { grid-template-columns: 1fr; }
  .developer-seat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .developer-details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .developer-console-heading { flex-direction: column; }
  .developer-release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .developer-console .profile-data-action { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.access-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  color: #183a32;
  background: linear-gradient(145deg, rgba(255,255,250,.98), rgba(235,244,232,.98));
  box-shadow: 0 30px 90px rgba(0, 24, 18, 0.42);
}

.access-dialog h2 { margin: 6px 0 12px; font-size: clamp(26px, 4vw, 38px); line-height: 1.08; }
.access-dialog > p:not(.access-eyebrow):not(.access-error) { color: #587168; line-height: 1.65; }
.access-eyebrow { margin: 0; color: #8b6c35; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.access-close { position: absolute; top: 15px; right: 17px; border: 0; background: transparent; color: #47645b; font-size: 28px; cursor: pointer; }
.access-dialog form { display: grid; gap: 16px; margin-top: 24px; }
.access-dialog label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.access-dialog input { width: 100%; box-sizing: border-box; border: 1px solid #bdcec7; border-radius: 12px; padding: 13px 14px; color: #153a31; background: rgba(255,255,255,.82); font: inherit; }
.access-dialog .primary-button { width: 100%; margin-top: 2px; }
.access-error { margin: 0; color: #a14535; font-size: 13px; }
.access-link { display: block; margin: 16px auto 0; border: 0; color: #315e50; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.access-link.muted { margin-top: 8px; color: #71877f; font-size: 13px; }

.paywall-dialog { width: min(880px, 100%); }
.paywall-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 18px; }
.paywall-plans button { position: relative; display: grid; gap: 7px; min-height: 170px; padding: 24px 18px; border: 1px solid #bfd0c7; border-radius: 20px; text-align: left; color: #183a32; background: rgba(255,255,255,.72); cursor: pointer; }
.paywall-plans button:hover { transform: translateY(-2px); border-color: #648c7c; box-shadow: 0 12px 28px rgba(30,76,62,.12); }
.paywall-plans button.recommended { border: 2px solid #476f5f; background: #f7f3df; }
.paywall-plans em { position: absolute; top: -11px; right: 15px; padding: 4px 10px; border-radius: 999px; color: white; background: #476f5f; font-size: 11px; font-style: normal; }
.paywall-plans small, .paywall-plans span { color: #6b8078; }
.paywall-plans strong { font-size: 21px; }
.paywall-plans strong b { color: #6b8078; font-size: 12px; font-weight: 600; }
.paywall-plans .is-loading { opacity: .58; cursor: wait; }
.access-fineprint { font-size: 12px; }

@media (max-width: 720px) {
  .access-dialog { padding: 30px 22px; }
  .paywall-plans { grid-template-columns: 1fr; }
  .paywall-plans button { min-height: 112px; }
  .profile-developer-layout { grid-template-columns: 1fr; }
}
