/* 今夜の空: 暗い藍の面。純白は使わない（文字は #E8ECF5 まで）。UI の面は最小にして、帯の絵を全幅で見せる。 */
:root { --bg: #070B18; --bg2: #0E1530; --card: rgba(18,26,51,.85); --line: rgba(255,255,255,.1); --text: #E8ECF5; --sub: #9AA6C7; --accent: #F2C879; --r: 12px;
  --font: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, input:focus-visible, canvas:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--sub); }
[hidden] { display: none !important; }

.app { height: 100dvh; max-width: 1600px; margin: 0 auto; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto 88px; grid-template-columns: minmax(0, 1fr);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); position: relative; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 12px; min-height: 48px; }
.place { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px 0 0; font-size: 15px; font-weight: 600; min-width: 0; text-align: left; }
.place .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.place .pin { color: var(--accent); flex: none; }
.place .chg { font-size: 11px; font-weight: 400; color: var(--accent); border: 1px solid rgba(242,200,121,.5); border-radius: 8px; padding: 1px 6px; }
.place .sep { color: var(--sub); }
.place .date { color: var(--sub); font-weight: 400; white-space: nowrap; font-size: 14px; }
.langsw { display: flex; flex: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.langsw button { width: 44px; height: 38px; color: var(--sub); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.langsw button[aria-pressed="true"] { background: rgba(242,200,121,.14); color: var(--accent); }

.rec { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 56px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: background .15s; }
.rec:active { background: rgba(40,54,100,.85); }
.rec-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rec-head { font-size: 11px; color: var(--accent); letter-spacing: .02em; }
.rec-line { font-size: 15px; line-height: 1.35; font-weight: 600; }
.chev { font-size: 24px; color: var(--sub); flex: none; line-height: 1; }

.stage { position: relative; min-height: 0; background: #02030c; overflow: hidden; }
#strip { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; outline-offset: -3px; }
#strip.drag { cursor: grabbing; }
.facing { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font-size: 12px; color: rgba(232,236,245,.8); text-shadow: 0 1px 3px #000; pointer-events: none; }
.ring { position: absolute; top: 8px; right: 8px; width: 56px; height: 56px; border-radius: 50%; background: rgba(7,11,24,.55); border: 1px solid var(--line); }
.ring svg { width: 100%; height: 100%; display: block; }
.ring:active { background: rgba(40,54,100,.7); }
.edges { position: absolute; left: 0; right: 0; bottom: 70px; pointer-events: none; }
.edge { position: absolute; pointer-events: auto; display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 3px 10px 3px 6px; border-radius: 18px; background: rgba(14,21,48,.82); border: 1px solid var(--line); font-size: 12px; }
.edge.l { left: 36px; } .edge.r { right: 8px; flex-direction: row-reverse; padding: 3px 6px 3px 10px; }
.edge i { width: 14px; height: 14px; border-radius: 50%; display: block; flex: none; }
.edge:active { background: rgba(40,54,100,.9); }
.intro { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 16px; background: rgba(18,26,51,.92); border: 1px solid rgba(242,200,121,.45); font-size: 13px; text-align: center; animation: introIn .4s ease-out; }
@keyframes introIn { from { opacity: 0; transform: translate(-50%, 6px); } }
.loadmsg { position: absolute; inset: auto 0 40% 0; text-align: center; color: var(--sub); font-size: 13px; }
.errbox { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; background: rgba(7,11,24,.92); padding: 24px; text-align: center; }
.btn { min-height: 44px; padding: 0 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.btn:active { background: rgba(40,54,100,.85); }
.btn.small { min-height: 36px; padding: 0 10px; font-size: 13px; }
.btn[aria-disabled="true"] { opacity: .38; cursor: default; }
.btn[aria-disabled="true"]:active { background: var(--card); }

.card { position: absolute; z-index: 6; width: min(320px, calc(100% - 16px)); padding: 12px 14px 12px; border-radius: 14px; background: rgba(18,26,51,.95); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 6px 24px rgba(0,0,0,.5); font-size: 13px; line-height: 1.45; }
.card h3 { margin: 0; font-size: 18px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-right: 36px; }
.card h3 small { font-size: 11px; font-weight: 400; color: var(--sub); }
.card .x { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; font-size: 24px; color: var(--sub); }
.card p { margin: 6px 0 0; }
.card .now { font-weight: 600; font-size: 14px; }
.card .deg { color: var(--sub); font-size: 11px; margin-top: 1px; }
.card .dim { color: var(--sub); font-size: 12px; }
.card .act { display: flex; gap: 8px; margin-top: 8px; }

.timebox { padding: 4px 20px 0; }
.timerow { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.clock { font-size: 40px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; min-width: 3.1em; }
.slhint { color: var(--accent); font-size: 12px; flex: 1; text-align: center; white-space: nowrap; }
.timerow .btn:first-of-type { margin-left: auto; }
.slhint ~ .btn { flex: none; }
.sl { position: relative; height: 72px; }
#slider { -webkit-appearance: none; appearance: none; width: 100%; height: 56px; margin: 0; background: transparent; touch-action: none; position: relative; z-index: 2; }
#slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #d9774e, #4a3f8c 18%, #121a40 40%, #121a40 70%, #6d5a9a 90%, #e8a070); }
#slider::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #d9774e, #4a3f8c 18%, #121a40 40%, #121a40 70%, #6d5a9a 90%, #e8a070); }
#slider::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; margin-top: -19px; border-radius: 50%; background: var(--thumb, radial-gradient(circle at 35% 30%, #f6dca0, #F2C879 60%, #b58a3e)) center/100% 100% no-repeat; border: 2px solid rgba(7,11,24,.6); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
#slider::-moz-range-thumb { width: 40px; height: 40px; border-radius: 50%; background: var(--thumb, radial-gradient(circle at 35% 30%, #f6dca0, #F2C879 60%, #b58a3e)) center/100% 100% no-repeat; border: 2px solid rgba(7,11,24,.6); }
.marks { position: absolute; left: 22px; right: 22px; top: 40px; height: 26px; pointer-events: none; }
.mark { position: absolute; transform: translateX(-50%); font-size: 10px; color: var(--sub); white-space: nowrap; text-align: center; line-height: 1.15; }
.mark.r2 { top: 27px; }
.mark::before { content: ""; display: block; width: 1px; height: 5px; background: rgba(154,166,199,.7); margin: 0 auto 1px; }

.drawer { position: relative; z-index: 8; }
.drawer-in { position: absolute; left: 0; right: 0; bottom: 0; height: 88px; overflow: hidden; background: #0B1128; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; transition: height .25s ease-out; display: flex; flex-direction: column; }
.drawer.open .drawer-in { height: min(72dvh, 560px); overflow-y: auto; box-shadow: 0 -8px 30px rgba(0,0,0,.5); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 600; flex: none; }
.drawer-head .arrow { color: var(--sub); font-size: 12px; transition: transform .2s; }
.drawer.open .arrow { transform: rotate(180deg); }
.sortrow { display: none; gap: 6px; padding: 0 16px 6px; flex: none; }
.drawer.open .sortrow, .drawer.pc .sortrow { display: flex; }
.sort { padding: 6px 12px; min-height: 34px; border-radius: 10px; border: 1px solid var(--line); font-size: 12px; color: var(--sub); }
.sort[aria-pressed="true"] { color: var(--accent); border-color: rgba(242,200,121,.5); }
.list { list-style: none; margin: 0; padding: 0 8px; }
.item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 8px; border-radius: 10px; text-align: left; }
.item:active { background: rgba(40,54,100,.7); }
.item .ic { width: 28px; height: 28px; flex: none; border-radius: 50%; display: block; }
.item .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item .nm { font-size: 14px; font-weight: 600; }
.item .sub { font-size: 12px; color: var(--sub); }
.item .ease { font-size: 11px; color: var(--sub); flex: none; max-width: 6.5em; text-align: right; }
.item .pick { font-size: 11px; font-weight: 700; color: #0d1330; background: var(--accent); border-radius: 999px; padding: 2px 8px; flex: none; }
.item.gray { opacity: .6; }
.item .chev { font-size: 18px; }
.foot { font-size: 11px; color: var(--sub); line-height: 1.7; padding: 8px 16px 16px; margin: 0; }
.drawer:not(.open) .foot { display: none; }

.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(2,3,12,.6); }
.sheet-in { position: relative; width: min(520px, 100%); max-height: 86dvh; display: flex; flex-direction: column; background: #0E1530; border: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.sheet-head h2 { font-size: 17px; margin: 0; }
.x { width: 44px; height: 44px; font-size: 26px; color: var(--sub); }
.geo { width: 100%; margin-bottom: 8px; font-size: 13px; color: var(--sub); }
.geomsg { font-size: 12px; color: var(--accent); margin: 0 0 8px; }
.search { width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #070B18; color: var(--text); font: inherit; font-size: 15px; margin-bottom: 6px; }
.citylist { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 120px; }
.citylist .hd { font-size: 11px; color: var(--sub); padding: 8px 8px 2px; }
.citylist button { display: block; width: 100%; min-height: 44px; padding: 0 10px; text-align: left; border-radius: 10px; font-size: 15px; }
.citylist button:active, .citylist button.cur { background: rgba(40,54,100,.7); }
.citylist button.cur { color: var(--accent); }
.citylist .sm { color: var(--sub); font-size: 12px; margin-left: 8px; }

/* PC: 一覧は右の縦の列 */
@media (min-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .top { grid-column: 1 / -1; padding: 6px 20px; }
  .recbox { grid-column: 1; margin: 0 0 8px 20px; max-width: 760px; justify-self: center; width: calc(100% - 20px); }
  .stage { grid-column: 1; margin-left: 20px; border-radius: 12px; }
  .timebox { grid-column: 1; padding: 6px 28px 6px 28px; }
  .drawer { grid-column: 2; grid-row: 2 / 5; padding: 0 20px 12px 12px; }
  .drawer-in { position: static; height: 100%; border-radius: 12px; border: 1px solid var(--line); overflow-y: auto; transition: none; }
  .drawer.open .drawer-in { height: 100%; box-shadow: none; }
  .drawer-head { cursor: default; pointer-events: none; } .drawer-head .arrow { display: none; }
  .drawer:not(.open) .foot { display: block; }
  .sortrow { display: flex; }
  .item .ease { max-width: none; }
  .sheet { align-items: center; } .sheet-in { border-radius: 18px; max-height: 80dvh; }
}
/* 画面の縦が短い端末: 引き出しは見出しだけ */
@media (max-height: 720px) and (max-width: 899px) {
  .app { grid-template-rows: auto auto minmax(0, 1fr) auto 44px; }
  .drawer-in { height: 44px; }
  .rec { min-height: 48px; } .recbox { margin-bottom: 4px; } .rec-line { font-size: 14px; }
  .clock { font-size: 34px; }
}
/* 横向きのスマホ */
@media (max-height: 460px) and (min-width: 560px) {
  .app { grid-template-columns: minmax(0, 1fr) 240px; grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .top { grid-column: 1 / -1; min-height: 40px; } .recbox { grid-column: 1; margin-bottom: 4px; } .rec { min-height: 44px; } .rec-head { display: none; }
  .stage { grid-column: 1; } .timebox { grid-column: 1; } .drawer { grid-column: 2; grid-row: 2 / 5; }
  .drawer-in { position: static; height: 100%; overflow-y: auto; } .clock { font-size: 28px; } .sl, #slider { height: 44px; } .marks { top: 30px; }
}
@media (prefers-reduced-motion: reduce) { .drawer-in { transition: none; } .intro { animation: none; } }
.nocv { display: none; }
.nocanvas .nocv { display: block; }
.nocanvas .stage, .nocanvas .timebox { display: none; }
@media (max-width: 440px) { .slhint { display: none; } .timerow .btn:first-of-type { margin-left: auto; } .clock { font-size: 36px; } }

/* 5-4: 共有、沈んだ行、札のなぞり、こぶしの絵、赤い光、月明かりの知らせ、日付 */
.iconbtn { flex: none; width: 44px; height: 44px; margin-left: auto; color: var(--sub); display: grid; place-items: center; border-radius: 10px; }
.iconbtn:active { background: rgba(40,54,100,.7); }
.top .place { flex: 0 1 auto; } .top .langsw { margin-left: 0; }
.item.sunk { opacity: .5; } .item.sunk .nm { font-weight: 400; }
.card { overscroll-behavior: contain; }
.card .act .btn { flex: none; }
.moonnotice { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); max-width: calc(100% - 96px); width: max-content; padding: 4px 10px; border-radius: 12px; background: rgba(14,21,48,.78); border: 1px solid var(--line); font-size: 11px; color: var(--sub); text-align: center; pointer-events: none; }
.toast { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 12; padding: 8px 14px; border-radius: 16px; background: rgba(18,26,51,.96); border: 1px solid rgba(242,200,121,.5); font-size: 13px; }
.daterow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--sub); flex-wrap: wrap; }
.daterow input { flex: 1; min-width: 140px; height: 40px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: #070B18; color: var(--text); font: inherit; color-scheme: dark; }
.fist { padding-bottom: 20px; }
.fistsvg { width: 100%; max-height: 220px; margin: 4px 0 8px; }
.fistsl { margin: 0; padding: 0 8px 4px 28px; font-size: 14px; line-height: 1.7; }
.foot .btn { margin-bottom: 6px; }
/* 赤い光: 暗さに目を慣らしたまま見るため、画面全体を赤の濃淡にする */
body.red { background: #100000; }
body.red .app { filter: sepia(1) saturate(4) hue-rotate(-50deg) brightness(.75); }
body.red .sheet { filter: sepia(1) saturate(4) hue-rotate(-50deg) brightness(.75); }
@media (max-width: 440px) { .place .pname { max-width: 34vw; } .place .date { font-size: 13px; } }
.rec-line, .card, .item .sub { word-break: auto-phrase; overflow-wrap: anywhere; }

/* 工程7（ux）: 場所の名前は省略しない。最初の場所の促し。場所のシートの入力欄が潰れない。 */
.top { flex-wrap: wrap; }
.top .place { flex: 1 1 0; min-width: 0; align-items: center; padding: 2px 8px 2px 0; }
.place .ptxt { display: flex; flex-direction: column; min-width: 0; align-items: flex-start; }
.place .prow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.place .pname { max-width: none; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.place .date { font-size: 12px; white-space: normal; line-height: 1.3; }
.place .chg { flex: none; }
.top .iconbtn { margin-left: 0; }
.placehint { flex: 1 0 100%; order: 9; display: flex; gap: 8px; align-items: center; justify-content: space-between; text-align: left; padding: 8px 10px 8px 12px; margin: 2px 0 4px; border-radius: 10px; background: rgba(242,200,121,.14); border: 1px solid rgba(242,200,121,.6); font-size: 13px; line-height: 1.35; }
.placehint b { flex: none; color: #1a1306; background: var(--accent); border-radius: 8px; padding: 7px 10px; font-size: 13px; font-weight: 600; }
.placenote { flex: 1 0 100%; order: 9; margin: 0 0 4px; font-size: 11px; color: var(--accent); }
.sheet-in { overflow: hidden; }
.sheet-in > * { flex: none; }
.sheet-in > .citylist { flex: 1 1 auto; min-height: 120px; }
.sheet-in.fist { overflow-y: auto; }
.search { height: 44px; min-height: 44px; }
.card .act { flex-wrap: wrap; }
.edge.l { left: 52px; }
@media (max-height: 720px) and (max-width: 899px) { .card { padding: 8px 12px; font-size: 12px; line-height: 1.35; } .card h3 { font-size: 16px; } .card p { margin-top: 4px; } .card .act { margin-top: 6px; } }
.facing { left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: calc(100% - 140px); }
/* 1行の高さを固定する（文が1行になったり2行になったりしても、帯の大きさが変わって天体が跳ばない） */
@media (max-width: 899px) { .rec { min-height: 78px; } }
@media (max-height: 720px) and (max-width: 899px) { .rec { min-height: 70px; } }
/* 工程7（再）: 向きの文が星に重ならない。場所の一覧の最後が注意書きに重ならない */
.facing { background: rgba(2,3,12,.6); padding: 1px 10px; border-radius: 10px; }
.sheet-in > .citylist { min-height: 0; padding-bottom: 8px; }
.sheet-in > .foot { position: relative; background: #0E1530; padding-top: 8px; }

/* 周回1: 今夜を見る（朝・昼）、見えている明るい天体の1行 */
.recbox { display: flex; flex-direction: column; gap: 6px; margin: 0 12px 8px; min-width: 0; }
.tonight { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 22px; background: linear-gradient(180deg, #F6D58F, #E9B85A); color: #1b1405; font-weight: 700; font-size: 15px; border: 1px solid #FFE3A8; box-shadow: 0 2px 10px rgba(242,200,121,.25); }
.tonight:active { filter: brightness(.92); }
.tonight[hidden], .also[hidden] { display: none; }
.also { position: absolute; z-index: 3; left: 34px; top: 46px; max-width: calc(100% - 100px); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; pointer-events: none; }
.also button { pointer-events: auto; }
.also button { font-size: 12px; line-height: 1.3; color: var(--text); text-align: left; padding: 6px 10px; min-height: 32px; border-radius: 16px; border: 1px solid var(--line); background: rgba(10,15,36,.78); }
.also button:active { background: rgba(40,54,100,.7); }
.also i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
@media (max-height: 720px) and (max-width: 899px) { .tonight { min-height: 38px; padding: 4px 12px; font-size: 14px; } .also button { min-height: 28px; padding: 4px 8px; } }
.rec-lm { display: block; font-size: 12px; line-height: 1.35; color: #BFD0FF; margin-top: 2px; }
.rec-lm[hidden] { display: none; }
@media (max-height: 720px) and (max-width: 899px) { .rec-lm { font-size: 11.5px; } }
/* 周回2 修正: PC でも目印の1行の高さを最初から取っておく（つまみで出たり消えたりしても帯が跳ばない） */
@media (min-width: 900px) { .rec-lm, .rec-lm[hidden] { display: block !important; min-height: 1.35em; } .rec-lm[hidden] { visibility: hidden; } }
/* つまみを動かしている間、勧めの計算が間に合わないコマでは本文を淡くする（時刻の文字は先に変える） */
.rec .rec-line, .rec .rec-lm, #list { transition: opacity .12s; }
.rec.stale .rec-line, .rec.stale .rec-lm, #list.stale { opacity: .5; }
/* 今夜のひとこと: 1 行。文の有無で帯の高さが変わらないよう、空でも同じ高さを占める */
.note { display: block; width: 100%; min-height: 26px; padding: 3px 12px; text-align: left; font-size: 12.5px; line-height: 20px; color: #BFD0FF; background: transparent; border: 0; border-radius: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note:empty { visibility: hidden; }
.note:not(:empty) { background: rgba(26,38,80,.55); border: 1px solid var(--line); padding: 2px 11px; }
.note:not(:empty):active { background: rgba(40,54,100,.7); }
@media (max-height: 720px) and (max-width: 899px) { .note { min-height: 22px; font-size: 11.5px; line-height: 17px; } }
/* 周回3 修正: ひとことは 2 行まで（切れない）。2 行ぶんの高さを常に取る。1行の高さは 3 行ぶんで固定して、つまみの間に帯が動かない */
.note { height: 42px; min-height: 42px; white-space: normal; text-overflow: clip; display: flex; align-items: center; font-size: 12.5px; line-height: 17px; }
.note:not(:empty) { padding: 2px 11px; }
@media (max-height: 720px) and (max-width: 899px) { .note { height: 36px; min-height: 36px; font-size: 11.5px; line-height: 15px; } .rec { min-height: 76px; } }
/* 押して移った先の天体が、上端の部品の下に入る時は、その部品を淡くしてよける */
.facing, .ring, .also button { transition: opacity .15s; }
.facing.dim, .ring.dim, .also button.dim { opacity: .12; }
.also.dim { opacity: .12; }
.daychips { display: flex; gap: 6px; margin: 0 0 8px; flex-wrap: wrap; }
.daychips .chip { flex: 1 1 auto; white-space: nowrap; }
.daychips .chip[aria-pressed="true"] { background: rgba(242,200,121,.18); border-color: rgba(242,200,121,.85); color: #F2C879; font-weight: 600; }
.daychips .chip[hidden] { display: none; }
/* 丸窓: 見ている物が帯の上端より上にある時、上端の、その方位の横位置に拡大して見せる（投影とは別の絵） */
.lens { position: absolute; z-index: 3; top: 36px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 12px 7px; border-radius: 22px; border: 1px solid rgba(242,200,121,.7); background: rgba(10,15,36,.88); pointer-events: none; max-width: calc(100% - 16px); text-align: center; }
.lens[hidden] { display: none; }
.lens .row { display: flex; gap: 14px; align-items: center; }
.lens .it { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text); white-space: nowrap; }
.lens .it i { display: inline-block; border-radius: 50%; }
.lens .cap { font-size: 11px; color: #F2C879; white-space: nowrap; }
@media (max-width: 380px) { .timerow { gap: 6px; } .clock { font-size: 32px; min-width: 2.9em; } .btn.small { padding: 0 8px; font-size: 12px; } }

/* 寄って見る（F23）: 丸いのぞき窓。#stage の中。時刻のつまみ（stage の外）は開いたまま使える */
.zoom { position: absolute; inset: 0; z-index: 9; }
.zbg { position: absolute; inset: 0; background: rgba(2,3,12,.95); }
.zwrap { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; }
.zscope { position: relative; flex: none; border-radius: 50%; border: 1px solid rgba(242,200,121,.55); box-shadow: 0 0 0 3px rgba(18,26,51,.9), 0 6px 28px rgba(0,0,0,.6); overflow: hidden; }
.zcv { display: block; border-radius: 50%; }
.zbelow { position: absolute; left: 10%; right: 10%; top: 42%; margin: 0; text-align: center; font-size: 14px; font-weight: 600; color: var(--text); text-shadow: 0 1px 4px #000; pointer-events: none; }
.zx { position: absolute; top: 4px; right: 6px; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--text); background: rgba(18,26,51,.92); border: 1px solid rgba(255,255,255,.2); }
.zbot { width: min(440px, 100%); display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.zlab { text-align: center; font-size: 14px; font-weight: 600; color: var(--accent); }
.zctl { display: flex; align-items: center; gap: 6px; }
.zstep { flex: none; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1; background: var(--card); border: 1px solid var(--line); }
.zstep:active { background: rgba(40,54,100,.85); }
.zrng { flex: 1; min-width: 0; height: 44px; accent-color: #F2C879; margin: 0; }
.zpick { position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; justify-content: center; }
.zhint { color: var(--sub); font-size: 11px; opacity: .85; }
.zpb { min-height: 44px; padding: 0 18px; border-radius: var(--r); background: rgba(10,15,36,.82); border: 1px solid rgba(242,200,121,.6); font-size: 14px; font-weight: 600; color: var(--accent); }
.zcap { text-align: center; font-size: 12.5px; line-height: 1.4; }
.zcap p { margin: 0; }
.zcap .dim { color: var(--sub); }
.zoombtn { background: rgba(242,200,121,.16); border-color: rgba(242,200,121,.7); color: var(--accent); font-weight: 600; min-height: 44px; }
.pairzoom { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 74px; min-height: 44px; padding: 0 18px; border-radius: 22px; background: rgba(18,26,51,.94); border: 1px solid rgba(242,200,121,.7); color: var(--accent); font-size: 14px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
@media (max-height: 720px) and (max-width: 899px) { .zcap { font-size: 12px; line-height: 1.3; } .zbot { gap: 2px; } .zwrap { gap: 2px; padding-top: 2px; } .zstep, .zrng, .zpb { min-height: 44px; } }

/* 周回10: 帯の絵の「寄って見る」の札（輪の横）と、一覧の行の虫めがね */
.lookchip { position: absolute; z-index: 3; height: 44px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; color: var(--accent); font-size: 13px; font-weight: 600; background: transparent; border: 0; white-space: nowrap; transition: opacity .18s; }
.lookchip::before { content: ""; position: absolute; inset: 8px 0; border-radius: 14px; background: rgba(10,15,36,.82); border: 1px solid rgba(242,200,121,.7); z-index: -1; }
.lookchip.quiet { opacity: .0; pointer-events: none; }
.lookchip[hidden] { display: none; }
li.withlens { display: flex; align-items: center; }
li.withlens > .item { flex: 1; min-width: 0; }
.rowlens { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); border-radius: 50%; background: transparent; border: 0; }
.rowlens:active { background: rgba(40,54,100,.7); }
.zimg { position: absolute; top: 4px; left: 6px; z-index: 2; height: 44px; padding: 0 14px 0 10px; border-radius: 22px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); background: rgba(18,26,51,.92); border: 1px solid rgba(242,200,121,.6); }
/* 画像のカードの確認の窓 */
.cardin { max-height: 94dvh; overflow-y: auto !important; align-items: stretch; }
.cardimg { display: block; width: auto; max-width: 100%; max-height: min(56dvh, 640px); margin: 6px auto; border-radius: 12px; border: 1px solid var(--line); background: #070b1f; }
.cardacts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 6px 0 10px; }
.cardacts .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--text); }
.cardacts .btn.main { background: rgba(242,200,121,.18); border-color: rgba(242,200,121,.7); color: var(--accent); font-weight: 600; }
.cardacts [hidden] { display: none; }
.mark.pass { color: var(--accent); animation: markglow .7s ease-out; }
.mark.pass::before { background: var(--accent); box-shadow: 0 0 6px 1px rgba(242,200,121,.9); }
@keyframes markglow { 0% { text-shadow: 0 0 8px rgba(242,200,121,.95); } 100% { text-shadow: 0 0 0 rgba(242,200,121,0); } }
@media (prefers-reduced-motion: reduce) { .mark.pass { animation: none; } }
.zhome { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 2; min-height: 36px; padding: 0 14px; border-radius: 18px; font-size: 12.5px; font-weight: 600; color: var(--accent); background: rgba(18,26,51,.92); border: 1px solid rgba(242,200,121,.6); }
.zhome[hidden] { display: none; }
.rec, .drawer, .note { transition: opacity .25s; }
body.zooming .rec, body.zooming .drawer, body.zooming:not(.zpair) .note { opacity: .35; } /* 組の窓では、ひとことの行は窓と同じ物を言うので淡くしない */
/* 見つけた記録（周回12） */
.zfound { position: absolute; top: 4px; right: 56px; z-index: 2; height: 44px; padding: 0 12px; border-radius: 22px; font-size: 13px; font-weight: 600; color: var(--text); background: rgba(18,26,51,.92); border: 1px solid rgba(255,255,255,.28); white-space: nowrap; }
.zfound[aria-pressed="true"], .foundbtn[aria-pressed="true"] { color: #0d1330; background: var(--accent); border-color: var(--accent); }
.foundbtn { flex: none; }
.item .fnd { color: var(--accent); font-size: 12px; font-weight: 700; }
.foundsum { padding: 8px 16px 6px; }
.drawer:not(.open) .foundsum { display: none; }
/* 月の形を集める（周回13） */
.moonph { margin: 6px 0 8px; }
.mpicons { display: flex; gap: 4px; flex-wrap: nowrap; }
.mpw { display: inline-flex; flex: 0 0 auto; }
.mpi { width: 26px; height: 26px; display: block; }
.mpi .ring { fill: none; stroke: rgba(255,255,255,.28); stroke-width: .8; stroke-dasharray: 1.6 1.2; }
.mpi .lit { fill: rgba(255,255,255,.18); }
.mpi.got .ring { stroke: var(--accent); stroke-dasharray: none; stroke-width: 1; }
.mpi.got .lit { fill: var(--accent); }
.mpi.now { outline: 1.5px solid var(--text); outline-offset: 1px; border-radius: 50%; }
.mptext { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--sub); }
.zmoonph { text-align: center; } .zmoonph .mpicons { justify-content: center; } .zmoonph .moonph { margin: 2px 0 0; } .zmoonph .mpi { width: 22px; height: 22px; } .zmoonph .mptext { font-size: 12px; margin-top: 2px; }
.zmoonph[hidden] { display: none; }
