/* ============================================================
   9am studio — 千禧古早中式夢核
   ============================================================ */

/* Pixel 只用於英文及數字；中文一律 fallback 到普通黑體。 */
@font-face {
  font-family: "DotGothic16";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/dotgothic16.ttf") format("truetype");
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-21FF, U+2600-26FF;
}

:root {
  /* 色票：天空奶白淡藍 × CCD 黃綠偏色 × Y2K 螢光點綴 */
  --sky-top: #dbeaf7;
  --sky-mid: #eef4f4;
  --sky-bot: #fdf8ec;
  --ink: #3a3f52;
  --ink-soft: #6a7089;
  --paper: #fffdf6;
  --pink: #ff5fa8;
  --pink-soft: #ffd6ea;
  --blue: #4d7cff;
  --peri: #b3c0fe;
  --sun: #ffe9a8;
  --mint: #cfe3c4;
  --card-shadow: rgba(58, 63, 82, .22);
  --win-bg: #f0efe4;
  --win-bar: #2b579a;
  --font-display: "Cormorant Garamond", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-pixel: "DotGothic16", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", monospace;
}

html[data-theme="night"] {
  --sky-top: #23243f;
  --sky-mid: #4a3a63;
  --sky-bot: #c96f8e;
  --ink: #f2eeff;
  --ink-soft: #b9b3d6;
  --paper: #332f52;
  --pink: #ff7ec0;
  --pink-soft: #6b4073;
  --blue: #8fa8ff;
  --peri: #8f9bd8;
  --sun: #ffd98a;
  --mint: #4c5e6b;
  --card-shadow: rgba(8, 8, 26, .55);
  --win-bg: #3a3752;
  --win-bar: #4a3a63;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sky-bot);
  min-height: 100dvh;
  overflow-x: hidden;
  isolation: isolate;
  transition: background .6s ease, color .6s ease;
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; color: inherit; }

