:root {
  --paper: #fbf6ee;
  --paper2: #f3ebdf;
  --ink: #3b3142;
  --ink2: #7a6f80;
  --line: #e2d6c6;
  --pink: #e4578e;
  --pink2: #ffe2ee;
  --blue: #4a78d0;
  --green: #4f9a5a;
  --stage: #1d2438;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--stage); color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; }
#app { display: grid; grid-template-columns: 1fr 360px; height: 100vh; }
#stage { position: relative; overflow: hidden; min-height: 0; }
#view { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#view.drag { cursor: grabbing; }
#wards { display: flex; flex-wrap: wrap; gap: 4px; }
#wards button { font-size: 11.5px; padding: 3px 8px; background: rgba(255,250,244,.9); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
#help { position: absolute; right: 12px; bottom: 10px; color: rgba(255,255,255,.65); font-size: 11px; pointer-events: none; text-align: right; }
#tip { position: absolute; pointer-events: none; background: rgba(255,250,244,.95); color: var(--ink); padding: 4px 8px;
  border-radius: 8px; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.25); white-space: nowrap; }
#toasts { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px;
  align-items: center; pointer-events: none; width: min(560px, 90%); }
.toast { pointer-events: auto; cursor: pointer; background: rgba(255,250,244,.96); border-left: 4px solid var(--pink); border-radius: 10px;
  padding: 7px 12px; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.3); animation: pop .3s ease-out; }
