/* OMEN acts: the shared look (Wall theme + Azuki-style layering). Each act page adds its own scene styles. */
:root { --bg: #fbfaf7; --ink: #111; --mid: #77736b; --line: #e6e3dc; --soft: #f0ede6; --night: #0f1115; --acc: #ff4f1f; --gold: #c9a24a; }
* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: "Instrument Sans", sans-serif; overflow-x: hidden; }
button, input { font: inherit; color: inherit; }
.serif { font-family: "Instrument Serif", serif; font-weight: 400; }
.meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 14px 32px; font-size: 14px; background: rgba(251,250,247,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .m { font-family: "Instrument Serif", serif; font-size: 26px; color: var(--ink); text-decoration: none; }
header nav { display: flex; gap: 6px; }
header nav a { color: var(--mid); text-decoration: none; padding: 7px 14px; border-radius: 99px; }
header nav a:hover { color: var(--ink); }
header nav a.on { color: var(--ink); background: var(--soft); }
.pill { border: 1px solid var(--ink); border-radius: 99px; padding: 8px 16px; background: var(--bg); color: var(--ink); text-decoration: none; font-size: 14px; display: inline-block; cursor: pointer; }
.pill.solid { background: var(--ink); color: #fff; }

.act { min-height: 100vh; position: relative; z-index: 15; background: var(--bg); overflow: hidden; padding: 110px 32px 40px; display: flex; flex-direction: column; justify-content: flex-start; gap: 34px; }
.act .spec { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 42px; justify-content: space-between; position: relative; z-index: 3; }
.act .spec b { display: block; font-weight: 500; color: var(--ink); letter-spacing: .06em; margin-top: 3px; }
.act .giant { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%); font-family: "Instrument Serif", serif; font-size: 25vw; line-height: .78; letter-spacing: -.035em; color: var(--acc); white-space: nowrap; z-index: 1; pointer-events: none; }
.act .giant em { font-style: italic; }
.act .cast { position: absolute; left: 0; right: 0; bottom: 7vh; display: flex; justify-content: center; align-items: flex-end; gap: 2vw; z-index: 2; pointer-events: none; }
.act .cast img { height: 46vh; filter: drop-shadow(0 24px 30px rgba(0,0,0,.18)); }
.act .cast img:nth-child(2) { height: 54vh; }
.act .cast img.flip { transform: scaleX(-1); }
.act .intro { position: relative; z-index: 3; max-width: 470px; order: 2; }
.act .intro .k { font-size: 14px; color: var(--mid); }
.act .intro .k i { font-family: "Instrument Serif", serif; font-size: 22px; color: var(--ink); margin-right: 6px; }
.act .intro p { font-size: 19px; line-height: 1.5; margin-top: 10px; }
.strip { position: relative; z-index: 15; background: var(--ink); color: #fff; overflow: hidden; padding: 16px 0; }
.strip .run { display: flex; gap: 44px; width: max-content; animation: run 40s linear infinite; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.strip .run b { color: var(--acc); font-weight: 600; }
@keyframes run { to { transform: translateX(-50%); } }

.stage { position: fixed; top: 0; bottom: 0; right: 0; width: 60vw; z-index: 1; visibility: hidden; --p: .5; }
.layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .7s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.layer.on { opacity: 1; pointer-events: auto; }
.layer.above { transform: translateY(-7vh) scale(.97); }
.layer.below { transform: translateY(7vh) scale(.97); }
.num { position: absolute; left: -2vw; top: 50%; font-family: "Instrument Serif", serif; font-size: 62vh; line-height: 1; color: var(--soft); transform: translateY(calc(-50% + (var(--p) - .5) * 220px)); pointer-events: none; user-select: none; }
.fig { position: absolute; right: 2vw; bottom: 0; height: 64vh; transform: translateY(calc((var(--p) - .5) * 90px)); pointer-events: none; filter: drop-shadow(0 30px 30px rgba(0,0,0,.16)); }
.fig.flip { transform: translateY(calc((var(--p) - .5) * 90px)) scaleX(-1); }
.front { position: absolute; inset: 88px 7vw 40px 3vw; display: flex; align-items: center; justify-content: flex-start; transform: translateY(calc((var(--p) - .5) * -40px)); }
.card3d { width: min(540px, 40vw); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; box-shadow: 0 50px 90px -40px rgba(17,17,17,.38), 0 14px 30px -14px rgba(17,17,17,.18); position: relative; }
.card3d .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; gap: 10px; }
.card3d .title { font-family: "Instrument Serif", serif; font-size: 26px; }
.card3d.dark { background: var(--night); color: #ece9e2; border-color: #22252b; }
.card3d.dark .small, .card3d.dark .meta { color: #8b8a86; }
.try { display: inline-block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); border: 1px solid var(--acc); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; background: var(--bg); flex-wrap: wrap; }
.seg button { border: 0; background: none; border-radius: 99px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--mid); }
.seg button.on { background: var(--ink); color: #fff; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.big { font-family: "Instrument Serif", serif; font-size: 38px; line-height: 1; }
.small { font-size: 12.5px; color: var(--mid); line-height: 1.45; }
.pick { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 4px 4px 4px 14px; font-size: 13px; color: var(--mid); background: #fff; }
.pick input { width: 64px; border: 0; outline: 0; font-family: "Instrument Serif", serif; font-size: 20px; background: transparent; color: var(--ink); }
.pick button { border: 0; border-radius: 99px; background: var(--ink); color: #fff; padding: 6px 12px; font-size: 12.5px; cursor: pointer; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: var(--line); border-radius: 99px; outline: none; margin: 12px 0 4px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); cursor: grab; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); cursor: grab; border: 3px solid #fff; }
@keyframes rowin { from { opacity: 0; transform: translateY(-12px); } }
.progress { position: fixed; right: 32px; top: 84px; z-index: 20; display: flex; gap: 8px; visibility: hidden; }
.progress i { width: 22px; height: 2px; background: var(--line); transition: background .4s, width .4s; }
.progress i.on { background: var(--acc); width: 40px; }

.chapters { position: relative; z-index: 10; width: 40vw; pointer-events: none; }
.ch { min-height: 110vh; display: flex; flex-direction: column; justify-content: center; padding: 100px 3vw 40px 32px; }
.ch > * { pointer-events: auto; }
.ch .k { font-size: 13px; color: var(--mid); margin-bottom: 16px; }
.ch .k i { font-family: "Instrument Serif", serif; font-size: 20px; color: var(--acc); margin-right: 8px; font-style: normal; }
.ch h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(44px, 4.8vw, 80px); line-height: .98; letter-spacing: -.02em; }
.ch h2 em { font-style: italic; }
.ch p { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--mid); max-width: 450px; }
.sheet { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 22px; max-width: 450px; border-top: 1px solid var(--ink); padding-top: 12px; }
.sheet dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); padding-top: 2px; }
.sheet dd { font-size: 14px; }
details.more { margin-top: 18px; max-width: 450px; border-top: 1px solid var(--line); }
details.more summary { list-style: none; cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: '+'; font-size: 20px; line-height: 1; transition: transform .25s; }
details.more[open] summary::after { transform: rotate(45deg); }
details.more ol { padding-left: 0; list-style: none; counter-reset: s; }
details.more ol li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; font-size: 14.5px; line-height: 1.5; padding: 6px 0; }
details.more ol li::before { content: counter(s); font-family: "Instrument Serif", serif; font-size: 20px; color: var(--acc); line-height: 1.1; }
details.more .qa { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
details.more .qa b { display: block; font-weight: 500; font-size: 14px; margin-top: 10px; }
details.more .qa span { display: block; font-size: 14px; color: var(--mid); line-height: 1.5; margin-top: 2px; }

.plain { position: relative; z-index: 12; background: var(--bg); border-top: 1px solid var(--line); padding: 100px 32px 90px; }
.plain h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(44px, 6vw, 88px); text-align: center; line-height: 1; }
.plain h2 em { font-style: italic; }
.plain > p { text-align: center; color: var(--mid); font-size: 18px; margin: 14px auto 50px; max-width: 520px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 24px 24px 22px; background: #fff; }
.card .meta { color: var(--acc); }
.card h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 28px; margin: 6px 0 10px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--mid); }
.golinks { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 34px; } .golinks .pill { padding: 12px 20px; font-size: 15px; }
.next-act { position: relative; z-index: 12; background: var(--ink); color: #fff; padding: 90px 32px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 30px; text-decoration: none; overflow: hidden; }
.next-act .k { font-size: 14px; color: #a9a6a0; }
.next-act h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(56px, 9vw, 140px); line-height: .9; margin-top: 10px; }
.next-act h2 em { font-style: italic; color: var(--acc); }
.next-act .pill { background: transparent; color: #fff; border-color: #fff; padding: 13px 22px; font-size: 15px; }
footer { position: relative; z-index: 12; background: var(--bg); display: flex; justify-content: space-between; padding: 18px 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mid); }

@media (max-width: 820px) {
  header { padding: 12px 16px; } header .m { font-size: 24px; } header .pill { display: none; } header nav a { padding: 6px 10px; }
  .act { padding: 90px 20px 30px; }
  .act .spec { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .act .giant { font-size: 25vw; bottom: 25vh; white-space: normal; width: 100%; text-align: center; line-height: .8; }
  .act .cast img { height: 26vh; } .act .cast img:nth-child(2) { height: 31vh; }
  .act .cast { bottom: 5vh; } .act .cast img:nth-child(4), .act .cast img:nth-child(5) { display: none; }
  .act .intro p { font-size: 16px; }
  .stage { top: 58px; bottom: auto; height: 62svh; left: 0; right: 0; width: auto; background: var(--bg); border-bottom: 1px solid var(--line); }
  .num { font-size: 40svh; left: -4vw; }
  .fig { display: none; }
  .front { inset: 10px 3vw 10px; justify-content: center; transform: none; }
  .card3d { width: 100%; padding: 14px 15px; border-radius: 14px; transform: none !important; }
  .card3d .head { margin-bottom: 8px; } .card3d .title { font-size: 20px; }
  .seg button { padding: 5px 9px; font-size: 12px; }
  .chapters { width: 100vw; }
  .ch { min-height: 100svh; justify-content: flex-end; padding: 0 20px 6svh; }
  .ch > * { background: var(--bg); box-shadow: 0 0 0 10px var(--bg); position: relative; }
  .ch h2 { font-size: clamp(32px, 9.5vw, 44px); } .ch p { font-size: 15px; margin-top: 12px; } .ch .k { margin-bottom: 8px; }
  .sheet { display: none; }
  .progress { right: 16px; top: 68px; }
  .progress i { width: 12px; } .progress i.on { width: 24px; }
  .cards { grid-template-columns: 1fr; } .plain { padding: 70px 20px; } .next-act { padding: 70px 20px; }
}

/* phones: scenes live inside their chapters (see inlineOnPhones) */
body.phone .stage, body.phone .progress { display: none !important; }
body.phone .chapters { width: 100%; }
body.phone .ch { min-height: 0 !important; justify-content: flex-start !important; padding: 60px 20px 44px !important; border-top: 1px solid var(--line); }
body.phone .ch > * { background: none !important; box-shadow: none !important; }
body.phone .inline-scene { margin: 22px 0 6px; position: relative; overflow: hidden; }
html:has(body.phone), body.phone { overflow-x: clip; }
body.phone .inline-scene .front { position: static; inset: auto; transform: none; display: block; }
body.phone .inline-scene .card3d { width: 100%; transform: none !important; }
body.phone .card3d .row { flex-wrap: wrap; } body.phone .seg button, .pick button { white-space: nowrap; }
body.phone .ch.on .stamp { transform: rotate(8deg) scale(1); opacity: 1; }

header .m { display: inline-flex; align-items: center; gap: 10px; }
header .m .logo { height: 30px; width: auto; display: block; }
footer .flogo { display: inline-flex; align-items: center; gap: 8px; }
footer .flogo img { height: 18px; width: auto; }
@media (max-width: 820px) { header .m .logo { height: 26px; } }
