:root {
  --night: #0a0f33; --panel: #0c1238; --line: #2a3a8f; --fg: #eef1ff; --sub: #c9d2ff; --gold: #ffe27a;
  --pink: #ff8fb8; --blue: #5aa8ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #070a1f; color: var(--fg); font-family: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
.app { position: relative; height: 100%; max-width: 480px; margin: 0 auto; overflow: hidden; background: linear-gradient(#0a0f33, #2a43a3); }
[hidden] { display: none !important; }

/* タイトル：180×320 ドットの絵を、縦横比を保って画面いっぱいに。ボタンなどは絵の上に、絵の大きさに合わせて置く */
#title { height: 100%; display: grid; place-items: center; background: #0a0f33; }
.title-box { position: relative; width: min(100%, calc(100dvh * 9 / 16)); aspect-ratio: 9 / 16; container-type: inline-size; }
#title-canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.title-box .badge { position: absolute; left: 50%; top: 9.5%; transform: translateX(-50%); font-size: 4.2cqw; white-space: nowrap; }
.title-box .menu { position: absolute; left: 12%; right: 12%; top: 41%; width: auto; gap: 2.8cqw; }
.title-box .mbtn { font-size: 5.4cqw; padding: 2.6cqw 2cqw; border-radius: 5.5cqw; }
.title-box .mbtn span { font-size: 3.1cqw; }
.title-box .best { position: absolute; left: 0; right: 0; top: 76%; font-size: 3.4cqw; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badge { margin: 0; background: var(--gold); color: var(--panel); font-weight: 900; padding: 4px 16px; border-radius: 99px; }
.menu { display: flex; flex-direction: column; gap: 12px; width: min(300px, 100%); }
.mbtn { font: inherit; border: 3px solid #ffffff80; border-radius: 20px; padding: 12px 8px; font-size: 20px; font-weight: 900; color: #fff; box-shadow: inset 0 -5px 0 #0003; cursor: pointer; }
.mbtn span { display: block; font-size: 12px; font-weight: 700; opacity: .9; }
.mbtn.a { background: var(--pink); } .mbtn.b { background: var(--blue); } .mbtn.c { background: #ffffff22; font-size: 16px; }
.mbtn:disabled { opacity: .45; cursor: default; }
.mbtn:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.best { margin: 0; color: var(--sub); font-weight: 800; font-size: 14px; }
.r-label { margin: 0; font-weight: 800; color: var(--sub); }
.r-height { margin: 0; font-size: 64px; font-weight: 900; color: var(--gold); text-shadow: 0 4px 0 #2a1f7a; }

#play { height: 100%; display: flex; flex-direction: column; }
.stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #0a0f33; }
#play-canvas { image-rendering: pixelated; touch-action: none; display: block; }
.hud { position: absolute; left: 10px; right: 10px; top: 8px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
#height { font-weight: 900; font-size: 24px; text-shadow: 0 3px 0 #1a1440, 0 0 8px #000a; }
.role { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #0c1238d9; border: 2px solid #ffffff55; }
.tour { position: fixed; inset: 0; z-index: 50; }
.tour-dim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tour-ring rect { fill: none; stroke: var(--gold); stroke-width: 3; }
.tour-card { position: absolute; left: 50%; transform: translateX(-50%); width: min(340px, 88vw); box-sizing: border-box; padding: 12px 14px; border-radius: 16px; background: #0c1238; border: 2px solid var(--gold); color: var(--fg); }
.tour-card small { display: block; font-size: 12px; font-weight: 800; color: var(--gold); }
.tour-card b { display: block; font-size: 19px; font-weight: 900; margin-top: 2px; }
.tour-card p { margin: 4px 0 10px; font-size: 15px; font-weight: 800; line-height: 1.55; }
.tour-btns { display: flex; justify-content: space-between; gap: 10px; }
.tour-btns button { font: inherit; font-weight: 900; font-size: 14px; border-radius: 99px; padding: 8px 16px; border: 2px solid var(--gold); background: transparent; color: var(--gold); }
.tour-btns #tour-next { background: var(--gold); color: var(--panel); min-width: 110px; }
.panel { flex: none; padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-top: 3px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
/* 下のパネル（見本どおり）：上に大技の星のランプ、まん中に万年筆とインクのゲージ（半分の長さ。カシオペヤ座で2倍）、下に効果6つ */
.lamps { display: flex; justify-content: center; gap: 10px; height: 10px; }
.lamps .lg { display: flex; gap: 3px; } .lamps i { width: 8px; height: 8px; border-radius: 50%; background: #10173f; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, #10173f); }
.lamps i.on { background: var(--c); box-shadow: 0 0 6px var(--c); }
.lamps .lg.done i { animation: lamp 1s ease-in-out infinite alternate; } @keyframes lamp { to { box-shadow: 0 0 10px var(--c), 0 0 2px #fff; } }
.inkrow { display: flex; align-items: center; justify-content: center; gap: 8px; }
.inkrow .pen { width: 24px; height: 24px; flex: none; }
.inkrow .bar { width: 50%; height: 14px; border-radius: 99px; background: #10173f; border: 2px solid #ffffff66; overflow: hidden; transition: width .3s; }
.inkrow.dbl .bar { width: 100%; border-color: #ff8fc8; } .inkrow.dbl #ink-fill { background: linear-gradient(#ffe4ef, #ff8fc8); }
.fx-now { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); margin: 0; padding: 3px 12px; border-radius: 99px; background: #0c1238d9; border: 2px solid var(--gold); color: var(--gold); font-size: 12px; font-weight: 900; white-space: nowrap; pointer-events: none; }
.slots { display: flex; justify-content: space-between; gap: 6px; }
.slots i { flex: 1; min-width: 0; height: 40px; border-radius: 10px; background: #10173f99; border: 2px solid #ffffff30; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 900; line-height: 1.1; text-align: center; overflow: hidden; }
.slots i.on { background: #2b3a8a; border-color: var(--gold); box-shadow: 0 0 8px #ffe27a88; }
.slots i.on { cursor: pointer; }
.slots i.cpu { border-color: #9fd8ff; box-shadow: none; opacity: .85; }
.slots i.wait { background: var(--gold); color: var(--panel); }
.tag { position: absolute; font-size: 13px; font-weight: 900; text-shadow: 0 0 6px currentColor, 0 2px 0 #0008; pointer-events: none; white-space: nowrap; animation: tag 2.2s ease-out forwards; }
@keyframes tag { 0% { opacity: 0; transform: translateY(6px); } 15%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
.banner { position: absolute; left: 50%; top: 44px; transform: translate(-50%, -140px); text-align: center; padding: 5px 16px 7px; border-radius: 12px; background: #0c1238e6; border: 2px solid var(--gold); white-space: nowrap; pointer-events: none; }
.banner.go { animation: banner 2.6s ease-out forwards; }
.banner small { display: block; font-size: 10px; font-weight: 800; color: var(--gold); }
.banner b { display: block; font-size: 17px; font-weight: 900; letter-spacing: .04em; text-shadow: 0 2px 0 #b8306a; }
/* 0.3秒で降りる→2秒止まる→0.3秒で上へ */
@keyframes banner { 0% { transform: translate(-50%, -140px); } 11%, 88% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, -140px); } }
.made { margin: 0; font-size: 13px; font-weight: 800; color: #fff6c8; max-width: 320px; }
#ink-fill { height: 100%; width: 100%; background: linear-gradient(#fff6c8, #ffd25a); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } .banner.go { transform: translate(-50%, 0); } }

/* 結果・スキルブック・せってい（見本どおり） */
.page { height: 100%; overflow-y: auto; background: linear-gradient(#0a0f33, #1c2a6b); }
.pg { max-width: 420px; margin: 0 auto; padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 10px; }
.pg h2 { margin: 0; font-size: 20px; text-align: center; } .pg h2 small { font-size: 13px; color: var(--gold); }
.pg h3 { margin: 6px 0 0; font-size: 13px; color: var(--sub); }
.res { text-align: center; } .res .r1 { margin: 6px 0 0; color: var(--sub); font-weight: 800; }
.res .r2 { margin: 0; font-size: 64px; font-weight: 900; color: var(--gold); line-height: 1; text-shadow: 0 4px 0 #2a1f7a; } .res .r2 small { font-size: 22px; }
.res .r3 { margin: 0; font-weight: 800; font-size: 13px; color: #fff6c8; min-height: 1em; }
.unlock-msg { white-space: pre-line; margin: 0; font-weight: 900; color: var(--panel); background: var(--gold); border-radius: 14px; padding: 6px 14px; align-self: center; text-align: center; font-size: 14px; }
.scene-box { margin: 0; border-radius: 12px; background: #141d55; border: 2px solid var(--gold); padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.scene-box img { width: 144px; height: 192px; image-rendering: pixelated; border-radius: 6px; border: 2px solid #3a4890; }
.scene-box span { font-size: 11px; color: var(--gold); font-weight: 800; } .scene-box p { margin: 2px 0 0; font-size: 14px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; min-height: 22px; }
.chips i { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #2b3a8a; border: 2px solid #ffffff40; }
.chips .none { background: none; border: 0; color: var(--sub); }
.menu2 { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; } .menu2 .mbtn { font-size: 17px; padding: 10px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card { position: relative; border-radius: 12px; padding: 7px 8px; background: #141d55; border: 2px solid #3a4890; display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.card b { font-size: 13px; } .card i { position: absolute; right: 7px; top: 7px; font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: #ffffff22; }
.card em { font-style: normal; font-weight: 900; color: var(--gold); font-size: 12px; } .card q { color: var(--sub); font-size: 11px; } .card q::before, .card q::after { content: ''; }
.card.none { opacity: .55; border-style: dashed; }
.s-春 { border-color: #ff9ec7; } .s-夏 { border-color: #58ff8a; } .s-秋 { border-color: #ff6a5a; } .s-冬 { border-color: #6ec8ff; } .s-北 { border-color: var(--gold); }
.pg-foot { margin: 0; font-size: 11px; text-align: center; color: var(--sub); }
.set { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: #141d55; border: 2px solid #3a4890; font: inherit; font-size: 14px; font-weight: 800; color: var(--fg); text-align: left; width: 100%; }
.set b { font-size: 13px; color: var(--gold); } .set input { width: 24px; height: 24px; }
.unlock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.unlock button { font: inherit; color: var(--fg); text-align: center; font-size: 12px; font-weight: 800; padding: 8px 4px; border-radius: 12px; background: #141d55; border: 2px solid #3a4890; }
.unlock button.on { border-color: var(--gold); background: #2b3a8a; } .unlock button:disabled { opacity: .5; }
.unlock canvas { width: 48px; height: 48px; image-rendering: pixelated; display: block; margin: 0 auto 2px; } .unlock small { display: block; color: var(--sub); font-weight: 700; }
.back { margin-top: 6px; }
.title-box .mrow { display: flex; gap: 2.8cqw; } .title-box .mrow .mbtn { flex: 1; font-size: 4.2cqw; background: #ffffff22; }
.calm * { transition: none !important; animation: none !important; } .calm .banner.go { transform: translate(-50%, 0); }
.title-box .lab-slot { position: absolute; left: 0; right: 0; top: 80%; display: flex; justify-content: center; }

/* スキルブック：本の形。1ページに2星座。上は絵が左、下は絵が右（互い違い）。絵は、ふちがふんわりした星空の四角 */
.bookpage { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: #0a0f33; }
.book { position: relative; flex: 1; min-height: 0; border-radius: 14px; background: #f3ead2; box-shadow: inset 0 0 0 6px #7a4a2a, inset 0 0 0 8px #3a2414, 0 6px 0 #00000066; color: #2a1f3a; padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 8px; max-width: 460px; width: 100%; margin: 0 auto; }
.book .ribbon { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.book-tabs { display: flex; gap: 6px; }
.book-tabs button { flex: 1; min-height: 44px; font: inherit; font-size: 16px; font-weight: 900; border: 0; border-radius: 8px 8px 0 0; padding: 2px 0; color: #fff; opacity: .45; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.book-tabs button small { font-size: 11px; font-weight: 900; }
.book-tabs button.on { opacity: 1; box-shadow: 0 3px 0 #3a2414; }
.se.春 { background: #d0508a; } .se.夏 { background: #2f8d4c; } .se.秋 { background: #c4452e; } .se.冬 { background: #2f7fc0; } .se.北 { background: #9a7420; }
.entries { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.entry { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 56%) minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: center; gap: 6px 12px; border-radius: 10px; padding: 8px; background: #fbf5e4; border: 2px solid #e2d3ae; }
.entry.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 56%); } .entry.solo { flex: none; }
.entry .tags { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.entry .tags i { font-style: normal; font-size: 12px; font-weight: 900; padding: 1px 9px; border-radius: 99px; color: #fff; white-space: nowrap; }
.entry .tags i.tg { background: #fff; border: 2px solid; padding: 0 8px; }
.entry .tags i.tg.climber { color: #b8306a; } .entry .tags i.tg.drawer { color: #2a3a8f; } .entry .tags i.tg.both { color: #6a3a9a; } .entry .tags i.tg.active { color: #a8641a; } .entry .tags i.tg.passive { color: #1f7f7a; }
.entry .tags small { margin-left: auto; font-size: 12px; font-weight: 900; color: #7a4a2a; white-space: nowrap; }
.entry .pic { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.entry.rev .pic { grid-column: 2; grid-row: 2; } .entry.rev .txt { grid-column: 1; grid-row: 2; }
.entry .art { position: relative; width: min(100%, 27vh); aspect-ratio: 1; flex: none; }
.entry .art canvas, .entry .art img { display: block; width: 100%; height: 100%; image-rendering: pixelated; border-radius: 6px; }
.entry .art .ill, .entry .art .ill ~ canvas { position: absolute; inset: 0; object-fit: contain; }
.entry .art .ill { image-rendering: auto; opacity: .25; } /* イラストは線が太いので、うすく（本人 2026-11-20） */
.entry .art::after { content: ''; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 12px 9px #fbf5e4; pointer-events: none; }
.entry .art .eye { position: absolute; z-index: 1; right: 2px; top: 2px; width: 30px; height: 27px; display: grid; place-items: center; border: 2px solid #e2d3ae; border-radius: 8px; background: #fbf5e4; color: #3a2414; cursor: pointer; padding: 0; }
.entry .art .eye svg { width: 18px; height: 18px; }
.entry .art .soon { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; font-size: 11px; font-weight: 900; color: #c9d2ffcc; }
.entry .pic b { font-size: 16px; font-weight: 900; color: #2a1f3a; white-space: nowrap; }
.entry .txt { min-height: 0; display: flex; flex-direction: column; gap: 5px; justify-content: center; font-size: 13px; font-weight: 700; line-height: 1.45; }
/* 特別な星：古い羊皮紙の札。下のボタンと同じ茶色の枠に、内向きの影（青だと星座より先に目が行く。本人 2026-11-20） */
.entry .txt .star { margin: 2px 0 0; display: flex; flex-direction: column; padding: 4px 8px; border-radius: 8px; background: #f0e2bd; color: #3a2414; line-height: 1.35; box-shadow: inset 0 0 0 2px #7a4a2a, inset 0 0 9px 3px #b98f5a88; }
.entry .txt .star b { font-size: 13px; } .entry .txt .star small { font-size: 11px; color: #6a4a2e; font-weight: 700; }
.entry .txt em, .entry.big em { font-style: normal; font-weight: 900; font-size: 15px; color: #b8306a; display: flex; align-items: center; gap: 6px; }
.entry .txt em canvas { width: 26px; height: 26px; image-rendering: pixelated; background: #2a3a8f; border-radius: 6px; padding: 2px; flex: none; }
/* ひとことツッコミ：いちばん小さい字のこげ茶で、枠なし。ボソッとつぶやく感じ（2026-11-19 本人） */
.entry q { grid-column: 1 / -1; text-align: center; font-size: 11px; font-weight: 700; color: #5a3a22; letter-spacing: .02em; } .entry q::before { content: '…'; } .entry q::after { content: none; }
.entry.none .art canvas { filter: grayscale(1) brightness(.75); } .entry.none .art span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 900; color: #ffffff55; }
.entry.none .pic b, .entry.none .txt, .entry.none .tags small { color: #8a7a6a; }
/* 大技のページ：夜空の色に、季節の色と金の二重の枠 */
.entry.big { --sc: #ff8fc8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: #141d55; color: #eef1ff; border: 3px solid var(--sc); box-shadow: inset 0 0 0 3px #141d55, inset 0 0 0 5px #ffe27a; padding: 16px 14px; }
.entry.big.夏 { --sc: #58ff8a; } .entry.big.秋 { --sc: #ff6a5a; } .entry.big.冬 { --sc: #6ec8ff; }
.entry.big .tags { align-self: stretch; } .entry.big .tags small { color: #ffe27a; }
.entry.big .tags i.tg.big { background: #ffe27a; color: #3a2414; border-color: #ffe27a; }
.entry.big h3 { margin: 0; font-size: 24px; font-weight: 900; color: #ffe27a; letter-spacing: .06em; }
.entry.big .art { width: min(62%, 32vh); }
.entry.big .art { overflow: hidden; border-radius: 6px; } .entry.big .art canvas.bigill { position: absolute; inset: 0; image-rendering: auto; opacity: .25; } .entry.big .art canvas.bigtop { position: absolute; inset: 0; } .entry.big .art::after { box-shadow: inset 0 0 12px 9px #141d55; }
.entry.big .bigstars { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.entry.big .bigstars li { display: flex; flex-direction: column; font-size: 14px; font-weight: 900; color: var(--sc); border: 2px solid var(--sc); border-radius: 10px; padding: 2px 8px; line-height: 1.3; }
.entry.big .bigstars small { font-size: 11px; color: #c9d2ff; }
.entry.big em { color: #fff; font-size: 18px; } .entry.big em::before { content: '「'; } .entry.big em::after { content: '」'; }
.entry.big .desc { font-size: 14px; font-weight: 700; line-height: 1.5; }
.entry.big .how { margin: 0; font-size: 12px; font-weight: 700; color: #c9d2ff; line-height: 1.5; }
@media (max-height: 700px) {
  .entry { padding: 6px 8px; gap: 4px 10px; } .entry .txt { font-size: 12px; line-height: 1.35; gap: 3px; } .entry .txt .star b { font-size: 13px; } .entry .txt em { font-size: 14px; }
  .entry .pic b { font-size: 14px; } .entry .art .soon { font-size: 10px; } .entry.big { gap: 5px; padding: 10px; } .entry.big h3 { font-size: 20px; }
  .entry .art { width: min(100%, 21vh); } .entry.big .art { width: min(50%, 24vh); } .entry.big .bigstars li { font-size: 12px; padding: 1px 6px; } .entry.big em { font-size: 15px; } .entry.big .desc { font-size: 12px; } .entry.big .how { font-size: 11px; }
}
.entry.big.none h3, .entry.big.none .tags small { color: #8f9de0; }
.book footer { display: flex; justify-content: flex-end; align-items: center; gap: 14px; font-weight: 900; color: #7a4a2a; }
.book footer .back { width: auto; padding: 0 16px; margin-right: auto; font-size: 14px; background: #f3ead2; color: #7a4a2a; box-shadow: inset 0 0 0 2px #7a4a2a; }
.pg-btn { font: inherit; font-weight: 900; width: 48px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: #7a4a2a; color: #f3ead2; font-size: 16px; cursor: pointer; }
.pg-btn:disabled { opacity: .35; cursor: default; }
.bookpage > .back { flex: none; max-width: 460px; width: 100%; margin: 0 auto; }

/* 2人用（友だちと協力） */
.coop-msg { margin: 0; min-height: 1.4em; text-align: center; font-size: 14px; font-weight: 800; color: var(--gold); white-space: pre-line; }
.pick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pick-grid button { font: inherit; font-size: 20px; font-weight: 900; color: var(--fg); background: #141d55; border: 2px solid #3a4890; border-radius: 12px; padding: 10px 0; }
.pick-grid.words { grid-template-columns: repeat(2, 1fr); } .pick-grid.words button { font-size: 22px; padding: 14px 0; border-color: var(--gold); }
.word-tiles { display: flex; justify-content: center; gap: 8px; }
.word-tiles b { width: 64px; height: 64px; display: grid; place-items: center; font-size: 38px; font-weight: 900; color: var(--panel); background: #fff6d6; border: 4px solid var(--gold); border-radius: 14px; box-shadow: 0 4px 0 #2a1f7a; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: #141d55; border: 2px solid #3a4890; }
.pcard small { color: var(--sub); font-weight: 800; } .pcard b { font-size: 15px; font-weight: 900; padding: 3px 12px; border-radius: 99px; color: #fff; }
.pcard b.drawer { background: var(--pink); } .pcard b.climber { background: var(--blue); } .pcard.absent { opacity: .45; border-style: dashed; }
.pcard .star { font-style: normal; font-size: 26px; color: #ffffff30; } .pcard.ready .star { color: var(--gold); text-shadow: 0 0 10px var(--gold); }
.coop-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #0a0f33b3; text-align: center; pointer-events: none; }
.coop-over p { margin: 0; font-size: 22px; font-weight: 900; text-shadow: 0 3px 0 #2a1f7a; white-space: pre-line; } .coop-over small { font-size: 14px; font-weight: 800; color: var(--gold); }
.coop-over.count p { font-size: 72px; color: var(--gold); }
.pad { display: flex; gap: 10px; height: 64px; }
.pbtn { flex: 1; font: inherit; border-radius: 22px; font-weight: 900; font-size: 26px; color: #fff; background: #ffffff1e; border: 3px solid #ffffff70; box-shadow: inset 0 -5px 0 #0004; touch-action: none; user-select: none; -webkit-user-select: none; }
.pbtn.jump { flex: 1.5; font-size: 20px; background: #ff8fb8cc; border-color: #ffd1e3; }
.pbtn.on { transform: translateY(3px); box-shadow: inset 0 -2px 0 #0004; filter: brightness(1.25); }
.climber .inkrow { display: none; }
#menu-coop .mbtn span { font-size: 12px; }
/* 2人用：役を選ぶ（作った人だけ）・のこり時間 */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { font: inherit; font-size: 14px; font-weight: 900; color: #fff; padding: 10px 4px; border-radius: 14px; border: 2px solid #3a4890; background: #141d55; cursor: pointer; }
.seg button.on { background: var(--gold); color: var(--panel); border-color: #fff6d6; }
.pcard b.auto { background: #6b5bd6; }
.coop-time { font-weight: 900; font-size: 16px; padding: 2px 10px; border-radius: 99px; background: #0008; }
.coop-time.low { color: var(--gold); }
.slots i.passive { background: #ff8fc8; border-color: #ffd1e3; color: #fff; text-shadow: 0 1px 0 #b0245e; box-shadow: none; }
.slots i.passive b { color: #9c1f55; text-shadow: none; margin-right: 1px; }

/* ラボ掲載の版で、2人用の中継がまだ無い間は「2人で遊ぶ」と札を出さない（index.html の data-coop="off"） */
html[data-coop="off"] #btn-duo, html[data-coop="off"] .title-box .badge { display: none; }

/* ひと休み（プレイ中にタイトルへ戻る。2026-11-26 本人） */
.hud-r { display: flex; align-items: center; gap: 8px; }
.hud-btn { pointer-events: auto; width: 36px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 10px; border: 2px solid #ffffff55; background: #0c1238cc; color: var(--fg); cursor: pointer; }
.hud-btn svg { width: 16px; height: 16px; }
.pause { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: #04071ac8; }
.pause-card { width: min(320px, 86vw); box-sizing: border-box; padding: 16px; border-radius: 16px; background: #0c1238; border: 2px solid var(--gold); color: var(--fg); text-align: center; }
.pause-card b { display: block; font-size: 20px; font-weight: 900; }
.pause-card p { margin: 6px 0 14px; font-size: 14px; font-weight: 800; line-height: 1.5; }
.pause-btns { display: flex; gap: 10px; }
.pause-btns button { flex: 1; font: inherit; font-size: 15px; font-weight: 900; border-radius: 99px; padding: 10px 0; border: 2px solid var(--gold); background: transparent; color: var(--gold); cursor: pointer; }
.pause-btns #pause-go { background: var(--gold); color: var(--panel); }

/* iPhone で長押しすると文字が選ばれ「コピー・調べる」が出るのを止める（2026-11-26 本人「長押しで変なの開く」） */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button, .pbtn, .slots, .panel, #play-canvas { -webkit-tap-highlight-color: transparent; }
.pbtn, .slots, .hud-btn { touch-action: none; }
