/* ホリペディア — looks like the mobile skin of a wiki (white, serif titles, blue links). */
:root {
  --ink: #202122; --sub: #54595d; --line: #c8ccd1; --line2: #eaecf0; --bg2: #f8f9fa;
  --link: #3366cc; --red: #d73333; --serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', 'Noto Serif CJK JP', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Noto Sans CJK JP', 'Yu Gothic', 'Meiryo', sans-serif;
  --hdr: 54px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body.noscroll { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--link); text-decoration: none; cursor: pointer; }
a.new { color: var(--red); }
.hidden { display: none !important; }

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: #fff; position: relative; }
@media (min-width: 560px) { body { background: #eaecf0; } #app { box-shadow: 0 0 0 1px #c8ccd1, 0 10px 40px rgba(0,0,0,.08); } }

/* header */
.hdr { position: sticky; top: 0; z-index: 20; height: var(--hdr); display: flex; align-items: center; gap: 4px; padding: 0 6px; background: #fff; border-bottom: 1px solid var(--line2); }
.hbtn { width: 42px; height: 42px; display: grid; place-items: center; color: #202122; border-radius: 4px; position: relative; flex: none; }
.hbtn svg { width: 21px; height: 21px; }
.hbtn:active { background: var(--line2); }
.brand { flex: 1; display: flex; align-items: center; gap: 7px; color: var(--ink); min-width: 0; }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark b { font-family: var(--serif); font-size: 19px; letter-spacing: .06em; font-weight: 600; }
.wordmark small { font-size: 9.5px; color: var(--sub); letter-spacing: .08em; margin-top: 2px; }
.badge { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #8a5a2b; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.bump { animation: bump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }

/* article */
#view { padding: 0 16px 0; }
.art { padding: 14px 0 6px; }
.ns { font-size: 12px; color: var(--sub); margin-bottom: 2px; }
.ttl { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.3; margin: 2px 0 8px; word-break: break-all; }
.tools { display: flex; align-items: center; gap: 2px; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 2px 0; margin-bottom: 10px; color: var(--sub); }
.tools button { display: flex; align-items: center; gap: 5px; padding: 8px 8px; font-size: 13px; color: var(--sub); border-radius: 3px; }
.tools button:active { background: var(--line2); }
.tools svg { width: 18px; height: 18px; }
.tools .sp { flex: 1; }
.from { font-size: 12px; color: var(--sub); margin: -4px 0 10px; }
.art p { font-size: 16px; line-height: 1.75; margin: 0 0 12px; }
.lead p { margin-bottom: 14px; }
.sec h2, .mp-box h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.s { border-radius: 2px; transition: background-color .15s; }
.s:active { background: #eaf3ff; }
.pc { display: inline; }
.hole { display: inline-block; color: #8a5a2b; font-family: var(--sans); transform: translateY(-1px); text-shadow: 0 1px 0 rgba(0,0,0,.08); }
.dugmark { color: #8a5a2b; font-size: 10px; margin-left: 1px; }
.s.dug { color: #3d3f42; }
.glitch { animation: glitch .42s steps(2) both; }
@keyframes glitch {
  0% { text-shadow: 2px 0 #e33, -2px 0 #39f; transform: translateX(0); }
  25% { text-shadow: -3px 0 #e33, 3px 0 #39f; transform: translateX(-2px) skewX(-6deg); }
  50% { text-shadow: 3px 0 #e33, -1px 0 #39f; transform: translateX(3px); filter: blur(.4px); }
  75% { text-shadow: -2px 0 #e33, 2px 0 #39f; transform: translateX(-1px) skewX(4deg); }
  100% { text-shadow: none; transform: none; }
}
.s.revealed { background: #e6f4e6; color: #14531f; padding: 1px 2px; font-family: var(--sans); }
h2.struck { text-decoration: line-through; text-decoration-color: var(--red); color: var(--sub); }
.see { padding-left: 1.3em; margin: 0 0 8px; font-size: 16px; line-height: 2; }
.lastmod { margin: 22px -16px 0; padding: 14px 16px; background: var(--bg2); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); font-size: 13px; color: var(--sub); line-height: 1.6; }
.lastmod .red { color: var(--red); }
.mbox { border: 1px solid var(--line); border-left: 4px solid #a2a9b1; background: var(--bg2); padding: 9px 12px; font-size: 13.5px; line-height: 1.6; margin: 4px 0 12px; color: var(--sub); }
.is-hidden .mbox { border-left-color: #8a5a2b; }

/* infobox */
.infobox { width: 100%; border: 1px solid var(--line); background: var(--bg2); border-collapse: collapse; font-size: 14px; margin: 4px 0 16px; }
.infobox caption { font-family: var(--serif); font-weight: 600; font-size: 17px; padding: 8px 0 6px; caption-side: top; text-align: center; background: var(--bg2); border: 1px solid var(--line); border-bottom: 0; }
.infobox th, .infobox td { padding: 6px 10px; text-align: left; vertical-align: top; border-top: 1px solid var(--line2); line-height: 1.5; }
.infobox th { width: 38%; font-weight: 600; color: #3b3d40; }
.ib-img { text-align: center; padding: 8px !important; }
.ib-photo svg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border: 1px solid var(--line2); background: #fff; }
.ib-cap { font-size: 12.5px; color: var(--sub); margin-top: 5px; }
.m-eye { animation: stare 7s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes stare { 0%, 86%, 100% { transform: scale(1); } 90%, 96% { transform: scale(2.6); fill: #fff; stroke: #000; } }

/* main page */
.sitenotice { border: 1px solid #c8b26a; background: #fef6e7; padding: 10px 12px; margin: 2px 0 14px; border-radius: 2px; }
.sitenotice p { font-size: 14.5px !important; line-height: 1.7 !important; margin: 0 !important; }
.sitenotice.thanks { border-color: #9cc59c; background: #eef8ee; }
.welcome { text-align: center; padding: 10px 0 6px; border-bottom: 1px solid var(--line2); }
.wl-h { font-family: var(--serif); font-size: 22px; }
.wl-h b { font-weight: 600; }
.wl-s { font-size: 13px; color: var(--sub); margin-top: 4px; }
.mp-box h2 { font-size: 19px; }
.feat-img svg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1.5; margin-bottom: 10px; border: 1px solid var(--line2); }
.more { font-size: 15px; }
.newlist { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding-left: 1.2em; margin: 0; font-size: 16px; line-height: 2.1; }
.otd-date { font-family: var(--serif); font-size: 17px; margin-bottom: 4px; }

/* special pages */
.special .ttl { margin-bottom: 12px; }
.sp-lead, .sp-note { font-size: 14px !important; color: var(--sub); }
.rc-day { font-size: 14px; margin: 18px 0 6px; padding: 6px 8px; background: var(--bg2); border: 1px solid var(--line2); font-weight: 600; }
.rc { list-style: none; padding: 0; margin: 0; }
.rc li { display: flex; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line2); font-size: 15px; line-height: 1.5; }
.rc-t { color: var(--sub); font-size: 13px; padding-top: 2px; width: 40px; flex: none; font-variant-numeric: tabular-nums; }
.rc-b { min-width: 0; }
.rc-size { color: #006400; font-size: 13px; }
.rc-who { font-size: 13px; color: var(--sub); }
.rc-who i { font-style: normal; color: #72777d; }
.rc-hidden { color: #72777d; }
.rc li.you { background: #eef8ee; }

.login { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.login label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.in { font: inherit; font-size: 16px; font-weight: 400; padding: 10px 11px; border: 1px solid #a2a9b1; border-radius: 2px; background: #fff; color: var(--ink); -webkit-user-select: text; user-select: text; }
.in[readonly] { background: var(--bg2); color: var(--sub); }
.in:focus { outline: 0; border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.lg-msg { font-size: 14px; color: var(--red); line-height: 1.6; min-height: 0; }
.lg-msg:empty { display: none; }
.lg-msg.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.lg-forgot { font-size: 14px; align-self: flex-start; }
.lg-hint { font-size: 14px; background: var(--bg2); border: 1px solid var(--line2); padding: 10px 12px; line-height: 1.7; }
.lg-hint b { display: block; font-size: 16px; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #a2a9b1; border-radius: 3px; background: var(--bg2); font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.btn:active { background: var(--line2); }
.btn-blue { background: #36c; border-color: #36c; color: #fff; }
.btn-blue:active { background: #2a4b8d; }
.btn-red { background: #d33; border-color: #d33; color: #fff; }
.btn-x { background: #0f1419; border-color: #0f1419; color: #fff; }
.btn-x svg { width: 17px; height: 17px; }
.btn[disabled] { opacity: .7; }

/* footer */
.sitefoot { margin: 0 -16px; padding: 20px 16px 40px; background: #fff; border-top: 1px solid var(--line2); font-size: 12.5px; color: var(--sub); line-height: 1.7; }
.sf-logo { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.sitefoot p { margin: 0 0 6px; }
.sf-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sf-note { color: #8b9097; }
.sf-links .sn-guide-link { padding: 0; font-size: inherit; color: var(--link, #3366cc); text-decoration: none; opacity: 1; }
.card .sn-after { margin-top: 24px; color: var(--ink, #202122); }

/* bubble and toast */
.bubble { position: fixed; z-index: 60; max-width: min(300px, calc(100vw - 16px)); padding: 8px 12px; background: #202122; color: #fff; font-size: 14px; line-height: 1.5; border-radius: 6px; pointer-events: none; animation: bin .16s ease-out; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.bubble::after { content: ''; position: absolute; left: var(--tail); bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #202122; }
.bubble.below::after { bottom: auto; top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #202122; }
.bubble.out { opacity: 0; transition: opacity .25s; }
@keyframes bin { from { opacity: 0; transform: translateY(4px) scale(.96); } }
#toast { position: fixed; z-index: 70; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: #3e2915; color: #fff; padding: 11px 18px; border-radius: 22px; font-size: 15px; text-align: center; line-height: 1.45; transition: .25s; box-shadow: 0 6px 20px rgba(0,0,0,.25); white-space: nowrap; }
#toast small { font-size: 12px; opacity: .8; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.flyer { position: fixed; z-index: 80; font-family: var(--serif); font-size: 20px; color: #5a3b1d; pointer-events: none; text-shadow: 0 2px 6px rgba(90,59,29,.35); font-weight: 600; }
.dirt { position: fixed; z-index: 79; width: 5px; height: 5px; border-radius: 50%; background: #7a5434; pointer-events: none; }

/* sheets */
.sheet-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0); transition: background .2s; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg.on { background: rgba(0,0,0,.4); }
.sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 12px 12px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s ease-out; max-height: 86dvh; overflow: auto; }
.sheet-bg.on .sheet { transform: none; }
.sheet.left { position: fixed; left: 0; top: 0; bottom: 0; width: 76%; max-width: 300px; border-radius: 0; transform: translateX(-100%); padding: 10px 0; max-height: none; }
.sheet-bg.on .sheet.left { transform: none; }
.drawer { display: flex; flex-direction: column; }
.drawer a { color: var(--ink); padding: 14px 20px; font-size: 16px; }
.drawer a:active { background: var(--line2); }
.drawer a.dim { color: var(--sub); font-size: 14px; }
.drawer hr { border: 0; border-top: 1px solid var(--line2); margin: 6px 0; }
.sh-title { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0 0 12px; }
.hints { list-style: none; padding: 0; margin: 0 0 6px; }
.hints li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); font-size: 15px; line-height: 1.6; }
.hints b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #8a5a2b; color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 1px; }
.cf-text { font-size: 15px; line-height: 1.7; margin: 0 0 8px; }
.cf-row { display: flex; gap: 10px; }
.col { list-style: none; padding: 0; margin: 10px 0; display: flex; gap: 6px; }
.col li { flex: 1; text-align: center; font-size: 13px; padding: 8px 2px; border: 1px dashed var(--line); border-radius: 4px; color: #a2a9b1; }
.col li.got { border-style: solid; color: var(--ink); background: var(--bg2); font-weight: 600; }
.col li.now { border-color: #8a5a2b; box-shadow: inset 0 0 0 1px #8a5a2b; }
.spoil { margin: 0; font-size: 14px; line-height: 1.6; }
.spoil dt { font-weight: 700; margin-top: 10px; }
.spoil dd { margin: 2px 0 0; color: #3b3d40; }

/* search */
.srch { position: fixed; inset: 0; z-index: 40; background: #fff; display: flex; flex-direction: column; opacity: 0; transition: opacity .15s; max-width: 480px; margin: 0 auto; }
.srch.on { opacity: 1; }
.sbar { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-bottom: 1px solid var(--line2); height: var(--hdr); }
.sb-x { width: 38px; height: 38px; display: grid; place-items: center; flex: none; }
.sb-x svg { width: 22px; height: 22px; }
.sb-field { flex: 1; position: relative; min-width: 0; }
.sb-field input { width: 100%; font: inherit; font-size: 16px; padding: 8px 32px 8px 10px; border: 1px solid #a2a9b1; border-radius: 2px; -webkit-appearance: none; appearance: none; -webkit-user-select: text; user-select: text; }
.sb-field input:focus { outline: 0; border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.sb-field input::-webkit-search-cancel-button { display: none; }
.sb-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; color: var(--sub); font-size: 13px; }
.sb-go { flex: none; padding: 8px 12px; background: #36c; color: #fff; border-radius: 2px; font-size: 15px; font-weight: 600; }
.chips-wrap { padding: 12px 14px 4px; background: #fbf7f1; border-bottom: 1px solid #efe4d3; }
.chips-h { font-size: 12px; color: #8a5a2b; font-weight: 700; letter-spacing: .06em; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; min-height: 52px; align-items: center; }
.chip { width: 44px; height: 44px; border-radius: 6px; background: #fff; border: 1px solid #d8c4a6; box-shadow: 0 2px 0 #d8c4a6; font-family: var(--serif); font-size: 24px; color: #3e2915; display: grid; place-items: center; }
.chip:active, .chip.tap { animation: chiptap .25s; }
@keyframes chiptap { 40% { transform: translateY(2px) scale(.92); box-shadow: 0 0 0 #d8c4a6; } }
.chips-empty { font-size: 13px; color: #9a8468; }
.merge { min-height: 0; text-align: center; }
.merge.pop .mg { animation: mpop 1.6s ease-out both; }
.mg { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 0 10px; font-family: var(--serif); color: #3e2915; }
.mg-a { font-size: 24px; } .mg-a i { font-style: normal; font-size: 16px; color: #a88b66; margin: 0 4px; }
.mg-arrow { color: #a88b66; }
.mg-b { font-size: 40px; font-weight: 600; color: #8a2b0e; }
@keyframes mpop { 0% { opacity: 0; transform: scale(.6); } 18% { opacity: 1; transform: scale(1.12); } 30% { transform: scale(1); } 100% { opacity: 1; } }
.sres { flex: 1; overflow: auto; padding: 4px 14px 20px; }
.sug, .sr-list { list-style: none; padding: 0; margin: 0; }
.sug li a, .sr-list li a { display: block; padding: 12px 2px 4px; font-size: 16px; }
.sug li { border-bottom: 1px solid var(--line2); }
.sug li a { padding-bottom: 12px; }
.sr-list li { border-bottom: 1px solid var(--line2); padding-bottom: 10px; }
.sr-list small { display: block; font-size: 13px; color: var(--sub); line-height: 1.5; }
.sr-none, .sr-cap { font-size: 15px; line-height: 1.7; color: #3b3d40; margin: 14px 0 6px; }
.sr-cap { font-size: 13px; color: var(--sub); }
.sr-maybe { font-size: 16px; margin: 6px 0; }
.sr-maybe a { font-weight: 600; font-style: italic; }

/* diary: the sleep-talk line shows up now and then */
.talk-wrap { position: relative; min-height: 30px; }
.talk-wrap .s { opacity: 0; transition: opacity .3s; font-style: italic; color: #5a4a8a; }
.talk-wrap .ghost { position: absolute; left: 0; top: 2px; font-size: 14px; color: #a2a9b1; transition: opacity .2s; pointer-events: none; }
.talk-wrap.on .s { opacity: 1; }
.talk-wrap.on .ghost { opacity: 0; }
.talk-wrap.held .s { opacity: 1; color: #3d3f42; }
.quiet { color: var(--sub); font-size: 14px !important; }

/* endings */
.end-layer { position: fixed; inset: 0; z-index: 90; background: #fff; overflow: auto; max-width: 480px; margin: 0 auto; padding: 18px 16px 40px; }
.adm .ttl { margin-top: 14px; }
.adm p { font-size: 16px; line-height: 1.75; }
.ok-box { border: 1px solid #14866d; background: #d5fdf4; padding: 10px 12px; font-size: 14.5px; }
.adm-tools { padding-left: 1.3em; font-size: 16px; line-height: 2.1; color: var(--link); }
.adm-tools.nodot li, li.nodot { list-style: none; }
.ch { display: inline-block; }
.ch.drop { animation: chdrop 1.4s cubic-bezier(.5,0,.9,.5) forwards; }
@keyframes chdrop { 0% { transform: none; opacity: 1; } 15% { transform: translateY(-3px); } 100% { transform: translateY(105vh) rotate(var(--r)); opacity: .6; } }
.ttl.fade { transition: opacity 3s 1s; opacity: 0; }
.adm-q { text-align: center; font-family: var(--serif); font-size: 20px !important; margin-top: 18vh; opacity: 0; transition: opacity 1.2s; }
.adm-q.on { opacity: 1; }
.old { filter: sepia(.75) contrast(.95); min-height: 100%; }
.old-bar { background: #fef6e7; border: 1px solid #c8b26a; padding: 10px 12px; font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.typing { min-height: 50px; }
.caret { display: inline-block; width: 1px; height: 1em; background: #202122; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.old-ghost div { height: 14px; background: #eee5d6; margin: 18px 0; border-radius: 2px; }
.old-ghost div:nth-child(2) { width: 80%; } .old-ghost div:nth-child(3) { width: 60%; }
.protect { list-style: none; padding: 0; margin: 10px 0 12px; border: 1px solid var(--line2); }
.protect li { padding: 9px 12px; border-bottom: 1px solid var(--line2); font-size: 15px; display: flex; justify-content: space-between; }
.protect li:last-child { border-bottom: 0; }
.protect li::after { content: '未保護'; font-size: 12px; color: #a2a9b1; }
.protect li.done::after { content: '保護しました ✓'; color: #14866d; font-weight: 700; }
.btn.big { min-height: 54px; font-size: 17px; }
.thanks-scene .sitenotice p { font-size: 16px !important; min-height: 120px; }

.card { position: fixed; inset: 0; z-index: 95; max-width: 480px; margin: 0 auto; background: rgba(255,255,255,.97); padding: 28px 22px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: flex-start; opacity: 0; transition: opacity .6s; overflow: auto; }
.card.on { opacity: 1; }
.card.true { background: rgba(251,247,241,.98); }
.cd-head { text-align: center; font-family: var(--serif); font-size: 15px; letter-spacing: .3em; color: var(--sub); }
.card.true .cd-head { color: #8a5a2b; font-size: 18px; }
.cd-name { text-align: center; font-family: var(--serif); font-size: 34px; margin: 4px 0 12px; }
.cd-line { text-align: center; font-size: 15px; line-height: 1.8; margin: 0; }
.cd-tease { text-align: center; font-size: 14px; line-height: 1.8; color: #8b2d1f; margin: 10px 0 0; font-family: var(--serif); }
.cd-stats { display: flex; justify-content: center; gap: 22px; margin: 6px 0 8px; }
.cd-stats div { text-align: center; }
.cd-stats dt { font-size: 11.5px; color: var(--sub); }
.cd-stats dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cd-more { text-align: center; font-size: 13px; color: var(--sub); margin: 12px 0 0; }

/* table of contents, userboxes, the note from a shared link */
.toc { display: inline-block; min-width: 60%; max-width: 100%; border: 1px solid var(--line); background: var(--bg2); padding: 8px 14px 6px; margin: 4px 0 6px; font-size: 14.5px; }
.toc-h { font-weight: 700; text-align: center; font-size: 14px; margin-bottom: 4px; }
.toc ol { margin: 0; padding-left: 1.4em; line-height: 1.95; }
.ubx { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 14px; }
.ub { display: flex; align-items: center; gap: 10px; border: 1px solid #a7c2e8; background: #eef4fd; font-size: 13.5px; line-height: 1.5; padding: 6px 10px 6px 6px; }
.ub-i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: #cfe0f8; font-weight: 700; color: #33589a; font-size: 14px; }
.refnotice { border: 1px solid #a7c2e8; background: #eef4fd; padding: 10px 12px; margin: 2px 0 10px; font-size: 14px; line-height: 1.7; color: #233a63; }

/* the 地層 photo: a canvas of strata over the admin's bed */
.ib-photo.digsite { position: relative; aspect-ratio: 3 / 2; }
.ib-photo.digsite > svg { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ib-photo.digsite canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ib-photo.digsite:not(.painted) canvas { background: #3a2a1e; }
.ib-photo.digsite.active canvas { touch-action: none; cursor: grab; }
.ib-photo.digsite.crumble canvas { animation: crumble .8s ease-in forwards; }
@keyframes crumble { 0% { opacity: 1; } 30% { transform: translateY(-3px); } 100% { opacity: 0; transform: translateY(30px); filter: blur(3px); } }
.zz { position: absolute; left: 58%; bottom: 8%; pointer-events: none; font-family: var(--sans); font-weight: 700; color: #fff4dc; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.zz i { position: absolute; font-style: normal; opacity: 0; animation: zz 3s infinite; }
.zz i:nth-child(1) { font-size: 12px; } .zz i:nth-child(2) { font-size: 15px; animation-delay: 1s; } .zz i:nth-child(3) { font-size: 19px; animation-delay: 2s; }
.digging .zz { display: none; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -60px); } }
.pw-row th, .pw-row td { background: #fbf7f1; }
.pw-row td { font-family: var(--serif); font-size: 18px; font-weight: 700; color: #3e2915; letter-spacing: .08em; -webkit-user-select: text; user-select: text; }

/* ending scenes */
.warn-box { border: 1px solid #c8b26a; background: #fef6e7; padding: 10px 12px; font-size: 14.5px; }
.mole-stage { position: relative; margin: 10px 0 14px; }
.mole-pic svg { display: block; width: 100%; height: auto; }
.mole-pic.shake { animation: mshake .5s; }
@keyframes mshake { 20% { transform: translateX(-6px) rotate(-2deg); } 40% { transform: translateX(5px) rotate(2deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.mole-pic.pop { animation: mpop2 .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes mpop2 { 0% { transform: scale(.9); } 100% { transform: scale(1); } }
.mole-pic.deeper svg { filter: brightness(.8); transition: filter 1s; }
.say { position: relative; margin: 6px auto 0; max-width: 300px; background: #fff; border: 2px solid #3e2915; border-radius: 14px; padding: 10px 14px; font-size: 17px; text-align: center; min-height: 48px; }
.say::before { content: ''; position: absolute; left: 50%; top: -10px; margin-left: -9px; border: 9px solid transparent; border-top: 0; border-bottom-color: #3e2915; }
.sitenotice.after { margin-top: 18px; }
.sitenotice.after p { min-height: 80px; }
.cd-vs { text-align: center; font-size: 14px; color: #14866d; font-weight: 700; margin: 0 0 4px; }
.cd-post { margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid #a2a9b1; background: var(--bg2); font-size: 13.5px; line-height: 1.6; color: #3b3d40; }
.card > :first-child { margin-top: auto; }
.card > :last-child { margin-bottom: auto; }
