:root {
  color-scheme: light;
}

html,
body {
  margin: 0;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:root {
  --paper: #71d8f1;
  --cake-paper: #ffffff;
  /* 蛋糕貼紙底色（亮／暗模式都維持白色） */
  --cake-line: #111111;
  --paper-2: #e8e7d9;
  --ink: #111111;
  --ink-soft: #5a554d;
  --line-faint: rgba(17, 17, 17, 0.1);
  --red: #f0b9b0;
  --blue: #b9d1e4;
  --yellow: #f1de9c;
  --green: #c8dcb4;
  --orange: #f2c6a0;
  --tape: rgba(241, 222, 156, 0.75);
  --brand: #2451f7;
  --brand-ink: #2451f7;
  --cream: #f3f3e9;
  --butter: #f4dc8c;
  --sun: inline;
  --moon: none;
  --sun-b: block;
  --moon-b: none;
  --font-hand:
    "Special Elite", "Noto Sans TC", "Courier New", Courier, monospace;
  --font-note:
    "Special Elite", "Noto Sans TC", "Courier New", Courier, monospace;
  --font-round:
    "Zen Maru Gothic", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    system-ui, sans-serif;
  --font-body:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #181713;
    --paper-2: #222019;
    --ink: #f0ebdf;
    --ink-soft: #b4ac9e;
    --line-faint: rgba(240, 235, 223, 0.09);
    --red: #6f3f39;
    --blue: #32506a;
    --yellow: #6a5c2b;
    --green: #44573a;
    --orange: #70502f;
    --tape: rgba(106, 92, 43, 0.8);
    --brand: #1e3fc4;
    --brand-ink: #8ea6ff;
    --butter: #e6cb74;
    --sun: none;
    --moon: inline;
    --sun-b: none;
    --moon-b: block;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #181713;
  --paper-2: #222019;
  --ink: #f0ebdf;
  --ink-soft: #b4ac9e;
  --line-faint: rgba(240, 235, 223, 0.09);
  --red: #6f3f39;
  --blue: #32506a;
  --yellow: #6a5c2b;
  --green: #44573a;
  --orange: #70502f;
  --tape: rgba(106, 92, 43, 0.8);
  --brand: #1e3fc4;
  --brand-ink: #8ea6ff;
  --butter: #e6cb74;
  --sun: none;
  --moon: inline;
  --sun-b: none;
  --moon-b: block;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2.5px dashed var(--ink);
  outline-offset: 5px;
}

.wrap {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0 0.33 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

main,
footer,
.hero {
  overflow-x: clip;
}

/* ---------- doodle svg base ---------- */
.doodle {
  overflow: visible;
}

.doodle .ln {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doodle .thin {
  stroke-width: 1.8;
}

.doodle .ink {
  fill: var(--ink);
  stroke: none;
}

.doodle .paper {
  fill: var(--paper);
}

.doodle .f-red {
  fill: var(--red);
}

.doodle .f-blue {
  fill: var(--blue);
}

.doodle .f-yellow {
  fill: var(--yellow);
}

.doodle .f-green {
  fill: var(--green);
}

.doodle .f-orange {
  fill: var(--orange);
}

.doodle text {
  fill: var(--ink);
  font-family: var(--font-hand);
}

/* ---------- rough boxes (JS-drawn) ---------- */
.has-rough {
  position: relative;
  isolation: isolate;
}

.rough {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}

.rough .e2 {
  stroke-width: 1.1;
  opacity: 0.55;
}

.rough .edge {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rough .solid {
  fill: var(--ink);
}

.rough .hatch {
  fill: none;
  stroke: var(--hatch, var(--yellow));
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.15s;
}

.rough .hatch.on {
  opacity: 1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-hand);
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  flex: none;
  padding: 16px 26px 14px;
  text-decoration: none;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.12s steps(2);
}

.btn .br {
  opacity: 0.55;
}

.btn:hover {
  transform: rotate(-1.5deg) translateY(-2px);
}

.btn:hover {
  color: var(--brand-ink);
}

.btn:hover .rough .edge {
  stroke: var(--brand-ink);
}

.btn:active {
  transform: rotate(1deg) translateY(1px);
}

.btn--solid {
  color: var(--paper);
}

.btn--solid .br {
  opacity: 0.6;
}

.anno .sub {
  font-size: 1rem;
  color: var(--ink-soft);
}

#candleHit {
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#cake {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

#candleHit:focus-visible + #focusRing {
  opacity: 1;
}

#focusRing {
  opacity: 0;
}

.hold-hint {
  display: none;
  font-family: var(--font-note);
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.hold-hint .t-sun,
.hold-hint .t-moon {
  white-space: nowrap;
}

/* ---------- hero ---------- */
.hero {
  --dot: rgba(255, 255, 255, 0.6);
  /* 白色小波點（兩層錯開） */
  background:
    radial-gradient(circle, var(--dot) 0 3px, transparent 3.6px) 0 0/34px 34px,
    radial-gradient(circle, var(--dot) 0 3px, transparent 3.6px) 17px 17px/34px
      34px,
    var(--paper);
  transition: background-color 0.35s ease;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding-block: 8px 0;
}

#cake {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
  height: clamp(320px, 64vh, 620px);
  width: auto;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.stage .anno {
  z-index: 2;
}

.bday {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: var(--moon);
  place-content: center;
  justify-items: center;
  font-family: "Noto Sans TC", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(60px, 12.5vw, 196px);
  line-height: 0.84;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
  transform: rotate(-4deg) skewX(-3deg);
  transform-origin: 50% 45%;
  margin-top: -12vh;
}

.tagline,
.ctas {
  position: relative;
  z-index: 2;
}

.hero > .wrap {
  width: 100%;
}

.bday span {
  display: block;
  white-space: nowrap;
}

.bday .bl2 {
  margin-left: 0.35em;
}

.bday .ltr {
  display: inline-block;
}

.bday.js {
  display: grid;
}

.bday.js .ltr {
  visibility: hidden;
}

.doodle .bl {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cake .rays .bl {
  stroke-width: 7;
}

.tagline {
  text-align: center;
  display: grid;
  gap: 4px;
  margin-top: -6px;
}

.tagline .en {
  font-family: var(--font-hand);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.2;
}

.tagline .zh {
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 26px;
  margin-top: 22px;
  position: relative;
}

/* 桌機（>=768px）：兩顆按鈕與蛋糕水平置中，分居左右兩側 */
@media (min-width: 768px) {
  .stage {
    grid-template-columns: 1fr auto 1fr;
  }

  #cake {
    grid-column: 2;
    grid-row: 1;
  }

  .ctas {
    display: contents;
  }

  .ctas .btn {
    grid-row: 1;
    align-self: end;
    margin-bottom: 2vh;
    position: relative;
    z-index: 3;
    font-size: clamp(20px, 2.2vw, 28px);
    padding: clamp(18px, 2vw, 26px) clamp(24px, 3vw, 40px)
      clamp(16px, 1.8vw, 24px);
  }

  .ctas .btn {
    transform: translate(var(--tx), 0);
  }

  .ctas .btn:hover {
    transform: translate(var(--tx), -2px) rotate(-1.5deg);
  }

  .ctas .btn:active {
    transform: translate(var(--tx), 1px) rotate(1deg);
  }

  .ctas .btn:first-child {
    grid-column: 1;
    justify-self: start;
  }

  .ctas .btn:last-child {
    grid-column: 3;
    justify-self: end;
  }
}

.news {
  position: absolute;
  left: 0;
  top: 19%;
  z-index: 3;
  width: 230px;
  height: 340px;
}

@media (width>=1600px) {
  .news {
    left: -10%;
  }
}

.note-pad {
  position: absolute;
  display: block;
  width: 200px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-round);
  color: #111;
  text-decoration: none;
  filter: drop-shadow(0 12px 8px rgba(0, 0, 0, 0.26))
    drop-shadow(0 2px 1px rgba(0, 0, 0, 0.18));
  transition:
    transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1),
    filter 0.25s;
  animation: note-in 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

.note-1 {
  left: 0;
  top: 0;
  transform: rotate(-6deg);
  animation-delay: 1.9s;
}

.note-2 {
  left: 34px;
  top: 160px;
  transform: rotate(4.5deg);
  animation-delay: 2.05s;
}

.note-pad:hover {
  transform: rotate(-1deg) translateY(-6px) scale(1.04);
  z-index: 2;
  filter: drop-shadow(0 18px 12px rgba(0, 0, 0, 0.3))
    drop-shadow(0 2px 1px rgba(0, 0, 0, 0.18));
}

.note-2:hover {
  transform: rotate(1deg) translateY(-6px) scale(1.04);
}

@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(-24px) rotate(0deg) scale(0.9);
  }
}

