:root {
  --void: #0c0d10;
  --bone: #f3efe6;
  --brass: #c9a36a;
  --glass: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);

  --plaster: #c2bbb0;
  --plaster-deep: #a59d91;
  --ink-wood: #3a322c;
  --oak: #6d5646;
  --oak-lite: #8a6f5a;
  --verdigris: #4a6b62;
  --lamp-oil: #e8a04a;

  --sky-top: #6aa3c8;
  --sky-bot: #f0d4a0;
  --ambience: #e0c8a4;
  --sun-x: 72%;
  --sun-y: 28%;
  --moon-x: 22%;
  --moon-y: 24%;
  --sun-size: 36px;
  --moon-opacity: 0;
  --star-opacity: 0;
  --cloud-opacity: 0.28;
  --city-fill: #2a3038;
  --beam-opacity: 0.22;
  --wash-opacity: 0.32;
  --curtain-open: 0.72;
  --lamp-on: 0;
  --plant-fresh: 0;
  --halo: #6aa3c8;

  --room-w: 440px;
  --room-h: 600px;
  --scale: 1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Segoe UI", "Yu Gothic UI", sans-serif;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(201, 163, 106, 0.85);
  outline-offset: 3px;
}

.theater {
  width: 100%;
  height: var(--shell-h, 100dvh);
  max-width: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  background:
    radial-gradient(80% 56% at 50% 38%, color-mix(in srgb, var(--halo) 26%, var(--void)), var(--void) 72%);
  transition: background 1s var(--ease);
}

.topbar,
.dock,
.caption {
  position: relative;
  z-index: 4;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding-top: max(10px, env(safe-area-inset-top));
}

.brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
}

.live-time {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  opacity: 0.42;
}

.theater.is-playing .live-time {
  opacity: 0.82;
}

.stage {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1 1 auto;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
}

.room-slot {
  width: calc(var(--room-w) * var(--scale));
  height: calc(var(--room-h) * var(--scale));
  position: relative;
  flex: 0 0 auto;
}

.room-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--room-w);
  height: var(--room-h);
  transform: translate(-50%, -50%) scale(var(--scale));
  transform-origin: center center;
}

.room-halo::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  background: var(--halo);
  filter: blur(52px);
  opacity: 0.32;
  z-index: -1;
  pointer-events: none;
}

.room {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--plaster);
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 28px 80px rgba(0, 0, 0, 0.42);
}

.ceiling {
  height: 42px;
  background: linear-gradient(180deg, #9a9288, var(--plaster-deep));
  box-shadow: inset 0 -8px 14px rgba(40, 32, 24, 0.14);
}

.wall {
  position: relative;
  height: 430px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 30%),
    var(--plaster);
}

.picture {
  position: absolute;
  top: 48px;
  left: 24px;
  width: 42px;
  height: 54px;
  padding: 4px;
  background: #2c2622;
  border-radius: 2px;
  box-shadow: 0 6px 14px rgba(40, 30, 24, 0.16);
}

.picture__sea,
.picture__hill {
  display: block;
  width: 100%;
  height: 100%;
}

.picture__sea {
  background: linear-gradient(180deg, #6d8b94 0 42%, #c4b08a 42%);
}

.picture__hill {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 20px;
  background: #5a6a58;
  clip-path: polygon(0 100%, 0 55%, 40% 20%, 70% 48%, 100% 30%, 100% 100%);
}

.clock {
  position: absolute;
  top: 42px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.clock__face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbf7ee, #ddd3c4 72%);
  box-shadow:
    0 0 0 2px #2a2420,
    0 0 0 3.5px #8a7664,
    0 8px 16px rgba(30, 22, 16, 0.18);
}

.clock__tick {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -1deg,
    #2a2420 0 2deg,
    transparent 2deg 30deg
  );
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%);
  mask: radial-gradient(circle, transparent 64%, #000 65%);
}

.clock__hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: bottom center;
  background: #2a2420;
  border-radius: 2px;
  transition: none;
}

