/* Study 04: objects own their content. */
:root{--cream:#eee9db;--green:#b1d8b3;--ink:#151b1c}body{background:#151b1c}.masthead{background:#151b1c;height:76px;border-color:#b7cec81a}.room{height:calc(100svh - 141px);background:radial-gradient(ellipse at 65% 20%,#34474688,transparent 63%),linear-gradient(110deg,#1c2629,#1e2a2c 70%,#192021)}.wall-grid{background:repeating-linear-gradient(90deg,transparent 0 95px,#0a1a1b30 96px 98px);opacity:.4}.light-pool{background:radial-gradient(ellipse at 94% 75%,#dc9a6a70,transparent 65%)}.intro{top:15%;left:5%;max-width:28%}.intro h1{font-size:clamp(60px,6vw,98px)}.intro p{font-size:12px;color:#a5b3ae}.intro-note{display:none}.desk{background:linear-gradient(175deg,#655c48,#474638 48%,#2b322c);top:71%;transform:rotate(-4deg)}.desk-mat{background:#152323;transform:rotate(-4deg) skewX(9deg);border-color:#536d6760;top:78%;height:19%}.monitor-wrap{left:38%;top:15%;width:55%;padding:6px 6px 0;border-radius:9px;background:linear-gradient(115deg,#687775,#293536 5%,#131d20 65%,#56605e);border:1px solid #97aba84d;transform:perspective(2000px) rotateY(-5deg) rotateZ(-1deg);box-shadow:2px 3px 0 #0b1417,7px 8px 0 #11191a,-15px 35px 70px #0009;transition:all .85s cubic-bezier(.22,.8,.2,1)}.monitor-top{display:none}.screen{aspect-ratio:1.78;background:#142526;color:#dce6d8;border:3px solid #091315;border-radius:4px;box-shadow:0 0 70px #73b2ac14}.screen-bar{border-color:#a2c7b51a;color:#92b4a6;padding:7px 12px;font-size:6px;background:#122022}.screen-status i{background:#b9d9a1}.mini-brand{color:#c6d6ba}.screen-nav{border-color:#a2c7b51a;gap:20px;padding:0 16px;background:#172a2a}.screen-nav button{color:#9db5a7;font-size:8px}.screen-nav button[aria-current]{color:#e0e9ca;border-color:#bdd59b}#leave{color:#d2dfc4}.screen-footer{background:#122022;border-color:#a2c7b51a;color:#728e85;font-size:5px}.monitor-chin{height:17px}.chin-brand{font:7px Blambl;color:#85938e}.power-led{right:10px;width:2px;height:2px}.stand{width:8%;left:46%;height:92px;transform:skewX(-5deg);background:linear-gradient(90deg,#172225,#53635f 40%,#213234 70%,#121e20)}.stand-foot{top:calc(100% + 76px);height:12px;width:33%;left:33%;border-radius:3px;transform:skewX(-25deg);background:linear-gradient(#576762,#253436);box-shadow:0 3px 0 #111c1e,0 12px 18px #0007}.keyboard{top:84%;left:44%;width:30%;transform:rotate(-4deg) skewX(9deg)}.mouse{top:84%;left:79%;transform:rotate(-5deg)}.speaker{top:60%;left:92%;transform:rotate(-1deg)}.coffee{left:29%;top:85%;transform:scale(.85)}.nickname{top:76%}.room-caption{font-size:7px;bottom:3%}.world-nav{height:65px;background:#151b1c}.lamp-control{bottom:3%}#monitor-hit{position:absolute;inset:0;background:transparent;z-index:9;border-radius:9px;cursor:zoom-in;display:grid;place-items:center}#monitor-hit[hidden]{display:none}#monitor-hit span{position:absolute;bottom:20px;font:9px monospace;letter-spacing:2px;border:1px solid #d6ead750;padding:13px 18px;background:#172523db;color:#dce8cf;backdrop-filter:blur(10px);transform:translateY(5px);transition:transform .3s,background .3s}#monitor-hit b{font-size:17px;margin-left:15px}#monitor-hit:hover{box-shadow:inset 0 0 0 1px #d6ead766}#monitor-hit:hover span{transform:translateY(-4px);background:#32493de8}#monitor-hit:focus-visible{outline:2px solid #c8dfb6;outline-offset:6px}.monitor-wrap:has(#monitor-hit:hover){filter:brightness(1.12)}
.library{display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;background:#17302b}.library-copy{flex:1;position:relative;z-index:2;padding:24px!important;background:linear-gradient(90deg,#102b2df2,#102b2d99 39%,transparent 80%);pointer-events:none}.library-copy>*{pointer-events:auto}.library .landscape{position:absolute;inset:0 0 50px;background:url('night-world.svg') center/cover;min-height:0!important}.landscape>*{display:none}.landscape:before{display:none}.library h2{color:#e6eed4;font-size:clamp(24px,3vw,45px)!important;letter-spacing:-1.3px}.library p{color:#b5cbbd!important}.tiny{color:#91b39e!important}.library .tiny{color:#bad3af!important}.library-copy button{background:#d2dfb9;color:#233f30;box-shadow:0 3px 0 #86a185;border-radius:2px;letter-spacing:.4px;margin-top:10px}.game-list{position:relative;z-index:3;flex:0 0 51px;min-height:51px!important;border-color:#afc4ad24;background:#162a2be8;backdrop-filter:blur(8px)}.game-list button{color:#d0decc;font-size:9px;border-color:#91ac9e26;padding:10px!important}.game-list small{color:#94ac96;font-size:6px}.game-list button:hover{background:#355744}.game-list button:before{content:'+';float:right;color:#8caf90;font:18px monospace}.game-list button:last-child{background:#99bd83;color:#193323}.game-list button:last-child small,.game-list button:last-child:before{color:#365631}.screen-page h2{color:#e0eacb}.screen-page p{color:#b7cdbb}.rows button,.rows a{color:#cfdfc8;border-color:#829e7b38}.rows small{color:#8caa8a}.screen-page,.screen-detail{animation:screen-in .45s both}@keyframes screen-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.screen-detail{height:100%;display:flex;flex-direction:column;padding:18px 25px;background:radial-gradient(ellipse at right top,#48695166,transparent 75%)}.screen-back{background:none;color:#b9d0ae;align-self:flex-start;font:10px monospace;padding:0 0 15px}.detail-body{min-height:0;flex:1;overflow:auto;scrollbar-width:thin;scrollbar-color:#6e8764 transparent}.detail-body h2{font:normal clamp(28px,4vw,56px)/1.05 Georgia;margin:12px 0 20px;color:#e0e9cb;letter-spacing:-1px}.detail-body p{font:13px/1.8 Arial;color:#a9c2ae;max-width:560px}.detail-body .rows{margin-top:20px}.detail-body .rows button,.detail-body .rows a{padding:15px 0;font-size:12px}.detail-body .tiny{font-size:8px}.detail-body .map-grid{margin:15px 0;grid-template-columns:repeat(2,1fr)}.detail-body .map-room{min-height:65px;padding:12px;font-size:12px}.detail-body .map-room:first-child{grid-column:auto}.detail-body .map-room small{font-size:8px}.video-player{width:100%;aspect-ratio:16/9;background:#0b1719;margin-top:10px}.video-player iframe{width:100%;height:100%;border:0}.detail-body:has(.game-field){display:flex;flex-direction:column;overflow:hidden}.detail-body:has(.game-field) h2{font-size:30px;margin:6px 0}.detail-body:has(.game-field)>p{font-size:10px;margin:5px 0}.game-field{flex:1;min-height:100px;height:auto;background-color:#102326;border-color:#6d8a6055;box-shadow:inset 0 0 80px #0003;margin:10px 0}.game-stats{margin-top:10px;color:#d1dfbc;font-size:11px}.start-game{align-self:flex-start;background:#bed49c;font-size:10px;padding:9px 15px}.target{background:#527f56;border-color:#c8e598}.focus .monitor-wrap{width:min(1050px,93vw);box-shadow:0 35px 100px #000a;top:47%}.focus .screen{aspect-ratio:1.78}.focus .library-copy{padding:30px!important}.focus .library h2{font-size:clamp(34px,4.2vw,60px)!important;max-width:440px;margin:15px 0}.focus .library p{font-size:12px}.focus .library .landscape{bottom:67px}.focus .game-list{flex-basis:67px}.focus .game-list button{font-size:11px}.focus .screen-bar{padding:10px 17px;font-size:8px}.focus .screen-nav button{font-size:11px;padding:10px 0}.focus .screen-footer{font-size:6px;padding:9px 17px}.focus .library-copy button{margin-top:14px;font-size:10px}.focus .desk,.focus .desk-mat{filter:brightness(.65)}.focus .stand,.focus .stand-foot{opacity:1}.focus .lamp-control{opacity:.3}.note-back{position:absolute;z-index:8;left:6%;top:60%;width:290px;padding:25px;background:linear-gradient(110deg,#dfd6b7,#eee7cf);box-shadow:0 20px 50px #0007;color:#344b38;transform:rotate(-4deg);animation:note-in .5s both}.note-back[hidden]{display:none}.note-back small{font:8px monospace;letter-spacing:1px}.note-back h2{font:italic 29px Georgia;margin:20px 0}.note-back p{font:12px/1.7 Georgia}.note-back>span{font:italic 14px Georgia;display:block;border-top:1px solid #8f9b7555;padding-top:12px;margin-top:15px}.note-back button{position:absolute;right:10px;top:8px;font-size:22px;background:none;color:#516641}.nickname.turned{opacity:0;pointer-events:none}@keyframes note-in{from{opacity:0;transform:rotate(-12deg) translateY(20px)}to{opacity:1;transform:rotate(-4deg)}}.focus .note-back{display:none}.farm-scene{height:175px;display:flex;align-items:center;gap:12px;margin:20px 0;background:linear-gradient(#213c32,#172c26);border:1px solid #77965b44;padding:20px}.farm-module{flex:1;text-align:center;border:1px solid #91ad6c55;padding:20px 4px;font:10px monospace;background:#304a31;color:#d2e1ad}.farm-pipe{flex:1;height:10px;background:repeating-linear-gradient(90deg,#88ad56 0 4px,#263c2b 4px 18px);opacity:.25}.farm-scene.running .farm-pipe{opacity:1;animation:flow .6s linear infinite}.farm-lever{background:#b6cf95;color:#243d25;padding:12px;font:10px monospace;min-width:110px}.farm-scene.running .farm-module{box-shadow:0 0 30px #b4e57316;border-color:#b6d985}@keyframes flow{to{background-position:18px 0}}
@media(max-width:1000px) and (min-width:651px){.intro{top:10%}.intro h1{font-size:66px}.monitor-wrap{top:30%;left:33%;width:63%}.keyboard{top:84%;left:42%;width:36%}.mouse{left:84%;top:85%}.room:not(.focus) .library-copy{padding:15px!important}.room:not(.focus) .library h2{font-size:28px!important;margin:10px 0}.room:not(.focus) .library p{display:none}.room:not(.focus) .library-copy button{font-size:7px}#monitor-hit span{font-size:7px;padding:8px 13px;bottom:13px}.focus .monitor-wrap{top:46%}.focus .library-copy{padding:22px!important}.focus .library h2{font-size:42px!important}.focus .library-copy button{font-size:9px}}
@media(max-width:650px){.masthead{height:65px}.room{height:850px;min-height:850px}.intro{left:25px;top:35px;max-width:80%}.intro h1{font-size:65px;margin:18px 0}.intro p{font-size:11px}.monitor-wrap{left:5%;top:370px;width:90%;transform:rotate(-1deg);padding:5px 5px 0}.screen{aspect-ratio:1.6}.library-copy{padding:12px!important}.library h2{font-size:25px!important;margin:10px 0!important}.library p{display:none}.library-copy button{font-size:7px!important;padding:7px!important;margin-top:7px}.library .landscape{bottom:45px}.game-list{flex-basis:45px;min-height:45px!important}.game-list button{font-size:7px;min-width:75px;padding:7px!important}.game-list small{font-size:5px}.game-list button:before{display:none}.library{height:100%;min-height:0}.screen-nav{gap:15px;padding:0 10px}.screen-nav button{font-size:7px;padding:8px 0}.screen-bar{font-size:5px;padding:5px 9px}.screen-footer{font-size:4px;padding:6px}.monitor-chin{height:14px}#monitor-hit span{font-size:7px;bottom:17px;padding:7px 12px}.stand{height:70px}.stand-foot{top:calc(100% + 60px)}.desk{top:560px}.keyboard{left:16%;top:715px;width:58%}.mouse{left:81%;top:715px}.desk-mat{left:9%;top:690px;width:85%;height:100px}.nickname{top:280px;right:20px;left:auto;width:125px}.note-back{left:7%;top:270px;width:280px}.focus .monitor-wrap{position:fixed;top:50%;left:50%;width:96vw;transform:translate(-50%,-50%)}.focus .screen{height:min(660px,82svh);aspect-ratio:auto}.focus .library{height:100%;min-height:0}.focus .library .landscape{inset:0 0 65px;background-position:66% center}.focus .library-copy{padding:25px!important;background:linear-gradient(#132b2dd9,transparent)}.focus .library h2{font-size:42px!important;max-width:290px}.focus .library p{display:block;font-size:11px}.focus .library-copy button{margin-top:15px;padding:11px!important;font-size:9px!important}.focus .game-list{flex-basis:65px;min-height:65px!important}.focus .game-list button{font-size:9px;min-width:90px}.focus .screen-nav{gap:20px;padding:0 12px}.focus .screen-nav button{font-size:10px}.focus .screen-footer{font-size:4px;padding:8px;letter-spacing:.5px}.focus .stand,.focus .stand-foot{opacity:0}.screen-detail{padding:15px}.detail-body p{font-size:12px;line-height:1.7}.detail-body h2{font-size:36px}.farm-scene{gap:5px;padding:10px;flex-wrap:wrap;height:180px}.farm-lever{width:100%}.farm-module{padding:15px 4px}.game-field{min-height:130px}.detail-body:has(.game-field)>p{font-size:9px}.world-nav{padding:0 20px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.chapter-tabs{display:flex;gap:5px}.chapter-tabs button{flex:1;background:#253e32;border-bottom:2px solid transparent;color:#b4cba9;font:9px monospace;padding:10px 4px}.chapter-tabs button[aria-pressed=true]{border-color:#bfd69f;background:#36523b}.detail-body #chapter-text{font-size:12px}.room:not(.focus) #monitor-hit span{bottom:-40px;background:transparent;border:0;color:#acc3b4;font-size:7px;backdrop-filter:none}.room:not(.focus) #monitor-hit:hover span{background:transparent}.room:not(.focus) .library-copy button{visibility:hidden}