/* 彎曲的紙邊由 JS 畫（data-rough="note"），這裡只負責填色 */
.note-pad {
  --c: #bfedf9;
}

.note-pad > .rough .solid {
  fill: var(--c);
}

.note-in {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 26px 20px 28px;
}

/* 頂端半透明膠帶（有點彎曲） */
.note-pad::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 30px;
  height: 30px;
  z-index: 1;
  background: rgb(57 80 242);
  transform: translateX(-50%) rotate(-3deg);
  border-radius: 40% 60% 45% 55%/60% 40% 60% 40%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.note-date {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: rgba(17, 17, 17, 0.6);
}

.note-title {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
}

.note-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.8);
}

/* 點開後：便利貼飛到畫面中間放大 */
.note-modal {
  position: fixed;
  inset: 0;
  z-index: 9300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.note-modal[hidden] {
  display: none;
}

.note-back {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.note-big {
  position: relative;
  width: min(400px, 88vw);
  animation: none;
  cursor: default;
  transform: rotate(-1.5deg);
  z-index: 1;
}

.note-big:hover {
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 12px 8px rgba(0, 0, 0, 0.26))
    drop-shadow(0 2px 1px rgba(0, 0, 0, 0.18));
}

.note-big .note-in {
  padding: 44px 34px 40px;
  gap: 10px;
}

.note-big .note-date {
  font-size: 1rem;
}

.note-big .note-title {
  font-size: clamp(24px, 3vw, 30px);
}

.note-big .note-text {
  font-size: 16px;
  line-height: 1.75;
}

.note-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: #111;
  cursor: pointer;
  font-family: var(--font-round);
}