.toast.wedding { border-color: #d4a020; }
.toast.birth { border-color: #4fb0c0; }
.toast.out { opacity: 0; transition: opacity .6s; }
@keyframes pop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

#side { background: var(--paper); display: flex; flex-direction: column; min-height: 0; border-left: 3px solid #e9dcc8; }
header { padding: 12px 14px 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
h1 { font-size: 19px; margin: 0; letter-spacing: .04em; color: var(--pink); }
h1::before { content: "♥ "; font-size: 14px; }
#clock { text-align: right; line-height: 1.2; }
#clock-date { display: block; font-size: 12px; color: var(--ink2); }
#clock-time { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.seg { display: flex; gap: 4px; padding: 4px 14px; }
.seg button { flex: 1; padding: 5px 0; font-size: 12px; }
.seg button.on { background: var(--pink); color: #fff; border-color: var(--pink); }
button, .button { font: inherit; font-size: 13px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px;
  padding: 5px 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
button:hover, .button:hover { background: var(--pink2); }
button.primary { background: var(--pink); border-color: var(--pink); color: #fff; }
button.primary:hover { filter: brightness(1.06); }
input[type=text], input[type=search], select { font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px;
  background: #fff; color: var(--ink); min-width: 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; text-align: center; padding: 4px 0; }
.stat b { display: block; font-size: 17px; }
.stat span { font-size: 10px; color: var(--ink2); }
.opts { display: flex; gap: 12px; padding: 2px 14px 6px; font-size: 12px; color: var(--ink2); }
.tabs { display: flex; padding: 0 10px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; border-radius: 8px 8px 0 0; background: transparent; padding: 7px 12px; color: var(--ink2); }
.tabs button.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 -1px 0 var(--line), 1px 0 0 var(--line), -1px 0 0 var(--line); }
.tab { display: none; flex: 1; min-height: 0; overflow: auto; padding: 8px 12px; background: #fff; }
.tab.on { display: block; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--ink2); margin-bottom: 6px; }
#log, #plist, #slots { list-style: none; margin: 0; padding: 0; }
#log li { font-size: 12.5px; padding: 6px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; line-height: 1.45; }
#log li:hover, #plist li:hover { background: var(--pink2); }
#log time { display: block; font-size: 10.5px; color: var(--ink2); }
#log li.love { color: #b83a6e; }
#log li.wedding { color: #9a6a00; font-weight: 700; }
#log li.birth { color: #2a7a8a; }
#log li.season { color: var(--green); font-weight: 700; }
.row { display: flex; gap: 6px; margin: 6px 0; align-items: center; }
.row input { flex: 1; }
#plist li { display: flex; align-items: center; gap: 6px; padding: 4px; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 12.5px; }
#plist li canvas { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
#plist .meta { color: var(--ink2); font-size: 11px; margin-left: auto; text-align: right; }
.sexM { color: var(--blue); } .sexF { color: var(--pink); }
h2 { font-size: 14px; margin: 10px 0 4px; }
.note { font-size: 11.5px; color: var(--ink2); margin: 4px 0; }
#slots li { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin: 6px 0; font-size: 12px; display: grid;
  grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; cursor: pointer; }
#slots li:hover { background: var(--pink2); }
#slots li.auto { border-style: dashed; background: var(--paper); }
#slots li.auto .t { font-weight: 400; }
#slots li .t { font-weight: 700; }
#slots li .s { color: var(--ink2); font-size: 11px; }
#slots li .b { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 4px; }
#slots li .b button { padding: 3px 8px; font-size: 12px; }

#detail { background: #fff; }
#detail .head { display: flex; gap: 10px; align-items: center; }
#detail .head canvas { width: 64px; height: 64px; image-rendering: pixelated; background: var(--paper2); border-radius: 10px; flex: none; }
#detail .name { font-size: 17px; font-weight: 700; }
#detail .sub { font-size: 12px; color: var(--ink2); }
#detail .now { margin-top: 6px; font-size: 13px; background: #fff; border-radius: 8px; padding: 5px 8px; border: 1px solid var(--line); }
#detail .acts { margin-left: auto; display: flex; flex-direction: column; gap: 4px; }
#detail .acts button { font-size: 12px; padding: 3px 8px; }
#detail h3 { font-size: 12px; margin: 8px 0 3px; color: var(--ink2); }
.rel { display: grid; grid-template-columns: 1fr 70px 70px; gap: 3px 6px; font-size: 12px; align-items: center; }
.rel a, .fam a { color: var(--ink); cursor: pointer; text-decoration: underline dotted; }
.bar { height: 7px; background: var(--paper2); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; }
.bar.f i { background: #7cc48a; }
.bar.l i { background: #ff7fae; }
.fam { font-size: 12px; line-height: 1.7; }
.fam a { margin-right: 6px; }
.badge { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 10px; background: var(--pink2); color: #b83a6e; margin-left: 4px; vertical-align: 2px; }

@media (max-width: 820px) {
  #app { grid-template-columns: 1fr; grid-template-rows: 55vh 1fr; height: auto; min-height: 100vh; }
  #side { border-left: 0; border-top: 3px solid #e9dcc8; }
  #help { display: none; }
  .tab { max-height: 50vh; }
}

#loading { position: absolute; inset: 0; background: rgba(20,24,44,.72); display: flex; align-items: center; justify-content: center; z-index: 5; }
#loading[hidden] { display: none; }
#loading .box { background: var(--paper); border-radius: 14px; padding: 18px 24px; display: flex; flex-direction: column; gap: 6px; min-width: 260px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
#loading b { color: var(--pink); font-size: 16px; }
#loading span { font-size: 13px; color: var(--ink2); }
#ff { align-items: center; }
#ff .lbl { font-size: 11px; color: var(--ink2); white-space: nowrap; padding-right: 2px; }
#ff button { flex: 1; }
.edit-row { display: grid; grid-template-columns: 1fr 90px 28px; gap: 2px 6px; align-items: center; font-size: 11.5px; }
.edit-row input[type=range] { width: 100%; accent-color: var(--pink); }
.edit-row output { font-variant-numeric: tabular-nums; color: var(--ink2); text-align: right; }
.rel-edit { display: grid; grid-template-columns: 1fr 70px 70px; gap: 3px 6px; align-items: center; font-size: 11.5px; }
.rel-edit input[type=range] { width: 100%; }
.rel-edit .f { accent-color: #5fae6d; } .rel-edit .l { accent-color: #ff6fa3; }
#log li.rail { color: #6a5a7a; }
details.fold summary { cursor: pointer; font-size: 12px; color: var(--ink2); margin: 8px 0 3px; }

.talklog { font-size: 12px; line-height: 1.6; }
.talklog time { color: var(--ink2); font-size: 10.5px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.talklog small { color: var(--ink2); margin-left: 4px; }
.talklog .th { color: #6a4a8a; }

#ego { width: 100%; height: auto; display: block; background: var(--paper2); border-radius: 10px; margin-top: 6px; cursor: pointer; }
.ego-legend { font-size: 10.5px; color: var(--ink2); }
.box2 { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; margin: 6px 0; background: var(--paper); }
.box2 h4 { margin: 0 0 4px; font-size: 12px; }
.swatches { display: flex; flex-wrap: wrap; gap: 3px; }
.swatches button { width: 18px; height: 18px; padding: 0; border-radius: 4px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatches button.on { box-shadow: 0 0 0 2px var(--pink); }
.lifelog { font-size: 11.5px; line-height: 1.5; max-height: 180px; overflow: auto; }
.lifelog div { border-bottom: 1px dashed var(--line); padding: 2px 0; }
.lifelog time { color: var(--ink2); font-size: 10px; display: block; }
.mood { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 8px; background: var(--paper2); margin-left: 4px; }
#log li.intervene { color: #2a6aa0; font-weight: 700; }

.seg .lbl { font-size: 11px; color: var(--ink2); white-space: nowrap; padding-right: 2px; align-self: center; }

.bm-filter { color: #c08a00; font-weight: 700; }
.star { border: 0; background: transparent; font-size: 18px; padding: 0 2px; color: #c8b890; cursor: pointer; line-height: 1; }
.star.on { color: #f0b400; }
.star:hover { background: transparent; transform: scale(1.15); }
#plist .star { font-size: 15px; }
#log li .who { font-size: 10.5px; color: #c08a00; margin-left: 4px; }
.opts label { white-space: nowrap; }

small.as { font-size: 10px; margin-left: 2px; color: var(--ink2); }
small.as.sexM { color: var(--blue); } small.as.sexF { color: var(--pink); }
.fav { background: #fff8e0; border-radius: 6px; padding: 2px 6px; margin-bottom: 3px; }
.relpanel h4 { font-size: 13px; }
.threads { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.thread { display: grid; grid-template-columns: auto auto 1fr auto; gap: 4px; align-items: center; font-size: 12px; padding: 5px 8px; border-bottom: 1px solid var(--line); cursor: pointer; background: #fff; }
.thread:last-child { border-bottom: 0; }
.thread span { color: var(--ink2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.thread time { font-size: 10px; color: var(--ink2); }
.thread.on, .thread:hover { background: #eef7ee; }
.chat { background: #8fb0d8; border-radius: 12px; padding: 8px; margin-top: 6px; max-height: 300px; overflow: auto; }
.chat-head { color: #fff; font-weight: 700; font-size: 12px; display: flex; justify-content: space-between; margin-bottom: 4px; }
.chat-head button { padding: 0 6px; font-size: 12px; }
.msg { display: flex; align-items: flex-end; gap: 4px; margin: 4px 0; }
.msg span { background: #fff; border-radius: 12px; padding: 5px 9px; font-size: 12.5px; max-width: 75%; }
.msg time { font-size: 9.5px; color: #eef; white-space: nowrap; }
.msg.me { flex-direction: row-reverse; }
.msg.me span { background: #8de07a; }
.msg.has-photo span { padding: 4px; display: flex; flex-direction: column; gap: 3px; }
.msg .photo { display: block; width: 120px; height: 90px; border-radius: 8px; background: url(assets/photos.png) 0 0 / 480px 480px; image-rendering: pixelated; }

.why { border-radius: 8px; padding: 5px 8px; margin: 4px 0 6px; font-size: 12px; }
.why.ok { background: #ffeef4; color: #b83a6e; }
.why.hard { background: #f1eef3; color: #5a4a6a; }
.why.norm { background: #fff6e0; color: #7a5a10; }
.why ul { margin: 4px 0 2px; padding-left: 0; list-style: none; }
.why li { margin: 3px 0; line-height: 1.5; }
.why li button { font-size: 11px; padding: 1px 6px; margin-left: 4px; }
.why .note { margin-top: 4px; }

/* ---------- 情報整理後のレイアウト ---------- */
header { padding: 10px 14px 4px; }
h1 { font-size: 17px; }
.ctrl { display: flex; gap: 6px; align-items: flex-start; padding: 2px 14px 4px; }
.ctrl #speed { flex: 1; padding: 0; gap: 3px; }
.ctrl #speed button { padding: 4px 0; font-size: 11.5px; }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 3px 8px; font-size: 14px; user-select: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary { background: var(--pink2); }
.menu-body { position: absolute; right: 0; top: 34px; z-index: 10; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 280px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.menu-body .seg { padding: 2px 0 6px; }
.mlabel { font-size: 11px; color: var(--ink2); margin-top: 2px; }
.opts-col { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.tabs button { padding: 7px 10px; font-size: 12.5px; }
.filters.chips { gap: 4px; }
.chip { border: 1px solid var(--line); border-radius: 12px; padding: 1px 8px; background: #fff; cursor: pointer; font-size: 11.5px; }
.chip input { display: none; }
.chip:has(input:checked) { background: var(--pink2); border-color: #f0b8cc; color: #b83a6e; }
.chip.bm-filter:has(input:checked) { background: #fff3c4; border-color: #f0d070; color: #9a6a00; }

/* 人物カード */
#p-card { position: sticky; top: -8px; z-index: 3; background: #fff; padding: 2px 0 6px; border-bottom: 1px solid var(--line); }
.pc-top { display: flex; gap: 10px; align-items: center; }
.pc-top canvas { width: 64px; height: 64px; image-rendering: pixelated; background: var(--paper2); border-radius: 12px; flex: none; }
.pc-main { flex: 1; min-width: 0; }
.pc-main .name { font-size: 16px; font-weight: 700; }
.pc-main .pc-sub { font-size: 11.5px; color: var(--ink2); }
.pc-top .acts { display: flex; flex-direction: column; gap: 3px; }
.pc-top .acts button { padding: 2px 6px; font-size: 14px; }
.pc-top .acts button.on { background: var(--pink2); }
.pc-now { margin-top: 6px; font-size: 12.5px; background: var(--paper); border-radius: 8px; padding: 4px 8px; }
.pc-now .say { margin-top: 2px; }
.pc-now .say.th { color: #6a4a8a; }
.subtabs { display: flex; gap: 4px; margin: 8px 0 6px; }
.subtabs button { flex: 1; font-size: 12px; padding: 5px 0; border-radius: 8px; white-space: nowrap; }
.subtabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
#detail .sub { display: none; }
#detail .sub.on { display: block; }

/* 関係の一覧 */
img.face { image-rendering: pixelated; background: var(--paper2); border-radius: 8px; flex: none; }
.rgroup { margin-bottom: 6px; }
.rtitle { font-size: 11.5px; color: var(--ink2); margin: 6px 0 2px; font-weight: 700; }
.rrow { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 10px; cursor: pointer; }
.rrow:hover { background: var(--paper); }
.rrow.on { background: var(--pink2); }
.rname { flex: 1; min-width: 0; font-size: 12.5px; }
.rname .note { margin: 0; font-size: 10.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mutual { color: var(--pink); margin-left: 3px; }
.rbars { display: grid; grid-template-columns: auto 54px; gap: 1px 4px; align-items: center; font-size: 10px; color: var(--ink2); }
.mbar { display: block; height: 6px; background: var(--paper2); border-radius: 3px; overflow: hidden; }
.mbar i { display: block; height: 100%; }
.mbar.f i { background: #7cc48a; }
.mbar.l i { background: #ff7fae; }
#ego-wrap { margin-top: 6px; }
.ego-legend { font-size: 10.5px; color: var(--ink2); margin-top: 3px; }
.lg { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin: 0 2px 0 6px; border-radius: 2px; }
.lg.red { background: #e0305a; } .lg.pink { background: #ff7fae; } .lg.green { background: #50aa64; }

/* 誰も選んでいないとき */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pcard { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 5px 6px; cursor: pointer; font-size: 12px; background: #fff; }
.pcard:hover { background: var(--pink2); }
.pcard .note { margin: 0; font-size: 10.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rrow.off { cursor: default; opacity: 0.6; }
.rrow.off:hover { background: transparent; }
.nolink { font-weight: bold; }
.vtags { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 6px; }
.vtag { font: inherit; font-size: 11px; border-radius: 10px; padding: 1px 8px; border: 1px solid #c8bce0; background: #f1ecfa; color: #4a3a6a; }
button.vtag { cursor: pointer; }
.vtag.off { background: #fff; color: var(--ink2); border-style: dashed; text-decoration: line-through; }
.vtag.gone { background: #fff; color: var(--ink2); border-style: dashed; text-decoration: line-through; }
.vlist { font-size: 11.5px; line-height: 1.6; margin-bottom: 4px; }
.vlist .x { font-size: 10px; border: none; background: none; color: var(--ink2); cursor: pointer; padding: 0 4px; }
.vlist .x:hover { color: var(--pink); }
.ideas .irow { display: grid; grid-template-columns: 1fr 80px; gap: 6px; align-items: center; font-size: 11px; color: var(--ink2); }
.rrow { position: relative; }
.cbadge { font: inherit; font-size: 12px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0 6px; cursor: pointer; white-space: nowrap; align-self: center; }
.cbadge b { display: inline-block; min-width: 14px; margin-left: 2px; padding: 0 4px; border-radius: 8px; background: var(--pink); color: #fff; font-size: 10px; line-height: 14px; }
.cbadge.on { border-color: var(--pink); background: var(--pink2); }
.thread .cnum { font-style: normal; font-size: 10px; background: var(--pink); color: #fff; border-radius: 8px; padding: 0 5px; }
#rel-chat .chat { margin: 6px 0; }
.vlist time { color: var(--ink2); font-size: 10px; margin-right: 4px; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(30, 24, 40, 0.35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: var(--paper, #fff); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.25); width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 12px 14px; }
.modal-box header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.modal-box header b { font-size: 15px; }
.modal-box header button { font: inherit; font-size: 18px; border: none; background: none; cursor: pointer; color: var(--ink2); }
#iv-tabs { margin-bottom: 8px; }
.ivb { font: inherit; font-size: 12px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 0 5px; cursor: pointer; align-self: center; }
.ivb:hover { border-color: var(--pink); }
.rname .flag { font-size: 11px; margin-left: 2px; }

/* 左下：時計・速さ・早送り・タイムライン・区画への移動 */
#dock { position: absolute; left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; max-width: min(520px, calc(100% - 24px)); z-index: 5; }
#dock .dock-row { display: flex; align-items: center; gap: 6px; background: rgba(255,250,244,.94); border-radius: 12px; padding: 5px 8px; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
#dock #clock { text-align: left; min-width: 104px; }
#dock #clock-time { font-size: 18px; }
#dock #speed { display: flex; gap: 3px; padding: 0; }
#dock #speed button { padding: 3px 7px; font-size: 11.5px; }
#dock #wards { position: static; max-width: none; }
details.menu.up .menu-body { top: auto; bottom: 38px; left: 0; right: auto; }
details.menu .menu-body.wide { width: min(380px, calc(100vw - 40px)); max-height: 60vh; overflow: auto; }
#side header details.gear { margin-left: auto; }
#dock #ff { display: flex; gap: 3px; padding: 0; }
#dock #ff button { padding: 3px 7px; font-size: 11.5px; white-space: nowrap; }
#dock .dock-row { flex-wrap: wrap; }
.thread .skipto { font: inherit; font-size: 10.5px; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 0 6px; cursor: pointer; white-space: nowrap; }
.thread .skipto:hover { border-color: var(--pink); }
.thread .cnum.now { background: var(--pink); }

/* ドット絵のアイコン（assets/icons.png、16×16。等倍で表示） */
.ic { display: inline-block; width: 16px; height: 16px; background: url(assets/icons.png) no-repeat; background-size: 128px 80px; image-rendering: pixelated; vertical-align: -3px; flex: none; }
.ic-heart { background-position: -0px -0px; }
.ic-kiss { background-position: -16px -0px; }
.ic-moon { background-position: -32px -0px; }
.ic-secret { background-position: -48px -0px; }
.ic-open { background-position: -64px -0px; }
.ic-chat { background-position: -80px -0px; }
.ic-star { background-position: -96px -0px; }
.ic-star-off { background-position: -112px -0px; }
.ic-dice { background-position: -0px -16px; }
.ic-pin { background-position: -16px -16px; }
.ic-foot { background-position: -32px -16px; }
.ic-ff { background-position: -48px -16px; }
.ic-clock { background-position: -64px -16px; }
.ic-gear { background-position: -80px -16px; }
.ic-pause { background-position: -96px -16px; }
.ic-drink { background-position: -112px -16px; }
.ic-smoke { background-position: -0px -32px; }
.ic-rice { background-position: -16px -32px; }
.ic-sprout { background-position: -32px -32px; }
.ic-ring { background-position: -48px -32px; }
.ic-letter { background-position: -64px -32px; }
.ic-baby { background-position: -80px -32px; }
.ic-house { background-position: -96px -32px; }
.ic-bulb { background-position: -112px -32px; }
.ic-think { background-position: -0px -48px; }
.ic-talk { background-position: -16px -48px; }
.ic-sparkle { background-position: -32px -48px; }
.ic-calendar { background-position: -48px -48px; }
.ic-umbrella { background-position: -64px -48px; }
.ic-fire { background-position: -80px -48px; }
.ic-briefcase { background-position: -96px -48px; }
.ic-cross { background-position: -112px -48px; }
.ic-cap { background-position: -0px -64px; }
.ic-camera { background-position: -16px -64px; }
.ic-leaf { background-position: -32px -64px; }
.ic-dot { background-position: -48px -64px; }
.ic-rainbow { background-position: -64px -64px; }
.ic-wave { background-position: -80px -64px; }
.ic.flag { margin-left: 2px; vertical-align: -3px; }
#follow-chip { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15); font-size: 12px; z-index: 5; }
#follow-chip[hidden] { display: none; }
#follow-chip b { cursor: pointer; }
#follow-chip button { font: inherit; border: none; background: var(--pink); color: #fff; border-radius: 999px; width: 20px; height: 20px; line-height: 20px; padding: 0; cursor: pointer; }
.wishes { list-style: none; margin: 2px 0 6px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; font-size: 12px; }
.wishes li { display: flex; align-items: center; gap: 5px; color: var(--ink, #333); }
.wishes .wck { width: 11px; height: 11px; border: 1.5px solid #b9aab4; border-radius: 3px; flex: none; position: relative; background: #fff; }
.wishes li.done .wck { background: var(--pink); border-color: var(--pink); }
.wishes li.done .wck::after { content: ''; position: absolute; left: 3px; top: 0; width: 3px; height: 6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wishes li.done { color: #998; }
#dock #speed { align-items: center; }
#dock #speed input[type=range] { width: 90px; accent-color: var(--pink); }
#dock #speed input.paused { opacity: .45; }
#dock #speed output { min-width: 34px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
