/* Ormaven Fun Lab 02 – an interactive, fiction-only apocalyptic narrative. */
.apoc-page{max-width:1220px;margin:0 auto;padding-bottom:4rem;color:#171717}
.apoc-page [hidden]{display:none!important}
.apoc-intro{padding:1.6rem 0 1.4rem;border-bottom:1px solid #d7d7d7}
.apoc-intro .eyebrow{font-size:.72rem;letter-spacing:.13em}
.apoc-intro h1{font-size:clamp(2rem,5vw,4.1rem);letter-spacing:-.055em;line-height:1.05;margin:.6rem 0;color:#111}
.apoc-intro>p{max-width:760px;font-size:.98rem;line-height:1.5;color:#565656;margin:0}
.apoc-tags{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:1.1rem}
.apoc-tags span{font-size:.72rem;border:1px solid #bbb;border-radius:999px;color:#464646;padding:.3rem .6rem}
.apoc-grid{display:grid;grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr);gap:1rem;align-items:start;padding-top:1.3rem}
.apoc-control{background:#fff;border:1px solid #d3d3d3;border-radius:13px;min-width:0;padding:1.25rem}
.apoc-control form{display:grid;gap:.85rem}
.apoc-control-heading>span{font-size:.65rem;font-weight:750;letter-spacing:.09em;color:#737373}
.apoc-control-heading h2{font-size:1.35rem;letter-spacing:-.035em;line-height:1.16;margin:.45rem 0}
.apoc-field{display:grid;gap:.4rem;font-size:.78rem;font-weight:700;color:#444}
.apoc-field select{width:100%;min-height:44px;border:1px solid #bbb;border-radius:7px;background:#fff;color:#222;padding:.6rem;font:inherit}
.apoc-check{display:flex;gap:.6rem;align-items:center;font-size:.77rem;line-height:1.4;color:#555;cursor:pointer}
.apoc-check input{width:17px;height:17px;flex:none;accent-color:#222}
.apoc-start{justify-content:center;text-align:center;min-height:48px;width:100%}
.apoc-mini-note{font-size:.71rem;line-height:1.55;margin-top:1rem;border-top:1px solid #dedede;padding-top:.9rem;color:#737373}
.apoc-stage{min-width:0;background:#161616;border-radius:13px;color:#efefef;overflow:hidden;min-height:380px;border:1px solid #262626}
.apoc-idle{padding:3.1rem 1.7rem;text-align:center;min-height:380px;display:flex;align-items:center;justify-content:center;flex-direction:column}
.apoc-orbit{font-size:4.2rem;line-height:1;color:#aaa;animation:apocPulse 6s ease-in-out infinite}
.apoc-serial{font:700 .65rem ui-monospace,monospace;letter-spacing:.1em;color:#888;margin-top:.6rem}
.apoc-idle h2{color:#fff;letter-spacing:-.04em;font-size:clamp(1.55rem,3.1vw,2.2rem);margin:.85rem 0 .5rem}
.apoc-idle p{max-width:400px;color:#b8b8b8;line-height:1.5;margin:0}
.apoc-stage>[data-apoc-game]{padding:1.25rem 1.4rem;min-width:0}
.apoc-topline{display:flex;justify-content:space-between;gap:.7rem;align-items:center;font:750 .7rem ui-monospace,monospace;letter-spacing:.07em;color:#b0b0b0;padding-bottom:1rem;border-bottom:1px solid #373737}
.apoc-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:1.05rem 0 1.75rem}
.apoc-stat>div:first-child{display:flex;justify-content:space-between;font-size:.69rem;gap:.25rem;color:#ccc}
.apoc-stat output{font:700 .71rem ui-monospace,monospace;color:#fff}
.apoc-meter{margin-top:.4rem;height:5px;background:#444;border-radius:10px;overflow:hidden}
.apoc-meter i{display:block;width:0;height:100%;background:#e8e8e8;border-radius:10px;transition:width .25s}
.apoc-stat:nth-child(3) .apoc-meter i{background:#a0a0a0}
.apoc-event-kicker{color:#aaa;font:.72rem ui-monospace,monospace;letter-spacing:.07em;margin:0 0 .55rem;text-transform:uppercase}
.apoc-stage h2[data-apoc-title]{color:#fff;font-size:clamp(1.65rem,3vw,2.45rem);line-height:1.07;letter-spacing:-.045em;margin:0 0 .75rem;overflow-wrap:anywhere}
.apoc-story{line-height:1.65;font-size:.99rem;color:#d6d6d6;min-height:3rem;margin:0 0 1.35rem}
.apoc-history{display:grid;gap:.45rem;margin:.9rem 0}
.apoc-history-item{border-left:2px solid #777;padding:.35rem .7rem;background:#202020}
.apoc-history-item strong{font:.68rem ui-monospace,monospace;color:#aaa;letter-spacing:.06em}
.apoc-history-item p{font-size:.78rem;color:#ddd;line-height:1.5;margin:.25rem 0 0}
.apoc-mission{border-top:1px solid #3a3a3a;padding-top:1rem}
.apoc-mission h3{font-size:.85rem;color:#c6c6c6;margin:0 0 .65rem;letter-spacing:.02em}
.apoc-choices{display:grid;gap:.5rem}
.apoc-choice{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:.3rem .85rem;width:100%;min-height:61px;text-align:left;border:1px solid #777;border-radius:9px;background:#242424;color:#f8f8f8;padding:.8rem 2rem .8rem .85rem;cursor:pointer}
.apoc-choice strong{display:block;flex:1 1 100%;font-size:.84rem}
.apoc-choice span{color:#bababa;font:.69rem ui-monospace,monospace}
.apoc-choice i{position:absolute;right:.8rem;top:50%;transform:translateY(-50%);font-size:1.15rem;font-style:normal;color:#aaa}
.apoc-choice:hover,.apoc-choice:focus-visible{background:#f5f5f5;color:#171717;border-color:white;outline:none}
.apoc-choice:hover span,.apoc-choice:hover i,.apoc-choice:focus-visible span,.apoc-choice:focus-visible i{color:#555}
.apoc-ending{border:1px solid #777;border-radius:10px;background:#eee;color:#171717;padding:1rem;margin:.9rem 0}
.apoc-ending-kicker{font:.67rem ui-monospace,monospace;letter-spacing:.1em;color:#666}
.apoc-ending h3{font-size:1.55rem;letter-spacing:-.035em;margin:.4rem 0 .5rem}
.apoc-ending p{font-size:.86rem;line-height:1.55;color:#444}
.apoc-ending .button{min-height:43px;margin-top:.35rem}
.apoc-share-row{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:1.15rem 0 .5rem}
.apoc-share-row .button{justify-content:center;text-align:center;min-height:40px;font-size:.76rem;white-space:normal;background:#373737;border:1px solid #676767;color:#f3f3f3}
.apoc-share-row .button:hover{background:#fff;color:#111}
.apoc-status{color:#ccc;font-size:.75rem;margin:.65rem 0 0;line-height:1.4}
.apoc-copy-manual{width:100%;min-height:86px;font-family:monospace;font-size:.72rem;padding:.55rem;border-radius:4px}
.apoc-footnote{font-size:.74rem;color:#777;line-height:1.5;max-width:800px;margin:1.2rem 0}
@keyframes apocPulse{0%,100%{opacity:.55;transform:scale(.9)}50%{opacity:1;transform:scale(1.04)}}
@media(max-width:850px){.apoc-grid{grid-template-columns:minmax(0,1fr)}.apoc-control form{grid-template-columns:repeat(2,minmax(0,1fr))}.apoc-control-heading,.apoc-check,.apoc-start{grid-column:1/-1}.apoc-mini-note{margin-top:.7rem}}
@media(max-width:480px){.apoc-control form{grid-template-columns:minmax(0,1fr)}.apoc-stage>[data-apoc-game]{padding:1rem}.apoc-intro{padding:.85rem 0}.apoc-tags{gap:.28rem}.apoc-stats{gap:.4rem}.apoc-stat>div:first-child{font-size:.61rem}.apoc-share-row{grid-template-columns:minmax(0,1fr)}.apoc-idle{padding:2rem 1rem;min-height:300px}.apoc-stage{min-height:300px}}
@media(prefers-reduced-motion:reduce){.apoc-orbit{animation:none}.apoc-meter i{transition:none}}