.note-x:hover {
  opacity: 0.6;
}

.note-go {
  --ink: #111111;
  --paper: #ffffff;
  --brand: #2451f7;
  justify-self: start;
  margin-top: 12px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 18px;
}

/* <1200px（RWD）：蛋糕與按鈕留大一點的間距；便利貼移到按鈕下方
   >=576px 一列兩張（col-6 / col-6），<576px 一列一張（col-12），仍保留歪斜 */
@media (max-width: 1199px) {
  .stage {
    row-gap: 44px;
    padding-block: 28px 12px;
  }

  .ctas .btn {
    scale: 0.7;
  }

  .ctas .btn:first-child,
  .ctas .btn:last-child {
    --tx: 0px;
  }

  /* 蛋糕高度跟著視窗高度縮放，確保一進來不用捲動就看得到兩顆按鈕 */
  #cake {
    height: clamp(240px, calc(100svh - 440px), 520px);
    margin-block: 20px 28px;
  }

  .ctas {
    margin-top: 0;
    gap: 24px 28px;
  }

  .news {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px 28px;
    justify-items: center;
    padding: 44px 0 16px;
    order: 3;
  }

  .news .note-pad {
    position: relative;
    left: auto;
    top: auto;
    width: min(280px, 100%);
  }
}

@media (max-width: 575px) {
  .news {
    grid-template-columns: 1fr;
  }

  .news .note-pad {
    width: min(420px, 100%);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .news {
    grid-column: 1/-1;
    grid-row: 2;
  }
}

.anno {
  position: absolute;
  font-family: var(--font-note);
  font-size: 17px;
  line-height: 1.1;
  color: var(--ink);
  pointer-events: none;
}

.anno svg {
  display: block;
}

.anno--wish {
  right: calc(50% - 330px);
  top: 2%;
  transform: rotate(5deg);
  text-align: right;
}

.anno--wish svg {
  width: 190px;
  height: 70px;
  margin: 4px 0 0 -70px;
}

.anno--start {
  right: calc(100% + 6px);
  top: -24px;
  transform: rotate(-4deg);
  white-space: nowrap;
}

.anno--start svg {
  width: 90px;
  height: 46px;
  margin: 2px 0 0 40px;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-block: 20px 26px;
  font-family: var(--font-note);
  font-size: 1rem;
  color: var(--ink-soft);
}

.hero-foot .scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-foot .scroll svg {
  width: 18px;
  height: 34px;
  animation: bob 1.6s steps(3) infinite;
}

@keyframes bob {
  50% {
    transform: translateY(5px);
  }
}

/* ---------- ticker ---------- */
.ticker {
  border-block: 0;
  overflow: hidden;
  padding-block: 14px;
  position: relative;
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 C40 2 60 8 100 5 S160 1 200 6 S280 8 320 4 S380 3 400 6' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    0 0/400px 10px repeat-x;
}

.ticker::before {
  top: 0;
}

.ticker::after {
  bottom: 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 38s linear infinite;
}

.ticker-track span {
  font-family: var(--font-hand);
  font-size: 21px;
  white-space: nowrap;
  padding-inline: 18px;
}

.ticker-track span:nth-child(odd) {
  color: var(--ink-soft);
}

@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- section heads ---------- */
section.block {
  padding-block: clamp(80px, 11vw, 140px);
}

.head {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(40px, 6vw, 64px);
  position: relative;
}

.head h2 {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1;
  margin: 0;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.head .scribble {
  width: min(420px, 70%);
  height: 22px;
  margin-top: -4px;
}

.head .scribble path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
}

.head p {
  margin: 0;
  max-width: 34em;
  color: var(--ink-soft);
}

.head .side {
  position: absolute;
  right: 0;
  top: 10px;
  font-family: var(--font-note);
  font-size: 17px;
  transform: rotate(4deg);
  text-align: right;
  line-height: 1.15;
}

.hl {
  background: linear-gradient(
    transparent 55%,
    var(--hl, var(--yellow)) 55%,
    var(--hl, var(--yellow)) 92%,
    transparent 92%
  );
  padding-inline: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- cake look: scroll carousel ---------- */
.cl {
  position: relative;
  padding-block: 40px;
}

.cl-pin {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding-block: 32px 22px;
  overflow: hidden;
}

.cl-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 32px;
  width: 100%;
  flex-wrap: wrap;
  position: relative;
  z-index: 120;
}

.cl-meta {
  width: min(400px, 100%);
}

.cl-meta .lettering {
  height: clamp(48px, 6.5vw, 92px);
  margin: 0 0 10px;
  max-width: 100%;
  background: var(--ink);
  -webkit-mask: var(--m) left center/contain no-repeat;
  mask: var(--m) left center/contain no-repeat;
}

.cl-table {
  margin: 0;
  display: grid;
}

.cl-table div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1.5px solid var(--ink);
  padding: 7px 0 6px;
}

