/* Genex welcome: an over-caffeinated desk, scoped to this component. */
.genex-welcome{--gw-ink:#202623;--gw-paper:#fff8e7;--gw-mint:#bce7d2;--gw-pink:#ffd2b9;position:relative;isolation:isolate;background:var(--gw-mint);color:var(--gw-ink);border-block:1px solid var(--gw-ink);font-family:var(--body,system-ui,sans-serif);overflow:hidden}
.gw-inner{max-width:1240px;margin:auto;padding:22px 28px;display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:28px;align-items:center;position:relative}
.gw-brand{background:var(--gw-paper);padding:9px 12px;rotate:-3deg;border-radius:5px;display:block;box-shadow:0 5px 12px #20262316;transition:rotate .25s}
.gw-brand:hover{rotate:2deg}.gw-brand img{display:block;width:126px;height:auto;max-width:100%}
.gw-copy h2{font-family:var(--body,system-ui,sans-serif);font-weight:800;font-size:clamp(1.4rem,2.6vw,2.25rem);line-height:1.15;letter-spacing:-.035em;margin:0 0 7px}
.gw-copy p{font-size:14px;line-height:1.5;margin:0;max-width:48ch}.gw-status{display:block;font-size:12px;font-weight:700;margin-top:6px;min-height:1.5em}
.gw-side{display:flex;align-items:center;gap:22px}.gw-desk{position:relative;width:104px;height:94px;flex:none;pointer-events:none}
.gw-paper{position:absolute;top:6px;left:10px;background:var(--gw-paper);width:49px;height:63px;rotate:-13deg;border:2px solid var(--gw-ink);border-radius:3px;padding:12px 8px;animation:gw-paperwork 4.8s ease-in-out infinite paused}
.gw-paper::before,.gw-paper::after{content:'';display:block;height:2px;background:var(--gw-ink);margin-bottom:6px}.gw-paper::after{width:65%}
.gw-cup{position:absolute;right:0;bottom:3px;width:65px;height:68px;rotate:8deg;animation:gw-coffee 4.8s ease-in-out infinite paused}
.gw-cup svg{display:block;width:65px;height:68px;max-width:none}.gw-steam{stroke-dasharray:8 9;animation:gw-steam 2.4s linear infinite paused}
.gw-actions{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.gw-link{display:inline-flex;align-items:center;gap:18px;background:var(--gw-ink);color:var(--gw-paper);border:1px solid var(--gw-ink);border-radius:5px;padding:13px 18px;text-decoration:none;font-size:13px;font-weight:700;line-height:1.5;white-space:nowrap;transition:background .2s,color .2s}
.gw-link:hover{background:var(--gw-paper);color:var(--gw-ink)}.gw-link svg{width:18px;height:18px;display:block}
.gw-tools{display:flex;gap:14px;flex-wrap:wrap}.gw-tools button{background:none;border:0;border-bottom:1px solid currentColor;color:var(--gw-ink);padding:4px 0;font:inherit;font-size:12px;font-weight:700;cursor:pointer;min-height:34px;border-radius:0}.gw-tools button:disabled{cursor:default;border-color:transparent}
.genex-welcome :is(a,button):focus-visible{outline:3px solid var(--gw-ink);outline-offset:4px}
.gw-sticker{position:absolute;right:12px;top:7px;padding:4px 9px;background:var(--gw-pink);font-size:9px;font-weight:800;letter-spacing:.04em;rotate:5deg;pointer-events:none}
.genex-welcome[data-gw-playing] :is(.gw-paper,.gw-cup,.gw-steam){animation-play-state:running}
.gw-confetti{position:absolute;z-index:5;left:var(--x);top:45%;width:8px;height:13px;background:var(--color);pointer-events:none;animation:gw-confetti 1.1s cubic-bezier(.16,1,.3,1) forwards}
@keyframes gw-paperwork{0%,35%,100%{transform:translateY(0) rotate(0)}45%,55%{transform:translateY(-7px) rotate(8deg)}65%{transform:translateY(0) rotate(-3deg)}}
@keyframes gw-coffee{0%,35%,70%,100%{transform:translateY(0) rotate(0)}45%{transform:translateY(-5px) rotate(-9deg)}55%{transform:translateY(-5px) rotate(5deg)}}
@keyframes gw-steam{to{stroke-dashoffset:-34}}
@keyframes gw-confetti{from{transform:translate(0,0) rotate(0);opacity:1}to{transform:translate(var(--dx),var(--dy)) rotate(var(--turn));opacity:0}}
@media(max-width:1000px){.gw-inner{grid-template-columns:120px minmax(0,1fr) auto;gap:20px;padding:20px 24px}.gw-desk{display:none}.gw-copy p{font-size:12px}.gw-link{font-size:12px;padding:12px}.gw-sticker{display:none}}
@media(max-width:650px){.gw-inner{grid-template-columns:86px minmax(0,1fr);gap:16px;padding:22px 20px}.gw-brand{padding:7px}.gw-copy h2{font-size:clamp(1.2rem,5vw,1.55rem)}.gw-copy p{font-size:12px}.gw-status{font-size:11px}.gw-side{grid-column:1/-1;justify-content:space-between;gap:12px}.gw-desk{display:block;width:86px;height:75px}.gw-cup{scale:.85;transform-origin:bottom right}.gw-paper{scale:.85;transform-origin:top left}.gw-actions{flex:1}.gw-link{width:100%;justify-content:space-between}.gw-tools{justify-content:space-between;width:100%}}
@media(prefers-reduced-motion:reduce){.genex-welcome *,.genex-welcome *::before,.genex-welcome *::after{animation:none!important;transition:none!important}.gw-confetti{display:none}}

/* Optional action sound control keeps an easy target on narrow screens. */
.gw-tools [data-ui-sound]{flex-basis:100%;text-align:left;border-bottom:0;min-height:32px}

/* The dated welcome never removes the evergreen game route or mute control. */
.chaos-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:15px;font-size:13px;font-weight:700;border-bottom:1px solid var(--line)}
.chaos-entry>a{display:flex;align-items:center;gap:16px;color:var(--accent)}
.chaos-entry button,.agency-ui-sound{background:transparent;color:inherit;border:1px solid currentColor;border-radius:4px;padding:8px 12px;font:inherit;font-size:12px;cursor:pointer;min-height:38px}
.agency-ui-sound{margin-bottom:18px}
[data-genex-day][hidden],[data-genex-default][hidden]{display:none!important}
