/* 把今天洗掉 · 夜间洗衣房 */

:root {
  --night: #07080c;
  --room: #16130f;
  --wall: #221e18;
  --wall-deep: #191611;
  --floor: #1a1612;
  --amber: #d4a056;
  --amber-dim: #a67c3d;
  --fluor: #f0e6cc;
  --fluor-glow: rgba(240, 230, 204, 0.55);
  --text: #efe6d6;
  --muted: #9a8f80;
  --glass: rgba(160, 190, 210, 0.08);
  --shadow: rgba(0, 0, 0, 0.55);
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "Songti TC", serif;
  --sans: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "Noto Sans Mono CJK SC", "Sarasa Mono SC", "Microsoft YaHei", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--night); color: var(--text); font-family: var(--sans); }
body { overflow: hidden; -webkit-font-smoothing: antialiased; }

button, input { font-family: inherit; }

#grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}
.rain-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.door-world .rain-layer { z-index: 1; }
.door-awning { z-index: 3; }
.outside .rain-layer { z-index: 2; }
.city, .streetlamp, .wet-street { z-index: 3; position: absolute; }
#grain {
  z-index: 41;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.82  0 0 0 0 0.7  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1%, 1%); }
  50% { transform: translate(1%, -1%); }
  75% { transform: translate(-1%, 0); }
  100% { transform: translate(0, 1%); }
}

.view {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
  z-index: 1;
}
.view.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transition: opacity 0.8s ease, visibility 0s linear 0s;
}
html.preview .view { transition: none !important; }
html.preview #door { display: none !important; }

/* ========== DOOR ========== */
#door { background: #05060a; }
.door-world {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #1a2230 0%, transparent 55%),
    linear-gradient(#08090e, #05060a 70%);
}
.door-street {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  background:
    linear-gradient(180deg, transparent, rgba(20, 24, 32, 0.9) 20%, #0c0d12),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,0.015) 40px 42px);
}
.door-street::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%; bottom: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,160,86,0.25), transparent);
  filter: blur(2px);
}
.door-glass {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: min(420px, 78vw);
  height: 72vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015) 40%, rgba(0,0,0,0.2)),
    linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.07) 46%, transparent 52%),
    rgba(18, 22, 28, 0.35);
  border: 1px solid rgba(200, 210, 220, 0.18);
  box-shadow:
    0 0 0 14px #1a1c22,
    0 0 0 16px rgba(255,255,255,0.06),
    0 40px 80px rgba(0,0,0,0.6);
  overflow: hidden;
  backdrop-filter: blur(1px);
}
.door-glow {
  position: absolute;
  inset: 18% 10% 28%;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(212,160,86,0.35), transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(240,230,204,0.18), transparent 50%);
  filter: blur(8px);
}
.door-lettering {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}
.door-hours {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--muted);
  text-transform: uppercase;
}
.door-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  margin: 18px 0 10px;
  color: var(--text);
  text-shadow: 0 0 24px rgba(212,160,86,0.35);
}
.door-sub {
  font-size: 14px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: #c7b79a;
}
.door-handle {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 86px;
  border-radius: 6px;
  background: linear-gradient(90deg, #8a7a62, #d9c39a, #8a7a62);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.door-condense {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05), transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04), transparent 20%);
  pointer-events: none;
}
.door-frame { pointer-events: none; }
.door-awning {
  position: absolute;
  left: 50%;
  top: 6%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  color: #c9b58a;
  z-index: 3;
  text-shadow: 0 2px 10px #000;
}
.enter-btn {
  position: absolute;
  left: 50%;
  bottom: 6vh;
  transform: translateX(-50%);
  z-index: 5;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  padding: 12px 8px;
}
.enter-btn span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--muted);
}
.enter-btn:hover { color: var(--amber); }
.enter-btn:focus-visible { outline: 1px solid var(--amber); outline-offset: 6px; }

body.is-entering .door-lettering,
body.is-entering .enter-btn,
body.is-entering .door-awning {
  opacity: 0;
  transition: opacity 0.35s ease;
}
body.is-entering .door-glass {
  transform: translateX(-42%) perspective(800px) rotateY(-28deg);
  transform-origin: left center;
  transition: transform 1.1s ease;
  opacity: 0.35;
}

/* ========== ROOM ========== */
#room { background: var(--room); }
.world {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(240,230,204,0.14), transparent 50%),
    linear-gradient(180deg, #1c1914 0%, #141210 40%, #100e0c 100%);
}

