:root {
  --ink:#222942;
  --navy:#3b3480;
  --coral:#f16188;
  --sky:#ccecf5;
  --lilac:#ece6ff;
  --cream:#fffaf2;
  --display:'Jua',sans-serif;
  --sans:'Noto Sans KR',sans-serif;
  --latin:'Nunito',sans-serif;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; scroll-padding-top:76px; }
body { margin:0; color:var(--ink); font:400 15px/1.75 var(--sans); word-break:keep-all; background:var(--cream); }
body { overflow:hidden; }
img { max-width:100%; }
button { font:inherit; color:inherit; cursor:pointer; }
a { color:inherit; }

/* Title screen: a visual-novel start screen. */
.title-screen { position:fixed; inset:0; z-index:30; overflow:hidden; display:grid; place-items:center; color:#fff; transition:opacity .6s, transform .6s; }
.title-screen.leaving { opacity:0; transform:scale(1.06); }
.title-bg { position:absolute; inset:-4%; background:url(/images/office-world/title-bg.webp) center / cover; animation:drift 24s ease-in-out infinite alternate; }
.title-bg::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(59,52,128,.35), rgba(59,52,128,.15) 40%, rgba(241,97,136,.55)); }
@keyframes drift { from { transform:scale(1) translateX(0); } to { transform:scale(1.08) translateX(-2%); } }
.pushes { position:absolute; top:24px; right:24px; z-index:2; list-style:none; margin:0; padding:0; display:grid; gap:10px; width:min(340px, calc(100vw - 48px)); }
.pushes li { display:flex; gap:10px; align-items:center; padding:10px 12px; border-radius:18px; background:rgba(255,255,255,.88); color:var(--ink); box-shadow:0 8px 24px rgba(34,41,66,.18); backdrop-filter:blur(8px); opacity:0; transform:translateY(-14px); animation:push .5s var(--d) forwards; }
.pushes img { width:40px; height:40px; border-radius:12px; object-fit:cover; }
.pushes p { margin:0; flex:1; font-size:13px; line-height:1.45; } .pushes b { display:block; font-size:12px; color:var(--coral); }
.pushes time { align-self:flex-start; font:800 11px var(--latin); color:#8a86a0; }
@keyframes push { to { opacity:1; transform:none; } }
.title-center { position:relative; z-index:2; text-align:center; padding:0 20px; }
.game-logo { margin:0 0 34px; }
.game-logo img { display:block; width:min(680px, 86vw); height:auto; filter:drop-shadow(0 10px 18px rgba(34,41,66,.35)); animation:pop .8s .2s both; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
@keyframes pop { from { opacity:0; transform:scale(.6) translateY(20px); } 70% { transform:scale(1.06); } to { opacity:1; transform:none; } }
.title-menu { display:grid; gap:10px; justify-items:center; }
.title-menu button, .title-menu a { min-width:240px; padding:10px 24px; border:2px solid rgba(255,255,255,.85); border-radius:12px; background:rgba(34,41,66,.45); color:#fff; font:400 19px var(--display); text-decoration:none; backdrop-filter:blur(6px); }
.title-menu .start { background:var(--coral); border-color:#fff; font-size:23px; box-shadow:0 5px 0 var(--ink); }
.title-menu button:hover, .title-menu a:hover { background:#fff; color:var(--navy); }
.title-menu :focus-visible { outline:3px solid #fff; outline-offset:3px; }
.press { position:absolute; bottom:26px; left:0; right:0; z-index:2; margin:0; text-align:center; font:900 13px var(--latin); letter-spacing:.5em; animation:blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity:0; } }

/* Game screen: HUD, panel stage and bottom menu. */
body:not(.on-title) { overflow:hidden; }
.game { position:fixed; inset:0; display:grid; grid-template-rows:auto 1fr auto; }
.game-bg { position:absolute; inset:0; z-index:-1; background:linear-gradient(rgba(255,250,242,.86), rgba(236,230,255,.9)), url(/images/office-world/title-bg.webp) center / cover; }
.hud { display:flex; align-items:center; gap:10px; padding:14px max(3vw,14px) 6px; }
.hud-time { padding:4px 12px; border-radius:100px; background:var(--navy); color:#fff; font:900 13px var(--latin); letter-spacing:.08em; }
.hud-place { font:400 17px var(--display); color:var(--navy); }
.hud-btn { margin-left:auto; padding:5px 12px; border:2px solid var(--navy); border-radius:8px; background:#fff; font:900 12px var(--latin); letter-spacing:.12em; color:var(--navy); }
.stage { position:relative; min-height:0; }
.panel { position:absolute; inset:0; overflow-y:auto; padding:18px max(4vw,16px) 40px; opacity:0; visibility:hidden; transition:opacity .3s, visibility 0s .3s; outline:none; }
.panel.active { opacity:1; visibility:visible; transition:opacity .3s; }
/* Bottom menu: capsule keys in the site's pill-button style. */
.game-menu { display:flex; justify-content:center; gap:12px; padding:14px max(3vw,12px) calc(16px + env(safe-area-inset-bottom)); background:rgba(255,250,242,.92); border-top:2px solid var(--ink); backdrop-filter:blur(8px); }
.game-menu button { display:flex; align-items:center; gap:10px; padding:9px 20px 9px 10px; border:2px solid var(--ink); border-radius:100px; background:#fff; color:var(--navy); box-shadow:0 4px 0 var(--ink); transition:transform .12s, box-shadow .12s, background .12s; }
.gm-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--t); }
.gm-icon svg { width:20px; height:20px; fill:none; stroke:var(--navy); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.gm-icon svg .fill { fill:var(--coral); stroke:none; }
.gm-label { font:400 18px var(--display); white-space:nowrap; }
.game-menu button[data-panel=world] { --t:#ffe3a3; } .game-menu button[data-panel=how] { --t:#c6ecf7; } .game-menu button[data-panel=places] { --t:#d3f2c8; } .game-menu button[data-panel=cast] { --t:#ffd1dd; } .game-menu button[data-panel=first] { --t:#e2d6ff; }
.game-menu button:hover { transform:translateY(-2px); box-shadow:0 6px 0 var(--ink); }
.game-menu button:active { transform:translateY(3px); box-shadow:0 1px 0 var(--ink); }
.game-menu button[aria-current=page] { background:var(--coral); color:#fff; }
.game-menu button[aria-current=page] .gm-icon { background:#fff; }
.game-menu button:focus-visible { outline:3px solid var(--navy); outline-offset:3px; }


.world-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr); gap:40px; max-width:1080px; margin:auto; align-items:center; }
.world-text h3 { margin:0 0 10px; font:400 30px var(--display); color:var(--coral); }
.world-text p { margin:0 0 14px; font-size:16px; }
.rule-card { position:relative; margin-bottom:30px; background:#fff; border:2px solid var(--ink); border-radius:6px; padding:30px 26px; box-shadow:6px 7px 0 var(--navy); transform:rotate(1.5deg); background-image:repeating-linear-gradient(transparent 0 29px, #e9e4f5 29px 30px); }
.rule-head { margin:0; font-size:12px; color:#8a86a0; font-weight:700; }
.rule-card h3 { margin:8px 0; font:400 38px var(--display); color:var(--ink); }
.rule-card p { margin:0; }
.stamp { position:absolute; right:-22px; bottom:-40px; width:96px; height:96px; border:3px solid var(--coral); border-radius:50%; display:grid; place-items:center; text-align:center; font:400 17px/1.2 var(--display); color:var(--coral); transform:rotate(-14deg); background:rgba(255,255,255,.85); }
.week { list-style:none; display:grid; grid-template-columns:repeat(5,1fr); gap:14px; max-width:1080px; margin:64px auto 0; padding:0; }
.week li { background:#fff; border:2px solid var(--ink); border-radius:18px; padding:16px; box-shadow:0 4px 0 var(--ink); }
.week b { display:block; font:900 20px var(--latin); color:var(--navy); }
.week span { font:800 12px var(--latin); color:var(--coral); }
.week p { margin:8px 0 0; font-size:14px; }
.week .launch { background:var(--coral); color:#fff; } .week .launch b, .week .launch span { color:#fff; }

/* Phones like a mystery-game UI. */
.phones { display:flex; justify-content:center; gap:40px; flex-wrap:wrap; }
.phone { width:min(340px,100%); background:#fff; border:2px solid var(--ink); border-radius:34px; padding:10px; box-shadow:8px 10px 0 rgba(59,52,128,.25); }
.phone-bar { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; border-radius:24px 24px 8px 8px; background:linear-gradient(90deg,#ffe9a8,#ffd4e1); font-weight:800; }
.phone-bar small { color:#8a86a0; margin-left:4px; }
.chat { padding:12px 6px; display:grid; gap:12px; background:#eef8fc; border-radius:8px 8px 24px 24px; min-height:390px; }
.sys { margin:0; justify-self:center; font-size:11px; background:rgba(34,41,66,.12); padding:2px 10px; border-radius:100px; }
.msg { display:flex; gap:8px; align-items:flex-start; }
.msg img { width:36px; height:36px; border-radius:12px; object-fit:cover; border:2px solid var(--c); }
.msg b { font-size:12px; color:var(--c); }
.msg p { margin:2px 0 0; background:#fff; padding:8px 12px; border-radius:4px 14px 14px 14px; font-size:13px; line-height:1.5; box-shadow:0 1px 0 rgba(0,0,0,.06); }
.msg.mine { justify-content:flex-end; }
.msg.mine p { background:var(--coral); color:#fff; border-radius:14px 4px 14px 14px; }
.notes { list-style:none; margin:0; padding:10px 6px; display:grid; gap:10px; min-height:390px; }
.notes li { position:relative; padding:10px 40px 10px 14px; border-radius:14px; background:#fffbe9; border:1px solid #f0e3b0; }
.notes b { font-size:14px; } .notes p { margin:0; font-size:12px; color:#6b6680; }
.notes span { position:absolute; right:12px; top:50%; transform:translateY(-50%); font:900 18px var(--latin); color:var(--coral); }
.notes .locked { background:#f1edfb; border-color:#d9cff3; }
.apps { list-style:none; display:flex; justify-content:center; gap:22px; flex-wrap:wrap; padding:0; margin:46px auto 0; }
.apps li { width:130px; text-align:center; }
.app { display:grid; place-items:center; width:72px; height:72px; margin:0 auto 8px; border-radius:22px; background:var(--a); border:2px solid var(--ink); font-size:32px; box-shadow:0 4px 0 var(--ink); }
.apps b { font:900 15px var(--latin); color:var(--navy); } .apps p { margin:0; font-size:12px; color:#6b6680; }
.how-note { max-width:640px; margin:34px auto 0; text-align:center; color:#4d4964; font-size:16px; }
.how-note b { color:var(--coral); }
.rule-card small { color:var(--coral); font-weight:700; }

/* Places. */
.places { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; max-width:1180px; margin:auto; }
.place { background:#fff; border:2px solid var(--ink); border-radius:22px; overflow:hidden; box-shadow:0 6px 0 var(--ink); }
.place img { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; border-bottom:2px solid var(--ink); }
.place div { padding:16px 20px 20px; }
.place-no { margin:0; font:900 11px var(--latin); letter-spacing:.18em; color:var(--coral); }
.place h3 { margin:2px 0 6px; font:400 24px var(--display); color:var(--navy); }
.place p:last-child { margin:0; font-size:14px; }

/* Cast cards (miracle-detective style). */
.cast { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; max-width:1080px; margin:auto; }
.cast-card { position:relative; padding:0; border:2px solid var(--c); border-radius:20px; overflow:hidden; background:#fff; box-shadow:0 8px 20px rgba(59,52,128,.14); text-align:left; }
.cast-card:focus-visible { outline:3px solid var(--c); outline-offset:3px; }
.cast-art { display:block; width:100%; height:auto; aspect-ratio:2/3; object-fit:cover; }
.cast-face { position:absolute; left:14px; bottom:90px; width:78px; height:78px; border-radius:20px; border:3px solid #fff; box-shadow:0 0 0 2px var(--c); object-fit:cover; }
.cast-name { display:flex; flex-direction:column; padding:10px 16px 12px; background:#fff; border-top:2px solid var(--c); }
.cast-name b { font:400 24px/1.2 var(--display); color:var(--c); }
.cast-meta { display:flex; align-items:center; gap:8px; margin-top:4px; font-size:13px; font-weight:700; color:var(--navy); }
.cast-meta em, #person-role em { font-style:normal; padding:1px 9px; border-radius:100px; background:color-mix(in srgb, var(--c) 16%, white); color:var(--c); font:900 12px var(--latin); }

.person { width:min(1040px,94vw); max-height:92dvh; padding:0; border:2px solid var(--ink); border-radius:26px; box-shadow:8px 10px 0 var(--c); overflow:auto; background:#fff; }
.person::backdrop { background:rgba(34,41,66,.55); backdrop-filter:blur(3px); }
.person[open] { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); }
.person .close { position:absolute; right:14px; top:12px; z-index:2; width:40px; height:40px; border:2px solid var(--ink); border-radius:50%; background:#fff; font-size:22px; line-height:1; display:grid; place-items:center; padding:0; }
.person-art { position:relative; background:#f4f1fb; display:grid; place-items:center; }
.person-art img { display:block; width:100%; height:auto; }
.person .close:focus-visible, .person-copy { padding:46px 32px 32px; }
#person-role { display:flex; align-items:center; gap:8px; margin:0; font-size:14px; color:var(--navy); font-weight:700; }
.person-copy h2 { margin:2px 0 12px; font:400 46px/1.1 var(--display); color:var(--c); }
.person-head { white-space:pre-line; font:400 22px/1.45 var(--display); margin:0 0 14px; }
.person-quote { margin:0 0 16px; padding:12px 16px; border-radius:4px 16px 16px 16px; background:color-mix(in srgb, var(--c) 12%, white); font-weight:700; }
.person-trait { margin:0 0 18px; font-size:14px; color:#4d4964; }
.person-q { margin:0; padding-top:14px; border-top:1px dashed #cfc8e6; }
.person-q span { display:block; font:900 11px var(--latin); letter-spacing:.16em; color:var(--coral); }
.person-q b { font-weight:700; }

/* First question. */
.scene { position:relative; max-width:1080px; margin:auto; border:2px solid var(--ink); border-radius:26px; overflow:hidden; box-shadow:8px 10px 0 var(--navy); }
.scene > img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; }
.scene-text { position:absolute; left:24px; right:24px; top:24px; max-width:520px; background:rgba(255,255,255,.92); border:2px solid var(--ink); border-radius:18px; padding:16px 20px; }
.narration { margin:0 0 8px; font-size:14px; color:#4d4964; }
.line { margin:0; font:400 20px var(--display); } .line b { color:#e23a4c; font-weight:400; margin-right:6px; }
.choices { position:absolute; left:24px; bottom:24px; display:grid; gap:10px; width:min(520px, calc(100% - 48px)); }
.choices button { text-align:left; padding:12px 18px; border:2px solid #d9c9ff; border-radius:12px; background:rgba(85,58,160,.82); color:#fff; font:400 17px var(--display); backdrop-filter:blur(4px); transition:transform .15s, background .15s; }
.choices button { display:flex; align-items:center; gap:12px; }
.choices button::before { content:''; flex:none; width:26px; height:24px; background:url(/images/office-world/heart.svg) center / contain no-repeat; filter:drop-shadow(0 2px 2px rgba(34,41,66,.35)); }
.choices button:hover, .choices button.picked { transform:translateX(6px); background:rgba(241,97,136,.9); }
.choice-result { position:absolute; right:24px; bottom:24px; max-width:300px; margin:0; background:#fff1a9; border:2px solid var(--ink); border-radius:14px; padding:10px 14px; font-weight:700; font-size:13px; }
.choice-result:empty { display:none; }

@media (max-width:900px) {
  .world-grid { grid-template-columns:1fr; }
  .week { grid-template-columns:repeat(2,1fr); } .week .launch { grid-column:1 / -1; }
  .places, .cast { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .person[open] { display:block; }
  .scene > img { aspect-ratio:4/5; }
}
@media (max-width:600px) {
  .game-menu { gap:6px; padding:10px 8px calc(12px + env(safe-area-inset-bottom)); } .game-menu button { flex:1; min-width:0; flex-direction:column; gap:3px; padding:6px 2px 5px; border-radius:16px; } .gm-icon { width:30px; height:30px; } .gm-icon svg { width:18px; height:18px; } .gm-label { font-size:12px; }
  .pushes { top:14px; right:14px; } .pushes li:nth-child(n+3) { display:none; }
  .title-menu button, .title-menu a { min-width:210px; }
  .places { grid-template-columns:1fr; }
  .cast { gap:16px; }
  .cast-face { width:54px; height:54px; border-radius:14px; bottom:76px; left:10px; }
  .cast-name b { font-size:19px; } .cast-meta { font-size:11px; gap:5px; flex-wrap:wrap; }
  .scene { background:#fde7ef; }
  .scene-text, .choices, .choice-result { position:static; width:auto; max-width:none; margin:12px; }
  .scene-text { padding:12px 14px; }
  .line { font-size:17px; }
  .choices button { font-size:15px; padding:10px 14px; }
  .person-copy { padding:24px 20px; } .person-copy h2 { font-size:36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; }
  .pushes li, }
