/* Shared chrome for the 23 original experiment games. Board and cell rules stay game-owned. */
body.existing-game-shell .classic-icon {display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;color:currentColor;}
body.existing-game-shell .classic-icon svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
body.existing-game-shell #theme-toggle .theme-sun,body.existing-game-shell #theme-toggle[data-theme-action="dark"] .theme-sun {display:none;}
body.existing-game-shell #theme-toggle[data-theme-action="light"] .theme-moon {display:none;}
body.existing-game-shell #theme-toggle[data-theme-action="light"] .theme-sun {display:inline;}
body.existing-game-shell .play-actions {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
body.existing-game-shell .play-actions button {display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;min-height:50px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 2px 5px rgba(15,23,42,.07);font-size:.82rem;font-weight:650;}
body.existing-game-shell #new-toggle {background:var(--text);color:var(--bg);border-color:var(--text);font-weight:750;}
body.existing-game-shell .classic-menu-home {display:flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font-weight:650;text-decoration:none;}
body.existing-game-shell .menu-list .classic-menu-home {margin-bottom:0;}
body.existing-game-shell dialog button:not(.dialog-close) {width:100%;}
body.existing-game-shell .completion-dialog {width:min(360px,calc(100% - 28px));overflow:visible;text-align:center;}
body.existing-game-shell .completion-dialog .dialog-header,body.existing-game-shell .completion-dialog .completion-message,body.existing-game-shell .completion-dialog .completion-actions {position:relative;z-index:2;}
body.existing-game-shell .completion-dialog .dialog-header {margin-bottom:8px;}
body.existing-game-shell .completion-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px;}
body.existing-game-shell .completion-new-game {min-height:48px;border:1px solid #2563eb;border-radius:10px;background:#2563eb;color:#fff;font:inherit;font-weight:700;cursor:pointer;}
body.existing-game-shell .experiment-dialog-close {flex:0 0 44px;width:44px;min-width:44px;max-width:44px;height:44px;padding:0;}
body.existing-game-shell .experiment-home-link {display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font-weight:650;text-decoration:none;}
