@font-face{font-family:"Noto Sans SC";src:url("fonts/noto-sc-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Noto Sans SC";src:url("fonts/noto-sc-700.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Noto Sans SC";src:url("fonts/noto-sc-900.woff2") format("woff2");font-weight:800 900;font-display:swap}
@font-face{font-family:"Fredoka";src:url("fonts/fredoka-600.woff2") format("woff2");font-weight:500 700;font-display:swap}

/* 游戏房 · 大厅
   语法沿用「骰子夜」/ 个人主页：奶油底 + 大块饱和色段、圆润重字、2.5～3px 描边 + 实色硬阴影、弹簧曲线、底色随段切换。
   母题：牌桌旁那只守着的橘猫。

   原注释（个人主页）：
   语法沿用「骰子夜」：奶油底 + 大块饱和色段、Fredoka/Noto Sans SC 900 圆润重字、2.5～3px 描边 + 实色硬阴影、弹簧曲线、页面底色随段落切换。
   母题：贴纸簿——每个项目是一张贴纸，首屏主角是骰子夜的橘猫（Wan 待机视频复用）。 */

:root {
  --cream: #FAF4DC;
  --cream-2: #FFE9C2;
  --tomato: #FF4F3A;
  --marigold: #FFC531;
  --cobalt: #2955BE;
  --mint: #3FCF9A;
  --ink: #1B1B1F;
  --ink-2: #4A4A52;
  --white: #FFFFFF;
  --bg: var(--cream);
  --fg: var(--ink);
  --r: 28px;
  --font-d: "Fredoka", "Noto Sans SC", sans-serif;
  --font: "Noto Sans SC", "Fredoka", -apple-system, "PingFang SC", sans-serif;
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font); color: var(--fg); background: var(--bg);
  font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .7s var(--ease), color .7s var(--ease);
}
body[data-bg="marigold"] { --bg: var(--marigold); }
body[data-bg="cobalt"] { --bg: var(--cobalt); --fg: var(--white); }
body[data-bg="mint"] { --bg: var(--mint); }
body[data-bg="tomato"] { --bg: var(--tomato); --fg: var(--white); }
body[data-bg="ink"] { --bg: var(--ink); --fg: var(--cream); }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

/* ── 字阶 ── */
.display { font-family: var(--font-d); font-weight: 900; font-size: clamp(50px, 7.2vw, 108px); line-height: 1.0; letter-spacing: -0.02em; text-wrap: balance; }
.h2 { font-weight: 900; font-size: clamp(36px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.kicker { font-weight: 700; font-size: 15px; letter-spacing: .04em; margin-bottom: 18px; opacity: .8; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; max-width: 26em; margin-top: 26px; color: var(--ink-2); }
body[data-bg="cobalt"] .lede, body[data-bg="tomato"] .lede, body[data-bg="ink"] .lede { color: inherit; opacity: .9; }
.sub { font-size: clamp(17px, 1.4vw, 21px); margin-top: 14px; max-width: 30em; opacity: .85; }
.fine { font-size: 13.5px; margin-top: 18px; opacity: .65; font-weight: 500; }

/* ── 首屏身份标签 ── */
.tags-hero { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 8px; margin-top: 28px; max-width: 34em; }
.tags-hero li { padding: 7px 14px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--white); color: var(--ink); font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 var(--ink); transform: rotate(var(--tr, 0)); transition: transform .5s var(--spring); }
.tags-hero li:nth-child(odd) { --tr: -1.2deg; } .tags-hero li:nth-child(3n) { --tr: 1.4deg; }
.tags-hero li:hover { transform: rotate(0) translateY(-3px); }
.tags-hero .t-tomato { background: var(--tomato); color: var(--white); } .tags-hero .t-marigold { background: var(--marigold); }
.tags-hero .t-cobalt { background: var(--cobalt); color: var(--white); } .tags-hero .t-mint { background: var(--mint); }
.tags-hero + .lede { margin-top: 22px; }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 28px; border-radius: 999px;
  font-weight: 800; font-size: 17px; border: 2.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font-family: inherit;
  transition: transform .5s var(--spring), box-shadow .3s, background .3s;
  box-shadow: 0 4px 0 var(--ink);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-line { background: var(--white); }
.btn-cream { background: var(--cream); color: var(--ink); border-color: var(--cream); box-shadow: 0 4px 0 rgba(255,243,220,.35); }
.btn-cream:hover { box-shadow: 0 7px 0 rgba(255,243,220,.35); }
.btn-sm { padding: 10px 18px; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
.btn-ghost { border-color: currentColor; color: inherit; box-shadow: 0 3px 0 currentColor; }
.btn-ghost:hover { box-shadow: 0 6px 0 currentColor; }
.btn.is-off { opacity: .55; cursor: default; }
.btn.is-off:hover { transform: none; box-shadow: 0 3px 0 var(--ink); }
.actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn svg { width: 18px; height: 18px; }

/* ── 导航 ── */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 8px 10px 8px 18px;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 0 5px 0 var(--ink);
  color: var(--ink); max-width: calc(100% - 32px);
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.logo-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--marigold); color: var(--white);
  font-family: var(--font-d); font-weight: 700; font-size: 13px; transform: rotate(-8deg); border: 2px solid var(--ink); overflow: hidden;
}
.logo-mark img { width: 24px; height: 24px; object-fit: contain; }
.nav-links { display: flex; gap: 20px; font-weight: 700; font-size: 15px; }
.nav-links a { padding: 6px 2px; position: relative; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--marigold); border-radius: 3px; transform: scaleX(0); transition: transform .4s var(--spring); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── 首屏 ── */
.hero {
  position: relative; overflow: hidden; min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; padding: 120px 0 40px; gap: 24px;
}
.hero-copy { position: relative; z-index: 3; }
.hero-copy > * { opacity: 0; transform: translateY(24px) scale(.98); animation: pop .9s var(--spring) forwards; }
.hero-copy > :nth-child(2) { animation-delay: .1s; } .hero-copy > :nth-child(3) { animation-delay: .22s; }
.hero-copy > :nth-child(4) { animation-delay: .34s; } .hero-copy > :nth-child(5) { animation-delay: .46s; } .hero-copy > :nth-child(6) { animation-delay: .56s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.hero-stage { position: relative; height: min(70vh, 640px); z-index: 2; }
.cat-wrap { position: absolute; right: -4%; bottom: 0; width: min(100%, 600px); aspect-ratio: 4 / 3; z-index: 1; overflow: hidden; transform-origin: 50% 100%; animation: breathe 3.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.012, 1.02) translateY(-1px); } }   /* 极轻的呼吸，盖住视频循环接缝那 0.3s 的停顿 */
.cat-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-wrap .cat-poster, .cat-wrap .cat { transform: scale(1.75); transform-origin: 50% 62%; }   /* Wan 输出里猫偏小，底色纯平可以直接放大（与骰子夜同值） */
.cat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.cat.is-ready { opacity: 1; }
.cat-wrap.no-video .cat { display: none; }
.hint { position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 13px; font-weight: 700; opacity: .5; white-space: nowrap; }

