/* 「まだ、破らないで。」 game look on top of the dark-industrial theme tokens */
[data-theme~="yaburanaide"] {
  --gf-bg: #0c0b0a; --gf-surface: #1a1816; --gf-surface-2: #231f1c; --gf-panel: rgba(24, 21, 19, 0.97); --gf-panel-soft: rgba(24, 21, 19, 0.9);
  --gf-text: #e8e0cf; --gf-text-dim: #b3aa97; --gf-accent: #d9c9a6; --gf-accent-ink: #1a1410; --gf-heading: #e8e0cf; --gf-border: #4a443b; --gf-border-strong: #8a8374;
  --gf-danger: #e07a5f; --gf-font: 'Zen Old Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--gf-bg); color: var(--gf-text); font-family: var(--gf-font); overflow: hidden; overscroll-behavior: none; }
#app { position: fixed; inset: 0; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
section { position: absolute; inset: 0; }
[hidden] { display: none !important; }
#title { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: radial-gradient(ellipse at 50% 40%, #26231f 0%, #0c0b0a 75%); padding: 16px; text-align: center; }
.ttl { font-size: clamp(34px, 9vmin, 64px); line-height: 1.35; margin: 0; letter-spacing: .12em; font-weight: 700; color: var(--gf-text); }
.btn { font: inherit; font-size: 17px; min-height: 44px; min-width: 44px; padding: 8px 22px; border-radius: 6px; border: 1px solid var(--gf-border-strong); background: rgba(34, 30, 27, .86); color: var(--gf-text); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; position: relative; }
.btn:hover { background: #2e2923; }
.btn:focus-visible { outline: 2px solid var(--gf-accent); outline-offset: 2px; }
.btn.primary { background: var(--gf-accent); color: var(--gf-accent-ink); border-color: var(--gf-accent); font-weight: 700; padding: 10px 40px; }
.btn.primary:hover { background: #ebdcb9; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--gf-text-dim); font-size: 15px; }
.btn[hidden] { display: none; }
.trow { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.trow[hidden] { display: none; }
.dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gf-danger); }
.dot[hidden] { display: none; }
.seen { color: var(--gf-text-dim); font-size: 14px; line-height: 1.7; max-height: 28vh; overflow: auto; }
.seen[hidden] { display: none; }
.seen p { margin: 0 0 4px; }
.seen ul { list-style: none; margin: 0; padding: 0; }
#play { pointer-events: none; }
#play .btn { pointer-events: auto; }
.time { position: absolute; top: calc(10px + var(--gf-safe-t)); left: calc(14px + var(--gf-safe-l)); font: 600 20px/1 var(--gf-font-mono); color: var(--gf-text-dim); letter-spacing: .08em; }
.bar { position: absolute; left: 0; right: 0; bottom: calc(14px + var(--gf-safe-b)); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0 12px; }
@media (orientation: landscape) and (max-height: 520px) {
  .bar { left: auto; right: calc(12px + var(--gf-safe-r)); top: 0; bottom: 0; flex-direction: column; justify-content: center; align-items: stretch; width: 164px; }
}
#end { background: #000; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#endBg { position: fixed; inset: 0; background: center / contain no-repeat; opacity: 0; transition: opacity 2.2s ease; pointer-events: none; z-index: 0; filter: grayscale(.4) brightness(.8); -webkit-mask-image: radial-gradient(ellipse at center, #000 38%, transparent 74%); mask-image: radial-gradient(ellipse at center, #000 38%, transparent 74%); }
#endBg.on { opacity: .34; }
.endwrap { position: relative; z-index: 1; text-shadow: 0 0 8px #000, 0 0 2px #000; min-height: 100%; max-width: 640px; margin: 0 auto; padding: calc(40px + var(--gf-safe-t)) 24px calc(40px + var(--gf-safe-b)); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.endtext { display: flex; flex-direction: column; gap: 14px; }
.ln { margin: 0; font-size: clamp(17px, 3.4vmin, 22px); line-height: 1.85; opacity: 0; transform: translateY(6px); transition: opacity 1.1s ease, transform 1.1s ease; color: var(--gf-text); }
.ln.on { opacity: 1; transform: none; }
.ln.v { color: #e8cbb8; padding-left: 14px; border-left: 2px solid #6b3a30; }
.ln.big { font-size: clamp(20px, 4.2vmin, 28px); color: #fff; font-weight: 700; margin-top: 10px; }
.ln.doc { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: #14110e; border: 1px solid var(--gf-border); font-family: var(--gf-font-mono); color: #e8e0cf; font-size: clamp(16px, 3vmin, 20px); }
.ln.gapln { height: 20px; }
.choice { display: flex; gap: 14px; justify-content: center; margin: 12px 0; }
.choice[hidden] { display: none; }
.endtitle { margin: 18px 0 0; font-size: 17px; color: var(--gf-text-dim); font-weight: 500; transition: opacity 1.4s; opacity: 0; letter-spacing: .08em; }
.endcount { margin: 0 0 8px; font-size: 14px; color: var(--gf-text-dim); }
@media (prefers-reduced-motion: reduce) { .ln { transition: none; } #boot i { animation: none; } }