/* ---------- 天空背景 ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  will-change: transform;
  transition: transform .6s cubic-bezier(.22,.8,.3,1);
}
.sky-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bot) 100%);
  transition: background .8s ease;
}
html[data-theme="day"] .sky-gradient {
  background: url("../assets/bg/day-sky-poster.jpg") center / cover no-repeat;
}
html[data-theme="night"] .sky-gradient {
  background:
    linear-gradient(180deg, rgba(10, 15, 38, .28) 0%, rgba(20, 14, 35, .42) 100%),
    url("../assets/bg/night-playground.jpg") center 58% / cover no-repeat;
}
html[data-theme="day"] .clouds { display: none; }
html[data-theme="day"] .glow { opacity: .16; }
.glow {
  position: absolute; left: 50%; top: 8%; width: 60vmin; height: 60vmin;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--sun) 0%, transparent 65%);
  opacity: .55; filter: blur(10px);
  transition: background .8s ease, opacity .8s ease;
}
html[data-theme="night"] .glow { opacity: .12; top: 60%; background: radial-gradient(circle, #ffb27a 0%, transparent 65%); }

.cloud { position: absolute; width: 260px; }
.c1 { top: 6%; left: -280px; animation: drift 70s linear infinite; }
.c2 { top: 18%; left: -280px; width: 190px; animation: drift 95s linear infinite 12s; }
.c3 { top: 2%;  left: -280px; width: 330px; animation: drift 120s linear infinite 30s; }
.c4 { top: 28%; left: -280px; width: 150px; animation: drift 80s linear infinite 50s; }
@keyframes drift { to { transform: translateX(calc(100vw + 560px)); } }
html[data-theme="night"] .cloud { opacity: 0; }

.stars { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
html[data-theme="night"] .stars { opacity: 1; }
.star-dot { position: absolute; background: #fff; border-radius: 50%; animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }

#noiseCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .06; mix-blend-mode: multiply; pointer-events: none;
}
html[data-theme="night"] #noiseCanvas { mix-blend-mode: screen; opacity: .08; }

/* ---------- 自訂游標 ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  transform: translate(-4px, -2px); display: none;
  filter: drop-shadow(1px 2px 0 rgba(58,63,82,.35));
}
@media (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button,
  body.has-cursor input, body.has-cursor textarea, body.has-cursor label { cursor: none; }
  body.has-cursor .cursor { display: block; }
}

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 22px;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: none;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand-logo-img {
  display: block; height: 44px; width: auto; max-width: 76px;
  object-fit: contain; transition: transform .35s ease;
  filter: brightness(0) saturate(100%) invert(72%) sepia(22%) saturate(1250%) hue-rotate(296deg) brightness(102%) contrast(100%) drop-shadow(1px 2px 0 rgba(255,255,255,.45));
}
.brand:hover .brand-logo-img { transform: rotate(-3deg) scale(1.06); }
html[data-theme="night"] .brand-logo-img { filter: invert(1) drop-shadow(1px 2px 0 rgba(255,126,192,.25)); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  position: relative; text-decoration: none; white-space: nowrap;
  font-family: "Cormorant Garamond", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 18px; font-weight: 600; font-style: italic; letter-spacing: .15px;
  padding: 6px 9px; border-radius: 0;
  transition: transform .2s ease;
}
.nav-link:hover {
  color: #fff; background: transparent; transform: translateY(-2px);
  text-shadow: 0 1px 6px rgba(58,63,82,.32);
}
.nav-link.is-active { background: transparent; color: var(--ink); }
.nav-link.is-active:hover { color: #fff; background: transparent; }

.header-tools { display: flex; gap: 8px; }
.tool-btn {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--ink); border-radius: 0;
  padding: 6px 11px; font-size: 13px;
  box-shadow: none;
  transition: transform .15s ease, color .15s ease;
}
.tool-btn:hover { transform: translateY(-1px); background: transparent; box-shadow: none; }
.tool-btn:active { transform: translateY(0); background: transparent; box-shadow: none; }
.tool-btn[aria-pressed="true"] { background: transparent; }
html[data-theme="night"] .icon-sun { display: none; }
html[data-theme="day"] .icon-moon { display: none; }
.cart-count {
  min-width: 18px; height: 18px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink); border-radius: 0;
  font-family: var(--font-pixel); font-size: 10px; border: 1px solid var(--ink);
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.5); } }

.menu-toggle { display: none; }

/* ---------- 頁面路由 ---------- */
main { position: relative; z-index: 1; min-height: calc(100dvh - 120px); }
.page { display: none; padding: 34px 5vw 70px; animation: pageIn .35s ease backwards; max-width: 1240px; margin: 0 auto; }
.page.is-active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }

.page-title { text-align: center; margin-bottom: 8px; }
.title-cn { display: block; font-family: var(--font-display); font-size: clamp(34px, 6vw, 52px); }
.title-en { display: block; font-family: var(--font-pixel); font-size: 12px; letter-spacing: 4px; opacity: .6; margin-top: 2px; }
.shiny-title .title-cn {
  background: linear-gradient(90deg, var(--pink), var(--blue), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hueSlide 5s linear infinite;
}
@keyframes hueSlide { to { filter: hue-rotate(360deg); } }
.page-lead { text-align: center; max-width: 56ch; margin: 10px auto 30px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- 首頁 intro ---------- */
.page-home { max-width: none; padding-top: 26px; }
.home-intro { text-align: center; }
.intro-tagline {
  font-size: 14px; letter-spacing: 3px; color: var(--ink-soft);
  max-width: 92vw; margin: 0 auto;
  transition: transform .55s cubic-bezier(.34,1.5,.44,1), opacity .38s ease;
  will-change: transform, opacity;
}
.intro-tagline.is-away {
  transform: translateY(-38px) scale(.9);
  opacity: 0; pointer-events: none;
}
.intro-logo { line-height: 1; margin: 8px 0 12px; }
.intro-logo-img {
  display: block; height: clamp(160px, 25vh, 230px); width: auto;
  max-width: min(82vw, 460px); object-fit: contain; margin: 0 auto;
  filter: brightness(0) saturate(100%) invert(72%) sepia(22%) saturate(1250%) hue-rotate(296deg) brightness(102%) contrast(100%) drop-shadow(3px 4px 0 rgba(255,255,255,.42)) drop-shadow(6px 7px 0 var(--pink-soft));
}
html[data-theme="night"] .intro-logo-img {
  filter: invert(1) drop-shadow(3px 4px 0 rgba(255, 126, 192, .28)) drop-shadow(6px 7px 0 rgba(143, 155, 216, .24));
}
/* ---------- Artwork Carousel ---------- */
.carousel-wrap { position: relative; margin: 6px -5vw 0; }
.carousel {
  position: relative; height: clamp(340px, 52vh, 470px);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  overflow: hidden;
}
.slide {
  position: absolute; left: 50%; top: 50%;
  width: clamp(160px, 21.5vw, 235px);
  will-change: transform;
  transition: filter .25s ease;
}
.slide-inner {
  position: relative; aspect-ratio: 537 / 657;
  background: none;
  border: 0; border-radius: 0; overflow: visible;
  box-shadow: none;
  filter: drop-shadow(0 6px 10px var(--card-shadow));
  transition: transform .25s ease, filter .25s ease;
}
.slide:hover .slide-inner {
  transform: translateY(-8px) rotate(0deg) !important;
  box-shadow: none;
  filter: drop-shadow(0 12px 18px var(--card-shadow));
}
.slide-img {
  position: absolute; top: 5.35%; left: 5.55%; z-index: 1;
  width: 88.9%; height: 75.25%; object-fit: cover; pointer-events: none;
  border-radius: 3px;
}
.slide-frame {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; pointer-events: none;
}
.slide.is-focus .slide-inner {
  box-shadow: none;
  filter: drop-shadow(0 12px 18px var(--card-shadow)) drop-shadow(0 0 12px var(--pink-soft));
}
.slide.is-focus { z-index: 40; }

.home-decor { position: absolute; inset: 0; pointer-events: none; }
.deco-bow, .deco-spark { position: fixed; z-index: 5; }
.deco-spark path { fill: #fff; stroke: none; }
.deco-spark { filter: drop-shadow(0 0 4px rgba(255,255,255,.75)); }
.bow1 { top: 16%; right: 6%; transform: rotate(14deg); animation: floaty 5s ease-in-out infinite; }
.bow2 { top: 62%; left: 4%; transform: rotate(-10deg); animation: floaty 6.4s ease-in-out infinite 1s; }
.spark-a { top: 26%; left: 12%; animation: spinTwinkle 3.4s ease-in-out infinite; }
.spark-b { top: 18%; right: 16%; animation: spinTwinkle 2.8s ease-in-out infinite .8s; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes spinTwinkle { 0%,100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
html.anim-off .deco-bow, html.anim-off .deco-spark, html.anim-off .cloud,
html.anim-off .star-dot { animation: none; }

/* ---------- About：CCD 相簿 ---------- */
.about-album {
  display: grid; grid-template-columns: 1fr 1.35fr 1fr;
  gap: 34px; align-items: center; margin-top: 20px;
}
.polaroid {
  position: relative; background: var(--paper); padding: 12px 12px 16px;
  border: 1.5px solid rgba(58,63,82,.3);
  box-shadow: 0 8px 22px var(--card-shadow);
}
.polaroid-frame { overflow: hidden; border: 1px solid rgba(58,63,82,.2); }
.polaroid-frame img { filter: saturate(.94) contrast(.98); }
.tilt-l { transform: rotate(-4deg); }
.tilt-r { transform: rotate(3.5deg); }
.polaroid.small { width: 78%; justify-self: center; }
.handnote { font-family: var(--font-display); font-size: 15px; margin-top: 10px; line-height: 1.6; color: var(--ink-soft); }
.handnote-big { font-family: var(--font-display); font-size: 30px; margin-bottom: 12px; }
.ccd-date {
  position: absolute; right: 12px; bottom: 6px;
  font-family: var(--font-pixel); font-size: 10px; color: var(--pink); opacity: .85;
  letter-spacing: 1px;
}
.about-text p { line-height: 2.05; margin-bottom: 14px; }
.about-facts { list-style: none; margin: 18px 0 24px; }
.about-facts li { padding: 9px 0; border-bottom: 1px dashed rgba(58,63,82,.3); font-size: 15px; }
.fact-k {
  display: inline-block; min-width: 64px; margin-right: 10px;
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: 2px;
  background: var(--sun); border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 2px 9px; text-align: center; vertical-align: 2px;
}

/* ---------- 共用按鈕 ---------- */
.btn-bubble {
  display: inline-block; text-decoration: none;
  background: var(--pink); color: #fff;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 26px; font-size: 16px; font-family: var(--font-body);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-bubble:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); filter: brightness(1.06); }
.btn-bubble:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-ghost {
  background: transparent; border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 22px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-ghost:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-ghost:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }

:focus-visible { outline: 3px dashed var(--pink); outline-offset: 3px; }

/* ---------- 九龍冰廳：落單紙 ---------- */
.kowloon-board {
  background: var(--paper);
  border: 2.5px solid #ffe25e;
  box-shadow: none;
  position: relative;
  padding: 0 0 26px;
}
.kowloon-board::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 10px;
  background: repeating-linear-gradient(90deg, #ffe25e 0 12px, transparent 12px 24px);
}
.board-head {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
  justify-content: space-between;
  padding: 26px 26px 14px; border-bottom: 2px dashed rgba(58,63,82,.4);
  font-family: var(--font-pixel); font-size: 12px; letter-spacing: 2px;
}
.board-name { font-family: var(--font-display); font-size: 30px; letter-spacing: 4px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; padding: 10px 26px 0; }
.menu-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 6px; border-bottom: 1.5px dashed rgba(58,63,82,.35);
}
.menu-thumb {
  width: 96px; height: 96px; object-fit: cover;
  border: 2px solid var(--ink); background: var(--sky-mid);
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg);
  transition: transform .2s ease;
}
.menu-item:hover .menu-thumb { transform: rotate(2deg) scale(1.05); }
.menu-info h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; display: flex; align-items: baseline; gap: 10px; }
.menu-code { font-family: var(--font-pixel); font-size: 10px; opacity: .55; letter-spacing: 2px; }
.menu-info .dotted { border-bottom: 2px dotted rgba(58,63,82,.5); margin: 6px 0; }
.menu-info p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.menu-side { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.menu-price { font-family: var(--font-pixel); font-size: 15px; }
.menu-order {
  background: var(--sun); border: 2px solid var(--ink); border-radius: 999px;
  padding: 7px 18px; font-family: var(--font-display); font-size: 18px;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.menu-order:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.menu-order:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.menu-order.added { background: var(--mint); }

/* ---------- ShinyCompact：故事、漫畫、作品及宣傳片 ---------- */
.page-shiny { max-width: 1240px; }
.shiny-lead { margin-bottom: 34px; }
.shiny-chapters { display: grid; gap: 34px; }
.shiny-panel {
  position: relative; overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(80px) saturate(115%);
  backdrop-filter: blur(80px) saturate(115%);
  box-shadow: 0 18px 50px rgba(8, 8, 26, .16), inset 0 1px 0 rgba(255,255,255,.2);
}
.shiny-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.09), transparent 45%);
}
.shiny-panel > * { position: relative; }
.shiny-panel-head { max-width: 780px; margin-bottom: 28px; }
.shiny-eyebrow {
  margin-bottom: 10px; color: var(--pink);
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: 2.5px;
}
.shiny-panel-head h3 {
  font-family: var(--font-display); font-size: clamp(29px, 4vw, 43px);
  font-weight: 400; line-height: 1.35; letter-spacing: 1px;
}
.shiny-panel-head > p:last-child:not(.shiny-eyebrow) { margin-top: 12px; color: var(--ink-soft); line-height: 1.8; }
.shiny-story-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.shiny-story-copy p { margin-bottom: 16px; line-height: 2.05; font-size: 16px; }
.shiny-story-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; }
.shiny-story-meta li {
  padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--ink) 36%, transparent);
  border-radius: 4px; font-family: var(--font-pixel); font-size: 9px; letter-spacing: 1.5px;
}
.shiny-story-visual { position: relative; max-width: 350px; justify-self: end; transform: rotate(2deg); }
.shiny-story-visual img { width: 100%; border-radius: 9px; box-shadow: 0 16px 34px rgba(8,8,26,.25); }
.shiny-story-visual figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 9px 10px;
  background: rgba(29,25,51,.68); color: #fff; border-radius: 4px;
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: 1.2px; text-align: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.manga-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.manga-frame { min-width: 0; padding: 9px; background: rgba(255,255,255,.91); color: #3a3f52; border-radius: 7px; }
.manga-imgwrap { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #ddd; border-radius: 3px; }
.manga-imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.manga-frame:nth-child(2) img { object-position: 58% center; }
.manga-bubble {
  position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px);
  padding: 8px 11px; background: rgba(255,255,255,.94); color: #3a3f52;
  border: 1px solid rgba(58,63,82,.48); border-radius: 48% 52% 50% 45%;
  font-size: 13px; line-height: 1.65; box-shadow: 2px 3px 0 rgba(58,63,82,.13);
}
.manga-bubble::after {
  content: ""; position: absolute; left: 22px; bottom: -8px; width: 12px; height: 12px;
  background: inherit; border-right: 1px solid rgba(58,63,82,.48); border-bottom: 1px solid rgba(58,63,82,.48);
  transform: rotate(45deg);
}
.manga-frame figcaption { padding: 10px 3px 3px; font-family: var(--font-pixel); font-size: 10px; letter-spacing: 1px; }
.shiny-section-note { margin-top: 20px; text-align: center; color: var(--ink-soft); font-family: var(--font-pixel); font-size: 10px; letter-spacing: 1.5px; }
.shiny-section-note a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.shiny-section-note a:hover { color: var(--ink); }
.shiny-video-wrap { overflow: hidden; background: #171324; border-radius: 10px; box-shadow: 0 16px 36px rgba(8,8,26,.24); }
.shiny-video-wrap iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #171324; }
.shiny-reveal { opacity: 0; transform: translateY(46px) scale(.975); }
.shiny-reveal.is-visible {
  opacity: 1; transform: none;
  animation: shinyPanelIn .76s cubic-bezier(.2,.82,.25,1.16) backwards;
}
@keyframes shinyPanelIn {
  0% { opacity: 0; transform: translateY(46px) scale(.975); }
  68% { opacity: 1; transform: translateY(-7px) scale(1.006); }
  100% { opacity: 1; transform: none; }
}

/* ShinyCompact 貼紙相 */
.purikura-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.purikura {
  position: relative; background: #fff; padding: 12px 12px 0;
  border: 2px solid var(--ink); border-radius: 5px;
  box-shadow: 5px 5px 0 var(--pink), 9px 9px 0 var(--peri);
  transition: transform .25s ease, box-shadow .25s ease;
}
.purikura:hover { transform: translateY(-8px) rotate(0deg) !important; box-shadow: 8px 10px 0 var(--pink), 15px 17px 0 var(--peri); }
.purikura img { border: 1px solid rgba(58,63,82,.15); }
.purikura-cap {
  position: relative; padding: 12px 4px 14px; text-align: center;
  font-family: var(--font-display); font-size: 20px; color: #3a3f52;
}
.purikura-cap::before, .purikura-cap::after {
  content: ""; position: absolute; top: 50%; width: 26px; height: 26px;
  background: radial-gradient(circle, var(--sun) 30%, transparent 32%);
  background-size: 8px 8px; transform: translateY(-50%);
}
.purikura-cap::before { left: 6px; }
.purikura-cap::after { right: 6px; }
.purikura .pk-price {
  position: absolute; top: -13px; right: -13px; z-index: 2;
  background: var(--pink); color: #fff; font-family: var(--font-pixel);
  font-size: 12px; padding: 5px 10px; border: 2px solid var(--ink);
  border-radius: 999px; transform: rotate(8deg);
}
.pk-view {
  position: absolute; inset: 14px 14px auto; height: calc(100% - 76px);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
  opacity: 0; background: linear-gradient(transparent 55%, rgba(58,63,82,.55));
  transition: opacity .2s ease;
}
.purikura:hover .pk-view, .purikura:focus-within .pk-view { opacity: 1; }
.pk-view button {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 20px; font-size: 15px; box-shadow: 2px 2px 0 var(--ink);
}
.pk-view button:hover { background: var(--sun); }

/* ---------- Works：慣性回彈作品牆 ---------- */
.works-title .title-cn {
  font-family: "Cormorant Garamond", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(52px, 7vw, 76px); font-weight: 600; font-style: italic;
  line-height: .9; color: var(--pink);
}
.works-gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 42px); max-width: 1040px;
  margin: 42px auto 24px; padding: 18px 24px 30px;
}
.works-media {
  display: block; min-width: 0; padding: 10px; border: 0; border-radius: 18px;
  background: none; color: var(--ink); text-align: left;
}
.works-media:focus-visible { outline: 2px dashed var(--pink); outline-offset: 5px; }
.works-imgwrap {
  display: block; position: relative; border-radius: 14px;
  box-shadow: 0 12px 28px var(--card-shadow); will-change: transform;
}
.works-imgwrap img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 14px; pointer-events: none;
}
.works-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 34px 14px 12px; border-radius: 0 0 14px 14px;
  background: linear-gradient(transparent, rgba(32,30,48,.68));
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.28); pointer-events: none;
}
.works-cap strong { font-family: var(--font-display); font-size: 21px; font-weight: 400; }
.works-cap small { font-family: var(--font-pixel); font-size: 9px; color: rgba(255,255,255,.82); white-space: nowrap; }
.works-hint {
  text-align: center; font-family: var(--font-pixel); font-size: 11px;
  letter-spacing: 1px; color: var(--ink-soft); opacity: .68;
}