.cl-table dt {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.cl-table dd {
  margin: 0;
  text-align: right;
  font-family: var(--font-hand);
  font-size: 18px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.cl-table dd small {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.cl-lead {
  margin: 6px 0 0;
  max-width: 22em;
  font-size: 1rem;
  color: var(--ink-soft);
  text-align: right;
}

.cl-hint {
  display: block;
  font-family: var(--font-note);
  font-size: 1rem;
  margin-top: 6px;
  color: var(--ink);
}

/* fallback (no JS): a simple swipe strip */
.cl-stage {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  align-items: center;
  padding: 30px 20px;
  scroll-snap-type: x mandatory;
}

.cl-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}

.cl-item img {
  display: block;
  height: min(40vh, 340px);
  width: auto;
  max-width: 78vw;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px rgba(40, 30, 20, 0.16))
    drop-shadow(0 12px 16px rgba(40, 30, 20, 0.14));
  -webkit-user-drag: none;
  user-select: none;
}

.cl-blank .blank-in {
  position: relative;
  display: grid;
  place-items: center;
  width: min(34vh, 280px);
  aspect-ratio: 1;
}

.cl-blank svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cl-blank .blank-txt {
  font-family: var(--font-hand);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.2;
  text-align: center;
}

.cl-blank small {
  display: block;
  font-size: max(1rem, 0.7em);
  color: var(--ink-soft);
  margin-top: 6px;
}

.cl-ring {
  display: none !important;
}

.cl-item img {
  transition:
    transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1),
    filter 0.35s;
}

.cl-item:hover img,
.cl-item:focus-visible img {
  transform: translateY(-18px) scale(1.04);
  filter: drop-shadow(0 6px 4px rgba(40, 30, 20, 0.12))
    drop-shadow(0 30px 26px rgba(40, 30, 20, 0.2));
}

/* enhanced: pinned 3D carousel */
.cl.cl-3d .cl-stage {
  display: block;
  position: relative;
  overflow: visible;
  padding: 0;
  perspective: 1400px;
  scroll-snap-type: none;
}

.cl.cl-3d .cl-item {
  position: absolute;
  left: 50%;
  top: 50%;
  will-change: transform;
  transform-style: preserve-3d;
}

.cl.cl-3d .cl-item img {
  height: var(--ih);
  max-width: none;
}

.cl.cl-3d .cl-blank .blank-in {
  width: calc(var(--ih) * 0.85);
}

.cl.cl-3d .cl-ring {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 110;
}

