/* 我的生日 · 第十二单元：全班投屏用的课堂版式（跟“我的家人”同一套结构，换成生日派对的颜色）。 */
@font-face {
  font-family: "KaiTi-CJK";
  src: local("STKaiti-SC-Regular"), local("STKaiti"), local("Kaiti SC"), local("BiauKai"), local("KaiTi"), local("楷体");
  unicode-range: U+2E80-2EFF,U+2F00-2FDF,U+3000-303F,U+3040-30FF,U+31F0-31FF,U+3200-32FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF,U+20000-2A6DF;
}
:root {
  color-scheme: light;
  font-size: clamp(15px, 1.25vw, 20px);
  --ink: #43304a;
  --ink-soft: #7d6a80;
  --paper: #fff4f1;
  --card: #fffdfb;
  --line: #ecd3d9;
  --main: #9b3d6b;         /* 主色：莓果紫红 */
  --main-soft: #f6e2ea;
  --red: #d0342c;          /* 月 · 日 · 有（跟原课件一样用红色） */
  --red-soft: #fbe3df;
  --gold: #c98a1c;         /* 一件 / 一条 / 一双 / 一个 */
  --gold-soft: #fdf0d3;
  --blue: #2f6c9c;
  --green: #3f8f5f;
  --green-soft: #e3f1e6;
  --plum: #7a4aa0;         /* 水果名 */
  --radius: 18px;
  --shadow: 0 4px 14px rgba(110, 50, 70, .09);
  --font-zh: "KaiTi-CJK", "LXGW WenKai Lite", "LXGW WenKai", serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { color: var(--ink); background: var(--paper); font-family: var(--font-zh); -webkit-font-smoothing: antialiased; overflow: hidden; user-select: none; }
button, a { touch-action: manipulation; font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--main); outline-offset: 3px; }
img { -webkit-user-drag: none; user-select: none; }
[hidden] { display: none !important; }

#app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 10px; padding: 12px 20px 12px; }

