:root{--tcq-cream:#ffe0ae;--tcq-paper:#fff2d9;--tcq-brown:#61311f;--tcq-brown2:#3d2018;--tcq-pink:#f15b91;--tcq-pink2:#ff8ab1;--tcq-green:#4c8a38;--tcq-shadow:0 8px 18px rgba(56,27,18,.28)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#8fd9ef;color:var(--tcq-brown2);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overscroll-behavior:none}body{overflow:hidden}main{width:100vw;height:100dvh;margin:0!important;max-width:none!important;padding:0!important;position:relative;background:#8fd9ef}.topbar,.buildcheck{display:none!important}.layout{display:block!important;width:100%!important;height:100%!important;margin:0!important}.gamecol{position:relative;width:100%!important;height:100%!important;min-width:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:0!important}.canvas-wrap{position:relative;width:min(100vw,1280px);aspect-ratio:16/9;max-height:calc(100dvh - 84px);overflow:hidden;background:#a7e3f3;box-shadow:0 0 0 2px #402116,0 10px 35px rgba(0,0,0,.28)}#game{display:block;width:100%!important;height:100%!important;image-rendering:pixelated;background:#a8e7f7}.panel{position:fixed!important;inset:16px 16px 96px auto;width:min(390px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 112px);z-index:140;overflow:auto;background:rgba(49,31,23,.96)!important;color:#fff7ea!important;border:3px solid #d7a56f!important;border-radius:18px!important;box-shadow:0 18px 55px #0008!important;padding:14px!important;display:none!important}.panel.debug-open{display:block!important}.mobile-controls{position:absolute!important;inset:0;z-index:45;pointer-events:none}.dpad{pointer-events:auto;position:absolute;left:14px;bottom:76px;display:grid!important;grid-template-columns:repeat(3,48px)!important;grid-template-rows:repeat(2,48px)!important;gap:4px!important;opacity:.88}.dpad button{width:48px!important;height:48px!important;border-radius:14px!important;border:3px solid #5b3424!important;background:rgba(255,226,179,.92)!important;color:#5b3424!important;font-weight:900!important;box-shadow:0 4px 0 #3c231a!important}.dpad button:active{transform:translateY(2px);box-shadow:0 2px 0 #3c231a!important}.mobile-controls .action{display:none!important}.account-gate{z-index:250!important;background:linear-gradient(rgba(45,28,18,.72),rgba(45,28,18,.78)),radial-gradient(circle at 50% 30%,#c8ef94,#6bb45a)!important}.account-box{width:min(430px,92vw)!important;background:linear-gradient(#fff4df,#f4c98f)!important;color:#4a261a!important;border:4px solid #6a3a25!important;border-radius:24px!important;box-shadow:0 14px 0 rgba(73,39,24,.28),0 28px 60px #0007!important}.account-brand{color:#c13d6f!important}.account-box p,.account-box small{color:#6e4b36!important}.account-box input{background:#fffaf1!important;color:#442419!important;border:2px solid #9a6e50!important}.account-box input:focus{border-color:#e95d91!important;box-shadow:0 0 0 4px #ed6d9b2b!important}.account-actions button{background:#ef6396!important;color:#fff!important;border:3px solid #723325!important;box-shadow:0 4px 0 #723325!important}.account-actions button.secondary{background:#fff0d6!important;color:#5a2b1d!important}.account-gate-status{color:#5b3c2e!important}.account-gate-status[data-error="1"]{color:#b42943!important}.shop-modal,.dialog{z-index:180!important}.shop-modal{border:4px solid #6c3b25!important;background:linear-gradient(#fff3dc,#edc18a)!important;color:#4b271b!important;box-shadow:0 18px 65px #0007!important}.dialog{border:4px solid #6c3b25!important;background:linear-gradient(#fff4df,#edc28d)!important;color:#4b271b!important;box-shadow:0 18px 65px #0007!important}.dialog-head button,#shopClose{background:#ef5f91!important;color:#fff!important;border:2px solid #723325!important}.dialog-actions button{background:#ef6396!important;color:#fff!important;border:2px solid #7b3528!important}.dialog-actions button.secondary{background:#fff1dc!important;color:#4f2a1c!important}@media(max-width:760px){.canvas-wrap{width:100vw;max-height:none;aspect-ratio:16/9;box-shadow:none}.dpad{left:8px;bottom:72px;transform:scale(.86);transform-origin:left bottom}.panel{inset:8px 8px 78px 8px;width:auto}.account-box{padding:18px!important}}

/* v0.6.2 touch + iOS hotfix */
html,body,main,.canvas-wrap,#game,.game-hud,.panel,.tcq-sheet,.shop-modal,.dialog{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
html,body,main,.canvas-wrap,#game,.game-hud,.panel,.tcq-sheet,.shop-modal,.dialog,*{-webkit-user-select:none;user-select:none}
input,textarea,select,[contenteditable="true"],input *,textarea *,select *{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}
.canvas-wrap,#game{touch-action:none}
.hud-icon-btn,.hud-side-btn,.hud-interact,.tcq-close,.tcq-simple-button,.tcq-art-button,.chat-entry button,.account-actions button,.dialog-actions button,.shop-head button,.fashion-tabs button,.shop-card button{touch-action:manipulation}
.dpad{display:none!important}
.mobile-controls .action{display:none!important}
.debug-close{position:sticky;top:0;float:right;z-index:5;width:36px;height:36px;border:3px solid #6a3926;border-radius:12px;background:#ef6396;color:#fff;font-size:24px;font-weight:900;line-height:1;box-shadow:0 3px 0 #5c3021;margin-left:auto;margin-bottom:6px}
body.account-gate-open .chat-shell{display:none!important}

/* v0.6.2.1 — hard stop Safari double-tap/pinch zoom on game UI. */
html,body,main,button,[role="button"],.game-hud,.canvas-wrap,#game,.tcq-sheet,.panel{touch-action:manipulation}
#game,.canvas-wrap{touch-action:none!important}
input,textarea,select,[contenteditable="true"]{touch-action:manipulation!important;-webkit-user-select:text!important;user-select:text!important}
#debugClose{touch-action:none!important;min-width:48px;min-height:48px;width:48px;height:48px;font-size:30px;display:grid;place-items:center}
