:root{color-scheme:dark;font-family:'Barlow',system-ui,sans-serif;background:#111210;color:#f4f3ee}
*{box-sizing:border-box}
body{margin:0}
body.stone-open{overflow:hidden}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer}
[hidden]{display:none!important}
.cantera-shell{max-width:800px;margin:auto;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(ellipse at 80% 40%,#272a23,transparent 65%),#111210}
.cantera-shell .site-header{position:relative;flex:none;background:#111210f5;padding-bottom:12px;border-bottom:1px solid #fff1}
.cantera-shell main{flex:1;min-height:0;padding:0}
#cantera-content{position:relative;height:100%}
.quarry-wrap{position:relative;height:100%}
.quarry-scene{position:relative;isolation:isolate;overflow:hidden;width:100%;height:100%;background:#e4e9db}
.quarry-landscape{position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20800%20720%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22sky%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23dce9e7%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f4ecdb%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22ground%22%20x2%3D%22.25%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23ded5c3%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c5c0ae%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url(%23sky)%22%20d%3D%22M0%200h800v720H0z%22%2F%3E%3Ccircle%20cx%3D%22642%22%20cy%3D%22100%22%20r%3D%2237%22%20fill%3D%22%23fff5ce%22%20opacity%3D%22.85%22%2F%3E%3Ccircle%20cx%3D%22642%22%20cy%3D%22100%22%20r%3D%2249%22%20fill%3D%22%23fff5ce%22%20opacity%3D%22.2%22%2F%3E%3Cg%20fill%3D%22%23fffcf2%22%20opacity%3D%22.85%22%3E%3Cpath%20d%3D%22M64%20100c-5-15%208-29%2023-27%205-23%2041-29%2054-8%2018-8%2042%207%2040%2024%2020-1%2029%2014%2022%2024H69c-11%200-14-8-5-13Z%22%2F%3E%3Cpath%20d%3D%22M467%2053c-5-11%207-22%2019-20%209-17%2033-15%2039%200%2015-4%2028%208%2025%2019%2015-1%2024%209%2018%2017h-98c-9%200-13-11-3-16Z%22%2F%3E%3Cpath%20d%3D%22M268%20150c-4-10%207-19%2018-17%206-14%2029-17%2037-2%2015-6%2031%204%2031%2017%2015-1%2022%2010%2015%2016h-99c-8%200-10-9-2-14Z%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23c5cfbf%22%20d%3D%22M0%20255q52-38%20112-23t119%203q75-66%20152-12t141-7q81-42%20129%2011t147%2010v115H0Z%22%2F%3E%3Cpath%20fill%3D%22%23bfc4b4%22%20d%3D%22m0%20274%2080-21%2064%2036%2079-19%2058%2034%20100-30%2091%2022%2077-18%2075%2033%2069-16%20107-31v104H0Z%22%2F%3E%3Cpath%20fill%3D%22%23d8d3c5%22%20stroke%3D%22%23b8b5a6%22%20stroke-width%3D%222%22%20d%3D%22M-15%20295%2044%20255%20119%20259%20154%20292%20237%20294%20263%20331%20333%20331%20359%20368%20452%20367%20475%20341%20555%20339%20584%20300%20649%20297%20677%20259%20753%20253%20815%20276v462H-15Z%22%2F%3E%3Cpath%20fill%3D%22%23c9c5b7%22%20d%3D%22m0%20313%20120-24%2034%2020%2081%207%2024%2037%2074-5%2026%2042%2096-3%2027-24%2076-5%2030-34%2067-2%2036-42%2091-10%2023%2020v47l-103-5-39%2037-76%209-30%2031-74%204-32%2024-111-2-37-37-77-3-36-34-77%201L0%20351Z%22%2F%3E%3Cpath%20fill%3D%22%23b5b4a5%22%20d%3D%22m0%20389%20108-9%2022%2027%2099%206%2039%2028%20112%203%2031-19%20119%201%2032-21%2089-5%2028-35%20121%203v60l-116%202-34%2031-91%201-27%2027-114-7-32%2027-117-4-39-26-112-5-24-24L0%20441Z%22%2F%3E%3Cpath%20fill%3D%22url(%23ground)%22%20d%3D%22M0%20479q53-18%20128-4t128%208q103-27%20204-2t162-4q95-27%20178-7v250H0Z%22%2F%3E%3Cpath%20fill%3D%22%23e9e0cc%22%20d%3D%22M0%20478q74-18%20133-2t123%208q104-24%20204-1t163-4q98-22%20177-9v11q-85-12-178%2011t-165%204q-101-23-199%200t-132-7Q49%20474%200%20490Z%22%2F%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23a6a897%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20opacity%3D%22.5%22%3E%3Cpath%20d%3D%22m61%20325%2053-6m64%2024%2036%201m66%2037%2041%201m76%2026%2034-1m91-17%2039-3m67-28%2034-3m57-38%2044-9%22%2F%3E%3Cpath%20d%3D%22m78%20414%2029%201m65%2035%2041%201m261%209%2032%201m66-18%2025-1m105-41%2046-3%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%239da891%22%20stroke%3D%22%237d8978%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M-10%20462q0-25%2017-26-1-28%2018-28%2016%201%2017%2020%2023-5%2027%2018%2016%201%2017%2024Z%22%2F%3E%3Cpath%20d%3D%22M724%20458q2-18%2017-18-3-24%2015-28%2017-2%2019%2018%2025-5%2026%2022%2017%200%2017%2017Z%22%2F%3E%3Cpath%20d%3D%22M56%20271q-2-15%209-17%207-17%2021-6%2016-8%2019%208%2017-2%2020%2015Z%22%2F%3E%3Cpath%20d%3D%22M680%20266q-1-15%2012-16%202-17%2017-12%2012%200%2013%2014%2018-1%2020%2014Z%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23d4cebd%22%20stroke%3D%22%23a9aa98%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22m23%20558%2010-7%2012%203%205%2010-15%204-13-2Z%22%2F%3E%3Cpath%20d%3D%22m742%20566%2011-11%2017%202%209%2013-14%205-23-2Z%22%2F%3E%3Cpath%20d%3D%22m115%20645%2012-7%2013%204%203%208-21%204Z%22%2F%3E%3Cpath%20d%3D%22m658%20654%2012-5%2011%204-1%208-20%202Z%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%239ca58b%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22m65%20599-4-10m4%2010%206-14m662%2048-4-9m4%209%206-14m-540%2049-4-10m4%2010%205-13%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23adb39a%22%20opacity%3D%22.55%22%20d%3D%22M0%20693q98-18%20180-6t173%203q108-17%20210%202t237-4v32H0Z%22%2F%3E%3C%2Fsvg%3E");background-size:100% 100%;background-repeat:no-repeat}
.quarry-landscape:after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 60px #ece6d210;pointer-events:none}
.quarry-stage{position:absolute;inset:0}
.quarry-stone,.quarry-resident{position:absolute;left:calc(var(--x,50)*1%);top:calc(var(--y,58)*1%);transform:translate(-50%,-50%);width:clamp(78px,21vw,122px);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:0;border:0;background:transparent;color:#383b32;text-decoration:none;outline-offset:5px;border-radius:16px}
.quarry-stone{z-index:var(--depth,2);min-height:88px;cursor:pointer}
.quarry-resident{z-index:1;pointer-events:none}
.quarry-stone:before,.quarry-resident:before{content:'';position:absolute;left:50%;top:calc(clamp(60px,16.5vw,96px) - 9px);transform:translateX(-50%);width:49%;height:8px;border-radius:50%;background:#4b4e3b26;filter:blur(2px)}
.stone-motion{position:relative;display:block;flex:none;width:clamp(60px,16.5vw,96px);height:clamp(60px,16.5vw,96px);transform-origin:50% 88%;animation:quarry-sway 4.4s ease-in-out infinite;animation-delay:var(--delay,0s);will-change:transform}
.stone-motion img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 0 #625f4e12);transition:filter .15s ease}
.quarry-stone:nth-child(3n+2) .stone-motion,.quarry-resident:nth-child(2n) .stone-motion{animation-name:quarry-bob;animation-duration:5.2s}
.quarry-stone:nth-child(3n) .stone-motion{animation-name:quarry-look;animation-duration:6s}
.quarry-stone strong{display:block;max-width:100%;margin-top:5px;padding:5px 9px;border:1px solid #ffffff65;border-radius:99px;background:#f8f5e8e8;box-shadow:0 2px 0 #5a554d0b;color:#393a31;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:700;line-height:1.15;letter-spacing:.05px}
.quarry-stone:hover strong,.quarry-stone:focus-visible strong{background:#fffaf0;border-color:#fff;box-shadow:0 2px 8px #4b443a24}
.quarry-stone:hover img{filter:drop-shadow(0 3px 0 #625f4e12) brightness(1.04)}
.stone-spark{position:absolute;top:6%;right:-3%;width:14px;height:14px;background:#fbefb1;clip-path:polygon(50% 0,62% 35%,100% 50%,64% 64%,50% 100%,36% 64%,0 50%,36% 36%);opacity:0;transform:scale(.4) rotate(-10deg);pointer-events:none}
.quarry-stage.is-greeting .stone-motion{animation:quarry-cheer 1.45s ease-in-out both;animation-delay:0s}
.quarry-stage.is-greeting .stone-spark{animation:quarry-spark 1.45s ease-in-out both}
.quarry-caption{position:absolute;bottom:calc(74px + env(safe-area-inset-bottom));left:14px;right:14px;z-index:3;display:flex;justify-content:center;text-align:center;pointer-events:none}
.cantera-empty{display:flex;flex-direction:column;align-items:center;gap:9px;max-width:260px;padding:13px 17px;border:1px solid #fff7;border-radius:18px;background:#f8f5e4e8;box-shadow:0 4px 16px #675f4312;color:#414638;pointer-events:auto}
.cantera-empty>img{display:none}
.cantera-empty p{margin:0;max-width:230px;font-size:13px;line-height:1.35;color:#484d40}
.quarry-caption.cantera-empty{left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px)}
.cantera-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 20px;border:0;border-radius:12px;background:#eeede7;color:#111210;font-weight:700;text-decoration:none;text-align:center}
.cantera-empty .cantera-action{min-height:36px;padding:9px 16px;border-radius:10px;background:#373e31;color:#fff;font-size:12px}
.quarry-controls{position:absolute;z-index:4;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));pointer-events:none}.quarry-controls button{pointer-events:auto}
.quarry-hint{display:none}
.quarry-greet{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:0;border:1px solid #fff3;border-radius:50%;background:#f3edda;color:#434b36;font-size:23px;line-height:1;box-shadow:inset 0 -2px 0 #555d351a}
.quarry-greet:hover{background:#fff8e6}
.quarry-private strong{background:#e4eadade;border:1px dashed #53624b7a;color:#3e4b35}
.quarry-next{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border:1px solid #555d3540;border-radius:99px;background:#f3edda;color:#434b36;font:700 12px/1.2 'Barlow',system-ui,sans-serif}
.quarry-next:hover{background:#fff8e6;border-color:#555d3560}
.cantera-status{margin:12px 0;color:#c7c9bd;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.quarry-scene>.cantera-status{position:absolute;left:14px;right:14px;bottom:16px;text-align:center;color:#393e32;background:#faf6e8ef;border-radius:14px;padding:13px}
.cantera-status .cantera-action{margin-top:6px}
.stone-sheet{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center;padding:20px 12px max(12px,env(safe-area-inset-bottom));overflow-y:auto;background:#11171080;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:quarry-veil .18s ease-out}
.stone-detail{position:relative;width:100%;max-width:390px;max-height:calc(100svh - 60px);overflow-y:auto;text-align:center;padding:20px 25px 23px;border:1px solid #fff5;border-radius:30px;background:radial-gradient(ellipse at 50% 16%,#e7e7d8,transparent 57%),#f1eddf;color:#34392e;box-shadow:0 20px 80px #0004;animation:quarry-sheet .25s ease-out}
.stone-detail:before{content:'';display:block;width:32px;height:4px;margin:-9px auto 12px;border-radius:3px;background:#777b6840}
.stone-detail>img{display:block;width:min(68%,205px);height:auto;aspect-ratio:1;object-fit:contain;margin:7px auto 0;filter:drop-shadow(0 14px 10px #373f3020)}
.stone-detail h2{margin:13px 0 20px;font:800 34px/1.05 'Barlow Condensed',Impact,sans-serif;overflow-wrap:anywhere}
.stone-detail .cantera-action{display:flex;width:100%;min-height:46px;background:#394133;color:#fff}
.stone-detail .cantera-status{margin:10px 0 0;color:#535c49;font-size:12px}
.stone-detail .cantera-status:empty{display:none}
.close-stone{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:38px;min-height:38px;padding:0;border:1px solid #56614420;border-radius:50%;background:#ffffff85;color:#52594b;font-weight:400;font-size:26px;line-height:1}
.close-stone:hover{background:#555e4510}
.back-cantera{display:inline-block;margin-top:12px;padding:8px;color:#616956;font-size:12px;text-decoration:none}
a:focus-visible,button:focus-visible{outline:3px solid #babab4;outline-offset:4px}
.quarry-stone:focus-visible{outline-color:#53624b}
button:disabled{opacity:.5;cursor:default}
@keyframes quarry-sway{0%,100%{transform:translate(0,0) rotate(-3deg)}45%{transform:translate(var(--drift,4px),var(--bob,-5px)) rotate(4deg)}70%{transform:translate(0,-1px) rotate(0)}}
@keyframes quarry-bob{0%,34%,100%{transform:translateY(0) rotate(2deg)}48%{transform:translateY(var(--bob,-6px)) rotate(-3deg)}60%{transform:translateY(0) scale(1.025,.97)}74%{transform:translateY(-2px) rotate(0)}}
@keyframes quarry-look{0%,26%,100%{transform:rotate(0)}38%,48%{transform:translateX(var(--drift,4px)) rotate(7deg)}65%,76%{transform:translateX(calc(var(--drift,4px)*-1)) rotate(-5deg)}}
@keyframes quarry-cheer{0%,100%{transform:translateY(0) rotate(0)}13%{transform:scale(1.06,.94)}33%{transform:translateY(-16px) rotate(-11deg)}50%{transform:translateY(-11px) rotate(9deg)}68%{transform:translateY(0) scale(1.08,.93)}82%{transform:translateY(-4px) rotate(-3deg)}}
@keyframes quarry-spark{0%,20%,100%{opacity:0;transform:scale(.4) rotate(-10deg)}38%,62%{opacity:1;transform:scale(1) rotate(12deg)}80%{opacity:0;transform:scale(1.25) rotate(25deg)}}
@keyframes quarry-veil{from{opacity:0}to{opacity:1}}
@keyframes quarry-sheet{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:640px){.quarry-stone strong{font-size:13px;padding:6px 11px}.quarry-hint{font-size:12px}.stone-sheet{align-items:center}.stone-detail{padding:27px 30px 24px}.stone-detail:before{display:none}.stone-detail>img{width:220px}.cantera-empty{max-width:300px}.cantera-empty p{font-size:14px}}
@media(max-width:360px){.quarry-stone strong{font-size:10px;padding:5px 7px}.quarry-hint{max-width:145px}.quarry-next{padding:10px 13px}.stone-detail{padding-left:20px;padding-right:20px}}
@media(prefers-reduced-motion:reduce){.stone-motion,.is-greeting .stone-motion,.is-greeting .stone-spark,.stone-sheet,.stone-detail{animation:none!important}.stone-motion{will-change:auto}.stone-motion img{transition:none}.stone-spark{display:none}}
