@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid}}}@layer theme{:root,:host{--font-sans:"Inter", "Helvetica Neue", Arial, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.static{position:static}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.border{border-style:var(--tw-border-style);border-width:1px}}:root{font-family:var(--font-sans);color:#202126;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#fff}*{box-sizing:border-box}body{min-width:320px;margin:0}button,select,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button,a,select,[role=button]{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline-offset:4px;outline:2px solid #2563eb}.app-shell{flex-direction:column;max-width:1400px;min-height:100svh;margin:0 auto;padding:0 46px;display:flex}.app-header{border-bottom:1px solid #e9e9ed;justify-content:space-between;align-items:center;gap:24px;min-height:64px;display:flex}.brand{align-items:center;gap:12px;display:flex}.brand>svg{width:34px;height:34px}h1{letter-spacing:-1px;margin:0;font-size:24px;font-weight:650}.brand-dot{color:#2563eb}.brand-text{align-items:baseline;gap:18px;display:flex}.brand-text h1{white-space:nowrap}.brand-credit{white-space:nowrap;color:#90939c;margin:0;font-size:11px;line-height:1.6}.brand-credit a{color:#626773;text-decoration:none}.brand-credit a:hover{text-decoration:underline}.menu-button{color:#525661;background:0 0;border:1px solid #e9e9ed;border-radius:8px;place-items:center;width:44px;height:44px;display:grid}.menu-button:hover{background:#f8f9fb}.menu-button svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;width:21px;height:21px}.game-layout{grid-template:"scores scores""board controls"/minmax(0,1fr) 270px;align-content:center;gap:12px 58px;width:100%;max-width:1220px;margin:0 auto;padding:0 0 24px;display:grid}.board-section{grid-area:board;align-self:center;min-width:0}.game-board{-webkit-user-select:none;user-select:none;touch-action:manipulation;width:100%;max-height:68svh;display:block;overflow:visible}.board-cell{fill:#fff;stroke:#d0d4dc;stroke-width:1.05px;cursor:pointer;outline:none}@media(hover:hover){.board-cell:not(.fill-player-1):not(.fill-player-2):not([aria-disabled=true]):hover{fill:#f0f3fa}}.board-cell[aria-disabled=true]{cursor:default}.board-cell:focus{outline:none}.board-cell:focus-visible{stroke:#17171c;stroke-width:2.7px}.fill-player-1{fill:#2563eb}.fill-player-2{fill:#dc2626}.board-cell.fill-player-1,.board-cell.fill-player-2{stroke:#fff}.board-cell.selected{opacity:.78}.selection-outline{fill:none;stroke:#fff;stroke-width:1.5px;stroke-dasharray:4 3;pointer-events:none}.board-cell.captured-preview{opacity:.75}.alternate-board-border{fill:#fafbfc;stroke:#cdd2dc;stroke-width:1.4px;pointer-events:none}.chain-border{fill:#fafbfc;stroke:#d4d8df;stroke-width:1px}.chain-lines{fill:none;stroke:#838994;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.chain-species{color:#656c78;cursor:pointer;outline:none}.species-shape{pointer-events:none;transition:transform .18s,color .18s;transform:scale(1)}.chain-species:hover .species-shape{transform:scale(1.08)}.chain-species.species-active .species-shape{transform:scale(1.2)}.chain-species:focus-visible .species-shape{filter:drop-shadow(0 0 2px #2563eb)}.player-1{color:#2563eb}.player-2{color:#dc2626}.departing-cell{stroke:#fff;stroke-width:1px}.capture-effect{animation:.9s cubic-bezier(.24,.65,.4,1) both cell-fracture;animation-delay:var(--capture-delay);transform-box:fill-box;transform-origin:50%}.cell-cracks path{fill:none;stroke-linecap:round;stroke-linejoin:round}.crack-shadow{stroke:#14182366;stroke-width:3.2px}.crack-line{stroke:#fff;stroke-width:1.5px}.cracks-new path{stroke-dasharray:1;animation:.3s ease-out both crack-spread;animation-delay:var(--capture-delay)}@keyframes crack-spread{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}@keyframes cell-fracture{0%,38%{opacity:1;transform:translate(0)scale(1)}60%{opacity:.75;transform:translate(calc(var(--drift-x) * .4),calc(var(--drift-y) * .4)) scale(.94)}to{opacity:0;transform:translate(var(--drift-x),var(--drift-y)) scale(.65)}}.scores{border-bottom:1px solid #e9e9ed;grid-area:scores;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;gap:28px;width:100%;padding:14px 8px 12px;display:grid}.score{min-width:0}.score-background{fill:#fafbfc;stroke:#fafbfc;stroke-width:4px;stroke-linejoin:round}.score-cell{fill:#edf0f4;stroke:#d0d4dc;stroke-width:.36px;stroke-linejoin:round;transform-box:fill-box;transform-origin:50%}.score-filled{fill:currentColor;stroke:#fff;animation:.5s cubic-bezier(.2,.7,.3,1.4) both score-fill}.turn-message{text-align:center;letter-spacing:-.7px;font-size:30px;font-weight:550;line-height:1.05}.turn-line{display:block}.turn-line+.turn-line{margin-top:4px}.food-chain-below{-webkit-user-select:none;user-select:none;touch-action:manipulation;width:100%;max-width:560px;margin:18px auto 0;display:block;overflow:visible}@keyframes score-fill{0%{fill:var(--score-empty,#edf0f4);transform:scale(1)}35%{fill:currentColor;transform:scale(1.16)}to{fill:currentColor;transform:scale(1)}}.controls{grid-area:controls;align-self:center;padding-top:0}.history-meta{color:#858a95;justify-content:space-between;margin-bottom:14px;font-size:11px;display:flex}.history-meta>span:last-child{font-variant-numeric:tabular-nums}.history-controls{border:1px solid #e6e8ed;border-radius:7px;gap:4px;padding:4px;display:flex}.history-controls button{color:#515966;background:0 0;border:0;border-radius:4px;flex:1;place-items:center;min-height:37px;display:grid}.history-controls button:disabled{color:#d0d4dc}.history-controls button:hover:not(:disabled){background:#f0f2f6}.history-controls svg{stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;fill:none;width:20px;height:20px}.history-hint{color:#858a95;margin:16px 0 0;font-size:11px;line-height:1.7}.error-text,.save-notice{color:#b91c1c;margin-top:16px;font-size:12px;line-height:1.7}.save-notice{color:#a16207}.primary-button{color:#fff;background:#2563eb;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;gap:15px;width:100%;min-height:47px;padding:12px 17px;font-size:13px;font-weight:550;display:flex}.controls>.primary-button{margin-top:25px}.primary-button:hover:not(:disabled){background:#1d4ed8}.primary-button>span{margin-left:auto;font-size:19px}.primary-button.red-button{background:#dc2626}.primary-button.red-button:hover:not(:disabled){background:#b91c1c}.primary-button:disabled{color:#a0a3ac;background:#f0f1f4}.modal{color:#27272a;background:#fff;border:1px solid #e4e4e7;border-radius:12px;width:min(480px,100% - 32px);max-height:calc(100svh - 40px);margin:auto;padding:0;position:fixed;inset:0;overflow-y:auto}.modal::backdrop{background:#18181b4d}.modal h2{letter-spacing:-.5px;margin:0;font-size:21px;font-weight:600}.modal-header{z-index:2;background:#fff;border-radius:12px 12px 0 0;padding:28px 60px 22px 28px;position:sticky;top:0}.modal-body{padding:0 28px 28px}.close-button{color:#71717a;background:#fff;border:1px solid #e9e9ed;border-radius:50%;place-items:center;width:36px;height:36px;display:grid;position:absolute;top:10px;right:10px}.close-button:hover{background:#f4f5f7}.close-button svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.mode-switch{border:1px solid #e4e4e7;border-radius:7px;gap:4px;padding:4px;display:flex}.mode-switch button{color:#85858f;background:0 0;border:0;border-radius:4px;flex:1;padding:11px 8px;font-size:12px;font-weight:550}.mode-switch button[aria-pressed=true]{color:#24242b;background:#f1f1f4}.difficulty-row{color:#737780;justify-content:space-between;align-items:center;margin-top:18px;font-size:12px;display:flex}.difficulty-row select{color:#44464f;cursor:pointer;background:#fff;border:1px solid #e4e4e7;border-radius:4px;padding:7px 10px}.new-game-note{color:#858a94;margin:18px 0 0;font-size:11px;line-height:1.7}.history-settings{border-bottom:1px solid #e9e9ed;padding:0 0 24px}.new-game-settings{border-bottom:1px solid #e9e9ed;padding:24px 0}.new-game-settings h3{letter-spacing:-.2px;margin:0 0 15px;font-size:14px;font-weight:600}.new-game-settings>.primary-button{margin-top:20px}.history-settings label{cursor:pointer;align-items:start;gap:11px;font-size:12px;line-height:1.5;display:flex}.history-settings .disabled-option{opacity:.4;cursor:not-allowed}.history-settings input:disabled{cursor:not-allowed}.history-settings label+label{margin-top:17px}.history-settings input{accent-color:#2563eb;flex-shrink:0;width:15px;height:15px;margin-top:2px}.history-settings small{color:#9699a1;margin-top:4px;font-size:10px;display:block}.option-button{background:0 0;border:0;border-bottom:1px solid #eee;justify-content:space-between;width:100%;padding:18px 0;font-size:13px;display:flex}.option-button span{color:#a1a1aa}.menu-options .small-note{color:#92969f;margin-top:23px;font-size:10px}.menu-disclaimer{color:#92969f;margin:19px 0 0;font-size:10px;line-height:1.8}.menu-disclaimer a{text-underline-offset:2px;text-decoration:underline}.rules-content{color:#71717a;font-size:13px;line-height:1.8}.rules-content .intro{color:#3f3f46;margin-bottom:22px;font-size:15px}.rules-content ol{padding-left:20px;list-style:decimal}.rules-content li{margin-bottom:16px;padding-left:5px}.rules-content strong{color:#27272a}.rules-content p{margin:15px 0}.rules-content .credit{border-top:1px solid #e4e4e7;margin-top:24px;padding-top:18px;font-size:11px}.credit a{text-underline-offset:3px;text-decoration:underline}.rules-example{background:#fafafa;justify-content:center;align-items:center;gap:35px;padding:12px;display:flex}.rules-example>div{text-align:center}.species-icon{color:#52525b;width:72px;height:72px;margin:auto;display:block}.dialog-copy{color:#71717a;font-size:13px;line-height:1.8}.dialog-actions{gap:10px;margin-top:28px;display:flex}.dialog-actions button{flex:1}.secondary-button{background:#fff;border:1px solid #d4d4d8;border-radius:5px;padding:10px 14px;font-size:13px}.species-instruction{color:#858a94;margin:0 0 18px;font-size:12px;line-height:1.7}.species-browser>.dialog-copy{margin:18px 0 0}.species-carousel{margin:0 -8px}.species-rail{overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;outline-offset:2px;cursor:grab;-webkit-user-select:none;user-select:none;touch-action:pan-x;gap:12px;padding:12px calc(50% - 62px) 16px;display:flex;position:relative;overflow-x:auto}.species-rail::-webkit-scrollbar{display:none}.species-rail:active{cursor:grabbing}.species-card{scroll-snap-align:center;text-align:center;color:#a2a7af;pointer-events:none;flex:0 0 124px;position:relative}.species-card .species-icon{color:#a2a7af;width:108px;height:108px}.food-chain-link{color:#a0a7b2;font-size:20px;line-height:26px;position:absolute;top:41px;right:-14px}.species-card strong{margin-top:8px;font-size:12px;font-weight:550;display:block}.species-card.selected-species{color:#202126}.selected-species .species-icon{color:#4e5665}@media(max-width:1050px){.app-shell{padding:0 28px}.game-layout{grid-template-columns:minmax(0,1fr) 220px;column-gap:30px}}@media(max-width:760px){.app-shell{max-width:600px;padding:0 18px}.app-header{gap:12px;min-height:60px}.brand{gap:7px;min-width:0}.brand>svg{flex-shrink:0;width:25px;height:25px}.brand-text{gap:9px}h1{font-size:19px}.brand-credit{font-size:9px}.menu-button{flex-shrink:0;width:39px;height:39px}.game-layout{grid-template:"scores""board""controls"/1fr;gap:0;margin:0;padding:0 0 25px}.scores{border:0;grid-template-columns:minmax(0,1fr) minmax(75px,.9fr) minmax(0,1fr);gap:12px;padding:12px 2px}.turn-message{font-size:24px}.game-board,.alternate-view .game-board{max-height:none}.board-section{margin:0 -12px}.controls{padding:23px 10px 0}.history-controls button{min-height:36px}.history-meta{margin-bottom:10px}.controls>.primary-button{min-height:44px;margin-top:19px}.history-hint{margin-top:11px}.modal-header{padding:25px 55px 22px 23px}.modal-body{padding:0 23px 23px}}@media(max-width:380px){.app-shell{padding:0 13px}.app-header{gap:9px}.brand-text{gap:7px}.brand>svg{width:22px}h1{font-size:17px}.brand-credit{font-size:8px}.menu-button{width:36px;height:36px}.scores{gap:9px}.turn-message{font-size:20px}}@media(prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}.capture-effect{opacity:0}}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media(max-width:760px),(max-height:500px){.app-shell{max-width:600px;height:100dvh;min-height:0;padding-inline:18px;padding-bottom:max(8px,env(safe-area-inset-bottom));grid-template-rows:52px minmax(0,1fr);display:grid}.app-header{min-height:0}.game-layout{grid-template:"scores""board"minmax(0,1fr)"controls"/1fr;align-content:stretch;gap:6px 0;height:100%;min-height:0;margin:0;padding:0}.scores{grid-template-columns:minmax(0,1fr) 74px minmax(0,1fr);gap:9px;padding:10px 2px 6px}.turn-message{font-size:clamp(18px,2.7dvh,24px)}.board-section{grid-template-rows:minmax(0,1fr);align-self:stretch;height:100%;min-height:0;margin:0 -8px;display:grid}.game-board,.alternate-view .game-board,.food-chain-below{width:100%;height:100%;min-height:0;max-height:100%;margin:0}.food-chain-below{max-width:none}.controls{grid-template-columns:minmax(0,1fr);align-self:stretch;align-items:end;gap:6px 8px;padding:0 4px;display:grid}.controls:has(.history-section):has(>.primary-button){grid-template-columns:minmax(0,1fr) minmax(112px,.9fr)}.history-section{order:0;min-width:0}.history-meta{margin-bottom:4px;font-size:9px}.history-controls{gap:1px;padding:3px}.history-controls button{min-width:0;min-height:34px}.history-controls svg{width:18px;height:18px}.controls>.primary-button{order:1;gap:8px;min-height:42px;margin:0;padding:8px 10px;font-size:12px;line-height:1.3}.controls>.primary-button>span{margin-left:0;font-size:17px}.controls>.history-hint,.controls>.error-text,.controls>.save-notice{order:2;grid-column:1/-1;margin:0;font-size:10px;line-height:1.4}}.board-stage{grid-template-rows:minmax(0,1fr) auto;min-width:0;min-height:0;display:grid}.board-warning{text-align:center;color:#b91c1c;height:30px;min-height:30px;margin:6px 12px 0;font-size:11px;line-height:1.5}.chain-description,.chain-edit-status{color:#858a94;margin:12px 0 0;font-size:11px;line-height:1.6}.chain-edit-status{text-align:center;color:#626773;min-height:18px}.chain-editor .food-chain-below{width:100%;max-width:300px;height:auto;max-height:none;margin:14px auto 0}.chain-species:not([role=button]){cursor:default}.chain-species:not([role=button]):hover .species-shape{transform:none}.chain-preview{width:100%;max-width:300px;margin:14px auto 0;position:relative}.chain-editor .chain-preview .food-chain-below{margin:0}.shuffle-button{color:#626773;background:#fff;border:1px solid #e4e4e7;border-radius:50%;place-items:center;width:48px;height:48px;padding:0;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.shuffle-button svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.shuffle-button:hover{background:#f8f9fb}@media(max-width:760px),(max-height:500px){.board-stage{flex-direction:column;justify-content:center;height:100%;display:flex}.board-stage .game-board{flex:0 auto;height:auto}.board-warning{flex-shrink:0;margin-top:4px;font-size:10px}}select:focus,select:focus-visible{box-shadow:none;border-color:#e4e4e7;outline:none}.app-shell[data-keyboard-focus=true] select:focus-visible{outline-offset:4px;outline:2px solid #2563eb}.score-setting{justify-content:space-between;align-items:center;gap:16px;margin-top:18px;display:flex}.score-setting-label{color:#737780;font-size:12px}.score-setting-label small{color:#9699a1;margin-top:5px;font-size:10px;display:block}.score-scale{touch-action:pan-y;-webkit-user-select:none;user-select:none;cursor:ew-resize;background:#fff;border:1px solid #e4e4e7;border-radius:4px;flex:0 0 100px;width:100px;height:34px;margin:0;position:relative}.score-scale:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.score-scale-track{border-radius:inherit;position:absolute;inset:0;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,#0000,#000 14% 86%,#0000);mask-image:linear-gradient(90deg,#0000,#000 14% 86%,#0000)}.score-scale-numbers{height:100%;position:relative}.score-scale-numbers span{color:#9699a1;font-size:12px;font-weight:400;line-height:1;position:absolute;top:50%;transform:translate(-50%,-50%)}.score-scale-numbers .score-scale-selected{color:#44464f;font-weight:700}.score{--score-unit:1px}.score-cells{width:calc(var(--score-width) * var(--score-unit));height:calc(var(--score-height) * var(--score-unit));display:block;overflow:visible}.score:last-child .score-cells{margin-left:auto}@media(max-width:760px),(max-height:500px){.score{--score-unit:clamp(.6px, calc((100vw - 134px) / 307), .85px)}}.score.player-1{--score-empty:#e8edf7;--score-accent:#bbcef2;--score-outline:#c6d1e3}.score.player-2{--score-empty:#f7eaea;--score-accent:#f1c3c3;--score-outline:#e6cccc}.score-background{fill:var(--score-accent);stroke:var(--score-accent)}.score-cell:not(.score-filled){fill:var(--score-empty);stroke:var(--score-outline)}.tape-mark{pointer-events:none;border-left:3px solid #0000;border-right:3px solid #0000;width:0;height:0;position:absolute;left:50%;transform:translate(-50%)}.tape-mark-top{border-bottom:4px solid #737780;top:3px}.tape-mark-bottom{border-top:4px solid #737780;bottom:3px}@media(max-width:760px),(max-height:500px){.game-layout:not(.alternate-view) .controls{flex-direction:column;align-items:stretch;gap:10px;display:flex}.game-layout:not(.alternate-view) .history-meta{margin-bottom:8px;font-size:11px}.game-layout:not(.alternate-view) .history-controls{gap:4px;padding:4px}.game-layout:not(.alternate-view) .history-controls button{min-height:36px}.game-layout:not(.alternate-view) .history-controls svg{width:20px;height:20px}.game-layout:not(.alternate-view) .controls>.primary-button{gap:15px;min-height:44px;padding:12px 17px;font-size:13px}.game-layout:not(.alternate-view) .controls>.primary-button>span{margin-left:auto;font-size:19px}.game-layout:not(.alternate-view) .controls>.history-hint,.game-layout:not(.alternate-view) .controls>.error-text{order:0;font-size:11px;line-height:1.7}}.app-shell.alternate-shell{--alternate-width: calc(100vw - 16px) ;max-width:none;padding-inline:18px;padding-bottom:max(8px,env(safe-area-inset-bottom));--board-status-space:88px;--diagram-gap:12px;grid-template-rows:64px minmax(0,1fr);height:100dvh;min-height:0;display:grid}.alternate-shell .app-header{z-index:3;background:#fff;flex-shrink:0;position:sticky;top:0}.game-layout.alternate-view{grid-template:"board"minmax(0,1fr)"controls"/minmax(0,1fr);gap:0;width:100%;max-width:none;height:100%;min-height:0;margin:0;padding:0;display:grid}.alternate-view .board-section{justify-content:center;align-items:center;gap:var(--diagram-gap);height:100%;min-height:0;width:var(--alternate-width);flex-direction:column;margin:0 -10px;padding-block:12px;display:flex;container-type:size}.alternate-view .board-stage{flex-direction:column;flex:none;justify-content:flex-start;height:auto;display:flex}.alternate-view .board-stage,.alternate-view .alternate-chain{width:min(100cqw,calc((100cqh - var(--board-status-space) - var(--diagram-gap)) / 1.57143))}.alternate-view .game-board{flex:none;width:100%;height:auto;max-height:none}.alternate-view .alternate-chain{flex:none;height:auto;min-height:0;margin:0;position:relative;container-type:inline-size}.alternate-food-chain{-webkit-user-select:none;user-select:none;touch-action:manipulation;width:100%;height:auto;max-height:none;display:block;overflow:visible}@media(max-width:760px),(max-height:500px){.alternate-shell .app-header{flex:0 0 42px;gap:10px;min-height:42px}.alternate-shell .brand-text{display:flex}.alternate-shell .brand-credit{font-size:8px;line-height:1.3}}.alternate-view>.controls{z-index:2;background:#fff;border-top:1px solid #e9e9ed;grid-area:controls;grid-template-columns:minmax(0,1fr);align-items:end;gap:8px 10px;margin-top:auto;padding:6px 4px 0;display:grid;position:relative}.alternate-view>.controls:has(.history-section):has(>.primary-button){grid-template-columns:minmax(0,1fr) minmax(112px,.9fr)}.alternate-view .history-meta{justify-content:space-between;margin:0 0 4px;font-size:9px;line-height:1.2;display:flex}.alternate-view .history-controls{gap:1px;padding:3px;display:flex}.alternate-view .history-controls button{min-width:0;min-height:32px}.alternate-view .history-controls svg{width:18px;height:18px}.alternate-view>.controls>.primary-button{gap:8px;min-height:44px;margin:0;padding:8px 12px;font-size:12px;line-height:1.3}.alternate-view>.controls>.primary-button>span{margin-left:auto;font-size:17px;display:inline}.alternate-view .board-warning{flex-direction:column;justify-content:center;align-items:center;line-height:1.25;display:flex}.score-divider{color:#92969f;font-weight:400}.alternate-food-chain .chain-species.species-active .species-shape{transform:scale(1.1)}@media(max-width:760px),(max-height:500px){.app-shell.alternate-shell{--board-status-space:86px;grid-template-rows:42px minmax(0,1fr)}}@media(min-aspect-ratio:4/3){.alternate-view .board-section{flex-direction:row;justify-content:space-around;gap:12px}.alternate-view .board-stage,.alternate-view .alternate-chain{width:min(calc((100cqw - 12px)/2),calc((100cqh - var(--board-status-space)) / .882353))}}.alternate-board-turn{flex:0 0 52px;place-items:center;height:52px;display:grid}.alternate-board-turn .turn-message{font-size:20px;line-height:1.05}.loop-score{font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;background:#fff;border:1px solid #d7dce5;border-radius:6px;grid-template-rows:.85fr 1.2fr 1fr;width:min(34cqw,150px);height:min(30cqw,126px);margin:0;display:grid;position:absolute;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}.loop-score-heading,.loop-score-target,.loop-score-value{justify-content:center;align-items:center;min-height:0;padding-inline:3px;display:flex}.loop-score-heading{color:#626773;background:#f7f8fa;border-bottom:1px solid #d7dce5;font-size:clamp(10px,3.5cqw,12px);font-weight:550;line-height:1.2}.loop-score-value{gap:.3em;font-size:clamp(14px,8cqw,30px);font-weight:600;line-height:1}.loop-score-target{color:#858a94;background:#f7f8fa;border-top:1px solid #d7dce5;gap:5px;font-size:clamp(10px,3.3cqw,12px);line-height:1.2}.loop-score-target strong{color:#525661;font-weight:600}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}
