:root {
  color-scheme: light;
  --bg: #f3efe6;
  --bg-2: #e7e0d4;
  --ink: #1c1916;
  --muted: #6f675c;
  --line: rgba(28, 25, 22, 0.14);
  --accent: #9a3f24;
  --glow: rgba(196, 112, 62, 0.18);
  --glow-2: rgba(90, 122, 110, 0.12);
  --shadow: 0 24px 60px rgba(60, 42, 24, 0.12);
  --img: #efe8dc;
  --select: rgba(154, 63, 36, 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "FangSong", serif;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --quota: 0;
}

html[data-theme="night"] {
  color-scheme: dark;
  --bg: #141311;
  --bg-2: #1e1c19;
  --ink: #f4efe6;
  --muted: #a39a8e;
  --line: rgba(244, 239, 230, 0.14);
  --accent: #e4a27a;
  --glow: rgba(228, 162, 122, 0.12);
  --glow-2: rgba(120, 140, 160, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --img: #201e1b;
  --select: rgba(228, 162, 122, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; max-width: 100%; }
html { background: var(--bg); overflow-x: clip; }
body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 0% -10%, var(--glow), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, var(--glow-2), transparent 50%),
    var(--bg);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  z-index: 8;
  left: 0; top: 0;
  height: 2px; width: 100%;
  transform: scaleX(var(--quota));
  transform-origin: left center;
  background: var(--accent);
  pointer-events: none;
}
.veil { display: none; }
::selection { background: var(--select); }
button, a { touch-action: manipulation; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) 22px 0;
}
.brand {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px 0 16px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, white), color-mix(in srgb, var(--bg) 88%, white));
  box-shadow: 0 10px 28px rgba(60, 42, 24, 0.08);
}
.brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--brand-angle, 0deg), transparent 0 58%, var(--accent) 76%, #e8c98a 88%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: brand-ring 8s linear infinite;
  pointer-events: none;
}
.brand:hover { color: var(--accent); }
@property --brand-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes brand-ring { to { --brand-angle: 360deg; } }
.tools { display: flex; align-items: center; gap: 8px; }
.tools-toggle { display: none; }
.theme, .help, .skin {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.help {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
}
.ico {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  transition: opacity .35s ease, transform .45s ease;
}
.sun {
  background: radial-gradient(circle at 50% 50%, var(--ink) 0 2px, transparent 3px),
    conic-gradient(from 0deg, transparent 0 20deg, var(--ink) 0 28deg, transparent 0 50deg, var(--ink) 0 58deg, transparent 0 90deg, var(--ink) 0 98deg, transparent 0 140deg, var(--ink) 0 148deg, transparent 0 180deg, var(--ink) 0 188deg, transparent 0 230deg, var(--ink) 0 238deg, transparent 0 270deg, var(--ink) 0 278deg, transparent 0 320deg, var(--ink) 0 328deg, transparent 0 360deg);
}
.moon {
  opacity: 0;
  transform: rotate(-20deg) scale(.8);
  background:
    radial-gradient(circle at 60% 45%, transparent 0 7px, var(--ink) 8px);
  box-shadow: inset -4px -2px 0 -2px var(--ink);
}
.skin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.skin-mark {
  width: 16px;
  height: 12px;
  border: 1.6px solid currentColor;
  border-radius: 8px 3px 7px 2px / 3px 7px 2px 8px;
}
html[data-skin="sketch"] .skin-mark {
  background: var(--accent);
  box-shadow: 2px 2px 0 currentColor;
}
html[data-theme="night"] .sun { opacity: 0; transform: rotate(20deg) scale(.8); }
html[data-theme="night"] .moon { opacity: 1; transform: none; }

main {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  padding: 28px 20px 12px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.sheet {
  position: relative;
  width: min(38rem, 100%);
  max-width: 100%;
  min-width: 0;
  opacity: 1;
}
.sheet:not(.intro):not(.is-image) { padding: 6px 48px 0; }
.sheet.is-image .caption { padding-inline: 44px; }
.sheet > .copy-link {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  opacity: 1;
  pointer-events: auto;
  color: #9a9186;
  border-color: rgba(28, 25, 22, 0.08);
  background: rgba(243, 239, 230, 0.28);
}
.sheet > .copy-link:hover,
.sheet > .copy-link:focus-visible {
  color: var(--muted);
  border-color: rgba(28, 25, 22, 0.16);
  background: rgba(243, 239, 230, 0.72);
}
html[data-theme="night"] .sheet > .copy-link {
  color: #8f877c;
  border-color: rgba(244, 239, 230, 0.1);
  background: rgba(20, 19, 17, 0.22);
}
html[data-theme="night"] .sheet > .copy-link:hover,
html[data-theme="night"] .sheet > .copy-link:focus-visible {
  color: #c4bbae;
  border-color: rgba(244, 239, 230, 0.2);
  background: rgba(20, 19, 17, 0.55);
}
.sheet > .copy-link svg { width: 16px; height: 16px; }
.sheet.is-image > .copy-link { top: 8px; right: 18px; }
.sheet.is-image { width: min(920px, 100%); }
.sheet.is-long { text-align: left; }
.kicker {
  margin: 0 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}
.sheet:not(.intro) > .kicker,
.sheet figcaption {
  display: none;
}
.joke, .title, .caption, .lede {
  font-family: var(--serif);
  font-weight: 500;
}
.joke, .title {
  margin: 0;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  line-height: 1.75;
  letter-spacing: 0.01em;
}
.joke.is-short, .title { font-size: clamp(1.8rem, 3.4vw, 2.45rem); line-height: 1.55; }
.joke.is-long, .sheet.is-long .joke {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.9;
  text-align: left;
}
.caption {
  margin: 0 auto 18px;
  max-width: 36rem;
  text-align: center;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.caption.quiet { color: var(--muted); letter-spacing: 0.28em; font-size: 13px; font-family: var(--sans); }
.lede {
  margin: 8px auto 0;
  max-width: 28em;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}
.intro { text-align: center; }
.intro .next { margin-top: 28px; text-decoration: none; }

.frame {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 20px;
}
.pic {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(74dvh, 920px);
  object-fit: contain;
  border-radius: 18px;
  background: var(--img);
  box-shadow: var(--shadow);
  opacity: 1;
}
.pic { cursor: zoom-in; }
.zoom {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: auto;
  background: rgba(20, 19, 17, 0.92);
  cursor: zoom-out;
}
.zoom-fit {
  min-width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.zoom img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  cursor: zoom-out;
}

.dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto calc(16px + env(safe-area-inset-bottom));
  flex-wrap: wrap;
}
.quota, .done-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.done-note { color: var(--accent); }
.dock .quota { display: none !important; }
.turn { display: flex; align-items: center; gap: 4px; }
.actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.back, .copy-link, .like, .next, .down {
  height: 48px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  overflow: visible;
}
.down {
  min-width: 72px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.down svg { width: 18px; height: 18px; }
.down svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.down.is-on { color: var(--muted); border-color: transparent; background: rgba(28, 25, 22, 0.06); }
.back, .copy-link {
  width: 48px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.back svg, .copy-link svg { width: 20px; height: 20px; display: block; }
.back:disabled { opacity: .32; cursor: default; }
.copy-link .ok { display: none; }
.copy-link.is-on { color: var(--accent); border-color: transparent; }
.copy-link.is-on .copy { display: none; }
.copy-link.is-on .ok { display: block; }
.copy-link { opacity: 0; pointer-events: none; }
main:hover ~ .dock .copy-link,
.dock:hover .copy-link,
.copy-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.dock [data-tip] { position: relative; }
.dock [data-tip]:hover::after,
.dock [data-tip]:focus-visible::after,
.sheet > .copy-link[data-tip]:hover::after,
.sheet > .copy-link[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}
.sheet > .copy-link[data-tip]:hover::after,
.sheet > .copy-link[data-tip]:focus-visible::after {
  left: auto;
  right: 0;
  bottom: auto;
  top: calc(100% + 8px);
  transform: none;
}
.dock [data-tip].tip-hold:hover::after,
.dock [data-tip].tip-hold:focus-visible::after,
.sheet > .copy-link[data-tip].tip-hold:hover::after,
.sheet > .copy-link[data-tip].tip-hold:focus-visible::after {
  content: none;
}
.like {
  min-width: 72px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.like.is-on { color: var(--accent); border-color: transparent; background: rgba(154, 63, 36, 0.1); }
html[data-theme="night"] .like.is-on { background: rgba(228, 162, 122, 0.14); }
.heart { width: 18px; height: 18px; }
.heart path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.like.is-on .heart path { fill: currentColor; }
.like.is-on .heart { animation: pop .38s cubic-bezier(.2, 1.4, .3, 1); }
.next {
  border: 0;
  padding: 0 22px;
  background: var(--ink);
  color: var(--bg);
  letter-spacing: 0.12em;
  font-size: 14px;
  font-weight: 600;
}
.next .arr { display: inline-block; transition: transform .35s ease; }
.next:hover .arr { transform: translateX(3px); }
.next.is-wait { opacity: .72; }
.next.is-wait .arr { animation: nudge .7s ease infinite; }
.next.is-err { box-shadow: inset 0 0 0 1px var(--accent); }

.legal {
  margin: 0 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.legal a { color: inherit; }

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: min(22rem, calc(100% - 48px));
  margin: 0;
  padding: 14px 18px;
  border-radius: 18px;
  background-color: #1c1916;
  color: #f4efe6;
  -webkit-text-fill-color: #f4efe6;
  box-shadow: 0 14px 36px rgba(28, 25, 22, 0.22);
  text-align: center;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.toast.is-on { opacity: 1; visibility: visible; }
html[data-theme="night"] .toast {
  background-color: #f4efe6;
  color: #1c1916;
  -webkit-text-fill-color: #1c1916;
}

.help-layer[hidden] { display: none !important; }
.help-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 19, 17, 0.46);
  backdrop-filter: blur(8px);
}
.help-card {
  width: min(22rem, 100%);
  padding: 22px 22px 16px;
  border-radius: 22px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.help-card h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
}
.keys { list-style: none; margin: 0 0 18px; padding: 0; }
.keys li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.keys li span:last-child, .keys kbd { margin-left: 4px; }
.help-guide {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background-color: #9a3f24;
  color: #fffaf6;
  font-size: 14px;
  line-height: 1.65;
}
.keys li.is-hello span:first-child { color: #9a3f24; font-weight: 600; }
.help-note {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}
.next.is-cue { box-shadow: 0 0 0 3px #c4703e; animation: mrylCue 1.15s ease infinite; }
@keyframes mrylCue {
  50% { box-shadow: 0 0 0 8px rgba(196, 112, 62, 0); }
}
.next-cue {
  position: fixed;
  z-index: 30;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background-color: #1c1916;
  color: #f4efe6;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  pointer-events: none;
  white-space: nowrap;
}
html[data-theme="night"] .next-cue {
  background-color: #f4efe6;
  color: #1c1916;
}
.help-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin: 0 0 18px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.help-share.is-on { background: var(--accent); }
kbd {
  min-width: 2.2em;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
}
.contact {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
}
.help-close {
  margin-top: 16px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.mask[hidden] { display: none !important; }
.mask {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(10px);
}
html[data-theme="night"] .mask { background: rgba(20, 19, 17, 0.9); }
.mask-card { width: min(28rem, 100%); text-align: center; }
.mask-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
}
.mask-card p:last-child { color: var(--muted); line-height: 1.8; }
body.is-limited .sheet,
body.is-limited .dock { visibility: hidden; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pop {
  50% { transform: scale(1.28); }
}
@keyframes nudge {
  50% { transform: translateX(4px); }
}

@media (min-width: 960px) {
  body { padding-right: 108px; }
  .dock {
    position: fixed;
    z-index: 5;
    top: 50%;
    right: max(22px, env(safe-area-inset-right));
    bottom: auto;
    transform: translateY(-50%);
    width: 76px;
    margin: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 16px 10px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background-color: #f3efe6;
    box-shadow: var(--shadow);
  }
  .dock .quota, .dock .done-note {
    max-width: 56px;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1.45;
  }
  .dock .actions {
    flex-direction: column;
    width: auto;
    margin: 0;
    align-items: center;
  }
  .dock .turn { flex-direction: column; gap: 4px; }
  .dock [data-tip]:hover::after,
  .dock [data-tip]:focus-visible::after {
    right: calc(100% + 10px);
    top: 50%;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
  }
  .next {
    width: 48px;
    padding: 0;
    position: relative;
  }
  .dock .like,
  .dock .down {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    gap: 2px;
  }
  .dock .like span,
  .dock .down span { font-size: 11px; }
  .next-word {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .next .arr { font-size: 18px; }
  html[data-theme="night"] .dock { background-color: #1c1a17; }
}
@media (max-width: 959px) {
  .tools-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .tools-mark {
    width: 16px;
    height: 16px;
    background:
      radial-gradient(circle, currentColor 1.4px, transparent 1.6px) center 2px / 4px 4px no-repeat,
      radial-gradient(circle, currentColor 1.4px, transparent 1.6px) center 8px / 4px 4px no-repeat,
      radial-gradient(circle, currentColor 1.4px, transparent 1.6px) center 14px / 4px 4px no-repeat;
  }
  .tools.is-open .tools-toggle {
    background: var(--ink);
    color: var(--bg);
  }
  .tools.is-fold:not(.is-open) > :not(.tools-toggle) { display: none; }
  .copy-link { opacity: 1; pointer-events: auto; }
  .sheet > .copy-link {
    width: 30px;
    height: 30px;
  }
  .sheet > .copy-link svg { width: 13px; height: 13px; }
  .sheet:not(.intro):not(.is-image) { padding-right: 40px; }
  .sheet.is-image .caption { padding-inline: 36px; }
  .dock { align-items: stretch; }
  .actions { width: 100%; }
  .turn { flex: 1 1 auto; min-width: 0; }
  .back,
  .like,
  .down { flex: 0 0 48px; }
  .like,
  .down {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    gap: 2px;
  }
  .like span,
  .down span { font-size: 12px; }
  .next {
    flex: 1 1 auto;
    width: auto;
    min-width: max-content;
    height: 48px;
    padding: 0 12px;
  }
}
@media (max-width: 640px) {
  .brand { font-size: 15px; letter-spacing: 0.14em; text-indent: 0.14em; min-height: 38px; padding: 0 12px; }
  .top { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  main { padding-top: 18px; padding-bottom: 8px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .sheet, .sheet.is-image { width: 100%; }
  .pic { max-height: 68dvh; border-radius: 14px; }
  .dock { align-items: stretch; width: min(920px, calc(100% - 32px)); }
  .actions { width: 100%; }
  .joke, .title { font-size: 1.35rem; }
  .joke.is-short { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .pic { opacity: 1; transform: none; }
}

html[data-skin="sketch"] {
  --bg: #f4f0dc;
  --bg-2: #efe4c4;
  --ink: #3d3426;
  --muted: #7d6b52;
  --line: #5c4a32;
  --accent: #e06a2f;
  --glow: rgba(232, 196, 110, 0.45);
  --glow-2: rgba(126, 168, 96, 0.28);
  --shadow: 6px 7px 0 #f0d48a;
  --img: #fffdf6;
  --select: rgba(224, 106, 47, 0.22);
  --serif: "KaiTi", "STKaiti", "楷体", "Segoe Print", "Marker Felt", "Comic Sans MS", cursive;
  --sans: "KaiTi", "STKaiti", "楷体", "Segoe Print", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[data-skin="sketch"][data-theme="night"] {
  --bg: #242018;
  --bg-2: #312a20;
  --ink: #f6edd8;
  --muted: #cbb896;
  --line: #ead7ae;
  --accent: #f0a05a;
  --glow: rgba(240, 160, 90, 0.14);
  --glow-2: rgba(150, 176, 110, 0.12);
  --shadow: 6px 7px 0 #5c4630;
  --img: #2c271f;
  --select: rgba(240, 160, 90, 0.28);
}
html[data-skin="sketch"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(92, 122, 62, 0.18) 1.15px, transparent 1.3px),
    radial-gradient(rgba(210, 150, 70, 0.14) 1px, transparent 1.15px);
  background-size: 18px 18px, 27px 27px;
  background-position: 0 0, 7px 12px;
}
html[data-skin="sketch"] .brand {
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  background: #fffdf6;
  border: 2px solid #4a3b28;
  border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px;
  box-shadow: 3px 4px 0 #f0d48a;
  animation: brand-breathe 3.8s ease-in-out infinite;
}
html[data-skin="sketch"] .brand::before { display: none; }
html[data-skin="sketch"][data-theme="night"] .brand {
  background: #2c271f;
  border-color: #ead7ae;
  box-shadow: 3px 4px 0 #5c4630;
}
@keyframes brand-breathe {
  50% { transform: rotate(-0.6deg); box-shadow: 5px 6px 0 #f0d48a; }
}
html[data-skin="sketch"][data-theme="night"] .brand { animation-name: brand-breathe-night; }
@keyframes brand-breathe-night {
  50% { transform: rotate(-0.6deg); box-shadow: 5px 6px 0 #5c4630; }
}
html[data-skin="sketch"] .sheet,
html[data-skin="sketch"] .help-card,
html[data-skin="sketch"] .mask-card,
html[data-skin="sketch"] .dock {
  background: #fffdf6;
  border: 2.5px solid #4a3b28;
  border-radius: 255px 18px 225px 22px / 20px 225px 18px 255px;
  box-shadow: var(--shadow);
}
html[data-skin="sketch"] .sheet:not(.intro):not(.is-image) { padding: 28px 54px 30px 26px; }
html[data-skin="sketch"] .sheet.intro { padding: 56px 40px 60px; }
html[data-skin="sketch"] .pic {
  border: 2.5px solid #4a3b28;
  border-radius: 18px 255px 16px 225px / 225px 16px 255px 18px;
  box-shadow: 4px 5px 0 #c9e2ae;
  background: #fff;
  padding-top: 14px;
  padding-bottom: 14px;
}
html[data-skin="sketch"] .theme,
html[data-skin="sketch"] .help,
html[data-skin="sketch"] .skin,
html[data-skin="sketch"] .tools-toggle,
html[data-skin="sketch"] .back,
html[data-skin="sketch"] .copy-link,
html[data-skin="sketch"] .like,
html[data-skin="sketch"] .next,
html[data-skin="sketch"] .down,
html[data-skin="sketch"] kbd,
html[data-skin="sketch"] .help-close,
html[data-skin="sketch"] .help-share {
  border-radius: 255px 12px 225px 12px / 12px 225px 12px 255px;
  border: 2px solid #4a3b28;
}
html[data-skin="sketch"] .next {
  background: #4a3b28;
  color: #fffdf6;
  box-shadow: 3px 3px 0 var(--accent);
}
html[data-skin="sketch"][data-theme="night"] .sheet,
html[data-skin="sketch"][data-theme="night"] .help-card,
html[data-skin="sketch"][data-theme="night"] .mask-card,
html[data-skin="sketch"][data-theme="night"] .dock {
  background: #2c271f;
  border-color: #ead7ae;
}
html[data-skin="sketch"][data-theme="night"] .pic {
  border-color: #ead7ae;
  box-shadow: 4px 5px 0 #5c4630;
  background: #241f18;
}
html[data-skin="sketch"][data-theme="night"] .theme,
html[data-skin="sketch"][data-theme="night"] .help,
html[data-skin="sketch"][data-theme="night"] .skin,
html[data-skin="sketch"][data-theme="night"] .tools-toggle,
html[data-skin="sketch"][data-theme="night"] .back,
html[data-skin="sketch"][data-theme="night"] .copy-link,
html[data-skin="sketch"][data-theme="night"] .like,
html[data-skin="sketch"][data-theme="night"] .down,
html[data-skin="sketch"][data-theme="night"] kbd,
html[data-skin="sketch"][data-theme="night"] .help-close,
html[data-skin="sketch"][data-theme="night"] .help-share,
html[data-skin="sketch"][data-theme="night"] .next {
  border-color: #ead7ae;
}
html[data-skin="sketch"] .sheet > .copy-link {
  color: #b3a48e;
  border: 1px solid rgba(74, 59, 40, 0.22);
  background: rgba(255, 253, 246, 0.35);
  box-shadow: none;
}
html[data-skin="sketch"] .sheet > .copy-link:hover,
html[data-skin="sketch"] .sheet > .copy-link:focus-visible {
  color: #6d5c48;
  border-color: rgba(74, 59, 40, 0.4);
  background: rgba(255, 253, 246, 0.82);
}
html[data-skin="sketch"][data-theme="night"] .sheet > .copy-link {
  color: #b5a892;
  border-color: rgba(234, 215, 174, 0.22);
  background: rgba(44, 39, 31, 0.28);
}
html[data-skin="sketch"][data-theme="night"] .sheet > .copy-link:hover,
html[data-skin="sketch"][data-theme="night"] .sheet > .copy-link:focus-visible {
  color: #ead7ae;
  border-color: rgba(234, 215, 174, 0.4);
  background: rgba(44, 39, 31, 0.62);
}
@media (min-width: 960px) {
  html[data-skin="sketch"] .dock { background-color: #fffdf6; }
  html[data-skin="sketch"][data-theme="night"] .dock { background-color: #2c271f; }
}
@media (max-width: 640px) {
  html[data-skin="sketch"] .sheet:not(.is-image):not(.intro) { padding: 20px 40px 22px 16px; }
  html[data-skin="sketch"] .sheet.intro { padding: 44px 28px 48px; }
  html[data-skin="sketch"] .sheet.is-image { padding: 12px 16px 14px; }
  html[data-skin="sketch"] .pic { border-radius: 14px 80px 14px 70px / 70px 14px 80px 14px; }
}
