/* THE LAUNDROMAT — laundromat, not a dashboard. */
:root {
  --wall: url("assets/tile_day.png");
  --panel: #f6f3ec;
  --panel-2: #ece7db;
  --ink: #23272e;
  --muted: #6d6a60;
  --led: #1fae4b;
  --led-bright: #39d353;
  --led-bg: #0d160f;
  --yellow: #f0c644;
  --yellow-ink: #785614;
  --red: #e2786e;
  --red-ink: #782822;
  --shadow: rgba(35, 39, 46, .22);
}
html.night {
  --wall: url("assets/tile_night.png");
  --panel: #232837;
  --panel-2: #1b2030;
  --ink: #e9eaf0;
  --muted: #9aa0b4;
  --led: #39d353;
  --led-bright: #5cf07a;
  --shadow: rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.55 "Space Grotesk", system-ui, sans-serif;
  background: var(--wall);
  background-size: 128px;
  image-rendering: auto;
}
h1, h2 { font-family: Anton, sans-serif; font-weight: 400; letter-spacing: .04em; }
img { image-rendering: pixelated; }
main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* --- вывеска --- */
.hero { text-align: center; padding: 72px 16px 36px; }
.sign {
  font-size: clamp(44px, 9vw, 108px);
  margin: 0;
  color: #fff;
  -webkit-text-stroke: 3px #b8493f;
  text-shadow:
    0 0 6px #ff6f61, 0 0 18px #ff6f61, 0 0 42px rgba(255, 111, 97, .55),
    0 4px 0 rgba(35, 39, 46, .18);
}
html.night .sign { text-shadow:
    0 0 8px #ff6f61, 0 0 26px #ff6f61, 0 0 70px rgba(255, 111, 97, .8),
    0 4px 0 rgba(0, 0, 0, .4); }
.sign .flick { animation: flick 6s infinite; }
.sign span:not(.flick) { animation: flick 11s 2s infinite; }
@keyframes flick {
  0%, 91%, 94%, 97%, 100% { opacity: 1; }
  92%, 95% { opacity: .35; text-shadow: none; }
}
.tagline { font-size: 20px; color: var(--muted); margin: 10px 0 34px; }
.hero-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero-row img {
  width: 168px; border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: 6px 6px 0 var(--shadow); background: #000;
}
.hero-row img:nth-child(2n) { transform: rotate(-1.2deg); }
.hero-row img:nth-child(3n) { transform: rotate(1deg); }

/* --- LED-строка --- */
.ticker {
  overflow: hidden; background: var(--led-bg);
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  margin: 26px 0;
}
.ticker-inner {
  display: inline-block; white-space: nowrap; padding: 6px 0;
  font-family: VT323, monospace; font-size: 26px; color: var(--led-bright);
  text-shadow: 0 0 8px rgba(57, 211, 83, .6);
  animation: crawl 28s linear infinite;
}
@keyframes crawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker.bottom { margin-top: 60px; }

/* --- постер HOW TO WASH --- */
.poster-wrap { display: flex; justify-content: center; padding: 26px 0; }
.poster {
  background: var(--panel); border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 8px 8px 0 var(--shadow);
  padding: 30px 34px 26px; max-width: 940px; transform: rotate(-.6deg);
  position: relative;
}
.poster::before, .poster::after {
  content: ""; position: absolute; width: 92px; height: 26px;
  background: rgba(180, 176, 160, .55); transform: rotate(-4deg);
  top: -13px; left: 38px; border-radius: 2px;
}
.poster::after { left: auto; right: 38px; transform: rotate(3deg); }
.poster h2 { margin: 0 0 18px; font-size: 40px; }
.steps { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; }
.steps li { flex: 1 1 240px; counter-increment: st; position: relative; padding-top: 6px; }
.steps li::before {
  content: counter(st); position: absolute; right: 0; top: 0;
  font-family: Anton; font-size: 54px; color: var(--panel-2);
  -webkit-text-stroke: 2px var(--muted); z-index: 0;
}
.steps img { display: block; margin-bottom: 10px; }
.steps b { display: block; font-size: 19px; letter-spacing: .03em; }
.steps span { color: var(--muted); font-size: 15.5px; }

