@font-face { font-family: "Mali"; src: url("../assets/fonts/Mali-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mali"; src: url("../assets/fonts/Mali-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Mali"; src: url("../assets/fonts/Mali-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Mali"; src: url("../assets/fonts/Mali-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #2e2824;
  --ink-soft: #5a4a3c;
  --paper: #f4ead6;
  --mali: "Mali", "Sarabun", "Tahoma", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: #e8d7b8;
  color: var(--ink);
  font-family: var(--mali);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 40%, #efe0c6 0%, #e2cda8 55%, #d4b88a 100%);
}
#world {
  position: absolute;
  top: 0; left: 0;
  width: 2480px;
  height: 3508px;
  transform-origin: 0 0;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.22, 0.8, 0.28, 1);
}
#world.is-instant { transition: none; }
.layer {
  position: absolute;
  inset: 0;
  width: 2480px;
  height: 3508px;
  display: block;
  pointer-events: none;
  user-select: none;
}
#washes { position: absolute; inset: 0; pointer-events: none; }
.wash {
  position: absolute;
  inset: 0;
  width: 2480px;
  height: 3508px;
  display: none;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.wash.is-on { display: block; }
.hit {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center center;
}
.hit:focus-visible {
  outline: 6px solid rgba(120, 72, 56, 0.4);
  outline-offset: 6px;
}
#chrome {
  position: fixed;
  top: 10px; left: 12px; right: 12px;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
#chrome > * { pointer-events: auto; }
.ghost, #btn-reset {
  font-family: var(--mali);
  font-size: 13px;
  font-weight: 500;
  color: #3a2e26;
  background: rgba(244, 234, 214, 0.94);
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(60, 40, 20, 0.18);
}
#btn-reset { color: #6a3a30; }
.hint, .progress {
  position: fixed;
  z-index: 7;
  font-size: 13px;
  font-weight: 500;
  color: #3a2e26;
  background: rgba(244, 234, 214, 0.92);
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(60, 40, 20, 0.18);
  pointer-events: none;
}
.hint { left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap; }
.hint.is-off { opacity: 0; }
.progress { right: 12px; bottom: 18px; }

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  max-height: 58%;
  overflow: auto;
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 32px rgba(40, 24, 16, 0.28);
  padding: 10px 22px 28px;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.28, 1);
}
.sheet.is-open { transform: translateY(0); }
.sheet-handle {
  width: 48px; height: 5px;
  background: #d8cbb8;
  border-radius: 99px;
  margin: 4px auto 12px;
}
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8a3a2c;
  margin-bottom: 2px;
}
.sheet h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 2px;
}
.place {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.teaser {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: #3f342c;
  margin-bottom: 10px;
}
.body-wrap { position: relative; }
.body {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
}
.body-wrap.is-locked .body { filter: blur(7px); user-select: none; }
.lock-veil {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(244,234,214,0.15), rgba(244,234,214,0.72));
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  padding: 12px;
}
.body-wrap.is-locked .lock-veil { display: flex; }
#btn-checkin, #btn-epilogue {
  display: block;
  width: 100%;
  margin-top: 16px;
  font-family: var(--mali);
  font-size: 16px;
  font-weight: 700;
  color: #f6f0e6;
  background: #8a2a24;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: 0 3px 0 #5e1814;
}
#btn-checkin[hidden], #btn-epilogue[hidden] { display: none; }
@media (min-width: 720px) {
  .sheet {
    left: auto; right: 24px; bottom: 24px;
    width: 380px; max-height: 70%;
    border-radius: 18px;
  }
}
