:root{--ink:#233f37;--muted:#71867b;--green:#32795e;--panel:rgba(255,255,250,.95);font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #84b7a1;outline-offset:3px}canvas{display:block;touch-action:none}.gameHeading{color:var(--ink);position:fixed;left:24px;top:22px;z-index:45;background:var(--panel);border:1px solid #fff;border-radius:20px;padding:15px 21px;box-shadow:0 8px 32px #234c3020;max-width:calc(100vw - 180px)}.gameHeading small{display:block;text-transform:uppercase;letter-spacing:.17em;color:var(--green);font-weight:800;font-size:9px;margin-bottom:5px}.gameHeading h1{font-size:19px;margin:0;letter-spacing:-.6px}.gameHeading p{font-size:11px;margin:5px 0 0;color:var(--muted)}a.back{position:fixed;right:24px;top:24px;z-index:46;border:1px solid white;border-radius:14px;background:var(--panel);color:var(--ink);padding:12px 18px;text-decoration:none;font-size:12px;font-weight:750;box-shadow:0 6px 25px #234c3020}.sharedChat{position:fixed;z-index:45;left:24px;bottom:24px;width:320px;border:1px solid #ffffffdc;border-radius:20px;background:var(--panel);box-shadow:0 12px 44px #173c3226;overflow:hidden;color:var(--ink);backdrop-filter:blur(18px)}.sharedChat[hidden]{display:none}.sharedChat header{padding:13px 16px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e4eae3;font-size:12px;font-weight:800}.sharedChat header small{font-size:9px;color:var(--muted);margin-left:7px;font-weight:500}.liveDot{display:inline-block;width:7px;height:7px;background:#66a985;border-radius:50%;margin-right:7px}.sharedChat button{border:0;background:transparent;color:var(--green);font-weight:750}.sharedChat header button{width:28px;height:24px;font-size:19px}.sharedChat.collapsed #chatBody{display:none}#chatMessages{height:158px;overflow:auto;padding:9px 16px;scrollbar-width:thin}.message{font-size:12px;line-height:1.5;padding:5px 0;overflow-wrap:anywhere}.message b{display:block;color:var(--green);font-size:10px}.message span{white-space:pre-wrap}.message button{float:right}#chatForm{display:flex;gap:6px;padding:8px 11px 2px}#chatInput{min-width:0;flex:1;border:1px solid #dde7df;border-radius:11px;background:#f0f5ed;color:var(--ink);padding:11px;font-size:12px;outline:none}#chatInput:focus{border-color:#549e7b}#chatForm button{width:36px;border-radius:11px;background:var(--green);color:white;font-size:20px}.sharedChat footer{font-size:8px;color:var(--muted);text-align:center;padding:8px}.speechLayer{position:fixed;inset:0;z-index:20;pointer-events:none;overflow:hidden}.speechBubble{position:absolute;transform:translate(-50%,-100%);background:#fffffaf5;color:#274538;border:1px solid white;border-radius:15px;padding:11px 15px;max-width:230px;width:max-content;box-shadow:0 5px 22px #173c3230;font-size:12px;line-height:1.4;overflow-wrap:anywhere;text-align:center}.speechBubble:after{content:'';position:absolute;left:calc(50% - 6px);bottom:-6px;width:12px;height:12px;background:#fffffa;transform:rotate(45deg)}.touchControls{display:none;position:fixed;inset:0;z-index:46;pointer-events:none}.movePad{position:absolute;bottom:28px;left:25px;width:108px;height:108px;border-radius:50%;border:1px solid #fff9;background:#ffffed40;pointer-events:auto;touch-action:none;display:grid;place-items:center}.movePad span{width:46px;height:46px;border-radius:50%;background:#fffff2d9;box-shadow:0 3px 10px #2344}.touchButtons{position:absolute;right:24px;bottom:35px;display:flex;gap:10px}.touchButtons button{pointer-events:auto;border:1px solid white;background:var(--panel);color:var(--green);width:62px;height:62px;border-radius:50%;font-size:24px;touch-action:none}.touchButtons small{display:block;font-size:9px}.safetyActions{z-index:46!important;left:auto!important;right:24px!important;bottom:16px!important}.safetyActions button{background:var(--panel)!important;color:var(--ink)!important;border-radius:10px!important}
/* Keep all existing round and inventory states, with the valley palette. */
.gameState{top:125px}.gameState.waiting{opacity:1;transform:translateX(-50%)}.round,.role,.playerList,.hotbarSlot,.action,.toast,.spectate,.deathCard{background:var(--panel);color:var(--ink);border:1px solid white;box-shadow:0 8px 28px #173c3225;text-shadow:none}.playerList{top:86px;right:24px;border-radius:18px;width:230px}.playerListHead button{color:var(--ink)}.playerStats,.slotMeta small,.spectateCenter small{color:var(--muted)}.playerRow.me{background:#e5f0e4}.role.murderer{color:#b03950}.role.sheriff{color:#3477a4}.role.innocent{color:var(--green)}.hotbarSlot.selected{background:#e6f1e3;border-color:#428d67;box-shadow:0 0 0 2px #77a98750}.hotbarSlot.selected .slotMeta small{color:var(--green)}.slotKey{background:#d6e7d9;color:var(--green)}.death{background:#203b345e;backdrop-filter:blur(8px)}.death h1{color:#b03950;font-size:25px}.death p{color:var(--muted)}.death button{background:var(--green);color:white}.toast{top:180px}.action{font-size:11px}.crosshair:before,.crosshair:after{background:white}.gameState .round:empty{display:none}
@media(pointer:coarse){.touchControls{display:block}.sharedChat{bottom:158px;width:280px}.sharedChat #chatMessages{height:94px}.sharedChat footer{display:none}.safetyActions{bottom:110px!important}.hotbar{bottom:25px}.action{bottom:106px}}
@media(max-width:700px){.gameHeading{top:12px;left:12px;padding:11px 14px;max-width:calc(100vw - 95px);border-radius:15px}.gameHeading h1{font-size:15px}.gameHeading small{font-size:8px}.gameHeading p{font-size:9px}a.back{top:14px;right:12px;padding:10px 12px}.playerList{right:12px;top:96px;width:150px}.playerList.collapsed{width:130px}.gameState{left:12px;top:98px;transform:none;max-width:calc(100vw - 165px);flex-wrap:wrap;gap:3px}.gameState.waiting{transform:none}.round,.role{font-size:9px;padding:7px}.sharedChat{left:12px;width:250px;bottom:155px}.sharedChat #chatMessages{height:80px}.sharedChat footer{display:none}.touchControls{display:block}.toast{top:160px;max-width:80%;font-size:11px}.hotbar{bottom:23px}.action{bottom:108px}.spectate{bottom:105px}.safetyActions{bottom:112px!important;right:12px!important}}

@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.safetyActions{top:auto!important;height:auto!important}.safetyActions button{height:auto!important}.gameTools{position:fixed;top:24px;right:108px;z-index:46;display:flex;gap:7px}.gameTools button{border:1px solid white;border-radius:13px;padding:11px 12px;background:var(--panel);color:var(--ink);font-size:12px;font-weight:700}.gameTools button[aria-pressed=true]{background:#d8ecd9}.gameHelp{position:fixed;z-index:48;right:24px;top:77px;background:var(--panel);color:var(--ink);border:1px solid white;border-radius:18px;padding:19px;width:265px;box-shadow:0 12px 36px #2343;font-size:12px;line-height:1.7}.gameHelp b{display:block;margin-bottom:7px}.gameHelp p{margin:0}.gameHelp[hidden]{display:none}@media(max-width:700px){.gameTools{top:90px;left:12px;right:auto}.gameTools button{font-size:10px;padding:7px 11px}.gameState{top:133px}.gameHelp{top:127px;right:12px}.gameHeading{max-width:calc(100vw - 85px)}}
.touchButtons .fire{display:none}.weapon-equipped .touchButtons .fire{display:block}

.gameIcon{width:18px;height:18px;vertical-align:middle;flex:none}.role .gameIcon{width:14px;height:14px}.slotIcon .gameIcon{width:30px;height:30px}.deathIcon .gameIcon{width:42px;height:42px}.touchButtons .gameIcon{width:24px;height:24px}.back,.gameTools button{display:inline-flex;align-items:center;justify-content:center;gap:5px}