/* ---------- 網店 ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.product {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 22px;
  padding: 16px; box-shadow: 5px 5px 0 var(--ink);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.product-imgwrap { border-radius: 12px; overflow: hidden; border: 1.5px solid rgba(58,63,82,.25); background: var(--sky-mid); }
.product-imgwrap img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .35s ease; }
.product:hover .product-imgwrap img { transform: scale(1.06); }
.product-name { font-family: var(--font-display); font-size: 21px; font-weight: 400; }
.product-note { font-size: 13px; color: var(--ink-soft); }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-family: var(--font-pixel); font-size: 17px; }
.product-add {
  background: var(--sun); border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 18px; font-size: 15px; box-shadow: 2.5px 2.5px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-add:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.product-add:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.product-add.added { background: var(--mint); }

/* ---------- 聯絡：咭片 + 電話簿 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; max-width: 900px; margin: 0 auto; }
.namecard {
  position: relative; overflow: hidden;
  background: var(--paper); border: 2.5px solid var(--ink);
  border-radius: 16px; padding: 30px 30px 24px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-1.5deg);
  transition: transform .3s ease;
}
.namecard:hover { transform: rotate(0deg) scale(1.02); }
.nc-sky {
  position: absolute; inset: 0 0 auto 0; height: 92px;
  background: linear-gradient(180deg, var(--peri), transparent);
  opacity: .5; pointer-events: none;
}
.nc-brand { font-family: var(--font-display); font-size: 22px; color: var(--pink); }
.nc-name { font-family: var(--font-display); font-size: 40px; margin: 12px 0 18px; }
.nc-role { font-size: 16px; color: var(--ink-soft); font-family: var(--font-body); }
.nc-list { display: grid; gap: 10px; }
.nc-list > div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 15px; }
.nc-list dt { font-family: var(--font-pixel); font-size: 11px; opacity: .6; padding-top: 3px; }
.nc-list dd a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.copy-btn {
  background: none; border: none; font: inherit; color: var(--blue);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  padding: 0; font-size: 15px;
}
.copy-btn:hover { color: var(--pink); }
.nc-foot { margin-top: 20px; font-size: 13px; color: var(--ink-soft); text-align: right; }
.phonebook {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 4px;
  padding: 24px 24px 20px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(1deg);
}
.pb-title { font-family: var(--font-display); font-size: 24px; margin-bottom: 14px; }
.pb-en { font-family: var(--font-pixel); font-size: 10px; letter-spacing: 3px; opacity: .5; }
.phonebook ul { list-style: none; margin-bottom: 20px; }
.phonebook li { padding: 9px 2px; border-bottom: 1px dashed rgba(58,63,82,.35); font-size: 14.5px; line-height: 1.6; }
.pb-key {
  display: inline-block; background: var(--peri); border: 1.5px solid var(--ink);
  border-radius: 6px; padding: 1px 8px; font-family: var(--font-pixel);
  font-size: 11px; margin-right: 6px;
}
.copy-feedback { min-height: 22px; font-size: 13px; color: var(--pink); margin-top: 10px; }

/* ---------- Win95 視窗 ---------- */
.win95-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(30, 32, 52, .45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.win95-window {
  background: var(--win-bg); border: 2.5px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(0,0,0,.3);
  width: min(880px, 100%); max-height: 88dvh; overflow: auto;
  animation: winIn .22s ease;
}
@keyframes winIn { from { transform: scale(.96) translateY(10px); opacity: 0; } }
.win95-titlebar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--win-bar); color: #fff;
  padding: 7px 10px; font-family: var(--font-pixel); font-size: 13px; letter-spacing: 1px;
}
.win95-close {
  background: var(--win-bg); color: var(--ink); border: 2px solid var(--ink);
  width: 26px; height: 24px; line-height: 1; font-size: 13px;
  box-shadow: 1.5px 1.5px 0 var(--ink);
}
.win95-close:hover { background: var(--pink); color: #fff; }
.win95-close:active { transform: translate(1px,1px); box-shadow: none; }
.win95-body { padding: 22px; }
#artModal {
  background: rgba(30, 32, 52, .26);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#artModal .art-window {
  --ink: #3a3f52;
  --ink-soft: #6a7089;
  --pink: #ff5fa8;
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: none;
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}
#artModal .win95-titlebar {
  background: rgba(255, 255, 255, .38);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .4px;
}
#artModal .win95-close {
  width: 32px; height: 30px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 0;
  box-shadow: none; font-size: 14px;
  transition: transform .15s ease;
}
#artModal .win95-close:hover { background: transparent; color: var(--ink); transform: translateY(-1px); }
#artModal .win95-close:active { transform: translateY(0); box-shadow: none; }
.art-modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.art-modal-imgwrap { border: 0; background: transparent; padding: 0; box-shadow: none; }
#artModalImg { width: 100%; height: auto; border: 0; box-shadow: none; }
.art-modal-info h3 { font-family: var(--font-display); font-weight: 400; font-size: 34px; }
.art-modal-series { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 3px; color: var(--pink); margin: 4px 0 14px; }
.art-modal-desc { line-height: 1.9; margin-bottom: 16px; }
.art-modal-meta { display: grid; gap: 8px; margin-bottom: 0; }
.art-modal-meta > div { display: grid; grid-template-columns: 52px 1fr; font-size: 14.5px; }
.art-modal-meta dt { font-family: var(--font-pixel); font-size: 11px; opacity: .6; padding-top: 3px; }

