:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#243025;background:#f3f7ed}body{margin:0;background:radial-gradient(circle at 18% 10%,rgb(255 245 206 / 65%),transparent 32%),linear-gradient(180deg,#f5f8ee,#e8f2df)}button{font:inherit}.app-shell{min-height:100vh;display:flex;flex-direction:column;align-items:center;gap:18px;box-sizing:border-box;padding:22px}.app-shell h1,.app-shell p{margin:0}.app-header{width:min(100%,880px);display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:18px 22px;box-sizing:border-box;border:1px solid rgb(130 160 116 / 22%);border-radius:24px;background:#fffcf2d1;box-shadow:0 14px 34px #4056361f;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.app-header h1{font-size:34px;font-weight:750;line-height:1.1;color:#334b2f}.app-header p{margin-top:6px;font-size:16px;color:#66785e}.level-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:460px}.level-meta span,.game-status span{padding:8px 12px;border:1px solid rgb(122 153 105 / 24%);border-radius:999px;background:#ffffffb8;font-size:14px;color:#3d4c39}.connection-pill-online{border-color:#4c833d47}.connection-pill-offline{border-color:#a1684757;background:#fff7e2c7;color:#765332}.settings-panel{width:min(100%,880px);display:flex;align-items:center;justify-content:space-between;gap:14px;box-sizing:border-box;padding:14px 18px;border:1px solid rgb(130 160 116 / 22%);border-radius:20px;background:#fffcf2b3;box-shadow:0 10px 24px #40563617}.settings-panel-heading h2{margin:0;font-size:18px;line-height:1.15;color:#405437}.settings-panel-heading span{display:block;margin-top:4px;color:#66785e;font-size:13px}.settings-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.setting-toggle{min-height:42px;display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;padding:8px 12px;border:1px solid rgb(122 153 105 / 24%);border-radius:999px;background:#ffffffa8;color:#405437;font-size:14px;cursor:pointer}.setting-toggle input{width:18px;height:18px;accent-color:#5a8c4a}.bug-hunt-game{width:min(100%,880px);display:flex;flex-direction:column;align-items:center;gap:16px;padding:18px;box-sizing:border-box;border:1px solid rgb(130 160 116 / 24%);border-radius:28px;background:#fffcf2c7;box-shadow:0 18px 42px #40563624}.loading-panel{width:min(100%,880px);min-height:180px;display:grid;place-items:center;box-sizing:border-box;border:1px solid rgb(130 160 116 / 24%);border-radius:28px;background:#fffcf2c7;color:#66785e;box-shadow:0 18px 42px #40563624}.game-status{width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.mark-mode-control{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 10px;border:1px solid rgb(122 153 105 / 24%);border-radius:999px;background:#ffffff9e;color:#405437;font-size:15px}.mark-mode-button{width:42px;height:36px;display:grid;place-items:center;border:1px solid rgb(92 124 78 / 25%);border-radius:999px;background:#fffaf0;color:#526047;cursor:pointer;font-size:21px;font-weight:800;line-height:1}.mark-mode-button-active{border-color:#41683885;background:#dfeecf;color:#314a2a;box-shadow:inset 0 0 0 2px #ffffff8c}.bug-board{width:min(78vh,100%,660px);aspect-ratio:1;display:grid;grid-auto-rows:minmax(0,1fr);align-items:stretch;justify-items:stretch;gap:5px;padding:10px;border:1px solid rgb(84 119 72 / 32%);border-radius:26px;background:#6f8d5f;box-shadow:inset 0 0 0 4px #ffffff47,0 16px 32px #44583229}.bug-cell{width:100%;height:100%;aspect-ratio:1 / 1;min-width:0;min-height:0;box-sizing:border-box;display:grid;place-items:center;overflow:hidden;padding:0;border:2px solid rgb(66 94 58 / 20%);border-radius:18px;color:#293927;cursor:pointer;font-size:1rem;font-weight:800;line-height:1;box-shadow:inset 0 1px #ffffff85,inset 0 -1px #4152361a,0 2px 5px #4353361f;transition:border-color .12s ease,box-shadow .12s ease,transform .12s ease,filter .12s ease}.bug-cell:hover{border-color:#37543057;filter:brightness(1.015);transform:translateY(-1px)}.bug-cell:active{transform:translateY(0) scale(.985)}.bug-cell:focus-visible{outline:3px solid #5a8c4a;outline-offset:-3px}.bug-cell-bug{box-shadow:inset 0 0 0 4px #485c3a8c,0 4px 10px #4353362e}.bug-cell-blocked{color:#7a705f}.bug-cell-question{box-shadow:inset 0 0 0 3px #4d5b7438,0 2px 6px #4353361f}.bug-cell-error{animation:conflict-shake .15s ease-in-out;box-shadow:inset 0 0 0 3px #d45b52,0 0 0 2px #d45b5242,0 3px 10px #8b352d29}.bug-cell-hint{box-shadow:inset 0 0 0 4px #fff7abe0,0 0 0 4px #ffe0694d,0 5px 12px #715d1f24}.success-banner{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;box-sizing:border-box;padding:14px 16px;border:1px solid rgb(80 137 68 / 26%);border-radius:20px;background:#e6f2dce0;color:#314a2a;box-shadow:inset 0 0 0 2px #ffffff75,0 8px 18px #4353361a;animation:success-fade .22s ease-out}.success-banner h2,.success-banner p{margin:0}.success-banner h2{font-size:22px;line-height:1.1}.success-banner p{margin-top:4px;color:#4f6546;font-size:15px}.success-bug{float:left;margin-right:10px;font-size:30px;line-height:1;animation:success-bug-hop .52s ease-out}.bug-icon{width:72%;height:72%;display:grid;place-items:center;font-size:clamp(22px,4.6vmin,40px);line-height:1;filter:drop-shadow(0 3px 2px rgb(69 76 48 / 20%));animation:bug-pop .15s ease-out}.blocked-icon{width:68%;height:68%;display:grid;place-items:center;font-size:clamp(22px,4.2vmin,36px);line-height:1;opacity:.78;animation:blocked-fade .12s ease-out}.question-icon{width:54%;height:54%;display:grid;place-items:center;border-radius:12px;background:#ffffff94;color:#3f4d68;font-size:clamp(20px,3.8vmin,34px);font-weight:850;line-height:1;box-shadow:inset 0 0 0 1px #3e4d6729,0 2px 4px #4353361a;animation:blocked-fade .12s ease-out}.game-footer{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px}.game-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.completion-message{min-height:24px;font-size:16px;color:#68775f}.completion-message-visible{color:#2f7a3f;font-weight:700;animation:completion-rise .22s ease-out}.secondary-action,.primary-action,.level-nav button{min-height:48px;padding:0 20px;border:1px solid rgb(122 153 105 / 30%);border-radius:999px;background:#fffaf0;color:#405437;cursor:pointer;box-shadow:0 6px 14px #4353361a}.secondary-action:hover:not(:disabled),.primary-action:hover:not(:disabled),.level-nav button:hover:not(:disabled){background:#fffef8;transform:translateY(-1px)}.secondary-action:disabled{color:#a7b09f;cursor:not-allowed;box-shadow:none}.primary-action{border-color:#41683861;background:#f8fff1;color:#314a2a;font-weight:750}.completion-clear-action{border-color:#96745447;color:#6a563f}.level-select{width:min(100%,880px);display:flex;flex-direction:column;gap:14px;box-sizing:border-box;padding:18px;border:1px solid rgb(130 160 116 / 24%);border-radius:24px;background:#fffcf2bd;box-shadow:0 14px 34px #4056361a}.level-select-header{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#405437}.level-select-header h2{margin:0;font-size:20px;line-height:1.2}.level-select-header span{flex:0 0 auto;color:#66785e;font-size:14px}.level-group{display:flex;flex-direction:column;gap:9px}.level-group+.level-group{margin-top:6px}.level-group-header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0 2px}.level-group-header h3{margin:0;color:#405437;font-size:16px;line-height:1.2}.level-group-header span{color:#66785e;font-size:13px}.level-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:9px}.level-tile{min-height:88px;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto auto;align-items:center;gap:4px 8px;box-sizing:border-box;padding:10px;border:1px solid rgb(122 153 105 / 26%);border-radius:14px;background:#ffffffb3;color:#405437;cursor:pointer;text-align:left;box-shadow:0 4px 10px #43533614}.level-tile:hover{background:#fffef8;transform:translateY(-1px)}.level-tile-active{border-color:#4168389e;box-shadow:inset 0 0 0 2px #ffffffa8,0 7px 14px #43533621}.level-tile-complete{background:#e6f2dc}.level-tile-number{font-size:22px;font-weight:800;line-height:1}.level-tile-meta,.level-tile-difficulty,.level-tile-status{font-size:13px;line-height:1.1}.level-tile-meta{justify-self:end;padding:4px 7px;border-radius:999px;background:#ffffffa8}.level-tile-difficulty{grid-column:1 / -1;color:#66785e}.level-tile-status{grid-column:1 / -1;color:#3f7440;font-weight:700}.level-nav{display:flex;gap:10px}.level-nav button:disabled{color:#a7b09f;cursor:not-allowed;box-shadow:none}@media(max-width:720px){.app-shell{padding:16px}.app-header{align-items:flex-start;flex-direction:column}.level-meta{justify-content:flex-start}.bug-board{width:min(92vw,68vh);gap:4px;padding:7px;border-radius:22px}.game-footer{align-items:stretch;flex-direction:column}.game-actions{justify-content:stretch}.game-actions .secondary-action{flex:1 1 118px}.settings-panel,.success-banner,.level-group-header{align-items:stretch;flex-direction:column}.settings-controls{justify-content:stretch}.setting-toggle,.primary-action{justify-content:center}.level-select-header{align-items:flex-start;flex-direction:column}.level-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr))}.level-tile{min-height:82px}}@keyframes bug-pop{0%{opacity:0;transform:scale(.72)}72%{transform:scale(1.08)}to{opacity:1;transform:scale(1)}}@keyframes blocked-fade{0%{opacity:0;transform:scale(.88)}to{opacity:.78;transform:scale(1)}}@keyframes conflict-shake{0%,to{transform:translate(0)}35%{transform:translate(-2px)}70%{transform:translate(2px)}}@keyframes completion-rise{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes success-fade{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes success-bug-hop{0%,to{transform:translateY(0)}42%{transform:translateY(-5px)}}
