/* 一样 · 不一样 · Same/Different（第十六单元）：全班投屏用的课堂版式（跟“一起”同一套结构，颜色取原课件的深蓝＋青绿）。 */
@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: #26324a;
  --ink-soft: #5f6b80;
  --paper: #eef5f4;
  --card: #fffffd;
  --line: #cfe0de;
  --main: #23707a;         /* 主色：原课件的青绿 */
  --main-soft: #dcefee;
  --navy: #1f2a44;         /* 原课件底色 */
  --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(31, 42, 68, .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 #b5d6d3; 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.ys { color: var(--main); }          /* 一样 */
span.bu { color: var(--red); }           /* 不 */
span.he { color: var(--blue); }          /* 和 */
span.xh { color: var(--gold); }          /* 喜欢 */
span.nl { color: var(--plum); }          /* 哪里 */
.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: #c4e0dd; }
.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: contain; background: #fff; padding: 8px; 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 .bu { 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, var(--navy), var(--main), #e7a33e, var(--main), var(--navy)); }
.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: #f5fbfa; 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:first-child { 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(31, 42, 68, .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; }

/* 彩纸 */
.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; }

/* ================= 一样 ＝ / 不一样 ≠ ================= */
.sd-row { display: flex; gap: clamp(12px, 2vw, 26px); justify-content: center; flex-wrap: wrap; }
.sd-btn { min-width: clamp(170px, 18vw, 250px); min-height: 78px; padding: 6px 20px; border-radius: 20px; border: 3px solid var(--line); background: var(--card); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; gap: .35em; font-size: clamp(30px, 3.2vw, 48px); font-weight: 700; }
.sd-btn .sym { font: 700 1em/1 system-ui, sans-serif; width: 1.25em; height: 1.25em; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .8em; }
.sd-btn.same .sym { background: var(--main); }
.sd-btn.diff .sym { background: var(--red); }
.sd-btn.same:hover, .sd-btn.same.on { border-color: var(--main); background: var(--main-soft); }
.sd-btn.diff:hover, .sd-btn.diff.on { border-color: var(--red); background: var(--red-soft); }
.sd-btn.sm { min-width: 0; min-height: 56px; font-size: clamp(22px, 2.2vw, 32px); padding: 4px 16px; border-radius: 16px; }
.big-sym { font: 700 clamp(48px, 6vw, 90px)/1 system-ui, sans-serif; color: var(--ink-soft); min-width: 1em; text-align: center; }
.big-sym.same { color: var(--main); }
.big-sym.diff { color: var(--red); }

/* 小东西 */
.thing { display: inline-block; width: clamp(56px, 7vw, 110px); aspect-ratio: 1; }
.thing svg { width: 100%; height: 100%; display: block; }
.group { display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.item { display: inline-flex; align-items: center; justify-content: center; width: clamp(90px, 16vh, 170px); aspect-ratio: 1; }
.item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.item .dot { width: 82%; height: 82%; border-radius: 50%; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12); }
.item .emo { font-size: clamp(60px, 11vh, 120px); line-height: 1; }
.item.big { width: clamp(120px, 24vh, 240px); }
.item.big .emo { font-size: clamp(80px, 16vh, 170px); }
.item.mid { width: clamp(80px, 13vh, 130px); }
.item.mid .emo { font-size: clamp(54px, 9vh, 96px); }
.item.sm { width: 46px; }
.item.sm .emo { font-size: 34px; }

/* ================= 星期一 ================= */
.pic-card { width: min(100%, 760px); min-height: clamp(220px, 40vh, 420px); gap: 6px; }
.pic-card .frame { display: flex; align-items: center; justify-content: center; }
.pic-card .frame img { max-width: 100%; height: clamp(170px, 32vh, 340px); object-fit: contain; border-radius: 14px; }
.pic-card .frame .thing { width: clamp(80px, 12vw, 170px); }
.two-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); width: min(100%, 1100px); }
.grp-card { padding: 16px 8px 10px; gap: 10px; }
.grp-card .thing { width: clamp(64px, 9vw, 130px); }
.grp-card .lab { font-size: clamp(26px, 2.8vw, 44px); font-weight: 700; min-height: 1.3em; }
.grp-opts .pick { width: auto; min-height: 0; padding: 12px 10px; }
.grp-opts .thing { width: clamp(50px, 6.5vw, 96px); }
.odd-row { display: flex; gap: clamp(8px, 1.4vw, 18px); justify-content: center; flex-wrap: wrap; }
.odd-row .odd { padding: clamp(8px, 1.2vw, 16px); }
.odd-row .thing { width: clamp(80px, 11vw, 160px); }

