/* 一起 · Together（第十五单元）：全班投屏用的课堂版式（跟“我的生日”同一套结构，换成草地绿＋天空蓝）。 */
@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: #2f3b3a;
  --ink-soft: #66756f;
  --paper: #f3f8ef;
  --card: #fffffb;
  --line: #d3e2cf;
  --main: #2f7d5b;         /* 主色：草地绿 */
  --main-soft: #e1f0e6;
  --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(40, 80, 60, .10);
  --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 #bfdcc9; 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.k { color: var(--red); }            /* 一起 */
span.k1 { color: var(--blue); }          /* 一个人 */
span.fw { color: var(--red); }           /* 上 下 左 右 中 */
span.he { color: var(--blue); }          /* 和 */
span.qu { color: var(--gold); }          /* 去 */
span.pl { color: var(--plum); }          /* 地点 */
span.vb { color: var(--green); }         /* 动作 */
.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: #cfe5d6; }
.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 .k { color: var(--red); }
.home-title p { margin: 6px 0 0; color: var(--ink-soft); font-size: .95rem; letter-spacing: .08em; }
.grass-strip { width: min(100%, 900px); height: 10px; border-radius: 99px; background: linear-gradient(90deg, #6cc08a, #9fd36b, #f4c84a, #69b7e0, #6cc08a); }
.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: #f7fcf4; 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(30, 70, 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: #e3ece1; }
.zi-pair.single { max-width: 760px; }
.zi-pair.single img { max-width: 320px; }
/* 彩纸 */
.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; } }

.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); }
.write-row a.tool-btn { width: auto; height: auto; min-height: 52px; font-size: 1rem; color: var(--ink); border-color: var(--line); margin-left: 12px; }

/* ================= 星期一：方位 ================= */
.fw-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 18px); width: min(100%, 1100px); }
.fw-card { padding: 14px 6px; gap: 8px; }
.fw-card .ar { font-size: clamp(40px, 5vw, 76px); line-height: 1; color: var(--main); transition: transform .3s; }
.fw-card .ch { font-size: clamp(70px, 9vw, 140px); line-height: 1; font-weight: 700; color: var(--red); transition: color .3s; }
.fw-card .w { font-size: clamp(22px, 2.2vw, 34px); font-weight: 700; min-height: 1.3em; }
.fw-card.hide .ch { color: #e3ece1; }
.fw-card.hide .w { visibility: hidden; }

.plus-wrap { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 44px); width: min(100%, 1100px); }
.plus { --cell: clamp(70px, min(13.5vh, 11vw), 150px); display: grid; grid-template-columns: repeat(3, var(--cell)); grid-template-rows: repeat(3, var(--cell)); gap: 8px; flex: 0 0 auto; }
.plus .cell { border: 3px dashed #b9d6c3; border-radius: 18px; background: var(--card); display: flex; align-items: center; justify-content: center; position: relative; padding: 4px; }
.plus .cell.mid { border-style: solid; border-color: var(--main); background: var(--main-soft); }
.plus .cell .lab { position: absolute; left: 6px; top: 2px; font-size: .9rem; font-weight: 700; color: var(--red); opacity: .55; }
.plus .cell img { max-width: 100%; max-height: 100%; object-fit: contain; }
.plus .cell .emo { font-size: calc(var(--cell) * .55); line-height: 1; }
.plus .cell.good { border-color: var(--green); background: var(--green-soft); border-style: solid; }
.plus .cell.bad { border-color: var(--red); background: var(--red-soft); }
.plus .blank { visibility: hidden; }
.plus button.cell:hover { border-color: var(--main); }
.word-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.word-btn { min-height: 56px; padding: 6px 22px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); box-shadow: var(--shadow); font-size: clamp(26px, 2.6vw, 40px); font-weight: 700; display: inline-flex; align-items: center; gap: .4em; }
.word-btn .ar { font-size: .8em; color: var(--main); }
.word-btn.on { border-color: var(--main); background: var(--main-soft); }
.word-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.cmd-card { width: min(100%, 820px); min-height: clamp(220px, 44vh, 420px); gap: 12px; padding: 18px; }
.cmd-card .ar { font-size: clamp(90px, 14vh, 160px); line-height: 1; }
.cmd-card .sent { max-width: 100%; }
.count { font: 700 clamp(28px, 3vw, 44px)/1 system-ui, sans-serif; color: var(--gold); min-height: 1em; }