.cl-ring path {
  fill: none;
  stroke: var(--brand-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cl {
  --ih: min(44vh, 400px);
}

.cl-info {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  min-height: 118px;
  padding-inline: 20px;
  position: relative;
  z-index: 120;
}

.cl-label {
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

.cl-quote {
  margin: 0;
  font-family: var(--font-round);
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.25;
  max-width: 22em;
  min-height: 1.25em;
}

.cl-quote::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.08em;
  background: var(--ink);
  margin-left: 3px;
  vertical-align: 0.1em;
  animation: caret 1s steps(2) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.cl-tap {
  font-family: var(--font-note);
  font-size: 1rem;
  color: var(--ink-soft);
}

.cl-progress {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 16px auto 0;
}

.cl-progress span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.18;
  transition:
    opacity 0.25s,
    transform 0.25s;
}

.cl-progress span.on {
  opacity: 0.85;
}

@media (max-width: 700px) {
  .cl {
    --ih: min(32vh, 270px);
  }

  .cl-top {
    flex-direction: column;
  }

  .cl-lead {
    text-align: left;
  }

  .cl-info {
    min-height: 108px;
  }
}

/* lightbox */
.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(3px);
}

.lb-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--paper);
  padding: 34px;
  transform: rotate(-0.6deg);
}

.lb-pic img {
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(40, 30, 20, 0.18));
}

.lb-txt {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
}

.lb-count {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

/* 中文在上（標題）、英文在下（小字） */
.lb-txt h3.lb-zh {
  margin: 0;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.lb-en {
  font-family: var(--font-hand);
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--ink-soft);
  line-height: 1;
}

.lb-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lb-txt p {
  margin: 6px 0 10px;
  color: var(--ink-soft);
}

.lb-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.lb-x {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
}

@media (max-width: 700px) {
  .lb-card {
    grid-template-columns: 1fr;
    padding: 26px 20px;
    gap: 14px;
  }

  .lb-pic img {
    max-height: 46vh;
  }
}

/* ---------- cake look ---------- */
.looks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
}

.look {
  padding: 22px 22px 26px;
  display: grid;
  gap: 10px;
  align-content: start;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.2s;
}

.look:hover {
  animation: jitter 0.3s steps(2) infinite;
}

@keyframes jitter {
  0% {
    transform: rotate(calc(var(--r, 0deg) - 0.8deg));
  }

  100% {
    transform: rotate(calc(var(--r, 0deg) + 0.8deg));
  }
}

.look:nth-child(1) {
  --r: -0.6deg;
  grid-column: span 2;
}

.look:nth-child(2) {
  --r: 1.2deg;
}

.look:nth-child(3) {
  --r: -1deg;
}

.look:nth-child(4) {
  --r: 0.8deg;
}

.look:nth-child(5) {
  --r: -1.4deg;
}

.look .tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 96px;
  height: 26px;
  background: var(--tape);
  transform: translateX(-50%) rotate(-4deg);
  clip-path: polygon(
    2% 12%,
    10% 0,
    22% 10%,
    36% 2%,
    50% 9%,
    64% 0,
    78% 8%,
    92% 1%,
    100% 14%,
    98% 88%,
    88% 100%,
    74% 91%,
    60% 99%,
    46% 90%,
    30% 100%,
    16% 92%,
    0 98%
  );
}

.look:nth-child(even) .tape {
  left: 30%;
  transform: rotate(5deg);
}

.look .pic {
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  max-width: 100%;
}

.look:nth-child(1) .pic {
  aspect-ratio: auto;
}

.look .pic svg {
  width: 100%;
  height: 100%;
  max-height: 240px;
}

.look:nth-child(1) .pic svg {
  max-height: 360px;
}

.look .name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.look h3 {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  margin: 0;
}

.look .zh {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.look p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 36em;
}

.look .spec {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.look .spec b {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1rem;
  margin-right: 6px;
  color: var(--ink-soft);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-note);
  font-size: 22px;
  padding: 6px 14px;
  transform: rotate(8deg);
}

.look-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px 28px;
  align-items: center;
}

.look-feature .txt {
  display: grid;
  gap: 10px;
}

/* ---------- process ---------- */
.process {
  background: radial-gradient(
      circle,
      var(--line-faint) 1.2px,
      transparent 1.6px
    )
    0 0/24px 24px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

.step {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 640px;
  position: relative;
}

.step:nth-child(2) {
  margin-left: 9%;
}

.step:nth-child(3) {
  margin-left: 18%;
}

.step:nth-child(4) {
  margin-left: 27%;
}

.step:nth-child(5) {
  margin-left: 36%;
}

.num {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  font-family: var(--font-hand);
  font-size: 28px;
  line-height: 1;
}

.step h3 {
  margin: 0 0 4px;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
}

.step h3 span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-left: 10px;
  vertical-align: 4px;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.step .aside {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-note);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink);
  transform: rotate(-2deg);
}

