@font-face{font-family:"Nunito Game";font-style:normal;font-weight:600 1000;font-display:swap;src:url("/assets/fonts/nunito.e22c276117e4.woff") format("woff");}
:root { font-family: 'Nunito Game', ui-rounded, system-ui, sans-serif; color: #183c2d; background: #faf7ee; font-synthesis: none; --paper: #faf7ee; --forest: #183c2d; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { font: inherit; cursor: pointer; color: inherit; border: 0; user-select: none; -webkit-user-select: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #d4a74d; outline-offset: 5px; }
button:disabled { cursor: default; }
[hidden] { display: none!important; }
a { color: inherit; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app { position: relative; width: 100%; max-width: 680px; min-height: 100svh; margin: 0 auto; padding: 26px 28px 32px; display: flex; flex-direction: column; isolation: isolate; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 20px; font-weight: 1000; letter-spacing: -.5px; white-space: nowrap; }
.brand img { width: 42px; height: 42px; mix-blend-mode: multiply; }
.header-actions { display: flex; gap: 9px; }
.icon-button { height: 42px; width: 42px; border: 1.5px solid #a7b78c; border-radius: 50%; background: #eff2da; display: grid; place-items: center; box-shadow: 0 2px 0 #d3d9bc; transition: background .2s, transform .2s; }
.icon-button:hover { background: #e0e9bd; transform: translateY(-1px); }
.icon-button svg { width: 20px; height: 20px; fill: currentColor; }
.help-button { font-size: 25px; font-weight: 1000; }
.play-area { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 10px 0 20px; }
.croc-stage { position: relative; width: min(calc(100% + 40px), calc(100svh - 200px)); margin: 0 -20px; flex-shrink: 0; aspect-ratio: 1; transform-origin: center 72%; }
.croc-sprite { position: absolute; inset: 0; background-image: url('/assets/crocodile-atlas.38896ac42d91.webp'); background-size: 200% 100%; background-position: 0 0; pointer-events: none; }
.croc-stage.is-bitten .croc-sprite { background-position: 100% 0; }
.teeth, .tooth-visuals { position: absolute; inset: 0; }
.tooth-visuals { pointer-events: none; }
/* Artwork is clipped behind the mouth rim; transparent tap targets stay separate. */
.tooth { position: absolute; left: var(--x); top: var(--y); width: 10%; height: 12.5%; padding: 0; transform: translate(-50%, -50%); background: transparent; border-radius: 38%; z-index: 2; }
.tooth-art { position: absolute; left: var(--x); top: var(--root); width: 12.5%; height: 13.4%; background: url('/assets/teeth-3d.ff3762755608.webp') 0 0 / 200% 100% no-repeat; transform: translate(-50%, -11.5%) rotate(var(--angle)); transform-origin: 50% 11.5%; transition: transform .22s ease-in, opacity .18s ease-in, filter .15s; }
.tooth-art.lower { background-position: 100% 0; transform: translate(-50%, -90%) rotate(var(--angle)); transform-origin: 50% 90%; }
.tooth-art.is-hovered { filter: brightness(1.06); }
.tooth-art.is-pressed { transform: translate(-50%, -11.5%) rotate(var(--angle)) translateY(-45%) scaleY(.04); opacity: 0; }
.tooth-art.lower.is-pressed { transform: translate(-50%, -90%) rotate(var(--angle)) translateY(45%) scaleY(.04); }
.is-bitten .teeth, .is-bitten .tooth-visuals { opacity: 0; pointer-events: none; }
.croc-stage.biting { animation: bite .48s ease-in-out; }
.croc-stage.resetting { animation: reset .35s ease-out; }
.croc-stage.nodding { animation: nod .22s ease-out; }
.bite-burst { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-9deg) scale(.6); font-size: clamp(28px, 6vw, 45px); font-weight: 1000; color: #fff6d6; -webkit-text-stroke: 1px #6a281c; text-shadow: 0 3px 0 #a14824; opacity: 0; pointer-events: none; white-space: nowrap; }
.biting .bite-burst { animation: burst .65s ease-out; }
.game-footer { width: 100%; max-width: 340px; align-self: center; padding-bottom: 4px; }
.new-round { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 11px; border-radius: 100px; background: var(--forest); color: #fffdf0; font-weight: 900; font-size: 20px; box-shadow: 0 4px 0 #0a2c1a, 0 6px 14px #244f2410; transition: transform .15s, background .15s, box-shadow .15s; }
.new-round:hover { background: #23583d; transform: translateY(-1px); }
.new-round:active { transform: translateY(3px); box-shadow: 0 1px 0 #0a2c1a; }
.new-round:disabled { opacity: .55; transform: none; box-shadow: 0 2px 0 #0a2c1a; }
.connection-notice { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); width: min(340px, calc(100% - 36px)); padding: 12px 16px; border-radius: 18px; background: #f5ead6; color: #6c4d28; box-shadow: 0 4px 20px #183c2d10; font-size: 12px; font-weight: 750; text-align: center; z-index: 10; }
.connection-notice button { background: transparent; text-decoration: underline; font-weight: 900; padding: 7px 10px 0; }
.new-round svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.ambient-leaves { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.leaf { position: absolute; width: 100px; height: 140px; fill: currentColor; color: #90b36b; opacity: .35; }
.leaf-one { left: calc(50% - 470px); top: 22%; transform: rotate(-37deg); }
.leaf-two { right: calc(50% - 470px); bottom: 21%; transform: rotate(30deg); }
dialog { position: fixed; max-width: 410px; width: calc(100% - 32px); padding: 32px 27px 28px; border: none; border-radius: 30px; background: var(--paper); color: var(--forest); box-shadow: 0 20px 90px #122b2840; }
dialog::backdrop { background: #152d2280; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: #e9edd4; font-size: 28px; }
.help-icon { display: block; margin: 0 auto 12px; }
dialog h2 { text-align: center; font-size: 24px; letter-spacing: -.6px; line-height: 1.2; }
dialog p { font-size: 14px; line-height: 1.65; }
.join-form { margin: 20px 0; padding-bottom: 18px; border-bottom: 1px solid #d6dec2; }
.join-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 900; }
.join-fields { display: flex; gap: 8px; }
.join-fields input { width: 100%; min-width: 0; font: inherit; font-size: 17px; font-weight: 850; text-transform: uppercase; letter-spacing: 1px; background: #fffdf5; color: var(--forest); border: 1px solid #bac8a1; border-radius: 10px; padding: 10px; }
.join-fields button { background: var(--forest); color: var(--paper); padding: 10px 15px; border-radius: 10px; font-weight: 850; white-space: nowrap; }
#join-error { font-size: 12px; line-height: 1.4; margin: 7px 0 0; color: #a14a31; }
dialog .new-round { font-size: 17px; min-height: 50px; margin-top: 24px; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: 20%; width: 8px; height: 13px; background: var(--color); border-radius: 2px; animation: confetti 1.6s var(--delay) ease-out both; left: var(--left); }
@keyframes bite { 0% { transform: scale(1); } 20% { transform: scale(1.05) rotate(-2deg); } 40% { transform: scale(.92) rotate(3deg); } 60% { transform: scale(1.03) rotate(-2deg); } 100% { transform: scale(1); } }
@keyframes burst { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-9deg) scale(.5); } 20%, 65% { opacity: 1; transform: translate(-50%, -50%) rotate(-9deg) scale(1); } 100% { opacity: 0; transform: translate(-50%, -70%) rotate(-9deg) scale(1.1); } }
@keyframes reset { 0% { transform: scale(.91); opacity: .6; } 100% { transform: scale(1); opacity: 1; } }
@keyframes nod { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes confetti { 0% { opacity: 0; transform: translateY(-35px) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(340px) rotate(560deg); } }
@media(max-width:540px) { .app { padding: 18px 24px 27px; } .brand { font-size: 18px; } .brand img { width: 35px; height: 35px; } .header-actions { gap: 7px; } .icon-button { width: 38px; height: 38px; } .new-round { font-size: 19px; min-height: 53px; } .leaf-one { left: -60px; top: 20%; width: 75px; } .leaf-two { right: -62px; bottom: 21%; width: 80px; } }
@media(max-width:360px) { .app { padding: 14px 18px 24px; } .brand { font-size: 16px; gap: 6px; } .brand img { width: 31px; height: 31px; } .header-actions { gap: 6px; } .icon-button { width: 36px; height: 36px; } .croc-stage { width: min(calc(100% + 36px), calc(100svh - 160px)); margin: 0 -18px; } }
@media(max-height:460px) and (min-width:541px) { .app { padding-top: 12px; padding-bottom: 16px; } .play-area { padding: 0; } .croc-stage { width: calc(100svh - 142px); } .new-round { min-height: 45px; font-size: 17px; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation: none!important; transition: none!important; } }
@supports(padding:env(safe-area-inset-bottom)) { .app { padding-bottom: max(27px, env(safe-area-inset-bottom)); } }