/* 贴纸：可拖可抛。基础位置必须写在元素样式里，动画只做覆盖 */
.sticker {
  position: absolute; left: 0; top: 0; width: var(--w, 120px); cursor: grab; user-select: none; touch-action: none; z-index: 3;
  filter: drop-shadow(0 10px 14px rgba(27,27,31,.18)); will-change: transform;
  transform: translate(var(--x), var(--y)) rotate(var(--rot));
  animation: drop .8s var(--spring) both; animation-delay: var(--d, 0s);
}
.sticker.is-drag { cursor: grabbing; filter: drop-shadow(0 22px 26px rgba(27,27,31,.26)); z-index: 5; }
.sticker img { width: 100%; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.hero-stage { user-select: none; -webkit-user-select: none; }
body.is-dragging, body.is-dragging * { user-select: none !important; -webkit-user-select: none !important; cursor: grabbing; }
@keyframes drop { from { opacity: 0; transform: translate(var(--x), calc(var(--y) - 60px)) rotate(var(--rot)) scale(.6); } to { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--rot)); } }

/* 分层角色（呼吸 + 眨眼 + 点击跳） */
.char { position: relative; width: var(--bw); height: calc(var(--bw) * 1.2); cursor: pointer; transform-origin: 50% 100%; }
.char .p { position: absolute; pointer-events: none; will-change: transform; }
.char .p img { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 18px rgba(27,27,31,.22)); }
.char .p.eyes img { filter: none; }
.char .shadow { position: absolute; left: 12%; right: 12%; bottom: -6px; height: 18px; border-radius: 50%; background: rgba(27,27,31,.28); filter: blur(8px); transform-origin: center; }

