/* Original green fox and pink pig, in a little brass-and-glass theatre. */
.crystal-pets{margin-top:29px;border-top:1px solid var(--line);padding-top:16px;max-width:530px;min-width:0}
.crystal-heading{display:flex;align-items:center;gap:10px}
.crystal-heading>span{font-size:18px;color:var(--gold)}
.crystal-heading p{font:9px/1.5 var(--sans);letter-spacing:2px;color:var(--gold)}
.crystal-heading h2{font:18px/1.5 var(--serif);color:var(--cream)}
.crystal-collapse{margin-left:auto;width:44px;height:44px;flex-shrink:0;border:1px solid #d4b57335;background:#182b22;border-radius:50%;font:21px/1 Georgia;color:var(--gold)}
.crystal-body{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px;align-items:center;margin-top:5px}
.crystal-stage{position:relative;width:220px;height:244px;isolation:isolate}
.crystal-stage::after{content:'';position:absolute;left:12%;right:12%;bottom:4px;height:18px;border-radius:50%;background:#030b07;filter:blur(8px);z-index:-1;opacity:.7}
.crystal-glass{display:block;position:relative;width:208px;height:208px;margin:0 auto;padding:0;border-radius:50%;overflow:hidden;isolation:isolate;border:1px solid #e1d6a883;background:radial-gradient(ellipse at 32% 15%,#f7e9bd35,transparent 45%),radial-gradient(ellipse at 62% 72%,#91b58140,transparent 57%),linear-gradient(155deg,#476753b3,#172f27 56%,#284b39);box-shadow:inset 2px 2px 3px #fff6d350,inset -5px -7px 14px #02150f9c,inset 0 0 24px #abc6a21f,0 0 26px #c0ab6020;transform:translateZ(0)}
.crystal-glass::before{content:'';position:absolute;z-index:6;inset:8px;border-radius:50%;border-top:1px solid #fff8dbb3;border-left:1px solid #fff8db40;pointer-events:none;background:linear-gradient(127deg,transparent 8%,#fff7cd26 13%,transparent 27%,transparent 68%,#f1e2ab12 82%,transparent 86%)}
.crystal-glass::after{content:'';position:absolute;z-index:6;width:17px;height:51px;top:25px;left:29px;border-radius:50%;background:linear-gradient(#fffce4a6,#ffefc312);transform:rotate(35deg);filter:blur(2px);pointer-events:none}
.crystal-moon{position:absolute;top:24px;right:41px;width:25px;height:25px;border-radius:50%;box-shadow:5px 1px 0 #f8dfa0;transform:rotate(18deg);opacity:.85}
.crystal-stars{position:absolute;inset:0;color:#f4dfa0;font:12px/1 Georgia;pointer-events:none}
.crystal-stars i{position:absolute;font-style:normal;animation:crystal-twinkle 5s ease-in-out infinite paused}
.crystal-stars i:nth-child(1){top:29%;left:25%}.crystal-stars i:nth-child(2){top:18%;left:47%;font-size:7px;animation-delay:-2s}.crystal-stars i:nth-child(3){top:44%;right:16%;font-size:8px;animation-delay:-3s}.crystal-stars i:nth-child(4){top:50%;left:12%;font-size:6px;animation-delay:-1s}
.crystal-ground{position:absolute;left:13%;right:13%;height:37px;bottom:13px;border-radius:50%;background:radial-gradient(ellipse,#76916d66,#46654e50 58%,transparent 70%);border-top:1px solid #d4bd7b40;box-shadow:0 -11px 31px #9dab6d18}
.crystal-pet{position:absolute;width:118px;height:118px;bottom:23px;z-index:3;transform-origin:50% 85%;animation:crystal-breathe 4s ease-in-out infinite paused;pointer-events:none}
.crystal-fox{left:8px}.crystal-pig{right:0;bottom:21px;width:109px;height:109px;z-index:4;animation-delay:-1.5s}
.crystal-sprite{display:block;width:100%;height:100%;background-image:url('/assets/crystal/green-fox-pig-atlas.png');background-size:400% 400%;background-repeat:no-repeat;filter:drop-shadow(0 5px 3px #0a1c1560)}
.crystal-base{position:absolute;bottom:12px;left:17px;width:186px;height:43px;z-index:7;border:1px solid #ead69a99;border-radius:38% 38% 8px 8px / 40% 40% 8px 8px;background:repeating-linear-gradient(90deg,#0000 0 5px,#31280f22 5px 6px),linear-gradient(90deg,#6d542d,#d4b778 15%,#ebd5a1 35%,#b29354 67%,#6c522c 98%);box-shadow:inset 0 4px 0 #f6e3b359,inset 0 -5px 0 #362b186b,0 5px 9px #0007;text-align:center}
.crystal-base>span{position:absolute;top:12px;left:13px;font:6px/1.3 Georgia;letter-spacing:1.3px;color:#42351f}
.crystal-mode{position:absolute;left:calc(50% - 22px);top:-1px;width:44px;height:44px;background:radial-gradient(circle,#e9d39d,#b99956 56%,#6e542d 59%,#dac18b 64%,#8f703a 72%);border-radius:50%;box-shadow:0 3px 5px #0007;color:#3f341f;font:19px/1 Georgia}
.crystal-mode[aria-pressed=true]{color:#fcebc0;background:radial-gradient(circle,#35523a,#132d23 58%,#b89a60 63%,#76613b 72%)}
.crystal-base .crystal-mode-label{position:absolute;top:13px;left:auto;right:8px;max-width:61px;text-align:center;font:7px/1.3 var(--sans);letter-spacing:0;color:#3d321d}
.crystal-ascii{display:none;position:absolute;inset:54px 0 auto;margin:0;text-align:center;color:#f5e8bc;font:11px/1.35 'SFMono-Regular',Consolas,monospace;text-shadow:0 0 8px #e5c78650;pointer-events:none;white-space:pre}
.crystal-pets[data-mode=ascii] .crystal-pet{display:none}.crystal-pets[data-mode=ascii] .crystal-ascii{display:block}
.crystal-pets[data-art=pending] .crystal-pet{visibility:hidden}.crystal-pets[data-art=pending] .crystal-ascii{display:block}.crystal-mode:disabled{cursor:default;opacity:1}
.crystal-info{padding-bottom:12px;min-width:0}.crystal-intro{font:10px/1.7 var(--sans);color:var(--muted)}
.crystal-status{font:13px/1.8 var(--serif);color:var(--gold-light);margin:8px 0 12px;min-height:47px}
.crystal-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.crystal-actions button{min-height:44px;padding:7px 8px;border:1px solid #c7ad714d;border-radius:4px;background:linear-gradient(135deg,#344a33,#1e3428);color:#e6d6aa;font:10px/1.4 var(--sans);overflow-wrap:anywhere;box-shadow:inset 0 1px #f5e3b00d}
.crystal-actions button:hover{background:#3b5137;border-color:#e8d395}.crystal-motion{min-height:44px;background:transparent;padding:7px 0 0;color:var(--muted);font:9px/1.4 var(--sans);text-decoration:underline;text-underline-offset:4px}.crystal-motion:disabled{cursor:default;opacity:.7}
.crystal-pets[data-running=true] .crystal-pet,.crystal-pets[data-running=true] .crystal-stars i{animation-play-state:running}
.crystal-pets[data-scene=walk] .crystal-pet{animation-name:crystal-promenade;animation-duration:7s}.crystal-pets[data-scene=walk] .crystal-pig{animation-delay:-.5s}
.crystal-pets[data-scene=greet] .crystal-fox{animation-name:crystal-greeting;animation-duration:1.5s}
.crystal-pets[data-scene=feed] .crystal-pig{animation-name:crystal-happy;animation-duration:1.8s}
.crystal-pets[data-scene=scared] .crystal-pig{right:13px;bottom:19px;transform:scale(.91)}
.crystal-pets[data-scene=nap] .crystal-pet{animation-duration:6s;bottom:18px}
.crystal-pets[data-collapsed=true]{padding-bottom:6px}
@keyframes crystal-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.015)}}
@keyframes crystal-twinkle{0%,100%{opacity:.35}50%{opacity:.95}}
@keyframes crystal-promenade{0%,100%{transform:translateX(-5px) translateY(0)}25%{transform:translateX(3px) translateY(-3px)}50%{transform:translateX(9px) translateY(0)}75%{transform:translateX(3px) translateY(-3px)}}
@keyframes crystal-greeting{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(3deg) translateY(-3px)}}
@keyframes crystal-happy{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px) rotate(2deg)}}
@media(min-width:801px){.hero{align-items:start}.world-deck{margin-top:35px}.hero-signature{margin-top:25px}.hero-kicker{margin-top:23px}}
@media(min-width:801px) and (max-width:1100px){.crystal-body{grid-template-columns:190px minmax(0,1fr);gap:3px}.crystal-stage{width:190px;height:222px}.crystal-glass{width:184px;height:184px}.crystal-base{left:9px;width:172px}.crystal-pet{width:106px;height:106px;left:4px}.crystal-pig{left:auto;right:0;width:98px;height:98px}.crystal-ascii{font-size:10px;top:45px}.crystal-heading h2{font-size:16px}.crystal-status{font-size:12px}.crystal-actions button{font-size:9px;padding-inline:4px}}
@media(max-width:800px){.crystal-pets{max-width:540px;margin-top:27px}.crystal-body{grid-template-columns:210px minmax(0,1fr)}.crystal-stage{width:210px}.crystal-base{left:12px}}
@media(max-width:430px){.crystal-body{grid-template-columns:174px minmax(0,1fr);gap:8px}.crystal-stage{width:174px;height:210px}.crystal-glass{width:172px;height:172px}.crystal-base{left:5px;width:164px;height:40px;bottom:10px}.crystal-pet{width:99px;height:99px;left:0;bottom:20px}.crystal-pig{left:auto;right:-1px;width:94px;height:94px;bottom:18px}.crystal-moon{top:20px;right:34px;width:21px;height:21px}.crystal-ascii{font-size:10px;top:42px}.crystal-heading h2{font-size:17px}.crystal-heading p{font-size:8px}.crystal-info{padding-bottom:3px}.crystal-status{font-size:11px;min-height:40px;margin:6px 0}.crystal-intro{font-size:9px}.crystal-actions{gap:5px}.crystal-actions button{font-size:9px;padding:5px 4px}.crystal-base .crystal-mode-label{max-width:52px;font-size:6px;right:5px}.crystal-base>span{font-size:5px;left:8px}.crystal-motion{font-size:8px}.crystal-glass::after{left:23px;top:20px}}
@media(max-width:350px){.crystal-body{grid-template-columns:154px minmax(0,1fr);gap:4px}.crystal-stage{width:154px;height:197px}.crystal-glass{width:152px;height:152px}.crystal-base{width:148px;left:3px}.crystal-pet{width:90px;height:90px;bottom:17px}.crystal-pig{width:85px;height:85px}.crystal-ascii{font-size:9px;top:38px}.crystal-heading h2{font-size:15px}.crystal-intro{display:none}}
@media(prefers-reduced-motion:reduce){.crystal-pet,.crystal-stars i{animation:none!important}.crystal-glass{transform:none}}
