:root{color-scheme:dark;--bg:#131b22;--panel:#1d2831;--ink:#f7f8ef;--muted:#9ba9b3;--accent:#d1f48c;--stroke:#2e3b44;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}button:focus-visible{outline:3px solid #f8c96a;outline-offset:4px}button:disabled{cursor:default}button,svg{flex-shrink:0}[hidden]{display:none!important}.app{width:100%;max-width:500px;min-height:100svh;margin:auto;padding:calc(16px + env(safe-area-inset-top)) 24px max(8px,env(safe-area-inset-bottom));display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.brand{font-size:23px;font-weight:850;letter-spacing:-1px;display:flex;align-items:center;gap:7px}.brand-dot{color:var(--accent);margin-left:-6px}.brand-mark{font-size:34px;line-height:1;color:var(--accent);margin-right:2px}.icon-button{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--stroke);border-radius:50%;background:transparent;color:var(--muted)}.icon-button svg{width:21px;height:21px}.sound-on{display:none}.sound[aria-pressed=true]{color:var(--accent);border-color:#61734d}.sound[aria-pressed=true] .sound-on{display:block}.sound[aria-pressed=true] .sound-off{display:none}.game-tabs{display:flex;background:#0d141a;padding:5px;border:1px solid #25313a;border-radius:18px;gap:5px}.game-tab{flex:1;border:0;border-radius:12px;min-height:46px;font-weight:700;color:var(--muted);background:transparent;display:flex;justify-content:center;align-items:center;gap:9px;font-size:16px}.game-tab>span{font-size:25px;line-height:1}.game-tab svg{width:26px;height:23px}.game-tab.active{background:var(--panel);color:var(--accent);box-shadow:0 2px 5px #0003}.game-screen{flex:1;display:flex;flex-direction:column}.intro{text-align:center;padding-top:27px}.eyebrow{font-size:10px;letter-spacing:2.1px;font-weight:700;color:var(--accent);margin:0 0 9px}h1{font-size:32px;letter-spacing:-1.4px;line-height:1.25;margin:0 0 9px}.subtitle{font-size:14px;color:var(--muted);margin:0;line-height:1.5}.dice-stage{flex:1;position:relative;min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 0 18px}.orbit{position:absolute;top:44%;left:50%;border:1px solid #d1f48c0d;border-radius:50%;pointer-events:none;transform:translate(-50%,-50%)}.orbit-one{width:210px;height:210px}.orbit-two{width:290px;height:290px}.stage-spark{position:absolute;color:#d1f488;pointer-events:none}.spark-one{top:22%;left:14%;font-size:25px;transform:rotate(12deg)}.spark-two{right:13%;top:48%;font-size:23px}.dice-pair{position:relative;display:flex;justify-content:center;align-items:center;gap:23px;min-height:123px}.die{width:112px;height:112px;border-radius:25px;padding:20px;background:linear-gradient(135deg,#fffef5,#e9eddd 75%);box-shadow:inset 0 2px 1px #fff,0 7px 0 #a4ae98,0 12px 0 #0a1116,0 18px 24px #0005;transform:rotate(-10deg)}.die:nth-child(2){transform:rotate(12deg);background:linear-gradient(135deg,#e0f8ba,#b9e785);box-shadow:inset 0 2px 1px #f6ffe7,0 7px 0 #7eab53,0 12px 0 #0a1116,0 18px 24px #0005}.die-face{display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);gap:9px;width:100%;height:100%}.pip{display:block;width:100%;aspect-ratio:1;border-radius:50%;background:#24382b;box-shadow:inset 0 1px 2px #0005}.pip.blank{visibility:hidden}.result{text-align:center;z-index:1;margin-top:28px;min-height:63px;display:flex;flex-direction:column;align-items:center;gap:4px}.result>span{color:var(--muted);font-size:13px}.result strong{font-size:30px;letter-spacing:5px;line-height:1.2;font-weight:850;color:var(--accent)}.result.has-result strong{font-size:40px;letter-spacing:-1px}.rolling .die{animation:tumble .65s ease-in-out}.rolling .die:nth-child(2){animation-name:tumble-two}.dice-options{display:flex;align-items:center;justify-content:space-between;margin:5px 0 18px;font-size:14px;color:#c4ccd0}.count-tabs{display:flex;padding:4px;background:#0d141a;border:1px solid #29353e;border-radius:13px;gap:3px}.count-tabs button{border:0;background:transparent;border-radius:9px;min-height:38px;min-width:59px;font-size:14px;font-weight:700;color:var(--muted)}.count-tabs button.active{background:#334139;color:var(--accent)}.section-label{display:flex;align-items:center;justify-content:space-between;min-height:30px;font-size:13px;color:#cad2d6}.section-label small{margin-left:6px;color:#7f909e;font-size:11px}.section-label button{border:0;background:transparent;color:var(--muted);font-size:12px;min-height:34px;padding:5px 0 5px 15px}.section-label button:disabled{opacity:.35}#history{display:flex;gap:7px;list-style:none;padding:0;margin:6px 0 0;align-items:center;min-height:46px;overflow-x:auto;scrollbar-width:none}#history li{width:calc((100% - 49px)/8);min-width:30px;flex-shrink:0;height:43px;border:1px solid var(--stroke);border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:16px;font-weight:700;color:#b8c4cd;background:#19232b}#history li:first-child{color:var(--accent);border-color:#5d704c;background:#222f28}#history li small{font-size:9px;letter-spacing:.2px;color:var(--muted);font-weight:400}#history .history-empty{width:100%;font-size:12px;font-weight:400;color:#7f909e;border:1px dashed var(--stroke);background:transparent}.bottom{margin-top:auto;padding-top:23px}.primary{border:0;min-height:60px;border-radius:18px;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;background:var(--accent);color:#1b2b20;font-size:18px;font-weight:800;box-shadow:0 4px 0 #7d9950;transition:transform .1s,background .1s}.primary:active{transform:translateY(3px);box-shadow:0 1px 0 #7d9950}.primary:disabled{opacity:.7}.roll-icon{font-size:29px;line-height:1}.footnote{text-align:center;font-size:11px;color:#7f909e;margin:15px 0 6px}.croc-stage{min-height:250px;flex:1;display:flex;align-items:center;justify-content:center;padding:5px 0}.croc-character{position:relative;width:min(100%,360px);aspect-ratio:360/320;isolation:isolate}.croc-art{width:100%;height:100%;display:block}.croc-mouth{position:absolute;left:8.5%;top:43%;width:83%;height:40%;border-radius:22% 22% 28% 28%;background:#17231f;border:5px solid #2d7954;display:flex;flex-direction:column;justify-content:space-between;padding:1px 3px;overflow:hidden;transition:height .18s,top .18s;box-shadow:inset 0 10px 15px #0005}.teeth-row{display:flex;width:100%;position:relative;z-index:1;justify-content:space-between}.teeth-row button{min-width:0;flex:1;position:relative;height:46px;border:0;background:transparent;padding:0;display:flex;justify-content:center;align-items:flex-start}.teeth-row button::before{content:"";display:block;width:75%;height:37px;background:linear-gradient(90deg,#d5dbc1,#fffde7);border-radius:5px 5px 11px 11px;box-shadow:0 3px 0 #a3b593;transition:transform .15s,opacity .15s}.teeth-row.lower button{align-items:flex-end}.teeth-row.lower button::before{border-radius:11px 11px 5px 5px;box-shadow:0 -2px 0 #a3b593}.teeth-row button:active::before{transform:translateY(-5px)}.teeth-row.lower button:active::before{transform:translateY(5px)}.teeth-row button.pressed::before{transform:translateY(-34px);opacity:0}.teeth-row.lower button.pressed::before{transform:translateY(34px)}.teeth-row button.pressed::after{content:"·";position:absolute;color:#568969;font-size:26px;top:-5px}.teeth-row.lower button.pressed::after{top:auto;bottom:-5px}.tongue{position:absolute;bottom:10%;left:27%;width:46%;height:35%;border-radius:50% 50% 20% 20%;background:#c96a73;opacity:.6}.snap-burst{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%) rotate(-12deg) scale(0);font-size:64px;font-weight:950;color:#ffd27f;-webkit-text-stroke:2px #293422;text-shadow:3px 4px #293422;transition:transform .18s}.snapped{animation:chomp .3s ease-out}.snapped .croc-mouth{top:57%;height:5%;border-width:3px;padding:0}.snapped .teeth-row,.snapped .tongue{visibility:hidden}.snapped .snap-burst{transform:translate(-50%,-50%) rotate(-12deg) scale(1)}.snapped .croc-pupils{transform:translateY(5px)}.croc-status{text-align:center;padding:0 0 6px}.status-pill{display:inline-block;padding:7px 12px;background:#243b2e;border:1px solid #395c42;color:#c5e5a9;font-size:12px;border-radius:30px}.croc-status h2{margin:15px 0 8px;font-size:21px;letter-spacing:-.7px}.croc-status p{color:var(--muted);font-size:13px;margin:0}.croc-primary{background:#96dbad;box-shadow:0 4px 0 #528c69}body[data-game=croc] .eyebrow{color:#96dbad}body[data-game=croc] .brand-dot,body[data-game=croc] .brand-mark,body[data-game=croc] .game-tab.active{color:#96dbad}dialog{width:min(90%,360px);background:var(--panel);color:var(--ink);border:1px solid var(--stroke);border-radius:24px;padding:25px}dialog::backdrop{background:#000a;backdrop-filter:blur(5px)}dialog h2{font-size:21px;margin:0 0 12px}dialog p{font-size:14px;color:var(--muted);margin:0 0 25px}.dialog-actions{display:flex;gap:12px}.dialog-actions button{flex:1;font-size:15px;min-height:49px;border-radius:12px}.secondary{background:#2d3a43;border:0} @keyframes tumble{0%{transform:rotate(-10deg) translateY(0)}25%{transform:rotate(28deg) translateY(-25px)}55%{transform:rotate(-35deg) translateY(-12px)}80%{transform:rotate(9deg) translateY(0)}100%{transform:rotate(-10deg)}}@keyframes tumble-two{0%{transform:rotate(12deg)}25%{transform:rotate(-25deg) translateY(-18px)}55%{transform:rotate(40deg) translateY(-26px)}80%{transform:rotate(-8deg)}100%{transform:rotate(12deg)}}@keyframes chomp{30%{transform:rotate(-5deg) scale(1.04)}65%{transform:rotate(4deg)}100%{transform:rotate(0)}}@media(min-height:780px){.app{min-height:100svh}.intro{padding-top:34px}.dice-stage{min-height:310px}.croc-stage{min-height:330px}.bottom{padding-top:28px}}@media(max-height:680px){.app{padding-top:calc(7px + env(safe-area-inset-top));padding-inline:20px}.topbar{margin-bottom:10px}.intro{padding-top:18px}.eyebrow{margin-bottom:6px}h1{font-size:28px;margin-bottom:6px}.dice-stage{min-height:215px;padding:19px 0 10px}.orbit-one{width:170px;height:170px}.orbit-two{width:230px;height:230px}.die{width:95px;height:95px;padding:16px;border-radius:22px}.dice-pair{min-height:105px}.result{margin-top:18px;min-height:51px}.result strong{font-size:26px}.result.has-result strong{font-size:34px}.dice-options{margin-bottom:7px}.bottom{padding-top:16px}.primary{min-height:54px}.footnote{margin-top:11px}.croc-stage{min-height:210px}.croc-character{width:min(100%,285px)}.croc-status h2{margin-top:11px;font-size:19px}.croc-status{padding:0}.teeth-row button{height:41px}.teeth-row button::before{height:31px}}@media(max-width:350px){.app{padding-inline:16px}.brand{font-size:21px}.dice-pair{gap:20px}.die{width:99px;height:99px;padding:17px}.dice-options{margin-top:0}.game-tab{font-size:15px}.croc-status h2{font-size:19px}}@media(prefers-reduced-motion:reduce){*,*::before{animation:none!important;transition:none!important}}