/* ── 跑马灯 ── */
.ribbon-clip { overflow: hidden; margin: 12px 0 -10px; }
.ribbon { background: var(--ink); color: var(--cream); overflow: hidden; padding: 14px 0; transform: rotate(-1.4deg) scale(1.04); }
.ribbon-track { display: flex; white-space: nowrap; font-weight: 800; font-size: 20px; animation: marquee 30s linear infinite; width: max-content; }
.ribbon-track > * { margin-right: 28px; }
.ribbon-track i { color: var(--marigold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── 段落通用 ── */
section { padding: clamp(96px, 12vw, 170px) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ── 五张项目卡（bento） ── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin-top: 56px; perspective: 1400px; }
.card {
  position: relative; padding: 34px 30px 30px; border-radius: var(--r); border: 3px solid var(--ink); background: var(--white);
  box-shadow: 0 8px 0 var(--ink); color: var(--ink); display: flex; flex-direction: column; gap: 14px; min-height: 340px;
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(var(--ty, 0)); transition: transform .6s var(--spring), box-shadow .4s;
}
.card:hover { --ty: -6px; box-shadow: 0 14px 0 var(--ink); }
.card-3 { grid-column: span 3; } .card-2 { grid-column: span 2; } .card-4 { grid-column: span 4; }
.card-tomato { background: var(--tomato); color: var(--white); }
.card-cobalt { background: var(--cobalt); color: var(--white); }
.card-mint { background: var(--mint); }
.card-ink { background: var(--ink); color: var(--cream); }
.card-cream { background: var(--cream); }
.card > .tag, .card > h3 { padding-right: 110px; }
.card .tag { font-size: 13px; font-weight: 800; letter-spacing: .04em; opacity: .75; }
.card h3 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.12; text-wrap: balance; }
.card p { font-size: 16.5px; line-height: 1.6; opacity: .92; max-width: 34em; }
.card .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.card .chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 800; }
.card-ink .chip { background: var(--cream); color: var(--ink); }
.card .card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 10px; }
.card-tomato .btn, .card-cobalt .btn { border-color: var(--white); color: var(--white); box-shadow: 0 3px 0 var(--white); }
.card-tomato .btn:hover, .card-cobalt .btn:hover { box-shadow: 0 6px 0 var(--white); }
.card-tomato .btn-fill, .card-cobalt .btn-fill { background: var(--white); color: var(--ink); }
.card-ink .btn { border-color: var(--cream); color: var(--cream); box-shadow: 0 3px 0 var(--cream); }
.card-ink .btn-fill { background: var(--cream); color: var(--ink); }
.card-mint .btn-fill, .card-cream .btn-fill, .card:not([class*="card-"]) .btn-fill { background: var(--ink); color: var(--cream); }
.card-sticker { position: absolute; top: -44px; right: 14px; width: 128px; height: 128px; background: center/contain no-repeat; transform: rotate(8deg); transition: transform .6s var(--spring); filter: drop-shadow(0 8px 10px rgba(27,27,31,.2)); }
.card:hover .card-sticker { transform: rotate(-6deg) scale(1.12) translateY(-6px); }
.card-3 .card-sticker { width: 150px; height: 150px; }

/* ── 页脚 ── */
footer { background: var(--ink); color: var(--cream); padding: 28px 0 40px; font-size: 14px; font-weight: 600; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; font-weight: 700; }
.foot-links a:hover { color: var(--marigold); }

/* ── 显现 ── */
.reveal { opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .7s var(--ease), transform .9s var(--spring); }
.reveal.is-in { opacity: 1; transform: none; }
.card.reveal.is-in { transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(var(--ty, 0)); }
.is-static .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.is-static .hero-copy > * { animation: none; opacity: 1; transform: none; }
.is-static .sticker { animation: none; opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--rot)); }
.is-static .cat-wrap { animation: none; }