.ceiling { position: absolute; inset: 0 0 auto; height: 16%; pointer-events: none; }
.tube {
  position: absolute;
  top: 4%;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8e6, #d9c89a);
  box-shadow:
    0 0 16px 4px var(--fluor-glow),
    0 20px 80px 20px rgba(240,230,204,0.12);
  animation: flicker 7s ease-in-out infinite;
}
.tube-a { left: 10%; width: 34%; }
.tube-b { right: 10%; width: 30%; animation-delay: -3s; }
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.82; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
}
.pendant {
  position: absolute;
  top: 0;
  width: 2px;
  height: 70px;
  background: #2a261f;
}
.pendant::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 22px;
  border-radius: 4px 4px 10px 10px;
  background: radial-gradient(circle at 50% 100%, #ffe9b0, #c4893a 70%);
  box-shadow: 0 12px 40px 8px rgba(212,160,86,0.35);
}
.p-left { left: 22%; }
.p-right { right: 24%; }

.outside {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 5%;
  height: 40%;
  background:
    linear-gradient(180deg, #0b1018 0%, #121824 55%, #1a2230 100%);
  overflow: hidden;
}
.city { position: absolute; inset: 0; }
.city::before,
.city::after {
  content: "";
  position: absolute;
  bottom: 18%;
  background: #0a0c12;
}
.city::before {
  left: 4%;
  width: 28%;
  height: 42%;
  clip-path: polygon(0 20%, 18% 10%, 18% 0, 40% 0, 40% 8%, 100% 8%, 100% 100%, 0 100%);
}
.city::after {
  right: 6%;
  width: 36%;
  height: 52%;
  clip-path: polygon(0 16%, 30% 16%, 30% 0, 62% 0, 62% 12%, 100% 12%, 100% 100%, 0 100%);
}
.win {
  position: absolute;
  width: 7px;
  height: 10px;
  background: #e8c078;
  box-shadow: 0 0 8px #e8c078;
  opacity: 0.75;
}
.win.dim { background: #8aa0b0; box-shadow: none; opacity: 0.35; }
.streetlamp {
  position: absolute;
  left: 18%;
  bottom: 10%;
  width: 3px;
  height: 38%;
  background: #1c1e24;
}
.streetlamp::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -10px;
  width: 28px;
  height: 10px;
  background: #2a2c32;
}
.streetlamp::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.45), transparent 70%);
  filter: blur(4px);
}
.wet-street {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 20%;
  background:
    linear-gradient(180deg, transparent, rgba(8,10,16,0.95)),
    linear-gradient(90deg, transparent, rgba(255,214,140,0.08) 18%, transparent 30%);
}