.clock__hand--hour {
  width: 2.5px;
  height: 13px;
  margin-left: -1.25px;
}

.clock__hand--minute {
  width: 1.5px;
  height: 17px;
  margin-left: -0.75px;
  opacity: 0.62;
}

.clock__pivot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #8a3030;
}

.theater.is-playing .clock__face {
  box-shadow:
    0 0 0 2px #2a2420,
    0 0 0 3.5px #8a7664,
    0 0 0 6px rgba(201, 163, 106, 0.28);
}

.window {
  position: absolute;
  left: 70px;
  top: 28px;
  width: 300px;
  height: 348px;
}

.window__frame {
  position: absolute;
  inset: 0 0 22px;
  background: var(--ink-wood);
  padding: 9px;
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 3px var(--oak),
    0 14px 24px rgba(40, 30, 22, 0.14);
}

.sky {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bot));
  border-radius: 1px;
}

.stars {
  position: absolute;
  inset: 0;
  opacity: var(--star-opacity);
  background-image:
    radial-gradient(1px 1px at 12% 20%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 28% 38%, #f0e8d0, transparent),
    radial-gradient(1px 1px at 46% 14%, #fff, transparent),
    radial-gradient(1px 1px at 63% 30%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 78% 18%, #f6e6c0, transparent),
    radial-gradient(1px 1px at 88% 42%, #fff, transparent),
    radial-gradient(1px 1px at 20% 60%, #fff, transparent),
    radial-gradient(1px 1px at 70% 55%, #fff, transparent);
}

.sun,
.moon {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sun {
  width: var(--sun-size);
  height: var(--sun-size);
  left: var(--sun-x);
  top: var(--sun-y);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 35%, #fff6d2, #f0c14a 55%, #e08a2a);
  box-shadow: 0 0 28px 8px rgba(255, 200, 110, 0.45);
}

.moon {
  width: 22px;
  height: 22px;
  left: var(--moon-x);
  top: var(--moon-y);
  transform: translate(-50%, -50%);
  opacity: var(--moon-opacity);
  background: radial-gradient(circle at 34% 32%, #f4f0e2, #c8c4b4);
  box-shadow: 0 0 16px 4px rgba(220, 220, 240, 0.25);
}

.clouds {
  position: absolute;
  inset: 0;
  opacity: var(--cloud-opacity);
  background:
    radial-gradient(30px 16px at 18% 28%, #e8e4de, transparent),
    radial-gradient(36px 18px at 28% 30%, #ddd8d2, transparent),
    radial-gradient(28px 14px at 70% 22%, #e6e2dc, transparent),
    radial-gradient(40px 18px at 82% 26%, #d8d4ce, transparent),
    radial-gradient(34px 16px at 48% 18%, #ece8e2, transparent);
  animation: drift 56s linear infinite;
}

.room.is-storm .clouds {
  background:
    radial-gradient(34px 18px at 20% 24%, #8a9098, transparent),
    radial-gradient(44px 20px at 40% 20%, #6e7680, transparent),
    radial-gradient(40px 18px at 72% 16%, #7a828c, transparent);
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-20px); }
}

.birds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bird {
  position: absolute;
  width: 10px;
  height: 4px;
  border: 1.4px solid rgba(30, 28, 26, 0.5);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  animation: flock 16s linear infinite;
}

@keyframes flock {
  0% { transform: translate(-20px, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(280px, -16px); opacity: 0; }
}

.city {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
}

.city svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--city-fill);
}

.city__windows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.city-lite {
  position: absolute;
  width: 3px;
  height: 4px;
  background: #e8c46a;
  opacity: 0;
  box-shadow: 0 0 4px #e8c46a;
}

.city-lite.is-on {
  opacity: 0.85;
}

.glass-fx {
  position: absolute;
  inset: 9px 9px 31px;
  width: calc(100% - 18px);
  height: calc(100% - 40px);
  pointer-events: none;
}

.glass-sheen {
  position: absolute;
  inset: 9px 9px 31px;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.18),
    transparent 26%,
    transparent 62%,
    rgba(255, 255, 255, 0.05)
  );
  pointer-events: none;
}

.sash {
  position: absolute;
  inset: 9px 9px 31px;
  background:
    linear-gradient(var(--oak), var(--oak)) center / 5px 100% no-repeat,
    linear-gradient(var(--oak), var(--oak)) 50% 42% / 100% 5px no-repeat;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.88;
}

.flash {
  position: absolute;
  inset: 9px 9px 31px;
  background: #e8eef8;
  opacity: 0;
  pointer-events: none;
}

.flash.is-on {
  animation: lightning 0.45s steps(2);
}

@keyframes lightning {
  0%,
  100% { opacity: 0; }
  10% { opacity: 0.78; }
  20% { opacity: 0.1; }
  35% { opacity: 0.55; }
}

.curtain {
  position: absolute;
  top: 0;
  bottom: 18px;
  width: calc(14% + (1 - var(--curtain-open)) * 36%);
  background: repeating-linear-gradient(
    90deg,
    #53465e 0 6px,
    #3f354c 6px 9px,
    #5d4e68 9px 15px
  );
  box-shadow: inset 0 9px 0 var(--oak);
  z-index: 3;
  touch-action: none;
  cursor: ew-resize;
}

.room:not(.is-dragging) .curtain {
  transition: width 0.45s var(--ease);
}

.curtain--left {
  left: 0;
}

.curtain--right {
  right: 0;
}

.curtain__fold {
  position: absolute;
  inset: 12px 0 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.16),
    transparent 40%,
    rgba(255, 255, 255, 0.05),
    rgba(0, 0, 0, 0.18)
  );
  pointer-events: none;
}

.sill {
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0;
  height: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 16px;
  background: linear-gradient(180deg, var(--oak-lite), var(--ink-wood));
  z-index: 4;
  border-radius: 0 0 2px 2px;
  box-shadow: 0 8px 16px rgba(40, 30, 22, 0.16);
}

.plant,
.mug,
.radio,
.lamp,
.clock {
  transition: transform 0.28s var(--ease);
}

.plant:active,
.mug:active,
.radio:active,
.lamp:active,
.clock:active {
  transform: scale(0.96);
}

.plant,
.mug,
.radio {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  margin-bottom: 10px;
}

.plant__pot {
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 22px;
  height: 16px;
  background: #8a4a3a;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}

.plant__leaf {
  position: absolute;
  background: color-mix(in srgb, var(--verdigris) 80%, #9fd0a0 calc(var(--plant-fresh) * 100%));
  border-radius: 60% 10% 60% 10%;
  transform-origin: bottom center;
}

.plant__leaf--a {
  width: 18px;
  height: 22px;
  left: 8px;
  bottom: 12px;
  transform: rotate(-28deg);
}

.plant__leaf--b {
  width: 16px;
  height: 24px;
  left: 16px;
  bottom: 14px;
  transform: rotate(8deg);
}

.plant__leaf--c {
  width: 15px;
  height: 18px;
  left: 22px;
  bottom: 12px;
  transform: rotate(32deg);
}

.plant.is-fresh .plant__leaf {
  animation: sway 2.4s ease-in-out 2;
}

@keyframes sway {
  50% { transform: rotate(calc(var(--r, 0deg) - 8deg)); }
}

.plant__drops::before,
.plant__drops::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 28px;
  width: 4px;
  height: 6px;
  border-radius: 40% 40% 50% 50%;
  background: #8ec4d8;
  opacity: 0;
}

.plant.is-fresh .plant__drops::before,
.plant.is-fresh .plant__drops::after {
  animation: drip 1.1s ease-in 2;
}

.plant.is-fresh .plant__drops::after {
  left: 26px;
  animation-delay: 0.2s;
}

@keyframes drip {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

.mug__body {
  position: absolute;
  left: 10px;
  bottom: 0;
  width: 18px;
  height: 20px;
  background: #efe6da;
  border-radius: 2px 2px 5px 5px;
  box-shadow: inset 0 3px 0 #c8b8a4;
}

.mug__handle {
  position: absolute;
  left: 26px;
  bottom: 6px;
  width: 8px;
  height: 10px;
  border: 2px solid #c8b8a4;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.mug__steam,
.mug__steam::before,
.mug__steam::after {
  position: absolute;
  left: 16px;
  bottom: 22px;
  width: 3px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  opacity: 0;
  filter: blur(1px);
}

.mug.is-hot .mug__steam,
.mug.is-hot .mug__steam::before,
.mug.is-hot .mug__steam::after {
  opacity: 1;
  animation: steam 2s ease-in-out infinite;
}

.mug__steam::before {
  content: "";
  left: -6px;
  animation-delay: 0.4s;
}

.mug__steam::after {
  content: "";
  left: 6px;
  animation-delay: 0.8s;
}

@keyframes steam {
  0% { transform: translateY(4px) scaleX(1); opacity: 0; }
  40% { opacity: 0.55; }
  100% { transform: translateY(-16px) scaleX(1.6); opacity: 0; }
}

.radio__body {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 28px;
  background: linear-gradient(180deg, #6a4a36, #3e2c22);
  border-radius: 3px;
  box-shadow: 0 4px 8px rgba(20, 12, 8, 0.2);
}

.radio__grille {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 22px;
  height: 18px;
  background: repeating-radial-gradient(circle at 50% 50%, #1c1612 0 1px, #3a2c24 1px 3px);
  border-radius: 2px;
}

.radio.is-on .radio__grille {
  animation: pulse 0.9s ease-in-out infinite;
}

@keyframes pulse {
  50% { filter: brightness(1.35); }
}

.radio__dial {
  position: absolute;
  right: 6px;
  top: 5px;
  width: 16px;
  height: 10px;
  background: #1a1814;
  color: #c8e0a0;
  font-size: 6px;
  line-height: 10px;
  text-align: center;
  font-family: var(--serif);
}

.radio__knob {
  position: absolute;
  right: 9px;
  bottom: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: conic-gradient(#d8c4a0, #6a5344, #d8c4a0);
}

.radio__led {
  position: absolute;
  left: 28px;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3a2018;
}

.radio.is-on .radio__led {
  background: #e05030;
  box-shadow: 0 0 6px #e05030;
}

.lamp {
  position: absolute;
  right: 28px;
  bottom: 8px;
  width: 44px;
  height: 92px;
  z-index: 5;
}

.lamp__shade {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 40px;
  height: 22px;
  background: #9a7a52;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 4px 0 rgba(255, 230, 180, 0.12);
}

.room.is-lit .lamp__shade {
  background: #f0c878;
}

.lamp__stem {
  position: absolute;
  left: 20px;
  top: 28px;
  width: 4px;
  height: 46px;
  background: #8a7358;
}

.lamp__base {
  position: absolute;
  left: 10px;
  bottom: 0;
  width: 24px;
  height: 8px;
  background: #5a4638;
  border-radius: 50%;
}

.lamp__cord {
  position: absolute;
  left: 28px;
  top: 30px;
  width: 10px;
  height: 18px;
  border-right: 1.5px solid #2c241c;
  border-bottom: 1.5px solid #2c241c;
  border-radius: 0 0 8px 0;
}

.lamp-glow {
  position: absolute;
  right: -10px;
  bottom: 20px;
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(232, 160, 74, calc(0.55 * var(--lamp-on))) 0%,
    transparent 62%
  );
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 4;
}

.floor {
  position: relative;
  height: 128px;
  overflow: hidden;
  background: #534338;
}

.boards {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 0;
  height: 220%;
  transform: perspective(320px) rotateX(62deg);
  transform-origin: top center;
  background: repeating-linear-gradient(
    90deg,
    #6e5644 0 28px,
    #5a4636 28px 30px,
    #7a5e4a 30px 58px,
    #4e3c30 58px 60px
  );
}

.sunbeam {
  position: absolute;
  left: 90px;
  top: -20px;
  width: 220px;
  height: 160px;
  background: linear-gradient(
    180deg,
    rgba(255, 230, 170, calc(var(--beam-opacity))),
    transparent 70%
  );
  clip-path: polygon(18% 0, 78% 0, 98% 100%, 0 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.shadows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(20, 14, 10, 0.16),
    transparent 40%,
    rgba(20, 14, 10, 0.1)
  );
}

.light-wash {
  position: absolute;
  inset: 0;
  background: var(--ambience);
  mix-blend-mode: multiply;
  opacity: var(--wash-opacity);
  pointer-events: none;
  z-index: 6;
}

.caption {
  flex: 0 0 auto;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 16px;
}

.hour-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  line-height: 1.15;
}

.dock {
  position: relative;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.dock__glass {
  width: min(560px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 14px 16px 16px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px) saturate(1.2);
}

.time-control {
  display: grid;
  gap: 8px;
}

.time-control__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.4;
}

.play-hint {
  letter-spacing: 0.14em;
  color: var(--brass);
  opacity: 1;
}

.time-control input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 99px;
  outline: none;
  background: linear-gradient(
    90deg,
    #1a2030 0%,
    #e07a6a 16%,
    #f0d2a0 34%,
    #6aa8d4 52%,
    #e08a58 76%,
    #1c1828 100%
  );
}

.time-control input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 4px 10px rgba(0, 0, 0, 0.28);
}

.time-control input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.time-marks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.28;
}

.weather-set {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.weather-set__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.42s var(--ease);
  pointer-events: none;
}

.weather-set button {
  position: relative;
  z-index: 1;
  min-height: 38px;
  letter-spacing: 0.1em;
  font-size: 13px;
  opacity: 0.4;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.weather-set button.is-on {
  opacity: 1;
}

.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 2px);
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.hint.is-on {
  opacity: 0.38;
  transform: none;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(8, 9, 12, 0.38);
  backdrop-filter: blur(28px) saturate(1.15);
  transition: opacity 0.7s var(--ease);
}

.intro.is-gone {
  pointer-events: none;
  opacity: 0;
}

.intro__content {
  text-align: center;
  padding: 0 28px;
}

.intro__brand {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
}

.intro__content button {
  min-height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  letter-spacing: 0.16em;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.intro__content button:hover {
  transform: scale(1.03);
}

.intro__content button:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  .topbar,
  .dock,
  .caption {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .topbar {
    min-height: 40px;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .brand {
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    font-size: 14px;
  }

  .caption {
    padding-top: 2px;
    padding-bottom: 6px;
  }

  .hour-name {
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    font-size: 1.2rem;
  }

  .dock {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .dock__glass {
    width: 100%;
    border-radius: 18px;
    gap: 8px;
    padding: 10px 10px 12px;
  }

  .time-control {
    gap: 6px;
  }

  .time-marks {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .weather-set button {
    min-height: 40px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .intro__brand {
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    font-size: 2.2rem;
  }
}

@media (max-width: 380px) {
  .weather-set button {
    font-size: 11px;
    min-height: 36px;
  }

  .hour-name {
    font-size: 1.05rem;
  }
}

@media (max-height: 540px) {
  .caption {
    padding-top: 0;
    padding-bottom: 4px;
  }

  .hour-name {
    font-size: 1rem;
  }

  .time-marks {
    display: none;
  }

  .dock__glass {
    gap: 6px;
    padding: 8px 10px 10px;
  }

  .weather-set button {
    min-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clouds,
  .bird,
  .plant__leaf,
  .mug__steam,
  .radio__grille,
  .flash {
    animation: none !important;
  }

  .curtain,
  .weather-set__thumb,
  .intro,
  .hint,
  .intro__content button {
    transition: none !important;
  }
}