/* ================= 星期二 ================= */
.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, 34vh, 340px); 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%, 980px); flex-direction: row; gap: clamp(14px, 3vw, 36px); padding: 14px 20px; }
.like-card > img { width: clamp(180px, 38vh, 380px); max-height: 46vh; object-fit: contain; border-radius: 18px; flex: 0 0 auto; }
.like-card .side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.like-card .sent { text-align: left; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font-size: clamp(20px, 2vw, 30px); font-weight: 700; }
.tag .emo { font-size: 1.2em; }
.tag .mk { font: 700 1em system-ui, sans-serif; }
.tag.same { border-color: var(--main); } .tag.same .mk { color: var(--main); }
.tag.diff { border-color: var(--red); } .tag.diff .mk { color: var(--red); }
.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; display: inline-flex; align-items: center; justify-content: center; }
.thumb-strip button.on { border-color: var(--main); }
.thumb-strip img, .thumb-strip .thing { width: 100%; height: 100%; object-fit: contain; }
.photo-opts .pick { width: clamp(180px, 26vw, 320px); min-height: 0; }
.photo-opts .pick img { width: 100%; height: clamp(130px, 26vh, 260px); object-fit: contain; }

.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; flex-wrap: wrap; justify-content: center; }
.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 .emo-who { font-size: clamp(80px, 14vh, 150px); line-height: 1; }
.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; align-items: center; justify-content: center; }
.b-scene .act-pic .emo { font-size: clamp(60px, 10vh, 110px); line-height: 1; }
.b-scene .ghost { opacity: .25; }

/* ================= 星期三 ================= */
.spot-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vw, 22px); width: min(100%, calc(44vh * 8 / 3 + 22px), 1200px); }
.spot { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--card); cursor: pointer; aspect-ratio: 4 / 3; }
.spot svg { width: 100%; height: 100%; display: block; }
.spot .ring { fill: none; stroke: var(--red); stroke-width: 5; stroke-dasharray: 10 6; animation: popIn .34s; transform-box: fill-box; transform-origin: center; }
.spot .miss { position: absolute; transform: translate(-50%, -50%); color: #fff; font: 700 28px system-ui, sans-serif; text-shadow: 0 1px 4px rgba(0,0,0,.5); pointer-events: none; animation: popIn .3s; }
.story { width: min(100%, 1000px); padding: 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.st-row { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2.4vw, 34px); }
.st-side { flex-direction: row; gap: 6px; padding: 10px 14px; flex-wrap: wrap; }
.st-side .who { height: clamp(120px, 26vh, 260px); width: auto; object-fit: contain; }
.st-side .nm { width: 100%; text-align: center; font-size: clamp(22px, 2.2vw, 34px); font-weight: 700; }
.st-row .heart { font-size: clamp(48px, 6vw, 90px); }
.sort-pic { width: min(100%, 420px); min-height: clamp(160px, 30vh, 300px); gap: 4px; cursor: pointer; }
.sort-pic .nm { font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; }
.who-btns { display: flex; gap: 20px; justify-content: center; }
.who-btn { min-width: clamp(150px, 16vw, 220px); min-height: 84px; border-radius: 20px; border: 3px solid var(--line); background: var(--card); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: clamp(28px, 3vw, 44px); font-weight: 700; padding: 6px 16px; }
.who-btn img { height: 64px; width: auto; }
.who-btn:hover { border-color: var(--main); background: var(--main-soft); }
.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; color: var(--main); }
.cmp-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; width: min(100%, 1100px); }
.cmp-side { border-radius: 20px; border: 2px solid var(--line); background: var(--card); padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.cmp-side.on { border-color: var(--main); background: #f4fbfa; }
.cmp-side .head { font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; }
.cmp-grid { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cmp-res { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: clamp(80px, 13vh, 130px); }

@media (max-width: 860px) {
  #app { padding: 10px 10px; }
  .two-groups, .pair-wrap, .bins, .cmp-wrap { grid-template-columns: 1fr; }
  .spot-wrap { grid-template-columns: 1fr; width: min(100%, 520px); }
  .like-card { flex-direction: column; }
  .like-card .side { align-items: center; }
  .like-card .sent { text-align: center; }
  .st-row { flex-wrap: wrap; }
  .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, .b-scene .emo-who { font-size: 48px; }
  .act-foot .nav-btn { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 900px) { .home-hero img:last-child { display: none; } }
@media (max-width: 560px) { .step-pill.on .nm { display: none; } .step-pill.on { padding: 0 10px; } }
