.cove-page { --cove-ink:#254e43; --cove-muted:#627d6a; color:var(--cove-ink); max-width:1480px; margin:auto; }
.cove-page *, .cove-page *::before, .cove-page *::after { box-sizing:border-box; }
.cove-page [hidden] { display:none !important; }
.cove-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.cove-back { display:inline-flex; align-items:center; min-height:44px; color:var(--cove-muted); font-size:14px; }
.cove-eyebrow { color:#6f8b70; text-transform:uppercase; letter-spacing:.1em; font-size:11px; line-height:1.5; font-weight:1000; }
.cove-header h1 { color:#23594c; font-size:clamp(36px,5vw,56px); line-height:1.05; letter-spacing:-.045em; font-weight:1000; margin:4px 0 10px; }
.cove-header p:not(.cove-eyebrow) { font-size:16px; line-height:1.6; color:var(--cove-muted); }
.cove-header-actions,.cove-session-actions { display:flex; flex-wrap:wrap; gap:8px; }
.cove-button { display:inline-flex; justify-content:center; align-items:center; gap:7px; min-width:44px; min-height:46px; padding:11px 15px; color:#345f50; border:1px solid #cfdfce; border-radius:13px; background:#fffdf4; font:900 14px/1.4 Nunito,system-ui,sans-serif; cursor:pointer; box-shadow:0 3px 0 #dce5d5; text-align:center; }
.cove-primary { color:#fffdf1; border-color:#265e4e; background:#2f6c59; box-shadow:0 3px 0 #1b493d; }
.cove-page button:disabled { opacity:.48; cursor:default; box-shadow:none; }
.cove-page :is(button,a,input,select):focus-visible { outline:3px solid #dcaa49; outline-offset:3px; }
.cove-toolbar { display:flex; align-items:end; justify-content:space-between; gap:14px; padding:16px; border:1px solid #dbe4d2; border-radius:20px; background:#eef4e7; }
.cove-toolbar label { display:grid; gap:7px; min-width:0; color:#668064; font-size:12px; font-weight:900; }
.cove-toolbar select { min-width:240px; width:100%; max-width:100%; min-height:46px; padding:10px 32px 10px 12px; border:1px solid #ccdbc6; border-radius:12px; background:#fffef7; color:#345d48; font-size:14px; font-weight:850; }
.cove-room { display:flex; flex-wrap:wrap; gap:10px; align-items:end; padding:14px 17px; background:#e9f4ef; border:1px solid #cfe1d7; border-radius:15px; margin-top:12px; }
.cove-room > p { flex-basis:100%; font-size:13px; color:#5f7e6d; line-height:1.6; }
.cove-room label { flex:1; display:grid; gap:5px; min-width:180px; font-size:12px; }
.cove-room input { min-width:0; width:100%; min-height:44px; padding:9px 12px; border:1px solid #cbddd1; border-radius:10px; background:#fffef6; color:#456d57; font-size:13px; }
.cove-hud { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:18px 5px 14px; }
.cove-hud > div:first-child { display:grid; gap:3px; }
.cove-hud strong { font-size:16px; font-weight:1000; }
.cove-hud span:not(.cove-petal) { font-size:12px; color:#73876b; }
.cove-petals { display:flex; gap:5px; }
.cove-petal { display:grid; place-items:center; width:31px; height:31px; color:#b4bf94; border:1px solid #d8dfc6; background:#f2f5e7; border-radius:11px; font-size:19px; }
.cove-petal-done { color:#9a711b; border-color:#dfc369; background:#fff0b2; }
.cove-carry { padding:10px 14px; border:1px solid #d9dcbb; border-radius:13px; background:#fff6d5; }
.cove-content { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:20px; align-items:start; }
.cove-world-column { min-width:0; }
.cove-stage { position:relative; width:100%; height:min(660px,72dvh); min-height:420px; overflow:hidden; border:1px solid #a8d2cb; border-radius:26px; background:linear-gradient(145deg,#8ed9dc,#70c6ce); box-shadow:0 5px 0 #bdd9cf,0 16px 35px #395c3510; }
.cove-stage canvas { display:block; width:100%; height:100%; touch-action:none; outline-offset:-5px !important; }
.cove-flat-map { display:block; width:100%; height:100%; max-width:100%; padding:12px; }
.cove-guide-picker { display:grid; gap:4px; color:#688062; font-size:11px; }
.cove-guide-picker select { min-height:44px; max-width:100%; padding:8px; border:1px solid #ccdbc6; border-radius:11px; background:#fffef7; color:#345d48; font-size:13px; }
.cove-opening { position:absolute; inset:0; display:grid; place-items:center; padding:25px; text-align:center; color:#225e5c; font-weight:900; pointer-events:none; }
.cove-controls { display:grid; grid-template-columns:auto 1fr; gap:12px 18px; align-items:center; padding:17px 4px 4px; }
.cove-dpad { display:grid; grid-template-columns:repeat(3,46px); grid-template-rows:repeat(2,43px); gap:5px; }
.cove-direction { width:46px; height:44px; padding:0; border:1px solid #c7daca; border-radius:12px; background:#fffef5; color:#3c7059; font-size:23px; box-shadow:0 3px 0 #d5e2d2; touch-action:none; cursor:pointer; }
.cove-direction-up { grid-column:2; }
.cove-direction-left { grid-column:1; grid-row:2; }
.cove-direction-down { grid-column:2; grid-row:2; }
.cove-direction-right { grid-column:3; grid-row:2; }
.cove-action-buttons { display:flex; flex-wrap:wrap; gap:9px; }
.cove-controls > p { grid-column:2; color:#6c8168; font-size:12px; line-height:1.6; }
.cove-feedback { min-height:49px; margin:12px 0; padding:12px 15px; border-radius:14px; background:#ecf4e5; color:#4d7255; font-size:14px; font-weight:800; line-height:1.6; }
.cove-side { display:grid; gap:17px; min-width:0; }
.cove-side > section,.cove-waiting { padding:19px; border:1px solid #d7e3ce; border-radius:22px; background:#fffdf5; box-shadow:0 4px 0 #e4e9d8; }
.cove-side h2 { color:#416c50; font-size:21px; font-weight:1000; }
.cove-side h3 { margin:14px 0 9px; color:#2e634b; font-size:31px; font-weight:1000; letter-spacing:-.03em; }
.cove-side p { color:#6f8368; font-size:14px; line-height:1.65; }
.cove-puzzle-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:14px 0 20px; }
.cove-puzzle-tab { min-width:44px; min-height:68px; padding:8px 3px; border:1px solid #d6e0ca; border-radius:12px; background:#f4f7e9; color:#6c825b; font:800 11px/1.5 Nunito,system-ui,sans-serif; cursor:pointer; }
.cove-puzzle-tab strong { display:block; font-size:12px; font-weight:1000; white-space:normal; }
.cove-puzzle-tab[aria-pressed=true] { background:#e4efce; border-color:#a9c58f; color:#416b3b; }
.cove-puzzle-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.cove-puzzle-actions .cove-button { width:100%; font-size:13px; }
.cove-hint { margin-top:15px; padding-top:13px; border-top:1px solid #e0e6d4; }
.cove-number-racks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-top:14px; }
.cove-number { min-height:70px; min-width:44px; padding:8px 3px; border:1px solid #e1d5ac; border-radius:14px; background:linear-gradient(#fff4c8,#f3df99); color:#87662c; box-shadow:0 3px 0 #dfc78a; cursor:pointer; }
.cove-number strong { display:block; font-size:28px; font-weight:1000; line-height:1.1; }
.cove-number small { display:block; font-size:11px; margin-top:5px; font-weight:900; }
.cove-number-held { border-color:#7caf91; background:#dcf0dd; color:#416f4a; }
.cove-counting { margin-top:16px; padding:15px 12px; border:1px solid #dbe2cb; border-radius:15px; background:#f5f8e9; }
.cove-dot-grid { display:grid; grid-template-columns:repeat(var(--cove-columns),minmax(0,1fr)); gap:9px; align-items:center; justify-items:center; }
.cove-object { color:#d3a75e; font-size:32px; line-height:1.2; text-shadow:0 2px #b68e4a; }
.cove-object svg { display:block; width:42px; height:40px; max-width:100%; filter:drop-shadow(0 2px 0 #c8b58a40); }
.cove-object-starfish { color:#e1aa71; }
.cove-frames { display:grid; gap:11px; }
.cove-tenframe { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; border:1px solid #c6d1b4; border-radius:8px; padding:5px; background:#e6edda; }
.cove-frame-cell { display:block; aspect-ratio:1; border:1px solid #d1dbc1; border-radius:50%; background:#fbfcf2; position:relative; }
.cove-frame-cell.filled { background:#8bbd85; border-color:#6ca56b; }
.cove-frame-cell.added { background:#edc66f; border-color:#d6ad51; }
.cove-frame-cell.outlined { border:2px dashed #c5a35f; background:#fff9df; }
.cove-frame-cell.crossed { background:#dbe9cf; }
.cove-frame-cell.crossed::after { content:'×'; position:absolute; inset:0; display:grid; place-items:center; color:#c18368; font:1000 24px/1 system-ui; }
.cove-model-caption { margin-top:9px; font-size:11px !important; }
.cove-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.cove-group { min-width:0; border:1px solid #cbdab8; border-radius:10px; padding:6px; background:#fffef2; }
.cove-group small { display:block; font-size:10px; color:#7b8c62; margin-bottom:5px; }
.cove-group > div { display:flex; flex-wrap:wrap; gap:3px; }
.cove-token { display:block; width:12px; height:12px; flex:none; border:1px solid #c1a36b; border-radius:50%; background:#f2d78d; }
.cove-finished { background:#fff3c6 !important; border-color:#e4cd87 !important; }
.cove-finished > span { font-size:35px; color:#bf913b; }
.cove-footer { margin-top:19px; padding:18px; border:1px solid #dbe3d1; border-radius:20px; background:#f0f4e8; }
.cove-guide { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.cove-guide img { width:50px; height:62px; object-fit:cover; object-position:center 25%; border-radius:15px; }
.cove-guide > div { flex:1; min-width:160px; }
.cove-guide p,.cove-footer > p { margin-top:6px; font-size:13px; line-height:1.6; color:#6b8166; }
.cove-note { font-size:11px !important; }
.cove-page.cove-full { position:fixed; inset:0; z-index:100; max-width:none; padding:12px 16px; background:#f6f8ee; overflow:auto; }
.cove-full .cove-header { margin-bottom:10px; }
.cove-full .cove-header h1 { font-size:30px; }
.cove-full .cove-back,.cove-full .cove-header p,.cove-full .cove-footer { display:none; }
.cove-full .cove-toolbar { padding:9px 12px; }
.cove-full .cove-stage { height:max(380px,calc(100dvh - 282px)); min-height:0; }
.cove-full .cove-side { max-height:calc(100dvh - 195px); overflow:auto; padding-bottom:8px; }
.cove-full .cove-controls { padding-top:10px; }
.cove-full .cove-feedback { margin-top:4px; }
@media(max-width:1000px) { .cove-content { grid-template-columns:minmax(0,1fr) 275px; gap:15px; } .cove-side > section { padding:15px; } .cove-toolbar { align-items:stretch; flex-direction:column; } .cove-toolbar select { min-width:0; } .cove-full .cove-stage { height:max(360px,calc(100dvh - 330px)); } }
@media(max-width:740px) { .cove-header { display:block; } .cove-header-actions { margin-top:15px; } .cove-content { grid-template-columns:minmax(0,1fr); } .cove-stage { height:60dvh; min-height:360px; } .cove-controls { grid-template-columns:auto minmax(0,1fr); gap:10px; } .cove-controls > p { grid-column:1/-1; } .cove-action-buttons .cove-button { width:100%; font-size:13px; } .cove-hud { gap:9px; } .cove-petals { gap:3px; } .cove-petal { width:24px; height:26px; font-size:15px; border-radius:8px; } .cove-carry { font-size:13px !important; padding:8px 10px; } .cove-full .cove-header { display:flex; gap:8px; } .cove-full .cove-header-actions { margin:0; } .cove-full .cove-header h1 { font-size:27px; } .cove-full .cove-toolbar label { font-size:11px; } .cove-full .cove-stage { height:58dvh; min-height:300px; } .cove-full .cove-side { max-height:none; overflow:visible; } .cove-full .cove-hud { padding-top:10px; } .cove-puzzle-tab strong { font-size:15px; } .cove-number-racks { grid-template-columns:repeat(5,minmax(0,1fr)); } .cove-side h3 { font-size:35px; } .cove-groups { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media(max-width:420px) { .cove-page.cove-full { padding:9px; } .cove-header h1 { font-size:40px; } .cove-session-actions .cove-button { flex:1; font-size:12px; padding-inline:9px; } .cove-number-racks { grid-template-columns:repeat(3,minmax(0,1fr)); } .cove-groups { grid-template-columns:repeat(3,minmax(0,1fr)); } .cove-controls { grid-template-columns:148px minmax(0,1fr); } .cove-stage { border-radius:20px; } }
@media(prefers-reduced-motion:reduce) { .cove-page * { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
.cove-full .cove-toolbar,.cove-full .cove-room { display:none; }
.cove-full .cove-controls > p { display:none; }
.cove-full .cove-content { height:calc(100dvh - 142px); min-height:0; }
.cove-full .cove-world-column { display:grid; grid-template-rows:minmax(0,1fr) auto auto; min-height:0; height:100%; }
.cove-full .cove-stage { height:100%; min-height:0; }
.cove-full .cove-side { max-height:100%; }
@media(max-width:740px) { .cove-full .cove-header-actions .cove-button { padding-inline:9px; font-size:12px; } .cove-full .cove-content { height:auto; } .cove-full .cove-world-column { display:block; height:auto; } .cove-full .cove-stage { height:60dvh; min-height:300px; } .cove-full .cove-side { margin-top:15px; } }