/* ---------------- 顶栏 ---------------- */
.topbar { flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 42px; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nav-right { justify-content: flex-end; }
.nav-center { display: flex; align-items: center; gap: 10px; color: var(--main); }
.nav-title { font-size: clamp(20px, 1.7vw, 28px); font-weight: 700; white-space: nowrap; }
.chip { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: .3em; padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: .86rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.chip:hover:not(:disabled) { background: var(--main-soft); border-color: var(--main); }
.chip.on { background: var(--main); border-color: var(--main); color: #fffdfb; }
.chip:active:not(:disabled) { transform: translateY(1px); }
.day-pills { display: flex; gap: 4px; }
.day-pill { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-weight: 700; font-size: .95rem; }
.day-pill.on { background: var(--main); color: #fffdfb; border-color: var(--main); }
.day-pill:hover:not(.on) { background: var(--main-soft); }
.crumb { font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.step-nav { display: flex; align-items: center; gap: 4px; }
.step-pill { height: 34px; min-width: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 17px; background: transparent; font-weight: 700; font-size: .86rem; white-space: nowrap; }
.step-pill .nm { display: none; }
.step-pill.on { background: var(--main); border-color: var(--main); color: #fffdfb; padding: 0 14px; }
.step-pill.on .nm { display: inline; }
.step-pill.seen:not(.on) { background: var(--main-soft); }
@media (max-width: 1100px) { .crumb { display: none; } }
@media (max-width: 820px) {
  .topbar { grid-template-columns: auto 1fr auto; }
  .day-pills { display: none; }
  .chip .lbl { display: none; }
}

/* ---------------- 舞台 ---------------- */
.stage { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.act { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.act-head { flex: 0 0 auto; text-align: center; }
.act-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--main); border: 1px solid #e6c3d2; border-radius: 999px; padding: 2px 12px; margin-bottom: 4px; background: var(--card); }
.act-title { margin: 0; font-size: clamp(28px, 2.9vw, 46px); line-height: 1.2; color: var(--main); font-weight: 700; }
.act-sub { margin: 4px 0 0; font-size: .9rem; color: var(--ink-soft); }
.act-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 14px; overflow: auto; padding: 4px 2px; }
.act-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.act-foot .mid { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nav-btn { min-height: 46px; padding: 8px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 1.02rem; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; }
.nav-btn.primary { background: var(--main); border-color: var(--main); color: #fffdfb; }
.nav-btn:active:not(:disabled) { transform: translateY(1px); }
.nav-btn:disabled { visibility: hidden; }
.tool-btn { min-height: 44px; padding: 8px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 1rem; font-weight: 700; display: inline-flex; align-items: center; gap: .35em; text-decoration: none; box-shadow: var(--shadow); }
.tool-btn:hover { border-color: var(--main); }
.tool-btn.red { color: var(--red); border-color: #ebc0ba; }
.tool-btn.on { background: var(--main); color: #fffdfb; border-color: var(--main); }
.tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* 句子与高亮（原课件：月、日、有 是红色） */
.sent { font-size: clamp(30px, 3.2vw, 52px); font-weight: 700; line-height: 1.35; text-align: center; min-height: 1.35em; cursor: pointer; }
.sent.sm { font-size: clamp(24px, 2.3vw, 36px); }
.sent:empty::before { content: "\00a0"; }
span.yue, span.you { color: var(--red); }
span.mw { color: var(--gold); }
span.fr { color: var(--plum); }
span.c-red { color: #d0342c; } span.c-orange { color: #e07a1f; } span.c-yellow { color: #d8a400; }
span.c-green { color: #3f9a4f; } span.c-blue { color: #2f6cc0; } span.c-purple { color: #8a4cc2; }
span.c-pink { color: #e0679a; } span.c-black { color: #222; }
span.c-white { color: #fff; -webkit-text-stroke: 1.5px #8a8a8a; paint-order: stroke fill; }
span.c-rainbow { background: linear-gradient(90deg, #e53935, #fb8c00, #fdd835, #43a047, #1e88e5, #8e24aa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sent-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.say-btn { width: 58px; height: 58px; border-radius: 50%; border: none; background: var(--main); color: #fff; font-size: 1.6rem; box-shadow: var(--shadow); flex: 0 0 auto; }
.say-btn:active { transform: scale(.95); }

/* 进度 */
.stars { display: flex; gap: 6px; justify-content: center; font-size: 1.5rem; min-height: 1.8rem; }
.stars span { opacity: .22; filter: grayscale(1); transition: all .25s; }
.stars span.on { opacity: 1; filter: none; transform: scale(1.12); }
.pager { display: flex; align-items: center; gap: 14px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.6rem; font-weight: 700; box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; }
.round-btn:disabled { opacity: .25; }
.result { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.result .big { font-size: clamp(40px, 5vw, 72px); font-weight: 700; color: var(--main); }

@keyframes popIn { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.pop { animation: popIn .34s cubic-bezier(.22, 1.2, .4, 1); }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.shake { animation: shake .35s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.bob { animation: bob .6s ease 2; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-5deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(3deg); } }

/* 卡片通用 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pick { border: 3px solid transparent; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.pick:hover { border-color: #ead0da; }
.pick.lit { border-color: var(--gold); background: var(--gold-soft); }
.pick.good { border-color: var(--green); background: var(--green-soft); }
.pick.bad { border-color: var(--red); background: var(--red-soft); }
.pick:active { transform: scale(.98); }

/* ---------------- 封面 ---------------- */
.home { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 8px; }
.home-hero { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 40px); }
.home-hero img { width: clamp(150px, 26vh, 260px); aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); cursor: pointer; }
.home-title { text-align: center; }
.home-title h1 { margin: 0; font-size: clamp(46px, 5.4vw, 84px); letter-spacing: .14em; color: var(--main); line-height: 1.05; }
.home-title h1 .yue { color: var(--red); }
.home-title p { margin: 6px 0 0; color: var(--ink-soft); font-size: .95rem; letter-spacing: .08em; }
.party-strip { width: min(100%, 900px); height: 10px; border-radius: 99px; background: linear-gradient(90deg, #f472b6, #a78bfa, #fbbf24, #34d399, #60a5fa, #f472b6); }
.days { width: min(100%, 1100px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.day-card { text-align: left; border: 1px solid var(--line); border-top: 5px solid var(--dc, var(--main)); background: var(--card); border-radius: 16px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); min-width: 0; }
.day-card:hover { background: #fff8f6; border-color: var(--dc); }
.day-card .dname { font-size: .85rem; font-weight: 700; color: var(--dc); letter-spacing: .14em; }
.day-card b { font-size: 1.55rem; line-height: 1.25; }
.day-card .target { font-size: 1rem; color: var(--ink); line-height: 1.45; }
.day-card ol { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: .82rem; color: var(--ink-soft); }
.day-card ol li span { display: inline-block; min-width: 3.3em; color: var(--dc); font-weight: 700; }
.write-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: .9rem; color: var(--ink-soft); }
.write-row a { font-size: 1.5rem; font-weight: 700; color: var(--red); text-decoration: none; border: 1px solid #ebc0ba; background: var(--card); border-radius: 10px; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
@media (max-width: 900px) { .days { grid-template-columns: 1fr; } .home-hero { flex-direction: column; } }
@media (max-width: 560px) { .nav-title { display: none; } }

/* ---------------- 老师教案抽屉 ---------------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: #fffdfb; border-left: 1px solid var(--line); box-shadow: -10px 0 30px rgba(80, 30, 50, .14); z-index: 30; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .25s ease; }
.drawer.open { transform: none; }
@media (min-width: 1100px) { body.drawer-open #app { margin-right: min(380px, 92vw); } }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--main); }
.drawer .dbody { flex: 1; overflow: auto; padding: 12px 18px 24px; font-size: .9rem; line-height: 1.65; user-select: text; }
.drawer h3 { margin: 14px 0 4px; font-size: .95rem; color: var(--red); }
.drawer h3:first-child { margin-top: 0; }
.drawer ul, .drawer ol { margin: 0; padding-left: 1.2em; }
.drawer li { margin: 2px 0; }
.drawer table { border-collapse: collapse; width: 100%; font-size: .82rem; }
.drawer td, .drawer th { border: 1px solid var(--line); padding: 4px 6px; vertical-align: top; text-align: left; }
.drawer .src { margin-top: 12px; font-size: .8rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 8px; }

/* ---------------- 月 / 日：图变字 ---------------- */
.zi-pairs { display: flex; gap: clamp(16px, 3vw, 40px); align-items: stretch; justify-content: center; width: min(100%, 1000px); }
.zi-pair { flex: 1 1 0; min-width: 0; max-width: 480px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; padding: 14px; }
.zi-pair img { width: 46%; max-width: 230px; aspect-ratio: 1; object-fit: contain; border-radius: 16px; }
.zi-pair .arrow { font-size: 2rem; color: var(--ink-soft); }
.zi-pair .ch { font-size: clamp(100px, 13vw, 190px); line-height: 1; font-weight: 700; color: var(--red); min-width: 1em; text-align: center; transition: color .3s; }
.zi-pair.hide .ch { color: #f0dfe2; }
.zi-pair.single { max-width: 760px; }
.zi-pair.single img { max-width: 320px; }

/* ---------------- 星期一：月份 ---------------- */
.month-card { position: relative; width: min(100%, 760px); min-height: clamp(210px, 38vh, 400px); gap: 10px; padding: 18px; }
.month-card img { max-width: 92%; height: clamp(100px, 21vh, 220px); object-fit: contain; }
.month-card .mname { font-size: clamp(56px, 7vw, 110px); font-weight: 700; line-height: 1; letter-spacing: .1em; }
.num-badge { position: absolute; top: 12px; left: 14px; min-width: 58px; height: 58px; padding: 0 10px; border-radius: 29px; background: var(--main); color: #fff; font: 700 2rem/58px system-ui, sans-serif; text-align: center; }
.num-strip { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.num-strip button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font: 700 1.1rem system-ui, sans-serif; }
.num-strip button.on { background: var(--main); color: #fff; border-color: var(--main); }
.opt-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; width: min(100%, 1100px); }
.opt-row .pick { width: clamp(150px, 20vw, 240px); min-height: clamp(150px, 28vh, 240px); }
.month-opts .pick .n { font: 700 clamp(48px, 5vw, 76px)/1 system-ui, sans-serif; color: var(--main); }
.month-opts .pick > img { width: 100%; height: clamp(60px, 11vh, 100px); object-fit: contain; }

.order-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; width: min(100%, 980px); }
.order-slot { min-height: 78px; border: 2px dashed #d9b6c5; border-radius: 14px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.order-slot .n { font: 700 1rem system-ui, sans-serif; color: var(--ink-soft); }
.order-slot .f { font-size: clamp(22px, 2.2vw, 34px); font-weight: 700; min-height: 1.2em; }
.order-slot.next { border-color: var(--gold); background: var(--gold-soft); }
.order-slot.filled { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.order-cards { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: min(100%, 1000px); }
.order-cards button { min-width: 108px; min-height: 64px; padding: 6px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); box-shadow: var(--shadow); font-size: clamp(24px, 2.3vw, 36px); font-weight: 700; }
.order-cards button.used { visibility: hidden; }

/* ---------------- 星期二：水果 ---------------- */
.fruit-card { width: min(100%, 820px); flex-direction: row; gap: clamp(14px, 3vw, 40px); padding: 16px 22px; }
.fruit-card img { width: clamp(170px, 33vh, 360px); aspect-ratio: 1; object-fit: cover; border-radius: 18px; flex: 0 0 auto; }
.fruit-card .sent { text-align: left; }
.crop { overflow: hidden; border-radius: 14px; aspect-ratio: 1; display: block; }
.crop img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.2); transition: transform .35s; }
.show-tag .crop img { transform: none; }
.fruit-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; width: min(100%, 980px); }
.fruit-strip button { padding: 3px; border: 3px solid transparent; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.fruit-strip button.on { border-color: var(--main); }
.fruit-opts .pick { width: clamp(160px, 24vw, 280px); min-height: 0; padding: 10px; }
.fruit-opts .pick .crop { width: 100%; }

.wheel-wrap { display: grid; grid-template-columns: minmax(200px, 360px) minmax(0, 1fr); gap: 18px; width: min(100%, 1180px); align-items: center; }
.wheel-wrap > img { width: 100%; max-height: 34vh; object-fit: contain; border-radius: 22px; box-shadow: var(--shadow); cursor: pointer; }
.wheel-right { display: flex; flex-direction: column; gap: 10px; align-items: center; min-width: 0; }
.month-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; }
.month-grid button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 14px; border: 3px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.month-grid button .crop { width: 52%; }
.month-grid button b { font-size: clamp(18px, 1.6vw, 26px); }
.month-grid button.on { border-color: var(--main); background: var(--main-soft); }
.chart { width: min(100%, 1180px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; padding: 10px 10px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.chart .col { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; min-height: 64px; cursor: pointer; border: none; background: transparent; padding: 0; }
.chart .col .lab { font: 700 1rem system-ui, sans-serif; color: var(--ink-soft); border-top: 2px solid var(--line); width: 100%; text-align: center; padding-top: 2px; }
.chart .col .crop { width: min(100%, 34px); border-radius: 50%; }
.chart .col .more { font: 700 .9rem system-ui, sans-serif; color: var(--main); }
.chart-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; width: min(100%, 1180px); color: var(--ink-soft); font-size: .9rem; }

/* ---------------- 星期三：派对 ---------------- */
.party-wrap { display: flex; gap: clamp(14px, 3vw, 36px); align-items: center; justify-content: center; width: min(100%, 1200px); }
.party-pic { position: relative; flex: 1 1 0; min-width: 0; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.party-pic img { width: auto; max-width: 100%; max-height: 48vh; border-radius: 20px; box-shadow: var(--shadow); cursor: pointer; }
.party-word { position: absolute; right: -10px; top: 8px; display: flex; flex-direction: column; font-size: clamp(30px, 3.4vw, 54px); font-weight: 700; line-height: 1.1; background: rgba(255, 253, 251, .9); border-radius: 14px; padding: 6px 10px; cursor: pointer; border: none; }
.party-word span:nth-child(1) { color: #d0342c; } .party-word span:nth-child(2) { color: #2f6cc0; }
.party-word span:nth-child(3) { color: #e59ab8; } .party-word span:nth-child(4) { color: #d0342c; }
.cake-side { flex: 0 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cake-box { position: relative; width: min(100%, 420px); display: flex; flex-direction: column; align-items: center; }
.candles { display: flex; gap: 6px; justify-content: center; align-items: flex-end; height: clamp(60px, 11vh, 110px); margin-bottom: -18px; position: relative; z-index: 2; }
.candles button { border: none; background: transparent; padding: 0; height: 100%; flex: 0 1 auto; min-width: 0; }
.candles button img { max-width: 100%; object-fit: contain; }
.candles img { height: 100%; width: auto; }
.cake-box > img { width: 100%; max-height: 30vh; object-fit: contain; }
.mic-row { display: flex; gap: 8px; align-items: center; width: min(100%, 420px); }
.mic-meter { position: relative; flex: 1; height: 16px; background: #f4e7ea; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.mic-meter-fill { height: 100%; width: 0%; background: var(--green); transition: width .08s linear; }
.mic-meter-fill.hot { background: var(--red); }
.mic-meter-mark { position: absolute; top: 0; bottom: 0; width: 3px; background: #43304a; left: 60%; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { border: none; background: var(--card); min-width: 84px; min-height: 44px; font-size: 1.2rem; font-weight: 700; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--main); color: #fff; }

.gift-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gift-btn { border: none; background: transparent; padding: 0; width: clamp(200px, 40vh, 380px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.gift-btn svg { width: 92%; height: 92%; animation: wiggle 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
.gift-btn img { width: 100%; height: 100%; object-fit: contain; border-radius: 22px; box-shadow: var(--shadow); background: #fff; }
.gift-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 72px; }
.gift-row img { width: 68px; height: 68px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); background: #fff; cursor: pointer; }
.cloth-opts .pick { width: clamp(160px, 24vw, 280px); }
.cloth-opts .pick img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; }

/* 这是我 */
.me-wrap { display: flex; gap: 18px; align-items: flex-start; justify-content: center; width: min(100%, 1180px); }
.me-sheet { flex: 1 1 auto; min-width: 0; max-width: 820px; padding: 16px 22px; display: flex; flex-direction: column; gap: 6px; border: 3px solid #b9d6c4; }
.me-sheet h2 { margin: 0 0 4px; text-align: center; font-size: clamp(28px, 2.8vw, 42px); color: var(--main); }
.me-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; padding: 6px 10px; border-radius: 12px; font-size: clamp(26px, 2.6vw, 42px); font-weight: 700; border-bottom: 1px dashed #ead6dc; }
.me-row.lit { background: var(--gold-soft); }
.me-row .t { cursor: pointer; }
.slot { min-width: 2.4em; min-height: 1.4em; padding: 0 .3em; border: none; border-bottom: 3px solid var(--main); background: transparent; font-size: inherit; font-weight: 700; color: var(--red); }
.slot.empty { color: #d8c2c9; }
.slot.open { background: var(--main-soft); border-radius: 8px 8px 0 0; }
.name-input { font: inherit; font-size: inherit; width: 6.5em; border: none; border-bottom: 3px solid var(--main); background: transparent; color: var(--red); text-align: center; padding: 0 .2em; }
.name-input::placeholder { color: #d8c2c9; font-size: .6em; }
.picker { width: min(100%, 820px); padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.picker button { min-width: 54px; min-height: 54px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font: 700 1.3rem system-ui, sans-serif; }
.picker button.zh { font-family: var(--font-zh); font-size: 1.6rem; min-width: 84px; }
.picker button.sw { width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.picker button.on { border-color: var(--main); box-shadow: 0 0 0 3px var(--main); }
.me-side { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; align-items: center; width: clamp(160px, 20vw, 240px); }
.me-side img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); }

/* 彩纸 */
.confetti-piece { position: fixed; top: -1rem; width: .7rem; height: .7rem; pointer-events: none; z-index: 40; border-radius: 2px; animation: confettiFall 1.6s ease-in forwards; }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(102vh) rotate(420deg); opacity: 0; } }

@media (max-width: 860px) {
  #app { padding: 10px 10px; }
  .zi-pairs, .party-wrap, .me-wrap { flex-direction: column; align-items: center; }
  .wheel-wrap { grid-template-columns: 1fr; }
  .wheel-wrap > img { max-width: 260px; justify-self: center; }
  .order-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fruit-card { flex-direction: column; }
  .fruit-card .sent { text-align: center; }
  .fruit-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .month-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chart { gap: 3px; padding: 8px 4px 4px; }
  .me-side { display: none; }
  .act-foot .nav-btn { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
