/* クロレキシ: a phone-sized results page of the made-up search engine "Saguru". */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #e8eaed; overscroll-behavior: none; }
body {
  font-family: Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  color: #202124;
  -webkit-text-size-adjust: 100%;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
input { user-select: text; -webkit-user-select: text; }

#app {
  position: relative; display: flex; flex-direction: column;
  width: 100%; max-width: 430px; height: 100vh; height: 100dvh; margin: 0 auto;
  background: #fff; overflow: hidden;
}
@media (min-width: 560px) and (min-height: 700px) {
  body { display: grid; place-items: center; }
  #app { width: 400px; height: min(100dvh - 32px, 880px); border-radius: 26px; box-shadow: 0 10px 40px rgba(0,0,0,.18), 0 0 0 9px #202124; }
}

/* --- status bar --- */
.status { flex: none; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 22px; font-size: 13.5px; background: #fff; z-index: 3; }
.st-time { font-weight: 700; letter-spacing: .02em; }
.st-r { display: flex; align-items: center; gap: 6px; }
.st-r svg { height: 11px; width: auto; fill: #202124; }
.batt { display: flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; padding: 1px 3px; border-radius: 4px; }
.batt-body { position: relative; width: 23px; height: 11px; border: 1.4px solid #202124; border-radius: 3px; padding: 1px; }
.batt-body::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: #202124; border-radius: 0 1px 1px 0; }
.batt-body i { display: block; height: 100%; background: #202124; border-radius: 1px; }
.batt.low { color: #d93025; }
.batt.low .batt-body { border-color: #d93025; }
.batt.low .batt-body i { background: #d93025; }


#scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; position: relative; }
.frozen #scroll *, .frozen #pager *, .frozen #status * { animation-play-state: paused !important; }

/* --- header and search box --- */
.sh { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 54px; padding: 0 6px; }
.sh-menu { width: 44px; height: 44px; display: grid; place-items: center; color: #5f6368; }
.sh-menu svg { width: 24px; height: 24px; }
.sh-logo { justify-self: center; }
.wm { font-size: 27px; font-weight: 700; letter-spacing: -.5px; font-family: "Product Sans", "Avenir Next", "Segoe UI", Roboto, Arial, sans-serif; }
.wm b { font-weight: 700; }
.sh-av { position: relative; justify-self: center; display: grid; place-items: center; width: 44px; height: 44px; }
.av { display: inline-grid; place-items: center; border-radius: 50%; background: #7b5ea7; color: #fff; font-weight: 700; line-height: 1; overflow: hidden; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #d93025; color: #fff; font: 700 11px/18px Roboto, sans-serif; font-style: normal; text-align: center; border: 2px solid #fff; box-sizing: content-box; }

.sbox { display: flex; align-items: center; margin: 2px 14px 6px; min-height: 48px; border-radius: 24px; box-shadow: 0 1px 6px rgba(32,33,36,.28); padding: 0 6px 0 18px; }
.sq { flex: 1; min-width: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 12px 0; }
.sq:has(.caret) { white-space: normal; overflow: visible; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -.18em; background: #1a73e8; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sb-i { flex: none; width: 36px; height: 40px; display: grid; place-items: center; color: #70757a; }
.sb-i svg { width: 22px; height: 22px; }
.sb-x { border-right: 1px solid #dadce0; height: 26px; }
.sb-lens { color: #4285f4; }

.tabs { display: flex; gap: 20px; padding: 6px 18px 0; border-bottom: 1px solid #ebebeb; font-size: 14px; color: #5f6368; overflow: hidden; white-space: nowrap; }
.tabs b { font-weight: 400; padding: 8px 0 10px; flex: none; }
.tabs b.on { color: #1a73e8; border-bottom: 3px solid #1a73e8; padding-bottom: 7px; font-weight: 500; }
.tabs b.kuro { color: #fff; background: #202124; padding: 4px 10px; margin: 4px 0 6px; border-radius: 12px; font-weight: 700; }
.stats { margin: 0; padding: 10px 18px 2px; font-size: 12.5px; color: #70757a; }

/* --- tip (the rule) --- */
.tip { display: flex; gap: 10px; margin: 6px 14px 8px; padding: 9px 12px; border-radius: 12px; background: #f1f6fe; border: 1px solid #d2e3fc; }
.tip-i svg { width: 22px; height: 22px; }
.tip b { font-size: 13px; color: #1967d2; }
.tip p { margin: 2px 0 0; font-size: 14px; line-height: 1.55; color: #202124; }
.tip em { font-style: normal; font-weight: 700; color: #1967d2; }

/* --- results --- */
.res { padding: 12px 18px 13px; border-bottom: 6px solid #f1f3f4; background: #fff; }
.site { display: flex; align-items: center; gap: 10px; }
.site > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.site b { font-size: 14px; font-weight: 400; color: #202124; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site small { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kebab { color: #70757a; width: 18px; }
.kebab svg { width: 18px; height: 18px; display: block; }
.fav { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; border: 1px solid #e3e5e8; font-style: normal; font-size: 13px; font-weight: 700; color: #5f6368; }
.fav-poem { background: #1b0f2b; color: #c7b3e6; border-color: #1b0f2b; }
.fav-sch { background: #e6f4ea; color: #188038; }
.fav-run { background: #fce8e6; color: #c5221f; }
.fav-co { background: #e8f0fe; color: #1967d2; }
.fav-sns { background: #fef7e0; color: #b06000; }
.fav-ad { background: #fff; }
.fav-news { width: 20px; height: 20px; font-size: 11px; display: inline-grid; margin-right: 6px; vertical-align: -5px; }
.t { margin: 6px 0 3px; font-size: 18px; font-weight: 400; line-height: 1.35; color: #1a0dab; }
.t.visited { color: #7b1fa2; }
.visit { margin: 0 0 4px; font-size: 12.5px; color: #70757a; }
.sn { margin: 0; font-size: 14px; line-height: 1.58; color: #4d5156; }
.date { color: #70757a; }
.pdf { display: inline-block; margin-right: 6px; padding: 0 4px; border: 1px solid #c5221f; border-radius: 3px; color: #c5221f; font-size: 11px; font-weight: 700; vertical-align: 3px; line-height: 16px; }
.ad-l { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #202124; }
.ad.follow { position: sticky; top: 0; z-index: 5; box-shadow: 0 4px 12px rgba(0,0,0,.18); border-bottom-width: 0; }
.poem.dark { background: #0d0a12; border-bottom-color: #f1f3f4; }
.poem.dark .site b, .poem.dark .sn { color: #d6cfe0; }
.poem.dark .site small, .poem.dark .date { color: #9a90a8; }
.poem.dark .t { color: #b9a2ff; }
.gone { height: 0; }
.gone-res { color: #70757a; }
.gone-res .sn { color: #70757a; font-size: 13px; }
.del { background: #fdf7ff; outline: 2px solid transparent; }
.del .t { text-decoration: underline; text-underline-offset: 3px; }
.trap .t { font-weight: 500; }

/* people also ask */
.paa { padding: 12px 18px 4px; border-bottom: 6px solid #f1f3f4; }
.paa h2, .imgs h2, .rel h2, .news h2 { margin: 0 0 6px; font-size: 18px; font-weight: 400; color: #202124; }
.q { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; border-top: 1px solid #ebebeb; font-size: 15px; }
.q span { flex: 1; min-width: 0; }
.q svg { flex: none; width: 22px; height: 22px; color: #5f6368; }
.paa.auto .q:first-of-type svg { animation: chevopen .4s 2s both; }
.ans { overflow: hidden; max-height: 0; animation: paaopen .5s 2s both; }
.paa.now .ans { animation: none; max-height: 80px; }
.paa.now .q:first-of-type svg { animation: none; transform: rotate(180deg); }
.ans p { margin: 0; padding: 4px 0 14px; font-size: 16px; font-weight: 700; color: #202124; }
@keyframes paaopen { to { max-height: 80px; } }
@keyframes chevopen { to { transform: rotate(180deg); } }

/* images */
.imgs { padding: 12px 18px 13px; border-bottom: 6px solid #f1f3f4; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.strip figure { margin: 0; min-width: 0; }
.th { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #f1f3f4; }
.th svg { display: block; width: 100%; height: 100%; }
.strip figcaption { margin-top: 4px; font-size: 11px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ceo */
.ceo-row { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.ceo-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ceo-label { font-size: 15px; font-weight: 700; color: #202124; }
.ceo-name { font-size: 18px; color: #3c4043; word-break: break-all; }
.ceo-body { flex: 1; min-width: 0; }
.ceo-thumb { flex: none; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #f1f3f4; }
.ceo-thumb svg { width: 100%; height: 100%; display: block; }

/* map */
.mapc { border-bottom: 6px solid #f1f3f4; }
.map { position: relative; height: 104px; overflow: hidden; }
.map svg { width: 100%; height: 100%; display: block; }
.pin { position: absolute; left: 56%; top: 18%; width: 26px; height: 26px; margin-left: -13px; background: #ea4335; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.pin::after { content: ""; position: absolute; left: 8px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #a50e0e; }
.pin.walk { animation: pinwalk 9s linear infinite; }
@keyframes pinwalk {
  0% { left: 56%; top: 18%; } 25% { left: 42%; top: 40%; } 50% { left: 26%; top: 52%; } 75% { left: 14%; top: 66%; } 100% { left: 6%; top: 74%; }
}
.map-info { padding: 8px 18px 12px; }
.map-info b { font-size: 16px; font-weight: 500; color: #1a0dab; }
.map-info p { margin: 4px 0 0; font-size: 13.5px; color: #4d5156; }
.map-info .dim { color: #70757a; font-size: 12.5px; }
.stars { color: #f5a623; letter-spacing: -1px; }
.stars s { text-decoration: none; color: #dadce0; }

/* related */
.rel { padding: 12px 18px 16px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips > span { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px; border-radius: 20px; background: #f1f3f4; font-size: 14px; min-width: 0; }
.chips > span > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips svg { flex: none; width: 16px; height: 16px; color: #70757a; }
.foot { margin: 6px 0 0; padding: 14px 18px 18px; font-size: 12px; color: #70757a; background: #f8f9fa; text-align: center; }

/* news (the deletion ending) */
.news { padding: 12px 18px 14px; border-bottom: 8px solid #f1f3f4; }
.news article { border: 1px solid #dadce0; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.news-src { margin: 0; font-size: 12.5px; color: #4d5156; }
.news h3 { margin: 6px 0 6px; font-size: 18px; line-height: 1.4; font-weight: 700; color: #202124; }
.news-sn { margin: 0; font-size: 13.5px; color: #4d5156; line-height: 1.55; }

/* --- pager: the sign of the corridor --- */
#pager { flex: none; background: #fff; border-top: 1px solid #e3e5e8; box-shadow: 0 -2px 8px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom); z-index: 3; }
.pg { display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 70px; padding: 0 6px; }
.pg.final { justify-content: center; }
.pg-btn { flex: none; display: flex; align-items: center; justify-content: center; gap: 2px; width: 74px; height: 52px; border-radius: 26px; font-size: 16px; font-weight: 700; color: #1a73e8; background: #f1f6fe; border: 1px solid #d2e3fc; }
.pg-btn:active { background: #d2e3fc; transform: scale(.96); }
.pg-btn .arr { font-size: 22px; line-height: 1; margin-top: -2px; }
.pg-mid { display: flex; align-items: flex-end; justify-content: center; min-width: 0; }
.pc { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.pc[data-tap] { width: var(--cw, 17px); }
.pl { display: block; font: 700 23px/1 "Product Sans", "Avenir Next", "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: -.5px; }
.pl i { font-style: normal; }
.pn { display: block; height: 18px; margin-top: 3px; font-size: 13px; line-height: 18px; color: #1a0dab; min-width: 14px; text-align: center; }
.pc.cur .pn { color: #fff; background: #202124; border-radius: 9px; font-weight: 700; width: 18px; min-width: 18px; padding: 0; }
@media (max-width: 374px) {
  .pg-btn { width: 64px; font-size: 15px; }
  .pl { font-size: 20px; }
  .pc[data-tap] { --cw: 15px; }
  .pn { font-size: 12px; }
}

/* --- overlays --- */
#layer { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
#layer > * { pointer-events: auto; }
#toast { position: absolute; left: 50%; top: 40px; transform: translate(-50%, -12px); max-width: 92%; padding: 9px 16px; border-radius: 20px; background: #202124; color: #fff; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .22s; z-index: 30; white-space: nowrap; }
#toast.on { opacity: .95; transform: translate(-50%, 0); }
.bubble { position: absolute; z-index: 25; max-width: 260px; padding: 8px 12px; border-radius: 10px; background: #3c4043; color: #fff; font-size: 13.5px; line-height: 1.4; pointer-events: none; }
.bubble.out { opacity: 0; transition: opacity .25s; }

.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .2s; display: flex; align-items: flex-end; }
.sheet-bg.on { background: rgba(0,0,0,.4); }
.sheet { width: 100%; max-height: 82%; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s ease-out; }
.sheet-bg.on .sheet { transform: none; }
.sh-title { margin: 0 0 10px; font-size: 17px; }
.sh-note { font-size: 14px; color: #5f6368; line-height: 1.6; }
.cf { font-size: 15px; line-height: 1.6; margin: 4px 0 16px; }
.cf-row { display: flex; gap: 10px; }
.cf-row .btn { flex: 1; }
.menu { display: flex; flex-direction: column; }
.menu button { text-align: left; padding: 15px 4px; font-size: 16px; border-bottom: 1px solid #ebebeb; }
.menu .dim { color: #70757a; }
.dex { margin: 0 0 14px; padding: 0 0 0 26px; font-size: 14px; }
.dex li { padding: 6px 0; border-bottom: 1px solid #f1f3f4; color: #9aa0a6; }
.dex li.got { color: #202124; }
.dex li b { display: block; font-size: 14.5px; }
.dex li span { display: block; font-size: 12.5px; color: #5f6368; margin-top: 1px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border-radius: 23px; border: 1px solid #dadce0; background: #fff; font-size: 15px; font-weight: 500; color: #1a73e8; }
.btn:active { background: #f1f3f4; }
.btn-red { background: #d93025; border-color: #d93025; color: #fff; }
.btn-wide { width: 100%; margin-top: 8px; }

/* the miss screen */
.miss { position: absolute; inset: 0; cursor: pointer; }
.hole { position: absolute; border-radius: 50%; box-shadow: 0 0 0 2000px rgba(10,10,14,.55); }
.ring { position: absolute; overflow: visible; pointer-events: none; transform: rotate(-2deg); }
.ring ellipse { fill: none; stroke: #ff3b30; stroke-width: 4; stroke-linecap: round;  vector-effect: non-scaling-stroke; }
.miss-card { position: absolute; left: 12px; right: 12px; background: #fff; border-radius: 16px; padding: 14px 16px 10px; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.miss-card.at-bottom { bottom: 12px; }
.miss-card.at-top { top: 12px; }
.miss-h { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #d93025; letter-spacing: .05em; }
.miss-h.none { color: #1a73e8; }
.miss-what { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.45; }
.miss-q { margin: 6px 0 8px; font-size: 14.5px; color: #3c4043; }
.miss-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #f1f3f4; padding-top: 8px; }
.miss-n { font-size: 12.5px; color: #70757a; }
.miss-share { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid #dadce0; font-size: 13px; color: #1a73e8; }
.miss-go { margin: 8px 0 0; text-align: center; font-size: 13px; color: #70757a; }

/* full-screen pages over the results (blog form, the scam ad) */
.ov { position: absolute; inset: 30px 0 0; display: flex; flex-direction: column; background: #fff; animation: ovin .25s ease-out; }
@keyframes ovin { from { opacity: 0; transform: translateY(16px); } }
.blog { background: #120a1f; color: #e6def2; }
.blog-h { flex: none; display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #2c1d44; }
.blog-logo { font-family: serif; font-size: 20px; font-weight: 700; color: #c7b3e6; letter-spacing: .05em; }
.blog-h small { color: #8a7ca3; font-size: 12px; }
.blog-body { flex: 1; overflow-y: auto; padding: 16px 18px 28px; }
.blog-body h2 { margin: 0 0 6px; font-size: 19px; }
.blog-note { margin: 0 0 14px; font-size: 13.5px; color: #b3a7c6; line-height: 1.6; }
.bp { padding: 14px; border: 1px solid #3a2858; border-radius: 10px; background: #1b1030; }
.bp-t { margin: 0; font-family: serif; font-size: 17px; font-weight: 700; color: #d8c7ff; }
.bp-d { margin: 2px 0 8px; font-size: 12px; color: #8a7ca3; }
.bp-b { margin: 0; font-family: serif; font-size: 14.5px; line-height: 1.85; }
.bp-s { margin: 8px 0 0; text-align: right; font-family: serif; font-size: 13px; color: #b3a7c6; }
.lbl { margin: 16px 0 8px; font-size: 13.5px; color: #b3a7c6; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.reasons button { min-height: 42px; padding: 0 14px; border-radius: 21px; border: 1px solid #5b4380; color: #e6def2; font-size: 14px; }
.reasons button.on { background: #c7b3e6; color: #120a1f; border-color: #c7b3e6; font-weight: 700; }
.send { display: block; width: 100%; min-height: 50px; margin-top: 16px; border-radius: 25px; background: #8c63d9; color: #fff; font-size: 16px; font-weight: 700; }
.send:disabled { background: #3a2858; color: #8a7ca3; }
.blog-to { margin: 10px 0 0; font-size: 12.5px; color: #8a7ca3; text-align: center; }
.blog-done { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #241640; font-size: 14px; line-height: 1.7; text-align: center; }
.blog-done b { color: #fff; }

.lp { background: #fffbea; }
.lp-head { flex: none; display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px; background: #ffcc00; }
.lp-head b { font-size: 18px; font-weight: 900; color: #c00; }
.lp-head small { font-size: 12px; font-weight: 700; color: #c00; }
.lp-body { flex: 1; overflow-y: auto; padding: 18px 18px 28px; }
.lp-step { margin: 0 0 8px; font-size: 14.5px; opacity: 0; animation: stepin .3s forwards; }
.lp-step.s1 { animation-delay: .1s; } .lp-step.s2 { animation-delay: 1.1s; } .lp-step.s3 { animation-delay: 2s; }
@keyframes stepin { to { opacity: 1; } }
.lp-bar { height: 10px; margin: 6px 0 14px; border-radius: 5px; background: #f1e3a6; overflow: hidden; }
.lp-bar i { display: block; height: 100%; width: 0; background: #e53935; animation: bar 3s ease-in-out forwards; }
@keyframes bar { to { width: 100%; } }
.lp.done .lp-step, .lp.done .lp-bar { display: none; }
.lp-done { display: none; }
.lp.done .lp-done { display: block; animation: stepin .4s; opacity: 1; }
.lp-done h2 { margin: 0 0 4px; font-size: 22px; color: #c00; }
.lp-done > p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.tr { margin: 0; padding: 0; list-style: none; }
.tr li { padding: 6px 10px; margin-bottom: 4px; background: #fff; border: 1px solid #f1e3a6; border-radius: 8px; font-size: 14px; line-height: 1.45; }
.tr small { display: block; font-size: 11px; color: #a67c00; font-weight: 700; }
.tr li.more { text-align: center; color: #a67c00; font-size: 13px; }
.lp-views { margin: 10px 0 0; font-size: 15px; text-align: center; }
.lp-views b { font-size: 22px; color: #c00; }

/* the ending card */
.endc { position: absolute; inset: 0; display: flex; align-items: flex-end; background: rgba(0,0,0,0); transition: background .3s; }
.endc.on { background: rgba(0,0,0,.25); }
.endc-sheet { width: 100%; max-height: 60%; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -6px 24px rgba(0,0,0,.2); }
.endc.on .endc-sheet { transform: none; }
.endc.on.min { background: rgba(0,0,0,0); }
.endc.on.min .endc-sheet { transform: translateY(calc(100% - 92px)); }
.endc-grip { display: block; width: 100%; height: 22px; margin: -12px 0 2px; position: relative; }
.endc-grip::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #dadce0; }
.endc-k { margin: 0; font-size: 13px; font-weight: 700; color: #7b5ea7; letter-spacing: .08em; }
.endc-sheet h2 { margin: 2px 0 4px; font-size: 26px; }
.endc-lead { margin: 0 0 12px; font-size: 14.5px; color: #3c4043; }
.endc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 14px; }
.endc-stats div { background: #f8f9fa; border-radius: 10px; padding: 8px 10px; }
.endc-stats dt { font-size: 11.5px; color: #70757a; }
.endc-stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.btn-share { display: block; width: 100%; min-height: 52px; border-radius: 26px; background: #202124; color: #fff; font-size: 17px; font-weight: 700; }
.btn-share:active { background: #3c4043; }
.endc-row { display: flex; gap: 8px; margin-top: 8px; }
.endc-row .btn { flex: 1; }
.endc .sn-after { margin-top: 18px; color: #202124; }

/* --- title --- */
.title { min-height: 100%; display: flex; flex-direction: column; padding: 0 22px; }
.tt-top { padding: 34px 0 6px; text-align: center; }
.tt { margin: 0; font-size: 42px; font-weight: 900; letter-spacing: .08em; color: #120a1f; text-shadow: 3px 3px 0 #d6c8ef; }
.tt-lead { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: #3c4043; }
.home { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 0; }
.home-logo { text-align: center; margin-bottom: 18px; }
.home-logo .wm { font-size: 44px; }
.home-box { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 16px; border-radius: 26px; border: 1px solid #dfe1e5; box-shadow: 0 1px 6px rgba(32,33,36,.18); }
.home-box > svg { flex: none; width: 20px; height: 20px; color: #9aa0a6; }
.home-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; font: 17px/1 inherit; font-size: 17px; color: #202124; background: transparent; }
.home-clear { flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: #70757a; }
.home-clear svg { width: 20px; height: 20px; }
.home-note { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: #70757a; }
.btn-start { display: block; width: 100%; max-width: 260px; margin: 18px auto 0; min-height: 52px; border-radius: 26px; background: #1a73e8; color: #fff; font-size: 17px; font-weight: 700; box-shadow: 0 2px 6px rgba(26,115,232,.35); }
.btn-start:active { background: #1765cc; }
.resume { margin: 10px 0 0; text-align: center; font-size: 13px; color: #5f6368; }
.tt-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 22px; }
.link { min-height: 36px; padding: 0 12px; font-size: 14px; color: #1a73e8; }
.link.dim { color: #70757a; font-size: 13px; }

/* --- rare anomalies --- */
.notif-wrap { position: sticky; top: 0; height: 0; z-index: 6; }
.notif { position: absolute; left: 10px; right: 10px; top: 6px; display: flex; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(245,245,247,.97); box-shadow: 0 6px 20px rgba(0,0,0,.22); animation: notifin .45s 1s both cubic-bezier(.2,.9,.3,1.2); }
@keyframes notifin { from { opacity: 0; transform: translateY(-70px); } }
.notif-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #06c755; color: #fff; font-style: normal; font-weight: 900; font-size: 17px; }
.notif-h { margin: 0; font-size: 12px; color: #6b6b70; }
.notif-h b { color: #202124; }
.notif-t { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; color: #202124; }

.kid { display: flex; gap: 10px; align-items: flex-start; margin: 4px 14px 8px; }
.kid-av { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid #3d1f5c; }
.kid-av svg { width: 100%; height: 100%; display: block; }
.kid-b { position: relative; flex: 1; min-width: 0; padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: #1b0f2b; color: #f0e8ff; }
.kid-b small { display: block; font-size: 11.5px; color: #b9a2d9; }
.kid-t { margin: 2px 0 0; font-size: 17px; font-weight: 700; line-height: 1.4; font-family: serif; }
.kid-t.say { animation: say .35s ease-out; }
@keyframes say { from { opacity: 0; transform: translateX(-6px); } }

.lucky { margin: 2px 14px 8px; }
.lk-btns { display: flex; gap: 8px; justify-content: center; }
.lk-b { padding: 9px 14px; border-radius: 6px; background: #f8f9fa; border: 1px solid #f1f3f4; font-size: 14px; color: #3c4043; }
.lk-press { animation: press .3s 1s both; }
@keyframes press { to { background: #fce8e6; border-color: #ea4335; color: #c5221f; box-shadow: inset 0 2px 4px rgba(0,0,0,.15); } }
.lk-player { margin-top: 8px; padding: 10px 14px 12px; border-radius: 12px; background: #120a1f; color: #e6def2; animation: stepin .3s 1.3s both; opacity: 0; }
.lk-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12.5px; color: #b9a2d9; }
.lk-wave { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.lk-wave i { width: 3px; background: #c7b3e6; border-radius: 1px; animation: wave .8s ease-in-out infinite alternate; }
.lk-wave i:nth-child(2) { animation-delay: .15s; } .lk-wave i:nth-child(3) { animation-delay: .3s; } .lk-wave i:nth-child(4) { animation-delay: .45s; } .lk-wave i:nth-child(5) { animation-delay: .6s; }
@keyframes wave { from { height: 3px; } to { height: 14px; } }
.lk-line { margin: 2px 0 0; font-family: serif; font-size: 15px; line-height: 1.6; opacity: 0; animation: stepin .5s var(--d) both; }

.exit8 { padding: 14px 18px 16px; border-bottom: 6px solid #f1f3f4; background: #2b2b2b; }
.ex-sign { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 4px; background: #f6c400; color: #111; box-shadow: 0 0 18px rgba(246,196,0,.45), inset 0 0 0 2px #111; }
.ex-num { display: grid; place-items: center; width: 52px; height: 52px; background: #111; color: #f6c400; font: 900 40px/1 "Helvetica Neue", Arial, sans-serif; border-radius: 3px; }
.ex-man svg { width: 34px; height: 34px; fill: #111; display: block; }
.ex-txt { display: flex; flex-direction: column; line-height: 1; }
.ex-txt b { font-size: 30px; font-weight: 900; letter-spacing: .05em; }
.ex-txt small { font: 800 14px/1.2 "Helvetica Neue", Arial, sans-serif; letter-spacing: .1em; }
.ex-arrow { margin-left: auto; font-size: 38px; font-weight: 900; }
.ex-note { margin: 10px 0 0; font-size: 13.5px; color: #e8e8e8; text-align: center; }

.reveal .notif, .reveal .lk-press, .reveal .lk-player, .reveal .lk-line { animation: none; opacity: 1; transform: none; }
.reveal .lk-press { background: #fce8e6; border-color: #ea4335; color: #c5221f; }

#toast.rare { background: linear-gradient(90deg, #b8860b, #f6c400, #b8860b); color: #1b1200; font-weight: 800; font-size: 15px; padding: 11px 20px; box-shadow: 0 4px 16px rgba(246,196,0,.5); }
.miss-card.rare { border: 3px solid #f6c400; box-shadow: 0 0 0 4px rgba(246,196,0,.3), 0 6px 24px rgba(0,0,0,.3); }
.miss-h.rare { color: #b8860b; font-size: 15px; }
.endc-rare { margin: -4px 0 12px; padding: 8px; border-radius: 10px; background: linear-gradient(90deg, #fff6cc, #ffe680, #fff6cc); color: #7a5a00; font-weight: 800; text-align: center; }
.sh-rare { margin-left: 10px; font-size: 13px; color: #b8860b; font-weight: 700; }
.sh-title.rare { margin-top: 6px; color: #b8860b; }
.dex.rare li.got b { color: #8a6400; }

/* --- 異変を送る (ugc.js) --- */
.btn-blue { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.btn-blue:active { background: #1765cc; }
.btn:disabled, .btn-blue:disabled { opacity: .5; }

.ed-head { padding: 14px 16px 12px; background: #fdf6e3; border-bottom: 1px solid #e8dcb8; }
.ed-head h2 { margin: 0; font-size: 19px; color: #120a1f; }
.ed-lead { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.55; color: #3c4043; }
.ed-lead b { color: #1a73e8; }
.ed-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ed-f span { font-size: 11.5px; color: #5f6368; }
.ed-f input, .ed-in { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid #dadce0; border-radius: 10px; font: inherit; font-size: 16px; color: #202124; background: #fff; outline: none; }
.ed-f input:focus, .ed-in:focus { border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,.2); }
.ed-err { margin: 6px 0 0; font-size: 13px; color: #d93025; }
.ed-lazy { margin-top: 10px; font-size: 13.5px; color: #1a73e8; min-height: 32px; }
.editor [data-slot] { outline: 1.5px dashed #8ab4f8; outline-offset: 1px; border-radius: 2px; cursor: pointer; }
.editor [data-slot]:active { background: #e8f0fe; }
.editor .ugc { outline: 2px solid #f6c400; background: #fff6cc; }
.ed-bar { display: flex; align-items: center; gap: 8px; height: 70px; padding: 0 10px; }
.ed-status { flex: 1; min-width: 0; font-size: 12.5px; color: #5f6368; text-align: center; line-height: 1.35; }
.ed-cancel { min-height: 44px; padding: 0 12px; font-size: 14px; color: #5f6368; }
.ed-next { min-height: 48px; padding: 0 18px; border-radius: 24px; background: #1a73e8; color: #fff; font-size: 15px; font-weight: 700; }
.ed-next:disabled { background: #dadce0; color: #fff; }
.ed-orig-l { margin: 0 0 2px; font-size: 12px; color: #70757a; }
.ed-orig { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #f1f3f4; font-size: 14px; line-height: 1.5; color: #3c4043; word-break: break-all; }
.ed-count { margin: 4px 0 0; text-align: right; font-size: 12px; color: #70757a; }
.sheet .cf-row { margin-top: 12px; }
.presets { margin: 8px 0 12px; padding: 0; list-style: none; }
.presets button { display: block; width: 100%; text-align: left; padding: 9px 4px; border-bottom: 1px solid #f1f3f4; }
.presets b { display: block; font-size: 14.5px; }
.presets span { display: block; font-size: 12.5px; color: #5f6368; margin-top: 1px; }

.cmp { background: #f1f3f4; }
.cmp-head, .made-head { flex: none; padding: 14px 18px; background: #fff; border-bottom: 1px solid #e3e5e8; font-size: 17px; }
.cmp-body { flex: 1; overflow-y: auto; padding: 12px 12px 28px; }
.cmp-lead { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: #3c4043; }
.cmp-l { margin: 10px 2px 4px; font-size: 12.5px; font-weight: 700; color: #5f6368; }
.cmp-box { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); pointer-events: none; }
.cmp-box.after { box-shadow: 0 0 0 2px #ea4335, 0 1px 4px rgba(0,0,0,.08); }
.cmp-box .res, .cmp-box .paa, .cmp-box .imgs, .cmp-box .mapc { border-bottom: 0; }
.cmp-hit { outline: 3px solid #ea4335; outline-offset: 2px; border-radius: 3px; }
.cmp-none { margin: 0; padding: 18px; text-align: center; color: #70757a; font-size: 14px; }
.cmp-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 14px 4px; font-size: 14px; }
.cmp-meta dt { color: #70757a; }
.cmp-meta dd { margin: 0; font-weight: 700; word-break: break-all; }
.cmp-note { margin: 10px 0 0; font-size: 12px; color: #70757a; text-align: center; }

.made { background: #fdf6e3; }
.made-body { flex: 1; overflow-y: auto; padding: 30px 22px; text-align: center; }
.made-env { display: inline-block; padding: 18px 34px; border: 2px solid #d8c9a3; border-radius: 8px; background: #fffaf0; font: 900 30px/1 serif; letter-spacing: .15em; color: #120a1f; transform: rotate(-3deg); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.made-body h2 { margin: 22px 0 6px; font-size: 22px; }
.made-body p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: #3c4043; }
.made-url { padding: 10px; border-radius: 10px; background: #fff; border: 1px solid #e8dcb8; font-size: 13px; word-break: break-all; user-select: text; -webkit-user-select: text; }

.mine { margin: 6px 0 12px; padding: 0; list-style: none; }
.mine li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 10px 2px; border-bottom: 1px solid #f1f3f4; }
.mine-what { margin: 0; font-size: 13.5px; color: #3c4043; grid-column: 1; }
.mine-n { margin: 0; font-size: 15px; font-weight: 700; grid-column: 1; }
.mine li .miss-share { grid-column: 2; grid-row: 1 / span 2; }

.tt-gift { margin: 0 auto 16px; padding: 10px 16px; border: 2px solid #d8c9a3; border-radius: 10px; background: #fdf6e3; color: #120a1f; font-weight: 800; font-size: 15px; text-align: center; transform: rotate(-1.5deg); box-shadow: 0 6px 16px rgba(0,0,0,.1); word-break: break-all; }
.tt-gift::before { content: "✉ "; color: #b3261e; }
.tt-gift.none { font-weight: 400; font-size: 13px; color: #5f6368; transform: none; box-shadow: none; }
.tt-gift.none::before { content: ""; }
.tip-gift { margin: 6px 0 0 !important; padding-top: 6px; border-top: 1px dashed #c6dafc; font-size: 12.5px !important; color: #8a5a00 !important; font-weight: 700; word-break: break-all; }
.gift-foot { margin: 0; padding: 12px 18px 18px; background: #f8f9fa; font-size: 11.5px; color: #70757a; text-align: center; }
.gift-report { margin-left: 6px; padding: 2px 6px; font-size: 11.5px; color: #70757a; text-decoration: underline; }
#toast.gift { background: #fdf6e3; color: #120a1f; border: 2px solid #d8c9a3; font-weight: 800; max-width: 94%; white-space: normal; text-align: center; }
.miss-card.gift { border: 3px solid #d8c9a3; background: #fffaf0; }
.miss-card.gift .miss-h { color: #b3261e; font-size: 15px; }
.endc-gift { margin: -4px 0 12px; padding: 8px; border-radius: 10px; background: #fdf6e3; border: 1px solid #e8dcb8; color: #120a1f; font-weight: 800; text-align: center; word-break: break-all; }
.share-pick { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.share-pick button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid #dadce0; }
.share-pick button[data-s="gift"] { border: 2px solid #d8c9a3; background: #fdf6e3; }
.share-pick b { display: block; font-size: 16px; }
.share-pick span { display: block; margin-top: 2px; font-size: 12.5px; color: #5f6368; line-height: 1.45; }

/* --- the seven places to look (data-focus) --- */
.top { border-bottom: 6px solid #f1f3f4; }
.top .tabs { border-bottom: 0; }
.top .stats { padding-bottom: 8px; }
.pdfr .sn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-kuro { background: #120a1f; color: #fff; border-color: #120a1f; }
.map { height: 96px; }

/* --- チラ見 (hold the "1" of the pager: page 1 instead of this page) --- */
#peek { position: relative; }
#pager [data-peek] { position: relative; touch-action: none; cursor: pointer; }
#pager [data-peek]::before { content: ""; position: absolute; right: -4px; top: -14px; bottom: -12px; width: 64px; }
#pager [data-peek] .pn { text-decoration: underline dotted; text-underline-offset: 2px; }
.peeking::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; bottom: calc(71px + env(safe-area-inset-bottom)); z-index: 8; border: 4px solid #1a73e8; pointer-events: none; }
/* the label sits over the status bar, so it never covers the page */
.peeking::after { content: "見本（1ページ目）を表示中"; position: absolute; left: 0; right: 0; top: 0; height: 30px; z-index: 9; display: grid; place-items: center; background: #1a73e8; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.peeking .pg-btn { opacity: .35; pointer-events: none; }
.peeking [data-peek] .pn { color: #fff; background: #1a73e8; border-radius: 9px; text-decoration: none; }
.endc-peek { grid-column: 1 / -1; }
.endc-peek.none { background: linear-gradient(90deg, #e8f0fe, #d2e3fc) !important; }
.endc-peek.none dd { color: #1967d2; }
.tip { margin: 6px 12px 6px; padding: 8px 10px; }
.tip p { font-size: 13.5px; }
.ceo-thumb { width: 60px; height: 60px; }
.ceo-row { margin-top: 6px; }
.map { height: 84px; }
.map-info { padding: 6px 18px 10px; }
.pin { top: 12%; }
.badge { min-width: 22px; height: 22px; font-size: 13px; line-height: 22px; top: -2px; right: -4px; }
#toast { white-space: normal; width: max-content; text-align: center; }
@media (max-width: 374px) {
  .tip p { font-size: 12.5px; }
}
.pc .pn .peek-left { display: block; font-style: normal; font-size: 10px; line-height: 16px; padding: 0 4px; border-radius: 8px; background: #e8f0fe; color: #1967d2; font-weight: 700; white-space: nowrap; }
.pc .pn .peek-left.out { background: #f1f3f4; color: #9aa0a6; }
.peeking .pc .pn .peek-left { background: #1a73e8; color: #fff; }
.btn-share + .btn-sub { margin-top: 8px; }
.btn-sub { display: block; width: 100%; min-height: 40px; margin-bottom: 14px; border-radius: 20px; border: 1px solid #e8dcb8; background: #fdf6e3; color: #5b4300; font-size: 14px; font-weight: 700; }
.btn-sub:active { background: #f3e7c4; }
