.game-controls { font:11px Arial,sans-serif; }
.game-controls summary { cursor:pointer; }
.game-controls button { display:block; width:100%; margin:6px 0; }
.lifecycle-dialog { width:min(470px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:24px; border:1px solid #b8bd9c; border-radius:12px; background:var(--paper); color:var(--green); box-shadow:0 12px 60px #102c2755; }
.lifecycle-dialog::backdrop { background:#102c27b3; }
.lifecycle-dialog h2 { margin:0 0 16px; font:25px Georgia,serif; }
.lifecycle-dialog p { font:14px/1.6 Arial,sans-serif; }
.lifecycle-dialog .actions { margin:20px 0 0; justify-content:flex-end; }
.saved-home { max-width:680px; margin:32px auto; padding:28px; border:1px solid #c6cbb2; border-radius:12px; background:var(--paper); color:var(--green); }
.saved-home p { font:14px/1.65 Arial,sans-serif; }
.saved-home .saved-round { font-weight:700; }
.saved-home>button { margin:8px 8px 0 0; }
.app-shell:has(.saved-home) .table-heading { display:none; }
.app-shell:has(.saved-home) .view-controls { display:flex; flex-wrap:wrap; align-items:start; gap:8px; padding-top:8px; }
.app-shell:has(.saved-home) .view-controls details { margin:0; padding:8px 12px; border:1px solid #c9d0bc; border-radius:6px; font:11px Arial,sans-serif; }
@media(orientation:landscape) and (height < 500px) {
 .game-controls { position:static; }
 .lifecycle-dialog { padding:16px; }
 .lifecycle-dialog h2 { font-size:21px; margin-bottom:10px; }
 .lifecycle-dialog .actions { margin-top:12px; }
 .app-shell:has(.saved-home) .topbar { height:50px; }
 .app-shell:has(.saved-home) .brand { font-size:24px; }
 .app-shell:has(.saved-home) .brand-mark { font-size:30px; }
 .app-shell:has(.saved-home) .brand small,.app-shell:has(.saved-home) .session-meta { display:none; }
 .saved-home { margin:10px auto; padding:16px; }
 .saved-home h1 { font-size:26px; }
 .saved-home p { margin:8px 0; font-size:13px; line-height:1.45; }
 .saved-home>button { padding:9px 12px; }
}
.home-screen { max-width:900px; margin:24px auto; }
.home-screen>h1 { color:var(--green); font:32px Georgia,serif; margin:0 0 20px; }
.home-screen .saved-home { margin:0 auto; }
.home-screen .saved-home h2 { margin:0 0 16px; font:26px Georgia,serif; }
.home-completed { margin-bottom:20px; }
.app-shell:has(.home-screen) .table-heading { display:none; }
@media(orientation:landscape) and (height < 500px) {
 .home-screen { margin:10px auto; }
 .home-screen>h1 { font-size:24px; margin-bottom:10px; }
 .home-screen .saved-home h2 { font-size:22px; margin-bottom:8px; }
}