/* ---------- 購物車抽屜 ---------- */
.cart-backdrop { position: fixed; inset: 0; z-index: 94; background: rgba(30,32,52,.35); }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(400px, 92vw);
  background: var(--paper); border-left: 2.5px solid var(--ink);
  display: flex; flex-direction: column;
  animation: drawerIn .25s ease;
}
@keyframes drawerIn { from { transform: translateX(60px); opacity: 0; } }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 2px dashed rgba(58,63,82,.4);
}
.cart-head h3 { font-family: var(--font-display); font-size: 26px; font-weight: 400; }
.cart-close { position: static; }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 40px 10px; line-height: 2; }
.cart-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
  padding: 12px 0; border-bottom: 1.5px dashed rgba(58,63,82,.3);
  align-items: center;
}
.cart-row img { width: 64px; height: 64px; object-fit: cover; border: 1.5px solid var(--ink); }
.cart-row-name { font-size: 14.5px; line-height: 1.5; }
.cart-row-price { font-family: var(--font-pixel); font-size: 12px; opacity: .7; margin-top: 4px; }
.qty-ctl { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.qty-ctl button {
  width: 26px; height: 26px; border: 2px solid var(--ink); background: var(--paper);
  border-radius: 8px; font-size: 15px; line-height: 1; box-shadow: 1.5px 1.5px 0 var(--ink);
}
.qty-ctl button:active { transform: translate(1px,1px); box-shadow: none; }
.qty-num { font-family: var(--font-pixel); min-width: 20px; text-align: center; }
.cart-foot { border-top: 2px dashed rgba(58,63,82,.4); padding: 16px 20px; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.cart-total strong { font-family: var(--font-pixel); font-size: 19px; }
.cart-foot .btn-bubble { width: 100%; text-align: center; }

/* ---------- 結帳表單 ---------- */
.checkout-window { width: min(520px, 100%); }
.checkout-form label { display: block; font-size: 14.5px; margin-bottom: 14px; }
.checkout-form input[type="text"], .checkout-form input[type="email"],
.checkout-form input[type="tel"], .checkout-form textarea {
  display: block; width: 100%; margin-top: 6px;
  background: #fff; border: 2px solid var(--ink); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 15px; color: #3a3f52;
}
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.step-label { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 3px; color: var(--pink); margin-bottom: 16px; }
.pay-methods { border: 2px dashed rgba(58,63,82,.4); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.pay-methods legend { font-size: 13px; padding: 0 8px; color: var(--ink-soft); }
.pay-opt { display: flex !important; align-items: center; gap: 10px; margin-bottom: 8px; }
.pay-opt input { accent-color: var(--pink); width: 18px; height: 18px; }
.form-error { color: #d4386b; font-size: 13.5px; min-height: 20px; margin-bottom: 10px; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; }
.order-confirm { text-align: center; padding: 12px 0 4px; line-height: 2; }
.order-confirm svg { margin: 0 auto 10px; }
.order-confirm .btn-bubble { margin-top: 14px; }

/* ---------- 手機選單 ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: color-mix(in srgb, var(--sky-top) 92%, #fff);
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu nav { display: grid; gap: 20px; text-align: center; }
.mobile-menu a {
  font-family: "Cormorant Garamond", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 34px; font-weight: 600; font-style: italic; text-decoration: none;
}
.mobile-menu a.is-active { color: var(--pink); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; text-align: center; padding: 26px 16px 34px; font-size: 13.5px; color: var(--ink-soft); border-top: 1.5px dashed rgba(58,63,82,.3); }
.footer-tiny { font-family: var(--font-pixel); font-size: 10px; letter-spacing: 2px; opacity: .55; margin-top: 6px; }

/* ---------- RWD ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-tools { margin-left: auto; }
  .tool-btn { min-height: 44px; }
  .menu-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 44px; height: 44px; flex: 0 0 44px;
    background: transparent; border: 1px solid var(--ink); border-radius: 0;
    padding: 6px 11px; box-shadow: none;
    transition: transform .15s ease;
  }
  .menu-toggle:hover { transform: translateY(-1px); background: transparent; }
  .menu-toggle:active { transform: translateY(0); }
  .menu-toggle span { width: 18px; height: 1.5px; background: var(--ink); border-radius: 0; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .tool-label { display: none; }
  .about-album { grid-template-columns: 1fr; gap: 26px; }
  .polaroid.small { width: 62%; }
  .menu-grid { grid-template-columns: 1fr; padding: 10px 16px 0; }
  .menu-item { grid-template-columns: 78px 1fr auto; gap: 12px; }
  .menu-thumb { width: 78px; height: 78px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .art-modal-body { grid-template-columns: 1fr; }
  .slide { width: clamp(142px, 44vw, 194px); }
  .board-name { font-size: 22px; }
  .shiny-story-grid { grid-template-columns: 1fr; }
  .shiny-story-visual { justify-self: center; max-width: 420px; }
  .purikura-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}

@media (max-width: 640px) {
  .page-home .carousel-wrap { margin-top: -32px; }
  .page-home .carousel { height: 340px; }
  .works-gallery { grid-template-columns: 1fr; max-width: 430px; gap: 24px; margin-top: 24px; padding: 8px; }
  .works-hint { max-width: 30ch; margin: 0 auto; line-height: 1.8; }
  .page-shiny { padding-left: 18px; padding-right: 18px; }
  .shiny-chapters { gap: 24px; }
  .shiny-panel { padding: 24px 18px; border-radius: 12px; }
  .shiny-panel-head { margin-bottom: 22px; }
  .shiny-story-copy p { font-size: 15px; }
  .manga-grid { grid-template-columns: 1fr; gap: 22px; }
  .manga-imgwrap { aspect-ratio: 4 / 4.6; }
}

@media (max-width: 480px) {
  .site-header { padding: 8px 12px; gap: 10px; }
  .brand-logo-img { height: 38px; max-width: 58px; }
}

/* ---------- 減少動態 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