/* ================= 星期二：我和……一起 ================= */
.yq-card { width: min(100%, 1000px); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 18px; }
.yq-pics { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 26px); }
.yq-pics .who { height: clamp(140px, 26vh, 280px); width: auto; object-fit: contain; }
.yq-pics .plus-sign { font-size: clamp(28px, 3vw, 48px); color: var(--ink-soft); font-weight: 700; }
.place-tile { width: clamp(140px, 26vh, 280px); aspect-ratio: 1; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; gap: 4px; }
.place-tile img { width: 100%; height: 100%; object-fit: cover; }
.place-tile .emo { font-size: clamp(64px, 12vh, 130px); line-height: 1; }
.place-tile .nm { font-size: clamp(20px, 2vw, 30px); font-weight: 700; color: var(--plum); }
.place-tile.sm { width: 100%; border: none; }
.place-tile.sm .emo { font-size: clamp(44px, 7vh, 80px); }
.place-tile.sm .nm { font-size: clamp(16px, 1.5vw, 22px); }
.thumb-strip { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.thumb-strip button { width: 64px; height: 64px; padding: 2px; border-radius: 14px; border: 3px solid transparent; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.thumb-strip button.on { border-color: var(--main); }
.thumb-strip img { width: 100%; height: 100%; object-fit: contain; }
.yq-opts .pick { width: clamp(200px, 28vw, 330px); min-height: 0; flex-direction: row; gap: 6px; padding: 8px; }
.yq-opts .pick .who { height: clamp(110px, 22vh, 200px); width: auto; object-fit: contain; }
.yq-opts .pick .place-tile { width: clamp(100px, 14vw, 170px); }

.builder { display: flex; flex-direction: column; gap: 10px; align-items: center; width: min(100%, 1180px); }
.b-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.b-row .lab { font-size: .9rem; font-weight: 700; color: var(--ink-soft); min-width: 4.5em; text-align: right; }
.b-btn { min-width: 86px; min-height: 64px; padding: 4px 10px; border-radius: 14px; border: 3px solid transparent; background: var(--card); box-shadow: var(--shadow); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.b-btn img { height: 46px; width: auto; object-fit: contain; }
.b-btn .emo { font-size: 34px; line-height: 1.1; }
.b-btn .t { font-size: 1.05rem; font-weight: 700; }
.b-btn.on { border-color: var(--main); background: var(--main-soft); }
.b-tabs { display: flex; gap: 6px; }
.b-scene { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: clamp(110px, 19vh, 200px); }
.b-scene .who { height: clamp(110px, 19vh, 200px); width: auto; object-fit: contain; }
.b-scene .act-pic { width: clamp(110px, 19vh, 200px); aspect-ratio: 1; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.b-scene .act-pic img { width: 100%; height: 100%; object-fit: cover; }
.b-scene .act-pic .emo { font-size: clamp(60px, 10vh, 110px); line-height: 1; }
.b-scene .ghost { opacity: .25; }

/* ================= 星期三：一起 / 一个人 ================= */
.pair-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); width: min(100%, 1000px); }
.pair-wrap .pick { padding: 12px; gap: 8px; }
.pair-wrap .pick img { width: 100%; height: clamp(150px, 32vh, 330px); object-fit: contain; }
.pair-wrap .pick .w { font-size: clamp(34px, 3.6vw, 58px); font-weight: 700; line-height: 1.1; }
.pair-wrap .pick.hide .w { visibility: hidden; }
.like-card { width: min(100%, 900px); flex-direction: row; gap: clamp(14px, 3vw, 36px); padding: 14px 20px; }
.like-card img { width: clamp(170px, 34vh, 340px); aspect-ratio: 1; object-fit: contain; border-radius: 18px; background: #fff; flex: 0 0 auto; }
.like-card .side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.badge { display: inline-block; padding: 4px 16px; border-radius: 999px; font-size: clamp(20px, 2vw, 30px); font-weight: 700; color: #fff; }
.badge.yq { background: var(--red); } .badge.yg { background: var(--blue); }
.sort-pic { width: min(100%, 520px); height: clamp(180px, 38vh, 380px); }
.sort-pic img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.sort-btns { display: flex; gap: 20px; justify-content: center; }
.sort-btn { min-width: clamp(160px, 18vw, 240px); min-height: 84px; border-radius: 20px; border: 3px solid transparent; color: #fff; font-size: clamp(32px, 3.4vw, 52px); font-weight: 700; box-shadow: var(--shadow); }
.sort-btn.yq { background: var(--red); } .sort-btn.yg { background: var(--blue); }
.sort-btn.bad { animation: shake .35s; opacity: .6; }
.bins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(100%, 1000px); }
.bin { border: 2px dashed var(--line); border-radius: 16px; padding: 6px; min-height: 64px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; background: var(--card); }
.bin .lab { width: 100%; font-weight: 700; font-size: .95rem; }
.bin.yq .lab { color: var(--red); } .bin.yg .lab { color: var(--blue); }
.bin img { height: 48px; width: auto; border-radius: 8px; background: #fff; }

.vote-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; width: min(100%, 1100px); }
.vote-side { border-radius: 20px; border: 2px solid var(--line); background: var(--card); padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.vote-side.yq { border-color: #ebc0ba; } .vote-side.yg { border-color: #b7cfe6; }
.vote-side.on.yq { background: var(--red-soft); border-color: var(--red); }
.vote-side.on.yg { background: #e3eef8; border-color: var(--blue); }
.vote-side .head { font-size: clamp(30px, 3vw, 46px); font-weight: 700; background: none; border: none; }
.vote-side.yq .head { color: var(--red); } .vote-side.yg .head { color: var(--blue); }
.vote-side .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tally { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; min-height: 34px; font-size: 26px; }
.tally-n { font: 700 1.2rem system-ui, sans-serif; color: var(--ink-soft); }

@media (max-width: 860px) {
  #app { padding: 10px 10px; }
  .fw-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plus-wrap { flex-direction: column; }
  .word-col { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .yq-pics { flex-wrap: wrap; }
  .like-card { flex-direction: column; }
  .like-card .side { align-items: center; }
  .vote-wrap, .bins { grid-template-columns: 1fr; }
  .b-row .lab { width: 100%; text-align: center; }
  .b-scene { gap: 6px; min-height: 0; }
  .b-scene .who { height: 90px; }
  .b-scene .act-pic { width: 90px; }
  .b-scene .act-pic .emo { font-size: 48px; }
  .act-foot .nav-btn { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
