html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

canvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
}

#status {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font: 12px/1.4 monospace;
  z-index: 20;
  pointer-events: none;
}

#wonderland-rule-form {
  position: fixed;
  left: 12px;
  bottom: 14px;
  z-index: 30;
  width: min(420px, calc(100vw - 24px));
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(8, 8, 10, 0.42);
  border: 1px solid rgba(255, 244, 228, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.24);
}

#wonderland-rule-form label {
  color: rgba(255, 244, 228, 0.88);
  letter-spacing: 0.14em;
  font: 500 12px/1.1 "Helvetica Neue", Arial, sans-serif;
}

#wonderland-rule-subcopy,
#wonderland-rule-helper {
  color: rgba(255, 244, 228, 0.58);
  font: 400 11px/1.45 "Helvetica Neue", Arial, sans-serif;
}

.wonderland-rule-row {
  display: flex;
  gap: 10px;
}

#wonderland-rule-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 244, 228, 0.2);
  background: rgba(255, 250, 242, 0.08);
  color: rgba(255, 248, 238, 0.96);
  font: 400 14px/1.2 "Helvetica Neue", Arial, sans-serif;
  outline: none;
}

#wonderland-rule-input::placeholder {
  color: rgba(255, 244, 228, 0.42);
}

#wonderland-rule-input:focus {
  border-color: rgba(255, 244, 228, 0.38);
  background: rgba(255, 250, 242, 0.12);
}

#wonderland-rule-form button {
  padding: 12px 16px;
  border: 1px solid rgba(255, 244, 228, 0.26);
  background: rgba(255, 244, 228, 0.12);
  color: rgba(255, 248, 238, 0.96);
  letter-spacing: 0.08em;
  font: 500 12px/1 "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

#wonderland-rule-result {
  min-height: 16px;
  color: rgba(255, 244, 228, 0.7);
  font: 400 11px/1.35 "Helvetica Neue", Arial, sans-serif;
  white-space: pre-wrap;
}

#time-brightness-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: rgba(0, 0, 0, 1);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

#flower-word-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10000;
  overflow: hidden;
}

.flower-word-fragment {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.035em;
  font-family: "Arial Rounded MT Bold", "Helvetica Rounded", "Trebuchet MS",
    "Gill Sans", sans-serif;
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  will-change: transform, opacity;
  font-stretch: expanded;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  text-shadow:
    0 0 1px rgba(255, 249, 240, 0.16),
    0 0 10px rgba(12, 10, 8, 0.025),
    0 0 18px rgba(12, 10, 8, 0.015);
}
