:root{--bg:#f5f1e7;--card:#fffdf7;--ink:#293e36;--muted:#7c8174;--line:#e3ddcf;--accent:#587c64}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px 'DM Sans',sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;font:inherit;color:inherit;border:1px solid var(--line);background:var(--card);border-radius:12px;padding:11px 16px}button:hover{border-color:var(--accent);background:#e7eddf}button:focus-visible,a:focus-visible{outline:3px solid #c59643;outline-offset:3px}header{height:108px;margin:0 5%;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center;font-size:44px;color:var(--ink);text-decoration:none}.brand span{font-size:20px;font-weight:700}.brand b{display:block;font-size:10px;letter-spacing:5px;margin-top:3px}nav{display:flex;gap:10px}nav button{background:transparent;border-color:transparent}main{max-width:1450px;margin:42px auto;display:grid;grid-template-columns:1fr 530px .65fr;gap:48px;padding:0 40px;align-items:center}small,.eyebrow{font-size:10px;letter-spacing:2px}h1{font:500 46px/1.16 'Playfair Display',Georgia,serif;letter-spacing:-1.5px;margin:24px 0}em{color:var(--accent)}p{line-height:1.9;color:var(--muted);font-size:13px}.journey{display:flex;gap:16px;align-items:center;margin-top:36px}.journey p{margin:5px 0}.badge{background:#e4e9db;font-size:28px;padding:12px 18px;border-radius:20px}.stats{display:flex;gap:50px;margin:28px 0}.stats strong{display:block;font:30px Georgia}.stats small{font-size:9px;letter-spacing:1px}.daily{font-size:12px;width:100%;text-align:left;padding:18px}.daily span{float:right;color:var(--accent)}.local{font-size:10px}.game{background:var(--card);border:1px solid var(--line);border-radius:26px;box-shadow:0 18px 65px #51462909;padding:26px}.gamehead{display:flex;align-items:center;justify-content:space-between;text-align:center}.gamehead button{border:0;background:transparent;font-size:22px;padding:6px}.gamehead small{font-size:8px}.gamehead h2{font:25px Georgia;margin:8px 0}.meter{display:flex;justify-content:space-between;padding:20px 5px 5px;font-size:11px;color:var(--muted)}#hearts{color:#bd8b51;letter-spacing:5px}.boardwrap{aspect-ratio:1;display:flex;align-items:center;background-image:radial-gradient(#c7c5b254 .8px,transparent .8px);background-size:30px 30px;border-radius:12px}svg{width:100%;height:100%;overflow:hidden}svg g{cursor:pointer;outline:none}svg polyline{fill:none;stroke-width:.105;stroke-linejoin:round;stroke-linecap:round;transition:opacity .25s}svg .target{stroke-width:.6;stroke:transparent;pointer-events:stroke}svg g:hover polyline:not(.target),svg g:focus polyline:not(.target){stroke:#c08a35;stroke-width:.16}svg g.bad{animation:shake .25s}svg g.hinted polyline:not(.target){stroke:#c68d2d;stroke-width:.19}svg g.exit{opacity:0;transition:transform .4s,opacity .4s;pointer-events:none}@keyframes shake{25%{transform:translateX(.15px)}75%{transform:translateX(-.15px)}}#status{text-align:center;color:var(--muted);font-size:11px;min-height:30px;padding:8px 0}.progress{height:3px;background:#eee9dc;border-radius:9px;margin:10px 0 24px}.progress i{display:block;background:var(--accent);height:100%;width:0;transition:width .3s}.tools{display:flex;gap:10px}.tools button{flex:1;font-size:10px;position:relative;background:transparent;border:0}.tools span{display:block;font-size:27px;margin-bottom:8px}.tools b{position:absolute;top:0;right:12px;background:#e8ecdf;border-radius:50%;padding:4px 6px;font-size:9px}.right{border-left:1px solid var(--line);padding-left:32px}.eyebrow{color:var(--muted);font-size:9px}h3{font:25px Georgia}.example{font-size:35px;color:var(--accent);padding:18px;background:#e9eddf;border-radius:12px}ol{padding-left:18px;font-size:12px;line-height:3;color:var(--muted)}.note{margin-top:40px;border-top:1px solid var(--line);padding-top:26px;color:#a28651}.note h3{font-size:21px;color:var(--ink)}footer{max-width:1370px;margin:30px auto;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:22px;font-size:11px;color:var(--muted)}footer span{font-size:10px}footer button{font-size:11px;border:0;background:transparent}dialog{border:1px solid var(--line);border-radius:24px;background:var(--card);color:var(--ink);padding:35px;max-width:440px;width:calc(100% - 30px);box-shadow:0 25px 100px #0003}dialog::backdrop{background:#172b2480;backdrop-filter:blur(4px)}.close{position:absolute;right:12px;top:12px;border:0;padding:4px 10px;font-size:23px}dialog h2{font:30px Georgia;margin-top:15px}dialog .primary{background:var(--accent);color:white;border:0;width:100%;margin-top:12px}dialog .row{display:flex;justify-content:space-between;gap:15px;align-items:center;border-top:1px solid var(--line);padding:16px 0}dialog button{margin-top:5px}.levelgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;max-height:300px;overflow:auto}.levelgrid button{padding:10px 4px}.levelgrid button:disabled{opacity:.4;cursor:default}body.dark{--bg:#182720;--card:#22342b;--ink:#e6e8d8;--muted:#b0b6a7;--line:#3a4a3d;--accent:#90b495}body.dark .badge,body.dark .example{background:#354b3a}body.dark button:hover{background:#42553e}@media(min-width:1550px){main{margin-top:70px}}@media(max-width:1150px){main{grid-template-columns:1fr 500px;gap:30px}.right{display:none}h1{font-size:40px}}@media(max-width:800px){header{height:75px}main{display:block;padding:0 12px;margin:18px auto;max-width:550px}main>aside{display:none}.game{padding:18px;border-radius:20px}.brand{font-size:32px}.brand span{font-size:16px}nav{gap:0}nav button{font-size:12px;padding:8px}.boardwrap{max-height:58vh}.gamehead h2{font-size:23px}.meter{padding-top:10px}footer{margin:10px 12px;padding:12px 0}footer span{display:none}}
/* KamIva: emerald green and warm gold. */
:root{--bg:#103c30;--card:#fff9e9;--ink:#193d2f;--muted:#6b725c;--line:#d5b66e;--accent:#926717}
body{background:radial-gradient(ellipse at 12% 15%,#2b6650 0,transparent 45%),radial-gradient(ellipse at 95% 85%,#1f533e 0,transparent 40%),var(--bg)}
header{border-color:#c5a35a60;color:#f5e8bd}.brand{color:#e3be69}.brand span{color:#fff4d3}.brand b{color:#dfbe77}nav button{color:#f7ebcc}nav button:hover{color:#193d2f;background:#f6e7ba}
main>aside{color:#f5edce}main>aside p,main>aside .eyebrow,main>aside ol{color:#cad7c2}h1 em{color:#e5bd64}.badge{color:#f5d88d;background:#ffffff0d;border:1px solid #c8a45e66}.stats strong{color:#efd08b}.stats small{color:#d3ddc5}.daily{background:linear-gradient(120deg,#efd28c,#d8b463);border-color:#f5d995;color:#233c2b}.daily span{color:#324b31}.local{color:#c2d2b8!important}
.game{border:2px solid #c9a34f;background:linear-gradient(145deg,#fffdf4,#f8efd9);box-shadow:0 0 0 5px #d2b16b15,0 25px 75px #0005}.gamehead{border-bottom:1px solid #ddc997;padding-bottom:13px}.gamehead h2{color:#234c35}.gamehead small{color:#8c712d}.meter #hearts{color:#ad7c25}.boardwrap{background-image:radial-gradient(#bca66f52 .8px,transparent .8px)}.progress{background:#e6dcc0}.progress i{background:linear-gradient(90deg,#447753,#d7ac48)}.tools button{border:1px solid #dfce9e;background:#fffcf1}.tools button:hover{background:#f1e5bd}.tools span{color:#8f6a20}.tools b{background:#e4e9cf;color:#355039}
.right{border-color:#b99a5555}.example{background:#ffffff0a;border:1px solid #c7a85b88;color:#efce7f}.note{border-color:#b99a5555;color:#e8c170}.note h3{color:#f4e9c7}footer{border-color:#c5a35a60;color:#d3dcbe}footer button{color:#ebd6a0}footer button:hover{color:#193d2f}
dialog{border:2px solid #c6a252}dialog .primary{background:linear-gradient(120deg,#23543c,#34704d);color:#fff1cb}dialog button:hover{background:#eee2bc}dialog .close{background:transparent}
body.dark{--bg:#08271e;--card:#153e2d;--ink:#f0e7c9;--muted:#c6d0b4;--line:#9c8146;--accent:#e1bd6c}body.dark .game{background:linear-gradient(145deg,#1c4935,#103526);border-color:#b9984c}body.dark .gamehead h2{color:#f1db9b}body.dark .gamehead small{color:#d4bc7d}body.dark .tools button{background:#224a35;border-color:#87763f}body.dark .tools span{color:#e4c77d}body.dark .tools b{background:#486143;color:#fff1c0}body.dark .progress{background:#33533c}body.dark svg polyline:not(.target){filter:brightness(1.65) saturate(.8)}body.dark .gamehead{border-color:#7d6e3f}

.legalpage{max-width:940px;margin:35px auto;padding:32px;background:#fff9e9;color:#193d2f;border:2px solid #c9a34f;border-radius:20px;display:block}.legalpage h1{font-size:36px}.legalpage h2{font:25px Georgia;margin:30px 0 10px}.legalpage p,.legalpage li{font:15px/1.8 Arial,sans-serif;color:#344c3d}.legalpage a{color:#315e3b;text-decoration:underline;text-underline-offset:3px}.legalnav{display:flex;flex-wrap:wrap;gap:14px;border-bottom:1px solid #d5b66e;padding-bottom:20px;font-size:13px}.legalnotice{padding:18px;background:#e6edda;border-left:4px solid #9d772c}.legalpage table{border-collapse:collapse;width:100%;display:block;overflow-x:auto;font-size:13px;line-height:1.6}.legalpage th,.legalpage td{border:1px solid #d5b66e;padding:12px;vertical-align:top;text-align:left;min-width:135px}.legalpage .version{color:#6b725c;font-size:12px}.legal-links{display:flex;flex-wrap:wrap;gap:12px}.legal-links a{color:#ebd6a0}.legal-short{font-size:11px;text-align:center;color:#cad7c2}.legal-short a{color:#f0d78e}@media(max-width:600px){.legalpage{margin:15px 8px;padding:20px}.legalpage h1{font-size:29px}footer{flex-wrap:wrap;gap:14px}.legal-links{font-size:11px;gap:10px}}@media print{body{background:white!important}.legalpage{border:0;margin:0;padding:0}header,.legalnav,footer{display:none}.legalpage a{color:black}.legalpage table{display:table}}

.refill-hearts{font-size:10px;padding:6px 9px;margin-left:8px;border-color:#c9a34f;background:#f4e7bb;color:#39503b;letter-spacing:0}button:disabled{cursor:wait;opacity:.6}body.dark .refill-hearts{background:#345538;color:#f5d78d}

#board polyline:not(.target){stroke-width:.13}#board g:hover polyline:not(.target),#board g:focus polyline:not(.target){stroke-width:.18}.boardwrap{background-image:none}.gamehead small{letter-spacing:1.2px;font-size:9px}

.board-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 2px;color:var(--muted);font-size:10px}.board-controls button{padding:6px 9px;font-size:11px}.boardwrap{display:block;overflow:auto;overscroll-behavior:contain}.boardwrap svg{display:block;min-width:100%;aspect-ratio:1;height:auto;max-width:none}.boardwrap.zoomed svg{width:180%;min-width:180%;height:auto}.boardwrap.zoomed{touch-action:pan-x pan-y}

/* Larger life indicators on desktop and touch screens. */
#hearts{display:inline-block;font-family:Arial,sans-serif;font-size:28px;line-height:1.2;letter-spacing:4px;font-weight:700;vertical-align:middle;white-space:nowrap}.meter>span:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* Crystal expedition visual theme; no gameplay or storage changes. */
:root,body.dark{--bg:#120e26;--card:#2c2047;--ink:#f7f1ff;--muted:#c5b4dc;--line:#8e73bb55;--accent:#b891ff}
body,body.dark{font-family:system-ui,-apple-system,sans-serif;background:radial-gradient(ellipse at 10% 15%,#56367b66,transparent 48%),radial-gradient(ellipse at 90% 65%,#165b6366,transparent 45%),#120e26;color:var(--ink);min-height:100vh}
body.dark{background:radial-gradient(ellipse at 10% 15%,#39255466,transparent 48%),radial-gradient(ellipse at 90% 65%,#14434a66,transparent 45%),#090719}
header{border-color:#ffffff18}.brand,.brand b{color:#c8a6ff}.brand span,nav button{color:#f7efff}nav button:hover{background:#ffffff10;color:#e5d3ff}
main>aside{color:#f7efff}main>aside p,main>aside .eyebrow,main>aside ol,.local{color:#c5b4dc!important}h1{font-family:system-ui,sans-serif;font-weight:800;line-height:1.08}h1 em{color:#d9bbff;font-style:normal}.badge,body.dark .badge{background:linear-gradient(135deg,#67479c,#2c5066);color:#a5fff0;border-color:#a38ccd66;box-shadow:0 0 24px #9670e72b}.stats strong{color:#ffdb87}.stats small{color:#c4b1dc}
.daily{background:linear-gradient(120deg,#b08aff,#8c5dd8);border-color:#d9bdff55;color:#fff;font-weight:700;box-shadow:0 4px #160d2d}.daily span{color:#fff2b8}
.game,body.dark .game{background:linear-gradient(150deg,#3c2a60,#211a3d);border:1px solid #8e73bb77;border-radius:32px;box-shadow:0 30px 80px #0006,inset 0 1px #ffffff15}.gamehead,body.dark .gamehead{border-color:#ffffff15}.gamehead h2,body.dark .gamehead h2{font-family:system-ui,sans-serif;color:#fff;font-weight:800}.gamehead small,body.dark .gamehead small{color:#c4b1dc}.gamehead button{background:#ffffff0c;border:1px solid #ffffff13;border-radius:13px;color:#e7dcff}
.meter{align-items:center;color:#d8c6e9;padding-bottom:12px}.meter #hearts{color:#ff739c;font-size:30px;text-shadow:0 2px #8a2850,0 0 12px #fa5c9055}.refill-hearts,body.dark .refill-hearts{background:linear-gradient(#644181,#392650);border-color:#b192d477;color:#ffda8c}.board-controls{color:#c4b1dc}.board-controls button{background:#ffffff0c;border-color:#ffffff20;color:#dfd0f4}
.boardwrap{background:#100c24;border:1px solid #ffffff14;border-radius:18px;box-shadow:inset 0 2px 16px #0004;margin-top:8px}
#silhouette rect{fill:#b69ade;opacity:.11}
#board g:nth-of-type(4n+2) polyline:not(.target){stroke:#a7f0de}
#board g:nth-of-type(4n+3) polyline:not(.target){stroke:#c4a0ff}
#board g:nth-of-type(4n+4) polyline:not(.target){stroke:#ffdb87}
#board g:nth-of-type(4n+1) polyline:not(.target){stroke:#83d6ff}
#board g polyline:not(.target),body.dark #board g polyline:not(.target){filter:drop-shadow(0 0 .06px #c6b2ff55)}
#board g:hover polyline:not(.target),#board g:focus polyline:not(.target),#board g.hinted polyline:not(.target){stroke:#fff4aa;stroke-width:.2;filter:drop-shadow(0 0 .15px #ffda76)}
.progress,body.dark .progress{height:6px;background:#130f28}.progress i{background:linear-gradient(90deg,#9975ef,#78e5d6)}
.tools button,body.dark .tools button{background:linear-gradient(#5a417a,#392a55);border:1px solid #b192d447;color:#ede1ff;box-shadow:0 4px #150e26;border-radius:16px}.tools button:hover,body.dark .tools button:hover{background:linear-gradient(#735398,#4b376a)}.tools span,body.dark .tools span{color:#d8beff}.tools b,body.dark .tools b{background:#edd391;color:#33213b}
.right{border-color:#ffffff18}.example,body.dark .example{background:linear-gradient(130deg,#3c2b60,#24444c);border-color:#ab86e466;color:#a7f0de}.note{border-color:#ffffff18;color:#b99ae3}.note h3{color:#e6d4ff}
footer{border-color:#ffffff18;color:#b8a6ce}.legal-short{color:#b8a6ce}.legal-short a,.legal-links a,footer button{color:#d9b9ff}
dialog{background:linear-gradient(150deg,#3c2a60,#211a3d);border:1px solid #a98bd077;color:#f7efff;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#090518bb;backdrop-filter:blur(5px)}dialog h2{font-family:system-ui,sans-serif;font-weight:800}dialog p{color:#d4c3e5}dialog button{background:#ffffff0c;border-color:#b192d447;color:#f4eaff}dialog button:hover{background:#6b4a8b}dialog .primary{background:linear-gradient(120deg,#b08aff,#8c5dd8);color:white;font-weight:800}dialog .close{color:#dbc5f2}.levelgrid button:disabled{cursor:default}
@media(max-width:800px){.game{border-radius:24px;padding:16px}.meter{gap:6px}.meter #hearts{font-size:28px}.board-controls{font-size:10px}.gamehead h2{font-size:23px}}

#accountForm,#passwordForm,#deleteAccountForm{display:grid;gap:12px}#modal label{display:grid;gap:6px;color:#e8d9fa;font-size:13px}#modal input:not([type=checkbox]),#modal textarea{width:100%;min-width:0;padding:12px;border:1px solid #a98bc077;border-radius:10px;background:#120e26;color:white;font:inherit}#modal .check{display:block;line-height:1.7}#modal input[type=checkbox]{width:18px;height:18px;vertical-align:middle;margin-right:7px;accent-color:#ad86f5}#modal a{color:#d8b5ff}#modal code{overflow-wrap:anywhere;font-size:12px}.accountActions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.accountActions button{font-size:12px}.cloud-state{font-size:11px;text-align:center;min-height:20px;margin:8px 0;color:#d8c9ed;overflow-wrap:anywhere}#accountError{color:#ffdca8;overflow-wrap:anywhere}dialog{max-height:90dvh;overflow:auto}@media(max-width:550px){header{margin:0 12px;gap:6px;height:auto;min-height:75px;padding:12px 0}header nav{flex-wrap:wrap;justify-content:flex-end}header nav button{font-size:11px;padding:7px}.brand{gap:6px}.brand span{font-size:14px}.brand b{letter-spacing:3px}dialog{padding:25px 20px}}

.heart-rewards{border:1px solid #ae8ad95c;background:#120e264d;border-radius:18px;padding:16px;margin:12px 0}.heart-rewards h3{font:700 18px system-ui;margin:0 0 10px}.heart-rewards button{display:block;width:100%;margin-top:10px}.heart-rewards button:disabled{cursor:not-allowed;opacity:.5}

.privacy-overlay{position:fixed;inset:0;z-index:10000;background:#090518c9;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(5px)}.privacy-overlay section{width:100%;max-width:470px;max-height:90dvh;overflow:auto;padding:26px;border:1px solid #b192d477;border-radius:24px;background:linear-gradient(150deg,#3c2a60,#211a3d);box-shadow:0 25px 90px #0008;color:#f5edff;font:14px/1.6 system-ui}.privacy-overlay h2{font-size:25px;line-height:1.2}.privacy-overlay p{color:#d5c7e7}.privacy-overlay button{display:block;width:100%;margin:10px 0;min-height:46px;padding:12px;border:1px solid #b192d477;background:#ffffff0b;color:#f5edff;font:inherit}.privacy-overlay button:first-of-type{background:linear-gradient(120deg,#b08aff,#8c5dd8)}.privacy-overlay small{display:block;letter-spacing:0;color:#c3afd7;font-size:12px}.privacy-overlay a{color:#d9bbff}#arrowsPrivacyStatus{color:#ffdb9b}

body[data-skin=forest]{background:#102d23;color:#f1f5db}body[data-skin=forest] .game-panel{background:#204a39}body[data-skin=night]{background:#090d21;color:#e9e9ff}#board .target{stroke-width:.7!important}
.mobile-journey{display:none}@media(max-width:800px){.mobile-journey{display:flex;justify-content:center;gap:6px;padding:0 10px}.mobile-journey button{font-size:11px;padding:8px 10px}}