.step .arrow {
  position: absolute;
  left: 24px;
  top: 76px;
  width: 70px;
  height: 48px;
}

.step .arrow path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(56px, 8vw, 90px);
}

.note {
  padding: 20px 20px 22px;
  --hatch: var(--yellow);
}

.note:nth-child(1) {
  transform: rotate(-1.2deg);
}

.note:nth-child(2) {
  transform: rotate(0.8deg);
}

.note:nth-child(3) {
  transform: rotate(-0.5deg);
}

.note h4 {
  margin: 0 0 8px;
  font-family: var(--font-note);
  font-size: 18px;
  line-height: 1;
}

.note p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

.go {
  margin-top: clamp(56px, 8vw, 90px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.go .big {
  font-family: var(--font-hand);
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.05;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.doki-fig {
  position: relative;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}

.doki-fig svg {
  width: 100%;
  height: auto;
}

.doki-fig .doodle text {
  font-family: var(--font-note);
  font-size: 16px;
}

.about-copy {
  display: grid;
  gap: 18px;
}

.about-copy .quote {
  font-family: var(--font-hand);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  margin: 0;
}

.about-copy p {
  margin: 0;
  max-width: 34em;
}

.believe {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-family: var(--font-note);
  font-size: 17px;
  line-height: 1.4;
}

.believe li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.believe svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.believe s {
  text-decoration: none;
  position: relative;
}

.believe s::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7 L20 4 L10 8 L40 3 L30 9 L70 4 L58 8 L98 5' fill='none' stroke='%23d0473a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/100% 100% no-repeat;
}

.believe.strike-pre s::after {
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.6, 0, 0.3, 1) 0.1s;
}

.believe.strike-pre.strike-on s::after {
  transform: translateY(-50%) scaleX(1);
}

/* ---------- goods ---------- */
.goods-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.good {
  padding: 24px;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
}

.good svg {
  width: 100%;
  height: 170px;
}

.good .doodle .ln {
  stroke: var(--ink-soft);
  stroke-dasharray: 7 7;
}

.good h3 {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 28px;
  color: var(--ink);
  line-height: 1.1;
}

.good p {
  margin: 0;
  font-size: 1rem;
}

.stamp {
  display: inline-block;
  font-family: var(--font-note);
  font-size: 24px;
  padding: 4px 14px;
  transform: rotate(-5deg);
  margin-left: 10px;
  vertical-align: middle;
}

.cake-first {
  margin-top: 36px;
  font-family: var(--font-note);
  font-size: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cake-first svg {
  width: 70px;
  height: 34px;
}

/* ---------- make a cake: card pile ---------- */
.mk {
  position: relative;
  --card: #fbfbf5;
}

:root[data-theme="dark"] .mk {
  --card: #24221d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mk {
    --card: #24221d;
  }
}

.mk-pin {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: 60px;
  overflow: hidden;
}

.mk-title {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-inline: 20px;
  position: relative;
  z-index: 0;
}

.mk-kicker {
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-ink);
}

.mk-title .lettering {
  height: clamp(64px, 12vw, 176px);
  margin: 0;
  max-width: 92vw;
  background: var(--ink);
  -webkit-mask: var(--m) center/contain no-repeat;
  mask: var(--m) center/contain no-repeat;
}

.mk-sub {
  margin: 0;
  font-family: var(--font-hand);
  font-size: clamp(1rem, 1.5vw, 18px);
  color: var(--ink-soft);
}

.mk-cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 28px;
  padding: 40px 20px 0;
  width: 100%;
}

.mk-card {
  position: relative;
  width: min(340px, 84vw);
  background: var(--card);
  padding: 34px 28px 28px;
  display: grid;
  gap: 8px;
  align-content: start;
  box-shadow:
    0 2px 3px rgba(40, 30, 20, 0.06),
    0 18px 40px rgba(40, 30, 20, 0.13);
}

.mk-tab {
  position: absolute;
  top: -22px;
  left: 22px;
  background: var(--card);
  padding: 5px 14px 3px;
  font-family: var(--font-hand);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  border-radius: 4px 4px 0 0;
}

.mk-ico {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 70px;
  height: 70px;
}

