:root{color-scheme:dark;--bg:#0b1312;--panel:#131e1b;--panel2:#18261f;--raise:#1c2c24;--line:#2a3a32;--muted:#97a79d;--ink:#eef1e2;--green:#d6ee9c;--sage:#b9cfa4;--amber:#e8c774;--rose:#e2a47d;--sky:#9fbbe0;--violet:#c39bd3;
  --radius:14px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink)}
button{font:inherit;color:inherit;cursor:pointer}
[hidden]{display:none!important}
h2{margin:0;font-size:17px;font-weight:600;letter-spacing:-.2px}
h3{margin:18px 0 10px;font-size:11px;letter-spacing:1.4px;color:var(--muted);font-weight:600;text-transform:uppercase}
h3:first-child{margin-top:2px}
a{color:var(--green)}

/* ---------- top bar (all pages) */
.topbar{height:60px;display:flex;align-items:center;gap:14px;padding:0 18px;border-bottom:1px solid var(--line);background:#0d1715;position:relative;z-index:5}
.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:inherit}
.mark{height:34px;width:34px;border:1px solid #698265;border-radius:11px;display:grid;place-items:center;font-size:21px;color:var(--green)}
.wordmark{font-size:21px;letter-spacing:-1px;font-weight:650}.wordmark span{color:#c7e5a0}
.nav{display:flex;gap:2px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.nav a{color:#c9d6bd;text-decoration:none;font-size:13px;padding:8px 12px;border-radius:10px;white-space:nowrap;display:flex;gap:6px;align-items:center}
.nav a:hover{background:#18251f}
.nav a.active{background:#22331f;color:var(--ink);box-shadow:inset 0 0 0 1px #4e6a3e}
.top-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.pill{font-size:12px;border:1px solid #3a4b3c;border-radius:20px;padding:6px 11px;background:#152119;color:#dfe8d2;white-space:nowrap;display:inline-flex;gap:6px;align-items:center}
.pill.event{border-color:#8a6d2a;background:#2a2412;color:#f6e3ae;cursor:pointer}
.pill.event b{color:var(--amber)}
.mind-chip{font-size:11px;color:#e9f1cf;background:#24361f;border:1px solid #4e6a3e;border-radius:20px;padding:6px 11px;display:inline-flex;align-items:center;gap:8px}
.pulse{width:7px;height:7px;border-radius:50%;background:var(--amber);animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{opacity:.25;transform:scale(.7)}}

.btn{border:1px solid #3b4c3c;background:#1c2a22;padding:8px 14px;border-radius:9px;font-size:12px;font-weight:600;display:inline-flex;gap:6px;align-items:center;justify-content:center}
.btn:hover{background:#2a3b2c}
.btn.primary{color:#1b2715;background:var(--green);border-color:var(--green)}
.btn.small{padding:6px 10px;font-size:11px}
.btn:disabled{opacity:.35;cursor:default}
.glass{background:#0f241bcc;backdrop-filter:blur(8px);border-color:#8aa88544}
.glass.on{background:#3a5a2a;border-color:var(--green)}

/* ---------- world page: full-bleed scene + drawer */
.world{display:grid;grid-template-columns:minmax(0,1fr) 420px;height:calc(100vh - 60px)}
.world.collapsed{grid-template-columns:minmax(0,1fr) 0}
.scene{position:relative;overflow:hidden;background:#33484c;min-height:0}
canvas#canvas{display:block;width:100%;height:100%;touch-action:none;outline:none;cursor:grab}
canvas#canvas:active{cursor:grabbing}
.overlay{position:absolute;pointer-events:none}
.overlay>*{pointer-events:auto}
.ov-top{top:14px;left:16px;right:16px;display:flex;justify-content:space-between;align-items:start;gap:10px}
.location{font-size:11px;letter-spacing:1.8px;text-shadow:0 1px 6px #000;pointer-events:none}
.location small{display:block;letter-spacing:0;font-size:12px;margin-top:5px;color:#e0e7d8}
.room-label{position:absolute;top:56px;left:50%;transform:translateX(-50%);background:#0f1c16dd;border:1px solid #5d7a4d;padding:7px 14px;border-radius:20px;font-size:12px;letter-spacing:.5px;pointer-events:none}
.ov-bottom{bottom:14px;left:14px;right:14px;display:flex;justify-content:space-between;align-items:end;gap:10px;flex-wrap:wrap}
.cam{display:flex;flex-wrap:wrap;gap:6px}
.hint{font-size:10px;color:#f0f4e7;text-shadow:0 1px 4px #000;text-align:right;pointer-events:none}
.label{position:absolute;left:0;top:0;pointer-events:none;white-space:nowrap;transform:translate(-50%,-100%);text-shadow:0 1px 4px #000;font-size:10px;background:#1d3026bd;padding:4px 8px;border:1px solid #aec29750;border-radius:20px}
.label.pip{font-size:12px;background:#e5efb9;color:#263e22;border:0;text-shadow:none;font-weight:700}
.label.you{background:#4d73c7;color:#fff;border:0;font-weight:700;font-size:12px}
.label.villager{background:#3a2f22d0;border-color:#e8c77466;color:#f5e8c8;font-size:11px}
.scene.far .place-label,.scene.far .villager{visibility:hidden}
.bubble{position:absolute;left:0;top:0;pointer-events:none;transform:translate(-50%,calc(-100% - 30px));max-width:260px;width:max-content;font-size:12px;line-height:1.4;padding:9px 12px;border-radius:14px;background:#f6f8eaee;color:#22301f;box-shadow:0 6px 18px #0006}
.bubble.thought{font-style:italic;border-radius:18px}
.bubble.thought::after{content:"";position:absolute;left:50%;bottom:-13px;width:9px;height:9px;border-radius:50%;background:#f6f8eaee;transform:translateX(-50%)}
.bubble.speech{background:#fff4dcee}
.bubble.speech::after{content:"";position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);border:8px solid transparent;border-top-color:#fff4dcee;border-bottom:0}
.webgl-error{position:absolute;inset:auto 20px 80px;padding:14px;background:#432c26;border-radius:10px}

.drawer{border-left:1px solid var(--line);background:var(--panel);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.dtabs{display:flex;border-bottom:1px solid var(--line);padding:0 8px;gap:2px;flex:none}
.dtab{background:none;border:0;border-bottom:2px solid transparent;padding:13px 10px 11px;font-size:13px;color:var(--muted);display:flex;gap:6px;align-items:center;position:relative}
.dtab.active{color:var(--ink);border-bottom-color:var(--green)}
.dtab .dot{width:7px;height:7px;border-radius:50%;background:var(--amber);position:absolute;top:9px;right:3px}
.dpanel{flex:1;overflow-y:auto;padding:16px}
.drawer-toggle{position:absolute;right:12px;top:12px}

.card{background:var(--panel2);border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin-bottom:12px}
.eyebrow{font-size:10px;letter-spacing:1.6px;color:var(--muted);text-transform:uppercase}
.body-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.avatar{background:#324b37;color:#e3e5b7;border-radius:14px;width:44px;height:44px;display:grid;place-items:center;font-size:26px;flex:none}
.body-head strong{font-size:17px;font-weight:600}
.body-head small{display:block;color:var(--muted);font-size:11px;line-height:1.4;margin-top:2px}
.thought-quote{margin:0 0 12px;padding:10px 12px;border-left:2px solid var(--green);background:#1b2b22;border-radius:0 10px 10px 0;font-size:13px;line-height:1.5;font-style:italic;color:#e6edd2}
.metric{display:flex;justify-content:space-between;font-size:12px;margin:9px 0 5px}
.metric em{font-style:normal;color:#8fa38c}
.bar{height:5px;background:#26342b;border-radius:5px;overflow:hidden}
.bar i{display:block;height:100%;width:0;background:#c3dc99;transition:width .4s}
.bar i.blue{background:var(--sky)}
.goal{font-size:14px;line-height:1.5;margin:6px 0 10px}
.action{font-size:14px;margin:6px 0 8px}
.caption{font-size:11px;color:var(--muted);line-height:1.5;margin-top:6px}
.error{color:#ffbea3;font-size:12px;margin-top:8px;line-height:1.5}
.error:empty{display:none}
.chip{font-size:11px;border:1px solid #40513c;border-radius:20px;padding:4px 10px;color:#d6e2c8;background:#1a2a20;display:inline-flex;gap:4px;align-items:center}
.chip b{color:var(--green);font-weight:650}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.mood{margin:6px 0 10px;font-size:13px;color:#dfe8cf;font-style:italic}
.plan-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.plan-list li{font-size:12px;padding:7px 11px;border-radius:10px;border:1px solid #3a4b3c;background:#16241c}
.plan-list li.done{background:#253a20;border-color:#6d8d4b;color:#e2efc5}
.plan-list li.done::before{content:"✓ ";color:var(--green)}
.plan-list li small{color:var(--muted);margin-left:6px}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* mind panel (mind.js) */
.mind-stats{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin:4px 0 14px;overflow-x:auto}
.tab{background:none;border:0;border-bottom:2px solid transparent;padding:8px 10px;font-size:12px;color:var(--muted);white-space:nowrap}
.tab.active{color:var(--ink);border-bottom-color:var(--green)}
.two-col{display:grid;grid-template-columns:1fr;gap:14px}
.thought-list,.memory-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.thought-list li{font-size:13px;line-height:1.5;font-style:italic;color:#e1e9cf;padding:8px 12px;background:#1a2a20;border-radius:10px}
.thought-list li small,.memory-list li small{display:block;font-style:normal;color:var(--muted);font-size:10px;margin-top:3px}
.memory-list li{font-size:13px;line-height:1.5;padding:8px 12px;border-left:3px solid #40513c;background:#17251e;border-radius:0 10px 10px 0}
.memory-list li[data-kind=reflection]{border-left-color:var(--amber)}
.memory-list li[data-kind=diary]{border-left-color:var(--violet)}
.memory-list li[data-kind=social]{border-left-color:var(--rose)}
.memory-list li[data-kind=user_fact],.memory-list li[data-kind=conversation]{border-left-color:var(--sky)}
.memory-list li[data-kind=plan]{border-left-color:var(--green)}
.kind{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-right:6px}
.imp{letter-spacing:1px;color:var(--amber);font-size:9px}
.diary-list{display:flex;flex-direction:column;gap:12px}
.diary-entry{background:#1a2a20;border-radius:12px;padding:14px 16px;border:1px solid #2f4234}
.diary-entry h4{margin:0 0 8px;font-weight:500;font-size:14px;color:var(--green)}
.diary-entry p{margin:0 0 10px;font-size:13px;line-height:1.7;white-space:pre-wrap}
.diary-entry .lesson{font-size:12px;color:var(--amber)}
.diary-entry .dream{font-size:12px;color:#c9b3d6;font-style:italic}
.trait{margin:10px 0}
.trait .ends{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:4px}
.trait .name{font-size:12px;display:flex;justify-content:space-between}
.trait .track{position:relative;height:6px;background:#26342b;border-radius:6px;margin-top:6px}
.trait .track i{position:absolute;top:-3px;width:12px;height:12px;border-radius:50%;background:var(--green);transform:translateX(-50%)}
.self-desc{font-size:14px;line-height:1.6;font-style:italic;margin:0}
.belief-list,.plain-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.belief-list li,.plain-list li{font-size:13px;line-height:1.5;background:#1a2a20;padding:8px 12px;border-radius:10px}
.belief-list .conf{height:3px;background:#26342b;border-radius:3px;margin-top:6px;overflow:hidden}
.belief-list .conf i{display:block;height:100%;background:var(--amber)}
.empty{font-size:12px;color:var(--muted);font-style:italic}
.skills{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px}
.skills div{font-size:11px;background:#1a2a20;border-radius:8px;padding:6px 9px;color:#cfdac0}
.skills b{display:block;font-weight:500;color:var(--ink);font-size:12px}
.friends{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.friend{background:#1a2a20;border:1px solid #2f4234;border-radius:12px;padding:12px}
.friend strong{font-size:14px;font-weight:600}
.friend .role{font-size:11px;color:var(--muted)}
.friend .where{font-size:12px;margin:6px 0;color:#d5e0c6}
.friend .words{font-size:12px;font-style:italic;color:#f0e2bf;margin-top:6px;line-height:1.5}
.social-log{display:flex;flex-direction:column;gap:10px}
.convo{background:#17251e;border-radius:10px;padding:10px 14px;font-size:13px;line-height:1.6}
.convo .who{font-size:11px;color:var(--muted);margin-bottom:4px}
.convo b{color:var(--amber);font-weight:600}
.convo b.pip{color:var(--green)}
.search-row{display:flex;gap:8px;margin-bottom:14px}
input[type=search],input[type=text],.input{flex:1;border:1px solid #40523c;border-radius:9px;background:#0f1c16;color:var(--ink);padding:9px 11px;font:inherit;font-size:13px}

/* chat (chat.js) */
.chat-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}
.chat-help{font-size:12px;color:var(--muted);line-height:1.6;margin:6px 0 12px}
.chat-status{font-size:11px;color:var(--muted)}
.messages{display:flex;flex-direction:column;gap:10px;overflow-y:auto;padding:4px 2px 12px;min-height:65px;max-height:none}
.message{max-width:88%;padding:10px 13px;border-radius:12px;background:#23382a;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:13px}
.message.user{align-self:flex-end;background:#35452e}
.message.initiative{border:1px solid #7b9a55;background:#26381f}
.message.pending span::after{content:"▍";animation:pulse 1s infinite;margin-left:2px;color:var(--green)}
.message.error,.message.interrupted{color:#ffc2a9;background:#432c26}
.message b{display:block;margin-bottom:4px;color:#d3e4b9;font-size:10px;letter-spacing:.6px}
.message img{display:block;max-width:180px;max-height:130px;margin-top:8px;border-radius:8px}
.chat-form{display:flex;gap:8px;margin-top:10px;align-items:end}
.chat-form textarea{resize:vertical;min-height:52px;max-height:160px;width:100%;border:1px solid #40523c;border-radius:9px;background:#0f1c16;color:var(--ink);padding:10px;font:inherit;font-size:13px}
.chat-form textarea:focus,input:focus{outline:2px solid #bad78e;outline-offset:1px}
.attachments{margin-top:12px;border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.attachments summary{cursor:pointer;font-size:12px;color:#cfdac0}
.attach-block{margin:12px 0}
.attach-block input[type=file]{max-width:220px;margin:8px 0;font-size:12px}
.chat-panel{display:flex;flex-direction:column;height:100%}
.chat-panel .messages{flex:1}

/* art */
.art-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.art-card{background:#18261f;border:1px solid var(--line);border-radius:12px;overflow:hidden;cursor:pointer;transition:transform .15s}
.art-card:hover{transform:translateY(-2px);border-color:#5d7a4d}
.art-card canvas{display:block;width:100%;aspect-ratio:4/3;background:#222}
.art-card .meta{padding:8px 10px}
.art-card .meta b{display:block;font-size:13px;font-weight:600}
.art-card .meta small{font-size:11px;color:var(--muted)}
.modal{position:fixed;inset:0;background:#05090899;backdrop-filter:blur(4px);display:grid;place-items:center;z-index:50;padding:20px}
.modal .sheet{background:var(--panel);border:1px solid var(--line);border-radius:16px;max-width:min(900px,96vw);max-height:92vh;overflow:auto;padding:18px}
.modal canvas{width:100%;border-radius:8px;display:block}
.frame{padding:14px;background:linear-gradient(135deg,#8a6a32,#5a431c);border-radius:6px;box-shadow:inset 0 0 0 3px #b8954a}

/* toasts */
.toasts{position:fixed;left:16px;bottom:16px;display:flex;flex-direction:column;gap:8px;z-index:40;max-width:min(380px,90vw)}
.toast{background:#f6f8eaee;color:#22301f;border-radius:12px;padding:10px 14px;font-size:13px;box-shadow:0 10px 30px #0007;animation:rise .3s ease;cursor:pointer}
.toast b{display:block;font-size:11px;letter-spacing:.6px;color:#5b6b3a}
@keyframes rise{from{transform:translateY(10px);opacity:0}}

/* settings */
.keys{display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:center;font-size:13px}
kbd,.key{font:600 11px ui-monospace,monospace;border:1px solid #4c5f4b;border-bottom-width:2px;border-radius:6px;padding:3px 8px;background:#1d2b23;min-width:34px;text-align:center;display:inline-block}
.key.listening{background:var(--amber);color:#222}
.setting{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;margin:10px 0}
.setting input[type=range]{width:160px}

@media(max-width:1000px){.world{grid-template-columns:1fr;grid-template-rows:62vh auto;height:auto}.drawer{border-left:0;border-top:1px solid var(--line);min-height:70vh}.topbar{flex-wrap:wrap;height:auto;padding:10px 14px}.top-right{flex-wrap:wrap}.nav{order:3;width:100%}}
@media(max-width:600px){.hint{display:none}.pill.time{display:none}}

/* ---------------------------------------------------------------- v8 */
.sound-btn{min-width:38px;padding:7px 9px}
.sound-btn.on{border-color:var(--green);color:var(--green)}
.sound-vol{width:70px;accent-color:var(--green)}
@media(max-width:900px){.sound-vol{display:none}}
.goal.clickable{cursor:pointer;text-decoration:underline dotted #6d8d4b;text-underline-offset:3px}
.why-btn{padding:3px 9px}
.modal .sheet.why{max-width:min(560px,96vw);width:100%}
.why-head{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.why-head h2{margin:4px 0 8px;font-size:18px;flex:1 1 100%;order:2}
.why-head .btn{order:1;margin-left:auto}
.why-head .eyebrow{order:0}
.why-row{display:grid;grid-template-columns:96px 1fr;gap:10px;font-size:13px;line-height:1.5;padding:7px 0;border-bottom:1px solid var(--line)}
.why .k,.why-sub{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}
.why-sub{margin:16px 0 6px}
.why .recall{font-size:12px;padding:7px 10px;background:#17251e;border-radius:8px;margin:6px 0;line-height:1.45}
.why .recall b{font-size:10px;letter-spacing:1px;text-transform:uppercase;margin-right:6px;color:var(--amber)}
.why .opt{font-size:12px;margin:7px 0}
.why .opt .row{display:flex;justify-content:space-between;gap:8px}
.why .opt .bar{margin-top:4px}
.why .opt.chosen{color:var(--green);font-weight:600}
.why .opt.chosen .bar i{background:var(--green)}
.modal .sheet.letter{max-width:min(520px,94vw);background:#f4efdf;color:#33302a;border-color:#d8cfb4;padding:26px 28px;box-shadow:0 20px 60px #000a}
.letter .eyebrow{color:#8a7a52}
.letter-body{white-space:pre-wrap;font-family:Georgia,'Times New Roman',serif;font-size:16px;line-height:1.7;margin:14px 0 20px}
.letter-item .letter-body{font-size:14px;margin:0}
.projects{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.project{background:#16241c;border:1px solid #3a4b3c;border-radius:10px;padding:10px 12px}
.project .row{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin-bottom:6px;font-size:13px}
.project.done{border-color:#6d8d4b;background:#1f3220}
.project.set-aside{opacity:.6}
.project .steps{list-style:none;margin:8px 0 0;padding:0;font-size:12px;display:flex;flex-direction:column;gap:3px}
.project .steps li.done{color:#cfe3b0}
.project .steps li.done::before{content:"✓ ";color:var(--green)}
.project .steps li small{color:var(--muted)}
.dream-line{font-style:italic;font-size:13px;line-height:1.55;margin:8px 0 0;color:#d9cff2}
.prices{display:flex;flex-direction:column;gap:5px;margin-top:8px}
.price{display:grid;grid-template-columns:1fr auto auto;gap:10px;font-size:12px;padding:6px 10px;border-radius:9px;background:#16241c;border:1px solid #2f4234;align-items:center}
.price .stall{color:var(--muted)}
.price .idx{font-size:11px;min-width:84px;text-align:right}
.price.cheap{border-color:#6d8d4b}.price.cheap .idx{color:var(--green)}
.price.dear{border-color:#8a5a3a}.price.dear .idx{color:#e2a47d}
.news-list{display:flex;flex-direction:column;gap:6px}
.news{font-size:12px;line-height:1.5;padding:6px 10px;border-left:2px solid var(--amber);background:#17251e;border-radius:0 8px 8px 0}
.news small{color:var(--muted)}
.books{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.book{background:#16241c;border:1px solid #3a4b3c;border-radius:10px;padding:10px 12px;font-size:13px}
.book .row{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}
.book .opinion{font-style:italic;line-height:1.5;margin:8px 0}
.book .note{font-size:12px;line-height:1.5;margin-top:6px;color:#d6e2c8}
.book .note i{color:var(--muted)}
.words.mind{color:#d9cff2}
.history{display:flex;flex-direction:column;gap:3px}
.hist{display:grid;grid-template-columns:44px 1fr 16px;gap:8px;font-size:12px;padding:6px 8px;border-radius:7px;cursor:pointer;background:#16241c}
.hist:hover{background:#22352a}
.hist .when{color:var(--muted)}
.hist.failed .res{color:#e2a47d}
.hist .res{color:var(--green);text-align:right}

/* v12: the valley's computers (Piple on a monitor over the game) */
.pc-overlay{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:radial-gradient(ellipse at center,#0b1410cc 0%,#050908ee 75%);backdrop-filter:blur(3px);opacity:0;transition:opacity .18s;padding:12px}
.pc-overlay.on{opacity:1}
.pc-monitor{width:min(1120px,96vw);display:flex;flex-direction:column;border-radius:20px;padding:12px 14px 0;
  background:linear-gradient(180deg,#3a3d40 0%,#232527 55%,#1b1d1f 100%);box-shadow:0 30px 80px #000c,inset 0 1px 0 #ffffff22,inset 0 -2px 0 #0008;
  transform:translateY(8px) scale(.985);transition:transform .18s}
.pc-overlay.on .pc-monitor{transform:none}
.pc-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:0 6px 8px;color:#c9cfc6;font-size:12px;letter-spacing:.04em}
.pc-title{font-weight:700;text-transform:uppercase}
.pc-sub{opacity:.7}
.pc-screen{position:relative;height:min(720px,calc(100vh - 170px));border-radius:8px;overflow:hidden;background:#fbf7ee;
  box-shadow:inset 0 0 0 2px #0d0e0f,inset 0 0 18px #000a}
.pc-screen iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#fbf7ee}
.pc-glare{position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,#ffffff14 0%,#ffffff05 30%,transparent 45%);
  box-shadow:inset 0 0 40px #00000026}
.pc-chin{display:flex;align-items:center;gap:12px;padding:9px 6px 11px;color:#9aa298;font-size:11px}
.pc-brand{font-weight:700;letter-spacing:.18em;color:#b8bfb5;text-transform:lowercase}
.pc-hint{flex:1;text-align:center;opacity:.75}
.pc-led{width:9px;height:9px;border-radius:50%;background:#62ff7a;box-shadow:0 0 8px #62ff7a,0 0 2px #fff inset}
.pc-off{border:1px solid #ffffff2a;background:#2c2f31;color:#e6ebe3;border-radius:999px;padding:5px 12px;font-size:12px;cursor:pointer}
.pc-off:hover{background:#3a3e40}
.pc-stand{width:180px;height:26px;margin-top:-1px;background:linear-gradient(180deg,#1b1d1f,#2c2f31);clip-path:polygon(28% 0,72% 0,100% 100%,0 100%);
  border-radius:0 0 6px 6px;box-shadow:0 10px 30px #0008}
@media(max-width:700px){.pc-hint{display:none}.pc-monitor{padding:8px 8px 0;border-radius:14px}.pc-screen{height:calc(100vh - 130px)}.pc-stand{display:none}}

/* the Computers tab on the World page */
.pc-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.pc-card{border:1px solid var(--line);border-radius:12px;padding:10px;background:#ffffff06;display:flex;flex-direction:column;gap:6px;text-align:left;cursor:pointer;color:inherit;font:inherit}
.pc-card:hover{border-color:var(--amber)}
.pc-card .ico{font-size:22px}
.pc-card small{opacity:.7;font-size:11px}
.pc-visit{border-left:3px solid var(--amber);padding:6px 10px;margin:8px 0;background:#ffffff06;border-radius:0 8px 8px 0}
.pc-visit .why{font-style:italic;opacity:.85}
.pc-visit .found{font-weight:600}
.pc-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.pc-status i{width:8px;height:8px;border-radius:50%;background:#e2584f;display:inline-block}
.pc-status.ok i{background:#62d17a}
