/* Keep primary controls in predictable locations while panels scroll independently. */
#gameShell header{height:62px;padding:8px 22px;background:#fff4f9}#gameShell .brand{font-size:20px}#gameShell .brand small{display:none}#gameShell .topstats{gap:20px;font-size:16px}#gameShell main{max-width:1600px;margin:auto;padding:10px 20px}#gameShell .hero{margin:0 0 8px;padding:0;min-height:0;display:flex;justify-content:space-between;align-items:center}#gameShell .hero>div:first-child{display:none}#gameShell .daycard{width:100%;max-width:none;display:flex;justify-content:flex-end;align-items:center;gap:16px}#gameShell .daycard strong{font-size:20px}#gameShell .daycard button{padding:8px 16px}#gameShell .character-strip{display:none}.feature-buttons{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;padding:8px;background:#f2e8f7;border:1px solid #e3cce9;border-radius:13px;margin:0 0 10px}.feature-buttons button{font-size:12px;padding:10px 3px;min-width:0;background:#fffaf1;border:1px solid #e4cbdc;white-space:normal}.feature-buttons button:hover{background:#ffe2ed;border-color:#bd83b3}.feature-buttons #openMap{background:#fff0bd;border-color:#e2c877}.feature-buttons #saveMenu{background:#eae1fa}.journal{margin:6px 0;padding:8px 12px;background:#fff5e8;border-radius:10px}.journal summary{cursor:pointer;font-size:12px;color:#85617e}.journal #log{max-height:120px;overflow:auto}.scenehead{padding:6px 8px}.metrics>div{padding:7px 10px}.metrics strong{font-size:17px}#gameShell footer{font-size:10px;padding:5px 0;margin:0}#gameShell footer>span:nth-child(2){display:none}
@media(min-width:1000px) and (min-height:640px){#gameShell{height:100dvh;display:flex;flex-direction:column}#gameShell main{flex:1;min-height:0;width:100%;display:flex;flex-direction:column}#gameShell .layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px}#gameShell .left{min-height:0;overflow:auto;display:flex;flex-direction:column;align-items:center}#gameShell .left>.scenehead,#gameShell .metrics,#gameShell .journal{width:100%}#gameShell .canvaswrap{width:min(100%,calc((100dvh - 305px)*1.83333));flex:none;margin:auto}#gameShell #world{display:block;width:100%;height:auto}#gameShell aside{min-height:0;display:flex;flex-direction:column;border-radius:14px;overflow:hidden}#gameShell #tabs{flex:none;display:grid;grid-template-columns:repeat(4,1fr)}#gameShell #tabs button{padding:10px 2px;font-size:12px}#gameShell #panel{flex:1;min-height:0;overflow:auto;padding:12px}#gameShell .scenehint{font-size:10px;padding:5px}#gameShell .metrics{margin-top:5px}}
@media(max-width:999px){.feature-buttons{grid-template-columns:repeat(5,minmax(0,1fr));position:sticky;top:0;z-index:5}#gameShell .brand{font-size:16px}#gameShell main{padding:8px}#gameShell .layout{grid-template-columns:1fr}#gameShell header{height:auto;min-height:58px;flex-direction:row;align-items:center}#gameShell .topstats{width:auto;gap:10px}#gameShell .scenehint{font-size:10px}}@media(max-width:500px){.feature-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}#gameShell .brand{font-size:13px}#gameShell .topstats{font-size:12px}}
.sense-card{display:flex;align-items:center;gap:12px;background:#fff0f6;border:2px solid #edcee3;border-radius:16px;padding:12px;margin:12px 0}.sense-card:nth-of-type(2){background:#fff7d8}.sense-card:nth-of-type(3){background:#f3eafb}.sense-card canvas{width:80px;height:72px;flex:none}.sense-card>div{flex:1;min-width:0}.sense-card h3{font-size:16px;color:#805878;margin:0}.sense-card p{font-size:12px;line-height:1.65}.sense-empty{background:#fff4d9;padding:20px;border-radius:14px}.sense-menu>#senseBack{margin-top:8px}
.decor-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.decor-card{border:2px solid #e5d3e6;border-radius:13px;padding:9px;background:#fff9fc;display:flex;flex-direction:column;gap:9px}.decor-card b{font-size:13px;color:#765474}.decor-card button{font-size:12px;margin-top:auto}.decor-active{border-color:#ad77a2;box-shadow:0 0 0 2px #f5daeb}.decor-swatch{height:58px;border-radius:8px;color:#fff5c7;text-align:center;line-height:58px;font-size:23px}