/* --- стена/заголовки секций --- */
.wall-title {
  font-size: clamp(30px, 5vw, 52px); margin: 70px 0 22px;
  color: var(--ink); opacity: .92;
}
.wall-title::after { content: ""; display: block; width: 84px; height: 6px;
  background: var(--led); margin-top: 8px; }

/* --- THE FLOOR --- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  font: 500 14px "Space Grotesk"; padding: 7px 14px; cursor: pointer;
  background: var(--panel); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--shadow);
}
.chip.on { background: var(--yellow); color: var(--yellow-ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.card {
  background: var(--panel); border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: 6px 6px 0 var(--shadow); overflow: hidden;
}
.card img { width: 100%; display: block; }
.card .plate {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 12px; border-top: 3px solid var(--ink);
}
.card .no { font-family: VT323, monospace; font-size: 22px; }
.card .tt { font-size: 12.5px; color: var(--muted); text-align: right; }

/* --- THE CENSUS: табло --- */
.board {
  background: #14171e; border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: 8px 8px 0 var(--shadow);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px; padding: 26px 22px;
}
.stat { text-align: center; }
.stat em {
  display: block; font: 400 46px/1.1 VT323, monospace; font-style: normal;
  color: var(--led-bright); text-shadow: 0 0 10px rgba(57, 211, 83, .55);
}
.stat em .fl { display: inline-block; animation: flip .45s ease; }
@keyframes flip { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
.stat > span { font-size: 12.5px; letter-spacing: .14em; color: #8b93a4; }

/* --- CHANGE MACHINE --- */
.kiosk-row { display: flex; gap: 56px; align-items: center;
  justify-content: center; flex-wrap: wrap; }
.kiosk { width: 264px; flex: 0 0 auto; filter: drop-shadow(8px 8px 0 var(--shadow)); }
.kiosk-panel {
  flex: 0 1 460px; display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.kiosk-panel .small { max-width: 420px; }
.rate-plate {
  display: inline-block; background: var(--panel); border: 3px solid var(--ink);
  border-radius: 6px; box-shadow: 5px 5px 0 var(--shadow);
  font-family: VT323, monospace; font-size: 27px; padding: 8px 16px;
}
.inv { display: flex; gap: 14px; margin: 18px 0; flex-wrap: wrap;
  justify-content: center; }
.inv-win {
  background: var(--led-bg); border: 3px solid var(--ink); border-radius: 6px;
  padding: 10px 18px; min-width: 180px;
}
.inv-win em { display: block; font: 400 34px VT323, monospace; font-style: normal;
  color: var(--led-bright); }
.inv-win span { font-size: 11px; letter-spacing: .12em; color: #8b93a4; }
.kiosk-btns { display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 430px; }

.btn {
  font: 700 16px "Space Grotesk"; cursor: pointer; padding: 13px 18px;
  border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: 5px 5px 0 var(--shadow);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--shadow); }
.btn.yellow { background: var(--yellow); color: var(--yellow-ink); }
.btn.red { background: var(--red); color: var(--red-ink); }
.btn.big { font-size: 19px; padding: 16px 26px; }
.small { font-size: 14px; color: var(--muted); }
.mono { font-family: VT323, monospace; font-size: 17px; }

/* --- START THE CYCLE --- */
.cycle-row { display: flex; gap: 56px; align-items: center;
  justify-content: center; flex-wrap: wrap; }
.cycle-machine { position: relative; flex: 0 0 300px; }
.cycle-machine img#cycle-gif {
  width: 300px; border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: 8px 8px 0 var(--shadow);
}
.cycle-overlay {
  position: absolute; inset: 3px; display: flex; align-items: center;
  justify-content: center; text-align: center; border-radius: 6px;
  background: rgba(10, 12, 16, .78);
  font: 400 34px VT323, monospace; color: var(--led-bright);
  text-shadow: 0 0 12px rgba(57, 211, 83, .7);
}
.cycle-side {
  flex: 0 1 420px; display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.cycle-side p { max-width: 380px; margin-top: 0; }
.receipt {
  margin-top: 20px; width: 250px; background: #f8f6ee; color: #3a3c38;
  border: 2px solid #b9b5a4; padding: 16px 18px 12px;
  font-family: VT323, monospace; font-size: 19px;
  animation: printout .7s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 96% 100%, 92% calc(100% - 8px), 88% 100%, 84% calc(100% - 8px), 80% 100%, 76% calc(100% - 8px), 72% 100%, 68% calc(100% - 8px), 64% 100%, 60% calc(100% - 8px), 56% 100%, 52% calc(100% - 8px), 48% 100%, 44% calc(100% - 8px), 40% 100%, 36% calc(100% - 8px), 32% 100%, 28% calc(100% - 8px), 24% 100%, 20% calc(100% - 8px), 16% 100%, 12% calc(100% - 8px), 8% 100%, 4% calc(100% - 8px), 0 100%);
}
@keyframes printout { from { transform: translateY(-24px); opacity: 0; } }
.receipt b { display: block; letter-spacing: .1em; margin-bottom: 6px; }
.receipt i { display: block; font-style: normal; border-bottom: 1px dashed #cfcaba;
  padding: 3px 0; }
.receipt .led { color: #1fae4b; font-size: 23px; }
.receipt .barcode {
  height: 30px; margin: 10px 0;
  background: repeating-linear-gradient(90deg, #3a3c38 0 2px, transparent 2px 5px,
    #3a3c38 5px 8px, transparent 8px 10px, #3a3c38 10px 11px, transparent 11px 15px);
}
.receipt .share {
  width: 100%; font: 700 14px "Space Grotesk"; padding: 8px;
  background: var(--yellow); border: 2px solid var(--yellow-ink);
  border-radius: 6px; cursor: pointer;
}

/* --- рубильник ночной смены --- */
#switch {
  position: fixed; top: 18px; right: 18px; z-index: 50;
  background: var(--panel); border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: 4px 4px 0 var(--shadow); padding: 8px; cursor: pointer;
}
#switch .plate { display: block; width: 26px; height: 40px; background: var(--panel-2);
  border: 2px solid var(--ink); border-radius: 4px; position: relative; }
#switch .lever {
  position: absolute; left: 50%; top: 4px; width: 10px; height: 14px;
  transform: translateX(-50%); background: var(--ink); border-radius: 2px;
  transition: top .15s;
}
html.night #switch .lever { top: 20px; }

/* --- гейт и тост --- */
#gate { position: fixed; inset: 0; z-index: 100; background: rgba(12, 13, 18, .8);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.gate-card { background: var(--panel); border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: 10px 10px 0 rgba(0,0,0,.4); max-width: 560px; padding: 26px 30px; }
.gate-card h3 { font-family: Anton; font-size: 26px; margin: 0 0 10px; }
.gate-card p { font-size: 15px; color: var(--muted); }
#gate-ok { margin-top: 8px; font: 700 16px "Space Grotesk"; padding: 12px 22px;
  background: var(--led-bright); border: 3px solid var(--ink); border-radius: 8px;
  cursor: pointer; box-shadow: 5px 5px 0 var(--shadow); }
#toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--panel); padding: 12px 22px;
  border-radius: 8px; font: 500 15px "Space Grotesk";
}
html.night #toast { background: var(--led-bright); color: #0d160f; }

footer { text-align: center; padding: 40px 20px 60px; }
footer p { margin: 6px 0; }