.mk-no {
  font-family: var(--font-hand);
  font-size: clamp(52px, 6vw, 74px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.mk-card h3 {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(19px, 1.8vw, 22px);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.mk-card h3 small {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin-top: 6px;
}

.mk-card p {
  margin: 4px 0 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

.mk-aside {
  font-family: var(--font-note);
  font-size: 1rem;
  color: var(--brand-ink);
  transform: rotate(-2deg);
  margin-top: 6px;
  justify-self: start;
}

.mk-dots {
  display: none;
}

/* enhanced: pinned pile */
.mk.mk-3d .mk-title {
  position: absolute;
  inset: 0;
  align-content: center;
}

.mk.mk-3d .mk-cards {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  z-index: 2;
}

.mk.mk-3d .mk-card {
  position: absolute;
  left: 50%;
  top: 50%;
  will-change: transform;
}

.mk.mk-3d .mk-dots {
  display: flex;
  gap: 10px;
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 20;
}

.mk-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-hand);
  font-size: 1rem;
  background: var(--paper-2);
  color: var(--ink-soft);
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}

.mk-dot.on {
  background: var(--butter);
  color: var(--ink);
  transform: scale(1.12);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.mk-after {
  padding-block: 10px clamp(70px, 9vw, 120px);
}

.mk-after .notes {
  margin-top: 30px;
}

/* 只有首頁 banner（hero）使用主題底色（淺色=綠、深色=黑）；其餘區塊一律白底，
   文字／線條色固定用淺色模式的深色，深色模式也不受影響 */
main {
  --paper: #ffffff;
  --paper-2: #f2f2ec;
  --ink: #111111;
  --ink-soft: #5a554d;
  --line-faint: rgba(17, 17, 17, 0.1);
  --brand-ink: #2451f7;
  --tape: rgba(241, 222, 156, 0.75);
  --red: #f0b9b0;
  --blue: #b9d1e4;
  --yellow: #f1de9c;
  --green: #c8dcb4;
  --orange: #f2c6a0;
  --butter: #f4dc8c;
  background: #ffffff;
  color: var(--ink);
}

/* make a cake: paper board + rounded cards */
.mk-pin {
  --ink: #141414;
  --ink-soft: #3e4a5c;
  color: var(--ink);
}

.mk-board {
  position: absolute;
  inset: 14px;
  z-index: 0;
  border: 70px solid transparent;
  border-image: url("../images/steps/board.webp") 70 fill round;
  pointer-events: none;
}

.mk-title {
  z-index: 1;
}

.mk-title .mk-sub {
  color: #3e4a5c;
}

.mk-card {
  border-radius: 26px;
  background: #ffffff;
  padding: 18px 18px 22px;
  box-shadow:
    0 2px 4px rgba(36, 81, 247, 0.08),
    0 20px 40px rgba(36, 81, 247, 0.18);
  gap: 6px;
}

.mk-card > *:not(.mk-pic):not(.mk-tab) {
  margin-inline: 10px;
}

.mk-tab {
  top: -15px;
  left: 22px;
  background: var(--butter);
  color: #1b2a6b;
  border-radius: 999px;
  padding: 6px 14px 5px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.mk-pic {
  height: 128px;
  border-radius: 18px;
  background: #cfe3fb;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 8px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 18px 18px;
}

.mk-pic img {
  max-height: 100px;
  max-width: 78%;
  width: auto;
  height: auto;
}

.mk-no {
  font-size: clamp(40px, 4.4vw, 56px);
}

.mk-card h3 {
  margin-top: 0;
}

.mk-dot {
  background: rgba(255, 255, 255, 0.7);
  color: #3e4a5c;
}

@media (max-width: 700px) {
  .mk-board {
    inset: 8px;
    border-width: 44px;
  }

  .mk-pic {
    height: 104px;
  }

  .mk-pic img {
    max-height: 82px;
  }
}

/* ---------- brand blue as accent ink ---------- */
.btn--solid,
.btn--solid:hover {
  color: var(--paper);
}

.btn--solid .rough .solid {
  fill: var(--ink);
  transition: fill 0.2s;
}

.btn--solid:hover .rough .solid,
.btn--solid:focus-visible .rough .solid {
  fill: var(--brand);
}

.btn--solid:hover {
  color: var(--cream);
}

.rough .edge {
  transition: stroke 0.2s;
}

.num {
  color: var(--brand-ink);
}

.num .rough .edge {
  stroke: var(--brand-ink);
}

.step .aside {
  color: var(--brand-ink);
}

.step .aside .hl {
  --hl: rgba(36, 81, 247, 0.14);
}

.head .scribble path {
  stroke: var(--brand-ink);
}

.cl-label {
  color: var(--brand-ink);
}

/* 小顆手繪框按鈕（modal 的 prev / next）：清掉瀏覽器預設的灰底、邊框，只留 data-rough 畫的框 */
.chip {
  font-family: var(--font-hand);
  font-size: 1rem;
  line-height: 1;
  padding: 9px 16px 8px;
  color: var(--ink);
  background: none;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: transform 0.12s steps(2);
}

.chip:hover {
  transform: rotate(-1.5deg) translateY(-2px);
}

.chip:hover .rough .edge {
  stroke: var(--brand-ink);
}

.chip.on,
.chip:hover {
  color: var(--brand-ink);
}

/* ---------- initial states for intro ---------- */
.js-anim .hero [data-a] {
  visibility: hidden;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .anno--wish {
    display: none;
  }

  .hold-hint {
    display: block;
  }

  .bday {
    font-size: 16vw;
    margin-top: 0;
    place-content: start center;
    padding-top: 2vh;
  }

  .bday .bl2 {
    margin-left: 0;
  }

  .looks {
    grid-template-columns: repeat(2, 1fr);
  }

  .look-feature {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .notes {
    grid-template-columns: 1fr 1fr;
  }

  .step:nth-child(n) {
    margin-left: 0;
  }

  .head .side {
    position: static;
    transform: rotate(-2deg);
    text-align: left;
  }
}

@media (max-width: 700px) {
  .anno--start {
    display: none;
  }

  .looks {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .look:nth-child(1) {
    grid-column: auto;
  }

  .goods-row,
  .notes {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
  }

  .num {
    width: 54px;
    height: 54px;
    font-size: 30px;
  }

  .step .arrow {
    display: none;
  }

  .btn {
    font-size: 20px;
    padding: 14px 20px 12px;
  }

  .hero-foot .right {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker-track,
  .hero-foot .scroll svg {
    animation: none;
  }

  .look:hover {
    animation: none;
  }
}

:root[data-theme="dark"] .hero {
  --dot: rgba(255, 255, 255, 0.07);
}

/* ---------- 自訂滑鼠游標 ----------
   預設：白色箭頭（images/cursor/default.png，來自 cursor_white.svg）；遇到可點擊的東西：手指往左傾斜 20°（hand-tilt.png，來自 hand_cursor_transparent.svg）
   熱點：default 為 3 2（箭頭尖端），hand-tilt 為 11 11（食指尖）；@2x 給高解析螢幕 */
html,
html *,
html .note-big {
  cursor:
    url("../images/cursor/default.png") 3 2,
    auto;
  cursor:
    -webkit-image-set(
        url("../images/cursor/default.png") 1x,
        url("../images/cursor/default@2x.png") 2x
      )
      3 2,
    auto;
  cursor:
    image-set(
        url("../images/cursor/default.png") 1x,
        url("../images/cursor/default@2x.png") 2x
      )
      3 2,
    auto;
}
html
  :is(
    a[href],
    button:not(:disabled),
    summary,
    [role="button"],
    .cl-item,
    .note-pad:not(.note-big),
    .note-back,
    .btn,
    .chip,
    #candleHit,
    .burger,
    .drawer-x,
    .theme-toggle,
    .note-x,
    .lb-x,
    [data-drawer-close]
  ) {
  cursor:
    url("../images/cursor/hand-tilt.png") 11 11,
    pointer;
  cursor:
    -webkit-image-set(
        url("../images/cursor/hand-tilt.png") 1x,
        url("../images/cursor/hand-tilt@2x.png") 2x
      )
      11 11,
    pointer;
  cursor:
    image-set(
        url("../images/cursor/hand-tilt.png") 1x,
        url("../images/cursor/hand-tilt@2x.png") 2x
      )
      11 11,
    pointer;
}

/* ---------- DOKI 大字（滑下來時，字母一個一個彈出） ---------- */
.doki-big {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #ffffff;
  color: #2868ff;
  padding-block: clamp(70px, 11vw, 180px) clamp(50px, 7vw, 110px);
}
.doki-letters {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.01em;
  font-family: "Zen Maru Gothic", "Noto Sans TC", sans-serif;
  font-weight: 700;
  font-size: clamp(130px, 31vw, 520px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: #2868ff;
}
.dk {
  display: inline-block;
  will-change: transform;
}
.dk i {
  display: inline-block;
  font-style: normal;
}
.doki-sub {
  margin: clamp(14px, 2vw, 30px) 0 0;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 20px);
  letter-spacing: 0.16em;
  color: #2868ff;
  margin-top: 150px;
  margin-bottom: 50px;
}
