body.play { --panel:#183c34ee; --gold:#eed19c; --paper:#fbf1df; --mist:#d9d8be; --ink:#293c32; --body:var(--sans); --display:var(--serif); color-scheme:light; background:#f6f1e6; color:var(--ink) }
.play .wrap { max-width:1600px; padding:10px clamp(10px,2vw,32px) 28px; gap:10px }
.play header { flex-wrap:nowrap; min-height:46px }
.back-gate { margin-left:auto; text-decoration:none; color:#365f52; font-size:.84rem; border-bottom:1px solid #b9b195 }
.sound { border:1px solid #bfb69b; background:#fff9eb; color:#254c40; font-weight:600; min-height:36px }
.sound[aria-pressed=true] { background:#284f43; color:#fff4d8 }
.stage { border:1px solid #bba67e; border-radius:20px; background:#1e4037; box-shadow:0 4px 0 #d9ccb3; height:clamp(500px,80dvh,970px); color:#fff5df; isolation:isolate }
.glass { background:linear-gradient(145deg,#284e43f2,#173a33f2); border:1px solid #dfc59499; border-radius:14px; box-shadow:inset 0 1px 0 #fff4ce24,0 3px 9px #172d2645 }
.uf { top:12px;left:12px; min-height:54px; padding:5px 12px 5px 5px }
.uf .face { width:43px;height:43px; border:2px solid #d5ad70; background:#f1e2c7 url("img/ic_guardian.jpg?v=ceramic1") center / cover }
.uf .xp { height:6px;border:0;background:#122b24 }.uf .xp i { background:linear-gradient(90deg,#b69151,#ffe2a0) }
.uf small { color:#eddfc7 }.uf b span { color:#ffe0a3 }
.tools { display:flex; flex-wrap:wrap; max-width:calc(100% - 225px); gap:5px; position:absolute; top:80px;left:12px }
.tools > button { position:static; padding:6px 10px; min-height:34px; color:#fff5df; border-radius:10px; white-space:nowrap; font-size:12px; font-weight:500 }
.tools > button[hidden] { display:none }
.tools b { color:#f8d493 }.tools button:hover,.jump:hover { background:#446658 }
.tr { top:12px;right:12px; gap:5px; max-width:228px }.mini { border:3px solid #e1c28c; box-shadow:0 0 0 3px #33594d; width:106px;height:106px }
.quest { padding:6px 11px; width:auto }
.quest summary { font-size:.78rem;cursor:pointer;font-weight:650 }
.quest summary span { margin-left:8px;color:#f0d19a;font:600 12px var(--sans) }
.quest[open] { background:#183b32; max-height:40dvh; overflow:auto }
.quest[open] ol { padding-top:7px }.quest[open] li { display:list-item; }
.quest[open] ~ .quest-now { display:none }
.quest-now { padding:4px 9px; font-size:12px; color:#f8e7c5 }.online { color:#d1f4dd }
.chat { background:#17372fe8; border-radius:12px; max-height:96px; font-size:12px; width:min(360px,44%) }
.chat b { color:#ffdba7 }.chat i { color:#ddd7c3 }
.bar { padding-bottom:12px; background:linear-gradient(transparent,#142e28b8 52%,#102b24dd) }
.where { font-weight:700;color:#ffebbf; text-shadow:0 1px 4px #1d3224 }
.acts button { background:linear-gradient(#fff9eb,#e8d9bc); border:1px solid #d9b880; border-radius:12px; color:#2d4539; box-shadow:0 3px 0 #a7885f; padding:6px 10px; min-width:72px }
.acts button img { border:0; border-radius:9px; mix-blend-mode:multiply }
.acts button small { color:#635d4f }.acts button kbd { background:#244f40;border-color:#bba070;color:#ffe6bd }
.acts .idle { color:#fff4db }.joy { background:#274d3fa8;border-color:#ffe1a8a8 }.joy i { background:radial-gradient(circle at 30% 22%,#ffedc9,#c8a56a);box-shadow:0 3px 8px #102b2480 }
.modal { z-index:8; pointer-events:auto; background:#102d2959 }
.sheet,.yj-card { background:linear-gradient(135deg,#fffbef,#f3e7ce); color:#293f33; border:1px solid #d2b88a; border-radius:20px; padding:23px; box-shadow:0 8px 0 -4px #aa8a60,0 16px 45px #112d2966; font-family:var(--sans) }
.sheet h2,.yj-card h2 { color:#254f40; font:700 1.5rem/1.4 var(--serif); margin:0; padding-bottom:8px; border-bottom:1px solid #d8c6a6 }
.sheet button,.yj-card button { border-radius:10px; background:#2d5b4e;color:#fff4d9; border:1px solid #2a4b3f; box-shadow:0 2px 0 #19372d; padding:8px 13px; cursor:pointer }
.sheet .ghost,.yj-card .alt { color:#365244!important; border:1px solid #b5a58a!important; background:#fff9ec!important;box-shadow:none }
.sheet input,.yj-card input { width:100%;background:#fffdf7;color:#263c33;border:1px solid #b5a58a;border-radius:9px;padding:10px }
.sheet button.chip { box-shadow:none }.slip { background:#fff9eb;border:1px solid #b98e65;border-radius:12px;box-shadow:inset 0 0 0 4px #ecddc2 }
.slip .grade,.charm { border-radius:8px }.charm { background:linear-gradient(125deg,#f9dfa4,#d7a957); box-shadow:0 4px 8px #543f252a }
.loading { color:#fff2d7; background:linear-gradient(#173b36b0,#173b36da),url("img/temple-cover.jpg") center/cover; z-index:7 }
.keys,.about,.wall p.lead,.yj-foot { color:#605f50 }
.wall,.about { max-width:none; border:1px solid #d8cdb5; background:#fcf8ed; padding:16px 20px; border-radius:16px }
.wall h2,.about h2 { color:#234d40;font-size:1.3rem;font-weight:700 }
.lamps li { position:relative; background:#f4ead4; border:1px solid #d8c6a3; border-radius:12px; padding:12px 12px 12px 54px; min-height:60px }
.lamps li::before { position:absolute;top:10px;left:8px;width:40px;height:40px;background:url("img/ic_lamp.jpg?v=ceramic1") center/cover;box-shadow:none;mix-blend-mode:multiply }
.lamps small { color:#6d6353 }.about p { max-width:85ch }
.yj-foot { font-size:12px;margin:0 }.yj-foot a,.yj-foot button,.yj-card a { color:#305b4c }
.yj-foot button { border:0; padding:0; background:none; text-decoration:underline;cursor:pointer }
.yj-ov { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:12px; background:#142f28aa; backdrop-filter:blur(5px) }
.yj-card { width:min(355px,100%); max-height:95dvh; overflow:auto }
.yj-card::before { content:"";display:block;margin:0 auto 8px;width:72px;height:72px;background:url("img/ic_guardian.jpg?v=ceramic1") center/cover;border-radius:50%;mix-blend-mode:multiply }
.yj-card p,.yj-card small { line-height:1.6; font-size:13px }.yj-card small { display:block;font-size:11px;margin-top:12px }
.yj-card label { display:block; margin-bottom:4px }.yj-card .row { display:flex;gap:8px;margin-top:12px }.yj-card button { flex:1 }.yj-err { color:#a53529;font-size:13px }
@media(max-width:700px) {
  .play .wrap { padding:6px 6px 18px;gap:8px }.play header { padding:0 6px }.stage { border-radius:14px;height:clamp(480px,80dvh,790px) }
  .mini { width:68px;height:68px }.tr {max-width:43%;top:8px;right:8px}.quest-now {font-size:10px}
  .uf {top:8px;left:8px;min-height:42px}.uf .face {width:32px;height:32px}.tools {top:59px;left:8px;max-width:53%;gap:4px}
  .tools>button {font-size:11px;padding:4px 7px;min-height:32px}.online {font-size:10px}
  .acts {gap:4px}.acts button {min-width:48px;padding:4px;font-size:12px}.acts button small {display:none}.acts button img {width:32px;height:32px}
  .sheet {padding:16px}.chat {max-height:58px;bottom:96px}.keys {line-height:1.7}
}
@media(pointer:coarse) and (orientation:portrait) {
  .chat {left:8px;right:auto;width:calc(100% - 16px);bottom:79px;max-height:46px}
  .joy {bottom:136px;width:86px;height:86px}.jump {bottom:145px;width:55px;height:55px}
}
@media(orientation:landscape) and (max-height:520px) {
  .play .wrap {padding:0;gap:0}.stage {height:100dvh;min-height:0;border:0;border-radius:0}
  .play header {top:auto;bottom:auto;right:110px;min-height:0;padding:4px;z-index:6}
  .play header .brand,.back-gate {display:none}.sound {min-height:30px;height:30px;font-size:11px}
  .uf {top:6px;left:6px;min-height:34px}.uf .face {width:26px;height:26px}
  .tools {left:145px;top:6px;max-width:calc(100% - 360px)}.tools>button {min-height:29px;height:29px;padding:3px 5px;font-size:10px}.tools b {font-size:10px}.tools>*::before {content:none}
  .mini {width:56px;height:56px}.tr {max-width:150px;right:6px;top:6px}.quest,.quest-now {padding:2px 6px}.quest summary,.quest-now {font-size:10px}
  .chat {bottom:7px;left:112px;width:calc(100% - 430px);max-height:35px;padding:3px 7px}.bar {padding:0;bottom:7px;background:none}
  .joy {bottom:7px;width:90px;height:90px}.joy i {width:38px;height:38px;margin:-19px}.jump {bottom:8px;width:49px;height:49px}
  .acts button {width:54px;min-width:54px;min-height:40px;font-size:10px}.acts button img {width:23px;height:23px}
  .yj-card::before {display:none}
}
.sheet-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-bottom:8px; border-bottom:1px solid #d8c6a6 }
.sheet-heading h2 { border:0;padding:0 }
.sheet .sheet-close { flex:none; color:#294f43;line-height:1;font:22px/1 var(--sans); border:1px solid #c4b394;border-radius:50%;width:34px;height:34px;padding:0;box-shadow:none;background:#fcf4df }
