/* Standalone website shell only. The playable stage and embed retain their own palette. */
html:not(.embed-mode) body.milk-demo {
  color: #f7f4fb;
  background: #0c0b12;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}
html:not(.embed-mode) .demo-header {
  display: block;
  padding: 0;
  border-bottom: 1px solid #302c3d;
  background: #0c0b12;
  color: #f7f4fb;
  font-size: 13px;
  letter-spacing: normal;
}
html:not(.embed-mode) .demo-header-inner,
html:not(.embed-mode) .demo-footer-inner {
  width: min(1080px, calc(100% - 56px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-block: 16px;
}
html:not(.embed-mode) .demo-header a,
html:not(.embed-mode) .demo-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c9c3d4;
  text-decoration: none;
}
html:not(.embed-mode) .demo-header a:hover,
html:not(.embed-mode) .demo-footer a:hover { color: #ff7b86; text-decoration: underline; }
html:not(.embed-mode) .demo-brand {
  gap: 10px;
  color: #f7f4fb !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
html:not(.embed-mode) .demo-brand img { padding: 4px; border-radius: 10px; background: #fff; }
html:not(.embed-mode) .demo-badge { color: #d8f86a; border: 1px solid #4a4936; border-radius: 999px; padding: 4px 10px; font-size: 11px; }
html:not(.embed-mode) .demo-back { margin-left: auto; }
html:not(.embed-mode) .support-language button { min-width: 44px; min-height: 44px; }
html:not(.embed-mode) main { max-width: 1132px; padding: 40px 26px; gap: 48px; }
html:not(.embed-mode) .side { padding-top: 0; min-width: 0; }
html:not(.embed-mode) .side > .eyebrow { color: #ff7b86; letter-spacing: .12em; }
html:not(.embed-mode) .side h1 { font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif; font-weight: 500; font-size: clamp(30px, 3.5vw, 42px); letter-spacing: -.035em; }
html:not(.embed-mode) .side h1 em { color: #ff7b86; }
html:not(.embed-mode) .side .lead { color: #c9c3d4; }
html:not(.embed-mode) .side .tags { margin-bottom: 24px; }
html:not(.embed-mode) .side .tags > span { background: #171522; border-color: #393347; color: #c9c3d4; }
html:not(.embed-mode) .side .tags span span { padding: 0; border: 0; }
html:not(.embed-mode) .side .section { background: #171522; border: 1px solid #393347; border-radius: 16px; padding: 20px; margin-top: 16px; }
html:not(.embed-mode) .side h3 { font-size: 16px; }
html:not(.embed-mode) .side .rules,
html:not(.embed-mode) .side .model small,
html:not(.embed-mode) .side label { color: #c9c3d4; font-size: 12px; }
html:not(.embed-mode) .side .rules b { color: #f7f4fb; }
html:not(.embed-mode) button { min-height: 44px; min-width: 44px; }
html:not(.embed-mode) input[type=range] { min-height: 44px; }
html:not(.embed-mode) .setting-actions { flex-wrap: wrap; }
html:not(.embed-mode) .setting-actions label { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; }
html:not(.embed-mode) .prototype-notes { color: #c9c3d4; font-size: 11px; line-height: 1.8; margin-top: 20px; }
html:not(.embed-mode) .demo-footer { margin-top: 0; background: #12101a; color: #c9c3d4; border-top: 1px solid #302c3d; font-size: 12px; }
html:not(.embed-mode) .demo-footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 24px; }
html:not(.embed-mode) a:focus-visible { outline: 2px solid #ff7b86; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 760px) {
  html:not(.embed-mode) .demo-header-inner,
  html:not(.embed-mode) .demo-footer-inner { width: calc(100% - 32px); gap: 8px 14px; }
  html:not(.embed-mode) .demo-back { margin-left: 0; }
  html:not(.embed-mode) .demo-header .support-language { margin-left: auto; }
  html:not(.embed-mode) main { max-width: 500px; padding: 24px 16px; }
  html:not(.embed-mode) .side { padding: 12px 0 0; }
  html:not(.embed-mode) .demo-footer nav { margin-left: 0; }
  html:not(.embed-mode) .settings { grid-template-columns: 1fr; gap: 8px; }
}
