:root{color-scheme:dark;--ink:#f8f7ff;--muted:#c7cce8;--surface:#1a2345;--edge:#4c5b86;--gold:#f4ce83;--accent:#b78af5}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#3d326d 0,#121831 55%,#0b1024 100%);font:16px/1.55 system-ui,-apple-system,"Noto Sans Thai","Noto Sans JP",sans-serif;color:var(--ink);min-height:100vh}.wrap{max-width:1000px;margin:auto;padding:18px 16px 60px}.mast{display:flex;align-items:center;gap:14px}.mast img{object-fit:contain;width:68px;height:68px}.mast small{color:#d4b6ff;letter-spacing:.11em;font-weight:800;font-size:.75rem}h1{font-size:clamp(1.8rem,4.5vw,3.2rem);line-height:1.2;margin:1px 0}h2{font-size:1.35rem;line-height:1.3;margin:7px 0 15px}h3{font-size:1.06rem;margin:18px 0 12px}.subtitle{color:var(--muted);max-width:740px;margin:12px 0 20px}.panel{border:1px solid var(--edge);background:#17203eea;border-radius:22px;padding:clamp(16px,3vw,28px);margin:16px 0;box-shadow:0 15px 55px #02071a55}.selectors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.selectors label{font-weight:700;color:var(--muted)}select{display:block;width:100%;background:#101936;color:var(--ink);border:1px solid #7683b4;border-radius:12px;padding:12px 10px;font:inherit;margin-top:8px}.note{font-size:.91rem;color:var(--muted)}.worldgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.world{display:grid;grid-template-columns:80px 1fr;gap:10px;align-items:center;text-align:left;padding:12px;border:1px solid #6979a3;border-radius:16px;background:#28365d;color:white;min-height:118px}.world .pic{font-size:3.4rem;text-shadow:0 5px 10px #10142e}.world strong{font-size:1.07rem;display:block}.world small{font-size:.83rem;color:#cbd3ed;display:block}.world .best{font-size:.77rem;color:var(--gold);font-weight:700}.world:disabled{opacity:.45;cursor:not-allowed}.world:hover:not(:disabled){background:#44527a}.pill{font-size:.84rem;font-weight:700;border:1px solid #7080ab;border-radius:999px;padding:6px 11px;background:#2b3862;white-space:nowrap}.scenebar,.stats{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.scene{padding:12px;overflow:hidden}.scenebar{padding:6px 5px 10px}.art{position:relative;height:clamp(175px,29vw,290px);border-radius:18px;overflow:hidden;background:linear-gradient(180deg,#2f4f8a 0%,#5f8db5 48%,#caa57a 49%,#b67f69 100%);border:1px solid #879ac0;isolation:isolate}.art::before,.art::after{content:"";position:absolute;pointer-events:none}.art::before{width:140px;height:140px;background:#f6d9aa60;border-radius:50%;top:13%;right:9%;filter:blur(4px)}.art::after{inset:auto 0 0;height:25%;background:linear-gradient(90deg,#6b498f,#aa6a70,#826284);opacity:.6}.art .skyline{position:absolute;inset:26% 0 22%;display:flex;gap:9px;align-items:end;justify-content:space-around}.building{background:linear-gradient(145deg,#efba9b,#755c94);width:16%;height:75%;border-radius:10px 10px 0 0;border:4px solid #5c527f;box-shadow:inset 0 0 0 6px #ffffff14}.building:nth-child(2){height:100%;background:linear-gradient(145deg,#dd9bac,#816fae)}.building:nth-child(3){height:67%;background:linear-gradient(145deg,#c6d4b2,#54786c)}.building:nth-child(4){height:89%}.building::after{content:"▦ ▦";display:block;text-align:center;color:#fde2ac;font-size:1.7rem;line-height:2}.art .feature{position:absolute;z-index:2;font-size:clamp(5.5rem,15vw,10rem);left:49%;top:54%;transform:translate(-50%,-50%);filter:drop-shadow(0 12px 8px #2426408f)}.art .detail{position:absolute;z-index:3;font-size:clamp(2rem,5vw,3rem);right:11%;bottom:8%;filter:drop-shadow(0 5px 4px #272338)}.art[data-place="cafe"]{background:linear-gradient(180deg,#504078 0,#a67991 48%,#bd856d 49%,#845e69 100%)}.art[data-place="station"]{background:linear-gradient(180deg,#273f7d 0,#718eae 52%,#bdab95 53%,#6e799c 100%)}.art[data-place="market"]{background:linear-gradient(180deg,#2a7e86 0,#8bc2aa 49%,#d2b57a 50%,#97694f 100%)}.art[data-place="hotel"]{background:linear-gradient(180deg,#3f3576 0,#b99ab9 48%,#d6b88e 49%,#936c81 100%)}.art[data-place="park"]{background:linear-gradient(180deg,#4a8baa 0,#acd9d1 49%,#a4b873 50%,#537e68 100%)}.scenefoot{display:flex;gap:12px;align-items:center;padding:12px 9px 4px}.avatar{border-radius:50%;background:#354d74;border:2px solid #c3b1ed;width:52px;height:52px;display:grid;place-items:center;font-size:2rem}.conversation{margin-top:11px}.bubble{font-size:clamp(1.08rem,2.5vw,1.35rem);background:#29395f;border:1px solid #6d82ac;border-radius:17px 17px 17px 3px;padding:17px 19px;line-height:1.7;overflow-wrap:anywhere}.translation{margin:9px 2px 14px;color:#e1e0ff;background:#2c3159;padding:10px 13px;border-left:3px solid var(--accent);border-radius:8px}.context{color:var(--muted);margin:12px 0;line-height:1.7}.choices{display:grid;gap:11px}.choice{text-align:left;display:block;width:100%;background:#2a3c65;border:1px solid #7287b7;padding:13px 15px;color:white;border-radius:13px;font:inherit}.choice strong{display:block;font-size:1.02rem}.choice span{display:block;color:#d3dbee;font-size:.86rem;margin-top:4px}.choice:hover:not(:disabled){background:#435588}.choice:disabled{opacity:.7;cursor:default}.choice.selected{border-color:#efd49a;background:#485171}.reaction{border:1px solid #5a9c8b;background:#234b45;border-radius:14px;padding:16px;margin-top:17px;line-height:1.65}.reaction.bad{background:#503047;border-color:#bc7189}.reaction strong{display:block;margin-bottom:7px}.reaction .actor{font-size:1.05rem;color:#fff4d7}.actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:17px}button{font:inherit;cursor:pointer;color:var(--ink);border-radius:12px;padding:12px 18px;transition:background .15s}button:disabled{opacity:.5;cursor:default}.primary{border:1px solid #d6b6fb;background:#825cc5;font-weight:750}.primary:hover:not(:disabled){background:#9a74df}.secondary{border:1px solid #7183b2;background:#303e67}.secondary:hover:not(:disabled){background:#455586}#writeArea textarea{margin:12px 0;width:100%;min-height:96px;font:inherit;line-height:1.7;color:var(--ink);background:#101934;border:1px solid #8193bc;border-radius:12px;padding:14px;resize:vertical}button:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ffdc97;outline-offset:3px}.resulticon{font-size:4rem;text-align:center}.review p{border-top:1px solid #45577d;padding:12px 2px}.hidden{display:none!important}footer{font-size:.85rem;color:#acb8d8;text-align:center;margin-top:30px}@media(max-width:600px){.selectors,.worldgrid{grid-template-columns:1fr}.wrap{padding:12px}.panel{padding:15px}.art{height:200px}.world{min-height:94px}.mast img{width:55px;height:55px}.world .pic{font-size:2.8rem}.actions button{flex:1}.scene{padding:8px}}
/* World selection and difficulty progression */
.worldcard{background:linear-gradient(150deg,#28375e,#1d294d);border:1px solid #6274a5;border-radius:17px;padding:14px;min-width:0}
.worldhead{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.worldhead .worldpic{display:grid;place-items:center;font-size:3.2rem;width:72px;height:72px;flex-shrink:0;background:radial-gradient(circle at 42% 34%,#65578c,#26365c);border:1px solid #7c79b5;border-radius:16px;filter:drop-shadow(0 4px 7px #111727)}
.worldhead strong{font-size:1.08rem;display:block}
.worldhead small{display:block;color:#c4d1ec}
.worldmodes{display:grid;gap:7px}
.stagebtn{width:100%;text-align:left;color:#f6f4ff;border:1px solid #6276a4;background:#31446c;font:inherit;border-radius:10px;padding:9px 11px;font-size:.89rem}
.stagebtn:hover:not(:disabled){background:#4b5f8d}.stagebtn:disabled{opacity:.52}
@media(max-width:600px){.worldhead .worldpic{width:60px;height:60px;font-size:2.8rem}}