.window {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 4%;
  height: 41%;
  border: 10px solid #2a261f;
  box-shadow:
    inset 0 0 0 2px #3a342c,
    0 0 0 1px #15130f;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(180deg, rgba(180,210,230,0.05), rgba(180,210,230,0.02));
}
.muntins {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 4px), #2a261f calc(50% - 4px) calc(50% + 4px), transparent calc(50% + 4px)),
    linear-gradient(180deg, transparent calc(55% - 4px), #2a261f calc(55% - 4px) calc(55% + 4px), transparent calc(55% + 4px));
}
.sill {
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: -16px;
  height: 16px;
  background: linear-gradient(180deg, #3a342c, #241f19);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  z-index: 4;
}
.plant {
  position: absolute;
  right: 14%;
  bottom: 8px;
  width: 22px;
  height: 28px;
  background:
    radial-gradient(ellipse at 50% 80%, #2f4a32 40%, transparent 41%),
    radial-gradient(circle at 30% 30%, #3d5c3e 20%, transparent 21%),
    radial-gradient(circle at 70% 20%, #4a6a48 18%, transparent 19%);
}
.plant::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 10px;
  transform: translateX(-50%);
  background: #6a3b2a;
  border-radius: 0 0 3px 3px;
}
.cup {
  position: absolute;
  left: 16%;
  bottom: 8px;
  width: 12px;
  height: 10px;
  border-radius: 0 0 6px 6px;
  background: #cfc3ae;
  opacity: 0.8;
}

.wall-sign {
  position: absolute;
  left: 50%;
  top: 46.5%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 6;
  pointer-events: none;
}
.wall-sign h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: #e8dcc6;
  text-shadow: 0 2px 0 #000, 0 0 20px rgba(212,160,86,0.2);
}
.wall-hours {
  font-size: 10px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: #8a8070;
  margin-bottom: 6px;
}
.wall-clock {
  position: absolute;
  right: 11%;
  top: 47.2%;
  transform: none;
  z-index: 6;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #c8b598;
  background: #14110e;
  border: 1px solid #3a342c;
  padding: 4px 9px 5px;
  box-shadow: 0 0 12px rgba(212,160,86,0.12);
}

.back-wall {
  position: absolute;
  left: 0; right: 0;
  top: 44%;
  height: 14%;
  background:
    linear-gradient(180deg, #1d1a16, #181510);
  box-shadow: inset 0 20px 30px rgba(0,0,0,0.25);
}

.machines {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 13%;
  height: 30%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 28px);
  z-index: 5;
}

.machine {
  position: relative;
  width: min(180px, 20vw);
  height: 100%;
  background:
    linear-gradient(180deg, #2b2722 0%, #1f1c18 40%, #171410 100%);
  border-radius: 10px 10px 6px 6px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 18px 30px rgba(0,0,0,0.45);
  border: 1px solid #3a342c;
  cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.machine:hover,
.machine:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 22px 36px rgba(0,0,0,0.5),
    0 0 0 1px rgba(212,160,86,0.35);
  outline: none;
}
.machine.is-yours {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 22px 40px rgba(0,0,0,0.5),
    0 0 28px rgba(212,160,86,0.28);
}
.machine.is-busy { cursor: default; }
.machine.is-busy:hover { transform: none; }

.m-top {
  height: 16%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid #2f2a24;
}
.m-id {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #8a8070;
}
.m-panel {
  display: flex;
  gap: 4px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a342c;
}
.machine.is-running .dot:nth-child(2) {
  background: #7dffb0;
  box-shadow: 0 0 6px #7dffb0;
}
.machine.is-yours.is-running .dot:nth-child(2) {
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}
.m-status {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #7a7468;
  width: 100%;
  text-align: center;
  position: absolute;
  top: 16%;
}

.porthole {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #090806;
  box-shadow:
    0 0 0 7px #2a261f,
    0 0 0 9px #4a4338,
    0 0 0 11px #1a1713,
    inset 0 8px 16px rgba(0,0,0,0.8);
  overflow: hidden;
}
.porthole .glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.16) 0%, transparent 32%, transparent 62%, rgba(255,255,255,0.05) 100%);
  z-index: 3;
  pointer-events: none;
}
.drum {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1c2228, #07080a 70%);
}
.water {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), var(--water, #6ea0c4));
  opacity: 0.75;
  transition: height 1.2s ease, background 0.8s ease;
  z-index: 1;
}
.machine.is-running .water { height: 62%; }
.machine.is-spinning .water { height: 18%; }
.machine.is-done .water { height: 0; }
.clothes {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
}
.machine.is-running .clothes,
.machine.is-occupied .clothes { opacity: 1; }
.cloth {
  position: absolute;
  width: 28%;
  height: 18%;
  border-radius: 40% 60% 50% 50%;
  filter: blur(0.4px);
}
.cloth.c1 { left: 30%; top: 40%; background: #5c4a3a; }
.cloth.c2 { left: 46%; top: 48%; background: #2a3a4a; width: 22%; }
.cloth.c3 { left: 34%; top: 52%; background: #6a5a4e; width: 24%; height: 14%; }
.machine.is-running .clothes { animation: tumble 2.8s linear infinite; }
.machine.is-spinning .clothes { animation: tumble 0.55s linear infinite; }
@keyframes tumble {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.bubbles { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
.machine.is-running .bubbles { opacity: 0.7; }
.bubbles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  animation: rise 3s ease-in infinite;
}
.bubbles span:nth-child(1) { left: 30%; bottom: 20%; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 50%; bottom: 16%; width: 3px; height: 3px; animation-delay: 0.8s; }
.bubbles span:nth-child(3) { left: 62%; bottom: 24%; animation-delay: 1.4s; }
.bubbles span:nth-child(4) { left: 40%; bottom: 10%; width: 4px; height: 4px; animation-delay: 2s; }
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 0.7; }
  100% { transform: translateY(-40px); opacity: 0; }
}

.m-door-seal {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 7px #2a261f;
  pointer-events: none;
}

.floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 13%;
  background:
    repeating-linear-gradient(90deg, #171410 0 48px, #1c1814 48px 50px),
    linear-gradient(180deg, #1a1612, #120f0c);
  box-shadow: inset 0 16px 24px rgba(0,0,0,0.35);
  z-index: 4;
}
.floor-shine {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(240,230,204,0.12), transparent);
  filter: blur(6px);
}

.bench {
  position: absolute;
  left: 2.5%;
  bottom: 3.2%;
  width: 13%;
  height: 5.5%;
  background: linear-gradient(180deg, #4a3a2a, #2a2018);
  border-radius: 2px;
  z-index: 6;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.bench::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -28%;
  height: 28%;
  background: #1a1510;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}
.jacket {
  position: absolute;
  right: 18%;
  top: -18px;
  width: 34px;
  height: 22px;
  background: #2c3a4a;
  border-radius: 10px 10px 4px 4px;
  opacity: 0.9;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.basket {
  position: absolute;
  right: 12%;
  bottom: 12%;
  width: 44px;
  height: 28px;
  border: 3px solid #6a5a44;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  z-index: 6;
  opacity: 0.7;
}
.basket::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: -6px;
  height: 10px;
  background: #4a3a32;
  border-radius: 3px;
}

.hud {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 20;
  gap: 16px;
  pointer-events: none;
}
.hint {
  font-family: var(--serif);
  font-size: clamp(13px, 1.7vw, 16px);
  letter-spacing: 0.08em;
  color: #d9ccb6;
  max-width: 70ch;
  text-shadow: 0 2px 10px #000;
  line-height: 1.7;
}
.mute-btn {
  pointer-events: auto;
  background: rgba(12,10,8,0.55);
  border: 1px solid rgba(232,220,198,0.2);
  color: #d9ccb6;
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 8px 12px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.mute-btn:hover { border-color: var(--amber); color: var(--text); }

.machine-label {
  position: absolute;
  left: 0; right: 0;
  bottom: 8px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #8a8070;
}

/* ========== OVERLAYS ========== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(6, 5, 4, 0.45);
  backdrop-filter: blur(8px);
  animation: fadein 0.5s ease;
}
.overlay[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  width: min(440px, calc(100vw - 32px));
  background: #1c1915;
  border: 1px solid #3a342c;
  padding: 32px 28px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  color: var(--text);
}
.sheet-kicker {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--muted);
  margin-bottom: 8px;
}
.sheet h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
#feeling {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #4a4338;
  color: var(--text);
  font-size: 16px;
  padding: 8px 0 10px;
  outline: none;
  letter-spacing: 0.06em;
}
#feeling:focus { border-bottom-color: var(--amber); }
#feeling::placeholder { color: #6a6358; }
.chips, .scents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 8px;
}
.chips button,
.scent {
  background: transparent;
  border: 1px solid #4a4338;
  color: #d9ccb6;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  cursor: pointer;
}
.chips button:hover,
.scent:hover,
.chips button.is-on,
.scent.is-on {
  border-color: var(--amber);
  color: var(--text);
  background: rgba(212,160,86,0.08);
}
.sheet-label {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
.btn-ghost, .btn-solid {
  border: 0;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.16em;
  padding: 10px 16px;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); }
.btn-solid {
  background: var(--amber);
  color: #1a140c;
}
.btn-solid:hover { background: #e0b66a; }

.receipt-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.receipt {
  width: min(280px, calc(100vw - 48px));
  background: #f3ead8;
  color: #2a241c;
  padding: 28px 24px 24px;
  font-family: var(--mono);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  clip-path: polygon(
    0 0, 100% 0, 100% calc(100% - 10px),
    96% 100%, 92% calc(100% - 10px), 88% 100%, 84% calc(100% - 10px),
    80% 100%, 76% calc(100% - 10px), 72% 100%, 68% calc(100% - 10px),
    64% 100%, 60% calc(100% - 10px), 56% 100%, 52% calc(100% - 10px),
    48% 100%, 44% calc(100% - 10px), 40% 100%, 36% calc(100% - 10px),
    32% 100%, 28% calc(100% - 10px), 24% 100%, 20% calc(100% - 10px),
    16% 100%, 12% calc(100% - 10px), 8% 100%, 4% calc(100% - 10px), 0 100%
  );
  animation: print 0.9s ease;
}
@keyframes print {
  from { transform: translateY(-24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.receipt h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-align: center;
  margin: 4px 0 12px;
}
.r-place, .r-foot {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #6a5e4e;
}
.r-dash {
  border-top: 1px dashed #b8aa90;
  margin: 12px 0;
}
.r-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 6px 0;
}
.r-stamp {
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  margin: 10px 0 8px;
  color: #7a2a22;
}

/* Early take-out, very quiet */
.take-out {
  pointer-events: auto;
  background: transparent;
  border: 0;
  color: #8a8070;
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
  margin-left: 12px;
}
.take-out:hover { color: var(--text); }

@media (max-width: 700px) {
  .door-glass { height: 62vh; top: 8%; }
  .machines { left: 2%; right: 2%; height: 34%; gap: 8px; }
  .machine { width: 22vw; }
  .wall-sign { top: 46%; }
  .bench, .basket, .wall-clock { display: none; }
  .hint { font-size: 13px; max-width: 58vw; }
  .window { left: 4%; right: 4%; }
  .outside { left: 5%; right: 5%; }
}

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