#arx-root .controls { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
#arx-root button { border: 1px solid #d975b8; border-radius: 22px; background: #281020; color: #fff; padding: 10px 18px; font: inherit; cursor: pointer; }
#arx-root button:hover { background: #451634; }
#arx-root button:focus-visible { outline: 3px solid #ffe65c; outline-offset: 4px; }
#arx-root button:disabled { opacity: .45; cursor: wait; }
#arx-play { background: #a8236e; font-weight: 700; box-shadow: 0 0 22px #ee479b44; }
#arx-stage { --adult: min(480px, 82vw); --small: calc(var(--adult) * .34); position: relative; height: calc(var(--adult) + 60px); margin: 12px auto; overflow: hidden; border-block: 1px solid #211321; isolation: isolate; }
#arx-scene { position: absolute; inset: 0; display: flex; align-items: end; justify-content: center; padding-bottom: 8px; }
#arx-rexy { position: absolute; bottom: 8px; display: block; width: calc(var(--adult) * .28); height: calc(var(--adult) * .28); object-fit: contain; object-position: bottom center; user-select: none; pointer-events: none; transition: width .9s ease, height .9s ease, transform .9s ease, opacity 1.2s ease; transform: translateY(9%); }
#arx-rexy.hen { pointer-events: auto; cursor: pointer; }
#arx-rexy.hen:focus-visible { outline: 3px solid #ffe65c; outline-offset: 4px; }
#arx-rexy.growing { width: calc(var(--adult) * .43); height: calc(var(--adult) * .43); transform: translateY(9%); }
#arx-rexy.juvenile { width: calc(var(--adult) * .59); height: calc(var(--adult) * .59); transform: translateY(8%); }
#arx-rexy.adult, #arx-rexy.smoke { width: var(--adult); height: var(--adult); transform: translateY(1%); }
#arx-rexy.smoke-small { width: calc(var(--adult) * .85); height: calc(var(--adult) * .85); transform: translateY(1%); }
#arx-rexy.hen { width: var(--small); height: var(--small); transform: translateY(1%); transition: opacity 1.2s ease; }
#arx-rexy.evaporating { opacity: 0; }
#arx-mirror-rexy { position: absolute; left: 50%; bottom: 8px; width: var(--small); height: var(--small); object-fit: contain; object-position: bottom center; opacity: 0; transform: translateX(-50%) translateY(1%) scaleX(-1); transition: opacity .8s ease; pointer-events: none; }
#arx-mirror-rexy.visible { opacity: 1; }
/* The new open-mouth PNG already faces left. */
#arx-mirror-rexy.open-mouth { transform: translateX(-50%) translateY(1%); }
#arx-cluck { position: absolute; z-index: 3; left: 50%; bottom: calc(var(--small) + 26px); transform: translateX(-50%) rotate(-7deg); opacity: 0; white-space: nowrap; pointer-events: none; color: #ffe65c; font-size: clamp(32px, 7vw, 66px); font-weight: 950; letter-spacing: .025em; text-shadow: 3px 3px 0 #8c245e, 0 0 20px #e855a855; }
#arx-cluck.visible { opacity: 1; animation: arx-cluck-pop .38s cubic-bezier(.2,.8,.3,1.2) both; }
@keyframes arx-cluck-pop { from { opacity: 0; transform: translateX(-50%) rotate(-7deg) scale(.6); } 70% { opacity: 1; transform: translateX(-50%) rotate(-7deg) scale(1.12); } to { opacity: 1; transform: translateX(-50%) rotate(-7deg) scale(1); } }
#arx-flash { position: absolute; inset: 0; background: #fffbe8; opacity: 0; pointer-events: none; }
#arx-flash.visible { animation: arx-flash .55s ease-out forwards; }
#arx-status { min-height: 1.6em; color: #f2b9df; }
#arx-caption { min-height: 1.6em; color: #ffe9a0; font-size: clamp(18px, 3vw, 25px); }
@keyframes arx-flash { 0% { opacity: 0; } 18% { opacity: .96; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #arx-rexy, #arx-mirror-rexy { transition: none; } #arx-flash.visible { animation: none; opacity: 0; } #arx-cluck.visible { animation: none; } }

#arx-root{width:100%;max-width:760px;margin:24px auto;text-align:center;color:#eee;font:17px/1.5 system-ui,sans-serif;container-type:inline-size}#arx-root,#arx-root *{box-sizing:border-box}#arx-root [hidden]{display:none!important}#arx-root #arx-stage{--adult:min(480px,82vw,100cqw)}