/* ============================================================ The Hub */
.screen.full.has-hub { padding: 0; }
.hub { position: fixed; inset: 0; overflow: hidden; background: #1f8fd6; user-select: none; -webkit-user-select: none; touch-action: none; font-family: var(--font); }
.hub-light, .hub-glow, .hub-fx { position: absolute; inset: 0; display: block; }
/* the sea: a texture behind everything that follows the camera (hub.js moves it), drifting slowly */
.hub-sea { position: absolute; left: 0; top: 0; width: calc(100% + 1400px); height: calc(100% + 800px); z-index: 0; pointer-events: auto; will-change: transform; background: #1f8fd6; }
/* the texture repeats at its own size (256×128: the repeats join pixel-perfectly) and the whole layer is scaled to the zoom
   (scaling the tile size itself to e.g. 140.8px made the browser resample every repeat apart: faint lines in the water) */
.sea-l { position: absolute; left: calc(-256px * var(--tz, 1)); top: calc(-128px * var(--tz, 1)); width: calc((100% + 256px * var(--tz, 1)) / var(--tz, 1)); height: calc((100% + 128px * var(--tz, 1)) / var(--tz, 1)); background-size: 256px 128px; scale: var(--tz, 1); transform-origin: 0 0; transition: opacity 1.5s; will-change: transform; animation: sea-drift 26s linear infinite; }
.sea-l.night { animation-duration: 34s; }
@keyframes sea-drift { to { transform: translate(256px, 128px); } } /* (one tile, in the layer's own scale) */
/* things drawn once in the world: the sky behind the windows, the ground, the foam, the pool */
.hw-sky, .hw-ground, .hw-foam, .hw-pool, .hw-shallows { position: absolute; pointer-events: none; }
.hw-shallows { z-index: 0; left: 0; top: 0; overflow: visible; }
.hw-sky { z-index: 0; overflow: hidden; background: linear-gradient(180deg, #7fd0ff, #d6f3ff); transition: background 2s; }
.hub-world[data-sky="sunset"] .hw-sky { background: linear-gradient(180deg, #ff9a6a, #ffd28a); }
.hub-world[data-sky="night"] .hw-sky { background: linear-gradient(180deg, #0d0b2e, #2b1a5e); }
.sk-cloud { position: absolute; top: 30%; left: -30%; width: 34px; height: 12px; border-radius: 10px; background: rgba(255, 255, 255, .8); box-shadow: 12px -5px 0 2px rgba(255, 255, 255, .8); animation: sk-cloud 26s linear infinite; }
@keyframes sk-cloud { to { transform: translateX(260px); } }
.sk-stars { position: absolute; inset: 0; opacity: 0; transition: opacity 2s; background: radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent), radial-gradient(1px 1px at 60% 20%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 80% 60%, #fff 50%, transparent), radial-gradient(1px 1px at 35% 70%, #fff 50%, transparent); }
.hub-world[data-sky="night"] .sk-stars { opacity: 1; animation: hp-holo 3s ease-in-out infinite; } .hub-world[data-sky="night"] .sk-cloud { opacity: .25; }
.hw-ground { z-index: 1; }
.hw-pool { z-index: 2; }
.hw-foam { z-index: 2; left: 0; top: 0; overflow: visible; }
.hw-foam path { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.hw-foam.fo1 path { stroke-width: 3.2; stroke-dasharray: 14 9; } .hw-foam.fo2 path { stroke-width: 2; stroke-dasharray: 5 17; }
.hw-foam.fo3 path { stroke-width: 2; stroke-dasharray: 6 14; stroke-opacity: .6; }
.ash-lava-glow { filter: drop-shadow(0 0 11px #f66c38); animation: ash-lava-pulse 5.7s ease-in-out infinite alternate; }
.ash-lava-flow { animation: ash-lava-flow 8s ease-in-out infinite alternate; }
@keyframes ash-lava-pulse { to { opacity:.72; filter: drop-shadow(0 0 18px #ffb65e); } }
@keyframes ash-lava-flow { to { opacity:.42; transform:translateX(8px); } }
.hw-foam.fo1 { animation: foam 3.6s ease-in-out infinite; } .hw-foam.fo2 { animation: foam 3.6s ease-in-out infinite; animation-delay: -1.8s; } .hw-foam.fo3 { animation: foam 5s ease-in-out infinite; animation-delay: -1s; }
@keyframes foam { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
.hub-world[data-sky="night"] .hw-foam { filter: none; } .hub-world[data-sky="night"] .hw-foam path { stroke: #c8d4ff; }
.hub-world, .hub-over { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; will-change: transform; }
.hub-world { z-index: 1; }
.hub-light { z-index: 2; pointer-events: none; mix-blend-mode: multiply; }
.hub-glow { z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.hub-fx { z-index: 2; pointer-events: none; }
.hub-over { z-index: 3; pointer-events: none; }
.hub-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hub-ui > * { pointer-events: auto; }
.hub [hidden] { display: none !important; }

/* ---- props */
.hpw { position: absolute; left: 0; top: 0; pointer-events: none; }
.hpw svg { display: block; overflow: visible; pointer-events: none; }
.hpw svg * { pointer-events: visiblePainted; }
.hpw:not(.act) svg * { pointer-events: none; }
.hpw.act { cursor: pointer; }
.hpw { transition: opacity .35s ease; } .hpw.see { opacity: .42; }
.hpw.act:hover svg { filter: drop-shadow(0 0 6px rgba(255, 236, 160, .95)) drop-shadow(0 0 2px #fff) brightness(1.06); }
.hub.phone .hpw.act:hover svg { filter: none; }
.hpw.fx-shake { animation: hp-shake .7s ease both; transform-origin: bottom center; }
.hpw.fx-wobble svg { animation: hp-wobble .8s var(--spring) both; transform-origin: 50% 80%; }
@keyframes hp-shake { 20% { translate: -4px 0; } 40% { translate: 4px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
@keyframes hp-wobble { 30% { transform: scale(1.08, .9); } 60% { transform: scale(.95, 1.06); } }
/* animated parts inside the props */
.hprop .sway { animation: hp-sway 4.6s ease-in-out infinite; animation-delay: var(--d, 0s); transform-box: view-box; }
@keyframes hp-sway { 50% { transform: rotate(3deg); } }
.hprop .palm { animation: hp-palm 7s ease-in-out infinite; transform-box: view-box; }
@keyframes hp-palm { 50% { transform: rotate(1.4deg); } }
.hprop .bob { animation: hp-bob 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes hp-bob { 50% { transform: translateY(-4px); } }
.hprop .float-bob, .hpw.floaty svg > g { animation: hp-float 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes hp-float { 50% { transform: translateY(-3px) rotate(-1.5deg); } }
.hprop .neon-flicker { animation: hp-neon 6s steps(1) infinite; }
@keyframes hp-neon { 0%, 47%, 51%, 100% { opacity: 1; } 48%, 50% { opacity: .55; } 49% { opacity: .9; } }
.hprop .arcade-screen { animation: hp-screen 2.4s linear infinite; }
@keyframes hp-screen { 0% { filter: hue-rotate(0); } 100% { filter: hue-rotate(360deg); } }
.hprop .marquee { animation: hp-marq 1.6s ease-in-out infinite alternate; }
@keyframes hp-marq { to { opacity: .45; } }
.hprop .globe-spin { animation: hp-globe 14s linear infinite; }
@keyframes hp-globe { from { transform: translateX(0); } to { transform: translateX(-100px); } }
.hprop .holo-spin { animation: hp-spin 9s linear infinite; transform-box: fill-box; transform-origin: center; }
.hprop .spin-slow { animation: hp-spin 16s linear infinite; }
@keyframes hp-spin { to { transform: rotate(360deg); } }
.hprop .holo { animation: hp-holo 3.2s ease-in-out infinite; }
@keyframes hp-holo { 50% { opacity: .78; } }
.hprop .tv-screen { animation: hp-tv 7s linear infinite; }
@keyframes hp-tv { 0% { filter: hue-rotate(0) brightness(1); } 50% { filter: hue-rotate(180deg) brightness(1.15); } 100% { filter: hue-rotate(360deg) brightness(1); } }
.hprop .tv-live { animation: hp-marq 1s ease-in-out infinite alternate; }
.hprop .fire .fl { transform-box: fill-box; transform-origin: 50% 100%; animation: hp-fire .5s ease-in-out infinite alternate; }
.hprop .fire .fl2 { animation-duration: .38s; animation-delay: -.2s; } .hprop .fire .fl3 { animation-duration: .3s; }
@keyframes hp-fire { from { transform: scale(1, 1) skewX(-4deg); } to { transform: scale(.88, 1.14) skewX(5deg); } }
.hprop .card-float { animation: hp-bob 3s ease-in-out infinite; animation-delay: var(--d); }
.hprop .spark { animation: hp-marq .9s ease-in-out infinite alternate; }
.hprop .beat { animation: hp-beat 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hp-beat { 15% { transform: scale(1.18); } 30% { transform: scale(1); } }
.hprop .flag-wave { animation: hp-flag 1.6s ease-in-out infinite; }
@keyframes hp-flag { 50% { transform: skewY(6deg); } }
.hprop .flag-up { animation: hp-bob 2s ease-in-out infinite; }
.hprop .blink, .hprop .lh-lamp { animation: hp-marq 1.2s ease-in-out infinite alternate; }
.hprop .arena-glow { animation: hp-holo 2.6s ease-in-out infinite; }
.hprop .mirror-shine { animation: hp-holo 4s ease-in-out infinite; }
.hprop .shine-cup { animation: hp-cup 5s ease-in-out infinite; }
@keyframes hp-cup { 0%, 80%, 100% { filter: none; } 88% { filter: brightness(1.5); } }
.hprop .peek { animation: hp-peek 8s ease-in-out infinite; }
@keyframes hp-peek { 0%, 85%, 100% { transform: translateX(0); } 90%, 95% { transform: translateX(3px); } }
/* Coral Key: the club moves to the beat (--beat is set from the track playing), the gym moves when someone trains */
.hub { --beat: .5s; }
.hprop .spk-cone { transform-box: fill-box; transform-origin: center; animation: hp-kick var(--beat) ease-out infinite; }
.hprop .spk-dot { animation: hp-marq var(--beat) ease-in-out infinite alternate; }
@keyframes hp-kick { 0% { transform: scale(1.16); } 45% { transform: scale(1); } }
.hprop .club-led { animation: hp-led 3s linear infinite; }
@keyframes hp-led { to { filter: hue-rotate(360deg); } }
.hprop .dj-spin { transform-box: fill-box; transform-origin: center; animation: hp-spin calc(var(--beat) * 2) linear infinite; }
.hprop .df-t { fill: var(--c); animation: hp-df calc(var(--beat) * 4) steps(1) infinite; animation-delay: var(--d); }
@keyframes hp-df { 0% { opacity: .95; } 25% { opacity: .18; } 50% { opacity: .75; } 75% { opacity: .25; } }
.hprop .dancefloor { filter: saturate(1.2); animation: hp-led 12s linear infinite; }
.hprop .disco-spin { animation: hp-disco 1.6s steps(5) infinite; }
@keyframes hp-disco { to { transform: translateX(-5px); } }
.hprop .slot-sym { animation: hp-marq .9s ease-in-out infinite alternate; animation-delay: var(--d); }
.hprop .rl-spin { transform-box: fill-box; transform-origin: center; animation: hp-spin 9s linear infinite; }
.hprop .sail { animation: hp-sway 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 0 0; }
.hprop .wreck-foam { animation: hp-holo 3s ease-in-out infinite; }
.hprop .twinkle { transform-box: fill-box; transform-origin: center; animation: hp-twinkle 1.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes hp-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.1); } }
.hprop .tiki { animation: hp-fire .45s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.hprop .hilo-arrows { animation: none; }
.hprop .chest-glow { display: none; } .hpw.ready .hprop .chest-glow { display: inline; }
.hprop .chest-lid { transition: transform .5s var(--spring); transform-box: fill-box; transform-origin: 50% 100%; }
.hpw.opened .hprop .chest-lid { transform: translate(-4px, -10px) rotate(-14deg); }
.hpw.busy .hprop .belt { animation: hp-belt .35s linear infinite; }
@keyframes hp-belt { to { transform: translate(-4.8px, 2.4px); } }
.hpw.busy .hprop .pbag { animation: hp-bag .7s ease-in-out infinite; }
@keyframes hp-bag { 30% { transform: rotate(-9deg); } 60% { transform: rotate(4deg); } }
.hpw.busy .hprop .bench-bar { opacity: 0; }
.hub.phone .hprop .sway, .hub.phone .hprop .palm, .hub.phone .hprop .tv-screen, .hub.phone .hprop .arcade-screen, .hub.phone .hprop .globe-spin { animation-duration: 0s; animation: none; }
@media (prefers-reduced-motion: reduce) { .hprop *, .hpw svg > g { animation: none !important; } }
:root[data-motion="reduced"] .hprop * { animation: none !important; }

/* fishing spots and markers */
.hspot { position: absolute; left: 0; top: 0; width: 60px; height: 30px; cursor: pointer; }
.hspot svg { width: 60px; height: 30px; animation: hspot 2.4s ease-in-out infinite; }
.hspot span { position: absolute; left: 50%; top: -18px; translate: -50% 0; font-size: 16px; animation: hp-bob 2s ease-in-out infinite; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); }
@keyframes hspot { 50% { opacity: .55; transform: scale(.92); } }
.hmark { position: absolute; left: 0; top: 0; pointer-events: none; }
.hmark i { position: absolute; left: -16px; top: -8px; width: 32px; height: 16px; border-radius: 50%; border: 3px solid #ffd23f; animation: hmark .9s ease-out both; }
.hmark::before { content:''; position:absolute; left:-7px; top:-14px; width:14px; height:14px; background:#fff1bd; clip-path:polygon(50% 0,62% 39%,100% 50%,62% 61%,50% 100%,38% 61%,0 50%,38% 39%); filter:drop-shadow(0 0 5px #ffd23f); animation:hmark-star .7s ease-out both; }
.hmark::after { content:''; position:absolute; left:-23px; top:-12px; width:46px; height:25px; border:1px solid #9ce6f8; border-radius:50%; animation:hmark 1s .06s ease-out both; }
@keyframes hmark-star { from { transform:scale(.2) rotate(-25deg); opacity:1; } to { transform:scale(1.25) rotate(30deg); opacity:0; } }
@keyframes hmark { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---- people */
.ha { position: absolute; left: 0; top: 0; width: 0; height: 0; cursor: pointer; }
.ha-shadow { position: absolute; left: -21px; top: -7px; width: 42px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(29, 18, 64, .42), rgba(29, 18, 64, 0)); }
.ha-ring { position: absolute; left: -20px; top: -9px; width: 40px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 210, 63, .85); box-shadow: 0 0 12px rgba(255, 210, 63, .7); display: none; animation: hring 2.4s ease-in-out infinite; }
.ha.me .ha-ring { display: block; }
.ha.selected .ha-ring { display:block; border-color:#6be4f0; box-shadow:0 0 0 3px #102b3f,0 0 18px #6be4f0; animation:hring 1.6s ease-in-out infinite; }
.ha.selected .ha-sprite { filter:drop-shadow(0 0 9px #6be4f0aa); }
.hpw.selected svg, .hcrab.selected svg { filter:drop-shadow(0 0 9px #75e5ee); }
.hov.selected .ha-tag { background:rgba(19,48,67,.9); box-shadow:0 0 0 1px #75e5eead,0 0 17px #75e5ee66; transition:background .2s ease,box-shadow .2s ease,opacity .3s ease; }
@keyframes hring { 50% { transform: scale(1.12); opacity: .6; } }
.ha-body { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ha-sprite { position: absolute; left: -36px; bottom: -6px; width: 72px; transform-origin: 50% 100%; }
.ha-sprite svg { width: 72px; height: auto; display: block; overflow: visible; }
.hball:hover .hb-ball { filter:drop-shadow(0 0 7px #ffdd79); transform:scale(1.08); transition:transform .18s ease,filter .18s ease; }
.hilo-clockwork { transform-origin:center; animation:hilo-turn 6s linear infinite; }
.hilo-card { transform-origin:center; animation:hilo-reveal 4.8s ease-in-out infinite; }
@keyframes hilo-turn { to { transform:rotate(360deg); } }
@keyframes hilo-reveal { 0%,35%,100% { transform:scaleX(1); } 50% { transform:scaleX(.12); } 65% { transform:scaleX(1); } }
.ash-portal-haze { animation:ash-haze 4.7s ease-in-out infinite alternate; }
@keyframes ash-haze { to { opacity:.45; filter:drop-shadow(0 0 7px currentColor); } }
.ha-body.left .ha-sprite { transform: scaleX(-1); }
.ha.walk .ha-sprite svg.char { animation: ha-walk .52s ease-in-out infinite; transform-origin: 50% 92%; }
@keyframes ha-walk { 0%, 50%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-2px) rotate(.65deg); } 75% { transform: translateY(-2px) rotate(-.65deg); } }
.ha.walk:not(.sit):not(.swim):not(.riding) .c-head { animation: ha-head-stable .52s ease-in-out infinite; transform-box:fill-box; transform-origin:50% 90%; }
@keyframes ha-head-stable { 25% { transform:translateY(1px) rotate(-.6deg); } 75% { transform:translateY(1px) rotate(.6deg); } }
.ha.walk:not(.sit):not(.swim) .c-armL { transform-box: fill-box; transform-origin: 50% 0; animation: ha-arm .5s ease-in-out infinite; }
.ha.walk:not(.sit):not(.swim) .c-armR { transform-box: fill-box; transform-origin: 50% 0; animation: ha-arm .5s ease-in-out infinite reverse; }
.ha .c-legs-walk { display:none; }
.ha.walk:not(.sit):not(.swim):not(.riding):not(.boat):not(.sliding):not(.diver) .c-legs { display:none; }
.ha.walk:not(.sit):not(.swim):not(.riding):not(.boat):not(.sliding):not(.diver) .c-legs-walk { display:inline; }
.ha.walk .c-legL, .ha.walk .c-legR { transform-box:view-box; animation:ha-leg-step .52s ease-in-out infinite; }
.ha.walk .c-legL { transform-origin:68px 158px; }
.ha.walk .c-legR { transform-origin:92px 158px; animation-direction:reverse; }
@keyframes ha-arm { 25% { transform: rotate(8deg) translateY(1px); } 75% { transform: rotate(-6deg); } }
@keyframes ha-leg-step { 25% { transform: rotate(5deg) translateY(-1px); } 75% { transform: rotate(-5deg) translateY(1px); } }
.ha.walk .ha-shadow { animation: ha-shadow .42s ease-in-out infinite; }
@keyframes ha-shadow { 25%, 75% { transform: scale(.85); opacity: .8; } }
.ha.sit .ha-shadow { display: none; }
/* front and back views */
.ha-sprite .ha-b, .ha.back .ha-sprite .ha-f { display: none; }
.ha.back .ha-sprite .ha-b { display: block; }
.ha-f > svg, .ha-b > svg { width: 72px; height: auto; display: block; overflow: visible; }
/* sitting: the legs bend (thighs come toward you), the hips sit on the seat, the feet hang or rest on the floor.
   Legs are ~35px tall; bent to 42% they lose ~20px, so the sprite drops by that and rises by the seat's height. */
.ha .c-legs { transform-box: fill-box; transform-origin: 50% 0; transition: transform .28s var(--spring); }
.ha.sit .ha-sprite { bottom: calc(var(--seat, 0px) - 37px); transition: bottom .25s var(--spring); }
/* seated legs (bent at the knee) or crossed on the floor, instead of the standing ones */
.ha.sit:not(.lie) .c-legs, .ha.act-yoga .c-legs { display: none; }
.ha.sit:not(.lie):not(.floor) .c-legs-sit { display: inline; }
.ha.sit.floor .c-legs-cross, .ha.act-yoga .c-legs-cross { display: inline; }
.ha.sit .c-shadow { display: none; }
.ha.sit.floor .ha-sprite { bottom: -25px; }
.ha.sit.floor .ha-shadow { display: block; }
/* lying back on a lounger or a towel: head toward the far end */
.ha.lie .ha-sprite { bottom: calc(var(--seat, 0px) - 38px); }
.ha.lie .ha-sprite .ha-f, .ha.lie .ha-sprite .ha-b { transform: rotate(62deg); transform-origin: 50% 64.5%; }
.ha.lie .ha-body.left .ha-sprite { transform: none; }

.ha.swim .ha-sprite { bottom: -44px; clip-path: inset(0 0 44% 0); }
.ha.swim .ha-sprite svg.char { animation: ha-swim 1.8s ease-in-out infinite; }
@keyframes ha-swim { 50% { transform: translateY(-3px) rotate(2deg); } }
.ha.swim .ha-shadow { display: none; }
.ha-ripple { position: absolute; left: -24px; top: -8px; width: 48px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); display: none; }
.ha.swim .ha-ripple { display: block; animation: ha-ripple 1.8s ease-out infinite; }
@keyframes ha-ripple { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.ha.afk .ha-sprite svg.char { animation: ha-afk 3.6s ease-in-out infinite; filter: saturate(.8); }
@keyframes ha-afk { 50% { transform: scaleY(.96) translateY(1px); } }
/* idle animations and emotes */
.ha-body.an-look .ha-sprite { animation: an-look 2.2s steps(1) both; }
@keyframes an-look { 0%, 30% { transform: scaleX(1); } 31%, 65% { transform: scaleX(-1); } 66%, 100% { transform: scaleX(1); } }
.ha-body.left.an-look .ha-sprite { animation-name: an-look-l; }
@keyframes an-look-l { 0%, 30% { transform: scaleX(-1); } 31%, 65% { transform: scaleX(1); } 66%, 100% { transform: scaleX(-1); } }
.ha-body.an-stretch .ha-sprite svg.char { animation: an-stretch 1.8s ease-in-out both; transform-origin: 50% 100%; }
@keyframes an-stretch { 30%, 60% { transform: scale(.94, 1.1); } }
.ha-body.an-hop .ha-sprite svg.char, .ha-body.an-kick .ha-sprite svg.char { animation: an-hop .45s ease-out 2 both; transform-origin: 50% 100%; }
.ha-body.an-kick .ha-sprite svg.char { animation-iteration-count: 1; }
@keyframes an-hop { 0% { transform: scale(1.06, .92); } 40% { transform: translateY(-14px) scale(.96, 1.05); } 100% { transform: none; } }
.ha-body.an-tap .ha-sprite svg.char { animation: an-tap .3s ease-in-out 7 both; transform-origin: 50% 100%; }
@keyframes an-tap { 50% { transform: rotate(-2deg) translateY(-1px); } }
.ha-body.an-sway .ha-sprite svg.char, .ha-body.an-dance .ha-sprite svg.char { animation: an-dance .55s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes an-dance { 0%, 100% { transform: rotate(-8deg) translateY(0); } 25% { transform: rotate(0) translateY(-8px) scale(1.04, .97); } 50% { transform: rotate(8deg); } 75% { transform: rotate(0) translateY(-8px); } }
.ha-body.an-sway .ha-sprite svg.char { animation-duration: 1.5s; }
.ha-body.an-laugh .ha-sprite svg.char { animation: an-laugh .18s ease-in-out 10 both; transform-origin: 50% 100%; }
@keyframes an-laugh { 50% { transform: translateY(-2px) scale(1.03, .97); } }
.ha-body.an-clap .ha-sprite svg.char { animation: an-tap .2s ease-in-out 9 both; transform-origin: 50% 100%; }
.ha-body.an-flex .ha-sprite svg.char { animation: an-flex 2.2s ease-in-out both; transform-origin: 50% 100%; }
/* A bow hinges at the waist, with a small head dip and a planted stance. */
.ha-body.an-bow .ha-sprite svg.char { animation: an-bow 1.8s ease-in-out both; transform-origin: 50% 75%; }
@keyframes an-bow { 0%, 100% { transform: none; } 25%, 70% { transform: rotate(10deg) scale(.97, .94) translateY(7px); } }
.hub-gear { background:linear-gradient(145deg,#3d2638,#180e29)!important; border-color:#d9895a!important; box-shadow:0 3px 0 #190f29,0 0 15px #d9604a55!important; }
.hub-gear:hover { transform:translateY(-3px) scale(1.06); }
.hub-bag { background: linear-gradient(145deg,#8a6242,#483329)!important; box-shadow: 0 4px 0 #302026, 0 0 13px #dda66a44!important; }
.hub-round .hub-hud-art { width: 35px; height: 35px; display: block; filter: drop-shadow(0 2px 1px #140d1e88); }
.hub-emote { background:linear-gradient(145deg,#71503f,#302537)!important; box-shadow:0 4px 0 #211929,0 0 13px #d5a76a33!important; }
.hub-sit { background:linear-gradient(145deg,#695743,#2b2630)!important; box-shadow:0 4px 0 #211929,0 0 13px #d5a76a33!important; }
.online-preview,.online-scroll { color:#f5e3d3; }
.online-map-modes { display:flex; justify-content:center; gap:4px; width:max-content; max-width:100%; margin:0 auto 10px; padding:4px; border:1px solid #c2935d; border-radius:9px; background:#171d2d; }
.online-map-modes button { border:0; border-radius:6px; padding:7px 13px; background:transparent; color:#ddc5a7; font:800 12px var(--font); cursor:pointer; }
.online-map-modes button.on { background:#ad7647; color:#fff5da; }
.online-local-shell { display:none; position:relative; width:100%; height:clamp(280px,calc(100dvh - 370px),650px); margin:0 auto; overflow:hidden; border:8px ridge #9c673e; border-radius:20px; background:#173f66; box-shadow:inset 0 0 70px #090b19,0 18px 40px #120c2788; cursor:grab; touch-action:none; }
.online-local-shell.dragging { cursor:grabbing; }
.online-preview.local-mode .online-local-shell { display:block; }
.online-preview.local-mode .online-chart-shell { display:none; }
.online-local-canvas { width:100%; height:100%; display:block; }
.online-local-heads { position:absolute; inset:0; pointer-events:none; }
.online-local-head { position:absolute; left:0; top:0; display:block; width:28px; height:28px; margin:-14px 0 0 -14px; border-radius:50%; box-shadow:0 0 0 2px #75d4f4,0 3px 8px #091a33aa; }
.online-local-head.friend { box-shadow:0 0 0 3px #3ee6a8,0 0 14px #3ee6a877,0 3px 8px #091a33aa; }
.online-local-head .avatar { display:block; width:28px !important; height:28px !important; vertical-align:top; }
.online-local-head .avatar,.hm-head .avatar { border-radius:50% !important; clip-path:circle(50%); overflow:hidden; }
.online-local-tip span { color:#3ee6a8; }
.online-preview:not(.local-mode) [data-local-center] { display:none; }
.online-preview.local-mode [data-map-fit] { display:none; }
.online-local-tip { position:absolute; left:12px; bottom:12px; border:1px solid #d5b47899; border-radius:6px; padding:5px 9px; background:#111c2bd9; color:#fff3cc; font:800 11px var(--font); pointer-events:none; }
.online-chart-shell { position: relative; width: 100%; margin: 0 auto; }
.online-chart-wrap { position:relative; width:100%; height:clamp(280px,calc(100dvh - 370px),650px); overflow:auto; border:7px solid #7c563e; outline:2px solid #d0a779; outline-offset:-3px; border-radius:16px; background:linear-gradient(#101c30cc,#101c30cc),url('/assets/ash-chronicle/atlas.webp') center/cover; box-shadow:inset 0 0 70px #090b19,0 18px 40px #120c2788,0 0 0 3px #231a2b; cursor:grab; scrollbar-width:thin; scrollbar-color:#9c673e #102338; }
.online-chart-wrap:active { cursor:grabbing; }
.online-chart-zoom { width:100%; height:auto; aspect-ratio:10/7; position:relative; margin:0 auto; background:radial-gradient(circle at 50% 49%,#315974,#0e2036 72%); }
.online-chart { display:block; width:100%; height:100%; }
.online-pin { position:absolute; transform:translate(-50%,-50%); border:1px solid #ffdc9d; border-radius:50%; width:27px; height:27px; color:#fff4c3; background:#612d31; box-shadow:0 0 14px #ff904899; cursor:pointer; }
.online-pin.on { background:#ffd23f; color:#1d1240; transform:translate(-50%,-50%) scale(1.25); }
.online-city-pin { position:absolute; transform:translate(-50%,-50%); width:14px; height:14px; border:2px solid #fce3aa; border-radius:50%; background:#5e3547; box-shadow:0 0 0 4px #ffe0a344,0 0 12px #ffba67; cursor:pointer; }
.online-city-pin:is(:hover,.on) { background:#ffd23f; transform:translate(-50%,-50%) scale(1.25); }
.online-dungeon-pin { position:absolute; transform:translate(-50%,-50%) rotate(45deg); width:18px; height:18px; border:1px solid #f2bd87; border-radius:2px; background:#662b36; color:#ffd9a6; box-shadow:0 0 0 4px #1a182d99,0 0 14px #ec7447; cursor:pointer; font-size:11px; line-height:13px; padding:0; }
.online-dungeon-pin:is(:hover,.on) { background:#e49059; color:#261a29; box-shadow:0 0 0 5px #f7d9a8aa,0 0 20px #ef784a; }
.online-map-legend { display:flex; flex-wrap:wrap; gap:5px 14px; margin:3px 5px 7px; color:#d7c2aa; font:700 11px var(--font); }
.online-map-legend span { display:inline-flex; align-items:center; gap:5px; }
.online-map-legend i { width:9px; height:9px; display:inline-block; border:1px solid #f0d3a6; }
.online-map-legend i.region { border-radius:50%; background:#612d31; }
.online-map-legend i.city { border-radius:50%; background:#5e3547; }
.online-map-legend i.dungeon { background:#a34b49; transform:rotate(45deg); }
.online-map-legend i.home { border-radius:50%; background:#f1c26d; }
.online-map-popup { position:absolute; z-index:4; top:17px; right:17px; width:min(250px,65%); padding:14px 34px 12px 15px; border:1px solid #e7b67c; border-radius:14px; background:#1d2439f2; color:#fff4d6; box-shadow:0 10px 28px #06111caa; pointer-events:auto; }
.online-map-popup[hidden] { display:none; }
.online-map-popup small { display:block; color:#dfb88c; text-transform:uppercase; letter-spacing:.1em; font-size:10px; }
.online-map-popup b { display:block; font:700 20px Georgia,serif; margin:4px 0; }
.online-map-popup p { margin:0; font:12px/1.4 var(--font); }
.online-map-popup button { position:absolute; top:5px; right:7px; background:none; border:0; color:#f4d0a4; font-size:22px; cursor:pointer; }
.online-home { animation:online-pulse 3s ease-in-out infinite; transform-origin:500px 340px; }
.online-waves { animation:online-waves 12s ease-in-out infinite alternate; }
.online-clouds { animation:online-cloud-drift 15s ease-in-out infinite alternate; }
.online-ships { animation:online-ships 9s ease-in-out infinite alternate; }
.online-route { animation:online-route 10s linear infinite; }
@keyframes online-cloud-drift { to { transform:translateX(18px); opacity:.12; } }
@keyframes online-ships { to { transform:translate(12px,-5px); } }
@keyframes online-route { to { stroke-dashoffset:-100; } }
@keyframes online-pulse { 50% { opacity:.55; transform:scale(1.1); } }
@keyframes online-waves { to { transform:translateX(12px); opacity:.18; } }
.online-map-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:9px 5px 4px; }
.online-map-bar b,.online-map-bar small { display:block; }
.online-map-bar b { font-family:Georgia,serif; font-size:20px; }
.online-map-bar small { opacity:.75; margin-top:3px; }
.online-zoom { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.online-zoom button { background:#342443; border:1px solid #bb824e; color:#fff; border-radius:9px; width:33px; height:33px; cursor:pointer; display:grid; place-items:center; padding:0; font:800 17px/1 Nunito, sans-serif; } /* (v113: centred the same in every browser) */
.online-disclaimer { font-size:12px; opacity:.68; line-height:1.5; margin:5px 0 0; }
.online-scroll { border:2px solid #9b5238; border-radius:8px 8px 22px 22px; padding:0 21px 22px; background:linear-gradient(110deg,#6d382d14,#241925 18%,#33232d 50%,#211822 82%,#81432f19),radial-gradient(circle at 50% -15%,#8f302a 0,#382334 45%,#1b172a 85%); box-shadow:inset 0 0 60px #170e1c,0 16px 40px #10091488; position:relative; overflow:hidden; }
.online-scroll:before,.online-scroll:after { content:''; position:absolute; z-index:2; top:0; bottom:0; width:8px; border-left:1px solid #d39562aa; border-right:1px solid #e6b87d77; background:linear-gradient(90deg,#3e2930,#ab6f4e,#4a2c32); pointer-events:none; }
.online-scroll:before { left:0; }.online-scroll:after { right:0; }
.online-scroll-top { position:relative; min-height:270px; margin:0 -21px 19px; text-align:center; display:grid; place-items:end center; overflow:hidden; border-bottom:2px solid #b06b48; }
.online-chronicle-scene { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 44%; }
.online-scroll-heading { position:relative; z-index:1; width:100%; padding:48px 15px 18px; background:linear-gradient(transparent,#150d1be8 54%,#150d1bfa); }
.online-scroll-heading>span { display:block; font:700 11px Georgia,serif; letter-spacing:.32em; color:#ffd395; text-shadow:0 0 10px #e7512a; }
.online-lava-flow { animation:online-lava-flow 8s ease-in-out infinite alternate; }.online-ember { animation:online-ember 3.5s ease-in-out infinite; animation-delay:var(--d); }.online-dragon { animation:online-dragon 12s ease-in-out infinite alternate; transform-origin:790px 56px; }
@keyframes online-lava-flow { to { transform:translateX(25px); opacity:.35; } }@keyframes online-ember { 50% { transform:translateY(-16px); opacity:.18; } }@keyframes online-dragon { to { transform:translate(28px,-9px) scale(1.06); } }
.online-scroll-top small { display:block; letter-spacing:.26em; text-transform:uppercase; color:#eac090; }
.online-scroll-top h2 { font:700 clamp(28px,5vw,54px) Georgia,serif; margin:5px 0; color:#ffe5bd; text-shadow:0 0 25px #f2603866; }
.online-scroll-top p { margin:0; opacity:.8; }
.online-scroll-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:11px; }
.online-scroll-grid article { min-height:135px; padding:16px; background:#ffffff0c; border:1px solid #e99b5a55; border-radius:15px; }
.online-scroll-grid article span { display:block; font-size:27px; margin-bottom:4px; }
.online-scroll-grid article b,.online-scroll-grid article small { display:block; }
.online-scroll-grid article small { line-height:1.4; opacity:.73; margin-top:4px; }
.online-pledge { display:grid; grid-template-columns:165px 1fr; gap:20px; align-items:center; padding:19px; margin-top:18px; background:#0d101ecc; border:1px solid #ed9c5f88; border-radius:18px; }
.online-pledge b { font:700 22px Georgia,serif; }
.online-pledge p { line-height:1.5; }
.online-pledge button { margin:0 9px 8px 0; }
.online-mount { display:grid; place-items:center; position:relative; height:145px; border-radius:16px; background:radial-gradient(circle,#772c32,#15101c 70%); overflow:hidden; }
.online-mount svg { width:100%; max-width:180px; height:120px; filter:drop-shadow(0 0 9px #e16641); }
.online-mount-flight { animation:mountHover 4s ease-in-out infinite; transform-origin:90px 70px; }
.online-wing-left { animation:mountWingLeft 2s ease-in-out infinite; transform-origin:88px 75px; }
.online-wing-right { animation:mountWingRight 2s ease-in-out infinite; transform-origin:92px 75px; }
@keyframes mountHover { 50% { transform:translateY(-5px); } }
@keyframes mountWingLeft { 50% { transform:rotate(7deg); } }
@keyframes mountWingRight { 50% { transform:rotate(-7deg); } }
.online-mount span { position:absolute; bottom:7px; font-size:10px; letter-spacing:.2em; }
.hub.indoors .hub-world > :not(.hut-room):not(.hut-item):not(.hut-ghost):not(.ha):not(.hov):not(.hcomp):not(.hut-spot):not(.hut-starter-chest):not(.hub-loot-pickup) { display:none!important; }
.hub:not(.indoors) .hspot.hut-spot { display:none!important; }
.hub.indoors .hub-world > .ha[hidden],.hub.indoors .hub-world > .hcomp[hidden] { display:none!important; }
.hut-scene-waves { animation:online-waves 9s ease-in-out infinite alternate; }
.hut-crop-sway { transform-box:fill-box; transform-origin:50% 90%; animation:hut-crop-sway 4.3s ease-in-out infinite alternate; }
@keyframes hut-crop-sway { to { transform:rotate(3deg); } }
.hut-animal-peck,.hut-animal-breathe { transform-box:fill-box; transform-origin:50% 100%; }
.hut-animal-peck { animation:hut-peck 5.7s ease-in-out infinite; }.hut-animal-breathe { animation:hut-graze 7.4s ease-in-out infinite; }
@keyframes hut-peck { 0%,68%,100% { transform:translateY(0) rotate(0); } 72%,78% { transform:translateY(2px) rotate(11deg); } 75%,81% { transform:translateY(4px) rotate(15deg); } }
@keyframes hut-graze { 0%,58%,100% { transform:translateY(0) rotate(0); } 67%,84% { transform:translateY(2px) rotate(4deg); } }
.hut-plot { cursor:pointer; transition:filter .2s ease; }
.hut-plot:hover { filter:brightness(1.3) drop-shadow(0 0 6px #e5b56b); }
.hut-shore-feature { cursor: pointer; transition: filter .2s ease; }
.hut-shore-feature:hover { filter: brightness(1.16) drop-shadow(0 0 7px #ffe7ab); }
.hut-skiff { cursor: pointer; }
.hut-skiff > ellipse { transform-box: fill-box; transform-origin: center; animation: ha-ripple 2.6s ease-in-out infinite; }
.hut-skiff:hover { filter: drop-shadow(0 0 7px #e8fcff); }
.hut-skiff.used { opacity: 0; pointer-events: none; }
.hut-shore-glow { animation: hut-shore-pulse 3.8s ease-in-out infinite alternate; }
@keyframes hut-shore-pulse { from { opacity: .55; filter: drop-shadow(0 0 2px #ffe7a8); } to { opacity: 1; filter: drop-shadow(0 0 9px #ffe7a8); } }
.hut-shore-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: hut-fire 1.8s ease-in-out infinite alternate; }
@keyframes hut-fire { from { transform: skewX(-5deg) scaleY(.9); } to { transform: skewX(5deg) scaleY(1.08); } }
.hub-gullgift { position:absolute; width:100px; height:70px; margin:-50px 0 0 -50px; font-size:42px; line-height:1; pointer-events:none; z-index:100000; animation:gull-drop 4.1s ease-in-out both; filter:drop-shadow(0 8px 10px #1d124088); }
.hub-gullgift span { display:block; font-size:24px; position:absolute; top:36px; left:32px; animation:gull-parcel 4.1s ease-in both; }
@keyframes gull-drop { 0% { opacity:0; translate:-170px -120px; rotate:-8deg; } 18% { opacity:1; } 48% { translate:0 -50px; rotate:4deg; } 70% { translate:28px -70px; opacity:1; } 100% { translate:170px -150px; opacity:0; } }
@keyframes gull-parcel { 0%,39% { translate:0 0; } 65% { translate:10px 80px; opacity:1; } 75%,100% { translate:10px 80px; opacity:0; } }
@media(max-width:700px) { .online-scroll-grid { grid-template-columns:repeat(2,1fr); } .online-pledge { grid-template-columns:1fr; } .online-mount { height:115px; } .online-map-bar { align-items:flex-start; flex-direction:column; gap:8px; } .online-chart-shell { width:100%; } .online-chart-wrap { touch-action:pan-x pan-y; } .online-map-popup { top:8px; right:8px; width:min(220px,72%); padding:9px 28px 9px 10px; } .online-map-popup b { font-size:16px; } }
@keyframes an-flex { 20%, 80% { transform: scale(1.12, .95); } 50% { transform: scale(1.16, .93); } }
.ha-body.an-cast .ha-sprite svg.char { animation: an-cast .7s ease-out both; transform-origin: 50% 100%; }
@keyframes an-cast { 30% { transform: rotate(-12deg); } 60% { transform: rotate(10deg); } }
.ha-body.an-cheer2 .ha-sprite svg.char { animation: an-hop .4s ease-out 3 both; transform-origin: 50% 100%; }

/* names, bubbles and emote pops, above the night */
.hov { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.ha-tag { position: absolute; left: 0; top: 4px; translate: -50% 0; white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 7px; border-radius: 12px; background: rgba(29, 18, 64, .62); color: #fff; font-size: 11px; font-weight: 800; backdrop-filter: blur(3px); transition: opacity .3s; }
.hov .ha-tag { pointer-events:none; }
.ha-clan { display: inline-block; margin-right: 4px; padding: 0 4px; border-radius: 5px; font-size: .78em; font-weight: 900; letter-spacing: .04em; color: #10162a; background: var(--cc, #ffd23f); vertical-align: 1px; }
.ha,.ha-body,.ha-sprite,.ha-sprite :is(.ha-f,.ha-b,svg.char) { pointer-events:none; }
.ha-sprite svg.char :is(path,ellipse,circle,rect,polygon,polyline,line) { pointer-events:visiblePainted; }
.ha-sprite svg.char .c-shadow,.ha-sprite svg.char .gear-rod path:last-of-type { pointer-events:none; }
.ha-tag-main { display: inline-flex; align-items: center; gap: 4px; }
.ha-title { display: block; padding: 2px 6px; border-radius: 6px; background: #ffe2a0; color: #24143c; font: 800 10px/1.2 var(--font); letter-spacing: .02em; }
.ha-title[hidden] { display: none; }
.hub.phone .ha-tag { backdrop-filter: none; background: rgba(29, 18, 64, .75); }
.ha-tag b { font-weight: 900; display: flex; align-items: center; gap: 4px; } .ha-tag b i { font-style: normal; font-size: 9px; padding: 0 5px; border-radius: 6px; background: rgba(255, 210, 63, .25); color: #ffd23f; }
.hov.me .ha-tag { background: rgba(255, 210, 63, .92); color: #1d1240; } .hov.me .ha-tag b i { background: rgba(29, 18, 64, .2); color: #1d1240; }
.hov.me .ha-title { background: #35204f; color: #fff4d3; }
.ha-afk, .ha-zz { display: none; }
.hov.afk .ha-afk { display: inline; font-size: 9px; padding: 1px 5px; border-radius: 5px; background: #8a8fa8; color: #fff; }
.hov.afk .ha-zz { display: inline-flex; position: absolute; right: -16px; top: -18px; font-weight: 900; color: #c8d4ff; font-size: 12px; }
.ha-zz i { font-style: normal; animation: zz 2.4s ease-in-out infinite; } .ha-zz i:nth-child(1) { animation-delay: .4s; } .ha-zz i:nth-child(2) { animation-delay: .8s; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -14px) scale(1.2); } }
.ha-bubbles { position: absolute; left: 0; bottom: 104px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 210px; }
.ha-bubble { max-width: 200px; padding: 6px 11px; border-radius: 14px; background: #fff; color: #1d1240; font-size: 12.5px; font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); animation: hb-in .3s var(--spring) both; position: relative; }
.ha-bubble:last-child::after { content: ''; position: absolute; left: 50%; bottom: -6px; translate: -50% 0; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.ha-bubble.out { animation: hb-out .35s ease both; }
@keyframes hb-in { from { opacity: 0; transform: translateY(8px) scale(.7); } }
@keyframes hb-out { to { opacity: 0; transform: translateY(-8px) scale(.9); } }
.ha-fx { position: absolute; left: 0; bottom: 108px; }
.ha-pop { position: absolute; left: 0; bottom: 0; translate: -50% 0; font-size: 20px; animation: ha-pop 2.1s ease-out both; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.ha-pop.big { font-size: 28px; }
@keyframes ha-pop { 0% { opacity: 0; transform: translate(0, 10px) scale(.4); } 15% { opacity: 1; transform: translate(0, -6px) scale(1.15); } 100% { opacity: 0; transform: translate(var(--dx), -54px) scale(1); } }
.htbadge { position: absolute; left: 0; top: 0; translate: -50% -100%; padding: 3px 9px; border-radius: 999px; background: #ff5c8a; color: #fff; font-size: 11px; font-weight: 900; white-space: nowrap; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); animation: hp-bob 2s ease-in-out infinite; }

/* companions, crabs, the ball, coconuts, gulls */
.hcomp { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.hc-shadow { position: absolute; left: -11px; top: -4px; width: 22px; height: 8px; border-radius: 50%; background: radial-gradient(closest-side, rgba(29, 18, 64, .38), transparent); }
.hc-body { position: absolute; left: -17px; bottom: -3px; width: 34px; height: 34px; }
.hcomp.fly .hc-body { bottom: 34px; animation: hc-fly 2.6s ease-in-out infinite; }
.hcomp.fly .hc-shadow { transform: scale(.7); opacity: .6; }
@keyframes hc-fly { 50% { transform: translateY(-7px); } }
.hc-body svg { width: 34px; height: 34px; display: block; overflow: visible; }
.hcomp.walk:not(.fly) .hc-body svg { animation: hc-hop .32s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes hc-hop { 50% { transform: translateY(-4px) scale(1.03, .97); } }
.hc-body.left svg { scale: -1 1; transform: none; }
.cp .cp-tail { animation: cp-tail 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 0 100%; }
@keyframes cp-tail { 50% { transform: rotate(14deg); } }
.cp .cp-wing { animation: cp-wing .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes cp-wing { to { transform: scaleY(.7); } }
.cp .cp-glow { animation: hp-holo 2s ease-in-out infinite; }
.cp .cp-tent { animation: cp-tail 1.4s ease-in-out infinite; animation-delay: var(--d); }
.hcrab { position: absolute; left: 0; top: 0; width: 0; height: 0; cursor: pointer; }
.hcrab svg { position: absolute; left: -14px; bottom: -6px; width: 28px; transition: transform .3s; }
.hcrab.walk svg { animation: crab .25s ease-in-out infinite; }
@keyframes crab { 50% { transform: translateY(-1.5px) rotate(4deg); } }
.hcrab.hide svg { transform: translateY(8px) scale(.5); opacity: .4; }
.hball { position: absolute; left: 0; top: 0; width: 0; height: 0; cursor: pointer; }
.hb-shadow { position: absolute; left: -11px; top: -4px; width: 22px; height: 8px; border-radius: 50%; background: radial-gradient(closest-side, rgba(29, 18, 64, .4), transparent); }
.hb-ball { position: absolute; left: -12px; bottom: calc(-2px + var(--h, 0px)); width: 24px; height: 24px; }
.hball.rolling .hb-ball { animation: hp-spin .6s linear infinite; }
.hcoco { position: absolute; width: 0; height: 0; pointer-events: none; }
.hcoco i { position: absolute; left: -7px; top: -130px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a0764a, #5a3a24); animation: coco 2.6s ease-in both; }
@keyframes coco { 0% { transform: translate(0, 0); } 35% { transform: translate(calc(var(--dx) * .3), 128px); } 50% { transform: translate(calc(var(--dx) * .6), 110px); } 65% { transform: translate(var(--dx), 128px) rotate(180deg); } 90% { opacity: 1; } 100% { transform: translate(var(--dx), 128px) rotate(240deg); opacity: 0; } }
.hgull { position: absolute; top: var(--y); left: -60px; width: 40px; pointer-events: none !important; animation: gull var(--d) linear both; opacity: .9; }
.hgull svg { width: 40px; animation: gullflap .5s ease-in-out infinite alternate; }
.hgull.rtl { animation-name: gull-rtl; }
@keyframes gull { from { transform: translateX(0) translateY(0); } 50% { transform: translateX(55vw) translateY(-30px); } to { transform: translateX(calc(100vw + 120px)) translateY(10px); } }
@keyframes gull-rtl { from { transform: translateX(calc(100vw + 120px)) scaleX(-1); } to { transform: translateX(-20px) scaleX(-1) translateY(-40px); } }
@keyframes gullflap { to { transform: scaleY(.55); } }

/* ---- the controls */
.hub-top { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 12; display: flex; align-items: center; gap: 10px; }
.hub-top-r { margin-left: auto; display: flex; gap: 8px; }
.hub-more { display: none !important; }
.hub-btn, .hub-chip { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border: 0; border-radius: 15px; background: rgba(29, 18, 64, .72); color: #fff; font: inherit; font-weight: 900; font-size: 13.5px; cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .1); backdrop-filter: blur(8px); transition: transform .15s var(--spring), background .2s; }
.hub.phone .hub-btn, .hub.phone .hub-chip { backdrop-filter: none; background: rgba(29, 18, 64, .86); }
.hub-btn:hover, .hub-chip:hover { transform: translateY(-2px); background: rgba(43, 29, 85, .9); }
.hub-btn:active { transform: translateY(1px); }
.hub-btn .ico, .hub-chip .ico { width: 18px; height: 18px; }
.hub-menu { background: #ffd23f; color: #1d1240; } .hub-menu:hover { background: #ffe066; }
.hub-chip b { font-family: var(--display); font-size: 15px; } .hub-chip span:not(.hub-dot) { color: var(--muted); }
.hub-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee6a8; box-shadow: 0 0 0 0 rgba(62, 230, 168, .6); animation: sb-ping 2s ease-out infinite; }
.hub-chat { position: absolute; left: 12px; bottom: 12px; width: min(360px, calc(100vw - 24px)); display: grid; gap: 6px; }
.hub-vitals { position:absolute; top:78px; left:14px; width:272px; min-height:82px; display:flex; align-items:center; gap:9px; padding:10px; border:1px solid #d6b88792; border-radius:13px; background:linear-gradient(145deg,#302438ed,#1a1b2cf0); box-shadow:0 12px 30px #0e0d20a8,inset 0 0 0 2px #fff2ce0c; color:#f8eddb; cursor:context-menu; }
.hub-vitals[hidden] { display:none; }
.hub-target { left:calc(28px + 272px * var(--hub-ui-scale, 1)); border-color:#6be4f0; background:linear-gradient(145deg,#244056f2,#172737f5); box-shadow:0 12px 30px #0e0d20a8,inset 0 0 0 2px #8aeaf01c,0 0 22px #6be4f044; animation:hub-target-in .26s var(--spring) both; }
.hub-target .hv-portrait { box-shadow:0 0 0 2px #7de7edaa; }
.hub-target .hv-detail { font-size:11px; font-weight:800; color:#a9e8ed; padding-top:2px; }
.hub-target .hv-object { display:grid; place-items:center; width:100%; height:100%; font-size:28px; }
@keyframes hub-target-in { from { opacity:0; transform:translateX(-12px) scale(.94); } }
.hv-portrait { flex:none; width:55px; height:55px; display:grid; place-items:center; background:radial-gradient(circle,#775e4a,#262036); border-radius:10px; box-shadow:0 0 0 1px #e5bc7d77; }
.hv-main { flex:1; min-width:0; display:grid; gap:4px; }
.hv-name { display:flex; align-items:baseline; justify-content:space-between; gap:4px; white-space:nowrap; overflow:hidden; }
.hv-name b { overflow:hidden; text-overflow:ellipsis; font:700 14px Georgia,serif; }
.hv-name small { color:#dac8ae; font-size:9px; overflow:hidden; text-overflow:ellipsis; }
.hv-bar { height:17px; position:relative; overflow:hidden; border:1px solid #d6bf9555; border-radius:4px; background:#0b0e1e; box-shadow:inset 0 2px 5px #000a; }
.hv-bar span { display:block; height:100%; transition:width .45s ease; }
.hv-bar.life span { background:linear-gradient(#d15a51,#82343e); }
.hv-bar.energy span { background:linear-gradient(#7fb9c9,#35607f); }
.hv-bar b { position:absolute; inset:0; text-align:center; line-height:15px; font:800 10px/15px var(--font); text-shadow:0 1px 3px #000; }
.hub-context { position:fixed; z-index:81; width:222px; padding:5px; border:1px solid #e7c58a9a; border-radius:9px; background:linear-gradient(145deg,#34283b,#171a2a); color:#f8f0dc; box-shadow:0 18px 45px #050712d9; }
.hub-context[hidden] { display:none; }
.hcx-title { padding:7px 10px; color:#eac794; font:700 12px Georgia,serif; border-bottom:1px solid #d5ae7955; margin-bottom:3px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.hub-context button { width:100%; display:flex; align-items:center; gap:8px; padding:8px; border:0; border-radius:5px; background:transparent; color:inherit; font:700 12px var(--font); cursor:pointer; text-align:left; }
.hub-context button:hover { background:#d8a76d2e; }
.hub-context .ico { width:16px; height:16px; color:#f5c783; }
.hcx-inspect { padding:12px 16px; border:1px solid #cfac7655; border-radius:10px; background:#211c2d; }
.hcx-inspect b { font:700 21px Georgia,serif; }
@media (max-width:700px) { .hub-vitals { top:68px; left:8px; width:225px; min-height:65px; padding:6px; } .hv-portrait { width:43px; height:43px; } .hv-portrait .avatar { transform:scale(.78); } }
@media (max-width:700px) { .hub-target { top:139px; left:8px; } }
.hc-log { max-height: 190px; overflow-y: auto; display: grid; gap: 3px; align-content: end; padding: 8px 10px; border-radius: 16px; background: linear-gradient(180deg, rgba(29, 18, 64, 0), rgba(29, 18, 64, .55) 20%); mask-image: linear-gradient(180deg, transparent, #000 22%); scrollbar-width: thin; }
.hc-log[hidden] { display:none; }
.hc-tabs { display:flex; gap:2px; padding:4px; width:100%; border:1px solid #d6b88739; border-bottom:0; border-radius:12px 12px 0 0; background:#171627db; transition:opacity 1.8s ease, transform 1.8s ease; }
.hc-tabs button { border:0; border-radius:5px; padding:5px 9px; background:transparent; color:#d8c6ac; font:700 11px var(--font); cursor:pointer; }
.hc-tabs button.on { color:#1c1826; background:#d8b778; }
.hub-chat { width:min(430px,calc(100vw - 24px)); gap:0; }
.hub-chat .hc-log { max-height:210px; background:linear-gradient(180deg,#171627db,#171627db); border:1px solid #d6b88739; border-top:0; border-radius:0 0 12px 12px; mask-image:none; }
.hc-log { transition: opacity 1.8s ease, transform 1.8s ease; }
.hub-chat.quiet:not(:focus-within):not(:hover) :is(.hc-log,.hc-tabs) { opacity: .08; transform: translateY(6px); }
.hub-chat.quiet:not(:focus-within):not(:hover) .hc-log { pointer-events: none; }
.hub-chat .hc-form { margin-top:6px; }
.hub-chat .hc-tabs { flex-wrap:wrap; gap:4px; padding:6px; border:1px solid #c99764; background:linear-gradient(160deg,#252033f2,#161725f2); box-shadow:0 5px 16px #0808156b,inset 0 1px #ffe1a329; }
.hub-chat .hc-tabs button { border:1px solid transparent; border-radius:7px; }
.hub-chat .hc-tabs button.on { background:linear-gradient(#ebc78e,#bd8c58); border-color:#ffdfae; color:#241c2c; }
.hub-chat .hc-log { border-color:#b88d60; background:linear-gradient(180deg,#242034eb,#181725ed); box-shadow:0 9px 20px #08081573,inset 0 1px #ffd99a29; }
.hub-chat .hc-form .input { border:1px solid #b88d60; background:#211d30e8; box-shadow:inset 0 1px #f1c98c23; }
.hc-conversations { display:contents; }
.hc-thread { display:inline-flex; align-items:center; border:1px solid #9e7857; border-radius:8px; background:#2a2638; }
.hc-thread.on { border-color:#ffe2a7; background:#51405a; }
.hc-thread button { padding:4px 6px !important; color:#f9deb0 !important; }
.hc-thread .hc-thread-close { padding:2px 5px !important; color:#d7bcaa !important; }
.hub-chat .hc-log .hcl { animation:none; }
.ib-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
.hut-starter-chest { position: absolute; left: -32px; top: -48px; z-index: 11000; border: 0; border-radius: 12px; background: #805335; box-shadow: 0 8px 0 #49311f, 0 15px 25px #1128; color: #fff6dd; padding: 5px 8px; cursor: pointer; display: grid; justify-items: center; gap: 1px; font: 800 10px var(--display); white-space: nowrap; }
.hut-starter-chest span { font-size: 32px; line-height: 1; }
.hut-starter-chest:hover { filter: brightness(1.12); }
.hut-starter-chest[hidden], .hut-storage[hidden] { display: none; }
.hut-storage { position: absolute; inset: 0; z-index: 120; display: grid; place-items: center; background: #120b2c99; padding: 15px; }
.hut-storage-card { width: min(760px, 100%); max-height: min(85vh, 760px); overflow: auto; border: 2px solid #f3d9a1; border-radius: 24px; background: linear-gradient(145deg, #38204e, #1d1839); color: #fff; box-shadow: 0 24px 70px #0b071a99; padding: 20px; }
.hut-storage-card header { display: flex; justify-content: space-between; gap: 16px; align-items: start; border-bottom: 1px solid #ffffff33; padding-bottom: 12px; }
.hut-storage-card h2, .hut-storage-card h3 { margin: 4px 0; font-family: var(--display); }
.hut-storage-card p { margin: 3px 0; color: #ded3e6; }
.hut-storage-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hut-storage-row { display: flex; align-items: center; gap: 8px; border: 1px solid #ffffff22; border-radius: 12px; padding: 6px; margin: 5px 0; background: #ffffff0c; }
.hut-storage-row > div:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.hut-storage-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hut-storage-row small { color: #c9bfd1; }
.hut-storage-row input { width: 43px; padding: 5px 1px; border-radius: 7px; border: 1px solid #ffffff55; background: #201830; color: #fff; text-align: center; }
.hut-garden .hut-storage-card { width: min(850px,100%); }
.hut-farm-upgrade { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 14px 0; border-radius: 14px; border: 1px solid #ffd23f55; background: linear-gradient(110deg,#ffd23f22,#b388ff16); }
.hut-farm-upgrade b, .hut-farm-upgrade small { display: block; }
.hut-farm-upgrade small { color: #ddd0d2; margin-top: 3px; }
.hut-farm-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 10px; }
.hut-farm-plot { min-height: 185px; padding: 12px; border: 1px solid #ffffff2b; border-radius: 15px; background: radial-gradient(circle at 50% 28%,#50703a50,#261d38 72%); display: flex; flex-direction: column; gap: 6px; }
.hut-farm-plot .eyebrow { color: #a9e4a2; }
.hut-farm-icon { font-size: 37px; text-align: center; height: 48px; filter: drop-shadow(0 5px 5px #0007); }
.hut-farm-plot b { font-family: var(--display); }
.hut-farm-plot small { color: #ded5e3; min-height: 25px; }
.hut-farm-plot .input { width: 100%; min-width: 0; }
.hut-farm-plot > .btn { margin-top: auto; }
.hut-farm-actions { display: flex; gap: 5px; margin-top: auto; }
.hut-farm-actions .btn:first-child { flex: 1; }
.hut-sites-heading { margin: 18px 2px 9px; } .hut-sites-heading h3 { margin: 0; font-family: var(--display); font-size: 17px; } .hut-sites-heading small { color: #d9cde0; }
.hut-farm-sites { display: grid; grid-template-columns: repeat(auto-fit,minmax(175px,1fr)); gap: 10px; }
.hut-farm-site { min-height: 150px; padding: 12px; border: 1px solid #b3e1b450; border-radius: 15px; background: linear-gradient(145deg,#355f4655,#261d38 72%); display: flex; flex-direction: column; gap: 8px; }
.hut-farm-site .eyebrow { color: #b7e8b4; } .hut-farm-site b { font-family: var(--display); } .hut-farm-site small { color: #ded5e3; } .hut-farm-site .input { width: 100%; min-width: 0; } .hut-farm-site .btn { margin-top: auto; }
.hut-building-cost .c { width: 14px; height: 14px; vertical-align: -2px; }
.hut-farm-site.locked { opacity: .55; } .hut-site-built { display: flex; align-items: center; gap: 9px; } .hut-site-built span { font-size: 27px; }
.gear-weapon-epic { filter: drop-shadow(0 0 4px var(--weapon-glow)); }
.gear-weapon-epic .weapon-aura { animation: weapon-pulse 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes weapon-pulse { 50% { opacity: .25; transform: scale(1.12); } }
.gear-weapon .weapon-art { transform-box: view-box; transform-origin: 0 34px; }
.gear-weapon .weapon-swing-trail { opacity: 0; filter: drop-shadow(0 0 5px var(--weapon-glow)); }
.ha-body.an-slash .gear-weapon.drawn .weapon-art { animation: weapon-cut .65s cubic-bezier(.2,.7,.25,1) both; }
.ha-body.an-smash .gear-weapon.drawn .weapon-art { animation: weapon-crush .8s cubic-bezier(.2,.7,.25,1) both; }
.ha-body.an-bowshot .gear-weapon.drawn .weapon-art { animation: weapon-release .7s ease-out both; }
.ha-body.an-spell .gear-weapon.drawn .weapon-art { animation: weapon-channel .8s ease-out both; }
.ha-body:is(.an-slash,.an-smash) .gear-weapon.drawn .weapon-swing-trail { animation: weapon-trail .65s ease-out both; }
@keyframes weapon-cut { 0% { transform: rotate(-30deg) translateY(4px); } 46% { transform: rotate(14deg) translateY(-3px); } 70% { transform: rotate(40deg) translateY(2px); } 100% { transform: none; } }
@keyframes weapon-crush { 0% { transform: rotate(-26deg) translateY(-8px); } 58% { transform: rotate(10deg) translateY(-8px); } 78% { transform: rotate(36deg) translateY(5px); } 100% { transform: none; } }
@keyframes weapon-release { 0%,28% { transform: translateX(-4px) scaleX(.94); } 48% { transform: translateX(3px) scaleX(1.06); } 100% { transform: none; } }
@keyframes weapon-channel { 35% { transform: translateY(-7px) rotate(-6deg); filter: drop-shadow(0 0 8px var(--weapon-glow)); } 100% { transform: none; filter: none; } }
@keyframes weapon-trail { 0%,24% { opacity: 0; stroke-dasharray: 1 130; } 48% { opacity: .85; stroke-dasharray: 80 130; } 100% { opacity: 0; stroke-dasharray: 130 130; } }
.ha-body.an-slash .ha-sprite svg.char { animation: practice-slash .65s ease-out both; transform-origin: 55% 75%; }
.ha-body.an-smash .ha-sprite svg.char { animation: practice-smash .8s ease-out both; transform-origin: 50% 85%; }
.ha-body.an-bowshot .ha-sprite svg.char { animation: practice-bow .7s ease-out both; transform-origin: 50% 80%; }
.ha-body.an-spell .ha-sprite svg.char { animation: practice-spell .8s ease-out both; transform-origin: 50% 80%; }
@keyframes practice-slash { 30% { transform: rotate(-13deg); } 55% { transform: rotate(16deg) translateY(-3px); } }
@keyframes practice-smash { 30% { transform: rotate(-9deg) translateY(-6px); } 65% { transform: rotate(10deg) translateY(2px); } }
@keyframes practice-bow { 35% { transform: translateX(-4px) scale(1.04, .98); } 60% { transform: translateX(2px); } }
@keyframes practice-spell { 35% { transform: translateY(-5px) rotate(-5deg); } 60% { transform: translateY(1px) rotate(5deg); } }
.hub-practice-bolt, .hub-practice-hit, .hub-loot-pickup { position: absolute; pointer-events: none; z-index: 18000; color: #ffd23f; font-style: normal; font-size: 26px; text-shadow: 0 0 7px currentColor; }
.hub-practice-bolt { animation: practice-fly .55s ease-out forwards; }
.hub-practice-bolt.magic { color: #a38bff; font-size: 30px; }
.hub-practice-hit { animation: practice-hit .75s ease-out both; color: #ffd23f; }
.hub-practice-hit.magic { color: #b388ff; }
.hub-loot-pickup { animation: practice-loot .8s ease-out both; color: #3ee6a8; }
.hub-loot-pickup.taken { opacity: 0; }
.hcomp.collecting .hc-body { animation: pet-collect .8s ease-in-out both; }
@keyframes practice-fly { to { translate: var(--dx) var(--dy); opacity: .1; } }
@keyframes practice-hit { 0% { scale: .1; opacity: 0; } 30% { scale: 1.2; opacity: 1; } 100% { scale: 1.7; opacity: 0; } }
@keyframes practice-loot { 50% { translate: 0 -15px; scale: 1.25; } }
@keyframes pet-collect { 45% { translate: var(--loot-x) var(--loot-y); scale: 1.08; } }
@media (max-width: 620px) { .hut-storage-card { max-height: 90vh; padding: 12px; } .hut-storage-cols { grid-template-columns: 1fr; } .hut-storage-row { gap: 5px; } .hut-storage-row .btn { padding: 6px; } }
@media (max-width: 620px) { .hut-farm-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .hut-farm-upgrade { align-items: stretch; flex-direction: column; } }
.hc-log:empty { display: none; }
.hcl { font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); overflow-wrap: anywhere; animation: hb-in .25s ease both; }
.hcl time { color: #bdc8d6; font-size: 10px; font-weight: 600; margin-right: 3px; }
.hcl.npc { color: #f3ecd9; font-style: normal; }
.hcl.npc b { color: #f7d288; cursor: default; }
.hcl.npc.tier-keeper b { color: #b5e2ff; }
.hcl.npc.tier-legend b { color: #e9b5ff; }
.hc-whisper-choice { justify-self:start; padding:6px 11px; border:1px solid #d8b77888; border-radius:8px; background:#362744; color:#ffe9ba; font:700 12px var(--font); cursor:pointer; }
.hc-whisper-choice:hover,.hc-whisper-choice:focus-visible { background:#56405f; border-color:#ffe0a0; }
.hcl b { color: #ffd23f; cursor: pointer; } .hcl.me b { color: #3ee6a8; } .hcl.sys { color: #c8d4ff; font-style: italic; font-size: 12px; }
.hc-form { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.hc-form .input { height: 42px; background: rgba(29, 18, 64, .82); border-radius: 14px; }
.hc-toggle { display: none; }
.hub-chat.min .hc-log, .hub-chat.min .hc-form { display: none; }
.hub-act { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: flex-end; gap: 8px; }
.hub-round { width: 50px; height: 50px; border: 0; border-radius: 18px; display: grid; place-items: center; background: rgba(29, 18, 64, .78); color: #fff; font-size: 24px; cursor: pointer; box-shadow: 0 5px 0 rgba(0, 0, 0, .28); transition: transform .15s var(--spring); }
.hub-round:hover { transform: translateY(-2px) scale(1.04); } .hub-round .ico { width: 22px; height: 22px; }
#hubStand { background: #ff5c8a; }
#hubSit { font-size: 22px; }
.ha-body.an-use .ha-sprite svg.char { animation: an-use .9s ease-out both; transform-origin: 50% 100%; }
@keyframes an-use { 30% { transform: translateY(-3px) scale(1.03, .98) skewX(-3deg); } 60% { transform: translateY(1px) scale(.98, 1.02); } }
.hub-zoom { display: grid; gap: 6px; } .hub-zoom button { width: 42px; height: 38px; border: 0; border-radius: 13px; background: rgba(29, 18, 64, .7); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.hub-zoom .ico { width: 18px; height: 18px; }
.hub-emotes { position: absolute; right: 0; bottom: 62px; display: grid; grid-template-columns: repeat(5, 46px); gap: 6px; padding: 8px; border-radius: 18px; background: rgba(29, 18, 64, .9); box-shadow: 0 8px 0 rgba(0, 0, 0, .25); animation: hb-in .25s var(--spring) both; }
.hub-emotes button { width: 46px; height: 46px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 24px; cursor: pointer; transition: transform .15s var(--spring); }
.hub-emotes button:hover { transform: scale(1.15); background: rgba(255, 255, 255, .14); }
.hub-hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; cursor: pointer; animation: hb-in .3s var(--spring) both; }
.hub-hint > span, .hub-fish { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 210, 63, .96); color: #1d1240; font-weight: 900; font-size: 14px; box-shadow: 0 5px 0 rgba(0, 0, 0, .28), 0 0 24px rgba(255, 210, 63, .45); white-space: nowrap; }
.hub-hint .ico { width: 17px; height: 17px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: #1d1240; color: #ffd23f; font: 900 12px var(--font); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.hub-fish { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; background: rgba(29, 18, 64, .92); color: #fff; padding: 8px; gap: 8px; animation: hb-in .3s var(--spring) both; }
.hub-fish .icon-btn { width: 40px; height: 40px; }
.hf-wait { display: flex; align-items: center; gap: 10px; padding: 0 12px; font-weight: 800; }
.hf-bob { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #fff 30%, #ff5c8a 31%); animation: hp-bob 1.4s ease-in-out infinite; }
.hf-reel { animation: hf-reel .35s ease-in-out infinite alternate; }
@keyframes hf-reel { to { transform: scale(1.08); box-shadow: 0 0 30px rgba(255, 92, 138, .8); } }
.hub-curtain { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #3a2a8a, #1d1240 70%); z-index: 50; transition: opacity .7s ease, visibility .7s; }
.hub-curtain.gone { opacity: 0; visibility: hidden; pointer-events: none !important; }
.hc-in { display: grid; justify-items: center; gap: 6px; color: #fff; }
.hc-in b { font-family: var(--display); font-size: 40px; } .hc-in small { color: var(--muted); font-weight: 800; }
.hc-sun { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff3b8, #ffd23f 50%, #ff9f43); box-shadow: 0 0 60px rgba(255, 210, 63, .6); animation: hp-bob 2.4s ease-in-out infinite; }
.hc-waves { display: grid; gap: 4px; margin: 4px 0 6px; } .hc-waves i { display: block; width: 120px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, transparent, #4cc9f0, transparent); animation: hc-wave 1.6s ease-in-out infinite; }
.hc-waves i:nth-child(2) { animation-delay: .2s; width: 90px; justify-self: center; } .hc-waves i:nth-child(3) { animation-delay: .4s; width: 60px; justify-self: center; }
@keyframes hc-wave { 50% { transform: translateX(10px); opacity: .5; } }

/* ---- the pop-up sheet */
.hub-panel { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; }
.hub-panel[hidden] { display: none; }
.hub-panel.floating { pointer-events: none; display: block; }
.hub-panel.floating[hidden] { display: none; }
.hub-panel.floating .hp-scrim { display: none; }
.hub-panel.floating .hp-sheet { position: absolute; pointer-events: auto; width: min(920px, calc(100vw - 36px)); height: min(76vh, 820px); border: 2px solid #b89364ad; border-radius: 14px; background: linear-gradient(145deg,#281c34,#151424); box-shadow: 0 20px 65px #090915bb, inset 0 0 0 2px #e7ba6c20; }
.hub-panel.floating.compact .hp-sheet { width: min(620px, calc(100vw - 36px)); }
.hub-panel.floating .hp-head { cursor: grab; background: linear-gradient(90deg,#332538,#44323a 52%,#242039); border-bottom: 2px solid #d7ae7180; }
.hub-panel.floating.dragging .hp-head { cursor: grabbing; }
.hub-panel.floating .hp-head h2 { font-family: Georgia,serif; letter-spacing:.03em; }
.hub-panel.floating .hp-body { background: radial-gradient(circle at 50% 0,#4d38541f,transparent 55%); }
.hub-panel.floating[data-route="profile"] .hp-sheet { width:min(1120px,calc(100vw - 48px)); height:min(84vh,930px); }
.hp-scrim { position: absolute; inset: 0; background: rgba(13, 8, 40, .55); backdrop-filter: blur(3px); animation: fadeIn .25s ease both; }
.hp-sheet { position: relative; width: min(1180px, calc(100vw - 40px)); height: min(86vh, 980px); display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: var(--bg); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); animation: hp-in .38s var(--spring) both; }
.hub-panel.compact .hp-sheet { width: min(620px, calc(100vw - 32px)); height: auto; max-height: 88vh; }
.hub-panel.closing .hp-sheet { animation: hp-out .22s ease both; } .hub-panel.closing .hp-scrim { animation: fadeOut .22s ease both; }
@keyframes hp-in { from { opacity: 0; transform: translateY(40px) scale(.94); } }
@keyframes hp-out { to { opacity: 0; transform: translateY(24px) scale(.96); } }
.hp-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(180deg, var(--panel), var(--bg)); box-shadow: 0 1px 0 var(--line); }
.hp-head h2 { margin: 0; font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-full[hidden] { display:none; }
.hp-full { flex:none; }
.hp-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #ffd23f; color: #1d1240; } .hp-ic .ico { width: 19px; height: 19px; }
.hp-coins { display: inline-flex; align-items: center; gap: 5px; font-weight: 900; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .25); }
.hp-coins .c { width: 18px; height: 18px; }
.hp-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; position: relative; padding: 0 0 26px; }
.hub-panel.compact .hp-body, .hp-body.pad { padding: 22px; }
.hub-panel:not(.compact) .hp-body.pad { padding: 26px 30px 30px; }
.hp-screen { position: static; animation: none; padding-top: 22px; min-height: auto; overflow: visible; overflow-x: clip; overscroll-behavior: auto; scrollbar-gutter: auto; }
/* the pop-up is the only thing that scrolls (the Hub itself swallows touches for walking) */
.hub-panel, .hub-panel *, .pcard-pop, .hub-chat .hc-log { touch-action: auto; }
.hp-screen > .wrap { padding-top: 0; }
.hp-screen .site-foot { display: none; }
.hub-panel.floating .hp-screen > .wrap { min-width:0; max-width:100%; }
.hub-panel.floating[data-route="profile"] .hp-screen, .hub-panel.floating[data-route="profile"] .hp-screen > .wrap,
.hub-panel.floating[data-route="profile"] .widgets, .hub-panel.floating[data-route="profile"] .widget { min-width:0; }
.hub-panel.floating[data-route="profile"] .widget-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)); gap:10px 18px; }
.hub-panel.floating[data-route="profile"] .widget-strip > :first-child { grid-column:1/-1; }
.hub-panel.floating[data-route="profile"] .cabinet { min-width:0; overflow:hidden; }
.hub-panel.floating[data-route="profile"] .cab-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(90px,170px) auto; }
.hub-panel.floating[data-route="profile"] .cab-head > :first-child { overflow-wrap:anywhere; }
.hub-panel.floating[data-route="profile"] .cab-shelf { min-width:0; max-width:100%; }
@media (max-width:1100px) { .hub-panel.floating[data-route="profile"] .cab-head { grid-template-columns:minmax(0,1fr) auto; } .hub-panel.floating[data-route="profile"] .cab-meter { display:none; } }
.hub-panel.floating .profile-head.v2 { min-height:300px; padding:20px; }
.hub-panel.floating .profile-head.v2 .profile-id { padding-right:175px; gap:12px; }
.hub-panel.floating .ph-char { height:215px; right:2%; bottom:36px; }
.hub-panel.floating .ph-motto { display:none; }
.hub-panel.floating .profile-id h1 { font-size:clamp(25px,3vw,37px); overflow-wrap:anywhere; }
.hub-panel.floating .profile-id .actions { margin-left:0; }
.hub-panel.floating .profile-id .btn { white-space:normal; }
.hub-panel.floating .profile-party-list a { min-width:0; max-width:100%; }
.hub-panel.floating .ach-summary { gap:12px; padding:16px; }
.hub-panel.floating .ach-grid { grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr)); }
.hub-panel.floating .cab-head > * { min-width:0; }
.hub-panel.floating .profile-secondary .profile-head.v2 { min-height:260px; }
.hub-panel.floating .profile-secondary .ph-char { height:185px; }
.hub-panel.floating .profile-secondary .widgets { display:none; }
.hub-panel.floating .profile-secondary .tabs { margin:16px 0; }
.hub-panel.floating .profile-secondary .rise { animation-delay:0s; }
.hub-panel.floating .profile-secondary .ach-grid .rise { animation:none; }
@media (max-width:1100px) { .hub-panel.floating .ph-char { display:none; } .hub-panel.floating .profile-head.v2 .profile-id { padding-right:0; } }
.hp-loading { display: flex; justify-content: center; gap: 8px; padding: 80px 0; } .hp-loading span { width: 12px; height: 12px; border-radius: 50%; background: #ffd23f; animation: hp-bob .9s ease-in-out infinite; } .hp-loading span:nth-child(2) { animation-delay: .15s; } .hp-loading span:nth-child(3) { animation-delay: .3s; }
.hp-wrap { padding: 22px; }

/* player cards */
.pcard-pop { --pacc: #7a4cff; position: absolute; z-index: 25; width: 284px; border-radius: 22px; background: var(--panel); box-shadow: 0 10px 0 rgba(0, 0, 0, .22), 0 22px 54px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--line); animation: pc-in .32s var(--spring) both; transform-origin: var(--tx, 50%) 100%; padding-bottom: 14px; }
.pcard-pop.below { transform-origin: var(--tx, 50%) 0; }
@keyframes pc-in { from { opacity: 0; transform: translateY(10px) scale(.86); } }
.pcard-pop .pc-banner { position: relative; height: 54px; border-radius: 22px 22px 0 0; overflow: hidden; background: linear-gradient(120deg, var(--pacc), color-mix(in srgb, var(--pacc) 45%, #ff5c8a)); }
.pcard-pop .pc-banner i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .16); animation: pc-float 6s ease-in-out infinite; }
.pcard-pop .pc-banner i:nth-child(1) { width: 70px; height: 70px; left: -14px; top: -24px; } .pcard-pop .pc-banner i:nth-child(2) { width: 38px; height: 38px; right: 54px; top: 18px; animation-delay: -2s; } .pcard-pop .pc-banner i:nth-child(3) { width: 20px; height: 20px; right: 18px; top: 8px; animation-delay: -4s; }
@keyframes pc-float { 50% { transform: translate(6px, -4px); } }
.pcard-pop .pc-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border: 0; border-radius: 10px; display: grid; place-items: center; background: rgba(29, 18, 64, .35); color: #fff; cursor: pointer; } .pcard-pop .pc-x .ico { width: 15px; height: 15px; }
.pcard-pop .pc-id { display: flex; align-items: flex-end; gap: 10px; padding: 0 14px; margin-top: -30px; position: relative; }
.pcard-pop .pc-av { flex: none; border-radius: 50%; padding: 3px; background: var(--panel); box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.pcard-pop .pcp-name { min-width: 0; padding-bottom: 2px; } .pcard-pop .pcp-name b { display: flex; align-items: center; gap: 5px; font-family: "Nunito", system-ui, sans-serif; font-size: 17px; font-weight: 900; letter-spacing: 0; -webkit-font-smoothing: antialiased; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-pop .pcp-name small { display: flex; gap: 5px; align-items: center; margin-top: 3px; font-size: 11px; font-weight: 800; color: var(--muted); }
.pcard-pop .pc-lvl { padding: 1px 7px; border-radius: 7px; background: #ffd23f; color: #1d1240; } .pcard-pop .pc-afk { padding: 1px 6px; border-radius: 6px; background: #8a8fa8; color: #fff; }
.pcard-pop .pcp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 14px 0; }
.pcard-pop .pcp-stats div { display: grid; justify-items: center; padding: 7px 4px; border-radius: 12px; background: rgba(0, 0, 0, .2); }
.pcard-pop .pcp-stats b { font-family: var(--display); font-size: 17px; line-height: 1.1; } .pcard-pop .pcp-stats small { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.pcard-pop:not(.loaded) .pcard-pop .pcp-stats b { opacity: .35; }
.pcard-pop .pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 14px 0; }
.pcard-pop .pc-grid .btn { justify-content: center; }
.pcard-pop .pc-emotes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 12px 14px 0; }
.pcard-pop .pc-emotes button { height: 36px; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .07); font-size: 18px; cursor: pointer; transition: transform .15s var(--spring), background .15s; }
.pcard-pop .pc-emotes button:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px) scale(1.08); }
.pcard-pop .pc-wide { display: flex; justify-content: center; margin: 6px 14px 0; }
.pcard-pop .pc-report { display: flex; align-items: center; gap: 5px; margin: 8px auto 0; border: 0; background: none; color: var(--faint); font-size: 11.5px; font-weight: 800; cursor: pointer; } .pcard-pop .pc-report .ico { width: 13px; height: 13px; }
.pcard-pop .pc-tail { position: absolute; left: var(--tx, 50%); bottom: -9px; width: 18px; height: 18px; margin-left: -9px; background: var(--panel); transform: rotate(45deg); border-radius: 3px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .12); }
.pcard-pop.below .pc-tail { bottom: auto; top: -9px; background: color-mix(in srgb, var(--pacc) 80%, #ff5c8a); box-shadow: none; }
.pcard-pop.out { animation: hb-out .2s ease both; }

/* table games */
.tg { display: grid; gap: 14px; justify-items: center; }
.tg-seats { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; }
.tg-seat { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 16px; background: rgba(0, 0, 0, .2); min-width: 0; transition: box-shadow .3s; }
.tg-seat b { display: block; font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tg-seat small { color: var(--muted); font-weight: 800; font-size: 12px; }
.tg-seat.turn { box-shadow: inset 0 0 0 2.5px #ffd23f, 0 0 18px rgba(255, 210, 63, .35); } .tg-seat.won { box-shadow: inset 0 0 0 2.5px #3ee6a8; }
.tg-empty { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-weight: 900; color: var(--muted); }
.tg-vs { font-family: var(--display); color: var(--muted); }
.tg-status { font-weight: 800; text-align: center; min-height: 22px; } .tg-you { color: #ffd23f; }
.tg-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tg-wait { font-size: 90px; animation: hp-bob 2.4s ease-in-out infinite; padding: 20px; }
.chess { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); container-type: inline-size; width: min(440px, calc(100vw - 70px)); aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 0 rgba(0, 0, 0, .3), 0 0 0 5px #8a5a3c; }
.chess .sq { position: relative; min-width: 0; min-height: 0; overflow: hidden; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; font: inherit; }
.chess .sq.l { background: #f2e3c6; } .chess .sq.d { background: #b8865a; }
.chess .sq.lm { box-shadow: inset 0 0 0 100px rgba(255, 210, 63, .38); } .chess .sq.sel { box-shadow: inset 0 0 0 100px rgba(62, 230, 168, .5); }
.chess .sq.chk { box-shadow: inset 0 0 0 100px rgba(255, 70, 90, .6); }
.chess .sq.tg::after { content: ''; width: 28%; height: 28%; border-radius: 50%; background: rgba(29, 18, 64, .35); }
.chess .sq.cap::after { content: ''; position: absolute; inset: 6%; border-radius: 50%; border: 4px solid rgba(29, 18, 64, .35); }
.chess .pc { font-size: 9.6cqw; line-height: 1; transition: transform .2s var(--spring); }
.chess .pc.w { color: #fff; text-shadow: 0 0 1px #1d1240, 0 1px 0 #1d1240, 1px 0 0 #1d1240, -1px 0 0 #1d1240, 0 -1px 0 #1d1240, 0 3px 3px rgba(0, 0, 0, .3); }
.chess .pc.b { color: #1d1240; text-shadow: 0 2px 0 rgba(255, 255, 255, .35), 0 3px 3px rgba(0, 0, 0, .3); }
.chess.live .sq:hover .pc { transform: translateY(-3px) scale(1.08); }
.chess .rk, .chess .fl { position: absolute; font-style: normal; font-size: max(8px, 2.1cqw); font-weight: 900; opacity: .6; color: #1d1240; } .chess .rk { left: 3px; top: 2px; } .chess .fl { right: 3px; bottom: 1px; }
.c4 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 10px; width: min(430px, calc(100vw - 70px)); border-radius: 18px; background: #2f6cff; box-shadow: 0 8px 0 #1a3fa8; }
.c4-col { display: grid; gap: 4px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 12px; }
.c4.live .c4-col:hover { background: rgba(255, 255, 255, .14); }
.c4-cell { aspect-ratio: 1; border-radius: 50%; background: #1d1240; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .35); }
.c4-cell i { width: 86%; height: 86%; border-radius: 50%; } .c4-cell i.r { background: radial-gradient(circle at 35% 30%, #ff9ab8, #ff3b6b); } .c4-cell i.y { background: radial-gradient(circle at 35% 30%, #fff1a8, #ffc21a); }
.c4-cell i.c4-drop { animation: c4drop .45s cubic-bezier(.5, 0, .6, 1.3) both; }
@keyframes c4drop { from { transform: translateY(calc(-110% * (var(--r) + 1))); } }
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(320px, calc(100vw - 80px)); aspect-ratio: 1; }
.ttt-cell { border: 0; border-radius: 18px; background: rgba(255, 255, 255, .08); font-size: 56px; font-weight: 900; cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line); }
.ttt.live .ttt-cell:empty:hover { background: rgba(255, 255, 255, .16); }
.ttt-cell .x { color: #ff5c8a; animation: pop .3s var(--spring) both; } .ttt-cell .o { color: #4cc9f0; animation: pop .3s var(--spring) both; }

/* fishing */
.catch { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 8px 0; }
.catch-rays { position: absolute; top: -20px; left: 50%; width: 320px; height: 320px; translate: -50% 0; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 35%, transparent) 0 10deg, transparent 10deg 24deg); mask-image: radial-gradient(circle, #000 20%, transparent 65%); animation: hp-spin 18s linear infinite; pointer-events: none; }
.catch-art { position: relative; animation: catch-in .7s var(--spring) both; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .25)); }
@keyframes catch-in { from { transform: translateY(60px) rotate(-30deg) scale(.4); opacity: 0; } }
.catch h2 { margin: 0; font-size: 30px; } .catch-size b { font-family: var(--display); font-size: 26px; color: var(--rc); }
.catch-note { font-weight: 800; max-width: 380px; padding: 10px 14px; border-radius: 14px; background: #fff4dc; color: #1d1240; } .catch-where { margin: 4px 0; font-weight: 700; }
.catch-coins { font-weight: 900; font-size: 20px; display: inline-flex; gap: 6px; align-items: center; } .catch-coins .c { width: 22px; height: 22px; }
.fish-art.glowing { filter: drop-shadow(0 0 10px rgba(160, 255, 220, .7)); } .fish-art.sil { opacity: .55; }
.fl-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; } .fl-head h3 { margin: 2px 0 0; }
.fl-today { font-weight: 900; display: inline-flex; gap: 6px; align-items: center; } .fl-today small { color: var(--muted); font-weight: 800; } .fl-today .c { width: 18px; height: 18px; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.fl-card { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 16px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 45%, transparent); text-align: center; animation: pop .35s var(--spring) both; animation-delay: calc(var(--i) * 25ms); }
.fl-card.no { box-shadow: inset 0 0 0 1px var(--line); } .fl-card b { font-size: 12.5px; } .fl-card small { font-size: 11px; color: var(--muted); font-weight: 800; }

/* companions, people, places, help, TV, rooms */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.comp-card { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border: 0; border-radius: 18px; background: rgba(0, 0, 0, .2); color: var(--text); font: inherit; cursor: pointer; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cc) 30%, transparent); animation: pop .35s var(--spring) both; animation-delay: calc(var(--i) * 30ms); transition: transform .2s var(--spring); }
.comp-card:hover { transform: translateY(-3px); } .comp-card.on { box-shadow: inset 0 0 0 3px #ffd23f, 0 0 20px rgba(255, 210, 63, .3); } .comp-card.locked { opacity: .55; }
.comp-art { width: 60px; height: 60px; display: grid; place-items: center; } .comp-art svg { width: 60px; height: 60px; animation: hc-fly 2.4s ease-in-out infinite; }
.comp-card b { font-size: 13px; } .comp-card small { font-size: 11px; color: var(--muted); font-weight: 800; }
.people, .places, .inst-list, .tv-panel { display: grid; gap: 8px; }
.people-row, .place-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgba(0, 0, 0, .18); }
.people-row b { display: block; } .people-row small { color: var(--muted); font-weight: 800; }
.place-row { animation: rise .35s var(--spring) both; animation-delay: calc(var(--i) * 20ms); }
.pl-ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 210, 63, .18); color: #ffd23f; } .pl-ic .ico { width: 17px; height: 17px; }
.inst-row, .tv-row { padding: 10px 14px; gap: 12px; background: var(--panel-2); width: 100%; border: 0; color: var(--text); font: inherit; cursor: pointer; text-align: left; } .inst-row.on { box-shadow: inset 0 0 0 2px #3ee6a8; }
.inst-row b, .tv-row b { flex: 1; } .inst-n { font-family: var(--display); color: #ffd23f; font-size: 18px; }
.hub-help { display: grid; gap: 12px; } .hh-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; } .hh-row > span { font-size: 28px; } .hh-row p { margin: 2px 0 0; color: var(--muted); font-weight: 700; font-size: 14px; }

/* ---- phones */
@media (max-width: 700px) {
  .hub-top { left: 8px; right: 8px; top: calc(8px + env(safe-area-inset-top)); gap: 6px; }
  .hub-btn span, .hub-chip span:not(.hub-dot):not(#hubCount) { display: none; }
  .hub-btn, .hub-chip { height: 40px; padding: 0 11px; border-radius: 14px; }
  .hub-chip b { display: none; } .hub-top-r { gap: 5px; } #hubPlaces span { display: none; }
  .hub-more { display: inline-flex !important; }
  .hub-chip { gap: 6px; } #hubCount { font-size: 12.5px; }
  .hub-chat { left: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: calc(100vw - 150px); }
  .hc-toggle { display: grid; place-items: center; position: relative; width: 50px; height: 50px; border: 0; border-radius: 18px; background: rgba(29, 18, 64, .86); color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, .28); }
  .hc-toggle .ico { width: 22px; height: 22px; } #hubUnread { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: #ff5c8a; font-size: 11px; font-weight: 900; display: grid; place-items: center; }
  .hub-chat:not(.min) { width: calc(100vw - 16px); background: rgba(29, 18, 64, .9); border-radius: 18px; padding: 8px; z-index: 6; }
  .hub-chat:not(.min) .hc-toggle { position: absolute; right: 8px; top: -58px; }
  .hub-chat.min { width: auto; }
  .hc-log { max-height: 34vh; mask-image: none; background: none; }
  .hub-act { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); }
  .hub-zoom { display: none; }
  .hub-emotes { grid-template-columns: repeat(5, 42px); right: -2px; } .hub-emotes button { width: 42px; height: 42px; font-size: 22px; }
  .hub-hint, .hub-fish { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .hub-fish { max-width: calc(100vw - 16px); }
  .hp-sheet { width: 100vw; height: calc(100dvh - 28px - env(safe-area-inset-top)); align-self: end; border-radius: 24px 24px 0 0; }
  .hub-panel { place-items: end center; }
  .hub-panel.compact .hp-sheet { width: 100vw; max-height: 90dvh; }
  .hp-head h2 { font-size: 17px; } .hp-coins { display: none; }
  .pcard-pop { width: min(280px, calc(100vw - 20px)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hub-top { top: 6px; left: 8px; right: 8px; } .hub-btn, .hub-chip { height: 36px; } .hub-btn span { display: none; }
  .hub-more { display: inline-flex !important; }
  .hc-toggle { display: grid; place-items: center; position: relative; width: 44px; height: 44px; border: 0; border-radius: 15px; background: rgba(29, 18, 64, .86); color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .28); }
  .hc-toggle .ico { width: 20px; height: 20px; } .hub-chat.min { width: auto; }
  .hub-chat:not(.min) { background: rgba(29, 18, 64, .9); border-radius: 16px; padding: 6px; }
  .hub-chat { bottom: 6px; left: 8px; width: min(320px, 44vw); } .hc-log { max-height: 26vh; }
  .hub-act { bottom: 6px; right: 8px; } .hub-zoom { display: none; } .hub-round { width: 44px; height: 44px; border-radius: 15px; }
  .hub-hint, .hub-fish { bottom: 8px; }
  .hp-sheet { width: calc(100vw - 20px); height: calc(100vh - 16px); border-radius: 20px; }
  .hub-panel.compact .hp-sheet { max-height: calc(100vh - 16px); }
  .hub-panel.compact .hp-body { padding: 12px; }
  .chess { width: min(280px, 54vh); } .c4 { width: min(250px, 52vh); padding: 6px; gap: 3px; } .ttt { width: min(200px, 46vh); }
  .tg { gap: 8px; } .tg-seat { padding: 4px 10px 4px 4px; } .tg-seat .avatar { width: 32px !important; height: 32px !important; }
}

/* ---- the home page's way in */
.hub-banner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; margin: 18px 0 6px; border-radius: 28px; overflow: hidden; text-decoration: none; color: var(--text);
  background: linear-gradient(110deg, #2b1d6e, var(--panel) 70%); box-shadow: 0 8px 0 rgba(0, 0, 0, .25), inset 0 0 0 2px rgba(76, 201, 240, .35); transition: transform .7s cubic-bezier(.22, .8, .3, 1), box-shadow .7s ease; position: relative; }
.hub-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 0 rgba(0, 0, 0, .25), inset 0 0 0 2px rgba(76, 201, 240, .7), 0 0 40px rgba(76, 201, 240, .25); }
.hbn-art { position: relative; min-height: 240px; overflow: hidden; }
.hbn-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hbn-scene svg { overflow: visible; }
.hbn-waves path { animation: hbn-wave 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
@keyframes hbn-wave { 50% { transform: translateX(14px); opacity: .5; } }
.hbn-neon { animation: hp-neon 5s steps(1) infinite; }
.hbn-ball { animation: hbn-ball 2.4s ease-in-out infinite; }
@keyframes hbn-ball { 50% { transform: translate(-10px, -10px); } }
/* the explorer chills on the sand (cross-legged, swaying to music): not the waving one by the globe.
   On hover they get into it: a bigger sway and clapping hands. The scene leans in slowly. */
.hbn-me .c-legs { display: none; } .hbn-me .c-legs-cross { display: inline; } .hbn-me .c-shadow { display: none; }
.hbn-chill { animation: hbn-sway 3.2s ease-in-out infinite; transform-origin: 80px 200px; transform-box: view-box; }
@keyframes hbn-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.hbn-me .char .c-armL { transform: rotate(18deg); } .hbn-me .char .c-armR { transform: rotate(-18deg); transition: transform .4s ease-out; }
.hub-banner:hover .hbn-chill { animation-duration: 2.4s; }
/* on hover the explorer waves hello with one hand (the other stays resting on their knee) */
.hub-banner:hover .hbn-me .char .c-armR { animation: hbn-greet 3.2s ease-in-out infinite; }
@keyframes hbn-greet { 0%, 100% { transform: rotate(-18deg); } 22% { transform: rotate(-128deg); } 34% { transform: rotate(-148deg); } 46% { transform: rotate(-119deg); } 58% { transform: rotate(-146deg); } 78% { transform: rotate(-18deg); } }
.hbn-notes text { fill: #fff; opacity: 0; animation: hbn-note 3.2s ease-out infinite; } .hbn-notes .n2 { animation-delay: 1.6s; fill: #ffd23f; }
@keyframes hbn-note { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(10px, -26px); } }
.hbn-scene { transition: transform 1.2s cubic-bezier(.22, .8, .3, 1); transform-origin: 40% 60%; }
.hub-banner:hover .hbn-scene { transform: scale(1.03); }
.hbn-body { padding: 28px 30px; display: grid; align-content: center; gap: 8px; }
.hbn-body .eyebrow { color: #4cc9f0; }
.hbn-body h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.hbn-body p { margin: 0; color: var(--muted); font-weight: 700; max-width: 440px; }
.hbn-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hbn-live { display: inline-flex; align-items: center; gap: 7px; font-weight: 900; font-size: 13.5px; color: #3ee6a8; }
.hbn-live i { width: 9px; height: 9px; border-radius: 50%; background: #3ee6a8; animation: sb-ping 2s ease-out infinite; }
@media (max-width: 760px) { .hub-banner { grid-template-columns: 1fr; } .hbn-art { min-height: 190px; } .hbn-body { padding: 18px 20px 22px; } }
/* the countdown back to the Hub after a game */
.hub-countdown { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 99999; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(29, 18, 64, .94); color: #fff; font-weight: 800; box-shadow: 0 8px 0 rgba(0, 0, 0, .3), inset 0 0 0 2px rgba(62, 230, 168, .5); animation: hb-in .35s var(--spring) both; white-space: nowrap; }
.hub-countdown b { color: #3ee6a8; font-family: var(--display); } .hub-countdown .ico { width: 16px; height: 16px; vertical-align: -3px; }
@media (max-width: 520px) { .hub-countdown { font-size: 13px; padding-left: 12px; } }

/* pop-ups: no doubled titles, no empty gap where the back button sits */
.hp-back[hidden] { display: none; }
#hpToday > .section-title { display: none; }
#hpToday .today-grid { margin-top: 4px; }
.hub-panel.fit .hp-sheet { height: auto; max-height: min(86vh, 980px); }

/* ================================================================ Coral Key: casino */
.cz { display: grid; gap: 14px; }
.cz-foot { display: flex; gap: 6px; align-items: flex-start; margin: 2px 0 0; font-size: 11.5px; font-weight: 700; color: var(--faint); line-height: 1.4; } .cz-foot .ico { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.cz-hint { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cz-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cz-chips button { border: 0; padding: 3px; border-radius: 50%; background: none; cursor: pointer; transition: transform .15s var(--spring); }
.cz-chips button:hover { transform: translateY(-3px); } .cz-chips button.on { transform: translateY(-4px) scale(1.08); filter: drop-shadow(0 0 8px var(--accent)); }
.cz-chip { --cc: #4cc9f0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: repeating-conic-gradient(var(--cc) 0 30deg, #fff 30deg 45deg); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.cz-chip b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cc); color: #1d1240; font-size: 11px; font-weight: 900; border: 2px dashed rgba(255, 255, 255, .7); }
.cz-card { --i: 0; position: relative; width: 62px; height: 88px; border-radius: 9px; background: linear-gradient(160deg, #fff, #f1ede6); color: #1d1d2a; box-shadow: 0 4px 0 rgba(0, 0, 0, .25), 0 8px 18px rgba(0, 0, 0, .25); display: grid; place-items: center; flex: none; }
.cz-card.red { color: #d9402c; } .cz-card span { font-size: 30px; line-height: 1; }
.cz-card b { position: absolute; left: 6px; top: 4px; font-size: 16px; font-weight: 900; } .cz-card b.br { left: auto; top: auto; right: 6px; bottom: 4px; transform: rotate(180deg); }
.cz-card.back { background: repeating-linear-gradient(45deg, #7a4cff 0 6px, #5a32d8 6px 12px); border: 3px solid #fff; }
.cz-card.back i { width: 26px; height: 26px; border-radius: 50%; background: #ffd23f; box-shadow: inset 0 0 0 4px #ff5c8a; }
.cz-card.ghost { background: none; border: 2px dashed rgba(255, 255, 255, .25); box-shadow: none; }
.cz-card.deal { animation: cz-deal .45s var(--spring) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes cz-deal { from { opacity: 0; transform: translate(120px, -90px) rotate(25deg) scale(.7); } }

/* roulette */
.rl-top { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: center; }
.rl-wheelbox { position: relative; width: 250px; height: 250px; }
.rl-wheel { width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .4)); }
.rl-rot { transform-origin: 0 0; }
.rl-ballg { transform-origin: 0 0; } .rl-ballg.go { animation: rl-orbit 4.2s cubic-bezier(.15, .55, .2, 1) both; }
.rl-ballg.go .rl-ballc { animation: rl-drop 4.2s ease-in both; }
@keyframes rl-orbit { from { transform: rotate(0deg); } to { transform: rotate(-1800deg); } }
@keyframes rl-drop { 0%, 60% { cy: -92px; } 85% { cy: -70px; } 92% { cy: -78px; } 100% { cy: -74px; } }
.rl-result { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 92px; height: 92px; border-radius: 50%; display: none; place-items: center; align-content: center; text-align: center; background: #1d1d2a; color: #fff; box-shadow: 0 0 0 4px #ffd23f, 0 10px 30px rgba(0, 0, 0, .5); animation: hb-in .4s var(--spring) both; }
.rl-result.show { display: grid; } .rl-result.red { background: #d9402c; } .rl-result.green { background: #1f8a52; }
.rl-result b { font-family: var(--display); font-size: 34px; line-height: 1; } .rl-result span { font-size: 10.5px; font-weight: 900; padding: 0 6px; }
.rl-hist { display: flex; flex-wrap: wrap; gap: 4px; min-height: 26px; } .rl-hist span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #fff; background: #1d1d2a; }
.rl-hist span.red { background: #d9402c; } .rl-hist span.green { background: #1f8a52; } .rl-hist span:first-child { box-shadow: 0 0 0 2px #ffd23f; }
.rl-side .cz-chips { justify-content: flex-start; } .rl-bet { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-weight: 800; } .rl-bet .c { width: 18px; height: 18px; }
.rl-board { display: grid; grid-template-columns: 44px 1fr 46px; grid-template-rows: auto auto; gap: 4px; padding: 10px; border-radius: 16px; background: radial-gradient(circle at 50% 30%, #23955c, #14663c); box-shadow: inset 0 0 0 3px #c99a4a, 0 6px 0 rgba(0, 0, 0, .25); }
.rl-zero { grid-row: 1; grid-column: 1; display: grid; } .rl-nums { grid-row: 1; grid-column: 2; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(3, 40px); gap: 4px; }
.rl-cols { grid-row: 1; grid-column: 3; display: grid; grid-template-rows: repeat(3, 1fr); gap: 4px; } .rl-out { grid-row: 2; grid-column: 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.rl-out .wide { grid-column: span 2; }
.rl-cell { position: relative; width: 100%; height: 100%; min-height: 36px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 7px; background: rgba(0, 0, 0, .12); color: #fff; font-weight: 900; font-size: 13px; cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .12s; }
.rl-cell:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.rl-cell.red { background: #d9402c; } .rl-cell.black { background: #1d1d2a; } .rl-cell.green { background: #1f8a52; }
.rl-cell .dot { width: 18px; height: 18px; border-radius: 4px; transform: rotate(45deg); } .rl-cell .dot.r { background: #d9402c; } .rl-cell .dot.b { background: #1d1d2a; }
.rl-stake { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; animation: hb-in .25s var(--spring) both; }
.rl-stake .cz-chip { width: 26px; height: 26px; } .rl-stake .cz-chip b { width: 18px; height: 18px; font-size: 0; border-width: 1.5px; }
.rl-stake i { position: absolute; bottom: -6px; right: -4px; padding: 0 4px; border-radius: 6px; background: #ffd23f; color: #1d1240; font-size: 9.5px; font-style: normal; font-weight: 900; }

/* blackjack */
.bj-felt { display: grid; gap: 10px; padding: 18px; border-radius: 22px 22px 120px 120px / 22px 22px 60px 60px; background: radial-gradient(ellipse at 50% 0%, #26a066, #136038 70%); box-shadow: inset 0 0 0 4px #c99a4a, inset 0 0 0 9px #6b3a1c, 0 8px 0 rgba(0, 0, 0, .25); }
.bj-row { display: grid; justify-items: center; gap: 8px; } .bj-cards { display: flex; gap: 8px; min-height: 88px; }
.bj-who { font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .85); } .bj-who b { color: #ffd23f; font-size: 15px; }
.bj-mid { display: grid; place-items: center; min-height: 34px; }
.bj-arc { font-size: 10.5px; font-weight: 900; letter-spacing: .12em; color: rgba(255, 236, 160, .55); }
.bj-res { padding: 6px 16px; border-radius: 999px; font-weight: 900; animation: hb-in .35s var(--spring) both; } .bj-res.win { background: #ffd23f; color: #1d1240; } .bj-res.lose { background: rgba(0, 0, 0, .35); color: #fff; } .bj-res.push { background: #4cc9f0; color: #1d1240; }
.bj-ctl, .sl-ctl, .hc-ctl, .pk-ctl { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }

/* slots */
.sl-machine { position: relative; padding: 18px 18px 12px; border-radius: 26px; background: linear-gradient(180deg, #ff5c8a, #c2185b); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .18), 0 8px 0 rgba(0, 0, 0, .3); display: grid; gap: 10px; justify-items: center; }
.sl-lights { position: absolute; inset: 6px; display: flex; justify-content: space-between; pointer-events: none; } .sl-lights i { width: 7px; height: 7px; border-radius: 50%; background: #ffd23f; animation: hp-marq .6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 80ms); }
.sl-title { font-family: var(--display); font-size: 26px; color: #ffd23f; text-shadow: 0 3px 0 #8a1040, 0 0 18px rgba(255, 210, 63, .6); letter-spacing: .06em; }
.sl-window { --sh: 92px; position: relative; display: grid; grid-template-columns: repeat(3, 92px); gap: 8px; padding: 10px; border-radius: 16px; background: #1d1240; }
.sl-reel { height: var(--sh); overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #ddd, #fff 30%, #fff 70%, #ddd); }
.sl-strip { display: grid; } .sl-strip span { height: var(--sh); display: grid; place-items: center; font-size: 48px; }
.sl-line { position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: rgba(255, 92, 138, .5); pointer-events: none; }
.sl-win { min-height: 26px; font-weight: 900; color: #fff; display: flex; align-items: center; gap: 6px; } .sl-win .c { width: 18px; height: 18px; }
.sl-machine.won .sl-window { animation: sl-won .5s ease 4 alternate; } .sl-machine.big { animation: hp-shake .6s ease 2; }
@keyframes sl-won { to { box-shadow: 0 0 0 4px #ffd23f, 0 0 30px #ffd23f; } }
.sl-pay { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .sl-pay div { display: flex; justify-content: space-between; padding: 6px 9px; border-radius: 10px; background: rgba(0, 0, 0, .2); font-size: 13px; } .sl-pay b { color: #ffd23f; }
.sl-pull { min-width: 170px; }

/* higher or lower */
@keyframes hl-flip { from { transform: rotateY(90deg) scale(.9); } }

/* the casino lobby and the DJ decks */
.cz-lobby { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cz-game { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, .06); color: inherit; text-align: left; cursor: pointer; transition: transform .15s var(--spring), background .15s; }
.cz-game:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .11); } .cz-game span { font-size: 34px; } .cz-game b { display: block; font-size: 15px; } .cz-game small { color: var(--muted); font-weight: 700; }
.dj { display: grid; gap: 14px; }
.dj-now { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--tc, #b388ff) 45%, #1d1240), #1d1240); }
.dj-now .dj-disc { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle, var(--tc, #b388ff) 0 18%, #0c0820 19% 100%); box-shadow: inset 0 0 0 6px #241848, 0 0 0 2px rgba(255, 255, 255, .1); animation: hp-spin 1.6s linear infinite; flex: none; }
.dj-now.off .dj-disc { animation: none; opacity: .5; } .dj-now b { display: block; font-size: 17px; } .dj-now small { color: var(--muted); font-weight: 700; }
.dj-eq { display: flex; gap: 3px; align-items: flex-end; height: 26px; margin-left: auto; } .dj-eq i { width: 5px; border-radius: 2px; background: var(--tc, #b388ff); animation: dj-eq var(--beat, .5s) ease-in-out infinite alternate; } .dj-now.off .dj-eq i { animation: none; height: 4px; }
.dj-eq i:nth-child(1) { animation-delay: -.1s; } .dj-eq i:nth-child(2) { animation-delay: -.3s; } .dj-eq i:nth-child(3) { animation-delay: -.2s; } .dj-eq i:nth-child(4) { animation-delay: -.45s; } .dj-eq i:nth-child(5) { animation-delay: -.05s; }
@keyframes dj-eq { from { height: 4px; } to { height: 26px; } }
.dj-tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dj-track { display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .06); color: inherit; text-align: left; cursor: pointer; transition: transform .15s var(--spring), background .15s; }
.dj-track:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); } .dj-track.on { box-shadow: inset 0 0 0 2px var(--tc); background: color-mix(in srgb, var(--tc) 18%, transparent); }
.dj-track span { font-size: 26px; } .dj-track b { display: block; } .dj-track small { color: var(--muted); font-weight: 700; }
.dj-fx { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .dj-fx button { height: 54px; border: 0; border-radius: 16px; background: #2b1d55; color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 #120a2e; transition: transform .1s; } .dj-fx button:active { transform: translateY(3px); box-shadow: 0 1px 0 #120a2e; }
.hub.club-off .hprop .df-t { animation: none; opacity: .22; } .hub.club-off .hprop .spk-cone, .hub.club-off .hprop .dj-spin { animation: none; }
.hub.club-fx .hprop .dancefloor { animation: hp-led .6s linear 3; filter: brightness(1.6) saturate(1.6); }

/* the gym: training poses */
.ha.act-run .ha-sprite svg.char { animation: ha-walk .26s ease-in-out infinite; }
.ha.act-run .ha-sprite { bottom: 4px; }
.ha.act-run .c-armL { animation: c-runL .26s ease-in-out infinite alternate; } .ha.act-run .c-armR { animation: c-runL .26s ease-in-out infinite alternate-reverse; }
@keyframes c-runL { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.ha.act-lift .ha-sprite { bottom: calc(18px - 38px); } .ha.act-lift .ha-sprite .ha-f, .ha.act-lift .ha-sprite .ha-b { transform: rotate(62deg); transform-origin: 50% 64.5%; }
.ha.act-lift .c-armL { animation: c-lift 1.4s ease-in-out infinite; } .ha.act-lift .c-armR { animation: c-lift 1.4s ease-in-out infinite; }
@keyframes c-lift { 0%, 100% { transform: rotate(150deg); } 50% { transform: rotate(178deg); } }
.ha-gear { position: absolute; left: 0; top: 0; display: none; pointer-events: none; }
.ha.act-lift .ha-gear { display: block; } .ha-gear i { position: absolute; left: -18px; top: -86px; width: 92px; height: 6px; border-radius: 3px; background: #8a90a0; transform: rotate(26deg); transform-origin: 20px 3px; animation: gear-lift 1.4s ease-in-out infinite; }
.ha-gear i::before, .ha-gear i::after { content: ''; position: absolute; top: -9px; width: 9px; height: 24px; border-radius: 3px; background: #1d1240; } .ha-gear i::before { left: 4px; } .ha-gear i::after { right: 4px; }
@keyframes gear-lift { 0%, 100% { translate: 0 0; } 50% { translate: 10px -16px; } }
.ha.act-box .ha-sprite svg.char { animation: an-tap .35s ease-in-out infinite; }
.ha.act-box .c-armR { animation: c-punch .7s ease-in-out infinite; } .ha.act-box .c-armL { animation: c-punch .7s ease-in-out infinite .35s; }
@keyframes c-punch { 0%, 100% { transform: rotate(40deg); } 30% { transform: rotate(-100deg); } }
.ha.act-pull .ha-sprite { bottom: 18px; } .ha.act-pull .ha-sprite svg.char { animation: act-pull 1.6s ease-in-out infinite; }
.ha.act-pull .c-armL { transform: rotate(165deg); } .ha.act-pull .c-armR { transform: rotate(-165deg); }
@keyframes act-pull { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-14px); } }
.ha.act-pull .ha-shadow { transform: scale(.7); opacity: .6; }
.ha.act-yoga .ha-sprite { bottom: -25px; }
.ha.act-yoga .c-armL { animation: c-yogaL 4s ease-in-out infinite; } .ha.act-yoga .c-armR { animation: c-yogaR 4s ease-in-out infinite; }
@keyframes c-yogaL { 0%, 100% { transform: rotate(40deg); } 50% { transform: rotate(160deg); } } @keyframes c-yogaR { 0%, 100% { transform: rotate(-40deg); } 50% { transform: rotate(-160deg); } }
.ha.act-run .ha-shadow, .ha.act-lift .ha-shadow { display: none; }

@media (max-width: 700px) {
  .rl-top { grid-template-columns: 1fr; justify-items: center; } .rl-side { width: 100%; }
  .rl-board { grid-template-columns: 30px 1fr 34px; padding: 6px; gap: 3px; } .rl-nums { grid-template-rows: repeat(3, 34px); gap: 2px; } .rl-out { grid-template-columns: repeat(3, 1fr); }
  .rl-cell { font-size: 10.5px; min-height: 30px; border-radius: 5px; } .rl-stake .cz-chip { width: 20px; height: 20px; }
  .sl-window { --sh: 76px; grid-template-columns: repeat(3, 76px); } .sl-strip span { font-size: 40px; } .sl-pay { grid-template-columns: repeat(2, 1fr); }
  .cz-lobby, .dj-tracks { grid-template-columns: 1fr; } .dj-fx { grid-template-columns: repeat(2, 1fr); }
  .cz-card { width: 52px; height: 74px; } .cz-card span { font-size: 24px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .pcard-pop .pcp-stats, .pcard-pop .pc-emotes { display: none; } .pcard-pop .pc-banner { height: 40px; } .pcard-pop .pc-id { margin-top: -24px; }
}

/* the banner keeps its entrance animation from fighting the hover lift */
.hub-banner.rise { animation-fill-mode: backwards; }

/* ================================================================ more of the Hub: boat, pets, staff, weather, extras */
.ha-boatart, .ha-boatfront { position: absolute; left: -60px; top: -34px; width: 120px; display: none; pointer-events: none; }
.ha.boat .ha-boatart, .ha.boat .ha-boatfront { display: block; animation: hp-float 2.4s ease-in-out infinite; }
.ha-boatfront { z-index: 2; } .ha.boat .ha-sprite { bottom: 2px; clip-path: inset(0 0 34% 0); } .ha.boat .ha-shadow, .ha.boat .ha-ripple { display: none; }
.ha.boat .wake { animation: ha-ripple 1.4s ease-out infinite; }
.hpw.away { opacity: 0; transition: opacity .4s; }
.hub-round.hop { background: #4cc9f0; }
.hcomp.dance .hc-body { animation: comp-dance .5s ease-in-out infinite alternate; }
@keyframes comp-dance { from { transform: translateY(0) rotate(-10deg); } to { transform: translateY(-8px) rotate(10deg); } }
.hcomp.swim .hc-body { clip-path: inset(0 0 40% 0); transform: translateY(10px); animation: comp-swim 1.6s ease-in-out infinite; } .hcomp.swim .hc-shadow { display: none; }
@keyframes comp-swim { 50% { transform: translateY(12px) rotate(4deg); } }
.hcomp.boat { display: none; }
.hov.npc .ha-tag { background: rgba(122, 76, 255, .85); } .hov.npc .ha-tag b i { display: none; }
.ha.npc { cursor: pointer; } .ha.npc .ha-ring { display: none; }
.hub-top .wx { font-style: normal; margin-left: 4px; font-size: 14px; }
.hgull.bat svg { width: 34px; animation: bat-flap .25s ease-in-out infinite alternate; } @keyframes bat-flap { to { transform: scaleY(.5); } }
.hprop .pk-glow { animation: hp-marq 1.4s ease-in-out infinite alternate; }
.ha-body.an-hug .ha-sprite svg.char { animation: an-hug 2.6s ease-in-out both; transform-origin: 50% 100%; }
@keyframes an-hug { 20%, 80% { transform: scale(1.06, .97) skewX(-4deg); } }
.ha-body.an-hug .c-armL { animation: c-hug 2.6s ease-in-out both; } .ha-body.an-hug .c-armR { animation: c-hug 2.6s ease-in-out both reverse; }
@keyframes c-hug { 20%, 80% { transform: rotate(-60deg); } }
.hcastle { position: absolute; left: 0; top: 0; pointer-events: none; } .hcastle svg { display: block; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); }
.hcastle.new svg { animation: hb-in .6s var(--spring) both; }
.hc-like { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; padding: 1px 7px; border-radius: 999px; background: rgba(29, 18, 64, .7); color: #fff; font-size: 10.5px; font-weight: 900; white-space: nowrap; }

/* job board and shifts */
.jobs { display: grid; gap: 8px; }
.job-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, .06); color: inherit; text-align: left; cursor: pointer; transition: transform .15s var(--spring), background .15s; }
.job-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .11); } .job-card > span { font-size: 32px; } .job-card b { display: block; } .job-card small { color: var(--muted); font-weight: 700; }
.shift { display: grid; gap: 12px; } .shift-top { display: flex; gap: 6px; flex-wrap: wrap; }
.shift-ask { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: #fff8e8; color: #1d1240; animation: hb-in .35s var(--spring) both; }
.shift-who { font-size: 40px; } .shift-ask p { margin: 0; font-weight: 800; font-size: 15px; line-height: 1.35; }
.shift-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shift-opts button { display: flex; align-items: center; gap: 8px; padding: 12px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .07); color: inherit; font-weight: 800; text-align: left; cursor: pointer; transition: transform .12s, background .15s; }
.shift-opts button:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .13); } .shift-opts button span { font-size: 24px; }
.shift-opts button.right { background: #3ee6a8; color: #0b2a1f; } .shift-opts button.wrong { background: #ff5c8a; color: #fff; }
.shift-sea { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, #4cc9f0, #1f7fd0); }
.shift-sea button { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; } .shift-sea button span { font-size: 30px; animation: hp-float 2s ease-in-out infinite; }
.shift-sea button.sos span { animation: hp-shake .5s ease infinite; }
.shift-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; } .shift-bar i { display: block; height: 100%; background: #ffd23f; animation: shift-bar var(--ms) linear both; }
@keyframes shift-bar { from { width: 100%; } to { width: 0; } }

/* quiz night */
.trivia-hud { position: absolute; top: 70px; left: 50%; translate: -50% 0; width: min(560px, calc(100vw - 24px)); padding: 14px 16px; border-radius: 22px; background: rgba(29, 18, 64, .92); box-shadow: 0 10px 0 rgba(0, 0, 0, .25), 0 0 0 2px rgba(255, 210, 63, .5); z-index: 12; animation: hb-in .35s var(--spring) both; backdrop-filter: blur(6px); }
.trivia-hud .tq-head { display: flex; align-items: center; gap: 10px; } .trivia-hud .tq-head b { flex: 1; } .trivia-hud .tq-head span { font-weight: 800; color: var(--muted); font-size: 13px; }
.trivia-hud .tq-time { min-width: 36px; text-align: center; padding: 2px 8px; border-radius: 999px; background: #ffd23f; color: #1d1240 !important; } .trivia-hud .tq-time.hot { background: #ff5c8a; color: #fff !important; animation: hp-marq .5s ease-in-out infinite alternate; }
.trivia-hud .tq-q { margin: 10px 0; font-weight: 900; font-size: 16px; } .trivia-hud .tq-flag img { height: 70px; border-radius: 6px; margin-top: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); } .trivia-hud .tq-big { font-size: 28px; margin-top: 8px; } .trivia-hud .tq-big.mono { font-family: ui-monospace, monospace; font-size: 22px; }
.trivia-hud .tq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.trivia-hud .tq-opts button { padding: 10px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 800; text-align: left; cursor: pointer; } .trivia-hud .tq-opts button:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
.trivia-hud .tq-opts button.picked { box-shadow: inset 0 0 0 2px #ffd23f; } .trivia-hud .tq-opts button.right { background: #3ee6a8; color: #0b2a1f; } .trivia-hud .tq-opts button.wrong { background: #ff5c8a; }
.trivia-hud .tq-ex { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 700; } .trivia-hud .tq-top { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12.5px; font-weight: 800; } .trivia-hud .tq-win { margin: 10px 0; font-size: 16px; line-height: 1.6; }
.stage-p, .castle-p { display: grid; justify-items: center; gap: 10px; text-align: center; } .stage-p h3, .castle-p h3 { margin: 0; } .stage-p p, .castle-p p { margin: 0; }
.castle-prev { width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #f3d8a2, #e8c48a); } .castle-prev svg { width: 110px; height: auto; }
.castle-p .seg.wrap { flex-wrap: wrap; justify-content: center; } .castle-p .eyebrow { margin-top: 6px; }

/* records and shells */
.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rec-card { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); } .rec-card > b { display: block; margin-bottom: 8px; }
.rec-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; } .rec-card li { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; align-items: center; font-weight: 800; font-size: 13px; }
.rec-card li em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rec-card li small { color: var(--muted); } .rec-card li.me em { color: #ffd23f; }
.shells { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.shell { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, .04); text-align: center; } .shell span { font-size: 30px; filter: grayscale(1) opacity(.4); }
.shell.got { background: color-mix(in srgb, var(--sc) 18%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sc) 55%, transparent); } .shell.got span { filter: none; } .shell small { color: var(--muted); font-weight: 700; }

/* beach huts */
.hut { display: grid; gap: 12px; } .hut-head { display: flex; align-items: center; gap: 10px; } .hut-head > div { flex: 1; } .hut-head b { display: block; } .hut-head small { color: var(--muted); font-weight: 700; }
.hut-stage { border-radius: 20px; background: radial-gradient(ellipse at 50% 70%, #3a2a6a, #1d1240); padding: 8px; } .hut-svg { width: 100%; height: auto; max-height: 52vh; display: block; }
.hut-svg.edit .ht-tile { cursor: pointer; } .hut-svg.edit .ht-tile:hover { fill: #ffd23f; opacity: .7; } .hut-svg.edit .ht-item { cursor: pointer; }
.hut-svg .ht-item.sel { filter: drop-shadow(0 0 6px #ffd23f) drop-shadow(0 0 2px #fff); }
.hut-tools { display: grid; gap: 8px; } .hut-inv, .hut-shop { display: flex; flex-wrap: wrap; gap: 6px; }
.hut-inv button, .hut-shop button { display: grid; padding: 8px 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .07); color: inherit; font-weight: 800; font-size: 12.5px; text-align: left; cursor: pointer; }
.hut-inv button.on { box-shadow: inset 0 0 0 2px #ffd23f; } .hut-inv button:disabled { opacity: .4; cursor: default; } .hut-inv small, .hut-shop small { color: var(--muted); font-weight: 700; display: flex; gap: 4px; align-items: center; } .hut-shop small .c { width: 13px; height: 13px; }
.hut-sw { display: flex; gap: 6px; } .hut-sw button { width: 30px; height: 30px; border: 2px solid rgba(255, 255, 255, .2); border-radius: 10px; cursor: pointer; } .hut-sw button.on { border-color: #ffd23f; box-shadow: 0 0 0 2px #ffd23f; }
.hut-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; margin-bottom: 6px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .05); color: inherit; cursor: pointer; text-align: left; } .hut-row b { flex: 1; } .hut-row small { color: var(--muted); font-weight: 700; }

/* the player card: banner, hut, pair emotes */
.pcard-pop .pc-banner canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pcard-pop .pc-banner { background: linear-gradient(120deg, var(--pacc), #2b1d6e); }
.pcard-pop .pc-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .pcard-pop .pcp-name b .name-flag { flex: none; font-size: 14px; }
.pcard-pop .pc-hut { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; margin: 10px 14px 0; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.pcard-pop .pc-hut-art { width: 74px; height: 52px; border-radius: 10px; background: #241848; display: grid; place-items: center; overflow: hidden; } .pcard-pop .pc-hut-art svg { width: 100%; height: 100%; }
.pcard-pop .pc-hut-txt { min-width: 0; } .pcard-pop .pc-hut-txt b { display: block; font-size: 13px; } .pcard-pop .pc-hut-txt small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.pcard-pop .pc-priv { width: 100%; margin-top: 2px; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 11.5px; font-weight: 800; }
.pcard-pop .pcp-lock { font-size: 22px; }
.pcard-pop .pc-pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 14px 0; }
.pcard-pop .pc-pairs button { display: grid; justify-items: center; gap: 1px; padding: 6px 0; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .07); color: inherit; font-size: 20px; cursor: pointer; transition: transform .15s var(--spring); }
.pcard-pop .pc-pairs button small { font-size: 10.5px; font-weight: 800; color: var(--muted); } .pcard-pop .pc-pairs button:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .13); }
.pair-pop { position: absolute; top: 72px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--panel); box-shadow: 0 10px 0 rgba(0, 0, 0, .25), inset 0 0 0 2px #ff8fd0; z-index: 14; animation: hb-in .35s var(--spring) both; }
.pair-pop b { display: block; } .pair-pop small { color: var(--muted); font-weight: 700; }

/* shared casino tables */
.cz-striphost:empty { display: none; }
.cz-strip { display: grid; gap: 6px; margin-bottom: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); }
.cz-here { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; font-weight: 800; } .cz-here .faint { margin-right: 4px; }
.cz-feed { display: grid; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--muted); } .cz-feed.open { max-height: 300px; overflow-y: auto; }
.czf-sum { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; } .czf-sum i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .czf-sum i.w { background: #3ee6a8; } .czf-sum i.l { background: #ff6b6b; margin-left: 4px; }
.czf { display: grid; grid-template-columns: 22px minmax(0, auto) minmax(0, 1fr) auto 30px; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 10px; background: rgba(255, 255, 255, .03); border-left: 3px solid transparent; }
.czf.win { border-left-color: #3ee6a8; } .czf.loss { border-left-color: rgba(255, 107, 107, .7); }
.czf .czf-n { color: var(--ink, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.czf .czf-g { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .czf .czf-g em { font-style: normal; color: #ffd23f; font-weight: 900; }
.czf .czf-v { font-weight: 900; font-variant-numeric: tabular-nums; } .czf.win .czf-v { color: #3ee6a8; } .czf.loss .czf-v { color: #ff8a8a; }
.czf small { text-align: right; opacity: .65; font-size: 11px; }
.czf.big { background: linear-gradient(90deg, rgba(255, 210, 63, .16), rgba(255, 210, 63, .02)); border-left-color: #ffd23f; } .czf.big .czf-v { color: #ffd23f; }
.czf.mine { box-shadow: inset 0 0 0 1px rgba(76, 201, 240, .35); }
.czf.fresh { animation: czfIn .5s cubic-bezier(.2, 1.3, .4, 1); } @keyframes czfIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.czf-empty { padding: 4px 2px; }
.czf-more { margin-left: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: var(--ink, #fff); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; } .czf-more:hover { background: rgba(255, 255, 255, .12); }
.cz-strip { padding: 8px 10px; gap: 5px; } .czf { padding: 3px 8px; }
@media (max-width: 560px) { .czf { grid-template-columns: 22px minmax(0, 1fr) auto; } .czf .czf-g, .czf small { display: none; } }
.rl-phase { font-weight: 800; font-size: 15px; } .rl-phase b { color: #ffd23f; } .rl-phase.result b { font-size: 20px; }
.rl-timer { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 6px 0 12px; } .rl-timer i { display: block; height: 100%; width: 0; background: #3ee6a8; } .rl-timer i.run { animation: shift-bar var(--ms) linear both; }
.rl-players { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; }
.rl-pl { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 12.5px; animation: hb-in .3s var(--spring) both; }
.rl-pl > :first-child { grid-row: span 2; } .rl-pl b { font-weight: 900; } .rl-pl small { display: flex; align-items: center; gap: 3px; font-weight: 800; color: var(--muted); } .rl-pl small .c { width: 13px; height: 13px; }
.rl-pl.me { box-shadow: inset 0 0 0 2px #ffd23f; } .rl-pl em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-weight: 900; padding: 2px 8px; border-radius: 8px; } .rl-pl em.up { background: #3ee6a8; color: #0b2a1f; } .rl-pl em.even { background: #4cc9f0; color: #1d1240; } .rl-pl em.down { background: rgba(0, 0, 0, .3); }
.rl-others { position: absolute; top: -5px; right: -4px; display: flex; } .rl-others i { width: 15px; height: 15px; margin-left: -4px; border-radius: 50%; display: grid; place-items: center; background: #b388ff; color: #fff; font-size: 8.5px; font-style: normal; font-weight: 900; border: 1.5px solid #fff; }
.rl-board.closed .rl-cell { cursor: default; } .rl-board.closed .rl-cell:hover { transform: none; background: rgba(0, 0, 0, .12); } .rl-board.closed { filter: saturate(.75); }
.rl-cell.hit { box-shadow: 0 0 0 3px #ffd23f, 0 0 18px #ffd23f; z-index: 1; animation: hp-marq .5s ease-in-out 6 alternate; }
.bj-seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; margin-top: 10px; }
.bj-seat { position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 16px; background: rgba(0, 0, 0, .14); transform: translateY(calc((2 - var(--i)) * (2 - var(--i)) * -4px)); color: #fff; }
.bj-seat.me { box-shadow: inset 0 0 0 2px #ffd23f; } .bj-seat.turn { box-shadow: inset 0 0 0 2px #3ee6a8, 0 0 20px rgba(62, 230, 168, .4); }
.bj-seat b { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bj-seat.empty { border: 2px dashed rgba(255, 255, 255, .25); background: none; cursor: pointer; min-height: 110px; align-content: center; } .bj-seat.empty span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.bj-seat.empty:disabled { cursor: default; opacity: .45; } .bj-seat.empty small { font-weight: 800; color: rgba(255, 255, 255, .7); }
.bj-cards.sm { min-height: 54px; gap: 0; } .bj-cards.sm .cz-card { width: 38px; height: 54px; margin-left: -10px; } .bj-cards.sm .cz-card:first-child { margin-left: 0; } .bj-cards.sm .cz-card span { font-size: 18px; } .bj-cards.sm .cz-card b { font-size: 11px; left: 3px; top: 2px; } .bj-cards.sm .cz-card b.br { display: none; }
.bj-av { position: relative; } .bj-chip { position: absolute; right: -14px; bottom: -4px; } .bj-chip .cz-chip { width: 24px; height: 24px; } .bj-chip .cz-chip b { width: 16px; height: 16px; font-size: 0; } .bj-chip i { position: absolute; left: 14px; bottom: -4px; padding: 0 4px; border-radius: 6px; background: #ffd23f; color: #1d1240; font-size: 9.5px; font-style: normal; font-weight: 900; }
.bj-v { padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-weight: 900; font-size: 12px; } .bj-seat .bj-res { padding: 2px 8px; font-size: 11.5px; }
.bj-yt { color: #3ee6a8; }
@media (max-width: 700px) {
  .bj-seats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; } .bj-seat { transform: none; padding: 6px 2px; } .bj-seat b { font-size: 10px; } .bj-cards.sm .cz-card { width: 30px; height: 44px; margin-left: -12px; }
  .trivia-hud .tq-opts, .shift-opts { grid-template-columns: 1fr; } .trivia-hud { top: 64px; }
  .pcard-pop .pc-hut { grid-template-columns: 60px 1fr auto; } .pcard-pop .pc-hut-art { width: 60px; height: 44px; }
}
.hov.sit .ha-tag { top: 16px; }

/* the lounge TV playing a documentary */
.tv-face { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #05030f; pointer-events: none; overflow: hidden; border-radius: 6px; box-shadow: 0 0 0 4px #0c0820; }
.tv-vid { position: absolute; left: 0; width: 384px; height: 216px; }
.tv-vid iframe { width: 384px; height: 216px; border: 0; display: block; pointer-events: none; }
.tv-cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(255, 255, 255, .55); font: 800 22px var(--font); letter-spacing: .06em; text-transform: uppercase; }
.tv-face.ended .tv-vid { opacity: .25; }
.tv-ctl { position: absolute; left: 0; top: 0; pointer-events: auto; z-index: 2; } .tv-ctl > * { scale: var(--ui, 1); transform-origin: 50% 100%; }
.tv-snd { position: absolute; left: 0; top: 0; translate: -50% -100%; display: flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border: 0; border-radius: 999px; background: rgba(29, 18, 64, .82); color: #fff; font: 800 11px "Nunito", sans-serif; cursor: pointer; white-space: nowrap; box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 0 0 1.5px rgba(76, 201, 240, .6); animation: hb-in .3s var(--spring) both; }
.tv-pop { position: absolute; left: 0; top: -34px; translate: -50% -100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; background: var(--panel); box-shadow: 0 8px 0 rgba(0, 0, 0, .25), 0 12px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line); animation: hb-in .25s var(--spring) both; }
.tv-pop button { width: 30px; height: 30px; border: 0; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; } .tv-pop button .ico { width: 15px; height: 15px; }
.tv-pop b { min-width: 34px; font: 900 12px "Nunito", sans-serif; color: var(--muted); text-align: right; }
.tv-vol { -webkit-appearance: none; appearance: none; flex: none; width: 130px !important; min-width: 0; max-width: 130px; height: 8px; margin: 0; padding: 0; border-radius: 4px; background: linear-gradient(90deg, #4cc9f0 var(--v, 80%), rgba(255, 255, 255, .15) var(--v, 80%)); cursor: pointer; }
.tv-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.tv-vol::-moz-range-track { height: 8px; border-radius: 4px; background: transparent; }
.tv-vol::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.tv-snd .ico { width: 13px; height: 13px; } .tv-ctl.open .tv-snd { background: #2b1d6e; } .tv-snd.off { box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 0 0 1.5px rgba(255, 92, 138, .7); opacity: .85; }
.tv-snd:hover { background: #2b1d6e; }
.tvr { display: grid; gap: 12px; }
.tvr-now { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: linear-gradient(110deg, rgba(76, 201, 240, .18), rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 2px rgba(76, 201, 240, .45); }
.tvr-now img { width: 120px; border-radius: 10px; display: block; } .tvr-now b { display: block; margin: 2px 0; line-height: 1.25; } .tvr-now small { color: var(--muted); font-weight: 700; font-size: 11.5px; }
.tvr-acts { display: grid; gap: 6px; }
.tvr-chips { display: flex; gap: 6px; flex-wrap: wrap; } .tvr-chips button { padding: 6px 11px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); color: inherit; font-weight: 800; font-size: 12.5px; cursor: pointer; } .tvr-chips button.on { background: #ffd23f; color: #1d1240; }
.tvr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tvr-v { display: grid; gap: 4px; align-content: start; padding: 0 0 6px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; transition: transform .15s var(--spring); }
.tvr-v:hover { transform: translateY(-3px); } .tvr-th { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #1d1240; }
.tvr-th img { width: 100%; height: 100%; object-fit: cover; display: block; } .tvr-th i { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; background: #ff3b3b; color: #fff; font-style: normal; font-weight: 900; font-size: 11px; }
.tvr-v.on .tvr-th { box-shadow: 0 0 0 3px #4cc9f0; } .tvr-v b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .tvr-v small { color: var(--muted); font-weight: 700; font-size: 11.5px; }
@media (max-width: 700px) { .tvr-now { grid-template-columns: 90px 1fr; } .tvr-now img { width: 90px; } .tvr-acts { grid-column: 1 / -1; display: flex; } .tvr-grid { grid-template-columns: 1fr 1fr; } }
/* sliding into and out of the water */
.ha .ha-sprite { transition: bottom .3s ease, clip-path .3s ease; clip-path: inset(0 0 0 0); }
.ha.swim .ha-sprite { transition: bottom .3s ease, clip-path .3s ease; }
/* in the boat: sitting and rowing, not walking */
.ha.boat .ha-sprite svg.char, .ha.boat.walk .ha-sprite svg.char { animation: boat-sway 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes boat-sway { 50% { transform: rotate(2.5deg) translateY(-1px); } }
.ha.boat .c-legs { display: none; } .ha.boat .c-legs-sit { display: inline; }
.ha.boat .ha-sprite { bottom: -18px; clip-path: inset(0 0 26% 0); }
.ha.boat .c-armL { animation: row-l 1.6s ease-in-out infinite; } .ha.boat .c-armR { animation: row-r 1.6s ease-in-out infinite; }
@keyframes row-l { 0%, 100% { transform: rotate(35deg); } 50% { transform: rotate(-25deg); } }
@keyframes row-r { 0%, 100% { transform: rotate(-35deg); } 50% { transform: rotate(25deg); } }
.ha.boat .ha-boatart .oar { animation: oar 1.6s ease-in-out infinite; transform-origin: 0 -8px; transform-box: view-box; }
@keyframes oar { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(18deg); } }
.ha.boat.walk .ha-boatart .wake { animation-duration: .9s; }
.hprop .tiki2 .fl-halo { animation: hp-holo 1.3s ease-in-out infinite; }
/* the player card sets its own type: it must not inherit spacing from big headings around it */
.pcard-pop { letter-spacing: normal; font-family: "Nunito", system-ui, sans-serif; }
.pcard-pop .name-flag { font-family: var(--font); }
.pcard-pop .pcp-name small { letter-spacing: .01em; font-size: 11.5px; }
.pcard-pop .pc-title { color: var(--muted); font-weight: 800; }

/* the TV remote: your own pick, the big screen */
.tvr-th em { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-style: normal; font-weight: 800; font-size: 11px; }
.tvr-pick { display: grid; gap: 12px; } .tvr-pick > p { margin: 0; font-weight: 700; } .tvr-pick .c { width: 15px; height: 15px; vertical-align: -2px; }
.tvr-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.tvr-confirm { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 6px; } .tvr-confirm img { width: min(320px, 100%); border-radius: 14px; } .tvr-confirm h3 { margin: 4px 0 0; } .tvr-confirm p { margin: 0 0 6px; }
.tvb { display: grid; gap: 12px; }
.tvb-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 68vh; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 8px 0 rgba(0, 0, 0, .3), inset 0 0 0 1px var(--line); }
.tvb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tvb-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .tvb-bar > div:first-child { flex: 1; min-width: 200px; } .tvb-bar b { display: block; } .tvb-bar small { color: var(--muted); font-weight: 700; }
.tvb-vol { display: flex; align-items: center; gap: 8px; } .tvb-vol .ico { width: 18px; height: 18px; } .tvb-vol input { width: 140px; accent-color: #4cc9f0; }
.tvr-now .tvr-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* ------------------------------------------------------------------ v17: the new islands' props */
.hprop .fire-flick { animation: v17-fire .94s ease-in-out infinite alternate; animation-delay: var(--flame-phase, 0s); transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes v17-fire { 0% { transform: scale(1, 1) skewX(-3deg); opacity: .92; } 100% { transform: scale(1.08, 1.16) skewX(4deg); opacity: 1; } }
.hprop .lamp-glow { animation: v17-glow 3.2s ease-in-out infinite; }
@keyframes v17-glow { 0%, 100% { opacity: .8; } 50% { opacity: 1; } } /* (opacity only: the GPU fades it without repainting) */
.hprop .steam path { animation: v17-steam 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes v17-steam { 0% { opacity: 0; transform: translateY(6px) scaleY(.6); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px) scaleY(1.1); } }
.hprop .koi { animation: v17-koi 14s linear infinite; }
@keyframes v17-koi { to { transform: rotate(360deg); } }
.hprop .shimmer { animation: v17-shimmer 4s ease-in-out infinite; }
@keyframes v17-shimmer { 0%, 100% { opacity: .1; transform: translateX(0); } 50% { opacity: .35; transform: translateX(16px); } }
.hprop .petal { animation: v17-petal 7s linear infinite; animation-delay: calc(var(--i) * -1.7s); transform-box: fill-box; }
@keyframes v17-petal { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(var(--x), 70px) rotate(240deg); opacity: 0; } }
.hpw.fx-petals .petal { animation-duration: 1.6s; }
.hpw.fx-petals svg { animation: hp-shake .7s ease both; transform-origin: bottom center; }
.hprop .slide-water { animation: v17-slidewater 1.1s linear infinite; }
@keyframes v17-slidewater { to { stroke-dashoffset: -48; } }
.hprop .splash circle { animation: v17-splash 1.4s ease-out infinite; animation-delay: calc(var(--i) * .25s); transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes v17-splash { 0% { transform: translateY(0) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-16px) scale(1.2); opacity: 0; } }
.hprop .bounce { animation: v17-bounce 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes v17-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.hpw.fx-koi svg .koi { animation-duration: 3s; }

/* ------------------------------------------------------------------ v17: the header (Hub tools left, the site's own cluster right) */
.hub-top { pointer-events: none; } .hub-top > * { pointer-events: auto; }
.hub-top-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hub-tools { display: flex; gap: 8px; padding-left: 4px; margin-left: 2px; border-left: 2px solid rgba(255, 255, 255, .12); }
.hub-tr { margin-left: auto; padding: 5px 6px 5px 8px; border-radius: 20px; background: rgba(29, 18, 64, .72); backdrop-filter: blur(8px); box-shadow: 0 4px 0 rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .1); color: #fff; }
.hub-tr .icon-btn[data-tip]:hover::after { content:none; }
.hub-hover-tip { position:absolute; z-index:26; pointer-events:none; padding:6px 10px; border:1px solid #d7ad78; border-radius:8px; background:#261a39; color:#fff3dc; box-shadow:0 8px 20px #0b071bbf; font:800 12px var(--font); white-space:nowrap; }
.hub-hover-tip[hidden] { display:none; }
.hub.phone .hub-tr { backdrop-filter: none; background: rgba(29, 18, 64, .86); }
.hub-tr.top-right { gap: 8px; } .hub-tr .icon-btn { width: 38px; height: 38px; } .hub-tr .coins { padding: 6px 12px 6px 7px; }
.hub-tr .me-chip { min-height: 44px; padding: 3px 12px 3px 4px; } .hub-tr .tr-sound.off { color: var(--muted); }
.hub-side { position: absolute; right: 12px; top: 76px; display: grid; justify-items: end; gap: 8px; pointer-events: none; }
.hub-side > * { pointer-events: auto; }
/* the minimap */
.hub-mini { position: relative; display: grid; justify-items: end; gap: 6px; }
.hm-frame { position: relative; width: 236px; height: 160px; border-radius: 20px; overflow: hidden; cursor: grab; touch-action: none; background: radial-gradient(120% 120% at 50% 40%, #2a8fd8, #1a5aa8 70%, #163f86);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .28), inset 0 0 0 2px rgba(255, 255, 255, .16), 0 10px 30px rgba(10, 5, 40, .35); transition: height .3s var(--spring), width .3s var(--spring), opacity .25s; }
.hm-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 26px rgba(10, 20, 60, .45); pointer-events: none; }
.hm-cv { position: absolute; inset: 0; }
.hm-frame.dragging { cursor: grabbing; }
.hm-heads { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hm-head { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #203954; box-shadow: 0 0 0 2px #75d4f4, 0 2px 7px rgba(0, 0, 0, .55); transition: transform .12s linear; will-change: transform; }
.hm-head.friend { box-shadow: 0 0 0 3px #3ee6a8, 0 0 12px rgba(62,230,168,.55), 0 2px 7px rgba(0,0,0,.5); }
.hm-head.edge { opacity: .8; transform-origin: center; } .hm-head .avatar { display: block; width: 24px !important; height: 24px !important; vertical-align: top; }
.hm-me { position: absolute; z-index: 1; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #ffd23f; box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255, 210, 63, .35); animation: hm-ping 1.8s ease-out infinite; pointer-events: none; }
@keyframes hm-ping { 0% { box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(255, 210, 63, .5); } 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 14px rgba(255, 210, 63, 0); } }
.hm-area { position: absolute; z-index: 5; left: 10px; bottom: 8px; padding: 3px 9px; border-radius: 10px; background: rgba(29, 18, 64, .96); color: #fff; font-family: var(--display); font-size: 12px; letter-spacing: .3px; pointer-events: none; }
.hm-ctl { position: absolute; z-index: 4; right: 8px; bottom: 8px; display: flex; gap: 4px; }
.hm-ctl button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 10px; background: rgba(29, 18, 64, .78); color: #fff; cursor: pointer; } .hm-ctl button:hover { background: rgba(60, 40, 120, .95); }
.hm-ctl .ico { width: 15px; height: 15px; }
.hub-mini.shut .hm-frame { width: 0; height: 0; opacity: 0; } .hub-mini.shut .hm-ctl { position: static; } .hub-mini.shut .hm-in, .hub-mini.shut .hm-out, .hub-mini.shut .hm-center { display: none; }
.hub-mini.shut .hm-tog { width: 42px; height: 42px; border-radius: 15px; box-shadow: 0 4px 0 rgba(0, 0, 0, .28); }
.hub-mini.away { display: none; }
.hub-mini.zoomed .hm-frame { transform: scale(1.015); }
/* the sound menu */
.snd-pop { position: absolute; z-index: 25; width: 330px; padding: 14px; border-radius: 20px; background: var(--panel, #241650); color: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: auto; display: grid; gap: 10px; animation: hp-in .3s var(--spring) both; }
.snd-head { display: flex; align-items: center; justify-content: space-between; } .snd-head b { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 16px; }
.snd-row { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 4px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.snd-row.off { opacity: .45; } .snd-ic { grid-row: span 2; font-size: 24px; text-align: center; }
.snd-txt b { font-size: 14px; } .snd-txt small { display: block; color: var(--muted); font-weight: 700; font-size: 11.5px; }
.snd-row input { grid-column: 2; width: calc(100% - 46px); accent-color: #ffd23f; } .snd-pct { position: absolute; right: 24px; margin-top: 30px; font-size: 12px; color: #ffd23f; }
.snd-row { position: relative; } .snd-foot { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
@media (max-width: 1100px) { .hub-tools #hubPlaces span { display: none; } .hub-tr .me-chip .me-txt { display: none; } .hub-tr .me-chip { padding: 3px; border-radius: 50%; } }
@media (max-width: 860px) { .hub-tools { display: none; } .hub-more { display: inline-flex !important; } }
@media (max-width: 700px) {
  .hub-tr { padding: 4px; border-radius: 16px; } .hub-tr.top-right { gap: 4px; } .hub-tr .icon-btn { width: 34px; height: 34px; } .hub-tr .tr-settings, .hub-tr .tr-sound { display: none; }
  .hub-tr .coins { padding: 4px 8px 4px 4px; font-size: 13px; } .hub-tr .me-chip { min-height: 0; }
  .hub-side { right: 8px; top: calc(62px + env(safe-area-inset-top)); }
  .hm-frame { width: 150px; height: 104px; border-radius: 16px; } .hm-area { font-size: 10.5px; left: 7px; bottom: 6px; } .hm-ctl button { width: 24px; height: 24px; }
  .snd-pop { width: min(330px, calc(100vw - 16px)); right: 8px !important; }
}
@media (max-height: 500px) and (orientation: landscape) { .hm-frame { width: 150px; height: 96px; } .hub-side { top: 58px; } }
.hub-chip { white-space: nowrap; }
.hm-area { bottom: auto; top: 8px; }
@media (max-width: 700px) { .hm-area { top: 6px; } }

/* ------------------------------------------------------------------ v17: ships */
.hship { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.hship svg { display: block; overflow: visible; }
.hship.hull .ship-hull > polygon, .hship.hull .ship-hull > g > polygon { pointer-events: visiblePainted; cursor: pointer; }
.hship .ship-flag { animation: hp-flag 1.6s ease-in-out infinite; transform-box: fill-box; }
@keyframes hp-flag { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-6deg) scaleX(.92); } }
.hship.rig.moving .ship-sail { animation: ship-billow 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes ship-billow { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, .985); } }
.hship.hull { animation: ship-bob 4.2s ease-in-out infinite; } .hship.rig { animation: ship-bob 4.2s ease-in-out infinite; }
@keyframes ship-bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 2px; rotate: .4deg; } }
.hship-water { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: .65; }
.hship-water::before, .hship-water::after { content: ''; position: absolute; left: -100px; top: -24px; width: 200px; height: 48px; border: 2px solid rgba(223, 248, 255, .62); border-radius: 50%; box-shadow: 0 0 9px rgba(184, 237, 255, .25); animation: ship-waterline 5.2s ease-out infinite; }
.hship-water::after { animation-delay: -2.6s; }
.hship-water.galleon::before, .hship-water.galleon::after { left: -138px; width: 276px; height: 58px; top: -29px; }
.hship-water.moving { opacity: .9; }
.hship-water.moving::before, .hship-water.moving::after { animation-duration: 2.7s; border-color: rgba(255, 255, 255, .8); }
@keyframes ship-waterline { 0% { scale: .87 .82; opacity: 0; } 18% { opacity: .52; } 100% { scale: 1.14 1.38; opacity: 0; } }
.hub[data-sky=night] .ship-win, .hub.night .ship-win, .hub.night .ship-lamp { fill: #ffe08a; filter: drop-shadow(0 0 6px #ffc35a); }
.hship-wake { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .8s; }
.hship-wake.on { opacity: 1; }
.hship-wake::before, .hship-wake::after { content: ''; position: absolute; right: 0; top: -14px; width: 150px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .55); border-left: 0; border-top-color: transparent; border-bottom-color: transparent; animation: wake 1.6s ease-out infinite; }
.hship-wake::after { animation-delay: .8s; }
@keyframes wake { 0% { transform: scale(.3, .5); opacity: .9; } 100% { transform: scale(1, 1.4) translateX(-30px); opacity: 0; } }
/* people on deck stand at deck height */
.ha.aboard .ha-body, .ha.aboard .ha-shadow, .ha.aboard .ha-ring { translate: 0 calc(var(--lift, 0px) * -1); }
.hov.aboard { translate: 0 calc(var(--lift, 0px) * -1); }
.ha.aboard .ha-ripple { display: none; }
/* the bar while aboard */
.ship-bar { position: absolute; left: 50%; top: 78px; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 14px; border-radius: 22px; background: rgba(29, 18, 64, .9); color: #fff; box-shadow: 0 8px 0 rgba(0, 0, 0, .28), 0 20px 50px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: auto; animation: hp-in .35s var(--spring) both; max-width: calc(100vw - 24px); }
.ship-bar[hidden] { display: none; }
.sb-name { display: flex; align-items: center; gap: 10px; min-width: 0; } .sb-name b { font-family: var(--display); font-size: 16px; white-space: nowrap; } .sb-name small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.sb-flag { width: 30px; height: 22px; border-radius: 4px; flex: none; background: #ffd23f; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .2); }
.sb-flag.jolly { background: #1d1240 radial-gradient(circle at 50% 45%, #fff 0 4px, transparent 5px); } .sb-flag.puffin { background: #4cc9f0; }
.sb-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hub-act.aboard #hubSit, .hub-act.aboard #hubStand { display: none; }
.ship-card .sc-pic { position: relative; height: 230px; margin: -6px 0 10px; display: grid; place-items: center; background: radial-gradient(80% 90% at 50% 70%, #3fb6f0, #1f7fd0); border-radius: 18px; overflow: hidden; }
.ship-card .sc-pic > div { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.62); }
@media (max-width: 700px) { .ship-bar { flex-direction: column; align-items: stretch; gap: 8px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); } .sb-btns { justify-content: stretch; } .sb-btns .btn { flex: 1; } }
.hship-gang { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .6s; } .hship-gang.on { opacity: 1; }

/* ------------------------------------------------------------------ v17: people in other rooms are hidden */
.ha[hidden], .hov[hidden], .hcomp[hidden] { display: none !important; }

/* ------------------------------------------------------------------ v17: the deep reef */
.hub.under { background: radial-gradient(120% 100% at 50% 0%, #1f8fb8 0%, #0d4a7a 55%, #072a52 100%); }
.hub.under .hub-sea { opacity: 0; transition: opacity .6s; }
.hub.under::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: repeating-linear-gradient(105deg, rgba(180,240,255,0) 0 60px, rgba(180,240,255,.09) 80px, rgba(180,240,255,0) 120px), radial-gradient(60% 40% at 50% -10%, rgba(200,250,255,.45), transparent 70%);
  animation: rays 9s ease-in-out infinite alternate; }
@keyframes rays { 0% { background-position: 0 0, 0 0; } 100% { background-position: 180px 0, 0 0; } }
.hub.under .hub-fx { filter: none; }
.hub.under .hub-world::before { content: ''; position: absolute; left: 0; top: 0; }
.deep-caustics { display: none; }
.ha-dive { display: none; }
.ha .c-snorkel { display: none; }
.ha.diver .c-snorkel { display: inline; }
.ha.diver.back .c-snorkel-mask { display: none; }
.ha.diver .ha-sprite svg.char { animation: ha-float 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
.ha.diver.walk .ha-sprite svg.char { animation: ha-divekick 1.1s ease-in-out infinite; }
@keyframes ha-float { 0%, 100% { transform: translateY(-14px) rotate(-2deg); } 50% { transform: translateY(-22px) rotate(2deg); } }
@keyframes ha-divekick { 0%, 100% { transform: translateY(-16px) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(4deg); } }
.ha.diver .ha-shadow { transform: scale(.7); opacity: .35; }
.ha-dive .bub { position: absolute; left: 36px; top: -4px; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); animation: dbub 2.2s ease-in infinite; opacity: 0; }
.ha-dive .b2 { animation-delay: .7s; width: 4px; height: 4px; } .ha-dive .b3 { animation-delay: 1.4s; width: 8px; height: 8px; }
@keyframes dbub { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(6px, -60px); opacity: 0; } }
.hub.under .ha-tag { opacity: .9; }
/* the plunge */
.bubble-wipe { position: absolute; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
.bubble-wipe .bw-tint { position: absolute; inset: 0; background: radial-gradient(circle, rgba(76,201,240,.35), rgba(13,74,122,.85)); animation: bw-tint 1.8s ease both; }
@keyframes bw-tint { 0% { opacity: 0; } 35%, 55% { opacity: 1; } 100% { opacity: 0; } }
.bubble-wipe i { position: absolute; left: var(--x); bottom: -60px; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(200,240,255,.35) 40%, rgba(200,240,255,.08) 70%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); animation: bw-rise var(--t) cubic-bezier(.3,.6,.4,1) var(--d) both; z-index: 1; }
.bubble-wipe.up i { animation-name: bw-rise; }
@keyframes bw-rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-120vh) translateX(20px) scale(1.1); opacity: 0; } }
/* the dive's HUD */
.deep-hud { position: absolute; left: 50%; top: 78px; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 22px; background: rgba(8, 40, 80, .82); color: #fff; box-shadow: 0 8px 0 rgba(0,0,0,.25), inset 0 0 0 1px rgba(150,230,255,.25); pointer-events: auto; animation: hp-in .35s var(--spring) both; }
.deep-hud[hidden] { display: none; }
.dh-air { display: flex; align-items: center; gap: 8px; } .dh-air span { font-size: 22px; } .dh-bar { width: 180px; height: 12px; border-radius: 8px; background: rgba(255,255,255,.14); overflow: hidden; }
.dh-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4cc9f0, #c8f4ff); transition: width .3s linear; }
.dh-air.low .dh-bar i { background: linear-gradient(90deg, #ff5c8a, #ffd23f); animation: dh-low .6s ease-in-out infinite alternate; } @keyframes dh-low { to { opacity: .55; } }
.dh-s { font-family: var(--display); min-width: 36px; } .dh-got { font-weight: 900; font-size: 13px; color: #c8f4ff; display: flex; align-items: center; gap: 4px; } .dh-got .coin { width: 16px; height: 16px; }
.dh-compass { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff4dc, #c99a4a); box-shadow: inset 0 0 0 3px #8a5a14; }
.dh-compass i { font-style: normal; color: #a0402a; font-size: 20px; transform: rotate(var(--a, 0rad)); transition: transform .3s; } .dh-compass.near { animation: dh-near .7s ease-in-out infinite alternate; } @keyframes dh-near { to { box-shadow: inset 0 0 0 3px #8a5a14, 0 0 18px #ffd23f; } }
.dh-compass.done { opacity: .35; }
.hfind { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.hfind span { position: absolute; left: -14px; top: -34px; font-size: 26px; animation: hf-bob 2.4s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0,20,40,.4)); }
.hfind .hf-glow { position: absolute; left: -24px; top: -10px; width: 48px; height: 20px; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .7; animation: hf-glow 1.8s ease-in-out infinite alternate; }
@keyframes hf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } } @keyframes hf-glow { to { opacity: .25; transform: scale(1.3); } }
.hfind.got span { animation: hf-got .7s ease-out both; } @keyframes hf-got { to { transform: translateY(-50px) scale(1.6); opacity: 0; } }
.hjelly { position: absolute; left: 0; top: 0; width: 40px; pointer-events: none; animation: hj-pulse 1.6s ease-in-out infinite; animation-delay: var(--d); }
.hjelly svg { width: 40px; display: block; overflow: visible; } .hjelly .jt { animation: hj-tent 1.6s ease-in-out infinite; animation-delay: calc(var(--k) * .15s); transform-box: fill-box; transform-origin: 50% 0; }
@keyframes hj-pulse { 0%, 100% { scale: 1 1; } 50% { scale: 1.08 .9; } } @keyframes hj-tent { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(10deg); } }
.hjelly.zap { filter: drop-shadow(0 0 10px #ffd23f) brightness(1.5); }
.hdchest { position: absolute; left: 0; top: 0; width: 70px; pointer-events: none; } .hdchest svg { width: 70px; display: block; overflow: visible; }
.hdchest .gold { opacity: 0; } .hdchest.open .lid { transform: rotate(-24deg); transform-origin: 8px 26px; transition: transform .5s var(--spring); } .hdchest.open .gold { opacity: 1; animation: hf-bob 1.2s ease-in-out infinite; }
.hsnorkel { position: absolute; left: 0; top: 0; width: 30px; pointer-events: none; transition: transform .4s linear; } .hsnorkel svg { width: 30px; display: block; overflow: visible; animation: hp-float 2.2s ease-in-out infinite; }
.hsnorkel .ring { animation: ha-ripple 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.hsnorkel b { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
/* the seabed's props moving in the current */
.hprop .weed, .hprop .kelp { animation: kelp 4.5s ease-in-out infinite; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes kelp { 0%, 100% { transform: skewX(-6deg); } 50% { transform: skewX(8deg); } }
.hprop .coral-sway { animation: coralsway 5s ease-in-out infinite; animation-delay: var(--d, 0s); } @keyframes coralsway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.hprop .anemone path { animation: kelp 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.hprop .clam-lid { animation: clam 6s ease-in-out infinite; } @keyframes clam { 0%, 70%, 100% { transform: rotate(0); } 80%, 90% { transform: rotate(-22deg); } }
.hprop .pearl { animation: v17-glow 2s ease-in-out infinite; }
@media (max-width: 700px) { .deep-hud { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); gap: 10px; padding: 8px 10px; } .dh-bar { width: 110px; } }

/* ------------------------------------------------------------------ v17: beach-hut decor that moves */
.hprop .drape { animation: drape 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; } @keyframes drape { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(3deg); } }
.hprop .rock-chair { animation: rockc 3s ease-in-out infinite; } @keyframes rockc { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.hprop .swing-h { animation: rockc 4s ease-in-out infinite; }
.hprop .vinyl { animation: v17-koi 1.8s linear infinite; }
.hprop .notes-up text { animation: notesup 2.4s ease-out infinite; } @keyframes notesup { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(10px, -26px); opacity: 0; } }
.hprop .lava .blob { animation: lava 6s ease-in-out infinite; animation-delay: calc(var(--k) * -2s); } @keyframes lava { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-22px) scale(1.2, .9); } }
.hprop .goldfish { animation: v17-koi 6s linear infinite; }
.hprop .jet { animation: v17-slidewater .8s linear infinite; }
.hprop .snow .flake { animation: flake 3s linear infinite; animation-delay: calc(var(--k) * -.5s); } @keyframes flake { 0% { transform: translateY(-2px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }
.hprop .tailwag { animation: rockc 2.2s ease-in-out infinite; }
.hprop .flame-flick { animation: v17-fire 1.12s ease-in-out infinite alternate; animation-delay: var(--flame-phase, 0s); }
.hprop .aurora { animation: shimmerA 6s ease-in-out infinite; } @keyframes shimmerA { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: .85; transform: translateY(-3px); } }
.hprop .pendulum { animation: pend 2s ease-in-out infinite; } @keyframes pend { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(-14deg); } }
.hprop .bulb { animation: bulb 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.27s); } @keyframes bulb { 0%, 100% { opacity: .45; } 50% { opacity: 1; filter: drop-shadow(0 0 4px currentColor); } }
.hprop .pennant { animation: pen 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.3s); transform-box: fill-box; transform-origin: 50% 0; } @keyframes pen { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(6deg); } }
.hprop .chest-lid { animation: chestlid 7s ease-in-out infinite; } @keyframes chestlid { 0%, 80%, 100% { transform: rotate(0); } 86%, 94% { transform: rotate(-16deg); } }

/* ------------------------------------------------------------------ v17: inside a beach hut */
.hub.indoors { background: radial-gradient(120% 100% at 50% 30%, #4a2a3a 0%, #24142e 60%, #140a1e 100%); }
@media (max-width:700px) { .hub.indoors { background:#49b4cc; } }
.hub.indoors .hub-sea { opacity: 0; transition: opacity .5s; }
.hut-room { position: absolute; left: 0; top: 0; z-index: 3; }
.hut-room svg { display: block; overflow: visible; }
.hut-door { cursor: pointer; } .hut-door:hover rect:nth-child(2) { filter: brightness(1.08); }
.hut-wave { animation: hutwave 3s ease-in-out infinite; } @keyframes hutwave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } }
.hut-item.sel svg { filter: drop-shadow(0 0 6px #ffd23f) drop-shadow(0 0 2px #ffd23f); }
.hut-item.poke svg { animation: hp-wobble .7s var(--spring) both; transform-origin: 50% 80%; }
.hut-ghost { opacity: .72; pointer-events: none; filter: drop-shadow(0 0 6px #3ee6a8); } .hut-ghost.bad { filter: drop-shadow(0 0 6px #ff5c8a) grayscale(.6); opacity: .5; }
.hut-slot { position: absolute; left: 0; top: 0; width: var(--w); height: 34px; margin: -17px 0 0 calc(var(--w) / -2); border: 2px dashed #3ee6a8; border-radius: 8px; background: rgba(62, 230, 168, .18); cursor: pointer; animation: slotpulse 1.2s ease-in-out infinite alternate; }
.hut-slot:hover { background: rgba(62, 230, 168, .45); } @keyframes slotpulse { to { box-shadow: 0 0 14px rgba(62, 230, 168, .7); } }
.hut-hud { position: absolute; left: 50%; top: 78px; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 22px; background: rgba(36, 20, 46, .9); color: #fff; box-shadow: 0 8px 0 rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 210, 160, .2); pointer-events: auto; animation: hp-in .35s var(--spring) both; }
.hut-hud[hidden] { display: none; } .hut-hud b { font-family: var(--display); font-size: 15px; white-space: nowrap; } .hut-hud small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.hut-hud select { height: 34px; padding: 0 8px; border-radius: 12px; }
.hut-drawer { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(980px, calc(100vw - 24px)); max-height: 42vh; z-index: 9; display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 24px; background: rgba(29, 18, 64, .95); color: #fff; box-shadow: 0 -10px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: auto; overflow: hidden; animation: hd-up .35s var(--spring) both; }
.hut-drawer[hidden] { display: none; } @keyframes hd-up { from { transform: translate(-50%, 40px); opacity: 0; } }
.hd-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); flex-wrap: wrap; }
.hd-tip { flex: 1; min-width: 180px; color: var(--muted); font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 6px; } .hd-tip b { color: #fff; }
.hd-sel { display: flex; gap: 6px; } .hd-count { font-weight: 900; color: #ffd23f; font-size: 13px; }
.hd-body { overflow-y: auto; padding: 12px 14px 16px; overscroll-behavior: contain; }
.hd-things, .hd-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hd-thing, .hd-buy { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 8px 10px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; cursor: pointer; transition: background .15s, transform .15s var(--spring); }
.hd-thing:hover, .hd-buy:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); } .hd-thing.on { background: rgba(62, 230, 168, .25); box-shadow: inset 0 0 0 2px #3ee6a8; } .hd-thing:disabled { opacity: .4; cursor: default; }
.hd-ic { grid-row: span 2; font-size: 22px; text-align: center; } .hd-thing b, .hd-buy b { font-size: 13px; line-height: 1.15; } .hd-thing small, .hd-buy small { color: var(--muted); font-weight: 800; font-size: 11.5px; display: flex; align-items: center; gap: 3px; } .hd-buy small .coin { width: 13px; height: 13px; }
.hd-looks { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hd-look { display: grid; justify-items: center; gap: 4px; width: 86px; padding: 6px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .05); color: #fff; font: inherit; cursor: pointer; }
.hd-look i { width: 70px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--c) 50%, var(--c2) 50%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); } .hd-look b { font-size: 11px; text-align: center; line-height: 1.1; } .hd-look small { font-size: 10.5px; color: #ffd23f; font-weight: 900; display: flex; gap: 2px; align-items: center; } .hd-look small .coin { width: 11px; height: 11px; }
.hd-look.on { box-shadow: inset 0 0 0 2px #ffd23f; background: rgba(255, 210, 63, .12); } .hd-look.locked i { filter: saturate(.6) brightness(.8); }
.hd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.door-fade { position: absolute; inset: 0; z-index: 50; pointer-events: none; background: radial-gradient(circle, rgba(255, 240, 210, .9), rgba(36, 20, 46, 1) 70%); animation: doorfade 1.3s ease both; }
@keyframes doorfade { 0% { opacity: 0; } 35%, 50% { opacity: 1; } 100% { opacity: 0; } }
.hut-choose { display: grid; gap: 10px; } .hc-mine { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 0; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 143, 208, .2), rgba(255, 210, 63, .15)); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.hc-mine:hover { filter: brightness(1.08); } .hc-mine b { font-family: var(--display); font-size: 17px; } .hc-mine small { display: block; color: var(--muted); font-weight: 700; } .hc-art svg { width: 90px; height: auto; }
@media (max-width: 700px) { .hut-hud { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 16px); } .hut-drawer { bottom: 8px; max-height: 50vh; } .hd-things, .hd-shop { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
@media (max-width: 700px) {
  .hut-hud { top: 62px; bottom: auto; left: 8px; right: 8px; transform: none; max-width: none; padding: 6px 8px; gap: 5px; justify-content: flex-start; border-radius: 15px; }
  .hut-hud > div { flex: 1; min-width: 110px; }
  .hut-hud b { font-size: 13px; }
  .hut-hud small { font-size: 10px; }
  .hut-hud::after { content: ''; order: 1; flex-basis: 100%; height: 0; }
  .hut-hud [data-h='leave'] { order: 0; width: 36px; overflow: hidden; white-space: nowrap; font-size: 0; padding: 7px; }
  .hut-hud [data-h='garden'], .hut-hud [data-h='edit'], .hut-hud [data-h='save'], .hut-hud [data-h='cancel'], .hut-hud select { order: 2; height: 32px; padding: 4px 8px; font-size: 11px; }
  .hut-hud select { max-width: 120px; }
}

/* ------------------------------------------------------------------ v17: water fun */
.gym-yt { position: absolute; right: 16px; bottom: 82px; z-index: 35; width: 320px; padding: 8px; border-radius: 18px; color: #fff; background: rgba(29, 18, 64, .96); box-shadow: 0 8px 0 rgba(0, 0, 0, .23), 0 18px 45px rgba(0, 0, 0, .35); pointer-events: auto; }
.gym-yt[hidden] { display: none; }
.gym-yt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; padding: 0 3px 6px; font-size: 12px; }
.gym-yt-listen { border: 0; border-radius: 9px; padding: 5px 10px; color: #1d1240; background: #ffd23f; font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; }
.gym-yt-listen[hidden] { display: none; }
.gym-yt-frame { width: 100%; height: 210px; overflow: hidden; border-radius: 11px; background: #08050f; }
.gym-yt-slot, .gym-yt-slot iframe { display: block; width: 100%; height: 100%; border: 0; }
.gym-yt-title { display: block; padding: 7px 3px 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; color: #ddd1f4; }
.gym-yt-search { margin-top: 14px; padding: 12px; border-radius: 16px; background: rgba(76, 201, 240, .08); border: 1px solid rgba(76, 201, 240, .2); }
.gym-yt-search > b { color: #ffd23f; }
.gym-yt-search p { margin: 5px 0 10px; font-size: 12px; line-height: 1.4; }
.gym-yt-search form { display: flex; gap: 7px; }
.gym-yt-search form input { flex: 1; min-width: 0; }
.gym-yt-results { display: grid; gap: 7px; margin-top: 10px; max-height: 260px; overflow: auto; }
.gym-yt-result { display: flex; gap: 10px; align-items: center; width: 100%; padding: 6px; border: 0; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .08); text-align: left; font: inherit; cursor: pointer; }
.gym-yt-result:hover { background: rgba(255, 255, 255, .15); }
.gym-yt-result img { width: 74px; height: 48px; object-fit: cover; border-radius: 7px; flex: none; }
.gym-yt-result span { min-width: 0; } .gym-yt-result b, .gym-yt-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gym-yt-result b { font-size: 12px; } .gym-yt-result small { margin-top: 3px; color: #c8bce3; font-size: 11px; }
.gym-yt-confirm { display: grid; gap: 9px; margin-top: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 210, 63, .13); }
.gym-yt-confirm > b { font-size: 12px; } .gym-yt-confirm > div { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 700px) { .gym-yt { right: 8px; top: 238px; bottom: auto; width: min(260px, calc(100vw - 16px)); } .gym-yt-frame { height: 200px; } }
@media (max-height: 500px) and (orientation: landscape) { .gym-yt { top: 58px; right: 8px; bottom: auto; width: 240px; } .gym-yt-frame { height: 200px; } }
.ha-ride { position: absolute; left: -110px; top: -74px; width: 220px; pointer-events: none; animation: hp-float 1.6s ease-in-out infinite; }
.ha-ride svg { width: 220px; display: block; overflow: visible; } .ha-ride.front { z-index: 3; } .ha-ride .js-spray, .ha-ride .js-foam { opacity: 0; transition: opacity .3s; }
.ha-ride.go .js-spray { opacity: 1; animation: spray .35s ease-in-out infinite alternate; } .ha-ride.go .js-foam { opacity: 1; animation: ha-ripple .8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spray { to { transform: translateY(-3px); opacity: .6; } }
.ha.riding .ha-sprite { left: calc(-40px + var(--ski-grip-x, 0px)); bottom: -10px; clip-path: none; animation: hp-float 1.6s ease-in-out infinite; } .ha.riding .c-legs { display: none; } .ha.riding .c-legs-sit { display: inline; }
.ha.riding .c-armL, .ha.riding .c-armR { transform-box: fill-box; transform-origin: 50% 0; }
.ha.riding .c-armL { transform: rotate(-58deg); } .ha.riding .c-armR { transform: rotate(58deg); } .ha.riding .ha-shadow, .ha.riding .ha-ripple { display: none; }
.ha.riding .ha-sprite svg.char { animation: none; transform: rotate(var(--lean, 0deg)); transform-origin: 50% 85%; } .ha.riding.walk .ha-sprite svg.char { animation: ride-lean .5s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes ride-lean { from { transform: rotate(calc(var(--lean, 0deg) - 3deg)) translateY(0); } to { transform: rotate(calc(var(--lean, 0deg) + 3deg)) translateY(-2px); } }
.hub-act.riding #hubSit { display: none; } .ride-off { background: #ff5c8a !important; }
/* the slides: up in the air along the curve, arms up */
.ha.sliding .ha-body, .ha.sliding .ha-shadow { translate: 0 calc(var(--lift, 0px) * -1); } .hov.sliding { translate: 0 calc(var(--lift, 0px) * -1); }
.ha.sliding .c-legs { display: none; } .ha.sliding .c-legs-sit { display: inline; } .ha.sliding .c-armL { transform: rotate(150deg); } .ha.sliding .c-armR { transform: rotate(-150deg); }
.ha.sliding .ha-sprite svg.char { animation: none; transform: rotate(-12deg); } .ha.sliding .ha-sprite { clip-path: none; bottom: -6px; } .ha.sliding .ha-ripple { display: none; }
/* bouncing over the inflatables */
.ha.bouncy.walk .ha-sprite svg.char { animation: bouncy .38s ease-in-out infinite; } @keyframes bouncy { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-14px) scale(.96, 1.05); } }
.ha.bouncy .ha-sprite { bottom: 4px; clip-path: none; } .ha.bouncy .ha-ripple { display: none; }
/* drowning: arms waving above the water, bobbing under and up */
.ha.drowning .c-armL { animation: flailL .4s ease-in-out infinite alternate; } .ha.drowning .c-armR { animation: flailR .4s ease-in-out infinite alternate; }
@keyframes flailL { from { transform: rotate(140deg); } to { transform: rotate(175deg); } } @keyframes flailR { from { transform: rotate(-140deg); } to { transform: rotate(-175deg); } }
.ha.drowning .ha-sprite svg.char { animation: sinkbob 1.4s ease-in-out infinite; } @keyframes sinkbob { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(16px); } }
.hov.drowning .ha-tag::after { content: '🆘'; margin-left: 4px; animation: blink 0.6s steps(2) infinite; }
.ha.drowning .ha-ring { display: block; border-color: #ff5c8a; animation: sb-ping 1.2s ease-out infinite; }
.npc-swimmer { cursor: pointer; } .npc-swimmer .ha-sprite { left: -36px; bottom: -44px; clip-path: inset(0 0 44% 0); }
.npc-swimmer .ha-ripple { display: block; animation: ha-ripple 1.8s ease-out infinite; }
.npc-swimmer .sos-pop { position: absolute; left: -12px; top: -112px; font-size: 22px; animation: hf-bob 1s ease-in-out infinite; }
.npc-swimmer.near .sos-pop::after { content: 'Tap to rescue!'; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); white-space: nowrap; font: 900 11px var(--font); color: #fff; background: #ff5c8a; padding: 2px 8px; border-radius: 10px; }
.npc-swimmer.saved { opacity: 0; transition: opacity .5s; }
/* the HUDs */
.stamina, .dash-hud, .sos-hud, .duty-hud { position: absolute; left: 50%; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 18px; background: rgba(29, 18, 64, .9); color: #fff; font-weight: 900; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); pointer-events: auto; animation: hp-in .3s var(--spring) both; }
.stamina { bottom: 86px; } .stamina[hidden], .dash-hud[hidden], .sos-hud[hidden], .duty-hud[hidden] { display: none; }
.st-bar { width: 150px; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .15); overflow: hidden; } .st-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3ee6a8, #4cc9f0); transition: width .2s linear; }
.stamina.low .st-bar i { background: linear-gradient(90deg, #ff5c8a, #ffd23f); } .stamina.low b { color: #ff8fa8; animation: blink .8s steps(2) infinite; } .stamina b { font-size: 12.5px; }
.dash-hud { top: 78px; } .dash-hud .dh-t { font-family: var(--display); font-size: 22px; min-width: 70px; text-align: center; color: #ffd23f; } .dash-hud small { color: var(--muted); }
.dash-hud.done { background: rgba(31, 138, 82, .92); } .dash-hud.fail { background: rgba(160, 40, 70, .92); }
.sos-hud { top: 40%; flex-direction: column; gap: 2px; padding: 14px 22px; background: rgba(160, 30, 60, .92); font-size: 18px; } .sos-hud small { font-weight: 800; font-size: 13px; opacity: .9; }
.duty-hud { top: 78px; padding: 8px 10px 8px 12px; } .duty-hud b { font-family: var(--display); } .duty-hud small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 800; font-size: 12px; } .duty-hud .coin { width: 14px; height: 14px; } .dt-ic { font-size: 24px; }
.sos-arrows { position: absolute; inset: 0; pointer-events: none; z-index: 7; }
.sos-arrow { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; } .sos-arrow i { font-style: normal; color: #ff5c8a; font-size: 28px; transform: rotate(var(--a)); filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); animation: hf-bob .8s ease-in-out infinite; }
.sos-arrow b { font-size: 11px; color: #fff; background: rgba(160, 30, 60, .9); padding: 2px 7px; border-radius: 9px; white-space: nowrap; }
@media (max-width: 700px) { .stamina { bottom: calc(140px + env(safe-area-inset-bottom)); } .dash-hud, .duty-hud { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* ------------------------------------------------------------------ v17: the gym's training HUD and new exercises */
.gym-hud { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 8; width: min(520px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 22px; background: rgba(29, 18, 64, .93); color: #fff; box-shadow: 0 8px 0 rgba(0, 0, 0, .28), inset 0 0 0 2px color-mix(in srgb, var(--sc) 45%, transparent); pointer-events: auto; animation: hp-in .3s var(--spring) both; display: grid; gap: 10px; }
.gym-hud[hidden] { display: none; }
.gh-top { display: flex; align-items: center; gap: 10px; } .gh-ic { font-size: 26px; } .gh-name { flex: 1; min-width: 0; } .gh-name b { font-family: var(--display); font-size: 16px; } .gh-name small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.gh-lv { display: grid; gap: 4px; justify-items: end; } .gh-lv b { font-size: 12.5px; color: var(--sc); } .gh-bar { width: 120px; height: 7px; border-radius: 5px; background: rgba(255, 255, 255, .12); overflow: hidden; } .gh-bar i { display: block; height: 100%; background: var(--sc); transition: width .4s var(--ease); }
.gh-meter { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.gh-track { position: relative; height: 26px; border-radius: 13px; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.14)); overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,.35); }
.gh-zone { position: absolute; right: 0; top: 0; bottom: 0; width: 20%; background: linear-gradient(90deg, rgba(62,230,168,.25), rgba(62,230,168,.6)); }
.gh-perfect { position: absolute; right: 0; top: 0; bottom: 0; width: 6%; background: rgba(255, 210, 63, .8); }
.gh-needle { position: absolute; top: 2px; bottom: 2px; width: 6px; margin-left: -3px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.8); }
.gh-rep { min-width: 120px; } .gh-rep kbd { font-size: 10px; opacity: .7; }
.gh-foot { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: var(--muted); } .gh-combo { color: #ffd23f; }
.gym-hud.hit .gh-track { animation: gh-hit .3s ease; } .gym-hud.perfect .gh-track { animation: gh-perfect .4s ease; } .gym-hud.miss .gh-track { animation: gh-miss .35s ease; }
@keyframes gh-hit { 50% { box-shadow: inset 0 0 0 3px #3ee6a8; } } @keyframes gh-perfect { 50% { box-shadow: inset 0 0 0 3px #ffd23f, 0 0 20px rgba(255,210,63,.6); } } @keyframes gh-miss { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (max-width: 700px) { .gym-hud { bottom: calc(76px + env(safe-area-inset-bottom)); } .gh-bar { width: 80px; } }
/* every rep: a little push from the body */
.ha-body.an-rep .ha-sprite svg.char { animation: an-rep .5s ease-out both; transform-origin: 50% 100%; } @keyframes an-rep { 40% { transform: scale(1.06, .94) translateY(-2px); } }
.ha.act-row .ha-sprite { bottom: -8px; } .ha.act-row .c-legs { display: none; } .ha.act-row .c-legs-sit { display: inline; } .ha.act-row .c-armL, .ha.act-row .c-armR { animation: c-row 1.15s ease-in-out infinite; } .ha.act-row .ha-sprite svg.char { animation: row-body 1.15s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes c-row { 0%, 100% { transform: rotate(-70deg); } 50% { transform: rotate(-15deg); } } @keyframes row-body { 0%, 100% { transform: rotate(-10deg) translateX(-4px); } 50% { transform: rotate(8deg) translateX(4px); } }
.ha.act-squat .ha-sprite svg.char { animation: squat 1.45s ease-in-out infinite; transform-origin: 50% 100%; } .ha.act-squat .c-armL { transform: rotate(160deg); } .ha.act-squat .c-armR { transform: rotate(-160deg); } @keyframes squat { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.8) translateY(4px); } }
.ha.act-kettle .c-armL, .ha.act-kettle .c-armR { animation: kettle 1.25s ease-in-out infinite; } @keyframes kettle { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(-120deg); } } .ha.act-kettle .ha-sprite svg.char { animation: squat 1.25s ease-in-out infinite; transform-origin: 50% 100%; }
.ha.act-ladder .ha-sprite svg.char { animation: ladder .35s ease-in-out infinite alternate; transform-origin: 50% 100%; } @keyframes ladder { from { transform: translate(-6px, 0); } to { transform: translate(6px, -6px); } }
.ha.act-rope .ha-sprite svg.char { animation: an-hop .3s ease-out infinite; transform-origin: 50% 100%; } .ha.act-rope .c-armL { transform: rotate(30deg); } .ha.act-rope .c-armR { transform: rotate(-30deg); }
.ha.act-rope .ha-gear { display: block; } .ha.act-rope .ha-gear i { left: -26px; top: -90px; width: 52px; height: 100px; border-radius: 50%; background: none; border: 2px solid #3ee6a8; border-top-color: transparent; transform: none; animation: rope .6s linear infinite; } @keyframes rope { from { transform: rotateX(0); } to { transform: rotateX(360deg); } }
.ha.act-dips .ha-sprite { bottom: 22px; } .ha.act-dips .ha-sprite svg.char { animation: dips 1.25s ease-in-out infinite; } .ha.act-dips .c-legs { display: none; } .ha.act-dips .c-legs-sit { display: inline; } @keyframes dips { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
.ha.act-rings .ha-sprite { bottom: 26px; } .ha.act-rings .ha-sprite svg.char { animation: act-pull 1.6s ease-in-out infinite; } .ha.act-rings .c-armL { transform: rotate(150deg); } .ha.act-rings .c-armR { transform: rotate(-150deg); }
.hprop .flywheel { animation: v17-koi 1.2s linear infinite; transform-box: fill-box; transform-origin: center; }
.skills .sk-mine { display: grid; gap: 8px; } .sk-row { display: grid; grid-template-columns: 36px 1fr 40px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.sk-ic { font-size: 26px; } .sk-row b { font-size: 15px; } .sk-row small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; } .sk-bar { height: 7px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 4px; } .sk-bar i { display: block; height: 100%; background: var(--sc); }
.sk-row em { font-style: normal; font-family: var(--display); font-size: 22px; color: var(--sc); text-align: center; }
.sk-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; } .sk-top { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); } .sk-top ol { margin: 6px 0 0; padding-left: 18px; font-weight: 800; font-size: 13px; } .sk-top li { display: flex; justify-content: space-between; } .sk-top em { font-style: normal; color: #ffd23f; }
/* ------------------------------------------------------------------ v17: watching table games */
.tg-watch { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 26px; margin: -4px 0 6px; }
.tg-eyes { display: flex; } .tg-eyes > span { margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); } .tg-eyes > span:first-child { margin-left: 0; }
.tg-watch small { font-weight: 800; color: var(--muted); font-size: 12px; }
.tg.spectating .tg-board { pointer-events: none; }
.htbadge { pointer-events: auto; cursor: pointer; } .htbadge em { font-style: normal; opacity: .85; }

/* ------------------------------------------------------------------ v17: the roulette table (one wheel, centred and grand) */
.rl2 { display: grid; gap: 14px; }
.rl2-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px) minmax(0, 1fr); gap: 22px; align-items: center; justify-content: center; padding: 18px; border-radius: 26px;
  background: radial-gradient(120% 120% at 30% 20%, #1f7a4a 0%, #11523a 55%, #0a3626 100%); box-shadow: inset 0 0 0 3px #d8a84a, inset 0 0 0 7px #5a2a12, inset 0 0 40px rgba(0,0,0,.45), 0 12px 30px rgba(0,0,0,.35); }
.rl2-wheelwrap { position: relative; justify-self: center; width: 100%; max-width: 380px; aspect-ratio: 1; }
.rl2-wheel { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 16px 34px rgba(0,0,0,.55), 0 0 0 6px rgba(216,168,74,.35); }
.rl2-glow { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,210,63,.18), transparent 70%); pointer-events: none; animation: v17-glow 3s ease-in-out infinite; }
.rl2-left, .rl2-right { display: grid; gap: 8px; align-content: center; color: #fff; min-width: 0; } .rl2-left .eyebrow, .rl2-right .eyebrow { color: rgba(255,240,200,.7); }
.rl2-right .rl-players { display: grid; gap: 6px; max-height: 190px; overflow-y: auto; } .rl2-right .cz-chips { flex-wrap: wrap; }
.rl2 .rl-phase { font-size: 18px; font-weight: 800; } .rl2 .rl-phase b { font-family: var(--display); } .rl-n { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 50%; font-size: 20px; margin-right: 6px; box-shadow: 0 0 0 3px #d8a84a; }
.rl-n.red { background: #c0281c; } .rl-n.black { background: #15151f; } .rl-n.green { background: #1f8a52; }
.rl2 .rl-hist { display: flex; flex-wrap: wrap; gap: 4px; max-height: 64px; overflow: hidden; } .rl2 .rl-hist span { width: 24px; height: 24px; font-size: 11px; }
.rl2 .rl-hist span.new { animation: hp-in .5s var(--spring) both; box-shadow: 0 0 0 2px #ffd23f; }
.rl-stats { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 12.5px; color: rgba(255,240,200,.85); flex-wrap: wrap; }
.rl-stats b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; font-size: 10.5px; color: #fff; } .rl-stats b.red, .rl-stats i.red { background: #c0281c; } .rl-stats b.black, .rl-stats i.black { background: #15151f; } .rl-stats b.green, .rl-stats i.green { background: #1f8a52; }
.rl-stats i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 3px 0 6px; vertical-align: -1px; }
@media (max-width: 980px) { .rl2-stage { grid-template-columns: 1fr; padding: 14px; } .rl2-wheelwrap { max-width: 320px; order: -1; } }

/* ------------------------------------------------------------------ v17: the library on Lantern Isle */
.cafe-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.cafe-item { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 0; border-radius: 14px; background: rgba(255,255,255,.05); color: inherit; font: inherit; cursor: pointer; animation: rise .4s var(--spring) both; animation-delay: calc(var(--i) * .03s); }
.cafe-item:hover { background: rgba(255,255,255,.1); } .ci-e { font-size: 26px; } .cafe-item b { font-size: 14px; } .cafe-item small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 800; font-size: 12px; } .cafe-item .flag-img { width: 18px; border-radius: 2px; }
.cafe-note .cn-in { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,210,63,.15), rgba(255,143,208,.1)); animation: hp-in .35s var(--spring) both; }
.cafe-note .cn-in > span { font-size: 40px; } .cafe-note p { margin: 4px 0 0; color: var(--muted); font-weight: 700; }
.shift-why { margin: 6px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(255,210,63,.12); font-weight: 700; font-size: 13.5px; }
.scope { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 18px; align-items: center; }
.scope-view { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1d2a5a, #070b22); box-shadow: 0 0 0 10px #3a2a1a, 0 0 0 13px #c99a4a, 0 18px 40px rgba(0,0,0,.5); }
.scope-view svg { width: 100%; height: 100%; display: block; } .scope-view.day { background: radial-gradient(circle at 50% 40%, #2a3a7a, #0d1640); }
.scope-star { animation: bulb 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * -.3s); } .scope-line { stroke-dasharray: 2 1.5; }
.scope-day { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 800; color: #fff; background: rgba(0,0,0,.4); padding: 3px 10px; border-radius: 10px; }
.scope-txt h3 { margin: 2px 0 6px; font-size: 22px; } .scope-txt p { color: var(--muted); font-weight: 700; margin: 0 0 12px; }
@media (max-width: 700px) { .scope { grid-template-columns: 1fr; } .scope-view { max-width: 240px; justify-self: center; } }
.ab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; } .ab-card { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.05); animation: rise .4s var(--spring) both; animation-delay: calc(var(--i) * .06s); }
.ab-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,210,63,.18); color: #ffd23f; } .ab-card small { color: var(--muted); font-weight: 700; }
.ab-more { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(62,230,168,.08); } .ab-more small { display: block; color: var(--muted); font-weight: 700; margin-top: 4px; line-height: 1.5; }
@media (max-width: 440px) { #hubCount small { display: none; } .hub-chip { padding: 0 9px; } .hub-top-l { gap: 6px; } .hub-tr .coins { font-size: 12.5px; } .hub-tr .coins .coin { width: 18px; height: 18px; } }
/* v18: jetskis nobody is riding, parked at the dock or waiting where someone hopped off (tap one to hop on) */
.ha-ski { position: absolute; left: 0; top: 0; width: 0; height: 0; cursor: pointer; }
.ha-ski svg { position: absolute; left: -110px; top: -74px; width: 220px; display: block; overflow: visible; pointer-events: none; animation: hp-float 2.2s ease-in-out infinite; }
.ha-ski::before { content: ''; position: absolute; left: -46px; top: -22px; width: 92px; height: 40px; border-radius: 50%; }
.ha-ski .js-spray { opacity: 0; } .ha-ski .js-foam { opacity: .6; }
.ha-ski.waiting svg { animation-duration: 1.7s; }
.ha-ski:hover svg { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); }
/* ===================== v18 ===================== */
/* props */
.slide-water { animation: slide-flow .9s linear infinite; } @keyframes slide-flow { to { stroke-dashoffset: -24; } }
.hp-jungletree .vine { animation: vine 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: 50% 0; } @keyframes vine { 50% { transform: rotate(4deg); } }
.hp-jungletree .parrot { animation: parrot 5s ease-in-out infinite; } @keyframes parrot { 0%, 70%, 100% { translate: 0 0; } 75% { translate: 0 -5px; } 80% { translate: 0 0; } 85% { translate: 0 -3px; } }
.hp-waterfall .fall { animation: fall .6s linear infinite; } @keyframes fall { to { stroke-dashoffset: -18; } }
.hp-waterfall .splash circle { animation: wsplash 1.1s ease-out infinite; animation-delay: calc(var(--i) * .35s); transform-box: fill-box; transform-origin: center; } @keyframes wsplash { 0% { translate: 0 0; opacity: 1; } 100% { translate: 0 -12px; opacity: 0; } }
.hp-harbourarch .pennant { animation: hp-flag 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * .2s); transform-box: fill-box; transform-origin: 50% 0; }
.lamp-glow { filter: drop-shadow(0 0 4px #ffd28a); animation: lamp-glow 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .6s); } @keyframes lamp-glow { 50% { opacity: .65; } }
.hp-lighthouse .lh-lamp { animation: lh-lamp 2.4s ease-in-out infinite; filter: drop-shadow(0 0 10px #ffe9a8); } @keyframes lh-lamp { 50% { fill: #fff8d8; } }
.hp-skullgate .gate-portal { animation: portal 4s ease-in-out infinite; } @keyframes portal { 50% { opacity: .8; } }
.hp-skullgate .gate-swirl { animation: swirl 9s linear infinite; } @keyframes swirl { to { rotate: 360deg; } }
.hp-skullgate .gate-eye { animation: gate-eye 2.2s ease-in-out infinite; filter: drop-shadow(0 0 5px #ff3a1a); } @keyframes gate-eye { 50% { fill: #ffb070; } }
.hp-skullgate .gate-runes text { animation: rune 3s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); filter: drop-shadow(0 0 4px #b388ff); } @keyframes rune { 50% { opacity: .25; } }
.hp-brazier .embers circle { animation: ember 1.6s ease-out infinite; animation-delay: calc(var(--i) * .5s); } @keyframes ember { 0% { translate: 0 0; opacity: 1; } 100% { translate: 4px -30px; opacity: 0; } }
.hp-bigrock .shimmer { animation: lamp-glow 3.6s ease-in-out infinite; }
/* the ghost ship and its fight */
.hship.ghostship { filter: drop-shadow(0 0 14px rgba(62, 230, 168, .55)) saturate(.7); opacity: .9; }
.hship.ghostship .ship-sail { opacity: .72; stroke-dasharray: 4 3; }
.hship.ghostship .ship-win { fill: #3ee6a8; filter: drop-shadow(0 0 4px #3ee6a8); }
.hship.ghostship.rising { animation: ghost-rise 4.2s cubic-bezier(.2, .7, .3, 1) both; } @keyframes ghost-rise { 0% { translate: 0 120px; opacity: 0; clip-path: inset(0 0 60% 0); } 60% { opacity: .7; } 100% { translate: 0 0; opacity: .9; clip-path: inset(0 0 0 0); } }
.hship.ghostship.sinking { animation: ghost-sink 4.8s ease-in both; } @keyframes ghost-sink { 0% { translate: 0 0; rotate: 0deg; opacity: .9; } 30% { rotate: -4deg; } 100% { translate: 20px 160px; rotate: 9deg; opacity: 0; } }
.ghost-fog { position: absolute; inset: 0; pointer-events: none; z-index: 4; background: radial-gradient(ellipse at center, rgba(10, 40, 40, .18) 30%, rgba(6, 22, 26, .6) 100%); animation: fog-in 3s ease both; }
.ghost-fog i { position: absolute; left: -20%; width: 140%; height: 30%; background: radial-gradient(ellipse at center, rgba(190, 230, 220, .22), transparent 70%); animation: gfog-drift 14s linear infinite; }
.ghost-fog i:nth-child(1) { top: 10%; } .ghost-fog i:nth-child(2) { top: 45%; animation-duration: 19s; animation-direction: reverse; } .ghost-fog i:nth-child(3) { top: 72%; animation-duration: 23s; }
@keyframes fog-in { from { opacity: 0; } } @keyframes gfog-drift { 0% { translate: -15% 0; } 50% { translate: 15% 2%; } 100% { translate: -15% 0; } }
.hub.shake .hub-world, .hub.shake .hub-sea { animation: hub-shake .5s ease-in-out 6; } .hub.shake-big .hub-world, .hub.shake-big .hub-sea { animation: hub-shake .35s ease-in-out 4; }
@keyframes hub-shake { 0%, 100% { translate: 0 0; } 25% { translate: -5px 2px; } 50% { translate: 4px -3px; } 75% { translate: -3px -2px; } }
.ghost-hud { position: absolute; left: 50%; top: 86px; translate: -50% 0; width: min(620px, calc(100% - 32px)); z-index: 30; pointer-events: none; display: grid; gap: 10px; justify-items: center; animation: hp-in .5s var(--spring) both; }
.gs-boss { width: 100%; text-align: center; } .gs-boss b { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; letter-spacing: 2px; color: #e8fff6; text-shadow: 0 0 12px rgba(62, 230, 168, .7), 0 2px 0 #000; margin-bottom: 6px; }
.gs-bar { position: relative; height: 12px; border-radius: 3px; background: rgba(8, 4, 20, .82); border: 1.5px solid rgba(200, 255, 235, .55); box-shadow: 0 0 0 3px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .45); overflow: hidden; }
.gs-bar i { position: absolute; left: 0; top: 0; bottom: 0; } .gs-lag { background: #fff; opacity: .7; } .gs-hp { background: linear-gradient(90deg, #1f8a6a, #3ee6a8 60%, #b8ffe6); box-shadow: 0 0 10px #3ee6a8; transition: width .25s; }
.gs-bar.sm { height: 8px; width: 160px; } .gs-hullv { background: linear-gradient(90deg, #c98f5a, #ffd23f); transition: width .4s; } .ghost-hud.low .gs-hullv { background: #ff5c5c; animation: lamp-glow .8s infinite; }
.gs-me { display: flex; gap: 12px; align-items: center; pointer-events: auto; background: rgba(20, 12, 44, .82); border: 1px solid rgba(255, 255, 255, .12); padding: 8px 12px; border-radius: 16px; backdrop-filter: blur(6px); }
.gs-hull { display: grid; gap: 4px; font-size: 12px; font-weight: 800; color: var(--muted); } .gs-helm { font-size: 13px; font-weight: 700; max-width: 300px; }
.gs-gun { display: flex; gap: 10px; align-items: center; }
.gs-meter { position: relative; width: 180px; height: 14px; border-radius: 8px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.gs-meter .gs-zone { position: absolute; left: 27.5%; width: 45%; top: 0; bottom: 0; background: rgba(255, 210, 63, .45); } .gs-meter .gs-crit { position: absolute; left: 47.5%; width: 5%; top: 0; bottom: 0; background: #ff5c8a; }
.gs-meter .gs-needle { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: #fff; border-radius: 2px; box-shadow: 0 0 6px #fff; }
.gs-fire { position: relative; overflow: hidden; } .gs-fire::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); transform-origin: left; transform: scaleX(var(--rl, 0)); }
.gs-fire kbd { font-size: 10px; opacity: .7; margin-left: 4px; }
.ghost-banner { position: absolute; left: 50%; top: 34%; translate: -50% 0; z-index: 31; pointer-events: none; padding: 14px 26px; border-radius: 18px; background: rgba(6, 14, 18, .78); color: #e8fff6; font-size: 18px; text-align: center; max-width: calc(100% - 32px); box-shadow: 0 0 40px rgba(62, 230, 168, .25); }
.ghost-banner.in { animation: gbanner 3.4s ease both; } @keyframes gbanner { 0% { opacity: 0; scale: .9; } 12%, 85% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
.gball { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; } .gball i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #666, #111); box-shadow: 0 0 6px rgba(0, 0, 0, .6); }
.gball.ghostly i { background: radial-gradient(circle at 35% 35%, #b8ffe6, #1f8a6a); box-shadow: 0 0 12px #3ee6a8; }
.gflash { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle, #fff 0, #ffd23f 35%, rgba(255, 92, 58, 0) 70%); pointer-events: none; animation: gflash .5s ease-out both; }
.gflash.ghostly { background: radial-gradient(circle, #fff 0, #3ee6a8 35%, rgba(62, 230, 168, 0) 70%); } @keyframes gflash { 0% { scale: .4; opacity: 1; } 100% { scale: 2; opacity: 0; } }
.gburst { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.gburst i { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, #fff, #ff9f43 45%, rgba(255, 60, 30, 0) 70%); animation: gb 0.9s ease-out both; }
.gburst i:nth-child(2) { --dx: 18px; --dy: -14px; } .gburst i:nth-child(3) { --dx: -16px; --dy: -10px; } .gburst i:nth-child(4) { --dx: 8px; --dy: 12px; } .gburst i:nth-child(5) { --dx: -6px; --dy: -24px; }
@keyframes gb { 0% { scale: .3; opacity: 1; } 100% { scale: 3; opacity: 0; translate: var(--dx, 0) var(--dy, 0); } }
.gburst.miss i { background: radial-gradient(circle, #fff, rgba(200, 244, 255, .8) 40%, rgba(76, 201, 240, 0) 70%); } .gburst.miss i:nth-child(1) { --dy: -30px; }
.gburst b { position: absolute; left: -40px; width: 80px; top: -46px; text-align: center; font-weight: 900; font-size: 18px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px #ff5c3a; animation: gbn 1.1s ease-out both; } .gburst.crit b { color: #ffd23f; font-size: 22px; }
@keyframes gbn { 0% { translate: 0 6px; opacity: 0; } 20% { opacity: 1; } 100% { translate: 0 -30px; opacity: 0; } }
.ghost-chest { position: absolute; left: 0; top: 0; width: 0; height: 0; cursor: pointer; }
.ghost-chest svg { position: absolute; left: -40px; top: -60px; animation: hp-float 2s ease-in-out infinite; overflow: visible; }
.ghost-chest b { position: absolute; left: -60px; width: 120px; top: -84px; text-align: center; font-size: 12px; font-weight: 900; color: #b8ffe6; text-shadow: 0 2px 0 #000; }
.ghost-chest.mine svg { filter: drop-shadow(0 0 10px #ffd23f); } .ghost-chest.opened svg { filter: grayscale(.6); opacity: .7; } .ghost-chest .gc-glow { animation: lamp-glow 1.6s infinite; }
.ghost-chest::before { content: ''; position: absolute; left: -45px; top: -70px; width: 90px; height: 90px; }
/* the coconut shy */
.shy-stage { position: relative; height: 210px; border-radius: 18px; background: linear-gradient(#2f9e5a, #1f6b3a 55%, #c98f5a 56%, #a06a3a); overflow: hidden; cursor: crosshair; user-select: none; }
.shy-awning { position: absolute; left: 0; right: 0; top: 0; height: 28px; background: repeating-linear-gradient(90deg, #ff5c8a 0 30px, #fff4dc 30px 60px); border-radius: 0 0 50% 50% / 0 0 30% 30%; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.shy-post { position: absolute; left: var(--x); bottom: 30px; width: 10px; margin-left: -5px; height: 80px; background: #6b4423; border-radius: 3px; }
.shy-nut { position: absolute; left: -15px; top: -30px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #a06a3a, #5a3a24); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .5s; }
.shy-nut.down { transform: translate(30px, 70px) rotate(200deg); opacity: .4; }
.shy-aim { position: absolute; bottom: 8px; width: 0; } .shy-aim i { position: absolute; left: -9px; bottom: 0; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 6px #000; }
.shy-pow { position: absolute; right: 12px; bottom: 12px; top: 40px; width: 14px; border-radius: 8px; background: rgba(0, 0, 0, .35); overflow: hidden; } .shy-pow::before { content: ''; position: absolute; left: 0; right: 0; bottom: 60%; height: 35%; background: rgba(62, 230, 168, .5); }
.shy-pow i { position: absolute; left: 0; right: 0; bottom: 0; background: #ffd23f; }
.shy-ball { position: absolute; left: var(--x); bottom: 10px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: inset -2px -2px 0 #c9c9d9; }
.shy-ball.go { animation: shy-throw .5s ease-out both; } @keyframes shy-throw { from { bottom: 10px; scale: 1.4; } to { bottom: calc(var(--h) - 40px); scale: .6; } }
.shy-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; } .shy-msg { flex: 1; text-align: center; }
.shy-balls { display: flex; gap: 4px; } .shy-balls i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .15); } .shy-balls i.on { background: #fff; }
/* the Skull Gate */
.gp-art { font-size: 64px; text-align: center; filter: drop-shadow(0 0 16px #a050ff); animation: hp-float 2.4s ease-in-out infinite; } .gp-art.locked { filter: drop-shadow(0 0 12px #ff3a1a) grayscale(.3); }
.gate-p { text-align: center; } .gate-p h3 { margin: 6px 0; font-family: Georgia, serif; letter-spacing: 1px; } .gate-p .btn { margin-top: 10px; }
.gate-p.opening { animation: gate-open .9s ease both; } @keyframes gate-open { 50% { filter: brightness(2) drop-shadow(0 0 30px #a050ff); scale: 1.05; } }
.gp-tip, .gp-wip { display: flex; gap: 10px; align-items: center; text-align: left; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(160, 80, 255, .15); font-weight: 700; font-size: 14px; }
.gate-p.open .gp-art { margin-bottom: 4px; }
@media (max-width: 720px) {
  .ghost-hud { top: 74px; } .gs-boss b { font-size: 15px; } .gs-me { flex-wrap: wrap; justify-content: center; } .gs-meter { width: 130px; } .ghost-banner { font-size: 15px; top: 28%; }
}
.hball.foot .hb-ball { width: 26px; height: 26px; }
.hball.basketball .hb-ball { width: 28px; height: 28px; filter: drop-shadow(0 3px 3px rgba(28,19,49,.35)); }
.hball.basketball.held { pointer-events: none; }
.hball.basketball.flying .hb-shadow { opacity: .4; }
.hbask-hud { position: absolute; right: 18px; bottom: 84px; z-index: 140; width: min(315px, calc(100vw - 28px)); padding: 13px 15px; border: 2px solid #ffd23f; border-radius: 17px; background: rgba(30,24,59,.94); box-shadow: 0 8px 30px rgba(17,13,38,.35); color: #fff; }
.hbask-hud[hidden] { display: none; }
.hbask-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 900; }
.hbask-top span { color: #ffd23f; font-variant-numeric: tabular-nums; }
.hbask-hud small { display: block; margin: 5px 0 10px; color: #d4cbe9; line-height: 1.3; }
.hbask-meter { position: relative; height: 16px; border-radius: 9px; background: linear-gradient(90deg,#ff7386 0%,#ffca67 30%,#63e3ac 43%,#63e3ac 57%,#ffca67 70%,#ff7386 100%); border: 2px solid #fff; }
.hbask-meter b { position: absolute; left: 50%; top: -4px; width: 2px; height: 20px; background: #fff; opacity: .8; }
.hbask-meter i { position: absolute; top: -5px; width: 4px; height: 22px; border-radius: 3px; background: #26183a; border: 1px solid #fff; transform: translateX(-50%); }
.hbask-actions { display: flex; gap: 6px; margin-top: 10px; }
.hbask-actions .btn { flex: 1; justify-content: center; padding: 8px 5px; font-size: 12px; }
@media (max-width: 700px) { .hbask-hud { right: 9px; bottom: clamp(82px, 17vh, 142px); padding: 10px 11px; } }
.hgoal { position: absolute; left: -80px; top: 0; width: 160px; text-align: center; font-weight: 900; font-size: 30px; color: #ffd23f; text-shadow: 0 3px 0 #1d1240, 0 0 14px rgba(255, 210, 63, .7); pointer-events: none; z-index: 99003; animation: hgoal 2.2s var(--spring) both; }
@keyframes hgoal { 0% { scale: .3; opacity: 0; } 15% { scale: 1.2; opacity: 1; } 30%, 80% { scale: 1; opacity: 1; } 100% { translate: 0 -30px; opacity: 0; } }
/* ---- v18 casino: All in, the grand blackjack table, higher or lower, poker ---- */
.cz-chips .cz-allin { border-radius: 999px; padding: 0 14px; height: 40px; align-self: center; font: 900 13px var(--display, inherit); letter-spacing: .5px; color: #1d1240; background: linear-gradient(135deg, #ffe58a, #ffd23f 45%, #e8a800); box-shadow: 0 3px 0 #a87b00, 0 0 0 2px rgba(255, 255, 255, .5) inset; }
.cz-chips .cz-allin.on { filter: drop-shadow(0 0 10px #ffd23f); }
/* blackjack: a leather-railed half-moon of green baize, Lena behind it with her shoe and chip tray */
.bj .bj-felt { position: relative; padding: 112px 22px 22px; border-radius: 40px 40px 220px 220px / 40px 40px 120px 120px; background: radial-gradient(ellipse at 50% 18%, #2fb877, #17784a 45%, #0d4a2c 100%);
  box-shadow: inset 0 0 0 3px #e8c06a, inset 0 0 0 12px #4a1f10, inset 0 0 0 14px #8a4a24, inset 0 18px 40px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .35); }
.bj .bj-felt::before { content: ''; position: absolute; inset: 18px; border-radius: 30px 30px 200px 200px / 30px 30px 110px 110px; border: 1.5px solid rgba(255, 235, 170, .35); pointer-events: none; }
.bj-dealer { position: absolute; left: 50%; top: -6px; translate: -50% 0; display: flex; align-items: flex-end; gap: 14px; pointer-events: none; }
.bj-lena { width: 92px; height: 110px; overflow: hidden; } .bj-lena svg { width: 92px; height: auto; display: block; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.bj-shoe { width: 46px; height: 30px; margin-bottom: 12px; border-radius: 6px 12px 4px 4px; background: linear-gradient(#3a2a5a, #1d1240); box-shadow: 0 4px 0 rgba(0, 0, 0, .3); position: relative; }
.bj-shoe i { position: absolute; right: 6px; top: 6px; width: 22px; height: 16px; border-radius: 3px; background: repeating-linear-gradient(45deg, #7a4cff 0 4px, #5a32d8 4px 8px); border: 2px solid #fff; }
.bj-tray { display: flex; gap: 2px; margin-bottom: 12px; padding: 4px 6px; border-radius: 8px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); }
.bj-tray i { width: 9px; height: 26px; border-radius: 3px; background: repeating-linear-gradient(0deg, var(--cc) 0 3px, rgba(255, 255, 255, .8) 3px 4px); }
.bj .bj-arc { font-family: Georgia, 'Times New Roman', serif; letter-spacing: 1.5px; color: #ffe9a8; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
/* higher or lower */
.hc-felt { display: grid; grid-template-columns: 90px 1fr minmax(200px, 260px); gap: 20px; align-items: center; padding: 24px; border-radius: 26px; background: radial-gradient(ellipse at 40% 40%, #2fb877, #136038 75%); box-shadow: inset 0 0 0 3px #e8c06a, inset 0 0 0 10px #4a1f10, 0 14px 30px rgba(0, 0, 0, .3); color: #fff; min-height: 220px; }
.hc-deck { position: relative; height: 120px; } .hc-deck .cz-card { position: absolute; left: 0; top: 0; } .hc-deck .cz-card:nth-child(2) { left: 3px; top: -3px; } .hc-deck .cz-card:nth-child(3) { left: 6px; top: -6px; }
.hc-deck small { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-weight: 800; opacity: .7; }
.hc-main { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 150px; }
.hc-trail { display: flex; } .hc-old { margin-left: -34px; opacity: calc(.35 + var(--i) * .12); transform: rotate(calc(-10deg + var(--i) * 2deg)) scale(.82); } .hc-old:first-child { margin-left: 0; }
.hc-now .cz-card { width: 104px; height: 148px; border-radius: 12px; } .hc-now .cz-card span { font-size: 54px; } .hc-now .cz-card b { font-size: 22px; }
.hc-now.flip .cz-card { animation: hl-flip .45s var(--spring) both; } .hc-now.right .cz-card { box-shadow: 0 0 0 4px #3ee6a8, 0 8px 22px rgba(0, 0, 0, .35); } .hc-now.wrong .cz-card { box-shadow: 0 0 0 4px #ff5c5c, 0 8px 22px rgba(0, 0, 0, .35); }
.hc-side { display: grid; gap: 12px; } .hc-side h3 { margin: 0; font-family: var(--display); } .hc-side p { margin: 0; opacity: .85; font-weight: 700; } .hc-side ul { margin: 0; padding-left: 18px; opacity: .8; font-size: 13.5px; font-weight: 700; }
.hc-pot { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; } .hc-pot small { font-weight: 800; opacity: .7; } .hc-pot b { font-family: var(--display); font-size: 34px; } .hc-pot .c { width: 22px; height: 22px; } .hc-pot em { font-style: normal; font-weight: 900; color: #ffd23f; }
.hc-streak { display: flex; gap: 4px; align-items: center; } .hc-streak i { width: 16px; height: 7px; border-radius: 3px; background: rgba(255, 255, 255, .2); } .hc-streak i.on { background: #ffd23f; box-shadow: 0 0 6px #ffd23f; } .hc-streak span { margin-left: 6px; font-weight: 800; opacity: .8; font-size: 12px; }
.hc-res { padding: 8px 12px; border-radius: 12px; font-weight: 900; } .hc-res.win { background: #ffd23f; color: #1d1240; } .hc-res.lose { background: rgba(255, 92, 92, .9); }
.hc-ctl { margin-top: 14px; } .hc-ctl .btn small { opacity: .75; margin-left: 4px; }
/* poker */
.pk-room { position: relative; padding-top: 70px; }
.pk-dealer { position: absolute; left: 50%; top: 0; translate: -50% 0; display: grid; justify-items: center; z-index: 2; pointer-events: none; }
.pk-dealer svg { width: 80px; height: auto; display: block; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); } .pk-dealer small { font-weight: 800; font-size: 11px; opacity: .7; margin-top: -4px; }
.pk-table { position: relative; height: 380px; margin: 0 56px; }
.pk-felt { position: absolute; inset: 40px 0 56px; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 8px; background: radial-gradient(ellipse at 50% 40%, #2fb877, #17784a 50%, #0d4a2c 100%);
  box-shadow: inset 0 0 0 3px #e8c06a, inset 0 0 0 16px #3a1608, inset 0 0 0 18px #8a4a24, inset 0 20px 50px rgba(0, 0, 0, .35), 0 20px 50px rgba(0, 0, 0, .4); }
.pk-felt::before { content: ''; position: absolute; inset: 26px; border-radius: 50%; border: 1.5px solid rgba(255, 235, 170, .3); pointer-events: none; }
.pk-logo { font-family: Georgia, serif; letter-spacing: 3px; font-size: 11px; color: rgba(255, 233, 168, .6); }
.pk-board { display: flex; gap: 6px; } .pk-slot .cz-card { width: 52px; height: 74px; } .pk-slot .cz-card span { font-size: 24px; } .pk-slot .cz-card b { font-size: 13px; }
.pk-pot { color: #fff; font-weight: 800; display: flex; align-items: center; gap: 6px; } .pk-pot b { font-family: var(--display); font-size: 20px; color: #ffd23f; } .pk-pot .c { width: 18px; height: 18px; }
.pk-phase { color: #e8fff6; font-size: 13px; font-weight: 800; text-align: center; max-width: 360px; }
.pk-seat { position: absolute; width: 104px; display: grid; justify-items: center; gap: 2px; color: #fff; translate: -50% -50%; z-index: 3; }
.pk-seat[style*="--i:0"] { left: 22%; top: 92%; } .pk-seat[style*="--i:1"] { left: 50%; top: 100%; } .pk-seat[style*="--i:2"] { left: 78%; top: 92%; }
.pk-seat[style*="--i:3"] { left: 100%; top: 48%; } .pk-seat[style*="--i:4"] { left: 78%; top: 6%; } .pk-seat[style*="--i:5"] { left: 0%; top: 48%; }
.pk-seat.empty { height: 74px; border: 2px dashed rgba(255, 255, 255, .25); border-radius: 18px; background: rgba(0, 0, 0, .2); place-content: center; cursor: pointer; font: inherit; color: inherit; }
.pk-seat.empty:disabled { opacity: .45; cursor: default; } .pk-seat.empty span { font-size: 18px; }
.pk-av { position: relative; padding: 3px; border-radius: 50%; background: rgba(20, 12, 44, .85); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.pk-seat.turn .pk-av { box-shadow: 0 0 0 3px #ffd23f, 0 0 18px #ffd23f; } .pk-seat.me .pk-av { background: #7a4cff; } .pk-seat.folded { opacity: .45; } .pk-seat.out { opacity: .6; }
.pk-ring { position: absolute; left: 50%; top: 0; translate: -50% -3px; width: 60px; height: 60px; rotate: -90deg; pointer-events: none; z-index: 1; }
.pk-ring circle { fill: none; stroke: #ffd23f; stroke-width: 3; stroke-dasharray: 170; stroke-dashoffset: 0; animation: pk-ring var(--ms) linear forwards; } @keyframes pk-ring { to { stroke-dashoffset: 170; } }
.pk-btn { position: absolute; right: -8px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1d1240; font-size: 10px; font-weight: 900; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.pk-seat b { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 0 #000; }
.pk-last { padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: 10.5px; font-weight: 800; text-transform: capitalize; }
.pk-last.raise, .pk-last.all { background: #ff5c8a; } .pk-last.call, .pk-last.check { background: rgba(62, 230, 168, .4); } .pk-last.fold { background: rgba(255, 255, 255, .15); }
.pk-hole { display: flex; } .pk-hole .cz-card { width: 34px; height: 48px; margin-left: -14px; border-radius: 6px; } .pk-hole .cz-card:first-child { margin-left: 0; } .pk-hole .cz-card span { font-size: 16px; } .pk-hole .cz-card b { font-size: 10px; left: 3px; top: 2px; } .pk-hole .cz-card b.br { display: none; } .pk-hole .cz-card.back i { width: 12px; height: 12px; }
.pk-hole.mine .cz-card { width: 46px; height: 64px; margin-left: -8px; } .pk-hole.mine .cz-card span { font-size: 22px; } .pk-hole.mine .cz-card b { font-size: 12px; }
.pk-best { font-size: 10.5px; font-weight: 900; color: #ffd23f; } .pk-won { font-weight: 900; color: #3ee6a8; text-shadow: 0 1px 0 #000; animation: hp-in .4s var(--spring) both; }
.pk-seat.won .pk-av { box-shadow: 0 0 0 3px #3ee6a8, 0 0 22px #3ee6a8; }
.pk-bet { position: absolute; top: 46%; display: flex; align-items: center; gap: 3px; font-weight: 900; font-size: 11px; text-shadow: 0 1px 0 #000; }
.pk-seat[style*="--i:3"] .pk-bet { right: 104%; } .pk-seat[style*="--i:5"] .pk-bet { left: 104%; } .pk-seat[style*="--i:4"] .pk-bet { top: 104%; }
.pk-seat[style*="--i:0"] .pk-bet, .pk-seat[style*="--i:1"] .pk-bet, .pk-seat[style*="--i:2"] .pk-bet { top: -22px; }
.pk-bet .cz-chip { width: 22px; height: 22px; } .pk-bet .cz-chip b { font-size: 0; }
.pk-ctl { margin-top: 18px; } .pk-me { width: 100%; text-align: center; font-weight: 700; }
.pk-raise { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; } .pk-raise input[type=range] { width: 160px; accent-color: #ff5c8a; }
.pk-step { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: inherit; font-weight: 900; cursor: pointer; }
.pk-quick { display: flex; gap: 4px; } .pk-quick button { border: 0; border-radius: 999px; padding: 4px 9px; background: rgba(255, 255, 255, .1); color: inherit; font-weight: 800; font-size: 12px; cursor: pointer; }
.pk-log { display: grid; gap: 2px; margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 720px) {
  .hc-felt { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 16px; } .hc-deck { display: none; } .hc-pot, .hc-streak { justify-content: center; }
  .bj .bj-felt { padding-top: 96px; } .bj-lena { width: 70px; height: 86px; } .bj-lena svg { width: 70px; }
  .pk-table { height: 330px; margin: 0 34px; } .pk-seat { width: 76px; } .pk-av .avatar, .pk-av img, .pk-av svg { max-width: 36px; } .pk-slot .cz-card { width: 38px; height: 54px; } .pk-slot .cz-card span { font-size: 17px; } .pk-board { gap: 3px; }
  .pk-hole.mine .cz-card { width: 36px; height: 50px; } .pk-dealer svg { width: 60px; } .pk-room { padding-top: 56px; } .pk-phase { font-size: 11.5px; max-width: 220px; }
}
/* the club's confetti and smoke */
.club-conf { position: absolute; left: 0; top: 0; width: 7px; height: 11px; border-radius: 2px; background: var(--c); pointer-events: none; z-index: 99004; animation: club-conf 2.4s cubic-bezier(.2, .6, .4, 1) var(--d) both; }
@keyframes club-conf { 0% { translate: 0 0; rotate: 0deg; opacity: 0; } 8% { opacity: 1; } 100% { translate: var(--dx) 170px; rotate: var(--r); opacity: 0; } }
.club-smoke { position: absolute; left: -60px; top: -40px; width: 120px; height: 60px; border-radius: 50%; background: radial-gradient(ellipse, rgba(230, 220, 255, .5), rgba(230, 220, 255, 0) 70%); pointer-events: none; animation: club-smoke 5.5s ease-out var(--d) both; }
@keyframes club-smoke { 0% { opacity: 0; scale: .3; } 25% { opacity: 1; } 100% { opacity: 0; scale: calc(var(--s) * 2.2); translate: 20px -30px; } }
.hub.club-fx .hprop .dancefloor { animation: hp-led .25s steps(2) 8; filter: brightness(1.7) saturate(1.7); }
.dj-fx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
/* the roulette's last spins: exactly two full rows, however wide the panel is */
.rl2 .rl-hist { display: grid; grid-template-columns: repeat(auto-fill, 24px); grid-template-rows: repeat(2, 24px); grid-auto-rows: 0; row-gap: 4px; column-gap: 4px; max-height: none; overflow: hidden; }
/* poker: more room round the table, seats sit on the rail */
.pk-table { height: 470px; margin: 0 70px; } .pk-felt { inset: 64px 70px 128px; }
.pk-seat[style*="--i:0"] { left: 25%; top: 82%; } .pk-seat[style*="--i:1"] { left: 50%; top: 86%; } .pk-seat[style*="--i:2"] { left: 75%; top: 82%; }
.pk-seat[style*="--i:3"] { left: 97%; top: 38%; } .pk-seat[style*="--i:4"] { left: 76%; top: 8%; } .pk-seat[style*="--i:5"] { left: 3%; top: 38%; }
.pk-botav { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--bc) 60%, #fff), var(--bc)); }
.pk-dealer { top: 8px; } .pk-ctl .pk-me { order: -1; }
@media (max-width: 720px) { .pk-table { height: 400px; margin: 0 40px; } .pk-felt { inset: 56px 30px 110px; } .pk-botav { width: 36px; height: 36px; font-size: 20px; } }
.ghost-hud { top: 150px; } .ghost-fog { z-index: 3; }
.gs-boss { width: min(560px, 100%); } .ghost-chest svg { scale: 1.5; transform-origin: 50% 100%; } .ghost-chest b { top: -120px; font-size: 13px; }
@media (max-width: 720px) { .ghost-hud { top: 132px; } }
/* the ghost ship looks the part: dark, washed of colour, glowing green; bigger cannonballs with a smoke trail */
.hship.ghostship { filter: brightness(.5) saturate(.35) sepia(.3) hue-rotate(95deg) drop-shadow(0 0 6px rgba(62, 230, 168, .9)) drop-shadow(0 0 22px rgba(62, 230, 168, .55)); opacity: .9; }
.hship.ghostship.rig .ship-sail { opacity: .55; }
.gball i { left: -9px; top: -9px; width: 18px; height: 18px; } .gball::after { content: ''; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 70%); }
.gball.ghostly i { box-shadow: 0 0 16px 4px #3ee6a8; }
.gflash { left: -30px; top: -30px; width: 60px; height: 60px; } .gburst i { left: -18px; top: -18px; width: 36px; height: 36px; }
@media (max-width: 720px) {
  .pk-seat.empty { width: 46px; height: 46px; border-radius: 50%; padding: 0; } .pk-seat.empty small { display: none; }
  .pk-felt { inset: 62px 34px 118px; } .pk-seat b { font-size: 10.5px; } .pk-seat { width: 84px; } .pk-logo { font-size: 9px; letter-spacing: 1.5px; }
}
@media (max-width: 720px) { .ghost-hud { top: 170px; } .gs-fire kbd { display: none; } .gs-me { padding: 6px 10px; gap: 8px; } }
/* ===================== v19 ===================== */
/* the top left: one tight cluster, the same style as the top right */
.hub-top-l { gap: 4px; padding: 5px; border-radius: 20px; background: rgba(29, 18, 64, .72); backdrop-filter: blur(8px); box-shadow: 0 4px 0 rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.hub.phone .hub-top-l { backdrop-filter: none; background: rgba(29, 18, 64, .86); }
.hub-top-l .hub-btn, .hub-top-l .hub-chip { background: transparent; box-shadow: none; height: 38px; border-radius: 14px; padding: 0 12px; }
.hub-top-l .hub-btn:hover, .hub-top-l .hub-chip:hover { background: rgba(255, 255, 255, .1); }
.hub-top-l .hub-menu { background: #ffd23f; color: #1d1240; box-shadow: 0 3px 0 #c99b00; } .hub-top-l .hub-menu:hover { background: #ffe066; }
.hub-top-l .hub-tools { gap: 2px; padding-left: 4px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 720px) { .hub-top-l { padding: 4px; border-radius: 16px; gap: 2px; } .hub-top-l .hub-btn, .hub-top-l .hub-chip { height: 34px; padding: 0 9px; } }
/* ---- items: a tile in its rarity's frame ---- */
.it-tile { --rc: #a8b3c9; position: relative; display: inline-grid; place-items: center; width: var(--sz, 58px); height: var(--sz, 58px); border-radius: 14px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 28%, #2b1d55), #1d1240 75%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 70%, transparent), 0 3px 0 rgba(0, 0, 0, .3); }
.it-tile.r-epic, .it-tile.r-legendary, .it-tile.r-mythic { box-shadow: inset 0 0 0 2px var(--rc), 0 0 14px color-mix(in srgb, var(--rc) 45%, transparent), 0 3px 0 rgba(0, 0, 0, .3); }
.it-tile.r-legendary::after, .it-tile.r-mythic::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 45%, transparent 60%); background-size: 250% 100%; animation: it-shine 3.2s linear infinite; pointer-events: none; }
@keyframes it-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.it-tile.dim { opacity: .4; filter: grayscale(.7); } .it-svg { display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.it-n { position: absolute; right: 3px; bottom: 2px; font-size: 11px; font-weight: 900; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.it-bound { position: absolute; left: 3px; top: 1px; font-size: 9px; font-style: normal; opacity: .85; }
/* ---- the inventory ---- */
.iv-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; } .iv-tabs button, .iv-filters button { border: 0; border-radius: 999px; padding: 8px 14px; background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-weight: 900; cursor: pointer; }
.iv-tabs button.on { background: #ffd23f; color: #1d1240; } .iv-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; } .iv-filters button { padding: 5px 11px; font-size: 12.5px; } .iv-filters button.on { background: rgba(255, 210, 63, .2); color: #ffd23f; }
.iv-bag { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.iv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; padding: 12px; border-radius: 18px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); max-height: 420px; overflow-y: auto; }
.iv-slot { border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; transition: transform .15s var(--spring); }
.iv.first .iv-grid { animation: rise .35s var(--spring) both; }
.iv-slot:hover { transform: translateY(-3px); } .iv-slot.sel .it-tile { outline: 3px solid #ffd23f; outline-offset: 2px; } .iv-slot.worn::after { content: 'E'; position: absolute; margin: -38px 0 0 38px; font-size: 9px; font-weight: 900; background: #3ee6a8; color: #1d1240; border-radius: 4px; padding: 0 3px; }
.iv-slot { position: relative; } .iv-slot.empty { border-radius: 14px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .06); cursor: default; animation: none; }
.iv-right { min-height: 200px; } .iv-hint { padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .04); color: var(--muted); font-weight: 700; text-align: center; }
.iv-card { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 18%, #2b1d55), #1d1240); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 50%, transparent); animation: hp-in .25s ease both; }
.iv-card > .it-tile { justify-self: center; } .iv-info { display: grid; gap: 6px; } .iv-info > b { font-size: 18px; font-family: var(--display); } .iv-meta { color: var(--muted); font-weight: 800; } .iv-meta i { font-style: normal; font-weight: 900; }
.iv-info p { margin: 0; font-weight: 700; color: rgba(255, 255, 255, .85); } .iv-eff { color: #ffd23f !important; } .iv-stats { display: flex; flex-wrap: wrap; gap: 5px; } .iv-stat { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--sc) 22%, transparent); color: var(--sc); font-weight: 900; font-size: 12px; }
.iv-trade { font-weight: 800; color: #3ee6a8; } .iv-trade.no { color: #ff8fb0; } .iv-acts { display: flex; gap: 8px; margin-top: 4px; }
.iv-doll { display: grid; grid-template-columns: 1fr 200px 1fr; gap: 12px; align-items: center; }
.iv-col { display: grid; gap: 8px; } .iv-gslot { display: flex; align-items: center; gap: 8px; border: 0; padding: 6px 10px 6px 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); color: inherit; font: inherit; font-weight: 800; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .06); }
.iv-gslot.full { background: color-mix(in srgb, var(--rc) 16%, rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 60%, transparent); } .iv-gslot small { font-size: 12px; color: var(--muted); }
.iv-ghost { width: 40px; height: 40px; border-radius: 10px; border: 2px dashed rgba(255, 255, 255, .14); } .iv-gslot svg { flex: none; }
.iv-figure { position: relative; display: grid; place-items: center; height: 300px; } .iv-figure > svg { width: 150px; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
.iv-aura { position: absolute; inset: 20px 0 30px; border-radius: 50%; background: radial-gradient(circle, rgba(179, 136, 255, .35), transparent 65%); animation: lamp-glow 3s ease-in-out infinite; }
.iv-power { position: absolute; bottom: 0; display: grid; justify-items: center; padding: 6px 16px; border-radius: 14px; background: rgba(0, 0, 0, .35); z-index: 2; } .iv-power small { font-size: 11px; font-weight: 800; color: var(--muted); } .iv-power b { font-family: var(--display); font-size: 22px; color: #ffd23f; }
.iv-statrow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; } .iv-statrow span { display: grid; justify-items: center; padding: 8px 4px; border-radius: 14px; background: color-mix(in srgb, var(--sc) 12%, transparent); } .iv-statrow i { font-style: normal; font-size: 18px; } .iv-statrow b { font-family: var(--display); font-size: 20px; color: var(--sc); } .iv-statrow small { font-size: 11px; font-weight: 800; color: var(--muted); }
.iv-stats-tab { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.iv-statbar { display: grid; grid-template-columns: 110px 1fr 30px; gap: 4px 10px; align-items: center; margin: 8px 0; font-weight: 800; } .iv-statbar > div { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; } .iv-statbar i { display: block; height: 100%; background: var(--sc); border-radius: 6px; } .iv-statbar b { color: var(--sc); } .iv-statbar small { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.iv-skill { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; margin: 7px 0; } .iv-sk-e { font-size: 20px; } .iv-skill b { font-size: 13.5px; } .iv-skill em { font-style: normal; font-weight: 900; color: var(--sc); }
.iv-sk-bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 4px; } .iv-sk-bar i { display: block; height: 100%; background: var(--sc, #3ee6a8); border-radius: 4px; }
@media (max-width: 720px) { .iv-bag, .iv-stats-tab { grid-template-columns: 1fr; } .iv-doll { grid-template-columns: 1fr; } .iv-figure { height: 220px; order: -1; } .iv-col { grid-template-columns: 1fr 1fr; } .iv-statrow { grid-template-columns: repeat(3, 1fr); } .iv-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); max-height: 300px; } }
/* ---- fishing cards ---- */
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fcard { position: relative; display: grid; gap: 6px; padding: 10px; border-radius: 16px; overflow: hidden; color: #fff; background: linear-gradient(160deg, #0a4a6a, #0c2a4a 55%, #1d1240); box-shadow: inset 0 0 0 2px rgba(122, 215, 255, .5), 0 6px 16px rgba(0, 0, 0, .35); aspect-ratio: 5 / 7; cursor: pointer; transition: transform .25s var(--spring); }
.fcard.owned { box-shadow: inset 0 0 0 2px #7ad7ff, 0 0 18px rgba(76, 201, 240, .45), 0 6px 16px rgba(0, 0, 0, .35); } .fcard.locked { filter: saturate(.55); }
.fcard:hover { transform: translateY(-4px) rotate(-1deg); } .fcard.zoom { transform: scale(1.6); z-index: 5; }
.fc-holo { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(122, 215, 255, .25) 35%, rgba(255, 143, 208, .2) 45%, rgba(255, 210, 63, .2) 55%, transparent 70%); background-size: 250% 100%; animation: it-shine 4s linear infinite; mix-blend-mode: screen; pointer-events: none; } .fcard.locked .fc-holo { display: none; }
.fc-top { display: flex; justify-content: space-between; font-size: 9px; font-weight: 900; letter-spacing: 1px; color: #7ad7ff; } .fc-no { color: rgba(255, 255, 255, .6); }
.fc-photo { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, #127a9a, #062a3a); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); }
.fc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; } .fc-sil { display: grid; place-items: center; height: 100%; opacity: .8; }
.fc-draw { position: absolute; right: -6px; bottom: -8px; padding: 2px; border-radius: 50%; background: rgba(12, 42, 74, .9); box-shadow: 0 0 0 2px #7ad7ff; transform: rotate(-8deg); } .fc-draw svg { width: 48px; height: auto; display: block; }
.fc-name b { display: block; font-family: var(--display); font-size: 14px; line-height: 1.1; } .fc-name i { font-size: 10.5px; color: #9fd8f0; }
.fc-gems { display: flex; gap: 4px; } .fc-gems span { width: 12px; height: 12px; transform: rotate(45deg); border-radius: 2px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 60%, transparent); } .fc-gems span.on { background: var(--rc); box-shadow: 0 0 6px var(--rc); }
.fc-foot { display: grid; gap: 1px; margin-top: auto; font-size: 9.5px; font-weight: 800; color: rgba(255, 255, 255, .7); }
.fcard.lg { width: 260px; margin: 0 auto; } .fcard.lg .fc-name b { font-size: 20px; } .fcard.lg .fc-draw svg { width: 74px; } .fcard.lg .fc-gems span { width: 16px; height: 16px; } .fcard.lg .fc-foot { font-size: 11.5px; }
.fc-reveal { position: relative; display: grid; gap: 14px; justify-items: center; text-align: center; font-weight: 700; } .fc-reveal .fcard { animation: fc-in 1.1s var(--spring) both; }
@keyframes fc-in { 0% { transform: rotateY(180deg) scale(.4); opacity: 0; } 60% { transform: rotateY(-10deg) scale(1.08); opacity: 1; } 100% { transform: none; } }
.fc-rays { position: absolute; inset: -40px; background: conic-gradient(from 0deg, transparent, rgba(122, 215, 255, .25), transparent 20%, rgba(255, 210, 63, .2), transparent 40%, rgba(255, 143, 208, .22), transparent 60%); animation: swirl 12s linear infinite; z-index: -1; filter: blur(4px); }
.fl-gems { display: flex; gap: 3px; justify-content: center; margin-top: 4px; } .fl-gems i { width: 8px; height: 8px; transform: rotate(45deg); border-radius: 1px; background: rgba(255, 255, 255, .12); } .fl-gems i.on { background: var(--gc); box-shadow: 0 0 4px var(--gc); }
.fl-card { position: relative; } .fl-card.carded { box-shadow: inset 0 0 0 2px #7ad7ff, 0 0 12px rgba(76, 201, 240, .35); } .fl-cardbadge { position: absolute; right: 6px; top: 4px; font-size: 14px; }
.catch.mythic .catch-rays, .catch.legendary .catch-rays { animation-duration: 6s; filter: saturate(1.6); }
/* ---- the reeling game ---- */
.reel { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle, rgba(10, 30, 60, .25), rgba(10, 20, 40, .55)); pointer-events: auto; touch-action: none; user-select: none; animation: hp-in .3s var(--spring) both; }
.rl-col { display: flex; gap: 8px; padding: 12px; border-radius: 22px; background: linear-gradient(#6b4423, #4a2e1c); box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 0 0 3px #c99a4a; }
.rl-track { position: relative; width: 64px; height: min(360px, 52vh); border-radius: 14px; overflow: hidden; background: linear-gradient(#4cc9f0, #1f6aa0 60%, #0a3a5a); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .3); }
.rl-water { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, .06) 18px 20px); animation: rl-flow 2s linear infinite; } @keyframes rl-flow { to { background-position: 0 40px; } }
.rl-zone { position: absolute; left: 4px; right: 4px; border-radius: 10px; background: rgba(62, 230, 168, .45); box-shadow: inset 0 0 0 3px #3ee6a8, 0 0 14px rgba(62, 230, 168, .6); transition: box-shadow .2s; }
.reel.in .rl-zone { background: rgba(62, 230, 168, .7); box-shadow: inset 0 0 0 3px #b8ffe6, 0 0 22px #3ee6a8; }
.rl-fish { position: absolute; left: 50%; margin-left: -14px; font-size: 26px; line-height: 28px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
.rl-meter { position: relative; width: 14px; border-radius: 8px; background: rgba(0, 0, 0, .35); overflow: hidden; } .rl-meter i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#ffd23f, #3ee6a8); transition: height .1s; }
.rl-side { display: grid; gap: 8px; max-width: 220px; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .5); } .rl-side b { font-family: var(--display); font-size: 26px; } .rl-side small { font-weight: 700; opacity: .9; }
.rl-time { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; } .rl-time i { display: block; height: 100%; background: #ffd23f; }
.reel.won .rl-col { animation: rl-won .6s var(--spring) both; } .reel.lost { animation: rl-out .5s ease both; } @keyframes rl-won { 50% { transform: scale(1.12); box-shadow: 0 0 40px #3ee6a8, inset 0 0 0 3px #c99a4a; } } @keyframes rl-out { to { opacity: 0; } }
.reel.ph { flex-direction: column; } .reel.ph .rl-side { text-align: center; }
.hf-afk { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 42px; border-radius: 14px; background: rgba(29, 18, 64, .7); color: #fff; font-weight: 900; cursor: pointer; } .hf-afk input { accent-color: #b388ff; }
.hf-wait.afk { display: grid; } .hf-wait.afk small { font-size: 11.5px; opacity: .75; } .hf-reeling { font-weight: 900; color: #fff; padding: 10px 16px; border-radius: 14px; background: rgba(29, 18, 64, .8); }
/* ---- crafting, recipes, trades ---- */
.cr-head { display: grid; grid-template-columns: 44px 1fr 160px; gap: 12px; align-items: center; margin-bottom: 14px; } .cr-e { font-size: 32px; } .cr-head small { display: block; color: var(--muted); font-weight: 800; } .cr-head .iv-sk-bar { --sc: #ffd23f; }
.cr-list { display: grid; gap: 8px; max-height: 460px; overflow-y: auto; } .cr-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); animation: rise .35s var(--spring) both; }
.cr-row.can { background: rgba(62, 230, 168, .08); box-shadow: inset 0 0 0 1.5px rgba(62, 230, 168, .3); } .cr-row.locked { opacity: .55; } .cr-mid b { display: block; } .cr-mid small { font-weight: 800; }
.cr-needs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; } .cr-needs span { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 900; } .cr-needs .ok { color: #3ee6a8; } .cr-needs .no { color: #ff8fb0; } .cr-needs svg { width: 22px; height: 22px; }
.cr-lock { font-weight: 900; color: var(--muted); } .cr-msg { margin-top: 10px; text-align: center; font-weight: 800; min-height: 20px; }
.btn.working { animation: lamp-glow .5s infinite; }
.cr-book { display: grid; gap: 16px; } .cr-bk { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); } .cr-bk span { grid-column: 2 / -1; color: var(--muted); font-size: 12px; font-weight: 700; } .cr-bk small { font-weight: 900; color: #ffd23f; }
.cr-book-intro { margin: 0; font-size: 13px; line-height: 1.45; }
.cr-book-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-book-tabs button { border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 7px 10px; background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.cr-book-tabs button.on { background: #ffd23f; border-color: #ffd23f; color: #1d1240; }
.cr-book-list { display: grid; gap: 18px; max-height: min(58vh, 560px); overflow-y: auto; padding-right: 3px; }
.cr-sec h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin: 0 0 8px; font-size: 15px; }
.cr-sec h3 small { color: var(--muted); font-size: 12px; font-weight: 700; }
.cr-book .cr-list { max-height: none; overflow: visible; }
.cr-book .cr-row { animation: none; }
.cr-book .cr-needs > span { gap: 4px; padding: 3px 6px; border-radius: 8px; background: rgba(255,255,255,.055); font-size: 11px; }
.cr-book .cr-need-name { position: static; width: auto; height: auto; overflow: visible; clip-path: none; color: var(--muted); font-size: 11px; font-weight: 700; }
.cr-book .cr-needs strong { font-size: 11px; }
@media (max-width: 700px) { .cr-book-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .cr-book-tabs button { flex: 0 0 auto; } .cr-book-list { max-height: 55vh; } .cr-book .cr-row { grid-template-columns: auto minmax(0,1fr) auto; padding: 8px; gap: 7px; } .cr-book .cr-needs { gap: 4px; } }
.tr-head { margin-bottom: 10px; } .tr-head small { display: block; } .tr-cols { display: grid; grid-template-columns: 1fr 30px 1fr; gap: 10px; align-items: start; } .tr-mid { align-self: center; text-align: center; font-size: 22px; color: #ffd23f; }
.tr-col { padding: 10px; border-radius: 16px; background: rgba(0, 0, 0, .18); } .tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; max-height: 280px; overflow-y: auto; }
.tr-it { position: relative; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; } .tr-it.on .it-tile { outline: 3px solid #ffd23f; outline-offset: 1px; } .tr-q { position: absolute; top: -4px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: #ffd23f; color: #1d1240; font-size: 11px; display: grid; place-items: center; }
.tr-foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 12px; } .tr-people { display: flex; flex-wrap: wrap; gap: 8px; } .tr-p { border: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: inherit; font: inherit; font-weight: 900; cursor: pointer; }
.tr-done { padding: 24px; text-align: center; font-weight: 800; font-size: 16px; } .tr-off { display: inline-flex; align-items: center; gap: 6px; margin: 4px; }
/* ---- the champions' cards ---- */
.champ { display: grid; grid-template-columns: 380px 1fr; gap: 20px; } .champ-art { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 2px var(--c2), 0 0 40px color-mix(in srgb, var(--c1) 50%, transparent); aspect-ratio: 420 / 520; }
.ch-splash { width: 100%; height: 100%; display: block; } .champ-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.champ-title small { font-weight: 900; letter-spacing: 1.5px; font-size: 10px; color: var(--c2); text-transform: uppercase; } .champ-title h2 { margin: 2px 0; font-family: Georgia, serif; font-size: 32px; letter-spacing: 1px; text-shadow: 0 0 18px var(--c1); } .champ-title span { font-weight: 800; color: rgba(255, 255, 255, .8); }
.champ-lore { margin: 0 0 12px; font-weight: 700; line-height: 1.5; color: rgba(255, 255, 255, .9); font-style: italic; }
.champ-skills { display: grid; gap: 8px; margin-bottom: 12px; } .champ-sk { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--c1) 22%, transparent); animation: rise .4s var(--spring) both; animation-delay: calc(var(--i) * .08s); }
.champ-sk span { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: radial-gradient(circle, color-mix(in srgb, var(--c2) 40%, #1d1240), #1d1240); box-shadow: inset 0 0 0 2px var(--c2); } .champ-sk small { display: block; color: var(--muted); font-weight: 700; }
.champ-sk.ult { box-shadow: inset 0 0 0 2px var(--c3), 0 0 16px color-mix(in srgb, var(--c3) 35%, transparent); } .champ-sk.ult span { box-shadow: inset 0 0 0 2px var(--c3), 0 0 12px var(--c3); }
.champ-gear { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; } .champ-gear span { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-weight: 800; font-size: 13px; } .champ-gear small { display: block; color: var(--c2); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.champ-stats { display: grid; gap: 4px; } .champ-stats div { display: grid; grid-template-columns: 60px 1fr 24px; gap: 8px; align-items: center; } .champ-stats small { text-transform: capitalize; font-weight: 800; color: var(--muted); } .champ-stats i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
@media (max-width: 720px) { .champ { grid-template-columns: 1fr; } .champ-title h2 { font-size: 26px; } }
/* champion art in motion */
.ch-float { animation: ch-float 3.6s ease-in-out infinite; } @keyframes ch-float { 50% { translate: 0 -6px; } }
.ch-aura { animation: lamp-glow 2.6s ease-in-out infinite; } .ch-floor { animation: lamp-glow 2s ease-in-out infinite; } .ch-core { animation: lamp-glow 1.4s ease-in-out infinite; }
.ch-mote { animation: ch-mote 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); } @keyframes ch-mote { 0% { translate: 0 10px; opacity: 0; } 30% { opacity: 1; } 100% { translate: 0 -40px; opacity: 0; } }
.ch-ring { animation: lamp-glow 2.2s ease-in-out infinite; } .ch-star { animation: lamp-glow 1.1s ease-in-out infinite; filter: drop-shadow(0 0 6px #fff); } .ch-bolt { animation: sc-flash 1.8s steps(2) infinite; }
.ch-orbit { animation: swirl 5s linear infinite; transform-box: fill-box; transform-origin: 50% 50%; } .ch-wing { animation: ch-wing 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; } @keyframes ch-wing { 50% { transform: scaleY(1.08) rotate(2deg); } }
.ch-cape { animation: ch-wing 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 80% 0; }
.sc-twinkle { animation: lamp-glow 2s ease-in-out infinite; animation-delay: calc(var(--i) * -.3s); } .sc-flash { animation: sc-flash 4s steps(1) infinite; animation-delay: calc(var(--i, 0) * .5s); } @keyframes sc-flash { 0%, 6%, 10%, 100% { opacity: 0; } 3%, 8% { opacity: 1; } }
.sc-wave { animation: sc-wave 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s); } @keyframes sc-wave { 50% { translate: -20px 6px; } } .ch-ember { animation: ch-mote 2.4s linear infinite; animation-delay: calc(var(--i) * -.33s); }
/* ---- the PCs, the spa ---- */
.pcx { text-align: center; } .pc-screen { position: relative; height: 180px; border-radius: 14px; overflow: hidden; background: linear-gradient(#1a1a34, #0c0c1e); box-shadow: inset 0 0 0 3px #2a2a44, 0 0 24px rgba(76, 201, 240, .3); margin-bottom: 12px; }
.pc-boot { position: absolute; left: 12px; top: 10px; text-align: left; font: 700 12px monospace; color: #3ee6a8; } .pc-cursor { animation: sc-flash 1s steps(1) infinite; }
.pc-mouse { position: absolute; bottom: 30px; left: 10%; font-size: 28px; animation: pc-run 4s ease-in-out infinite; } .pc-cheese { position: absolute; right: 12%; bottom: 74px; font-size: 26px; animation: hp-float 1.6s ease-in-out infinite; }
@keyframes pc-run { 0% { left: 8%; bottom: 28px; } 40% { left: 45%; bottom: 70px; } 60% { left: 62%; bottom: 70px; } 100% { left: 78%; bottom: 74px; } }
.pc-plat { position: absolute; height: 6px; width: 18%; border-radius: 3px; background: #b388ff; left: calc(var(--i) * 16%); bottom: calc(20px + (var(--i) % 3) * 22px); box-shadow: 0 0 8px #b388ff; }
.pc-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; } .pc-tags span { padding: 4px 10px; border-radius: 999px; background: rgba(76, 201, 240, .14); font-weight: 800; font-size: 12px; }
.spa-board { position: relative; height: 280px; border-radius: 20px; background: radial-gradient(circle at 50% 40%, #3ec9b0, #1f6a6a); overflow: hidden; touch-action: none; }
.spa-body { position: absolute; left: 22%; right: 22%; top: 14%; bottom: 14%; border-radius: 40% 40% 30% 30%; background: rgba(255, 228, 210, .5); }
.spa-spot { --k: 1; position: absolute; width: 46px; height: 46px; margin: -23px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); cursor: pointer; opacity: .25; transition: opacity .2s; }
.spa-spot i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #fff; transform: scale(calc(1 + var(--k) * 1.4)); opacity: calc(1 - var(--k) * .6); }
.spa-spot.live { opacity: 1; background: rgba(255, 210, 63, .55); box-shadow: 0 0 18px #ffd23f; } .spa-spot.hit { opacity: 1; background: #3ee6a8; box-shadow: 0 0 22px #3ee6a8; } .spa-spot.miss { opacity: .5; background: rgba(255, 92, 92, .5); }
.spa-msg { text-align: center; font-weight: 800; margin-top: 10px; }
/* ---- the player card: their gear beside it ---- */
.pc-gearside { position: absolute; left: calc(100% + 10px); top: 10px; width: 170px; padding: 10px; border-radius: 18px; background: rgba(20, 12, 44, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .1); animation: hp-in .3s var(--spring) both; }
.pk-gtitle { display: flex; justify-content: space-between; font-weight: 900; font-size: 12px; margin-bottom: 6px; } .pk-gtitle b { color: #ffd23f; }
.pk-gslots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; } .pk-gs { aspect-ratio: 1; border-radius: 8px; background: rgba(255, 255, 255, .05); display: grid; place-items: center; } .pk-gs.full { background: rgba(255, 210, 63, .1); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .35); }
.pk-gstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 8px; font-size: 11.5px; font-weight: 900; } .pk-gtop { display: grid; gap: 2px; margin-top: 6px; font-size: 11px; font-weight: 800; color: var(--muted); }
@media (max-width: 720px) { .pc-gearside { position: static; width: auto; margin-top: 8px; } }
/* ---- the world: pumpkins, the floatie, traders, auras, gathering, the globe, the rooms ---- */
.hpumpkin { position: absolute; left: -30px; top: -44px; cursor: pointer; } .hpumpkin svg { transform-origin: 50% 88%; animation: pk-wobble 6.4s ease-in-out infinite; } .hpumpkin.roaming svg { animation: pk-waddle .42s ease-in-out infinite alternate; } .hpumpkin:hover svg { filter: drop-shadow(0 0 8px #ffd23f); }
.hpumpkin.gold svg { filter: drop-shadow(0 0 10px #ffd23f); } .hp-sparkle { position: absolute; left: 22px; top: -6px; font-style: normal; animation: lamp-glow 1s infinite; } .hpumpkin.picked svg, .hpumpkin.picked .hp-sparkle { animation: pk-pick .5s ease-in both; }
@keyframes pk-wobble { 25% { rotate: 1deg; } 50% { rotate: -.6deg; } 75% { rotate: .8deg; } } @keyframes pk-waddle { from { transform: translateY(0) rotate(-5deg) scaleX(.96); } to { transform: translateY(-4px) rotate(5deg) scaleX(1.04); } } @keyframes pk-pick { to { transform: translateY(-40px) scale(.4); opacity: 0; } }
.hfloatie { position: absolute; left: -60px; top: -32px; cursor: pointer; z-index: 1; } .hfloatie svg { animation: hp-float 2.4s ease-in-out infinite; }
.ha.on-floatie .ha-body { translate: 0 -10px; } .ha.on-floatie .ha-ripple { display: none; }
.ha.trader::after { content: attr(data-carry); position: absolute; left: -10px; top: -96px; font-size: 18px; opacity: 0; transition: opacity .3s; } .ha.trader.carrying::after { opacity: 1; animation: hp-float 1s ease-in-out infinite; }
.ha.aura-glow .ha-body { filter: drop-shadow(0 0 10px #7ad7ff) drop-shadow(0 0 22px rgba(76, 201, 240, .6)); }
.ha.aura-ember .ha-body { filter: drop-shadow(0 0 8px #ff9f43); } .ha.aura-ember::before { content: '✦ ✧ ✦'; position: absolute; left: -24px; top: -90px; color: #ff9f43; font-size: 12px; letter-spacing: 6px; animation: ch-mote 2s linear infinite; }
.ha.aura-stars .ha-body { filter: drop-shadow(0 0 10px #b388ff); } .ha.aura-stars::before { content: '★ ✦ ★'; position: absolute; left: -26px; top: -96px; color: #e0d0ff; font-size: 12px; letter-spacing: 6px; animation: swirl 4s linear infinite; }
.hprop.gone, [data-prop].gone { opacity: 0; transition: opacity .6s; pointer-events: none; }
.hub-node-cooldown { position:absolute; left:0; top:0; z-index:65000; padding:3px 7px; border:1px solid #d8b37b; border-radius:999px; background:#1b2336dc; color:#ffe8bd; font:800 10px var(--font); box-shadow:0 3px 12px #10121daa, inset 0 0 8px #e98a4922; pointer-events:none; white-space:nowrap; translate:-50% -50%; animation:node-cool-in .3s ease-out both; }
@keyframes node-cool-in { from { opacity:0; scale:.8; } to { opacity:1; scale:1; } }
.hglobe { position: absolute; left: -110px; top: -110px; width: 220px; height: 220px; cursor: pointer; animation: hg-levitate 4s ease-in-out infinite; }
.hglobe canvas { position: absolute; inset: 0; width: 220px; height: 220px; border-radius: 50%; opacity: 0; transition: opacity .8s; } .hglobe canvas.ready { opacity: 1; }
.hg-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(179, 136, 255, .35), transparent 65%); animation: lamp-glow 3s ease-in-out infinite; pointer-events: none; z-index: -1; }
.hg-ring { position: absolute; left: -24px; right: -24px; top: 92px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 210, 63, .6); box-shadow: 0 0 16px rgba(255, 210, 63, .4); animation: hg-ring 6s linear infinite; pointer-events: none; }
.hg-label { position: absolute; left: 50%; top: -26px; translate: -50% 0; white-space: nowrap; padding: 3px 12px; border-radius: 999px; background: rgba(29, 18, 64, .8); color: #ffd23f; font-weight: 900; font-size: 12px; opacity: 0; transition: opacity .3s; } .hglobe:hover .hg-label { opacity: 1; }
@keyframes hg-levitate { 50% { translate: 0 -14px; } } @keyframes hg-ring { 0% { rotate: 0deg; } 100% { rotate: 360deg; } }
.hub.travel-fade::after { content: ''; position: absolute; inset: 0; z-index: 50; background: #0c0618; animation: travel 0.8s ease both; pointer-events: none; } @keyframes travel { 0% { opacity: 0; } 45%, 55% { opacity: 1; } 100% { opacity: 0; } }
.hub.canopy-room .hub-sea, .hub.hall-room .hub-sea { opacity: 0; transition: opacity .5s; }
.hub.canopy-room { background: radial-gradient(ellipse at 50% 30%, #9be0a8, #2f7a4a 45%, #0e3a22 100%); }
.hub.canopy-room::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 18%, rgba(255, 244, 190, .45), transparent 26%), radial-gradient(circle at 82% 12%, rgba(255, 244, 190, .32), transparent 22%), radial-gradient(ellipse 30% 22% at 8% 80%, rgba(20, 80, 40, .55), transparent 70%), radial-gradient(ellipse 34% 26% at 92% 72%, rgba(20, 80, 40, .5), transparent 70%), radial-gradient(ellipse 26% 18% at 50% 6%, rgba(30, 100, 50, .45), transparent 70%), radial-gradient(ellipse 22% 16% at 70% 94%, rgba(20, 70, 35, .5), transparent 70%); pointer-events: none; animation: canopy-light 9s ease-in-out infinite; }
@keyframes canopy-light { 50% { opacity: .82; } }
.hub.hall-room { background: radial-gradient(ellipse at 50% 20%, #2a1a5a, #0c0618 70%); } .hub.hall-room::before { content: ''; position: absolute; inset: 0; background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 70%, #d8c4ff, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent); pointer-events: none; }
/* ---- props in motion ---- */
.crag-mist ellipse { animation: gfog-drift 18s ease-in-out infinite; animation-delay: calc(var(--i) * -5s); } .crag-fall { animation: fall 1s linear infinite; stroke-dasharray: 10 8; }
.gull { animation: parrot 6s ease-in-out infinite; } .spa-steam circle, .brew-bubbles circle { animation: ember 2.4s ease-out infinite; animation-delay: calc(var(--i) * .7s); }
.tech-hammock { animation: techHammock 5.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center top; }
.tech-bubbles circle { animation: techBubble 4.8s ease-out infinite; animation-delay: calc(var(--i) * 1.4s); }
@keyframes techHammock { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes techBubble { 0% { opacity: 0; transform: translateY(5px) scale(.6); } 25% { opacity: .8; } 100% { opacity: 0; transform: translateY(-32px) scale(1.5); } }
.hprop .craft-shavings circle { animation: craftShaving 3.2s ease-out infinite; animation-delay: calc(var(--i) * .9s); }
.hprop .loom-shuttle { animation: loomShuttle 3.4s ease-in-out infinite; }
@keyframes craftShaving { 0% { opacity: 0; transform: translate(0, 2px) scale(.5); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(12px, -13px) scale(.8); } }
@keyframes loomShuttle { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(15px); } }
.hprop .ash-map-cloud { animation: ashCloud 12s ease-in-out infinite; }
.hprop .ash-map-ship { animation: ashSail 9s ease-in-out infinite; }
.hprop .ash-map-caravan { animation: ashCaravan 7s ease-in-out infinite; }
@keyframes ashCloud { 0%, 100% { translate: -5px 0; opacity: .7; } 50% { translate: 7px -2px; opacity: 1; } }
@keyframes ashSail { 0%, 100% { translate: -9px 1px; } 50% { translate: 13px -2px; } }
@keyframes ashCaravan { 0%, 100% { translate: 3px 0; } 50% { translate: -8px -1px; } }
.radio-notes { animation: ch-mote 2s linear infinite; } .radio-lcd { animation: lamp-glow 1.2s ease-in-out infinite; }
.arcane-orb { animation: lamp-glow 2s ease-in-out infinite; animation-delay: calc(var(--i) * -.3s); filter: drop-shadow(0 0 6px #b388ff); } .rune-spin { animation: swirl 40s linear infinite; }
.levitate-beam { animation: lamp-glow 3s ease-in-out infinite; } .float-book { animation: hg-levitate 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); } .sparkle { animation: lamp-glow 1.2s ease-in-out infinite; }
.crystal-float { animation: hg-levitate 2.8s ease-in-out infinite; } .mote { animation: academy-mote calc(19s + var(--mote-i) * 2s) ease-in-out infinite alternate; animation-delay: calc(var(--mote-i) * -4s); filter: drop-shadow(0 0 6px #b388ff); }
@keyframes academy-mote { 0% { translate: -34px 6px; opacity: .72; } 22% { translate: 12px -27px; opacity: 1; } 48% { translate: 54px -7px; opacity: .85; } 73% { translate: 6px 26px; opacity: 1; } 100% { translate: -27px -22px; opacity: .8; } }
.shrine-bell { animation: lantern-sw 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; } .lantern-swing { animation: lantern-sw 3.4s ease-in-out infinite; } @keyframes lantern-sw { 50% { rotate: 6deg; } }
.glowcap-glow { animation: lamp-glow 2.4s ease-in-out infinite; filter: drop-shadow(0 0 6px #7ad7ff); } .rune-glow { animation: lamp-glow 2s infinite; filter: drop-shadow(0 0 4px #b388ff); }
.led-run { animation: lamp-glow 1s steps(2) infinite; animation-delay: calc(var(--i) * .12s); } .rig-screen { animation: rig 6s linear infinite; animation-delay: calc(var(--i) * -2s); } @keyframes rig { 50% { filter: hue-rotate(90deg) brightness(1.2); } }
.rgb-strip { animation: rgb 3s linear infinite; } @keyframes rgb { 0% { stroke: #ff5c8a; } 33% { stroke: #4cc9f0; } 66% { stroke: #3ee6a8; } 100% { stroke: #ff5c8a; } }
.server-blink { animation: sc-flash 1.6s steps(1) infinite; animation-delay: calc(var(--i) * .23s); } .holo-ring { animation: hg-levitate 2s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); } .holo-float { animation: hg-levitate 3s ease-in-out infinite; }
.neon-tube { filter: drop-shadow(0 0 4px #4cc9f0); animation: lamp-glow 2.4s ease-in-out infinite; } .gem-glint { animation: lamp-glow 1.6s ease-in-out infinite; } .brew { animation: lamp-glow 1.8s ease-in-out infinite; }
.banner-wave { animation: ch-wing 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
.ha-ski svg { animation-duration: var(--bob, 2.2s) !important; animation-delay: var(--bobAt, 0s) !important; }
.hub-bag { font-size: 22px; } .snd-sub { margin: 10px 0 4px; font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); } .snd-zones { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.prof-gear .pk-gear { max-width: 420px; } .prof-gear .pk-gslots { grid-template-columns: repeat(6, 1fr); } .prof-gear .pk-gs svg { width: 34px; height: 34px; }
/* performance: zoomed out or on a struggling device, the props' little animations pause (each one repaints its whole prop) */
.hub.zoomed-out .hpw .hprop *, .hub.lowfx .hpw .hprop * { animation: none !important; }
.hub.panel-open .hpw .hprop * { animation-play-state: paused !important; }
.hub.lowfx .ha-shadow, .hub.lowfx .hg-glow { filter: none !important; } .hub.lowfx .hub-top-l, .hub.lowfx .hub-tr { backdrop-filter: none; }
/* the general goods traders */
.shp-hero { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid rgba(255,210,63,.26); border-radius: 18px; background: linear-gradient(120deg,rgba(255,210,63,.12),rgba(100,61,155,.12)); margin-bottom: 14px; }
.shp-seal { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 15px; background: rgba(255,210,63,.15); border: 1px solid rgba(255,210,63,.28); font-size: 26px; }
.shp-hero .eyebrow { color: #ffd23f; letter-spacing: .16em; }
.shp-hi { margin: 4px 0 0; font-weight: 700; font-style: italic; } .shp-list { display: grid; gap: 7px; max-height: 420px; overflow-y: auto; padding: 3px; }
.shp-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: linear-gradient(115deg,rgba(255,255,255,.075),rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.09); transition: border-color .18s, transform .18s; }
.shp-row:hover { border-color: rgba(255,210,63,.28); transform: translateY(-1px); }
@media (max-width: 600px) { .shp-row { grid-template-columns: auto 1fr auto; } .shp-row .btn:last-child:not(:nth-child(3)) { grid-column: 2 / -1; justify-self: end; } }
.ocean-life { position: absolute; width: 150px; height: 92px; pointer-events: none; opacity: 0; animation: ol-show 4.2s both; filter: drop-shadow(0 4px 5px rgba(5,53,89,.2)); }
.ocean-life svg { overflow: visible; width: 100%; height: 100%; }
.ol-ripple { transform-origin: 75px 70px; animation: ol-ripple 1.4s ease-out infinite; }
.ol-shark { transform-origin: 75px 70px; animation: ol-surface 4s ease-in-out both; }
.ol-dolphin { transform-origin: 75px 70px; animation: ol-leap 3.6s ease-in-out both; }
.ol-whale { transform-origin: 75px 70px; animation: ol-whale 4s ease-in-out both; }
.ol-spout { animation: ol-spout 4s ease-in-out both; }
.ol-fish { transform-origin: 70px 68px; animation: ol-fish 3.2s ease-in-out both; }
.ol-gull { transform-origin: 65px 40px; animation: ol-gull 3.2s ease-in-out both; }
@keyframes ol-show { 0%,100% { opacity: 0; } 13%,80% { opacity: 1; } }
@keyframes ol-ripple { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes ol-surface { 0%,100% { transform: translateY(26px) translateX(-16px); } 35%,70% { transform: translateY(0) translateX(3px); } }
@keyframes ol-leap { 0%,100% { transform: translate(-24px,35px) rotate(-16deg); } 45% { transform: translate(5px,-23px) rotate(-4deg); } 65% { transform: translate(18px,-8px) rotate(15deg); } }
@keyframes ol-whale { 0%,100% { transform: translateY(25px); } 34%,70% { transform: translateY(0); } }
@keyframes ol-spout { 0%,25%,78%,100% { opacity: 0; } 35%,65% { opacity: 1; } }
@keyframes ol-fish { 0%,100% { transform: translateY(17px) rotate(-16deg); opacity: 0; } 24%,54% { transform: translateY(-10px) rotate(10deg); opacity: 1; } 68% { opacity: 0; } }
@keyframes ol-gull { 0%,100% { transform: translate(62px,-37px) scale(.7); opacity: 0; } 30%,56% { opacity: 1; } 55% { transform: translate(0,0) scale(1); } 85% { transform: translate(-58px,-40px) scale(.7); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ocean-life, .ocean-life * { animation-duration: .01ms !important; } }
.shp-mid b { display: block; } .shp-mid small { color: var(--muted); font-weight: 800; display: inline-flex; align-items: center; gap: 4px; } .shp-mid .c, .shp-row .btn .c { width: 14px; height: 14px; }
.iv-del { margin-left: auto; } .iv-acts { flex-wrap: wrap; }
.hub-friends { display: grid; gap: 8px; }
.hub-friend { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 15px; background: rgba(255,255,255,.055); }
.hub-friend-info { min-width: 0; flex: 1; } .hub-friend-info a { color: var(--text); font-weight: 900; text-decoration: none; }
.hub-friend-info small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.hub-friend-info i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #706b82; } .hub-friend-info i.on { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.hub-friend-acts { display: flex; gap: 3px; } .hub-friend-acts button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 9px; color: var(--text); background: rgba(255,255,255,.1); cursor: pointer; }
.hub-friend-acts button:hover { background: var(--accent); color: #1d1240; }
.hub-buffs { position: relative; flex: none; z-index: 22; margin:0 8px 0 8px; }
.hub-buff-toggle { display:flex; align-items:center; gap:6px; height:38px; min-width:83px; padding:3px 9px 3px 4px; border:1px solid #a78b6677; border-radius:7px; background:linear-gradient(145deg,#3d333d,#211d2c); color:#ead5ae; box-shadow:inset 0 1px #fff2,0 3px #16151d; cursor:pointer; text-align:left; }
.hub-buff-toggle.charged { border-color:#d2ac6b; }
.hub-buff-rune { width:27px; height:27px; display:grid; place-items:center; flex:none; border:1px solid #c69d5d; border-radius:4px; background:radial-gradient(circle,#76615a,#302c3b); color:#ffdc95; font:900 20px/1 Georgia,serif; }
.hub-buff-caption { display:grid; gap:0; font:800 11px/1.1 var(--font); letter-spacing:.03em; }
.hub-buff-caption small { margin-top:2px; color:#b6a8a5; font:700 9px/1.1 var(--font); letter-spacing:0; white-space:nowrap; }
.hub-buff-pop { display:none; position:absolute; left:0; top:45px; width:min(310px,calc(100vw - 24px)); max-height:62vh; overflow:auto; padding:13px; border:2px solid #b99a69; border-radius:8px; background:linear-gradient(145deg,#302936,#191925); color:#f2e1c5; box-shadow:inset 0 0 0 2px #17151e,0 16px 35px #080811aa; }
.hub-buff-head { display:flex; align-items:center; gap:9px; padding:0 2px 10px; border-bottom:1px solid #b99a6955; }
.hub-buff-head > span { font:900 27px Georgia,serif; color:#ffd78c; }
.hub-buff-head b { display:block; font:700 17px Georgia,serif; }
.hub-buff-head small { display:block; color:#bea99b; font-size:10px; }
.hub-buffs:has(.hub-buff-toggle:focus-visible) .hub-buff-pop { display: grid; gap: 7px; animation: pd-in .2s ease both; }
.hub-buffs.hover-open .hub-buff-pop { display: grid; gap: 7px; animation: pd-in .2s ease both; }
@media (hover: none), (max-width: 700px) { .hub-buffs.mobile-open .hub-buff-pop { display: grid; gap: 7px; animation: pd-in .2s ease both; } }
.hub-buff { display:flex; align-items:center; gap:9px; padding:8px 3px; border-bottom:1px solid #b99a6933; } .hub-buff:last-child { border-bottom:0; } .hub-buff > span { width:27px; text-align:center; font-size:19px; } .hub-buff small { color:#e3d5c4; font-size:11px; line-height:1.35; }
@media (max-width: 700px) { .hub-buffs .hub-buff-pop { left:auto; right:0; } .hub-buff-toggle { min-width:36px; width:36px; padding:3px; } .hub-buff-caption { display:none; } .hub-round .hub-hud-art { width:31px; height:31px; } }
.prof-gear-doll { width:min(100%,790px); margin:auto; }
.prof-gear-doll>.eyebrow { margin:0 0 10px; }
.prof-gear-doll .iv-gslot:not([disabled]) { cursor:zoom-in; }
.prof-gear-doll .iv-gslot[disabled] { cursor:default; opacity:.8; }
.prof-gear-doll .iv-statrow { margin-top:10px; }
@media (max-height:620px) { .online-local-shell,.online-chart-wrap { height:clamp(230px,55dvh,400px); } }

.online-rewards { display: grid; gap: 16px; color: #f5e8df; }
.online-reward-hero { display: grid; grid-template-columns: 125px 1fr; align-items: center; gap: 18px; padding: 18px; border: 1px solid #ed9b6566; border-radius: 22px; background: radial-gradient(circle at 20% 50%,#dc714a55,transparent 38%),linear-gradient(125deg,#442630,#1b1529); box-shadow: inset 0 0 25px #e7814633; }
.online-reward-sigil { width: 125px; height: 125px; display: grid; place-items: center; border-radius: 20px; background: radial-gradient(circle,#a3504566,#211824); }
.online-reward-sigil svg { height: 125px; max-width: 100%; filter: drop-shadow(0 6px 8px #0a0710); }
.online-reward-hero small { color: #ffd19a; font: 900 10px var(--font); letter-spacing: .16em; }
.online-reward-hero h2 { margin: 3px 0 4px; color: #ffe0a7; font: 900 clamp(25px,3vw,38px) var(--display); }
.online-reward-hero p { margin: 0; color: #ead8d3; }
.online-reward-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.online-reward-card { min-height: 130px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 14px; border-radius: 16px; background: linear-gradient(145deg,#49313d,#2a2139); border: 1px solid #e7ad7955; }
.online-reward-card > span:first-child { font-size: 30px; line-height: 1; }
.online-reward-card b { color: #ffe1b0; font: 900 14px/1.2 var(--font); }
.online-reward-card small { color: #d7c8d3; line-height: 1.25; }
.online-reward-card.avatar-card .avatar { margin: -8px 0 4px 7px; transform: scale(.57); transform-origin: left center; height: 62px; }
.online-future-mount { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-radius: 16px; border: 1px solid #a67cbd66; background: #241b37; }
.online-future-mount > svg { width: 85px; height: 68px; flex: none; }
.online-future-mount b, .online-future-mount small { display: block; }
.online-future-mount b { color: #eac4ff; } .online-future-mount small { color: #d7c8d3; }
.online-reward-actions { display: flex; justify-content: flex-end; gap: 9px; }
@media (max-width:700px) { .online-reward-hero { grid-template-columns: 88px 1fr; padding: 10px; gap: 9px; } .online-reward-sigil,.online-reward-sigil svg { width: 88px; height: 100px; } .online-reward-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; } .online-reward-card { min-height: 113px; padding: 10px; } .online-reward-card b { font-size: 12px; } .online-reward-card small { font-size: 10px; } .online-reward-hero p { font-size: 12px; } .online-future-mount > svg { width: 60px; } .online-reward-actions { flex-wrap: wrap; } }

/* An equipment board arranged around the explorer's actual body. */
.iv-doll { display: grid; grid-template-columns: minmax(78px,1fr) minmax(160px,230px) minmax(78px,1fr); grid-template-rows: repeat(6, 55px); align-items: stretch; gap: 5px 12px; padding: 16px; border-radius: 22px; background: radial-gradient(ellipse at 50% 42%, rgba(179,136,255,.18), transparent 68%), linear-gradient(145deg, #1b1535, #301e50); box-shadow: inset 0 0 0 2px rgba(255,210,63,.14); }
.iv-doll .iv-figure { grid-column: 2; grid-row: 1 / 7; height: 100%; }
.iv-doll .iv-gslot { min-width: 0; padding: 5px; }
.iv-doll .iv-gslot small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-doll .slot-head { grid-column: 1; grid-row: 1; } .iv-doll .slot-amulet { grid-column: 3; grid-row: 1; }
.iv-doll .slot-back { grid-column: 1; grid-row: 2; } .iv-doll .slot-chest { grid-column: 3; grid-row: 2; }
.iv-doll .slot-hands { grid-column: 1; grid-row: 3; } .iv-doll .slot-weapon { grid-column: 3; grid-row: 3; }
.iv-doll .slot-ring { grid-column: 1; grid-row: 4; } .iv-doll .slot-offhand { grid-column: 3; grid-row: 4; }
.iv-doll .slot-legs { grid-column: 1; grid-row: 5; } .iv-doll .slot-rod { grid-column: 3; grid-row: 5; }
.iv-doll .slot-feet { grid-column: 1; grid-row: 6; }
.iv-gearbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.iv-gear-visibility { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 70%; }
.iv-visibility { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #8e7ca8; border-radius: 9px; background: #2b2442; color: #b9adc9; padding: 5px 7px; cursor: pointer; font: 700 10px var(--font); }
.iv-visibility.on { color: #fce3b0; border-color: #b99a60; background: #49394a; }
.iv-visibility .ico { width: 13px; height: 13px; }
.iv-visibility b { font-size: 9px; opacity: .8; }
.iv-visibility:hover { filter: brightness(1.18); }
.iv-luck-note { padding: 10px; margin: 8px 0 16px; border-radius: 12px; color: #bfffe4; background: rgba(62,230,168,.1); font-size: 12px; line-height: 1.4; }
/* Desktop equipment is a field kit: dark forged plates and a readable body silhouette. */
@media (min-width: 900px) {
  .iv-tabs { gap: 10px; margin-bottom: 18px; border-bottom: 2px solid #b99a6059; padding-bottom: 12px; }
  .iv-tabs button, .iv-filters button { border-radius: 6px; border: 1px solid #a58b634a; background: linear-gradient(#342d3d,#211d2c); color: #e3d6c2; letter-spacing: .025em; }
  .iv-tabs button.on, .iv-filters button.on { background: linear-gradient(#7a603d,#4a392c); border-color: #e5bf76; color: #fff1cc; box-shadow: inset 0 1px #ffe2a665,0 0 12px #d3a76633; }
  .iv-doll { border-radius: 8px; grid-template-columns: minmax(105px,1fr) minmax(175px,225px) minmax(105px,1fr); grid-template-rows: repeat(6, 58px); gap: 7px 14px; padding: 16px; background: radial-gradient(ellipse at 50% 55%,#6d554b58 0,transparent 43%),repeating-linear-gradient(0deg,transparent 0 36px,#d4ae7121 37px 38px),linear-gradient(135deg,#30293b,#171924 60%,#30273a); border: 3px solid #b39162; box-shadow: inset 0 0 0 3px #1a1822,inset 0 0 45px #05050dbb,0 10px 25px #05030a77; }
  .iv-doll .iv-figure { border: 1px solid #a98a665c; background: radial-gradient(ellipse at 50% 45%,#cfa66624,transparent 65%),linear-gradient(90deg,#14152199,transparent 40%,transparent 60%,#14152199); }
  .iv-doll .iv-figure > svg { width: 175px; max-width: 95%; }
  .iv-doll .iv-gslot { border-radius: 4px; border: 1px solid #aa8b665e; background: linear-gradient(145deg,#3a3440,#201e2c); box-shadow: inset 0 1px #ffffff16,inset 0 -2px #08070e75; transition: border-color .15s ease,background .15s ease,transform .15s ease; }
  .iv-doll .iv-gslot:hover { border-color: #ffdaa0; background: linear-gradient(145deg,#514351,#302735); transform: translateY(-1px); }
  .iv-doll .iv-gslot.full { border-color: color-mix(in srgb,var(--rc) 70%,#a8895c); background: linear-gradient(145deg,color-mix(in srgb,var(--rc) 19%,#302836),#1b1a28); box-shadow: inset 0 1px #ffffff22,0 0 9px color-mix(in srgb,var(--rc) 20%,transparent); }
  .iv-doll .iv-gslot small { font: 700 10px Georgia,serif; letter-spacing: .03em; color: #e8d5b4; }
  .iv-ghost { width: 37px; height: 37px; border-radius: 3px; border: 1px solid #ab8d6259; background: radial-gradient(circle,#ad98752a,#090c17a6); }
  .iv-aura { background: radial-gradient(circle,#f5c77243,transparent 65%); }
  .iv-power { border-radius: 4px 4px 0 0; border: 1px solid #b8976b; border-bottom: 0; background: #1c1b2be8; }
  .iv-statrow span { border-radius: 4px; border: 1px solid color-mix(in srgb,var(--sc) 45%,#86765b); background: linear-gradient(#3d3540,#211d2b); }
  .iv-grid { border-radius: 6px; background: linear-gradient(#181923,#292335); border: 1px solid #927756; }
  .iv-slot.empty { border-radius: 4px; background: #0a0c17a8; box-shadow: inset 0 0 0 1px #ae8e5852; }
  .iv-slot .it-tile { border-radius: 4px; }
  .iv-card,.iv-hint { border-radius: 6px; border: 1px solid #b59469; background: linear-gradient(#332b3d,#1b1b2a); }
  .iv-visibility { border-radius: 4px; }
}
@media (max-width: 720px) { .iv-doll { grid-template-columns: minmax(68px,1fr) minmax(120px,1.8fr) minmax(68px,1fr); gap: 4px; padding: 8px; } .iv-doll .iv-figure { order: 0; } .iv-doll .iv-gslot { display: grid; justify-items: center; padding: 4px; } .iv-doll .iv-gslot small { font-size: 9px; } .iv-gearbar { display: grid; } .iv-gear-visibility { justify-content: flex-start; max-width: 100%; } }
/* v19c: standing on the cloud stairs and the Champions' Terrace (raised), and seeing through big things */
.ha.lifted .ha-body, .ha.lifted .ha-shadow, .ha.lifted .ha-ring, .hov.lifted { translate: 0 calc(var(--lift, 0px) * -1); }
.ha.lifted .ha-ripple { display: none; }
.hpw { transition: opacity .35s ease; } .hpw.thru { opacity: .42; } .hpw.thru .hprop { pointer-events: none; }
.ch-runering { animation: ch-spin 14s linear infinite; transform-box: fill-box; transform-origin: 50% 50%; } @keyframes ch-spin { to { rotate: 360deg; } }
.ch-pillar { animation: ch-pillar 3.2s ease-in-out infinite; } @keyframes ch-pillar { 50% { opacity: .55; } }

/* Tech Island's shared cabinets, styled as desktop arcade windows. */
.arcade-intro { display:grid; justify-items:center; gap:12px; text-align:center; color:#ede5dc; }
.arcade-intro > small, .arcade-game small { color:#c5ad8f; font:800 11px var(--font); letter-spacing:.14em; }
.arcade-intro h2 { font:700 clamp(27px,4vw,42px) Georgia,serif; color:#ffe2ad; }
.arcade-intro p { max-width:680px; margin:0 0 8px; color:#d5cada; }
.arcade-logo { font-size:80px; color:#88e1e6; text-shadow:0 0 30px #79e6ff; }
.arcade-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; width:100%; }
.arcade-choices button { display:grid; justify-items:start; gap:9px; min-width:0; padding:20px; border:2px solid #9e8063; border-radius:8px; background:linear-gradient(145deg,#303146,#1a1d30); box-shadow:inset 0 0 0 2px #ffffff10,0 10px 26px #090a16aa; color:#f5e5d2; text-align:left; cursor:pointer; transition:transform .15s,border-color .15s; }
.arcade-choices button:hover { transform:translateY(-3px); border-color:#ffe0a4; }
.arcade-choices button b { font:700 27px Georgia,serif; }
.arcade-choices button small { font:700 14px/1.4 var(--font); letter-spacing:0; color:#d7d4e3; }
.arcade-choices button em { font:800 11px var(--font); color:#9de6df; }
.arcade-choice-art { display:flex; align-items:center; justify-content:space-between; width:100%; height:110px; padding:16px 28px; border:1px solid #d7b87688; border-radius:5px; font-size:50px; }
.arcade-choice-art i { font:900 27px var(--font); letter-spacing:.4em; }
.arcade-choice-art.pulse { background:linear-gradient(120deg,#282b54,#713f4f); color:#ffcf87; }
.arcade-choice-art.morsel { background:linear-gradient(120deg,#22484c,#4d6a50); }
.arcade-game { display:grid; gap:12px; color:#f3e5d6; }
.arcade-hud,.arcade-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.arcade-hud h2 { font:700 28px Georgia,serif; color:#ffe1a8; }
.arcade-stage { padding:8px 12px; border:1px solid #a58c67; border-radius:5px; background:#241f2f; font:800 12px var(--font); }
.arcade-game canvas { display:block; width:100%; aspect-ratio:12/5; border:3px solid #ae8c65; border-radius:7px; background:#141b39; box-shadow:inset 0 0 0 3px #171725,0 14px 35px #060916b8; }
.arcade-roster { display:flex; flex-wrap:wrap; gap:6px; flex:1; }
.arcade-roster > span { display:flex; align-items:center; gap:5px; padding:5px 8px; border:1px solid #9a876a66; border-radius:4px; background:#242434; font:800 11px var(--font); }
.arcade-roster > span.self { border-color:#f9d288; }
.arcade-roster i { width:9px; height:9px; border-radius:2px; }
.arcade-roster small { font:700 10px var(--font); color:#c7bcc6; letter-spacing:0; }
.arcade-buttons { display:flex; gap:8px; }
.arcade-help { margin:0; color:#c7c2d5; font:700 12px var(--font); }
.arcade-touch { display:none; gap:8px; }
.arcade-touch button { min-width:60px; padding:12px; border:1px solid #dfba80; border-radius:5px; background:#343048; color:#fff1c7; font-weight:900; touch-action:none; }
@media(max-width:700px) { .arcade-choices { grid-template-columns:1fr; } .arcade-choice-art { height:70px; } .arcade-game canvas { min-height:220px; } .arcade-touch { display:flex; flex-wrap:wrap; } }

@media (min-width: 2400px) {
  .hub { --hub-ui-scale: 1.16; }
  .hub-top-l, .hub-vitals { transform: scale(var(--hub-ui-scale)); transform-origin: top left; }
  .hub-vitals { top: 88px; }
  .hub-tr, .hub-side { transform: scale(var(--hub-ui-scale)); transform-origin: top right; }
  .hub-chat { transform: scale(var(--hub-ui-scale)); transform-origin: bottom left; }
  .hub-act { transform: scale(var(--hub-ui-scale)); transform-origin: bottom right; }
  .hub-context { width: 260px; font-size: 14px; }
  .hub-context button { font-size: 14px; padding: 10px; }
  .hub-panel.floating .hp-sheet { width: min(1120px, calc(100vw - 64px)); height: min(80vh, 950px); }
  .hub-panel.floating.compact .hp-sheet { width: min(760px, calc(100vw - 64px)); }
}
@media (min-width: 3000px) {
  .hub { --hub-ui-scale: 1.3; }
  .hub-vitals { top: 100px; }
}
.hub-panel[data-route="settings"] :is(.hp-body,.wrap,.settings-layout,.settings-content,.settings-main) { min-width:0; max-width:100%; }

/* Ashwatch: restrained glass glow, live practice sentinels and a desktop ability rail. */
.hprop .ash-glass { animation: ash-glass-breathe 5.8s ease-in-out infinite; animation-delay:calc(var(--i,0) * -.7s); }
@keyframes ash-glass-breathe { 50% { opacity:.52; filter:brightness(1.25); } }
.hprop .ash-sentinel { transform-origin:50% 85%; animation:ash-sentinel-idle 4.2s ease-in-out infinite; }
@keyframes ash-sentinel-idle { 50% { transform:translateY(-5px) rotate(1deg); } }
.hpw.ash-mob-dead .ash-sentinel { opacity:.14; transform:translateY(13px) scale(.87); transition:opacity .45s,transform .45s; animation:none; }
.ash-mob-bar { position:absolute; left:0; top:0; width:116px; margin-left:-58px; margin-top:-25px; display:flex; flex-direction:column; align-items:center; gap:2px; color:#ffe9ca; text-align:center; pointer-events:none; text-shadow:0 1px 3px #000; font:800 9px/1.1 var(--font); letter-spacing:.06em; }
.ash-mob-bar b { white-space:nowrap; }
.ash-mob-meter { display:block; width:100%; height:8px; border:1px solid #c39469; border-radius:4px; background:#241922; box-shadow:0 2px 5px #0d0a19; overflow:hidden; }
.ash-mob-meter i { display:block; height:100%; background:linear-gradient(90deg,#7c2938,#e16f55,#ffc889); transition:width .3s ease; }
.ash-mob-bar small { font:700 9px/1 var(--font); color:#e8d1b1; }
.ash-mob-bar.dead .ash-mob-meter i { width:0!important; }
.ash-damage { position:absolute; left:0; top:0; color:var(--hit); font:900 22px/1 var(--display); text-shadow:0 2px 3px #1c122a,0 0 14px var(--hit); pointer-events:none; animation:ash-damage-float .9s ease-out both; }
@keyframes ash-damage-float { to { translate:0 -46px; opacity:0; } }
.ash-ability-fx { position:absolute; left:0; top:0; z-index:18001; width:80px; height:36px; margin:-18px 0 0 -40px; border:3px solid var(--ash-fx); border-radius:50%; box-shadow:0 0 9px var(--ash-fx),inset 0 0 11px var(--ash-fx); pointer-events:none; animation:ash-ability-pulse .7s ease-out both; }
.ash-ability-fx::before,.ash-ability-fx::after { content:'✦'; position:absolute; color:var(--ash-fx); text-shadow:0 0 9px currentColor; animation:ash-rune-spark .9s ease-out both; }
.ash-ability-fx::before { left:-11px; top:2px; } .ash-ability-fx::after { right:-11px; bottom:2px; animation-delay:.08s; }
.ash-fx-e { width:115px; height:48px; margin:-24px 0 0 -57px; border-width:5px; animation-duration:.8s; }
.ash-fx-shift { width:134px; height:60px; margin:-30px 0 0 -67px; border-style:dashed; animation:ash-ability-spin .95s ease-out both; }
.ash-fx-space { width:175px; height:75px; margin:-37px 0 0 -87px; border-width:6px; animation:ash-ability-pulse 1.05s ease-out both; }
@keyframes ash-ability-pulse { from { scale:.25; opacity:.95; } to { scale:1.25; opacity:0; } }
@keyframes ash-ability-spin { from { rotate:-75deg; scale:.3; opacity:.95; } to { rotate:125deg; scale:1.18; opacity:0; } }
@keyframes ash-rune-spark { to { translate:0 -24px; opacity:0; } }
.ash-training-bar { position:absolute; z-index:12; left:calc(50% + 90px); bottom:17px; transform:translateX(-50%); width:min(720px,calc(100vw - 710px)); padding:7px 10px 9px; color:#ffead1; border:2px solid #b7825c; border-radius:10px; background:linear-gradient(125deg,#372536ed,#171b2bf5 60%,#402a31f2); box-shadow:0 9px 25px #100c21aa,inset 0 0 0 1px #e0b78255; pointer-events:auto; animation:pd-in .28s ease both; }
.ash-training-bar[hidden] { display:none; }
.ash-training-head { display:flex; align-items:center; gap:7px; padding:1px 3px 7px; }
.ash-training-head>span { font-size:20px; }
.ash-training-head div { flex:1; } .ash-training-head b { display:block; font:900 13px/1.1 var(--display); } .ash-training-head small { display:block; margin-top:2px; color:#d5ae82; font:800 8px var(--font); letter-spacing:.14em; }
.ash-training-head button { border:0; background:transparent; color:#e8c7ac; font-size:20px; cursor:pointer; }
.ash-ability-row { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
.ash-ability-row button { position:relative; display:flex; align-items:center; gap:5px; min-width:0; min-height:49px; padding:6px; text-align:left; color:#ffe9cf; border:1px solid #a8755d; border-radius:6px; background:linear-gradient(135deg,#5f3d46,#2b2639); cursor:pointer; transition:transform .18s,box-shadow .18s,border-color .18s; }
.ash-ability-row button:hover { transform:translateY(-3px); border-color:var(--ash-weapon-color); box-shadow:0 0 14px var(--ash-weapon-color); }
.ash-ability-row kbd,.ash-ability-row .ash-base>b { display:grid; flex:none; place-items:center; width:27px; height:29px; border:1px solid #e4b88b; border-radius:4px; background:#211a29; color:var(--ash-weapon-color); font:900 13px var(--font); }
.ash-ability-row span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:800 10px/1.1 var(--font); }
.ash-ability-row small { display:block; overflow:hidden; text-overflow:ellipsis; margin-top:3px; color:#c9ae9c; font:700 9px/1.1 var(--font); }
.ash-ability-row i { position:absolute; right:3px; top:3px; display:grid; place-items:center; min-width:31px; padding:2px 3px; border:1px solid #d3ad7777; border-radius:4px; background:#171523ee; color:#fff2d6; font:900 10px var(--font); box-shadow:0 1px 4px #100d18aa; }
.ash-ability-row i:empty { display:none; }
/* Hub notices sit with the other quick controls, clear of the top navigation. */
body.in-hub #toasts { top:auto; left:auto; right:16px; bottom:112px; width:min(355px,calc(100vw - 32px)); transform:none; justify-items:stretch; }
body.in-hub #toasts .toast { max-width:100%; border:1px solid #b98b5d; border-radius:11px; background:linear-gradient(145deg,#30253cf5,#1a1b2df7); box-shadow:0 9px 24px #0e0d20a8,inset 0 0 0 1px #ffe2a322; color:#f7e9d5; }
body.in-hub #toasts .toast .ic { border:1px solid #d7aa7180; border-radius:8px; background:#53394d; color:#f5c67e; }
body.in-hub #toasts .toast.ach .ic { color:#70e2a6; }
body.in-hub #toasts .toast.bad .ic { color:#ff8e95; }
body.in-hub #toasts .toast { animation:hub-toast-in .36s var(--spring) both; }
body.in-hub #toasts .toast.out { animation:hub-toast-out .28s ease both; }
@keyframes hub-toast-in { from { opacity:0; transform:translateY(16px) scale(.96); } }
@keyframes hub-toast-out { to { opacity:0; transform:translateY(10px); } }
/* Fishing uses the same framed desktop controls as the Hub's other panels. */
.hub-fish { display:flex; flex-direction:column; align-items:stretch; width:min(430px,calc(100vw - 30px)); padding:0; gap:0; white-space:normal; overflow:hidden; border:2px solid #bd8a60; border-radius:12px; background:linear-gradient(145deg,#30243df5,#171b2cf7); color:#f6e7d2; box-shadow:0 12px 30px #0c1020b5,inset 0 0 0 1px #ffe0ae2b; }
.hf-head { display:flex; align-items:center; gap:10px; padding:9px 11px; border-bottom:1px solid #c190616b; background:linear-gradient(90deg,#5b3d51b0,#2a273b7a); }
.hf-head-icon { display:grid; place-items:center; flex:none; width:34px; height:34px; border:1px solid #e1b0799c; border-radius:8px; background:#281e32; font-size:19px; }
.hf-head>div { flex:1; min-width:0; } .hf-head b { display:block; font:900 15px/1.1 var(--display); } .hf-head small { display:block; margin-top:3px; color:#dcb58d; font:700 10px var(--font); }
.hf-close { display:grid; place-items:center; flex:none; width:27px; height:27px; border:1px solid #b98b68; border-radius:6px; background:#241c30; color:#f3d5b2; cursor:pointer; }
.hf-close .ico { width:15px; height:15px; }
.hf-controls { display:flex; gap:8px; padding:11px 11px 7px; } .hf-controls .btn:first-child { flex:1; } .hf-controls .btn { min-height:37px; border-radius:7px; }
.hf-controls kbd { min-width:19px; height:18px; margin-left:5px; font-size:10px; }
.hf-afk { display:flex; align-items:center; gap:10px; height:auto; min-height:56px; margin:0 11px 11px; padding:8px 10px; border:1px solid #a981686b; border-radius:8px; background:#1d2030c9; color:#f8e7d1; font-weight:700; }
.hf-afk input { position:absolute; width:1px; height:1px; opacity:0; } .hf-afk>span:last-child { flex:1; min-width:0; } .hf-afk b { display:block; font-size:12px; } .hf-afk small { display:block; margin-top:2px; color:#c9ae9c; font:600 10px/1.25 var(--font); }
.hf-switch { display:block; flex:none; width:34px; height:19px; padding:2px; border:1px solid #ad917a; border-radius:20px; background:#5d5260; transition:background .2s; }
.hf-switch i { display:block; width:13px; height:13px; border-radius:50%; background:#f1e4d1; transition:transform .2s; }
.hf-afk input:checked + .hf-switch { background:#b68453; } .hf-afk input:checked + .hf-switch i { transform:translateX(14px); background:#fff3ce; }
.hf-afk:focus-within { outline:2px solid #f2cb87; outline-offset:2px; }
.hf-status { display:flex; align-items:center; gap:12px; padding:17px 14px 19px; } .hf-status b { display:block; font:900 13px var(--display); } .hf-status small { display:block; margin-top:4px; color:#d2bca6; font:700 11px var(--font); }
.hub-fish .hf-reeling { margin:12px; border:1px solid #be805f; border-radius:7px; background:#522f43; }
.hub-chat .hc-log { display:block; overflow-y:auto; overscroll-behavior:contain; scrollbar-color:#bc8c61 #211b31; }
.hub-chat .hc-log .hcl + .hcl { margin-top:3px; }
@media(max-width:700px) { body.in-hub #toasts { bottom:146px; right:8px; width:min(310px,calc(100vw - 16px)); } .hub-fish { bottom:calc(80px + env(safe-area-inset-bottom)); } }
.ash-armory-menu>p { margin:0 0 16px; color:#e7d4c0; line-height:1.55; }
.ash-armory-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.ash-armory-grid button { display:flex; flex-direction:column; align-items:center; gap:7px; padding:14px 9px; color:#f9e4c7; background:linear-gradient(145deg,#50313f,#1b1d30); border:2px solid #9e705b; border-radius:8px; cursor:pointer; transition:transform .2s,border-color .2s,box-shadow .2s; }
.ash-armory-grid button:hover { transform:translateY(-5px); border-color:var(--ash-weapon-color); box-shadow:0 8px 19px #130e24,0 0 18px var(--ash-weapon-color); }
.ash-armory-art { display:grid; place-items:center; height:82px; }
.ash-armory-art { width:100%; height:158px; border:1px solid #d9ac7466; border-radius:7px; background:radial-gradient(ellipse at 50% 52%, color-mix(in srgb,var(--ash-weapon-color) 22%,transparent),transparent 62%),linear-gradient(145deg,#342736,#191b2c); box-shadow:inset 0 0 22px #0b0c20,0 4px 10px #08091377; overflow:hidden; }
.ash-weapon-preview { width:116px; height:151px; overflow:visible; color:var(--ash-weapon-color); filter:drop-shadow(0 0 8px var(--ash-weapon-color)); transition:transform .28s ease,filter .28s ease; }
.ash-armory-grid button:hover .ash-weapon-preview,.ash-armory-grid button:focus-visible .ash-weapon-preview { transform:translateY(-5px) scale(1.1); filter:drop-shadow(0 0 16px var(--ash-weapon-color)); }
.ash-armory-choose { margin-top:auto; padding:6px 10px; border:1px solid var(--ash-weapon-color); border-radius:4px; color:#ffe9cc; background:#161522bb; font:800 10px var(--font); letter-spacing:.04em; }
.ash-weapon-preview .weapon-core,.gear-weapon-epic .weapon-core { filter:drop-shadow(0 0 4px var(--weapon-glow,#ffc486)); animation:ash-weapon-core 2.8s ease-in-out infinite; }
.ash-weapon-preview .weapon-flame,.gear-weapon-epic .weapon-flame { transform-box:fill-box;transform-origin:bottom;animation:ash-weapon-flame 2.5s ease-in-out infinite; }
.ash-weapon-preview .weapon-mote,.gear-weapon-epic .weapon-mote { animation:ash-weapon-mote 3.2s ease-in-out infinite; }
@keyframes ash-weapon-core { 50% { opacity:.58; } }
@keyframes ash-weapon-flame { 50% { transform:scale(.84,1.12) rotate(3deg);opacity:.76; } }
@keyframes ash-weapon-mote { 50% { opacity:.36;transform:translateY(-5px); } }
.ha.ash-casting-q .gear-weapon.drawn .weapon-art { animation:ash-weapon-cut .72s cubic-bezier(.18,.8,.2,1) both; }
.ha.ash-casting-e .gear-weapon.drawn .weapon-art { animation:ash-weapon-drive .85s cubic-bezier(.2,.8,.2,1) both; }
.ha.ash-casting-shift .gear-weapon.drawn .weapon-art { animation:ash-weapon-spin .9s cubic-bezier(.16,.8,.25,1) both; }
.ha.ash-casting-space .gear-weapon.drawn .weapon-art { animation:ash-weapon-ultimate 1.1s cubic-bezier(.15,.75,.25,1) both; }
@keyframes ash-weapon-cut { 35% { transform:rotate(-25deg) translateY(-6px); } 70% { transform:rotate(24deg) translateY(5px); } }
@keyframes ash-weapon-drive { 32% { transform:translateY(-15px) scale(1.08); } 67% { transform:translateY(9px) scale(.98); } }
@keyframes ash-weapon-spin { 40% { transform:rotate(-35deg) scale(1.07); } 74% { transform:rotate(38deg) scale(1.05); } }
@keyframes ash-weapon-ultimate { 30% { transform:translateY(-19px) scale(1.16);filter:drop-shadow(0 0 12px var(--weapon-glow)); } 64% { transform:translateY(8px) scale(1.08);filter:drop-shadow(0 0 18px var(--weapon-glow)); } }
.ash-combat-fx { position:absolute;left:0;top:0;z-index:18001;width:220px;height:180px;margin:-90px 0 0 -110px;pointer-events:none;color:var(--ash-fx);filter:drop-shadow(0 0 10px var(--ash-fx));animation:ash-impact-fade .95s ease-out both; }
.ash-combat-fx svg { display:block;width:100%;height:100%;overflow:visible;transform-origin:center;animation:ash-impact-scale .95s cubic-bezier(.12,.67,.2,1) both; }
.ash-combat-fx.ash-cast-space,.ash-combat-fx.ash-cast-space svg { animation-duration:2.05s; }
.ash-combat-fx.ash-cast-shift,.ash-combat-fx.ash-cast-shift svg { animation-duration:1.12s; }
.ash-fx-stroke { fill:none;stroke:var(--ash-fx);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:500;stroke-dashoffset:500;animation:ash-trace .68s ease-out forwards; }
.ash-fx-ring { fill:none;stroke:var(--ash-fx);stroke-width:2.6;stroke-dasharray:7 5;opacity:.8;transform-box:fill-box;transform-origin:center;animation:ash-ring .9s ease-out both; }
.ash-fx-ember { fill:#f66e40;stroke:#ffe0a0;stroke-width:2;opacity:.86; }
.ash-fx-shard { fill:#5d4853;stroke:#f7d0a0;stroke-width:3; }
.ash-fx-leaf { fill:#78a65f;stroke:#e3f4ad;stroke-width:2; }
.ash-fx-wave { fill:#418da9;stroke:#b8f2f1;stroke-width:2;opacity:.88; }
.ash-fx-pearl { fill:#d8ffff;stroke:#81dfe9;stroke-width:3; }
.ash-fx-spark { fill:#fff4c9;animation:ash-spark .72s ease-out var(--delay) both; }
.ash-cast-space .ash-fx-ring { stroke-width:3.5;animation-duration:1.2s; }
.ash-cast-shift .ash-fx-spin { transform-box:fill-box;transform-origin:center;animation:ash-trace .68s ease-out forwards,ash-spin .92s ease-out both; }
@keyframes ash-impact-fade { 0% { opacity:0; } 20% { opacity:1; } 62% { opacity:.94; } 100% { opacity:0; } }
@keyframes ash-impact-scale { 0% { transform:scale(.26); } 20% { transform:scale(1.08); } 62% { transform:scale(1); } 100% { transform:scale(1.35); } }
@keyframes ash-trace { to { stroke-dashoffset:0; } }
@keyframes ash-ring { from { opacity:.9;scale:.28; } to { opacity:0;scale:1.55; } }
@keyframes ash-spark { from { opacity:1;translate:0 0;scale:.35; } to { opacity:0;translate:var(--dx) var(--dy);scale:1.25; } }
@keyframes ash-spin { from { rotate:-35deg; } to { rotate:105deg; } }
.ash-screen-flash { position:absolute;inset:0;z-index:13;pointer-events:none;background:radial-gradient(circle at 50% 55%,#ffcb8755,transparent 55%);animation:ash-screen-flare .75s ease-out both; }
@keyframes ash-screen-flare { from { opacity:0; } 25% { opacity:1; } to { opacity:0; } }

/* Ashwatch combat: illustrated circular ability seals and readable impact feedback. */
.ash-training-bar { width:min(790px,calc(100vw - 690px)); padding:9px 12px 11px; }
.ash-ability-row { grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.ash-ability-row button { display:grid; justify-items:center; align-content:start; gap:3px; min-height:103px; padding:7px 4px 5px; border-radius:12px; text-align:center; background:radial-gradient(circle at 50% 10%,color-mix(in srgb,var(--ash-weapon-color) 16%,#332637),#1b1b2a 75%); }
.ash-ability-row button:disabled { cursor:default; }
.ash-ability-row .ash-orb { position:relative;display:grid;place-items:center;width:55px;height:55px;min-width:55px;overflow:visible;border:3px solid var(--ash-weapon-color);border-radius:50%;background:radial-gradient(circle at 40% 32%,#5f4858,#211d32 70%);box-shadow:inset 0 0 0 2px #ffffff2b,0 0 13px color-mix(in srgb,var(--ash-weapon-color) 45%,transparent); }
.ash-ability-row .ash-orb::before { content:'';position:absolute;inset:-6px;border:2px solid #e8be86a8;border-radius:50%;opacity:.7; }
.ash-ability-row .ash-orb em { font-style:normal;font-size:26px;line-height:1;filter:drop-shadow(0 2px 3px #080913); }
.ash-ability-row .ash-orb kbd { position:absolute;right:-8px;bottom:-5px;width:auto;min-width:24px;height:19px;padding:1px 3px;border-radius:6px;font-size:10px;z-index:2; }
.ash-ability-row .ash-orb i { position:absolute;inset:-3px;display:grid;place-items:center;min-width:0;padding:0;border:0;border-radius:50%;background:conic-gradient(#15141ddc var(--cool,0%),transparent var(--cool,0%));font-size:11px;letter-spacing:.02em;text-shadow:0 1px 4px #000; }
.ash-ability-row .ash-orb i:empty { display:block; }
.ash-ability-row .ash-skill-name { display:block;min-height:14px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffead1;font:900 10px/1.1 var(--display); }
.ash-ability-row button>small { color:#e4c89e;font:700 9px/1.1 var(--font);white-space:nowrap; }
.ash-ability-row button.cooling .ash-orb { filter:saturate(.45); }
.ash-ability-row button.drained .ash-orb { filter:grayscale(.7);opacity:.65; }
.ash-ability-row button.charging .ash-orb { animation:ash-orb-channel 1.4s ease-out both; }
.ash-ability-row button.charging .ash-orb::before { border-style:dashed;animation:ash-charge-orbit 1.4s linear infinite; }
@keyframes ash-orb-channel { to {box-shadow:inset 0 0 0 3px #fff8c488,0 0 26px var(--ash-weapon-color);transform:scale(1.12);} }
@keyframes ash-charge-orbit { to {transform:rotate(360deg);} }
.ash-damage {display:grid;justify-items:center;gap:2px;white-space:nowrap;text-align:center;min-width:82px;margin-left:-41px;font-size:22px;}
.ash-damage strong {font:900 24px/1 var(--display);letter-spacing:.02em;}
.ash-damage small {padding:3px 5px;border:1px solid #d4a875a8;border-radius:4px;background:#261d2ad9;color:#ffdfae;font:900 9px/1 var(--font);letter-spacing:.06em;}
.ash-damage.crit strong {font-size:32px;color:#fff1aa;text-shadow:0 0 8px #ff9b46,0 0 22px #ffdd62,0 2px 3px #140b1a;}
.ash-damage.crit small {color:#fff7c7;border-color:#ffda74;background:#68402fe8;}
.ash-combat-fx {width:250px;height:235px;margin:-145px 0 0 -125px;}
.ash-combat-fx.ash-charged { filter:drop-shadow(0 0 18px var(--ash-fx)); }
.ash-fx-cracks {fill:none;stroke:#ffd695;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:320;stroke-dashoffset:320;filter:drop-shadow(0 0 5px #ff6d38);animation:ash-cracks 1.75s .12s ease-out forwards;}
.ash-fx-smoke {fill:#6e5962;opacity:0;transform-origin:center;animation:ash-smoke 1.15s .13s ease-out both;}
.ash-fx-meteor {transform:translateY(-120px) scale(.62);transform-origin:0 -75px;animation:ash-meteor-fall .52s cubic-bezier(.72,.05,.95,.32) both;filter:drop-shadow(0 0 12px #ff874c);}
.ash-fx-blast {fill:var(--ash-fx);opacity:0;transform-origin:0 7px;filter:drop-shadow(0 0 17px var(--ash-fx));animation:ash-blast 2.05s ease-out both;}
.ash-fx-blast-core {fill:#fff2c5;opacity:0;transform-origin:0 7px;filter:drop-shadow(0 0 14px #fff0ab);animation:ash-blast-core 2.05s ease-out both;}
.ash-fx-blast-rays {fill:none;stroke:var(--ash-fx);stroke-width:7;stroke-linecap:round;filter:drop-shadow(0 0 8px var(--ash-fx));opacity:0;animation:ash-blast-rays 2.05s ease-out both;}
.ash-cast-space.ash-discipline-shellhammer .ash-fx-shard {fill:#8e5d50;stroke:#ffe5a2;filter:drop-shadow(0 0 8px #ffc974);}
.ash-cast-space .ash-fx-ring {animation-duration:1.28s;}
@keyframes ash-cracks {35%{stroke-dashoffset:0;opacity:1;}to{stroke-dashoffset:0;opacity:0;}}
@keyframes ash-smoke {25%{opacity:.7;transform:scale(.8);}to{opacity:0;transform:translateY(-42px) scale(1.7);}}
@keyframes ash-meteor-fall {to{transform:translateY(76px) scale(1);opacity:0;}}
@keyframes ash-blast {0%{opacity:0;transform:scale(.18);}16%{opacity:.72;transform:scale(.9);}70%{opacity:.5;transform:scale(1.14);}100%{opacity:0;transform:scale(1.6);}}
@keyframes ash-blast-core {0%{opacity:0;transform:scale(.1);}16%{opacity:.86;transform:scale(1);}70%{opacity:.45;transform:scale(.95);}100%{opacity:0;transform:scale(1.4);}}
@keyframes ash-blast-rays {0%{opacity:0;}18%{opacity:1;}70%{opacity:.75;}100%{opacity:0;}}
.ha.ash-channeling .ha-body::after {content:'';position:absolute;left:-29px;top:-90px;width:58px;height:58px;border:3px solid #ffca87;border-radius:50%;box-shadow:0 0 15px #ff9c6d,inset 0 0 12px #ffd69e88;pointer-events:none;animation:ash-channel-aura 1.4s ease-in-out infinite alternate;}
.ha.ash-channeling .gear-weapon-epic {filter:drop-shadow(0 0 12px var(--weapon-glow));}
@keyframes ash-channel-aura {to{transform:scale(1.26) rotate(28deg);opacity:.48;}}
.ash-crow-perch {transform-origin:center;animation:ash-crow-shift 5.5s ease-in-out infinite;}
.ash-crow-flight {animation:ash-crow-flight 6.5s ease-in-out infinite;}
.ash-crow-wing {transform-box:fill-box;transform-origin:center;animation:ash-crow-wing .65s ease-in-out infinite alternate;animation-delay:calc(var(--i,0)*-.13s);}
.ash-ember-vein {animation:ash-ember-vein 4.2s ease-in-out infinite;}
.ash-lava-pool {animation:ash-lava-pulse 4.4s ease-in-out infinite;}
.ash-wreck-wake {animation:ash-wreck-bob 5.8s ease-in-out infinite;}
@keyframes ash-crow-shift {43%,52%{translate:0 -3px;rotate:-5deg;}80%{rotate:3deg;}}
@keyframes ash-crow-flight {50%{translate:28px -12px;opacity:.78;}}
@keyframes ash-crow-wing {to{transform:scaleY(.55);}}
@keyframes ash-ember-vein {50%{opacity:.28;}}
@keyframes ash-lava-pulse {50%{opacity:.7;filter:brightness(1.25);}}
@keyframes ash-wreck-bob {50%{transform:translateY(3px);opacity:.65;}}
.ha-sprite,.ha-sprite .ha-f,.ha-sprite .ha-b,.ha-sprite svg.char,.gear-weapon-epic {overflow:visible!important;}
@media(max-width:1050px) {.ash-training-bar{width:min(560px,calc(100vw - 30px));}.ash-ability-row{gap:4px}.ash-ability-row button{min-height:94px}.ash-ability-row .ash-orb{width:47px;height:47px;min-width:47px}.ash-ability-row button>small{font-size:8px}}
@media(max-width:600px) {.ash-ability-row .ash-orb{display:grid}.ash-ability-row .ash-skill-name{display:block;font-size:8px}.ash-ability-row button>small{display:block;font-size:7px}.ash-ability-row button{padding:5px 1px;min-height:88px}.ash-ability-row .ash-orb{width:39px;height:39px;min-width:39px}.ash-ability-row .ash-orb em{font-size:19px}}
.ash-armory-type { color:var(--ash-weapon-color); font:900 10px var(--font); text-transform:uppercase; letter-spacing:.15em; }
.ash-armory-grid b { font:900 16px/1.1 var(--display); text-align:center; }
.ash-armory-grid small { color:#d7c4b1; text-align:center; line-height:1.25; }
@media(max-width:1050px) { .ash-training-bar { left:auto; right:15px; transform:none; width:min(420px,calc(100vw - 30px)); bottom:87px; } .ash-armory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .ash-ability-row { grid-template-columns:repeat(5,minmax(0,1fr)); } .ash-ability-row button { justify-content:center; } .ash-ability-row button span { display:none; } .ash-training-bar { bottom:79px; } }
@media(min-width:2400px) { body.in-hub .party-dock { top:212px; } }
@media(min-width:3000px) { body.in-hub .party-dock { top:242px; } }
.hub-panel[data-route="settings"] .settings-layout { grid-template-columns:minmax(145px,190px) minmax(0,1fr); gap:18px; }
.hub-panel[data-route="settings"] .setting { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
.hub-panel[data-route="settings"] .setting .ctl { min-width:0; max-width:100%; display:flex; flex-wrap:wrap; justify-content:flex-start; }
.hub-panel[data-route="settings"] .setting :is(.seg,.range-row) { max-width:100%; flex-wrap:wrap; }
.hub-panel[data-route="settings"] #pwForm { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
.hub-panel[data-route="settings"] #pwForm .field,.hub-panel[data-route="settings"] .field .input { min-width:0; max-width:100%; }
@media (max-width:700px) { .hub-panel[data-route="settings"] .settings-layout { grid-template-columns:1fr; } }
/* One desktop RPG skin for every Hub window. Main-site pages keep their own palette. */
.hub-panel { --bg:#191522; --bg-2:#211a2d; --bg-3:#352439; --panel:#292132; --panel-2:#34293b; --panel-3:#443347; --line:#c8a77b33; --line-hi:#e1bd8a66; --text:#fff1df; --muted:#d6bbad; --faint:#a78d8c; --accent:#f4c778; --accent-d:#a97147; --accent-rgb:244,199,120; }
.hub-panel .hp-sheet,.hub-panel.floating .hp-sheet { border:2px solid #ba8c61; border-radius:16px; background:linear-gradient(145deg,#251c2d,#191522 67%); box-shadow:0 24px 64px #070711c4,inset 0 0 0 2px #f5cf8d1e; }
.hub-panel .hp-head,.hub-panel.floating .hp-head { background:linear-gradient(100deg,#392a3b,#302638 54%,#252132); border-bottom:1px solid #c79a6d99; box-shadow:inset 0 -1px #f3c78926; }
.hub-panel .hp-head h2 { font-family:Georgia,serif; letter-spacing:.025em; }
.hub-panel .hp-ic { border:1px solid #edc488; border-radius:9px; background:#54394a; color:#ffe0a0; }
.hub-panel .hp-body,.hub-panel.floating .hp-body { background:radial-gradient(circle at 50% 0,#72513b22,transparent 55%); }
.hub-panel .hp-body .card:not(.profile-head) { border:1px solid #c09a6d48; background-color:#302638; }
.hub-panel :is(.people-row,.place-row,.hub-friend,.inst-row) { border:1px solid #b994665c; border-radius:10px; background:linear-gradient(110deg,#34283a,#292433); box-shadow:inset 0 1px #f3d29a14; transition:background .2s ease,border-color .2s ease,transform .2s ease; }
.hub-panel :is(.people-row,.place-row,.hub-friend,.inst-row):hover { border-color:#e7bc819e; background:linear-gradient(110deg,#413147,#30283a); }
.hub-panel .hub-friend-acts button { border:1px solid #c8a07566; background:#443449; }
.hub-panel .hp-screen .tabs button { border:1px solid #b88f635c; border-radius:9px; background:#302638; }
.hub-panel .hp-screen .tabs button.on { background:#f4c778; border-color:#ffe3a5; color:#25192a; }
@media (max-width:700px) { .hub-panel .hp-sheet,.hub-panel.floating .hp-sheet { border-radius:16px 16px 0 0; } }
/* ---------------------------------------------------------------- the Lands of Ash (Southern Coast) */
.hprop .ash-smoke circle { animation: ash-smoke 4.2s ease-out infinite; animation-delay: calc(var(--i) * -1.4s); transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes ash-smoke { 0% { translate: 0 0; opacity: 0; scale: .6; } 20% { opacity: .7; } 100% { translate: 10px -46px; opacity: 0; scale: 1.8; } }
.hub.night .hprop .aw-win { fill: #ffd98a; filter: drop-shadow(0 0 5px #ffb84a); }
.hub:not(.night) .hprop .aw-win { fill: #2f3d5c; }
.hprop .sc-runes { animation: hp-spin 18s linear infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.hprop .sc-ember { animation: sc-ember 3.2s ease-in-out infinite; } @keyframes sc-ember { 50% { translate: 0 -6px; } }
.hprop .sc-flow { animation: sc-flow var(--s, 4s) linear infinite; animation-direction: normal; } .hprop .sc-flow[style*='--d:-1'] { animation-direction: reverse; }
@keyframes sc-flow { to { stroke-dashoffset: -120; } }
.hprop .ash-ember-up { animation: ash-ember-up 2.4s ease-out infinite; animation-delay: calc(var(--i, 0) * -.48s); } @keyframes ash-ember-up { 0% { transform: translate(0, 18px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(calc((var(--i, 0) - 2) * 4px), -38px); opacity: 0; } }
.hprop .sc-core { animation: sc-core 2.6s ease-in-out infinite; } @keyframes sc-core { 50% { opacity: .22; } }
.hprop .sc-sparks circle { animation: sc-spark 1.1s ease-out infinite; animation-delay: calc(var(--i) * -.22s); } @keyframes sc-spark { 0% { translate: 0 0; opacity: 1; } 100% { translate: calc((var(--i) - 2) * 7px) -18px; opacity: 0; } }
.hprop .sc-mount { animation: sc-mount 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s); transform-box: fill-box; transform-origin: 50% 100%; } @keyframes sc-mount { 40%, 60% { rotate: -6deg; } }
.hprop .sc-ripple { animation: lamp-glow 2.6s ease-in-out infinite; }
.hprop .sc-spray { animation: sc-spray 1.4s ease-in-out infinite; } @keyframes sc-spray { 50% { opacity: .6; translate: 0 1px; } }
.hprop .sc-bob { animation: sc-bob 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -1s); } @keyframes sc-bob { 50% { translate: 0 2px; rotate: .6deg; } }
.hprop .sc-sails { animation: hp-spin 14s linear infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.hprop .sc-node-glint { animation: lamp-glow 1.4s ease-in-out infinite; }
.hprop .aw-glass { animation: aw-glass 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); } @keyframes aw-glass { 50% { filter: brightness(1.35) saturate(1.2); } }
.hub.night .hprop .aw-glass { filter: brightness(1.6) drop-shadow(0 0 4px #ffb84a); }
.hprop .aw-spill { animation: lamp-glow 4s ease-in-out infinite; }

/* the chat, MMO style: a dark parchment-edged box, level badges, where people speak from */
.hub-chat .hc-log, .hub-chat .hc-tabs, .hub-chat .hc-form { background: linear-gradient(180deg, #1c1424e6, #120c18ee); }
.hub-chat .hc-tabs { border-bottom: 1px solid #b8894a55; }
.hub-chat .hc-tabs button.on { background: linear-gradient(#e9c27a, #b4823a); color: #2a1a10; }
.hcl { line-height: 1.45; } .hcl b { color: #ffd98a; }
.hcl .hcl-lv { display: inline-flex; align-items: center; gap: 2px; min-width: 22px; justify-content: center; margin-right: 4px; padding: 0 5px; height: 16px; border-radius: 5px; font: 900 10px/16px Nunito; font-style: normal; color: #2a1a10; background: linear-gradient(#ffe7a8, #c9902a); box-shadow: 0 0 0 1px #5a3a10, inset 0 1px 0 #fff8; vertical-align: 1px; }
.hcl .hcl-where { margin-left: 5px; padding: 0 6px; border-radius: 999px; font: 800 9.5px/15px Nunito; color: #cfe8ff; background: #2a3a5a; box-shadow: inset 0 0 0 1px #4a6a9a; vertical-align: 1px; }
.hcl .hcl-colon { color: #a89a88; margin-right: 2px; }
.hcl.npc { color: #e8dcc6; } .hcl.npc .hcl-npc { color: #8fe0a8; cursor: default; } .hcl .hcl-say { margin: 0 4px; color: #a89a88; font-weight: 600; font-style: italic; }
.hcl.npc.tier-ash .hcl-npc { color: #ffb36a; }
.hub-full.on { color: #ffd23f; }
.iv-bagspace { margin-left: auto; align-self: center; padding: 3px 10px; border-radius: 999px; font: 800 12px Nunito; background: #ffffff10; color: #e8dcc6; } .iv-bagspace.full { background: #ff5c5c33; color: #ff9a8a; }
/* the south's minimap markers */
.hm-pins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hm-pin { position: absolute; left: 0; top: 0; translate: -50% -50%; display: grid; place-items: center; font: 900 12px Georgia, serif; text-shadow: 0 1px 2px #000; }
.hm-pin.k-offer, .hm-pin.k-ready { width: 16px; height: 16px; border-radius: 50%; color: #3a2410; background: radial-gradient(circle at 35% 30%, #fff4b8, #ffd23f 60%, #c9902a); box-shadow: 0 0 0 1.5px #5a3a10, 0 0 8px #ffd23f; text-shadow: none; }
.hm-pin.k-turnin { width: 14px; height: 14px; border-radius: 50%; color: #3a3a4a; background: #d8d8e8; box-shadow: 0 0 0 1.5px #4a4a5a; text-shadow: none; }
.hm-pin.k-goal { width: var(--r, 18px); height: calc(var(--r, 18px) * .5); border-radius: 50%; background: radial-gradient(#ffd23f44, #ffd23f22 70%, transparent); box-shadow: inset 0 0 0 1.5px #ffd23faa; animation: hm-goal 2s ease-in-out infinite; }
.hm-pin.k-goal.edge { width: 10px; height: 10px; background: #ffd23f; box-shadow: 0 0 6px #ffd23f; }
@keyframes hm-goal { 50% { opacity: .55; } }
.hm-pin.k-shrine { font-size: 12px; filter: drop-shadow(0 0 3px #ff8a3a); } .hm-pin.k-town { font: 800 9px Nunito; color: #fff4dc; background: #1a1220cc; padding: 1px 5px; border-radius: 6px; white-space: nowrap; }
.hm-pin.k-party { width: 9px; height: 9px; border-radius: 50%; background: #3ee6a8; box-shadow: 0 0 0 1.5px #fff; }
.hub.ashland .hub-mini .hm-frame { box-shadow: 0 0 0 2px #b8894a, 0 0 0 4px #2a1a14, 0 8px 20px #0009; }
.hub.ashland .hub-mini .hm-area { font-family: Georgia, serif; background: linear-gradient(#3a2638, #1a1220); color: #ffe7a8; box-shadow: 0 0 0 1px #b8894a; }
/* the south's living props: swaying trees and reeds, spinning saws */
.hprop .sc-sway { animation: sc-sway 5s ease-in-out infinite; } @keyframes sc-sway { 50% { transform: rotate(var(--sw, 2deg)); } }
.hprop .sc-spin { transform-box: fill-box; transform-origin: center; animation: hp-spin 2.4s linear infinite; }
.iv-bagspace.crowns { background: #c8ccd822; color: #f4f6ff; }
/* v80 chat: one spot in the Hub and the Ash; hidden = a tidy round chat button with the unread count */
@media (min-width: 901px) {
  .hc-toggle { display: grid; place-items: center; position: absolute; right: 6px; top: 5px; width: 28px; height: 28px; border: 1px solid #c99764; border-radius: 9px; background: #211d30; color: #f4e6c8; cursor: pointer; z-index: 2; }
  .hc-toggle .ico { width: 15px; height: 15px; } #hubUnread { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: #ff5c8a; color: #fff; font: 900 10px/18px Nunito; text-align: center; padding: 0 4px; }
  .hub-chat.min { width: auto; } .hub-chat.min .hc-tabs { display: none; }
  .hub-chat.min .hc-toggle { position: relative; top: 0; right: 0; width: 46px; height: 46px; border-radius: 50%; border-width: 2px; background: linear-gradient(#2e2838, #1a1622); box-shadow: 0 4px 14px #0008; }
  .hub-chat.min .hc-toggle .ico { width: 20px; height: 20px; }
  .hub-chat .hc-tabs { padding-right: 40px; }
}
@media (min-width: 1400px) { .hub.ashland .hub-chat { bottom: 12px; width: min(430px, calc((100vw - 840px) / 2 - 24px)); } }
.hub-inst.south { border-color: #ff8a3a; background: linear-gradient(#4a1a14e6, #2a0e0ce6); } .hub-inst.south .hub-dot { background: #ff8a3a; box-shadow: 0 0 8px #ff8a3a; }
/* the south under load: creatures stop breathing, rings stop spinning, foam stops rolling */
.hub.lowfx .am-wrap .am-flip > svg, .hub.lowfx .ash-urings i, .hub.lowfx .hw-foam, .hub.zoomed-out .hw-foam { animation: none !important; }
/* Ashwatch v81: sealed gateways (dim, still, chained), glowing signposts */
.hprop .sc-sealed { filter: grayscale(.85) brightness(.62) contrast(.9); } .hprop .sc-sealed .sc-flow, .hprop .sc-sealed animateTransform { animation-duration: 16s !important; }
.hprop .sc-seal { animation: sc-seal 3.4s ease-in-out infinite; transform-box: fill-box; } @keyframes sc-seal { 50% { filter: drop-shadow(0 0 6px #ff5a3a); } }
.hprop .aw-beacon { animation: aw-beacon 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; } @keyframes aw-beacon { 50% { opacity: .55; transform: translateY(-4px); } }
/* Ember Shrines: the crystal floats and turns; cool blue until you attune, then gold with rays */
.hprop .sc-ember { animation: sh-float 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes sh-float { 50% { transform: translateY(-5px) scale(1.04); } }
.hpw.sh-unknown .sc-ember { filter: hue-rotate(185deg) saturate(.55) brightness(.95); animation-duration: 4.4s; }
.hpw.sh-unknown .sc-runes { stroke: #7ab8ff; opacity: .5; }
.hpw.sh-attuned .sc-ember { filter: drop-shadow(0 0 8px #ffd25a) drop-shadow(0 0 18px #ff9a2a); }
.hpw.sh-attuned .sc-runes { stroke: #ffd25a; animation: sh-runes 6s linear infinite; transform-box: fill-box; transform-origin: center; } @keyframes sh-runes { to { stroke-dashoffset: -60; } }
.hpw.sh-attuned .sc-ember::after { content: ''; }
/* v81 vegetation: livelier, varied and out of step (trees lean and rustle, grass and reeds ripple, flowers nod) */
.hprop .sc-sway { animation: sc-sway2 5.4s ease-in-out infinite; }
@keyframes sc-sway2 { 0%, 100% { transform: rotate(calc(var(--sw, 2deg) * -0.6)) skewX(0deg); } 50% { transform: rotate(calc(var(--sw, 2deg) * 1.4)) skewX(calc(var(--sw, 2deg) * -0.8)); } }
.hpw:nth-child(2n) .hprop .sc-sway { animation-duration: 6.3s; animation-delay: -2.1s; }
.hpw:nth-child(3n) .hprop .sc-sway { animation-duration: 4.7s; animation-delay: -3.4s; }
.hpw:nth-child(5n) .hprop .sc-sway { animation-duration: 7.1s; animation-delay: -1.2s; }
.hpw[data-prop^="scgrass"] .hprop .sc-sway, .hpw[data-prop^="screed"] .hprop .sc-sway { animation: sc-ripple 2.6s ease-in-out infinite; }
@keyframes sc-ripple { 0%, 100% { transform: skewX(-4deg); } 50% { transform: skewX(6deg) scaleY(.97); } }
.hpw[data-prop^="scgiantflower"] .hprop .sc-sway, .hpw[data-prop^="sccrops"] .hprop .sway { animation: sc-nod 3.6s ease-in-out infinite; }
@keyframes sc-nod { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg) translateY(-1px); } }
/* frame savers in the south: the shore foam holds still, low-effects mode keeps the plants moving */
.hub.ashland .hw-foam { animation: none !important; }
.hub.lowfx .hpw .hprop .sc-sway { animation-play-state: running !important; }
/* v84: no 'E to interact' popup (E still works next to things) */ .hub-hint { display: none !important; }
.fs-ask { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; background: #0006; animation: ptip-in .15s ease-out; }
.fs-card { width: min(360px, calc(100vw - 32px)); padding: 18px 20px; border-radius: 16px; text-align: center; color: #f4ecdc; background: linear-gradient(180deg, #2e2236f7, #17111df9); border: 1.5px solid #c99764; box-shadow: 0 0 0 2px #1a1014, 0 16px 36px #000b; }
.fs-card b { font: 800 17px Nunito; color: #ffe2a8; } .fs-card p { margin: 6px 0 14px; font: 600 13px Nunito; color: #d8cbb8; } .fs-card div { display: flex; gap: 8px; justify-content: center; }
/* harvested nodes: crops cut to stubble, trees and plants bare and dull, rocks mined out; they grow back on their own */
.hpw.depleted .hprop { filter: saturate(.25) brightness(.72); opacity: .78; transition: filter .6s, opacity .6s; }
.hpw.depleted[data-prop^="sccrops"] .hprop { filter: sepia(.6) saturate(.5) brightness(.85); opacity: 1; }
.hpw.depleted[data-prop^="sccrops"] .hprop g, .hpw.depleted[data-prop^="sccrops"] .hprop circle, .hpw.depleted[data-prop^="sccrops"] .hprop ellipse { transform: scaleY(.3); transform-box: fill-box; transform-origin: 50% 100%; }
.hpw.depleted .sc-sway, .hpw.depleted .sway { animation: none !important; }
.hub-node-cooldown { display: none !important; }
.hpw.act.thru .hprop { pointer-events: auto !important; }
/* portals always turn smoothly (the low-effects / open-window pauses made their rings stop-start against the SVG motion) */
.hub .hpw[data-prop*="portal"] .hprop *, .hub .hpw[data-prop="ash-southgate"] .hprop *, .hub .hpw[data-prop^="scportal"] .hprop * { animation-play-state: running !important; }
.hprop .sc-flow { will-change: stroke-dashoffset; }
/* performance: no background blurs over the moving world (each name tag re-blurred the scene every frame); slightly more solid backgrounds instead */
.hub *, .hub-panel, .hub-panel *, .ptip { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.hub .ha-tag { background: rgba(29, 18, 64, .8); } .hub .hub-btn:not(.hub-menu):not(.primary), .hub .hub-chip, .hub .hub-tr, .hub .hub-top-l { background: rgba(29, 18, 64, .86); }
.hp-scrim { background: rgba(13, 8, 40, .62); }
.hpw.far:not([data-prop*="portal"]):not([data-prop="ash-southgate"]) .hprop * { animation: none !important; } /* (portals keep turning, even far off) */
.hub-context { z-index: 99000 !important; }
/* the Hub bag's search, sort and rarity filter */
.iv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 8px; }
.iv-tools input { flex: 1 1 140px; min-width: 0; padding: 6px 10px; border-radius: 9px; border: 1px solid #ffffff22; background: #00000030; color: inherit; font: 700 12px var(--font); }
.iv-tools select { padding: 5px 6px; border-radius: 9px; border: 1px solid #ffffff22; background: #1d1240; color: inherit; font: 700 12px var(--font); }
.iv-tools small { margin-left: auto; opacity: .7; font: 800 11px var(--font); }
/* the private island's Trophy Hall */
.hut-trophy { cursor: pointer; } .hut-trophy:hover { filter: brightness(1.12); }
.hut-trophy-panel { position: fixed; inset: 0; z-index: 9300; display: grid; place-items: center; background: rgba(10,8,24,.55); }
.hut-trophy-panel[hidden] { display: none; }
.htp-card { width: min(860px, 94vw); max-height: 88vh; overflow-y: auto; padding: 16px 20px; border-radius: 18px; background: #1d1830; color: #f6efe0; border: 1px solid #ffd27a55; box-shadow: 0 20px 60px #0009; }
.htp-card header { display: flex; justify-content: space-between; align-items: flex-start; } .htp-card header small { color: #ffd27a; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; } .htp-card h2 { margin: 2px 0 6px; } .htp-card h2 span { font-size: 15px; opacity: .7; }
.htp-card h4 { margin: 14px 0 6px; } .htp-card h4 em { font-style: normal; color: #ffd27a; font-size: 13px; }
.htp-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; } .htp-stat { padding: 10px; border-radius: 12px; background: #ffffff0d; text-align: center; } .htp-stat b { display: block; font-size: 22px; color: #ffd27a; } .htp-stat small { opacity: .8; font-weight: 700; }
.htp-relics, .htp-stable { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; } .htp-relics figure, .htp-stable figure { margin: 0; padding: 6px; border-radius: 10px; background: #ffffff0a; text-align: center; } .htp-relics img { width: 100%; border-radius: 6px; } .htp-stable svg { width: 100%; height: 70px; }
.htp-relics figcaption, .htp-stable figcaption { font-size: 11px; font-weight: 700; margin-top: 4px; }
.htp-titles span, .htp-bosses span { display: inline-block; margin: 3px 4px 0 0; padding: 3px 9px; border-radius: 999px; background: #ffffff12; font-size: 12px; font-weight: 700; } .htp-bosses span.raid { background: #c886ff33; } .htp-bosses span.dun { background: #5aa8ff2a; }
/* text size in the Hub and the Lands of Ash: the reading parts grow with Settings → Text size (capped so windows still fit) */
.hub-chat, .ash-tracker, .npcd, .hub-panel .hp-sheet, .ash-finale .afn-card, .ash-watchhud, .ash-event { zoom: clamp(1, var(--text-scale, 1), 1.3); }
/* reduced motion: no shaking world, no flashing screen */
:root[data-motion='reduced'] .hub.shake .hub-world, :root[data-motion='reduced'] .hub.shake .hub-sea, :root[data-motion='reduced'] .hub.shake-big .hub-world, :root[data-motion='reduced'] .hub.shake-big .hub-sea,
:root[data-motion='reduced'] .hub.ash-shake .hub-world, :root[data-motion='reduced'] .hub.ash-shake .hub-sea { animation: none !important; }
:root[data-motion='reduced'] .gflash, :root[data-motion='reduced'] .ash-flash, :root[data-motion='reduced'] [class*='screen-flash'] { display: none !important; }
:root[data-motion='reduced'] .sea-l { animation: none; }

/* v107: companion tricks (the companion's body plays one, ~1.6 s) */
.hcomp .hc-body.trick-sit { animation: trSit 1.6s ease-in-out; }
@keyframes trSit { 15%, 85% { transform: translateY(5px) scaleY(.82); } }
.hcomp .hc-body.trick-spin { animation: trSpin 1.1s cubic-bezier(.4, 0, .2, 1); }
@keyframes trSpin { 40% { transform: translateY(-10px) rotate(200deg); } 100% { transform: rotate(360deg); } }
.hcomp .hc-body.trick-beg { animation: trBeg 1.6s ease-in-out; transform-origin: 50% 100%; }
@keyframes trBeg { 15%, 85% { transform: translateY(-6px) rotate(-8deg) scaleY(1.08); } 35%, 65% { transform: translateY(-8px) rotate(6deg) scaleY(1.1); } }
.hcomp .hc-body.trick-fetch { animation: trFetch 1.8s ease-in-out; }
@keyframes trFetch { 10% { transform: translateY(-4px); } 45% { transform: translate(46px, -6px); } 55% { transform: translate(46px, 0); } 100% { transform: translate(0, 0); } }
.hcomp .hc-ball { position: absolute; left: 50%; bottom: 14px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f4ff7a, #b8d42a); box-shadow: 0 1px 2px #0006; animation: trBall 1.8s ease-in-out forwards; pointer-events: none; }
@keyframes trBall { 0% { transform: translate(0, -20px); } 30% { transform: translate(50px, -50px); } 45% { transform: translate(52px, 0); } 55% { transform: translate(48px, -12px); } 100% { transform: translate(4px, -12px); opacity: 0; } }
.hcomp .hc-body.trick-dance { animation: trDance 1.8s ease-in-out; }
@keyframes trDance { 0%, 100% { transform: none; } 12% { transform: translateX(-6px) rotate(-12deg); } 25% { transform: translateX(6px) rotate(12deg) translateY(-6px); } 37% { transform: translateX(-6px) rotate(-12deg); } 50% { transform: translateX(6px) rotate(12deg) translateY(-6px); } 62% { transform: scaleX(-1); } 75% { transform: translateY(-10px); } 88% { transform: scaleX(1) translateY(0); } }
.hcomp .hc-body.trick-backflip { animation: trFlip 1.2s cubic-bezier(.3, 0, .3, 1); transform-origin: 50% 60%; }
@keyframes trFlip { 20% { transform: translateY(3px) scaleY(.8); } 60% { transform: translateY(-34px) rotate(-360deg); } 80% { transform: translateY(2px) rotate(-360deg) scaleY(.85); } 100% { transform: rotate(-360deg); } }
.ctr-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ctr { display: grid; justify-items: center; gap: 2px; padding: 10px 8px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: inherit; font: inherit; cursor: pointer; transition: transform .15s, background .2s; }
.ctr:hover:not([disabled]) { transform: translateY(-2px); background: rgba(255, 255, 255, .09); } .ctr[disabled] { opacity: .45; cursor: default; }
.ctr span { font-size: 22px; } .ctr b { font-size: 13px; } .ctr small { font-size: 11px; color: var(--faint); font-weight: 800; } .ctr.known small { color: #3ee6a8; }
@media (prefers-reduced-motion: reduce) { .hcomp .hc-body[class*="trick-"] { animation-duration: .01s; } }

/* v107: the daily mount call (a wandering mount by the spawn) */
.hmcall { position: absolute; left: 0; top: 0; width: 0; height: 0; cursor: pointer; }
.hmcall .hmc-steed { position: absolute; left: -62px; bottom: -14px; width: 124px; height: 80px; transform: scaleX(var(--sdir, 1)); animation: hmcBob 2.4s ease-in-out infinite; filter: drop-shadow(0 4px 4px #0006); }
.hmcall.sleft { --sdir: -1; }
.hmcall .hmc-steed .ha-steed { display: block; position: absolute; inset: 0; left: 0; bottom: 0; width: 100%; }
.hmcall .hmc-tag { position: absolute; left: 0; bottom: 74px; translate: -50% 0; display: grid; justify-items: center; padding: 3px 10px; border-radius: 12px; background: rgba(19, 22, 48, .82); color: #fff; white-space: nowrap; box-shadow: 0 0 0 1px rgba(255, 210, 63, .5); pointer-events: none; }
.hmcall .hmc-tag b { font-size: 12px; } .hmcall .hmc-tag small { font-size: 10px; font-weight: 800; color: #ffd23f; }
.hmcall.claimed .hmc-tag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); } .hmcall.claimed .hmc-tag small { color: #b8c0e0; }
.hmcall .hmc-hay { position: absolute; left: -10px; bottom: -6px; font-size: 16px; opacity: 0; pointer-events: none; }
.hmcall.fed .hmc-hay { animation: hmcFed 1.4s ease-out; } .hmcall.fed .hmc-steed { animation: hmcHappy .7s ease-in-out 2; }
.hmcall:not(.claimed) .hmc-tag::before { content: ''; position: absolute; inset: -4px; border-radius: 14px; box-shadow: 0 0 14px rgba(255, 210, 63, .55); animation: hmcGlow 1.8s ease-in-out infinite; }
@keyframes hmcBob { 50% { translate: 0 -2px; } } @keyframes hmcHappy { 50% { translate: 0 -8px; } }
@keyframes hmcFed { 0% { opacity: 1; transform: translate(0, -30px) scale(1.3); } 60% { opacity: 1; transform: translate(10px, 0); } 100% { opacity: 0; transform: translate(14px, 4px) scale(.5); } }
@keyframes hmcGlow { 50% { opacity: .3; } }

/* v108: name plates: one width for everyone (fits a name like "clausenic" with its level), the name left and the level
   right, the title under it, then the health bar across the plate; longer names and titles widen the plate */
.ha-tag { min-width: 118px; align-items: stretch; }
.ha-tag-main { display: flex; align-items: center; gap: 6px; } .ha-tag-main > b { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: space-between; }
.ha-tag-main > b > i { margin-left: auto; }
.ha-tag .ha-title { text-align: center; }
.ha-hpb { display: none; height: 4px; margin: 2px 0 1px; border-radius: 3px; background: rgba(0, 0, 0, .45); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ha-hpb i { display: block; height: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, #3ee6a8, #8ff0a8); transition: transform .35s ease; }
.ha-hpb.low i { background: linear-gradient(90deg, #ff5c5c, #ff9a7a); }
.hub.ashland .hov:not(.npc) .ha-hpb, .hov.hpshow:not(.npc) .ha-hpb { display: block; }
.hov.me .ha-hpb { background: rgba(29, 18, 64, .35); }
/* v108: live trade window */
.ltw { position: absolute; left: 50%; top: 14%; translate: -50% 0; z-index: 2400; width: min(620px, 94vw); border-radius: 18px; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #2c2018f5, #160e0af5); border: 1.5px solid #c9a04688; box-shadow: 0 24px 60px #000c, inset 0 1px 0 #ffffff14; animation: ltwIn .3s cubic-bezier(.2, .9, .3, 1.2) both; }
.ltw.placed { translate: none; } @keyframes ltwIn { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
.ltw-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: move; background: linear-gradient(90deg, #4a2e14, #2a1a0e); border-bottom: 1px solid #c9a04655; } .ltw-head b { font-size: 15px; } .ltw-head small { color: #e8c890; font-weight: 800; flex: 1; }
.ltw-x { border: 0; background: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.ltw-body { padding: 12px 14px 14px; display: grid; gap: 12px; }
.ltw-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; } .ltw-swap { align-self: center; font-size: 22px; color: #e8c890; }
.ltw-side { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 14px; background: #00000040; box-shadow: inset 0 0 0 1px #ffffff14; transition: box-shadow .25s, background .25s; }
.ltw-side.locked { box-shadow: inset 0 0 0 2px #3ee6a8, 0 0 18px #3ee6a855; background: #0a2a1c55; } .ltw-side h4 { margin: 0; font-size: 13px; display: flex; gap: 8px; align-items: center; } .ltw-side h4 em { font-style: normal; color: #3ee6a8; font-size: 11.5px; } .ltw-side h4 small { color: var(--faint, #a89); font-weight: 700; }
.ltw-offer { min-height: 112px; display: grid; grid-template-columns: repeat(auto-fill, 46px); gap: 6px; align-content: start; padding: 8px; border-radius: 10px; border: 1.5px dashed #ffffff22; transition: border-color .2s, background .2s; }
.ltw-offer.me.over { border-color: #ffd23f; background: #ffd23f14; } .ltw-empty { grid-column: 1 / -1; color: #a898a0; font-size: 12px; font-weight: 700; align-self: center; text-align: center; }
.ltw-it { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 30%, #2a1e18), #1a120c); box-shadow: inset 0 0 0 1.5px var(--rc); cursor: pointer; font-size: 22px; }
.ltw-it svg { width: 34px; height: 34px; } .ltw-it b { position: absolute; right: 2px; bottom: 0; font-size: 11px; text-shadow: 0 1px 2px #000; }
.ltw-it.bag:hover, .ltw-it.off:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--rc), 0 4px 10px #0008; }
.ltw-money { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; } .ltw-money label, .ltw-money span { display: inline-flex; align-items: center; gap: 6px; } .ltw-money input { width: 90px; padding: 4px 8px; border-radius: 8px; border: 1px solid #ffffff2a; background: #00000055; color: #fff; font: inherit; font-weight: 800; }
.ltw-bag small { color: #c8b8a8; font-weight: 800; font-size: 11.5px; } .ltw-baggrid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; max-height: 128px; overflow-y: auto; padding: 2px; }
.ltw-foot { display: flex; align-items: center; gap: 8px; } .ltw-foot .faint { flex: 1; font-size: 12px; font-weight: 700; }
@media (max-width: 560px) { .ltw-cols { grid-template-columns: 1fr; } .ltw-swap { display: none; } }
.ltw-it { overflow: hidden; flex: none; } .ltw-it > :not(b) { width: 34px !important; height: 34px !important; max-width: 34px; max-height: 34px; font-size: 22px; } .ltw-baggrid { max-height: 112px; padding: 4px 2px; }
/* v108: rich item tooltips (hub/itemtip.js). The rarer, the grander: epic glows, legendary burns gold, mythic shimmers */
.itp-host { position: fixed; left: 0; top: 0; z-index: 99999; pointer-events: none; will-change: transform; }
.itp { width: 280px; padding: 12px 14px; border-radius: 14px; color: #f4ece4; font-size: 12.5px; background: linear-gradient(180deg, #1e1612f8, #0e0a08f8); border: 1.5px solid color-mix(in srgb, var(--rc) 70%, #000);
  box-shadow: 0 18px 40px #000c, inset 0 0 0 1px #ffffff0e, 0 0 0 1px #000; animation: itpIn .14s ease-out; }
@keyframes itpIn { from { opacity: 0; transform: translateY(4px); } }
.itp-head { display: flex; gap: 10px; align-items: center; } .itp-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; font-size: 24px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 35%, #2a1e18), #120c08); box-shadow: inset 0 0 0 1.5px var(--rc); }
.itp-ic > * { width: 34px; height: 34px; } .itp-name { display: block; font-size: 15px; line-height: 1.15; color: var(--rc); font-family: var(--display, inherit); } .itp-head small { color: #b8a898; font-weight: 800; }
.itp-type { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 4px; } .itp-type span { padding: 1px 7px; border-radius: 6px; background: #ffffff10; font-weight: 800; font-size: 11px; color: #d8c8b8; } .itp-type .itp-worn { background: #3ee6a833; color: #8ff0c8; }
.itp-armor { font-weight: 800; margin: 4px 0; } .itp-stats { display: grid; gap: 2px; margin: 6px 0; padding: 6px 8px; border-radius: 8px; background: #00000040; }
.itp-st { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; } .itp-st span { color: #e0d0c0; } .itp-st b { color: var(--sc); font-weight: 900; text-align: right; }
.itp em { font-style: normal; font-weight: 900; font-size: 11px; } .itp em.up, .itp b.up { color: #3ee6a8; } .itp em.down, .itp b.down { color: #ff7a7a; }
.itp-set { color: #ffd23f; font-weight: 800; margin-top: 4px; text-transform: capitalize; } .itp-req { color: #c8b8a8; margin-top: 4px; } .itp-dura { margin-top: 4px; font-weight: 800; color: #d8c8b8; } .itp-dura.low { color: #ffb347; } .itp-dura.broken { color: #ff5c5c; }
.itp-desc { margin: 8px 0 0; color: #c8b090; font-style: italic; line-height: 1.4; }
.itp-cmp { margin-top: 8px; padding-top: 8px; border-top: 1px solid #ffffff14; display: grid; gap: 2px; } .itp-cmp small { color: #a89888; font-weight: 700; } .itp-cmp b { font-weight: 900; }
.itp-foot { margin-top: 8px; color: #a89888; font-size: 11px; font-weight: 700; } .itp-foot:empty { display: none; }
.itp.r-epic { box-shadow: 0 18px 40px #000c, 0 0 22px #b388ff55, inset 0 0 0 1px #b388ff33; }
.itp.r-legendary { border-color: #ffb547; box-shadow: 0 18px 40px #000c, 0 0 28px #ffb54788, inset 0 0 18px #ff8a2a22; background: linear-gradient(180deg, #2a1a0cf8, #120a04f8); }
.itp.r-legendary .itp-name { background: linear-gradient(90deg, #fff2c8, #ffb547, #ff7a2a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.itp.r-mythic { position: relative; border-color: transparent; background: linear-gradient(180deg, #24102af8, #0e0612f8) padding-box, linear-gradient(120deg, #ff5c8a, #ffd23f, #4cc9f0, #b388ff, #ff5c8a) border-box; background-size: 100% 100%, 300% 300%;
  animation: itpIn .14s ease-out, itpMyth 4s linear infinite; box-shadow: 0 18px 40px #000c, 0 0 34px #ff5c8a77, 0 0 60px #b388ff44; }
.itp.r-mythic .itp-name { background: linear-gradient(90deg, #ffd6e8, #ff5c8a, #ffd23f, #b388ff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: itpMyth 3s linear infinite; }
@keyframes itpMyth { to { background-position: 0 0, 300% 0; } }
.ha.gear-legend .ha-sprite { filter: drop-shadow(0 0 6px #ffb54799) drop-shadow(0 0 14px #ff8a2a55); }
.ha.gear-mythic .ha-sprite { filter: drop-shadow(0 0 7px #ff5c8aaa) drop-shadow(0 0 16px #b388ff66); } /* (static: an animated filter would re-render the sprite every frame) */
.ha.gear-mythic .ha-sprite::after { content: ''; position: absolute; left: 50%; bottom: 10px; width: 70px; height: 22px; margin-left: -35px; border-radius: 50%; background: radial-gradient(closest-side, #ff5c8a66, #b388ff33, transparent); animation: gearHalo 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes gearMyth { 0%, 100% { filter: drop-shadow(0 0 7px #ff5c8aaa) drop-shadow(0 0 16px #b388ff66); } 33% { filter: drop-shadow(0 0 7px #ffd23faa) drop-shadow(0 0 16px #ff5c8a66); } 66% { filter: drop-shadow(0 0 7px #4cc9f0aa) drop-shadow(0 0 16px #b388ff66); } }
@keyframes gearHalo { 50% { transform: scale(1.25); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .ha.gear-mythic .ha-sprite { animation: none; filter: drop-shadow(0 0 7px #ff5c8aaa); } }

/* v108: chapter auras (Lands of Ash): a glowing ring at your feet and motes rising round you, cheap (transform and opacity only) */
.ha[class*="aura-"] .ha-sprite::before { content: ''; position: absolute; left: 50%; bottom: 4px; width: 64px; height: 90px; margin-left: -32px; pointer-events: none; z-index: -1;
  background: radial-gradient(circle 3px at 20% 80%, var(--a1) 99%, transparent), radial-gradient(circle 2px at 70% 60%, var(--a2) 99%, transparent), radial-gradient(circle 2.5px at 45% 90%, var(--a1) 99%, transparent), radial-gradient(circle 2px at 85% 85%, var(--a2) 99%, transparent), radial-gradient(circle 2px at 10% 50%, var(--a1) 99%, transparent);
  animation: auraRise 2.6s linear infinite; }
.ha[class*="aura-"] .ha-shadow { box-shadow: 0 0 0 2px var(--a1), 0 0 14px 4px color-mix(in srgb, var(--a1) 60%, transparent), inset 0 0 10px var(--a2); animation: auraRing 2.2s ease-in-out infinite; }
@keyframes auraRise { 0% { transform: translateY(10px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-46px); opacity: 0; } }
@keyframes auraRing { 50% { transform: scale(1.18); opacity: .75; } }
.ha.mounted[class*="aura-"] .ha-sprite::before { bottom: 30px; }
@media (prefers-reduced-motion: reduce) { .ha[class*="aura-"] .ha-sprite::before, .ha[class*="aura-"] .ha-shadow { animation: none; } }
.ha.aura-ch1 { --a1: #ffd23f; --a2: #ff9a3a; }
.ha.aura-ch2 { --a1: #ff8fd0; --a2: #3ee6a8; }
.ha.aura-ch3 { --a1: #ff6a2a; --a2: #ffd23f; }
.ha.aura-ch4 { --a1: #8a5ae8; --a2: #2a1048; }
.ha.aura-ch5 { --a1: #7ad7ff; --a2: #e8fbff; }
.ha.aura-ch6 { --a1: #c6ff6b; --a2: #3ee6a8; }
.ha.aura-ch7 { --a1: #bff4ff; --a2: #4cc9f0; }
.ha.aura-ch8 { --a1: #ffe8a8; --a2: #ffffff; }
.ha.aura-ch9 { --a1: #b8a8a0; --a2: #ff7a3a; }
.ha.aura-ch10 { --a1: #ff3a2a; --a2: #ffb347; }
.ha.aura-ch11 { --a1: #ff5c8a; --a2: #b388ff; }
.hut-wall-ne, .hut-wall-nw { transition: opacity .25s ease; } .hut-room.behind-nw .hut-wall-nw, .hut-room.behind-ne .hut-wall-ne { opacity: .28; }
/* v111: an inner area of a scrolling window no longer scrolls by itself (one scroll bar per window) */
.hub-panel .hp-body .one-scroll { max-height: none !important; overflow-y: visible !important; height: auto !important; }
.hub-panel .agd-list { position: sticky; top: 0; align-self: start; }
/* v111: the rating auras (Champion and up) */
.ha.aura-rt4 { --a1: #ff6fd8; --a2: #ffd0f2; } .ha.aura-rt5 { --a1: #ff9a3a; --a2: #ffe08a; } .ha.aura-rt6 { --a1: #ff3a3a; --a2: #ffb38a; }
.ha.aura-rt7 { --a1: #ffd23f; --a2: #fff6c8; } .ha.aura-rt7 .ha-shadow { animation: auraRing 1.6s ease-in-out infinite, rt7Glow 3s linear infinite; } @keyframes rt7Glow { 50% { box-shadow: 0 0 0 3px #fff6c8, 0 0 24px 8px #ffd23f99, inset 0 0 12px #ff9a3a; } }
/* v112: the Season Crown aura (a weekly Ladder season won): gold and royal blue, with a slow crown of light */
.ha.aura-ss1 { --a1: #ffe08a; --a2: #4a6aff; } .ha.aura-ss1 .ha-shadow { animation: auraRing 2s ease-in-out infinite, ss1Glow 4s linear infinite; }
@keyframes ss1Glow { 0%, 100% { box-shadow: 0 0 0 2px #ffe08a, 0 0 18px 6px #ffd23f88, inset 0 0 10px #4a6aff; } 50% { box-shadow: 0 0 0 3px #9ab0ff, 0 0 26px 9px #4a6aff88, inset 0 0 12px #ffe08a; } }
/* v112: the Treasury auras (each with its own motion; transform, opacity and box-shadow only) */
.ha.aura-tr1 { --a1: #ff7a2a; --a2: #ffd23f; } .ha.aura-tr1 .ha-sprite::before { animation-duration: 1.8s; }
.ha.aura-tr2 { --a1: #a98aff; --a2: #5a4a7a; } .ha.aura-tr2 .ha-sprite::before { animation-duration: 3.8s; } .ha.aura-tr2 .ha-shadow { box-shadow: 0 0 0 1px #a98aff88, 0 0 26px 12px #6a5a9a77, inset 0 0 14px #a98aff; }
.ha.aura-tr3 { --a1: #7ae8ff; --a2: #ffffff; } .ha.aura-tr3 .ha-shadow { animation: auraRing 1.6s ease-in-out infinite; box-shadow: 0 0 0 2px #e8fbff, 0 0 0 5px #7ae8ff66, 0 0 18px 6px #4cc9f077; }
.ha.aura-tr4 { --a1: #ff8fd0; --a2: #c6ff6b; } .ha.aura-tr4 .ha-sprite::before { animation-duration: 3s; }
.ha.aura-tr5 { --a1: #ff4a2a; --a2: #ffd23f; } .ha.aura-tr5 .ha-sprite::before { animation-duration: 1.3s; } .ha.aura-tr5 .ha-shadow { animation: auraRing 1.3s ease-in-out infinite, tr5Glow 2s ease-in-out infinite; }
@keyframes tr5Glow { 50% { box-shadow: 0 0 0 3px #ffd23f, 0 0 28px 10px #ff4a2aaa, inset 0 0 14px #ffd23f; } }
.ha.aura-tr6 { --a1: #ffe08a; --a2: #8a9aff; } .ha.aura-tr6 .ha-sprite::before { animation: auraFall 3s linear infinite; } .ha.aura-tr6 .ha-shadow { box-shadow: 0 0 0 2px #8a9aff, 0 0 20px 6px #4a5aff77, inset 0 0 12px #ffe08a; }
@keyframes auraFall { 0% { transform: translateY(-50px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ha.aura-tr5 .ha-shadow, .ha.aura-tr6 .ha-sprite::before { animation: none; } }
/* v113: off screen, everything holds still (screens/hub.js sleepIO): no animation runs where nobody can see it */
.zz-off, .zz-off *, .zz-off::before, .zz-off::after, .zz-off *::before, .zz-off *::after { animation-play-state: paused !important; }
/* v113: the world atlas's map leaves room for its title, tabs and zoom bar above the bar at the bottom (taller in the south) */
.hub.ashland .online-local-shell, .hub.ashland .online-chart-wrap { height: clamp(260px, calc(100dvh - 450px), 650px); }
/* v113: windows show no purse in their title (your coins are always on the top bar); shop pages opened in the Hub keep it */
.hub-panel[data-custom] .hp-coins { display: none; }

/* v114: Settings → Performance → 🪶 Light (older computers): on top of Balanced (lowfx), the scenery holds still too */
.hub.lite.lowfx .hpw .hprop .sc-sway, .hub.lite .hpw .hprop *, .hub.lite .hpw img.hpimg, .hub.lite .hw-foam { animation: none !important; }
/* v114: Settings → Show frame rate (for testers): a small pill, out of the way of everything you click */
.hub-fps { position: absolute; z-index: 60; top: 8px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(20, 12, 40, .74); border: 1px solid rgba(255, 255, 255, .14); color: #3ee68a; font: 800 12px/1.2 inherit; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.hub-fps.ok { color: #ffd23f; } .hub-fps.slow { color: #ff8a8a; }
