:root {
  --ink: #fffaf0;
  --muted: #d7cee8;
  --night: #120927;
  --violet: #30105b;
  --gold: #ffdc69;
  --glass: rgba(20, 8, 49, 0.72);
  --edge: rgba(255, 255, 255, 0.2);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--night);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 13% 13%, rgba(151, 63, 216, 0.3), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(31, 205, 216, 0.18), transparent 30%),
    linear-gradient(145deg, #1e0c43 0%, #100723 48%, #08172c 100%);
  font-family: ui-rounded, "Avenir Next Rounded", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 4px solid #fff7a5;
  outline-offset: 4px;
}

.hub-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hub-shell::before,
.hub-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

.hub-shell::before {
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(115deg, transparent 0 49%, rgba(255, 255, 255, 0.025) 50% 51%, transparent 52%),
    linear-gradient(25deg, transparent 0 49%, rgba(255, 255, 255, 0.018) 50% 51%, transparent 52%);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.hub-shell::after {
  width: 66vw;
  height: 66vw;
  right: -32vw;
  bottom: -47vw;
  border: 1px solid rgba(103, 233, 229, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(22, 185, 206, 0.12), inset 0 0 100px rgba(73, 211, 223, 0.07);
}

.ambient-orbs {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.ambient-orbs span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff6a9;
  box-shadow: 0 0 18px 5px rgba(255, 222, 105, 0.55);
  animation: float-orb 6s ease-in-out infinite alternate;
}

.ambient-orbs span:nth-child(1) { left: 4%; top: 34%; animation-delay: -1s; }
.ambient-orbs span:nth-child(2) { left: 48%; top: 14%; width: 4px; height: 4px; animation-delay: -3s; }
.ambient-orbs span:nth-child(3) { right: 3%; top: 43%; background: #8ff8ff; animation-delay: -2s; }
.ambient-orbs span:nth-child(4) { left: 28%; bottom: 6%; width: 5px; height: 5px; animation-delay: -4s; }
.ambient-orbs span:nth-child(5) { right: 23%; bottom: 10%; background: #77f8ef; animation-delay: -2.5s; }

@keyframes float-orb {
  to { transform: translateY(-20px) scale(1.35); opacity: 0.4; }
}

.hub-header {
  min-height: 78px;
  padding: max(11px, env(safe-area-inset-top)) clamp(18px, 3vw, 48px) 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(180deg, rgba(24, 8, 51, 0.9), rgba(17, 7, 38, 0.68));
  box-shadow: 0 14px 42px rgba(4, 1, 18, 0.25);
  backdrop-filter: blur(18px) saturate(1.15);
}

.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-gem {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 3px solid #ffefa4;
  border-radius: 17px 21px 16px 22px;
  color: #41205c;
  background: linear-gradient(145deg, #fff9b2 5%, #ffc33d 68%, #e88421);
  box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.68), 0 6px 0 #9d501d, 0 12px 26px rgba(6, 2, 22, 0.42);
  font-size: 27px;
  font-weight: 1000;
  transform: rotate(-4deg);
}

.brand-gem::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px 16px 11px 17px;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 23px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-note {
  min-height: 44px;
  padding: 9px 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: #eae1f5;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-settings {
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: #fff9e5;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px rgba(255,255,255,.14);
  font-size: 11px;
  font-weight: 1000;
  cursor: pointer;
}

.header-settings span { color: var(--gold); font-size:15px; }
.header-settings:hover { background:rgba(255,255,255,.14); transform:translateY(-1px); }
.hub-page .ck-settings-launcher { display:none; }

.header-stars {
  color: var(--gold);
  filter: drop-shadow(0 0 7px #ffd96a);
}

.hub-main {
  width: min(1580px, calc(100% - clamp(28px, 5vw, 80px)));
  margin: 0 auto;
  padding: clamp(22px, 3vh, 38px) 0 clamp(18px, 3vh, 34px);
  flex: 1;
}

.welcome-panel {
  margin-bottom: clamp(18px, 2.7vh, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 520px);
  align-items: end;
  gap: clamp(24px, 5vw, 90px);
}

.eyebrow {
  margin: 0 0 9px;
  color: #ffdf71;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-right: 6px;
  filter: drop-shadow(0 0 8px #ffd85f);
}

.welcome-copy h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 8px 28px rgba(6, 1, 22, 0.4);
}

.welcome-copy > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 800;
}

.player-card {
  padding: 14px 15px 11px;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 18px 38px rgba(4, 1, 18, 0.25);
  backdrop-filter: blur(18px) saturate(1.15);
}

.player-card label {
  margin: 0 2px 8px;
  display: block;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.player-card label span {
  color: #cfc3e3;
  font-size: 10px;
  text-transform: uppercase;
}

.name-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.name-controls input,
.name-controls button {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 15px;
}

.name-controls input {
  width: 100%;
  padding: 0 15px;
  color: #261040;
  background: #fffaf2;
  box-shadow: inset 0 2px 5px rgba(39, 16, 64, 0.15);
  font-size: 16px;
  font-weight: 900;
}

.name-controls input::placeholder {
  color: #746583;
  font-weight: 700;
}

.name-controls button {
  padding: 0 16px;
  color: #fff9ea;
  background: linear-gradient(145deg, #5b2a88, #2d155c);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 4px 0 #160830;
  cursor: pointer;
  font-size: 13px;
  font-weight: 1000;
}

.name-controls button:hover {
  background: linear-gradient(145deg, #70409c, #3a1b6d);
  transform: translateY(-1px);
}

.name-controls button:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 2px 0 #160830;
}

.name-controls button span {
  margin-right: 4px;
  color: var(--gold);
  font-size: 17px;
}

.name-hint {
  min-height: 14px;
  margin: 8px 3px 0;
  color: #d5cbe6;
  font-size: 10px;
  font-weight: 700;
}

.device-save-note {
  margin: 10px 0 0;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(129, 245, 196, 0.23);
  border-radius: 14px;
  color: #ecfff6;
  background: linear-gradient(135deg, rgba(68, 204, 155, 0.11), rgba(32, 134, 173, 0.08));
}

.device-save-note > span:last-child,
.device-save-note strong,
.device-save-note small {
  display: block;
}

.device-save-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #183a3e;
  background: linear-gradient(145deg, #eaffab, #68e4a8);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7), 0 3px 0 #297b62;
  font-size: 17px;
  font-weight: 1000;
}

.device-save-note strong {
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.device-save-note small {
  margin-top: 3px;
  color: #ccebe3;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.25;
}

.world-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(380px, 0.78fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
}

.world-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-radius: clamp(28px, 3vw, 43px);
  filter: drop-shadow(0 28px 42px rgba(3, 1, 17, 0.42));
}

.world-card--lifequest {
  grid-row: 1 / 3;
  min-height: clamp(560px, 61vh, 660px);
}

.portal-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
  background: #241047;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.065),
    inset 0 -90px 110px rgba(7, 2, 26, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 0.45s var(--ease), border-color 0.3s ease, box-shadow 0.45s var(--ease);
}

.portal-link::before,
.portal-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.portal-link::before {
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.12), transparent 23% 68%, rgba(255, 255, 255, 0.06));
  mix-blend-mode: screen;
}

.portal-link::after {
  z-index: 5;
  background:
    linear-gradient(180deg, rgba(10, 3, 28, 0.06), transparent 31%, rgba(7, 2, 24, 0.16) 52%, rgba(7, 2, 24, 0.82) 100%),
    linear-gradient(90deg, rgba(9, 2, 27, 0.82) 0%, rgba(9, 2, 27, 0.43) 43%, transparent 71%);
}

.portal-link:hover,
.portal-link:focus-visible {
  z-index: 3;
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-8px) scale(1.012);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.09),
    inset 0 -90px 110px rgba(7, 2, 26, 0.52),
    0 28px 62px rgba(3, 1, 17, 0.5);
}

.world-backdrop {
  position: absolute;
  z-index: 0;
  inset: -3%;
  background-position: center;
  background-size: cover;
  transform: scale(1.035);
  transition: transform 1.1s var(--ease), filter 0.6s ease;
}

.world-card--candy .world-backdrop {
  background-image: url("assets/worlds/monster-candy-kingdom.webp");
  background-position: 57% center;
  filter: saturate(1.13) contrast(1.04) brightness(0.92);
}

.world-card--tidal .world-backdrop {
  background-image: url("assets/chess/undersea-castle-arena.webp");
  background-position: 51% center;
  filter: saturate(1.18) contrast(1.08) brightness(0.74);
}

.world-card--lifequest .world-backdrop {
  background-image: url("assets/lifequest/lifequest-world.webp");
  background-position: 51% center;
  filter: saturate(1.12) contrast(1.04) brightness(0.83);
}

.portal-link:hover .world-backdrop,
.portal-link:focus-visible .world-backdrop {
  transform: scale(1.095);
  filter: saturate(1.2) contrast(1.07) brightness(0.99);
}

.world-card--tidal .portal-link:hover .world-backdrop,
.world-card--tidal .portal-link:focus-visible .world-backdrop {
  filter: saturate(1.27) contrast(1.1) brightness(0.82);
}

.world-card--lifequest .portal-link:hover .world-backdrop,
.world-card--lifequest .portal-link:focus-visible .world-backdrop {
  filter: saturate(1.18) contrast(1.06) brightness(0.91);
}

.world-card--lifequest .portal-link::after {
  background:
    linear-gradient(180deg, rgba(7, 21, 38, 0.04), transparent 31%, rgba(7, 18, 30, 0.18) 58%, rgba(6, 16, 27, 0.82) 100%),
    linear-gradient(90deg, rgba(8, 27, 39, 0.88) 0%, rgba(8, 30, 39, 0.52) 42%, transparent 75%);
}

.portal-glow {
  position: absolute;
  z-index: 1;
  width: 74%;
  aspect-ratio: 1;
  right: -17%;
  bottom: -28%;
  border-radius: 50%;
  opacity: 0.58;
  filter: blur(20px);
}

.world-card--candy .portal-glow {
  background: radial-gradient(circle, rgba(255, 211, 90, 0.94), rgba(255, 88, 150, 0.38) 42%, transparent 70%);
}

.world-card--tidal .portal-glow {
  background: radial-gradient(circle, rgba(77, 239, 229, 0.84), rgba(25, 91, 206, 0.32) 44%, transparent 70%);
}

.world-card--lifequest .portal-glow {
  right: -11%;
  bottom: -24%;
  background: radial-gradient(circle, rgba(255, 225, 95, 0.9), rgba(81, 209, 144, 0.34) 42%, transparent 70%);
}

.world-character {
  position: absolute;
  z-index: 4;
  display: block;
  pointer-events: none;
  user-select: none;
  transition: transform 0.8s var(--ease), filter 0.5s ease;
}

.candy-friend {
  width: clamp(230px, 42%, 390px);
  right: -2.5%;
  bottom: -5%;
  filter: drop-shadow(0 24px 20px rgba(47, 7, 58, 0.52)) saturate(1.08);
  transform-origin: 50% 100%;
  animation: candy-bob 4.4s ease-in-out infinite alternate;
}

@keyframes candy-bob {
  to { transform: translateY(-9px) rotate(1.4deg); }
}

.pearl-queen {
  width: clamp(225px, 40%, 390px);
  right: -4%;
  bottom: -9%;
  filter: drop-shadow(0 25px 22px rgba(0, 19, 43, 0.78)) saturate(1.05);
  transform-origin: 60% 100%;
  animation: queen-float 5.2s ease-in-out -1s infinite alternate;
}

.abyss-knight {
  z-index: 3;
  width: clamp(165px, 27%, 270px);
  right: 27%;
  bottom: -9%;
  opacity: 0.83;
  filter: drop-shadow(0 20px 18px rgba(0, 6, 29, 0.76)) saturate(1.08);
  transform: scale(0.92) rotate(-3deg);
}

.lifequest-dreamer {
  width: clamp(265px, 37%, 390px);
  right: -2%;
  bottom: -7%;
  filter: drop-shadow(0 25px 21px rgba(18, 44, 25, 0.52)) saturate(1.04);
  transform-origin: 55% 100%;
  animation: dreamer-bob 4.8s ease-in-out -1.2s infinite alternate;
}

.lifequest-guide {
  z-index: 3;
  width: clamp(210px, 29%, 315px);
  right: 25%;
  bottom: -8%;
  opacity: 0.9;
  filter: drop-shadow(0 21px 18px rgba(19, 50, 33, 0.5)) saturate(1.06);
  transform: rotate(-2deg) scale(0.94);
  transform-origin: 50% 100%;
  animation: guide-float 5.4s ease-in-out infinite alternate;
}

@keyframes dreamer-bob {
  to { transform: translateY(-10px) rotate(1.2deg); }
}

@keyframes guide-float {
  to { transform: translateY(-13px) rotate(1deg) scale(0.96); }
}

.lifequest-sun-ring {
  position: absolute;
  z-index: 1;
  width: 430px;
  height: 430px;
  right: -80px;
  bottom: -125px;
  border: 1px solid rgba(255, 244, 155, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(255, 220, 91, 0.3), inset 0 0 55px rgba(255, 243, 166, 0.12);
  animation: dream-ring 9s linear infinite;
}

.lifequest-sun-ring::before,
.lifequest-sun-ring::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(197, 255, 193, 0.42);
  border-radius: 50%;
}

.lifequest-sun-ring::before { inset: 48px; }
.lifequest-sun-ring::after { inset: 96px; border-style: solid; opacity: 0.55; }

@keyframes dream-ring { to { transform: rotate(360deg); } }

.dream-sparkles {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.dream-sparkles i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff6a6;
  box-shadow: 0 0 17px 5px rgba(255, 222, 94, 0.64);
  animation: dream-spark 2.8s ease-in-out infinite alternate;
}

.dream-sparkles i:nth-child(1) { left: 57%; top: 18%; }
.dream-sparkles i:nth-child(2) { right: 8%; top: 27%; width: 5px; height: 5px; animation-delay: -.7s; }
.dream-sparkles i:nth-child(3) { left: 48%; bottom: 18%; width: 6px; height: 6px; animation-delay: -1.4s; }
.dream-sparkles i:nth-child(4) { right: 29%; top: 41%; width: 4px; height: 4px; animation-delay: -2s; }
.dream-sparkles i:nth-child(5) { left: 68%; bottom: 12%; width: 4px; height: 4px; animation-delay: -.4s; }

@keyframes dream-spark { to { opacity: .25; transform: translateY(-13px) scale(1.5); } }

@keyframes queen-float {
  to { transform: translateY(-10px) rotate(-1deg); }
}

.portal-link:hover .candy-friend,
.portal-link:focus-visible .candy-friend {
  animation-play-state: paused;
  transform: translateY(-12px) rotate(2deg) scale(1.045);
  filter: drop-shadow(0 31px 24px rgba(47, 7, 58, 0.6)) saturate(1.16);
}

.portal-link:hover .pearl-queen,
.portal-link:focus-visible .pearl-queen {
  animation-play-state: paused;
  transform: translateY(-12px) rotate(-1deg) scale(1.045);
  filter: drop-shadow(0 32px 25px rgba(0, 19, 43, 0.85)) saturate(1.13);
}

.portal-link:hover .abyss-knight,
.portal-link:focus-visible .abyss-knight {
  transform: translateX(-8px) rotate(-5deg) scale(0.95);
}

.portal-link:hover .lifequest-dreamer,
.portal-link:focus-visible .lifequest-dreamer {
  animation-play-state: paused;
  transform: translateY(-12px) rotate(1deg) scale(1.045);
  filter: drop-shadow(0 31px 24px rgba(18, 44, 25, 0.6)) saturate(1.12);
}

.portal-link:hover .lifequest-guide,
.portal-link:focus-visible .lifequest-guide {
  animation-play-state: paused;
  transform: translateX(-8px) translateY(-9px) rotate(-2deg) scale(.98);
}

.world-topline {
  position: absolute;
  z-index: 7;
  top: clamp(20px, 3vw, 32px);
  left: clamp(20px, 3vw, 34px);
  right: clamp(20px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.87);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.world-number {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(10, 3, 29, 0.3);
  backdrop-filter: blur(10px);
}

.world-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.world-card--candy .world-mode span { color: #ffe66e; }
.world-card--tidal .world-mode span { color: #61f6e8; }
.world-card--lifequest .world-mode span { color: #b8ff9d; }

.world-copy {
  position: absolute;
  z-index: 8;
  left: clamp(24px, 4vw, 52px);
  bottom: clamp(64px, 9vh, 98px);
  width: 56%;
  text-shadow: 0 5px 24px rgba(5, 1, 22, 0.65);
}

.world-kicker {
  display: block;
  margin-bottom: 10px;
  color: #fff0a6;
  font-size: clamp(9px, 0.85vw, 12px);
  font-weight: 1000;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.world-card--tidal .world-kicker {
  color: #93fff3;
}

.world-card--lifequest .world-kicker {
  color: #d5ffad;
}

.world-copy h2 {
  margin: 0;
  font-size: clamp(42px, 5.1vw, 76px);
  line-height: 0.82;
  letter-spacing: -0.065em;
}

.world-card--tidal .world-copy h2 {
  font-size: clamp(38px, 4.4vw, 68px);
  line-height: 0.88;
}

.world-card--lifequest .world-copy {
  width: 58%;
  bottom: clamp(67px, 8vh, 88px);
}

.world-card--lifequest .world-copy h2 {
  color: #fffdf1;
  font-size: clamp(54px, 5.4vw, 82px);
  line-height: .84;
  text-shadow: 0 7px 26px rgba(4, 25, 26, 0.62);
}

.world-card--lifequest .world-copy h2 span {
  display: block;
  margin-bottom: 7px;
  color: #ffe783;
  font-size: .26em;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.world-card--lifequest .lifequest-promise {
  margin: 18px 0 3px;
  color: #fff2a4;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 1000;
  letter-spacing: -.025em;
}

.world-card--lifequest .lifequest-summary {
  margin: 4px 0 20px;
  font-size: clamp(12px, 1.1vw, 16px);
}

.world-copy p {
  max-width: 360px;
  margin: 17px 0 21px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 800;
  line-height: 1.35;
}

.world-cta {
  min-height: 52px;
  min-width: 205px;
  padding: 0 7px 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  color: #34104f;
  background: linear-gradient(145deg, #fff7ae, #ffc742);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.58), 0 6px 0 #a75521, 0 13px 25px rgba(18, 4, 36, 0.36);
  text-shadow: none;
  font-size: 13px;
  font-weight: 1000;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.world-card--tidal .world-cta {
  color: #042e42;
  background: linear-gradient(145deg, #b3fff2, #48dcd9 70%, #25a8c3);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.5), 0 6px 0 #17658a, 0 13px 25px rgba(1, 20, 39, 0.42);
}

.world-card--lifequest .world-cta {
  color: #173f34;
  background: linear-gradient(145deg, #f8ffb7, #9bea72 68%, #54c986);
  box-shadow: inset 0 2px rgba(255,255,255,.58), 0 6px 0 #277c5a, 0 13px 25px rgba(3, 37, 31, .4);
}

.cta-arrow {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #4b1d6d;
  font-size: 21px;
  transition: transform 0.3s var(--ease);
}

.world-card--tidal .cta-arrow {
  background: #075379;
}

.world-card--lifequest .cta-arrow {
  background: #267455;
}

.portal-link:hover .world-cta,
.portal-link:focus-visible .world-cta {
  transform: translateY(-2px);
}

.portal-link:hover .cta-arrow,
.portal-link:focus-visible .cta-arrow {
  transform: translateX(3px);
}

.world-footer {
  position: absolute;
  z-index: 8;
  right: clamp(24px, 3vw, 38px);
  bottom: 25px;
  left: clamp(24px, 3vw, 38px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.world-footer i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.candy-cloud {
  position: absolute;
  z-index: 1;
  width: 95px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 232, 246, 0.52);
  filter: blur(1px);
  animation: cloud-drift 8s ease-in-out infinite alternate;
}

.candy-cloud::before,
.candy-cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
}

.candy-cloud::before { width: 48px; height: 48px; left: 10px; }
.candy-cloud::after { width: 60px; height: 60px; right: 5px; }
.candy-cloud--one { top: 29%; right: 7%; opacity: 0.58; }
.candy-cloud--two { top: 16%; left: 39%; opacity: 0.34; transform: scale(0.65); animation-delay: -4s; }

@keyframes cloud-drift {
  to { transform: translateX(13px) translateY(-6px); }
}

.sea-caustics {
  position: absolute;
  z-index: 1;
  inset: -20%;
  opacity: 0.2;
  background:
    repeating-radial-gradient(ellipse at 70% 0%, transparent 0 27px, rgba(136, 255, 244, 0.5) 30px 32px, transparent 35px 58px);
  transform: rotate(-12deg) scale(1.2);
  mix-blend-mode: screen;
  animation: tide-light 8s linear infinite;
}

@keyframes tide-light {
  to { transform: rotate(-8deg) translate3d(20px, 14px, 0) scale(1.22); }
}

.hub-footer {
  min-height: 44px;
  padding: 8px clamp(18px, 3vw, 48px) max(8px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(229, 220, 241, 0.64);
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-mark {
  color: rgba(255, 224, 107, 0.76);
  letter-spacing: 0.16em;
}

@media (min-width: 1181px) {
  .world-card--candy { grid-column: 2; grid-row: 1; }
  .world-card--tidal { grid-column: 2; grid-row: 2; }

  .world-card--candy .world-copy,
  .world-card--tidal .world-copy {
    left: 28px;
    bottom: 47px;
    width: 63%;
  }

  .world-card--candy .world-kicker,
  .world-card--tidal .world-kicker {
    margin-bottom: 7px;
    font-size: 8px;
  }

  .world-card--candy .world-copy h2,
  .world-card--tidal .world-copy h2 {
    font-size: clamp(38px, 2.8vw, 49px);
    line-height: .84;
  }

  .world-card--candy .world-copy p,
  .world-card--tidal .world-copy p { display: none; }

  .world-card--candy .world-cta,
  .world-card--tidal .world-cta {
    min-width: 174px;
    min-height: 46px;
    margin-top: 14px;
    padding-left: 15px;
    font-size: 11px;
  }

  .world-card--candy .cta-arrow,
  .world-card--tidal .cta-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .world-card--candy .world-topline,
  .world-card--tidal .world-topline {
    top: 17px;
    right: 22px;
    left: 22px;
    font-size: 8px;
  }

  .world-card--candy .world-number,
  .world-card--tidal .world-number { padding: 6px 9px; }

  .world-card--candy .world-footer,
  .world-card--tidal .world-footer {
    right: 25px;
    bottom: 13px;
    left: 25px;
    gap: 7px;
    font-size: 7px;
  }

  .world-card--candy .candy-friend { width: 36%; right: -1%; bottom: -9%; }
  .world-card--tidal .pearl-queen { width: 33%; right: -2%; bottom: -12%; }
  .world-card--tidal .abyss-knight { width: 22%; right: 25%; bottom: -12%; }
}

@media (max-width: 1180px) {
  .world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }

  .world-card--lifequest {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: clamp(470px, 55vh, 560px);
  }

  .world-card--candy,
  .world-card--tidal { min-height: clamp(410px, 49vh, 530px); }
}

@media (max-width: 1050px) {
  .hub-main {
    width: min(960px, calc(100% - 32px));
  }

  .welcome-panel {
    grid-template-columns: minmax(0, 0.8fr) minmax(330px, 1.2fr);
    gap: 22px;
  }

  .world-card {
    min-height: clamp(410px, 51vh, 560px);
  }

  .world-card--lifequest { min-height: clamp(470px, 55vh, 540px); }

  .world-copy {
    left: 27px;
    width: 62%;
  }

  .world-copy h2 { font-size: clamp(42px, 6.6vw, 64px); }
  .world-card--tidal .world-copy h2 { font-size: clamp(37px, 5.9vw, 56px); }
  .world-copy p { max-width: 260px; }
  .candy-friend { right: -12%; width: 51%; }
  .pearl-queen { right: -12%; width: 48%; }
  .abyss-knight { right: 22%; width: 31%; opacity: 0.72; }
  .lifequest-dreamer { right: -6%; width: 37%; }
  .lifequest-guide { right: 24%; width: 28%; }
}

@media (max-width: 760px) {
  .hub-header {
    align-items: flex-start;
  }

  .header-tools {
    max-width: min(58vw, 330px);
  }

  .header-settings {
    width: 44px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .header-settings span { font-size:17px; }

  .header-note {
    display: none;
  }

  .hub-shell {
    overflow: visible;
  }

  .hub-header {
    min-height: 68px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand-gem {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .brand-copy strong { font-size: 21px; }
  .header-note { display: none; }

  .hub-main {
    width: min(100% - 24px, 600px);
    padding-top: 21px;
  }

  .welcome-panel {
    margin-bottom: 18px;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 16px;
  }

  .welcome-copy {
    text-align: center;
  }

  .welcome-copy h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .world-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .world-card {
    min-height: min(510px, 69vh);
  }

  .world-card--lifequest {
    grid-column: auto;
    min-height: min(540px, 72vh);
  }

  .world-copy {
    left: clamp(22px, 7vw, 38px);
    bottom: 69px;
    width: 59%;
  }

  .world-copy h2 { font-size: clamp(46px, 14vw, 69px); }
  .world-card--tidal .world-copy h2 { font-size: clamp(41px, 11.5vw, 61px); }
  .world-card--lifequest .world-copy { width: 62%; }
  .world-card--lifequest .world-copy h2 { font-size: clamp(51px, 12vw, 68px); }
  .world-card--lifequest .lifequest-promise { font-size: clamp(17px, 4vw, 22px); }
  .world-copy p { max-width: 290px; font-size: 14px; }
  .world-kicker { font-size: 9px; }
  .candy-friend { right: -7%; width: min(52%, 330px); }
  .pearl-queen { right: -8%; width: min(48%, 310px); }
  .abyss-knight { right: 24%; width: min(30%, 195px); }
  .lifequest-dreamer { right: -6%; width: min(40%, 290px); }
  .lifequest-guide { right: 25%; width: min(30%, 220px); }
  .portal-link::after { background: linear-gradient(180deg, rgba(10,3,28,.03), transparent 24%, rgba(7,2,24,.2) 52%, rgba(7,2,24,.85) 100%), linear-gradient(90deg, rgba(9,2,27,.82), rgba(9,2,27,.34) 62%, transparent 88%); }
}

@media (max-width: 480px) {
  .hub-header {
    gap: 10px;
    padding-inline: 13px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-gem {
    width: 44px;
    height: 44px;
  }

  .header-tools {
    max-width: calc(100vw - 152px);
  }

  .hub-main {
    width: calc(100% - 20px);
  }

  .eyebrow { font-size: 9px; }
  .welcome-copy > p:last-child { font-size: 13px; }

  .player-card {
    padding: 11px;
    border-radius: 20px;
  }

  .name-controls {
    grid-template-columns: minmax(0, 1fr) 108px;
  }

  .name-controls input,
  .name-controls button {
    min-height: 52px;
  }

  .name-controls input {
    min-width: 0;
    padding: 0 12px;
    font-size: 15px;
  }

  .name-controls button {
    padding: 0 10px;
  }

  .world-card {
    min-height: 430px;
    border-radius: 28px;
  }

  .world-card--lifequest { min-height: 480px; }

  .world-topline {
    top: 19px;
    right: 18px;
    left: 18px;
  }

  .world-number { padding: 7px 9px; }
  .world-mode { font-size: 8px; }

  .world-copy {
    left: 23px;
    bottom: 61px;
    width: 65%;
  }

  .world-copy h2 { font-size: clamp(46px, 16vw, 62px); }
  .world-card--tidal .world-copy h2 { font-size: clamp(37px, 12.8vw, 51px); }
  .world-card--lifequest .world-copy {
    bottom: 61px;
    width: 70%;
  }
  .world-card--lifequest .world-copy h2 { font-size: clamp(48px, 14vw, 59px); }
  .world-card--lifequest .lifequest-promise { margin-top: 13px; font-size: 16px; }
  .world-card--lifequest .lifequest-summary { margin: 3px 0 16px; font-size: 11px; }
  .world-copy p { margin: 13px 0 17px; font-size: 12px; }
  .world-cta { min-width: 188px; min-height: 50px; padding-left: 15px; font-size: 12px; }
  .cta-arrow { width: 37px; height: 37px; }
  .world-footer { right: 22px; bottom: 18px; left: 22px; gap: 7px; font-size: 7px; }
  .candy-friend { right: -17%; width: 58%; opacity: 0.94; }
  .pearl-queen { right: -15%; width: 54%; opacity: 0.96; }
  .abyss-knight { right: 20%; width: 33%; opacity: 0.62; }
  .lifequest-dreamer { right: -18%; width: 55%; opacity: .94; }
  .lifequest-guide { right: 19%; width: 38%; opacity: .66; }
  .hub-footer { justify-content: center; text-align: center; }
  .footer-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Six-world collection ----------------------------------------------------- */
.hub-shell--six .hub-main {
  width: min(1660px, calc(100% - clamp(28px, 4vw, 72px)));
}

.hub-shell--six .world-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  gap: clamp(18px, 1.8vw, 28px);
}

.hub-shell--six .world-card,
.hub-shell--six .world-card--lifequest,
.hub-shell--six .world-card--candy,
.hub-shell--six .world-card--tidal {
  grid-column: auto;
  grid-row: auto;
  min-height: clamp(475px, 35vw, 545px);
}

.hub-shell--six .world-copy,
.hub-shell--six .world-card--candy .world-copy,
.hub-shell--six .world-card--tidal .world-copy,
.hub-shell--six .world-card--lifequest .world-copy {
  left: clamp(25px, 2.2vw, 36px);
  bottom: 64px;
  width: 66%;
}

.hub-shell--six .world-copy h2,
.hub-shell--six .world-card--candy .world-copy h2,
.hub-shell--six .world-card--tidal .world-copy h2,
.hub-shell--six .world-card--lifequest .world-copy h2 {
  font-size: clamp(39px, 3.2vw, 53px);
  line-height: .86;
}

.hub-shell--six .world-card--lifequest .world-copy h2 span {
  margin-bottom: 6px;
  font-size: .25em;
}

.hub-shell--six .world-copy p,
.hub-shell--six .world-card--candy .world-copy p,
.hub-shell--six .world-card--tidal .world-copy p {
  display: block;
  max-width: 295px;
  margin: 13px 0 17px;
  font-size: clamp(11px, .93vw, 14px);
}

.hub-shell--six .world-card--lifequest .lifequest-promise {
  margin: 12px 0 1px;
  font-size: clamp(15px, 1.25vw, 19px);
}

.hub-shell--six .world-card--lifequest .lifequest-summary {
  margin: 3px 0 16px;
  font-size: clamp(10px, .9vw, 13px);
}

.hub-shell--six .world-kicker,
.hub-shell--six .world-card--candy .world-kicker,
.hub-shell--six .world-card--tidal .world-kicker {
  margin-bottom: 8px;
  font-size: clamp(8px, .66vw, 10px);
}

.hub-shell--six .world-cta,
.hub-shell--six .world-card--candy .world-cta,
.hub-shell--six .world-card--tidal .world-cta {
  min-width: 185px;
  min-height: 48px;
  margin-top: 0;
  padding-left: 16px;
  font-size: 11px;
}

.hub-shell--six .cta-arrow,
.hub-shell--six .world-card--candy .cta-arrow,
.hub-shell--six .world-card--tidal .cta-arrow {
  width: 36px;
  height: 36px;
  font-size: 19px;
}

.hub-shell--six .world-topline,
.hub-shell--six .world-card--candy .world-topline,
.hub-shell--six .world-card--tidal .world-topline {
  top: 20px;
  right: 22px;
  left: 22px;
  font-size: 8px;
}

.hub-shell--six .world-number,
.hub-shell--six .world-card--candy .world-number,
.hub-shell--six .world-card--tidal .world-number {
  padding: 7px 9px;
}

.hub-shell--six .world-footer,
.hub-shell--six .world-card--candy .world-footer,
.hub-shell--six .world-card--tidal .world-footer {
  right: 25px;
  bottom: 18px;
  left: 25px;
  gap: 7px;
  font-size: 7px;
}

.world-card--checkers .world-backdrop {
  background-image: url("assets/checkers/kitchen-coliseum.webp");
  background-position: 52% center;
  filter: saturate(1.14) contrast(1.08) brightness(.77);
}

.world-card--solitaire .world-backdrop {
  background-image: url("assets/solitaire/starfall-observatory.webp");
  background-position: 53% center;
  filter: saturate(1.13) contrast(1.07) brightness(.76);
}

.world-card--skyworks .world-backdrop {
  background-image: url("assets/skyworks/skyworks-world.webp");
  background-position: 50% center;
  filter: saturate(1.12) contrast(1.05) brightness(.79);
}

.world-card--checkers .portal-link::after {
  background:
    linear-gradient(180deg, rgba(32,12,4,.03), transparent 25%, rgba(35,10,4,.12) 50%, rgba(27,8,3,.87) 100%),
    linear-gradient(90deg, rgba(26,9,3,.9), rgba(31,9,4,.48) 53%, transparent 82%);
}

.world-card--solitaire .portal-link::after {
  background:
    linear-gradient(180deg, rgba(6,8,42,.04), transparent 26%, rgba(4,8,38,.18) 53%, rgba(4,7,30,.9) 100%),
    linear-gradient(90deg, rgba(6,7,39,.92), rgba(8,8,50,.46) 52%, transparent 82%);
}

.world-card--skyworks .portal-link::after {
  background:
    linear-gradient(180deg, rgba(7,26,48,.02), transparent 28%, rgba(6,27,50,.12) 54%, rgba(5,24,46,.88) 100%),
    linear-gradient(90deg, rgba(6,26,48,.9), rgba(7,31,54,.42) 52%, transparent 82%);
}

.world-card--checkers .portal-glow {
  background: radial-gradient(circle, rgba(255,213,74,.94), rgba(255,86,34,.38) 43%, transparent 70%);
}

.world-card--solitaire .portal-glow {
  background: radial-gradient(circle, rgba(255,229,112,.88), rgba(129,75,255,.38) 43%, transparent 70%);
}

.world-card--skyworks .portal-glow {
  background: radial-gradient(circle, rgba(255,236,118,.9), rgba(74,198,255,.38) 43%, transparent 70%);
}

.world-card--checkers .world-mode span { color: #ffde56; }
.world-card--solitaire .world-mode span { color: #c5a5ff; }
.world-card--skyworks .world-mode span { color: #8ff5ff; }
.world-card--checkers .world-kicker { color: #ffe27d; }
.world-card--solitaire .world-kicker { color: #d7c5ff; }
.world-card--skyworks .world-kicker { color: #9ff7ff; }

.world-card--checkers .world-cta {
  color: #4a1f11;
  background: linear-gradient(145deg, #fff39a, #ffb52f 70%, #f07822);
  box-shadow: inset 0 2px rgba(255,255,255,.56), 0 6px 0 #91451d, 0 13px 25px rgba(28,8,2,.44);
}

.world-card--checkers .cta-arrow { background: #a23b25; }

.world-card--solitaire .world-cta {
  color: #251a5a;
  background: linear-gradient(145deg, #fff6b4, #c7a8ff 68%, #8785ff);
  box-shadow: inset 0 2px rgba(255,255,255,.62), 0 6px 0 #514ba2, 0 13px 25px rgba(4,5,36,.45);
}

.world-card--solitaire .cta-arrow { background: #4b3a99; }

.world-card--skyworks .world-cta {
  color: #123c50;
  background: linear-gradient(145deg, #fff8a6, #72ecff 70%, #2fb9ec);
  box-shadow: inset 0 2px rgba(255,255,255,.58), 0 6px 0 #24779a, 0 13px 25px rgba(3,30,49,.43);
}

.world-card--skyworks .cta-arrow { background: #176989; }

.checkers-brocco {
  width: 46%;
  right: -4%;
  bottom: -4%;
  filter: drop-shadow(0 24px 20px rgba(23,11,2,.62)) saturate(1.08);
  transform-origin: 50% 100%;
  animation: brocco-ready 4.3s ease-in-out infinite alternate;
}

.checkers-cruller {
  z-index: 3;
  width: 39%;
  right: 23%;
  bottom: -7%;
  filter: drop-shadow(0 22px 18px rgba(35,9,2,.58)) saturate(1.06);
  transform: rotate(-4deg) scale(.94);
  transform-origin: 50% 100%;
  animation: cruller-ready 4.8s ease-in-out -1.4s infinite alternate;
}

.solitaire-nova {
  width: 49%;
  right: -4%;
  bottom: -7%;
  filter: drop-shadow(0 25px 21px rgba(5,5,39,.7)) saturate(1.08);
  transform-origin: 50% 100%;
  animation: nova-float 4.2s ease-in-out infinite alternate;
}

.skyworks-pip {
  width: 48%;
  right: -2%;
  bottom: -8%;
  filter: drop-shadow(0 26px 21px rgba(2,28,49,.64)) saturate(1.08);
  transform-origin: 50% 100%;
  animation: skyworks-hover 3.6s ease-in-out infinite alternate;
}

.portal-link:hover .checkers-brocco,
.portal-link:focus-visible .checkers-brocco,
.portal-link:hover .checkers-cruller,
.portal-link:focus-visible .checkers-cruller,
.portal-link:hover .solitaire-nova,
.portal-link:focus-visible .solitaire-nova,
.portal-link:hover .skyworks-pip,
.portal-link:focus-visible .skyworks-pip {
  animation-play-state: paused;
  transform: translateY(-10px) scale(1.04);
}

.kitchen-steam,
.star-trails,
.sky-speed-lines {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.kitchen-steam i {
  position: absolute;
  width: 42px;
  height: 94px;
  border: 5px solid rgba(255,245,207,.22);
  border-color: rgba(255,245,207,.22) transparent;
  border-radius: 50%;
  filter: blur(2px);
  animation: steam-rise 4.2s ease-in-out infinite;
}

.kitchen-steam i:nth-child(1) { right: 9%; bottom: 16%; }
.kitchen-steam i:nth-child(2) { right: 29%; bottom: 8%; transform:scale(.7); animation-delay:-1.6s; }
.kitchen-steam i:nth-child(3) { right: 43%; bottom: 18%; transform:scale(.48); animation-delay:-2.7s; }

.star-trails i,
.sky-speed-lines i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff8bd;
  box-shadow: 0 0 17px 5px rgba(214,185,255,.58);
  animation: portal-twinkle 2.7s ease-in-out infinite alternate;
}

.star-trails i:nth-child(1) { right: 8%; top: 19%; }
.star-trails i:nth-child(2) { right: 32%; top: 34%; transform:scale(.6); animation-delay:-.8s; }
.star-trails i:nth-child(3) { right: 19%; bottom: 27%; transform:scale(.45); animation-delay:-1.5s; }
.star-trails i:nth-child(4) { left: 49%; top: 17%; transform:scale(.5); animation-delay:-2.2s; }

.sky-speed-lines i {
  width: 72px;
  height: 3px;
  border-radius: 5px;
  background: linear-gradient(90deg, transparent, rgba(231,252,255,.75));
  box-shadow: none;
  animation: speed-sweep 3.4s ease-in-out infinite;
}

.sky-speed-lines i:nth-child(1) { right: 5%; top: 24%; }
.sky-speed-lines i:nth-child(2) { right: 28%; top: 39%; width:48px; animation-delay:-1.1s; }
.sky-speed-lines i:nth-child(3) { right: 13%; bottom: 31%; width:92px; animation-delay:-2.3s; }

@keyframes brocco-ready { to { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes cruller-ready { to { transform: translateY(-9px) rotate(-1deg) scale(.96); } }
@keyframes nova-float { to { transform: translateY(-13px) rotate(1.2deg); } }
@keyframes skyworks-hover { to { transform: translateY(-11px) rotate(1.5deg); } }
@keyframes steam-rise { 0% { opacity:0; transform:translateY(18px) scale(.7); } 50% { opacity:.8; } 100% { opacity:0; transform:translateY(-30px) scale(1.1); } }
@keyframes portal-twinkle { to { opacity:.28; transform:translateY(-8px) scale(1.45); } }
@keyframes speed-sweep { 0%,100% { opacity:0; transform:translateX(24px); } 45% { opacity:.8; } 70% { transform:translateX(-18px); } }

@media (max-width: 1180px) {
  .hub-shell--six .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-shell--six .world-card,
  .hub-shell--six .world-card--lifequest { min-height: clamp(465px, 54vw, 535px); }
}

@media (max-width: 760px) {
  .hub-shell--six .hub-main { width: min(100% - 24px, 600px); }
  .hub-shell--six .world-grid { grid-template-columns: 1fr; }
  .hub-shell--six .world-card,
  .hub-shell--six .world-card--lifequest { min-height: min(510px, 69vh); }
  .hub-shell--six .world-copy,
  .hub-shell--six .world-card--lifequest .world-copy { left:clamp(22px,7vw,38px); bottom:66px; width:66%; }
  .hub-shell--six .world-copy h2,
  .hub-shell--six .world-card--lifequest .world-copy h2 { font-size:clamp(43px,12vw,61px); }
}

@media (max-width: 480px) {
  .hub-shell--six .world-card,
  .hub-shell--six .world-card--lifequest { min-height: 455px; }
  .hub-shell--six .world-copy,
  .hub-shell--six .world-card--lifequest .world-copy { left:22px; bottom:60px; width:70%; }
  .hub-shell--six .world-copy h2,
  .hub-shell--six .world-card--lifequest .world-copy h2 { font-size:clamp(40px,12.8vw,54px); }
  .hub-shell--six .world-copy p { max-width:255px; font-size:11px; }
  .checkers-brocco { right:-12%; width:53%; }
  .checkers-cruller { right:20%; width:42%; opacity:.8; }
  .solitaire-nova { right:-11%; width:55%; }
  .skyworks-pip { right:-10%; width:54%; }
}
