:root{color-scheme:dark;font:16px/1.55 system-ui,sans-serif;--bg:#100d17;--panel:#1d1728;--edge:#4a385d;--ink:#faf6ff;--muted:#c9bfd4;--green:#b1f874}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#291938,var(--bg) 36rem);color:var(--ink);min-height:100vh}[hidden]{display:none!important}
.shell{width:min(100% - 2rem,1000px);margin:auto}.bar{border-bottom:1px solid var(--edge);background:#14101d}.top,nav,footer,.actions,#filters,.dialog-head{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.top{justify-content:space-between;padding:.75rem 0}.brand{display:flex;align-items:center;gap:.45rem;color:var(--ink);font-weight:750;text-decoration:none;letter-spacing:.04em}.brand b{color:var(--green)}
button,input,select,textarea{font:inherit;color:inherit;border:1px solid var(--edge);border-radius:.55rem;background:#181222;padding:.5rem .7rem;min-height:44px}button,summary{cursor:pointer}.primary{background:#a9ec6f;color:#142006;border-color:#d0ffab;font-weight:750}a{color:#dbbbff;text-underline-offset:.18em}button:hover{border-color:var(--green)}:focus-visible,.pad-focus{outline:3px solid var(--green);outline-offset:3px}.skip{position:absolute;top:-5rem}.skip:focus{top:0}
h1{font-size:clamp(1.65rem,4vw,2.35rem);margin:1.2rem 0 .65rem}h2{line-height:1.22;margin:.25rem 0 .5rem}h3{margin:.2rem 0}.hint,small,.meta{color:var(--muted)}#filters{align-items:end;margin-bottom:1rem}#filters label:first-child{flex:1 1 16rem}label{display:grid;gap:.2rem}input,select,textarea{width:100%;min-width:0}textarea{min-height:7.5rem;resize:vertical}
.card,.comment,.empty,details#stats{background:var(--panel);border:1px solid var(--edge);border-radius:1rem;margin:.65rem 0;padding:1rem;overflow-wrap:anywhere}.card{display:grid;grid-template-columns:3rem minmax(0,1fr);gap:.8rem}.votes{display:grid;justify-items:center;align-content:start;gap:.15rem}.votes button{width:44px;padding:.1rem}.votes button[aria-pressed=true]{color:var(--green);border-color:var(--green)}.comment .votes{display:flex;align-items:center}.comment{border-radius:.65rem;padding:.7rem}.branches{border-inline-start:2px solid var(--edge);padding-inline-start:.45rem}.prose{white-space:pre-wrap}.prose p{margin:.45rem 0}dt{color:var(--muted)}dd{margin:0}dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem}.config{background:#241a32;padding:.65rem;border-radius:.5rem}footer{padding:1rem 0 2rem;border-top:1px solid var(--edge);margin-top:1rem!important}.dialog-head{justify-content:space-between}dialog{width:min(94vw,660px);max-height:90dvh;background:var(--panel);color:var(--ink);border:1px solid var(--edge);border-radius:1rem;padding:1rem}dialog::backdrop{background:#08060bd9}form.stack{display:grid;gap:.75rem}#status,#modal-status{color:var(--green)}.legal{max-width:720px}pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:640px){.top nav{width:100%;justify-content:space-between;gap:.35rem}.top nav a{font-size:.86rem}.top nav button{padding:.35rem;font-size:.83rem}.card{grid-template-columns:2.75rem minmax(0,1fr);padding:.65rem;gap:.5rem}#filters>label:not(:first-child){flex:1 1 36%}}
@media(prefers-reduced-motion:no-preference){button{transition:border-color .14s,background-color .14s}}


/* Independent interactive mascot: no overlay over modals, no external requests. */
.ally-pet{position:fixed;z-index:15;width:78px;height:78px;pointer-events:none;isolation:isolate}
.ally-pet button{pointer-events:auto}
.ally-pet-button{position:absolute;inset:0;display:grid;place-items:center;width:78px;height:78px;padding:4px;min-height:0;border:0;background:transparent;touch-action:none;user-select:none;cursor:grab}
.ally-pet-button:hover{border:0}
.ally-pet-button > img{width:64px;height:64px;object-fit:contain;pointer-events:none;transform-origin:50% 85%;filter:drop-shadow(0 3px 6px #0009)}
.ally-pet[data-dragging] .ally-pet-button{cursor:grabbing}
.ally-pet[data-dragging] .ally-pet-button > img{transform:rotate(-12deg) scale(1.05)}
.ally-pet-hide{position:absolute;top:-2px;right:-2px;width:28px;height:28px;min-height:0;padding:0;line-height:1;font-size:1.1rem;border-radius:50%;background:#1d1728e8;color:var(--muted)}
.ally-pet-restore{display:none;position:absolute;inset:auto 0 0 auto;min-height:44px;font-size:.8rem;color:var(--green);border-color:#78639a;border-radius:1rem}
.ally-pet[data-minimized]{width:58px;height:44px}
.ally-pet[data-minimized] .ally-pet-button,.ally-pet[data-minimized] .ally-pet-hide{display:none}
.ally-pet[data-minimized] .ally-pet-restore{display:block}
.ally-pet-speech{position:absolute;bottom:calc(100% + 5px);right:0;max-width:min(170px,calc(100vw - 24px));width:max-content;padding:.35rem .65rem;background:#251a35;border:1px solid #8764b1;border-radius:.75rem;color:#faf6ff;font-size:.78rem;line-height:1.3;opacity:0;visibility:hidden;pointer-events:none;overflow-wrap:anywhere;box-shadow:0 4px 12px #0006}
.ally-pet-speech.visible{opacity:1;visibility:visible}
.ally-pet[data-left] .ally-pet-speech{right:auto;left:0}
.ally-pet[data-top] .ally-pet-speech{bottom:auto;top:calc(100% + 5px)}
body:has(dialog[open]) .ally-pet{display:none}
@media(max-width:640px){body:has(input:focus,textarea:focus) .ally-pet{visibility:hidden}}
@media(prefers-reduced-motion:no-preference){
 .ally-pet-button > img[data-reaction="bounce"]{animation:pet-bounce .65s ease both}
 .ally-pet-button > img[data-reaction="spin"]{animation:pet-spin .7s ease both}
 .ally-pet-button > img[data-reaction="dance"]{animation:pet-dance .8s ease both}
 .ally-pet-button > img[data-reaction="squish"]{animation:pet-squish .55s ease both}
 .ally-pet-button > img[data-reaction="wave"]{animation:pet-wave .8s ease both}
 .ally-pet-button > img[data-reaction="heart"]{animation:pet-heart .7s ease both}
 .ally-pet-button > img[data-reaction="land"]{animation:pet-land .38s ease both}
 @keyframes pet-bounce{0%,100%{transform:none}20%{transform:scale(1.16,.83)}50%{transform:translateY(-21px) scale(.93,1.08)}78%{transform:scale(1.12,.88)}}
 @keyframes pet-spin{0%,100%{transform:none}45%{transform:translateY(-9px) rotate(180deg)}99%{transform:rotate(360deg)}}
 @keyframes pet-dance{0%,100%{transform:none}20%,60%{transform:translateX(-5px) rotate(-17deg)}40%,80%{transform:translateX(5px) rotate(17deg)}}
 @keyframes pet-squish{0%,100%{transform:none}30%{transform:scale(1.2,.72)}65%{transform:scale(.88,1.14)}}
 @keyframes pet-wave{0%,100%{transform:none}20%,60%{transform:rotate(-12deg)}40%,80%{transform:rotate(12deg)}}
 @keyframes pet-heart{0%,100%{transform:none}25%,65%{transform:scale(1.18);filter:drop-shadow(0 0 12px #ed72f8)}45%{transform:scale(.95)}}
 @keyframes pet-land{0%{transform:translateY(-5px)}45%{transform:scale(1.14,.83)}100%{transform:none}}
}

/* Ally voice toggle and speaking indicator. */
.ally-pet-sound{position:absolute;top:-2px;left:-2px;width:32px;height:32px;min-height:0;padding:0;line-height:1;font-size:.95rem;border-radius:50%;background:#1d1728f2;border-color:#78639a;color:var(--ink)}
.ally-pet-sound[aria-pressed=true]{border-color:#8bbd63}
.ally-pet-sound:disabled{opacity:.55;cursor:default}
.ally-pet[data-minimized] .ally-pet-sound,.ally-pet[data-dragging] .ally-pet-sound{display:none}
.ally-pet[data-speaking] .ally-pet-speech{border-color:var(--green)}
@media(prefers-reduced-motion:no-preference){.ally-pet[data-speaking] .ally-pet-button > img:not([data-reaction]){animation:ally-speaking .38s ease-in-out infinite alternate}@keyframes ally-speaking{from{transform:scale(1)}to{transform:scale(1.035,.96);filter:drop-shadow(0 0 7px #b1f87470)}}}

/* Expanded local mascot interactions. The pet never moves itself over controls. */
.ally-pet-effect{position:absolute;z-index:2;left:50%;top:7%;font-size:1.35rem;line-height:1;font-weight:800;color:#b1f874;text-shadow:0 0 7px #b1f87499;pointer-events:none;opacity:0;white-space:nowrap;transform:translateX(-50%)}
.ally-pet[data-minimized] .ally-pet-effect,.ally-pet[data-dragging] .ally-pet-effect{display:none}
@media(prefers-reduced-motion:no-preference){
 .ally-pet-effect.visible{animation:pet-particle 1.1s ease-out both}
 .ally-pet[data-fast] .ally-pet-button > img{transform:rotate(-25deg) scale(1.09);filter:drop-shadow(9px 5px 9px #b1f87490)}
 .ally-pet[data-holding] .ally-pet-button{background:radial-gradient(ellipse,#b1f8742a,transparent 68%)}
 .ally-pet-button > img[data-reaction="rocket"]{animation:pet-rocket .95s ease both}
 .ally-pet-button > img[data-reaction="wobble"]{animation:pet-wobble .82s ease both}
 .ally-pet-button > img[data-reaction="charge"]{animation:pet-charge .95s ease both}
 .ally-pet-button > img[data-reaction="peek"]{animation:pet-peek .9s ease both}
 .ally-pet-button > img[data-reaction="victory"]{animation:pet-victory 1.05s ease both}
 .ally-pet-button > img[data-reaction="laugh"]{animation:pet-laugh .78s ease both}
 .ally-pet-button > img[data-reaction="float"]{animation:pet-float 1.5s ease both}
 .ally-pet-button > img[data-reaction="sleep"]{animation:pet-sleep 1.6s ease both}
 .ally-pet-button > img[data-reaction="shake"]{animation:pet-shake .65s ease both}
 .ally-pet-button > img[data-reaction="bow"]{animation:pet-bow .9s ease both}
 @keyframes pet-particle{0%{opacity:0;transform:translate(-50%,8px) scale(.5)}22%{opacity:1;transform:translate(-50%,-6px) scale(1.15)}75%{opacity:.9}100%{opacity:0;transform:translate(-50%,-35px) scale(.85)}}
 @keyframes pet-rocket{0%,100%{transform:none}20%{transform:scale(1.13,.77)}46%{transform:translateY(-28px) scale(.85,1.15);filter:drop-shadow(0 13px 8px #b1f874aa)}70%{transform:translateY(-12px) rotate(9deg)}88%{transform:scale(1.1,.85)}}
 @keyframes pet-wobble{0%,100%{transform:none}18%{transform:rotate(-25deg)}38%{transform:rotate(21deg)}58%{transform:rotate(-13deg)}78%{transform:rotate(7deg)}}
 @keyframes pet-charge{0%,100%{transform:none}20%,55%{transform:scale(.94);filter:drop-shadow(0 0 6px #b1f874)}38%,75%{transform:scale(1.14);filter:drop-shadow(0 0 14px #b1f874)}}
 @keyframes pet-peek{0%,100%{transform:none}28%{transform:translateY(8px) scale(.9);opacity:.7}65%{transform:translateY(-7px) rotate(11deg) scale(1.05)}}
 @keyframes pet-victory{0%,100%{transform:none}22%,65%{transform:translateY(-17px) rotate(-12deg)}42%,85%{transform:translateY(-5px) rotate(12deg)}}
 @keyframes pet-laugh{0%,100%{transform:none}20%,50%,80%{transform:scale(1.08,.88) rotate(-6deg)}35%,65%{transform:scale(.96,1.08) rotate(6deg)}}
 @keyframes pet-float{0%,100%{transform:none}45%{transform:translateY(-13px) rotate(-7deg);filter:drop-shadow(0 10px 8px #b1f87450)}75%{transform:translateY(-9px) rotate(7deg)}}
 @keyframes pet-sleep{0%,100%{transform:none;opacity:1}40%,75%{transform:scale(1.03,.86) rotate(9deg);opacity:.73}}
 @keyframes pet-shake{0%,100%{transform:none}15%,45%,75%{transform:translateX(-5px) rotate(-7deg)}30%,60%,90%{transform:translateX(5px) rotate(7deg)}}
 @keyframes pet-bow{0%,100%{transform:none}35%,65%{transform:scaleY(.75) translateY(3px) rotate(7deg)}}
}

/* Triple-tap: original miniature handheld prop and animated arcade race. */
.ally-pet-console{display:none;position:absolute;z-index:2;pointer-events:none;top:43px;left:50%;width:66px;aspect-ratio:144/64;transform:translateX(-50%);transform-origin:50% 70%;filter:drop-shadow(0 2px 3px #000b)}
.ally-pet-console img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.ally-pet-game-screen{position:absolute;left:29.2%;top:20.3%;width:41.6%;height:57.8%;overflow:hidden;border-radius:1px;background:linear-gradient(90deg,#18372a 0 16%,#30354b 16% 84%,#18372a 84%);box-shadow:0 0 4px #b1f87477}
.ally-pet-game-track{position:absolute;inset:-100% 48% 0;width:7%;background:repeating-linear-gradient(to bottom,#d5fca9 0 4px,transparent 4px 9px)}
.ally-pet-game-racer,.ally-pet-game-opponent{position:absolute;width:18%;height:34%;border-radius:1px;box-shadow:0 0 2px #fff5}
.ally-pet-game-racer{background:#a6f65b;bottom:8%;left:29%;border-top:2px solid #d5fca9}
.ally-pet-game-opponent{background:#d975ff;top:-35%;left:59%;border-top:2px solid #f5bbff}
.ally-pet[data-gaming] .ally-pet-console{display:block}
.ally-pet[data-gaming] .ally-pet-button > img{transform:translateY(-3px)}
@media(prefers-reduced-motion:no-preference){
 .ally-pet[data-gaming] .ally-pet-console{animation:pet-console-sequence 6.2s ease-in-out both}
 .ally-pet[data-gaming] .ally-pet-button > img{animation:pet-gaming-body 6.2s ease-in-out both}
 .ally-pet[data-gaming] .ally-pet-game-track{animation:pet-track .42s linear infinite}
 .ally-pet[data-gaming] .ally-pet-game-racer{animation:pet-racer 1.65s ease-in-out infinite alternate}
 .ally-pet[data-gaming] .ally-pet-game-opponent{animation:pet-opponent 1.28s linear infinite}
 @keyframes pet-console-sequence{0%{opacity:0;transform:translate(-50%,18px) scale(.25) rotate(-17deg)}9%{opacity:1;transform:translate(-50%,-6px) scale(1.13) rotate(6deg)}16%,27%,51%,75%,88%{opacity:1;transform:translate(-50%,0) rotate(-3deg)}39%,63%,82%{opacity:1;transform:translate(-50%,1px) rotate(4deg)}95%{opacity:1;transform:translate(-50%,0) scale(.9)}100%{opacity:0;transform:translate(-50%,17px) scale(.2)}}
 @keyframes pet-gaming-body{0%,100%{transform:none}10%{transform:translateY(-8px) scale(1.03)}20%,40%,60%,80%{transform:translateY(-3px) rotate(-3deg)}30%,50%,70%,90%{transform:translateY(-3px) rotate(3deg)}}
 @keyframes pet-track{from{transform:translateY(0)}to{transform:translateY(9px)}}
 @keyframes pet-racer{0%,15%{left:29%}45%,65%{left:58%}100%{left:31%}}
 @keyframes pet-opponent{from{top:-35%}to{top:105%}}
}

.admin-badge{display:inline-block;margin-inline-start:.5rem;padding:.1rem .35rem;border:1px solid #a9ec6f;border-radius:.3rem;color:#b1f874;font-size:.7rem;font-weight:800;vertical-align:middle}.admin-profile{border-color:#b1f874;color:#b1f874;font-weight:700}#profile{max-width:100%;overflow-wrap:anywhere}#moderation{color:var(--green)}

.profile-welcome{display:flex;align-items:center;gap:.8rem;margin:.5rem 0 1rem}.profile-welcome img{width:54px;height:54px;object-fit:contain;flex:none}.profile-welcome p{margin:0}

/* Long-form community documents (normas, condiciones y privacidad). */
.legal-page{background:radial-gradient(ellipse at 68% -7%,#3b1a57 0,transparent 36rem),radial-gradient(ellipse at 4% 45%,#132524 0,transparent 34rem),#100d17}
.legal-page .legal.shell{width:min(100% - 2.5rem,1120px);max-width:1120px}
.legal-page .bar{background:#14101de8;backdrop-filter:blur(10px)}
.legal-return{display:inline-flex;align-items:center;gap:.45rem;padding:.58rem .85rem;color:#efe2ff;text-decoration:none;border:1px solid #554366;border-radius:.7rem;font-size:.9rem;font-weight:650}
.legal-return:hover{border-color:var(--green);color:var(--green)}
.legal-breadcrumb{display:flex;align-items:center;gap:.6rem;font-size:.81rem;color:#baadc9;margin:1.75rem 0 1.15rem}
.legal-breadcrumb a{color:inherit;text-decoration:none}
.legal-breadcrumb span:last-child{color:#f3e7fc}
.legal-hero{position:relative;overflow:hidden;padding:clamp(1.5rem,4vw,2.7rem);border-radius:1.25rem;border:1px solid #57416f;background:radial-gradient(circle at 95% 5%,#8c4ac238,transparent 42%),linear-gradient(120deg,#281b3d,#181323 74%);box-shadow:0 12px 40px #00000028}
.legal-hero:after{content:"";position:absolute;right:-60px;top:-75px;width:230px;height:230px;border-radius:50%;border:1px solid #c18dff30;box-shadow:0 0 0 36px #ad77ff09,0 0 0 73px #ab75ff08;pointer-events:none}
.legal-hero-overline{display:flex;align-items:center;gap:.55rem;color:var(--green);font-size:.77rem;letter-spacing:.15em;font-weight:800}
.legal-hero-spark{font-size:1.2rem}
.legal-hero h1{max-width:790px;position:relative;margin:.65rem 0 .45rem;font-size:clamp(2rem,4.7vw,3.55rem);line-height:1.08;letter-spacing:-.03em}
.legal-hero p{position:relative;color:#d4c6df;max-width:720px;font-size:clamp(1rem,2vw,1.14rem);margin:.7rem 0 1.5rem}
.legal-revision{display:inline-flex;border:1px solid #645176;border-radius:99px;background:#1a1524cc;color:#d9cbe8;padding:.27rem .75rem;font-size:.76rem}
.legal-tabs{display:flex;gap:.5rem;padding:.4rem;border:1px solid #443452;background:#1b1525;border-radius:.85rem;margin:1.3rem 0;overflow-x:auto}
.legal-tabs a{flex:1;min-width:max-content;padding:.65rem .85rem;text-align:center;border-radius:.55rem;text-decoration:none;color:#cbbbd8;font-size:.93rem;font-weight:700}
.legal-tabs a[aria-current="page"]{color:#19230f;background:var(--green)}
.legal-tabs a:not([aria-current="page"]):hover{background:#32243f;color:white}
.legal-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:1.2rem 0 1.6rem}
.legal-fact{position:relative;background:#1a1725;border:1px solid #423650;border-radius:.85rem;padding:1rem 1rem 1rem 1.2rem;min-height:110px}
.legal-fact-dot{display:block;width:8px;height:8px;border-radius:50%;background:#aaf16d;box-shadow:0 0 12px #aaf16d70;margin-bottom:.6rem}
.legal-fact strong{display:block;font-size:.96rem}
.legal-fact p{color:#bcb0cb;font-size:.82rem;margin:.25rem 0 0;line-height:1.48}
.legal-alert{border:1px solid #ac8952;border-left:4px solid #f1bd6c;background:#2c231e;color:#ffe4bb;padding:1.05rem 1.25rem;border-radius:.8rem;margin:1rem 0 1.5rem;font-size:.91rem;line-height:1.65}
.legal-alert strong{color:#ffdc9b}
.legal-grid{display:grid;grid-template-columns:250px minmax(0,1fr);align-items:start;gap:2.1rem;margin:1.5rem 0 2rem}
.legal-sticky{position:sticky;top:1.25rem;border:1px solid #3c3048;border-radius:.95rem;background:#1a1524;padding:1rem .7rem;max-height:calc(100dvh - 2.5rem);overflow-y:auto}
.legal-sidebar-label{font-size:.69rem;font-weight:800;letter-spacing:.13em;color:#a6f168;margin:.25rem .65rem .8rem}
.legal-sidebar nav{display:grid;gap:.07rem}
.legal-sidebar nav a{display:flex;align-items:baseline;gap:.6rem;text-decoration:none;color:#cbbfd5;border-radius:.45rem;padding:.52rem .6rem;font-size:.81rem;line-height:1.45}
.legal-sidebar nav a span{color:#8bbd63;font-size:.73rem;font-weight:800;flex:none}
.legal-sidebar nav a:hover,.legal-sidebar nav a:focus-visible{background:#30253c;color:white}
.legal-article{min-width:0}
.legal-section{display:flex;align-items:flex-start;gap:1.1rem;padding:1.65rem 0;border-bottom:1px solid #41334d;scroll-margin-top:1.2rem}
.legal-section:first-child{padding-top:.3rem}
.legal-section:last-child{border-bottom:0}
.legal-number{flex:none;display:grid;place-items:center;width:40px;height:40px;color:#b1f874;background:#243222;border:1px solid #547544;border-radius:.7rem;font-size:.85rem;font-weight:800;font-variant-numeric:tabular-nums}
.legal-section-copy{min-width:0;max-width:740px}
.legal-section h2{color:#f9f4fe;margin:.15rem 0 .8rem;font-size:clamp(1.17rem,2.2vw,1.45rem);letter-spacing:-.012em}
.legal-section p,.legal-section li{color:#d7cddd;font-size:.94rem;line-height:1.79}
.legal-section p{margin:0 0 .8rem}
.legal-section p:last-child{margin-bottom:0}
.legal-section ul{padding-left:1.2rem;margin:.3rem 0 .8rem}
.legal-section li{padding-left:.2rem;margin:.45rem 0}
.legal-section li::marker{color:#aaf16d}
.legal-section strong{color:#f7ecff}
.legal-section code{font-size:.87em;color:#cdeead;background:#253128;padding:.1rem .3rem;border-radius:.25rem;overflow-wrap:anywhere}
.legal-end{display:flex;justify-content:space-between;align-items:center;gap:1rem;border:1px solid #524063;border-radius:1rem;padding:1.2rem 1.4rem;background:linear-gradient(115deg,#231a32,#18211c)}
.legal-end strong{font-size:1.05rem}
.legal-end p{color:#cbbed4;margin:.2rem 0}
.legal-end small{display:block;font-size:.75rem}
.legal-end>a{white-space:nowrap;font-size:.87rem;font-weight:700}
.legal-crosslinks{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap;margin:1.5rem 0 2.25rem}
.legal-crosslinks>span{font-size:.83rem;color:#b9abcb}
.legal-crosslinks>div{display:flex;gap:.5rem;flex-wrap:wrap}
.legal-crosslinks a{border:1px solid #524163;border-radius:.65rem;padding:.4rem .7rem;text-decoration:none;font-size:.81rem;color:#e3cafa}
.legal-crosslinks a:hover{border-color:var(--green);color:var(--green)}
.legal-footer{justify-content:space-between;font-size:.8rem;color:#a9a0b6}
.legal-footer a{font-size:.83rem}
@media(max-width:850px){.legal-grid{grid-template-columns:1fr;gap:1rem}.legal-sidebar{display:none}.legal-section{gap:.9rem}}
@media(max-width:640px){.legal-page .legal.shell{width:min(100% - 1.5rem,1120px)}.legal-hero{padding:1.3rem}.legal-hero h1{font-size:2rem}.legal-overview{grid-template-columns:1fr;gap:.55rem}.legal-fact{min-height:0;padding:.75rem 1rem}.legal-fact-dot{margin-bottom:.35rem}.legal-tabs a{padding:.6rem .7rem;font-size:.85rem}.legal-section{padding:1.25rem 0;gap:.7rem}.legal-number{width:32px;height:32px;font-size:.75rem}.legal-section h2{font-size:1.13rem}.legal-section p,.legal-section li{font-size:.91rem;line-height:1.73}.legal-end{align-items:flex-start;flex-direction:column}.legal-crosslinks{align-items:flex-start;flex-direction:column}.legal-return{font-size:.79rem;padding:.48rem .6rem}.legal-page .brand{font-size:.84rem}}

/* Reacciones de Ally Community: un mismo voto por usuario y contenido. */
.card{display:block}
.reaction-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;margin:.75rem 0 .45rem}
.reaction-button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;width:auto;min-height:38px;padding:.35rem .7rem;border-radius:99px;background:#241d30;border:1px solid #554365;color:#dfd3e9;font-size:.81rem;font-weight:650;line-height:1.3}
.reaction-button:hover:not(:disabled){background:#332344;border-color:#a786ca}
.reaction-button[aria-pressed="true"]{background:#293c25;border-color:#aaf16d;color:#dcffbb}
.reaction-button:disabled{opacity:.55;cursor:progress}
.reaction-icon{font-size:.92rem;line-height:1}
.reaction-count{display:inline-flex;justify-content:center;align-items:center;min-width:1.55rem;padding:.1rem .37rem;border-radius:99px;background:#140f1b;color:#e8dff2;font-size:.76rem;font-variant-numeric:tabular-nums}
.reaction-like[aria-pressed="true"] .reaction-count{background:#405b2e;color:#edffda}
.reaction-score{margin-left:.25rem;font-size:.75rem;color:#afa1bd;font-variant-numeric:tabular-nums}
.comment .reaction-bar{margin:.65rem 0 .4rem}
@media(max-width:640px){.card{display:block;padding:.8rem}.reaction-button{min-height:40px;padding:.42rem .58rem;font-size:.77rem}.reaction-score{margin-left:0}.reaction-bar{gap:.4rem}}
@media(prefers-reduced-motion:no-preference){.reaction-button{transition:background .16s ease,border-color .16s ease,transform .16s ease}.reaction-button:active:not(:disabled){transform:scale(.97)}}

/* Visitas únicas y ranking: diseño ligero y responsive. */
.feed-heading{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap;margin:.6rem 0 .45rem}
.feed-heading h1{margin:.5rem 0}
.ranking-link{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;text-decoration:none;padding:.55rem .85rem;border-radius:.75rem;border:1px solid #73548d;background:#291d37;color:#f1ddff;font-size:.86rem;font-weight:720;min-height:44px}
.ranking-link:hover{border-color:var(--green);color:var(--green);background:#292c28}
.post-metrics{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;color:#cbbdda;font-size:.84rem;margin:.75rem 0 .25rem}
.post-view-count{display:inline-flex;align-items:center;gap:.2rem;padding:.18rem .55rem;border:1px solid #514064;border-radius:99px;background:#1a1524;color:#dfead6;font-size:.8rem;font-variant-numeric:tabular-nums}
.most-visited-list{padding-left:1.55rem;display:grid;gap:.5rem;margin:.5rem 0 1rem}
.most-visited-list li{padding-left:.2rem}
.most-visited-list li::marker{font-weight:750;color:var(--green)}
.most-visited-list small{display:inline-block;margin-left:.5rem;white-space:nowrap;font-size:.78rem}
@media(max-width:640px){.feed-heading{align-items:flex-start}.ranking-link{font-size:.82rem}.post-metrics{gap:.4rem;font-size:.79rem}.post-view-count{font-size:.77rem}.most-visited-list small{display:block;margin-left:0}}

/* Dos comentarios más recientes en cada publicación del feed. */
.recent-comments{margin:1rem 0 .25rem;padding:.85rem 1rem;background:linear-gradient(120deg,#241a32,#1a1b27);border:1px solid #55416c;border-radius:.9rem}
.recent-comments-head{display:flex;align-items:baseline;justify-content:space-between;gap:.45rem;flex-wrap:wrap;margin-bottom:.6rem}
.recent-comments-head strong{font-size:.87rem;color:#d4ffb2}
.recent-comments-head small{font-size:.75rem;color:#b8a7c7}
.recent-comment{padding:.75rem 0;min-width:0}
.recent-comment+.recent-comment{border-top:1px solid #4a38575c}
.recent-comment-meta{display:flex;align-items:baseline;gap:.5rem;flex-wrap:wrap;font-size:.81rem}
.recent-comment-meta strong{color:#f7ecff;overflow-wrap:anywhere}
.recent-comment-meta time{color:#a99dbc;font-size:.75rem}
.recent-comment-text{margin:.35rem 0 .3rem;color:#d4c9e2;font-size:.86rem;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.recent-comment-toggle{display:inline-flex;align-items:center;background:transparent;border:0;border-bottom:1px dashed #9bc67b;border-radius:0;width:auto;min-height:32px;padding:.05rem .1rem;color:#b1f874;font-weight:650;font-size:.8rem}
.recent-comment-toggle:hover{border-color:var(--green);color:#e6ffd5}
.recent-comment-link{display:inline-flex;align-items:center;min-height:32px;color:#c5f9a5;font-size:.81rem;font-weight:650;text-decoration:underline}
.recent-comment .admin-badge{margin-left:0}
@media(max-width:640px){.recent-comments{padding:.6rem .8rem;margin:.75rem 0 .15rem}.recent-comment{padding:.55rem 0}.recent-comment-text{font-size:.82rem}.recent-comment-head{gap:.25rem}.recent-comment-meta{gap:.3rem;font-size:.77rem}.recent-comment-meta time{font-size:.72rem}}

/* Fotos de publicaciones y comentarios */
.photo-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:10px;margin:12px 0;max-width:760px}.photo-gallery a,.photo-gallery>div{display:block;min-width:0;overflow:hidden;border-radius:12px}.photo-gallery img{display:block;width:100%;max-height:420px;object-fit:contain;background:#151221;border:1px solid #403455;border-radius:12px}.photo-gallery.compact{grid-template-columns:repeat(auto-fit,minmax(min(100px,100%),1fr));max-width:500px;gap:6px}.photo-gallery.compact img{max-height:140px;object-fit:cover}.photo-editor{display:grid;gap:8px;padding:12px;border:1px dashed #665487;border-radius:12px}.photo-editor input{max-width:100%}.photo-editor .photo-gallery{margin:0}.photo-editor button{width:100%;margin-top:4px}.photo-editor small{display:block;overflow-wrap:anywhere}@media(max-width:480px){.photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-gallery img{max-height:260px}.photo-gallery.compact img{max-height:100px}}

/* Ally: directional transport, hover thrusters and contextual landings. */
.ally-pet[data-dragging] .ally-pet-button{touch-action:none}
.ally-pet[data-dragging] .ally-pet-speech{border-color:#a6d77d;box-shadow:0 4px 14px #0008}
.ally-pet[data-dragging] .ally-pet-button::after{content:"";position:absolute;left:20%;right:20%;bottom:4px;height:7px;border-radius:50%;background:#0007;filter:blur(3px);pointer-events:none}
@media(prefers-reduced-motion:no-preference){
 .ally-pet[data-dragging] .ally-pet-button>img{animation:ally-drag-cruise .62s ease-in-out infinite alternate;transform:none;filter:drop-shadow(0 6px 6px #0009)}
 .ally-pet[data-drag-mode="left"] .ally-pet-button>img{animation:ally-drag-left .46s ease-in-out infinite alternate}
 .ally-pet[data-drag-mode="right"] .ally-pet-button>img{animation:ally-drag-right .46s ease-in-out infinite alternate}
 .ally-pet[data-drag-mode="up"] .ally-pet-button>img{animation:ally-drag-up .42s ease-in-out infinite alternate}
 .ally-pet[data-drag-mode="down"] .ally-pet-button>img{animation:ally-drag-down .42s ease-in-out infinite alternate}
 .ally-pet[data-drag-mode="fast"] .ally-pet-button>img{animation:ally-drag-turbo-right .26s ease-in-out infinite alternate;filter:drop-shadow(-8px 4px 8px #b1f8748a)}
 .ally-pet[data-drag-mode="fast"][data-drag-side="left"] .ally-pet-button>img{animation:ally-drag-turbo-left .26s ease-in-out infinite alternate;filter:drop-shadow(8px 4px 8px #b1f8748a)}
 .ally-pet[data-drag-mode="fast"] .ally-pet-button::after{background:#b1f87495;animation:ally-thruster .22s ease-in-out infinite alternate;filter:blur(4px)}
 @keyframes ally-drag-cruise{from{transform:translateY(-3px) rotate(-4deg)}to{transform:translateY(-8px) rotate(4deg) scale(1.04)}}
 @keyframes ally-drag-left{from{transform:translateY(-3px) rotate(-10deg)}to{transform:translateY(-6px) rotate(-20deg) scale(1.04)}}
 @keyframes ally-drag-right{from{transform:translateY(-3px) rotate(10deg)}to{transform:translateY(-6px) rotate(20deg) scale(1.04)}}
 @keyframes ally-drag-up{from{transform:translateY(-5px) scale(.94,1.08)}to{transform:translateY(-11px) scale(.90,1.13)}}
 @keyframes ally-drag-down{from{transform:translateY(-2px) scale(1.07,.95)}to{transform:translateY(3px) scale(1.12,.87)}}
 @keyframes ally-drag-turbo-left{from{transform:rotate(-18deg) scale(1.08,.96)}to{transform:translateY(-4px) rotate(-30deg) scale(1.15,.91)}}
 @keyframes ally-drag-turbo-right{from{transform:rotate(18deg) scale(1.08,.96)}to{transform:translateY(-4px) rotate(30deg) scale(1.15,.91)}}
 @keyframes ally-thruster{from{opacity:.45;transform:scaleX(.65)}to{opacity:.9;transform:scaleX(1.15)}}
 .ally-pet-button>img[data-reaction="soft-land"]{animation:ally-soft-land .65s ease both}
 .ally-pet-button>img[data-reaction="stretch"]{animation:ally-stretch .95s ease both}
 .ally-pet-button>img[data-reaction="salute-land"]{animation:ally-salute-land .95s ease both}
 .ally-pet-button>img[data-reaction="happy-hop"]{animation:ally-happy-hop .9s ease both}
 .ally-pet-button>img[data-reaction="gyro-land"]{animation:ally-gyro-land .95s ease both}
 .ally-pet-button>img[data-reaction="brake-land"]{animation:ally-brake-land .85s ease both}
 .ally-pet-button>img[data-reaction="spin-land"]{animation:ally-spin-land .85s ease both}
 .ally-pet-button>img[data-reaction="rest-land"]{animation:ally-rest-land 1.4s ease both}
 .ally-pet-button>img[data-reaction="peek-land"]{animation:ally-peek-land .95s ease both}
 .ally-pet-button>img[data-reaction="magnet-land"]{animation:ally-magnet-land .8s ease both}
 @keyframes ally-soft-land{0%{transform:translateY(-9px) scale(.93,1.06)}35%{transform:scale(1.16,.78)}64%{transform:translateY(-7px) scale(.96,1.07)}85%,100%{transform:none}}
 @keyframes ally-stretch{0%,100%{transform:none}20%{transform:scale(.88,1.18)}45%{transform:scale(1.16,.89)}72%{transform:scale(.96,1.06)}}
 @keyframes ally-salute-land{0%,100%{transform:none}20%{transform:translateY(-6px) rotate(-14deg)}42%{transform:rotate(13deg)}62%{transform:rotate(-10deg)}}
 @keyframes ally-happy-hop{0%,100%{transform:none}15%,55%{transform:scale(1.12,.82)}32%{transform:translateY(-15px) rotate(-9deg)}72%{transform:translateY(-9px) rotate(8deg)}}
 @keyframes ally-gyro-land{0%{transform:rotate(-28deg)}18%{transform:rotate(23deg)}35%{transform:rotate(-18deg)}53%{transform:rotate(10deg)}70%{transform:rotate(-5deg)}100%{transform:none}}
 @keyframes ally-brake-land{0%{transform:scale(1.15,.87) rotate(24deg)}25%{transform:translateX(-5px) scale(1.18,.83) rotate(-13deg)}54%{transform:translateX(3px) scale(.96,1.06) rotate(8deg)}100%{transform:none}}
 @keyframes ally-spin-land{0%{transform:rotate(0)}65%{transform:translateY(-8px) rotate(360deg) scale(.93)}100%{transform:rotate(360deg)}}
 @keyframes ally-rest-land{0%,100%{transform:none}30%,65%{transform:translateY(4px) rotate(10deg) scale(1.04,.83);opacity:.8}85%{transform:scale(.97,1.05);opacity:1}}
 @keyframes ally-peek-land{0%,100%{transform:none}25%,55%{transform:translateY(8px) scale(.82);opacity:.72}75%{transform:translateY(-5px) rotate(-8deg);opacity:1}}
 @keyframes ally-magnet-land{0%{transform:translateY(-8px) scale(.92)}26%{transform:scale(1.15,.82);filter:drop-shadow(0 0 12px #b1f874)}50%{transform:scale(.96,1.05)}100%{transform:none}}
}
@media(prefers-reduced-motion:reduce){
 .ally-pet[data-dragging] .ally-pet-button>img{animation:none!important;transform:none!important;filter:drop-shadow(0 3px 6px #0009)}
 .ally-pet[data-dragging] .ally-pet-button::after{display:none}
}

/* Gaming v3: opaque rear shell occludes wrists; hands and device share one rig. */
.ally-pet-console{top:35px;width:74px;aspect-ratio:176/88;transform:translateX(-50%);transform-origin:50% 30%;isolation:isolate;filter:drop-shadow(0 3px 3px #000b)}
.ally-pet-console .ally-console-back{position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:contain}
.ally-pet[data-gaming] .ally-pet-button>img{transform:translateY(-4px) scale(.98);filter:drop-shadow(0 3px 5px #0009) drop-shadow(0 3px 3px #aaf16d33)}
.ally-pet[data-gaming="intro"] .ally-pet-console,.ally-pet[data-gaming="playing"] .ally-pet-console,.ally-pet[data-gaming="win"] .ally-pet-console,.ally-pet[data-gaming="put-away"] .ally-pet-console{display:block}
@media(prefers-reduced-motion:no-preference){
 .ally-pet[data-gaming="intro"] .ally-pet-console{animation:ally-game-lift .55s cubic-bezier(.2,.8,.25,1) both}
 .ally-pet[data-gaming="playing"] .ally-pet-console{animation:ally-game-steer 2.4s ease-in-out infinite}
 .ally-pet[data-gaming="win"] .ally-pet-console{animation:ally-game-cheer 1.15s ease both}
 .ally-pet[data-gaming="put-away"] .ally-pet-console{animation:ally-game-stow .5s ease both}
 .ally-pet[data-gaming="intro"] .ally-pet-button>img{animation:ally-game-focus .55s ease both}
 .ally-pet[data-gaming="playing"] .ally-pet-button>img,.ally-pet[data-gaming="playing"][data-speaking] .ally-pet-button>img:not([data-reaction]){animation:ally-game-body 2.4s ease-in-out infinite}
 .ally-pet[data-gaming="win"] .ally-pet-button>img,.ally-pet[data-gaming="win"][data-speaking] .ally-pet-button>img:not([data-reaction]){animation:ally-game-body-win 1.15s ease both}
 .ally-pet[data-gaming="put-away"] .ally-pet-button>img{animation:ally-game-unfocus .5s ease both}
 @keyframes ally-game-lift{0%{opacity:0;transform:translate(-50%,17px) scale(.72) rotate(-3deg)}35%{opacity:1}100%{opacity:1;transform:translate(-50%,0) scale(1)}}
 @keyframes ally-game-steer{0%,100%{transform:translate(-50%,0) rotate(0)}22%{transform:translate(-50%,-1px) rotate(-3deg) rotateY(-3deg)}48%{transform:translate(-50%,1px) rotate(2deg)}72%{transform:translate(-50%,-2px) rotate(3deg) rotateY(3deg)}}
 @keyframes ally-game-cheer{0%,100%{transform:translate(-50%,0)}32%{transform:translate(-50%,-7px) rotate(-5deg)}65%{transform:translate(-50%,-3px) rotate(4deg)}}
 @keyframes ally-game-stow{0%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,17px) scale(.72)}}
 @keyframes ally-game-focus{from{transform:none}to{transform:translateY(-4px) scale(.98)}}
 @keyframes ally-game-body{0%,100%{transform:translateY(-4px) scale(.98)}22%{transform:translateY(-4px) rotate(-3deg) scale(.98)}48%{transform:translateY(-3px) scale(.97)}72%{transform:translateY(-5px) rotate(3deg) scale(.98)}}
 @keyframes ally-game-body-win{0%,100%{transform:translateY(-4px) scale(.98)}32%{transform:translateY(-10px) rotate(-3deg) scale(1.02)}65%{transform:translateY(-6px) rotate(3deg) scale(1.01)}}
 @keyframes ally-game-unfocus{from{transform:translateY(-4px) scale(.98)}to{transform:none}}
}
@media(prefers-reduced-motion:reduce){
 .ally-pet[data-gaming] .ally-pet-console,.ally-pet[data-gaming] .ally-pet-button>img{animation:none!important}
 .ally-pet[data-gaming="put-away"] .ally-pet-console{visibility:hidden}
}