/* ── 响应式 ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-stage { height: 60vw; min-height: 320px; }
  .cat-wrap { width: 72%; right: -6%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-3, .card-2, .card-4 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; padding: 6px 8px 6px 14px; white-space: nowrap; }
  .nav .btn-sm { padding: 8px 14px; font-size: 14px; }
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card { min-height: 0; padding-top: 64px; }
  .card > h3 { padding-right: 0; }
  .card > .tag { padding-right: 90px; }
  .card-sticker, .card-3 .card-sticker { width: 96px; height: 96px; top: -30px; right: 14px; }
  .ribbon-track { font-size: 17px; }
  .hero-stage { height: 74vw; }
  .hint { bottom: 12px; font-size: 12px; }
  .cat-wrap { width: 74%; right: 4%; }   /* 窄屏猫往左让一点，给右侧的爆米花留位 */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .sticker, .cat-wrap { animation: none; opacity: 1; }
  .ribbon-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}


/* ── 大厅特有 ── */
.card-6 { grid-column: span 6; }
/* 横幅大卡：左文案右截图 */
.card-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center; }
.card-wide-copy { display: flex; flex-direction: column; gap: 14px; }
.card-wide-shot { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: calc(var(--r) - 8px); box-shadow: 0 6px 0 var(--ink); display: block; }
.card-empty {
  background: transparent; border-style: dashed; border-width: 3px; box-shadow: none;
  min-height: 0; padding: 18px 110px 18px 28px; flex-direction: row; align-items: baseline; gap: 6px 16px; flex-wrap: wrap;
}
.card-empty h3 { font-size: 20px; padding-right: 0; }
.card-empty p { font-size: 15px; }
.card-empty:hover { --ty: 0; box-shadow: none; }
.card-empty.reveal.is-in { transform: none; }
.card-empty h3 { opacity: .75; }
.card-empty p { opacity: .6; }
.card-empty .card-sticker { top: 50%; right: 26px; margin-top: -36px; width: 72px; height: 72px; transform: rotate(-7deg); }
.card-empty:hover .card-sticker { transform: rotate(5deg) scale(1.08); }
body[data-bg="marigold"] .card-empty { border-color: rgba(27,27,31,.45); }

/* ── 怎么开一桌：三张白卡 ── */
.how-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.how-card {
  position: relative; padding: 30px 28px 32px; border-radius: var(--r); border: 3px solid var(--ink); background: var(--white); color: var(--ink);
  box-shadow: 0 8px 0 var(--ink); display: flex; flex-direction: column; gap: 12px; transform: rotate(var(--q, 0)) translateY(var(--ty, 0)); transition: transform .6s var(--spring), box-shadow .4s;
}
.how-card:nth-child(1) { --q: -1deg; } .how-card:nth-child(2) { --q: .8deg; } .how-card:nth-child(3) { --q: -.6deg; }
.how-card:hover { --ty: -6px; --q: 0deg; box-shadow: 0 14px 0 var(--ink); }
.how-card.reveal.is-in { transform: rotate(var(--q, 0)) translateY(var(--ty, 0)); }
.how-icon { display: block; width: 84px; height: 84px; background: center/contain no-repeat; filter: drop-shadow(0 6px 8px rgba(27,27,31,.18)); transform: rotate(-6deg); transition: transform .6s var(--spring); }
.how-card:hover .how-icon { transform: rotate(6deg) scale(1.1); }
.how-card .step { position: absolute; top: 24px; right: 24px; font-family: var(--font-d); font-weight: 700; font-size: 15px; padding: 4px 12px; border-radius: 999px; background: var(--marigold); border: 2px solid var(--ink); }
.how-card h3 { font-size: 24px; font-weight: 900; line-height: 1.2; }
.how-card p { font-size: 16px; line-height: 1.6; opacity: .85; }

/* 卡片整体是链接，按钮只是视觉 */
a.card { text-decoration: none; }
a.card .btn { pointer-events: none; }

.sec-head .sub { margin-top: 16px; font-weight: 500; }
.hint { transition: opacity .4s; }

footer .foot-in { padding-top: 6px; }
.foot-fine { opacity: .6; }
footer .logo-mark { background: var(--tomato); }

@media (max-width: 960px) {
  .card-6 { grid-column: span 1; }
  .card-wide { grid-template-columns: 1fr; grid-column: 1 / -1; }
  .how-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* 窄屏：沙漏再小一点，文字留出右边距 */
  .card-empty { padding: 16px 84px 16px 22px; flex-direction: column; gap: 2px; }
  .card-empty .card-sticker { width: 56px; height: 56px; right: 14px; margin-top: -28px; }
}
