*{box-sizing:border-box;margin:0;padding:0}html{font-size:62.5%;--header-h:9rem;--gutter:3rem;--ease:cubic-bezier(.22,1,.36,1)}body{font:1.6rem/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#24503f;background:#efe8d8}button{border:0;font:inherit;color:inherit;cursor:pointer;background:none}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #24503f;outline-offset:4px}a.archive-return{position:fixed;left:var(--gutter);top:1.8rem;z-index:50;font-size:1.4rem;text-decoration:none;padding:.5rem 1rem;background:#fbf8ef;border-radius:2rem}.planet{height:100dvh}@media(max-width:767px){html{--gutter:1.6rem;--header-h:6.5rem}}
/* ========== 小星球（概念 02 的可玩页面，/projects/concepts/planet） ==========
   整页一个独立 WebGL 画布（src/planet/world.ts），上面叠 HTML：名字牌、标题、卡牌册按钮、卡槽、控制按钮、对话面板、浮层 */
.planet { --pl-ink: #24503F; --pl-card: rgba(255, 253, 247, .92); --pl-line: rgba(36, 80, 63, .16); --pl-soft: #F3EEDF; --pl-shadow: 0 .8rem 2.4rem rgba(36, 80, 63, .13);
  position: relative; height: calc(var(--vh, 1vh) * 100); overflow: hidden; color: var(--pl-ink); letter-spacing: 0;
  background: radial-gradient(120% 90% at 50% 45%, #FCF9F1 0%, #F2EDE0 50%, #DFE6D6 100%); }
.planet__stage { position: absolute; inset: 0; }
.planet__canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; cursor: grab; -webkit-tap-highlight-color: transparent; opacity: 0; transition: opacity .6s var(--ease); }
.planet__canvas.is-ready { opacity: 1; }
.planet__canvas:active { cursor: grabbing; }
.planet__canvas:focus-visible { box-shadow: inset 0 0 0 3px rgba(36, 80, 63, .35); }
/* 名字牌：外层由 JS 定位到店铺上方，胶囊再往左、往上各挪一半 */
.planet__tags { position: absolute; inset: 0; pointer-events: none; }
.planet-tag { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.planet-tag__pill { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.2rem .6rem .7rem; border-radius: 999px; background: var(--pl-card); box-shadow: var(--pl-shadow); font-size: 1.3rem; font-weight: 600; line-height: 1.2; white-space: nowrap; pointer-events: none; transform: translate(-50%, -100%); transition: transform .25s var(--ease), background .25s, color .25s; }
.planet-tag.is-live .planet-tag__pill { pointer-events: auto; }
.planet-tag.is-hover .planet-tag__pill, .planet-tag__pill:hover { background: var(--pl-ink); color: #FBF8EF; transform: translate(-50%, -100%) scale(1.06); }
.planet-tag__mark { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #FFC23D; color: #3B2A00; font-size: 1.1rem; font-weight: 800; line-height: 1; }
.planet-tag__mark::before { content: '!'; }
.planet-tag.is-done .planet-tag__mark { background: #7FAE5A; color: #fff; }
.planet-tag.is-done .planet-tag__mark::before { content: '✓'; }
.planet-tag--start .planet-tag__mark { background: var(--pl-ink); }
.planet-tag--start .planet-tag__mark::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; background: #FBF8EF; }
/* 左上标题、右上卡牌册 */
.planet__intro { position: absolute; top: calc(var(--header-h) - 1.4rem); left: var(--gutter); max-width: 36rem; pointer-events: none; }
.planet__kicker { font-size: 1.1rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.planet__title { margin: 1rem 0 .8rem; font-family: 'HW-Serif', 'Songti SC', 'Noto Serif SC', serif; font-size: 4.4rem; font-weight: 900; line-height: 1.1; }
.planet__tagline { font-size: 1.4rem; font-weight: 500; line-height: 1.5; opacity: .85; }
.planet__album-btn { position: absolute; top: calc(var(--header-h) - 1.4rem); right: var(--gutter); display: inline-flex; align-items: center; gap: .9rem; height: 4.6rem; padding: 0 .8rem 0 1.5rem; border-radius: 1.4rem; background: var(--pl-card); box-shadow: var(--pl-shadow); font-size: 1.4rem; font-weight: 600; }
.planet__album-icon { position: relative; width: 1.5rem; height: 1.9rem; border: 2px solid currentColor; border-radius: .3rem; transform: rotate(-8deg); }
.planet__album-icon::after { content: ''; position: absolute; inset: -2px; border: 2px solid currentColor; border-radius: .3rem; transform: translate(.4rem, -.2rem) rotate(14deg); opacity: .45; }
.planet__count { padding: .5rem .9rem; border-radius: 999px; background: rgba(36, 80, 63, .08); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.is-bump { animation: pl-bump .55s var(--ease); }
/* 底部：卡槽、提示、控制 */
.planet__tray { position: absolute; left: 50%; bottom: 2.4rem; display: flex; gap: .7rem; padding: .7rem; border-radius: 1.6rem; background: var(--pl-card); box-shadow: var(--pl-shadow); transform: translateX(-50%); }
.planet__slot { position: relative; width: 4.2rem; height: 5.6rem; border-radius: .8rem; box-shadow: inset 0 0 0 1.5px var(--pl-line); background: center 45% / 170% no-repeat; transition: transform .25s var(--ease); }
.planet__slot::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; opacity: .3; }
.planet__slot:hover { transform: translateY(-.3rem); }
.planet__slot.is-done { background-color: color-mix(in srgb, var(--c) 22%, #fff); box-shadow: inset 0 0 0 2px var(--c); }
.planet__slot.is-done::after { content: none; }
.planet__hint { position: absolute; left: var(--gutter); bottom: 3.8rem; font-size: 1.15rem; font-weight: 600; letter-spacing: .06em; opacity: .7; pointer-events: none; transition: opacity .3s; }
.planet.is-talking .planet__hint { opacity: 0; }
.planet__controls { position: absolute; right: var(--gutter); bottom: 2.4rem; display: flex; gap: .8rem; }
.pbtn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: 4.4rem; padding: 0 1.8rem; border-radius: 999px; background: var(--pl-card); box-shadow: var(--pl-shadow); color: var(--pl-ink); font-size: 1.4rem; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: background .2s, color .2s, transform .25s var(--ease); }
.pbtn:hover { transform: translateY(-2px); }
.pbtn--round { width: 4.4rem; padding: 0; font-size: 2rem; font-weight: 500; }
.pbtn--solid { background: var(--pl-ink); color: #FBF8EF; }
.pbtn--small { height: 3.4rem; padding: 0 1.4rem; font-size: 1.25rem; box-shadow: none; background: rgba(255, 255, 255, .7); }
.pbtn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(36, 80, 63, .25); }
.pbtn--ghost.is-armed { background: #D9544A; color: #fff; box-shadow: none; }
/* 对话面板：宽屏在右边（星球把店挪到左边），手机在底部 */
.planet__dialog { position: absolute; z-index: 20; top: calc(var(--header-h) + 4.4rem); right: var(--gutter); width: min(44rem, 38vw); max-height: calc(100% - var(--header-h) - 12rem); overflow: auto; padding: 2.4rem; border-radius: 2.4rem; background: rgba(255, 253, 247, .97); box-shadow: 0 2rem 5rem rgba(36, 80, 63, .2); outline: none; opacity: 0; transform: translateX(2.4rem); pointer-events: none; transition: opacity .35s var(--ease), transform .5s var(--ease); overscroll-behavior: contain; }
.planet__dialog.is-open { opacity: 1; transform: none; pointer-events: auto; }
.pd__close { position: absolute; top: 1.4rem; right: 1.4rem; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: rgba(36, 80, 63, .07); color: var(--pl-ink); }
.pd__close::before, .pd__close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1.3rem; height: 2px; margin: -1px 0 0 -.65rem; background: currentColor; transform: rotate(45deg); }
.pd__close::after { transform: rotate(-45deg); }
.pd__who { display: flex; align-items: center; gap: 1.2rem; padding-right: 4rem; }
.pd__avatar { flex: none; width: 6.4rem; height: 6.4rem; border-radius: 50%; object-fit: cover; object-position: 50% 50%; background: var(--pl-soft); box-shadow: inset 0 0 0 2px rgba(36, 80, 63, .08); }
.pd__avatar--sign { position: relative; background: var(--pl-ink); }
.pd__avatar--sign::before { content: ''; position: absolute; left: 50%; top: 22%; width: .5rem; height: 60%; margin-left: -.25rem; border-radius: .3rem; background: #D6AB79; }
.pd__avatar--sign::after { content: ''; position: absolute; left: 28%; top: 30%; width: 48%; height: 1.2rem; background: #FBF8EF; clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%); }
.pd__name { font-size: 1.8rem; font-weight: 700; line-height: 1.3; }
.pd__role { margin-top: .2rem; font-size: 1.25rem; font-weight: 500; opacity: .7; }
.pd__say { position: relative; min-height: 5.4rem; margin-top: 1.8rem; padding: 1.3rem 1.6rem; border-radius: 1.6rem; background: var(--pl-soft); font-size: 1.55rem; font-weight: 500; line-height: 1.65; }
.pd__say::before { content: ''; position: absolute; top: -.8rem; left: 2.4rem; border: .8rem solid transparent; border-top: 0; border-bottom-color: var(--pl-soft); }
.pd__say.is-typing::after { content: ''; display: inline-block; width: .45em; height: 1em; margin-left: .15em; background: currentColor; opacity: .45; vertical-align: -.12em; animation: pl-blink .8s steps(1) infinite; }
.pd__quiz { margin-top: 1.8rem; animation: pl-up .5s var(--ease) .3s both; }
/* 第几题：两颗小圆点 + 「1 / 2」，答过的点填实 */
.pd__step { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; font-size: 1.2rem; font-weight: 600; color: rgba(36, 80, 63, .55); letter-spacing: .04em; }
.pd__step b { margin-left: .3rem; color: var(--pl-ink); }
.pd__pip { width: .7rem; height: .7rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(36, 80, 63, .35); }
.pd__pip.is-done, .pd__pip.is-now { background: var(--pl-ink); box-shadow: none; }
.pd__pip.is-now { transform: scale(1.25); }
.pd__q { font-size: 1.6rem; font-weight: 700; line-height: 1.5; }
.pd__opts { display: grid; gap: .8rem; margin-top: 1.2rem; }
.pd__opt { display: flex; align-items: center; gap: 1.2rem; min-height: 4.8rem; padding: .6rem 1.4rem .6rem .6rem; border-radius: 1.4rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--pl-line); color: var(--pl-ink); font-size: 1.5rem; font-weight: 600; line-height: 1.3; text-align: left; transition: background .2s, box-shadow .2s, transform .25s var(--ease), color .2s; }
.pd__opt b { display: grid; place-items: center; flex: none; width: 3.6rem; height: 3.6rem; border-radius: 1rem; background: var(--pl-soft); font-size: 1.3rem; transition: background .2s, color .2s; }
.pd__opt:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--pl-ink); transform: translateX(.3rem); }
.pd__opt:disabled { cursor: default; }
.pd__opt.is-right { background: #E6F1DA; box-shadow: inset 0 0 0 2px #7FAE5A; }
.pd__opt.is-right b { background: #7FAE5A; color: #fff; }
.pd__opt.is-wrong { background: #F9E8E5; box-shadow: inset 0 0 0 1.5px #E7AAA2; color: rgba(36, 80, 63, .5); animation: pl-shake .42s; }
.pd__opt.is-wrong b { background: #E7AAA2; color: #fff; }
.pd__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.pd__actions:empty { display: none; }
.pd__actions .pbtn { box-shadow: none; }
.pd__actions .pbtn:not(.pbtn--solid) { background: var(--pl-soft); }
.pd__note { margin-top: 1.4rem; font-size: 1.3rem; font-weight: 600; color: #5F8F45; }
.pd__chips { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.pd__chip { height: 3.8rem; padding: 0 1.4rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--c); color: var(--pl-ink); font-size: 1.35rem; font-weight: 600; transition: transform .25s var(--ease), background .2s; }
.pd__chip:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 14%, #fff); }
.pd__chip.is-done { background: color-mix(in srgb, var(--c) 20%, #fff); }
.pd__chip.is-done::before { content: '✓ '; }
/* 浮层：新卡、卡牌册、玩法、集齐（在页面之上、头部之下） */
.planet__layer { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: calc(var(--header-h) - 2rem) 2rem 2rem; background: rgba(36, 80, 63, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.planet__layer.is-open { opacity: 1; pointer-events: auto; }
.planet__panel { position: relative; max-width: 100%; max-height: 100%; overflow: auto; padding: 3rem; border-radius: 2.8rem; background: #FBF8EF; box-shadow: 0 3rem 8rem rgba(20, 40, 30, .3); animation: pl-pop .45s var(--ease) both; overscroll-behavior: contain; }
.planet__panel--reveal { display: grid; justify-items: center; gap: 2.4rem; padding: 2rem; overflow: visible; background: none; box-shadow: none; }
/* 卡片有 perspective，自成一层、画在按钮上面；光芒又比卡片大一圈，按钮要单独抬到最上面才点得到 */
.planet__panel--reveal > .pbtn { position: relative; z-index: 1; }
.planet__panel--album { width: min(76rem, 100%); }
.planet__panel--help { width: min(54rem, 100%); }
.planet__panel--done { width: min(50rem, 100%); text-align: center; }
.planet__panel--done .pd__actions { justify-content: center; }
.pa__head { margin-bottom: 2.4rem; padding-right: 4rem; }
.pa__title { font-family: 'HW-Serif', 'Songti SC', 'Noto Serif SC', serif; font-size: 3rem; font-weight: 900; line-height: 1.2; }
.pa__sub { margin-top: .6rem; font-size: 1.35rem; font-weight: 600; opacity: .7; }
.pa__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem; justify-items: center; }
.pa__grid .pcard { --w: 100%; max-width: 19rem; }
.pa__grid .pcard__name { font-size: 1.9rem; }
.pa__foot { display: flex; justify-content: flex-end; margin-top: 2.4rem; }
.ph__list { display: grid; gap: 1.4rem; margin-top: 2.2rem; counter-reset: ph; }
.ph__list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; font-size: 1.5rem; line-height: 1.6; counter-increment: ph; }
.ph__list li::before { content: counter(ph); display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--pl-soft); font-size: 1.3rem; font-weight: 700; }
.pdone__fan { position: relative; height: 14rem; margin: 1rem 0 2.4rem; }
.pdone__fan img { position: absolute; left: 50%; top: .6rem; width: 8.8rem; height: 12rem; margin-left: -4.4rem; border-radius: 1rem; object-fit: cover; background: var(--c); box-shadow: 0 .8rem 2rem rgba(36, 80, 63, .2), inset 0 0 0 3px #fff; transform-origin: 50% 160%; transform: rotate(calc(var(--i) * 10deg)); animation: pl-fan .7s var(--ease) both; }
.pdone__body { margin-top: 1.2rem; font-size: 1.5rem; line-height: 1.7; }
/* 卡牌：5:7，正面店名 + 渲染图，背面店主的话；卡牌册里点一下翻面 */
.pcard { --w: 22rem; position: relative; display: block; width: var(--w); aspect-ratio: 5 / 7; padding: 0; perspective: 90rem; color: var(--pl-ink); text-align: left; }
.pcard__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.pcard[aria-pressed="true"] .pcard__inner { transform: rotateY(180deg); }
.pcard__face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 1.2rem; border-radius: 1.6rem; overflow: hidden; background: var(--c); box-shadow: 0 1.2rem 3rem rgba(36, 80, 63, .22), inset 0 0 0 .5rem rgba(255, 255, 255, .22); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.pcard__top { display: flex; justify-content: space-between; color: #fff; font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; }
.pcard__art { display: block; flex: 1; min-height: 0; margin: 1rem 0; border-radius: 1rem; overflow: hidden; background: radial-gradient(circle at 50% 38%, #fff 0%, var(--t) 72%); }
.pcard__art img { width: 100%; height: 100%; object-fit: contain; }
.pcard__name { display: block; font-family: 'HW-Serif', 'Songti SC', 'Noto Serif SC', serif; font-size: 2.2rem; font-weight: 900; line-height: 1.2; color: #fff; }
.pcard__npc { display: block; margin-top: .3rem; font-size: 1.2rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.pcard__back { justify-content: center; padding: 2.4rem 2rem; background: var(--t); transform: rotateY(180deg); box-shadow: 0 1.2rem 3rem rgba(36, 80, 63, .22), inset 0 0 0 .5rem var(--c); }
.pcard__quote { display: block; font-family: 'HW-Serif', 'Songti SC', 'Noto Serif SC', serif; font-size: 2rem; font-weight: 700; line-height: 1.55; }
.pcard__quote::before { content: '\201C'; display: block; height: 3rem; font-family: Georgia, 'Times New Roman', serif; font-size: 5.6rem; line-height: 1; color: var(--c); }
.pcard__sign { display: block; margin-top: 1.4rem; font-size: 1.3rem; font-weight: 600; opacity: .75; }
.pcard__foot { position: absolute; left: 2rem; right: 2rem; bottom: 1.6rem; font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; opacity: .55; }
.pcard--locked .pcard__face { background: #E6E0D2; box-shadow: inset 0 0 0 2px rgba(36, 80, 63, .08); }
.pcard--locked .pcard__top, .pcard--locked .pcard__name { color: rgba(36, 80, 63, .5); }
.pcard--locked .pcard__art { background: rgba(255, 255, 255, .45); }
.pcard--locked .pcard__art img { filter: brightness(0); opacity: .1; }
.pcard--locked .pbtn { align-self: flex-start; margin-top: .8rem; }
.pr__label { color: #FBF8EF; font-size: 1.5rem; font-weight: 700; letter-spacing: .3em; text-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.pr__card { position: relative; perspective: 100rem; }
.pr__card::before { content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; pointer-events: none; width: 64rem; height: 64rem; margin: -32rem 0 0 -32rem; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 236, 170, .38) 0deg 7deg, transparent 7deg 20deg); -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%); animation: pl-spin 16s linear infinite; }
.pr__card .pcard { --w: min(28rem, 62vw); transform-style: preserve-3d; animation: pl-reveal 1.1s var(--ease) both; }
@keyframes pl-reveal { 0% { opacity: 0; transform: translateY(4rem) rotateY(180deg) scale(.7); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes pl-pop { 0% { opacity: 0; transform: translateY(1.6rem) scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes pl-up { 0% { opacity: 0; transform: translateY(1rem); } 100% { opacity: 1; transform: none; } }
@keyframes pl-fan { 0% { opacity: 0; transform: rotate(0deg) translateY(3rem); } 100% { opacity: 1; } }
@keyframes pl-shake { 20%, 60% { transform: translateX(-.5rem); } 40%, 80% { transform: translateX(.5rem); } }
@keyframes pl-bump { 40% { transform: scale(1.12); } }
@keyframes pl-blink { 50% { opacity: 0; } }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@media (max-width: 1024px) {
  .planet__hint { display: none; }
}
@media (max-width: 767px) {
  .planet__intro { top: calc(var(--header-h) + .2rem); max-width: 60%; }
  .planet__kicker { font-size: 1rem; }
  .planet__title { margin: .6rem 0 .4rem; font-size: 3rem; }
  .planet__tagline { font-size: 1.25rem; }
  .planet__album-btn { top: calc(var(--header-h) + .2rem); height: 4.2rem; padding-left: 1.2rem; font-size: 1.3rem; }
  .planet__tray { display: none; }
  .planet__controls { right: 1.2rem; bottom: 1.6rem; }
  .planet__reset { width: 4.4rem; padding: 0; }
  .planet__reset-label { display: none; }
  .planet-tag__pill { font-size: 1.2rem; }
  .planet__dialog { top: auto; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; width: auto; max-height: 60%; padding: 2rem; border-radius: 2rem; transform: translateY(2.4rem); }
  .pd__say { font-size: 1.45rem; }
  .pd__avatar { width: 5.2rem; height: 5.2rem; }
  .planet__panel { padding: 2.2rem; border-radius: 2.2rem; }
  .pa__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .pa__title { font-size: 2.4rem; }
  .pcard__name { font-size: 1.8rem; }
  .pcard__quote { font-size: 1.6rem; }
}

/* 动效降级 */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


.planet{height:100dvh}
html,body{height:100%;overflow:hidden}#planet-root{position:fixed;inset:0}
.pcard--locked .pcard__top,.pcard--locked .pcard__name{color:#53634f}
@media(max-width:1024px){.planet__tray{display:none}}
