:root {
  --bg: #08091d;
  --surface: #111329;
  --line: #25273e;
  --text: #f6f4f7;
  --muted: #9394aa;
  --coral: #ff626b;
  --indigo: #5b51ff;
  --mint: #a8f0d5;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 5px;
}
button {
  border: 0;
}
p {
  line-height: 1.7;
  color: var(--muted);
}
h1,
h2,
h3 {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 800;
}
h2 {
  font-size: clamp(26px, 3vw, 38px);
}
h3 {
  font-size: 24px;
}
em {
  font-style: normal;
  color: var(--coral);
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1440px;
  padding: 0 64px;
  margin: auto;
}
header {
  height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff0c;
}
.brand {
  display: block;
  width: 180px;
  overflow: hidden;
}
.brand img {
  display: block;
  width: 220px;
  margin: -10px -20px;
  max-width: none;
}
nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 600;
}
.nav-join {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 18px;
}
.nav-join span {
  margin-left: 22px;
  color: var(--coral);
}
.icon-btn {
  background: transparent;
  font-size: 26px;
  color: var(--muted);
  padding: 8px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 650px;
  gap: 24px;
  padding: 65px 0 54px;
}
.pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 9px 13px;
  color: #bcbccf;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 10px #a8f0d533;
}
.hero h1 {
  margin: 24px 0;
  letter-spacing: -0.055em;
  line-height: 1.08;
}
.hero p {
  font-size: 15px;
  margin: 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}
.primary {
  background: var(--coral);
  color: #160d22;
  padding: 17px 24px;
  border-radius: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary:hover:not(:disabled) {
  background: #ff7c83;
  transform: translateY(-2px);
}
.primary span {
  font-size: 20px;
}
.text-link {
  font-size: 14px;
  font-weight: 600;
}
.text-link span {
  margin-left: 10px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 24px;
}
.hero-note > span:first-child {
  color: var(--mint);
}
.hero-visual {
  height: 470px;
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 55%, #29226542, transparent 67%);
}
.scene-screen {
  position: absolute;
  left: 7%;
  top: 15%;
  width: 88%;
  height: 59%;
  padding: 12px;
  background: linear-gradient(135deg, #36364e, #15172c 55%);
  border: 1px solid #646076;
  border-radius: 16px;
  transform: perspective(1000px) rotateY(-8deg) rotateX(5deg) rotateZ(-3deg);
  box-shadow: 20px 25px 55px #0007;
  z-index: 2;
}
.screen-bar {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 18px;
  margin-bottom: 7px;
}
.screen-bar span {
  width: 4px;
  height: 4px;
  background: #73728b;
  border-radius: 50%;
}
.screen-bar b {
  font-size: 6px;
  letter-spacing: 2px;
  margin-left: auto;
  color: #8f8ca6;
}
.screen-stage {
  height: calc(100% - 25px);
  background: radial-gradient(circle at 80% 30%, #4f357a, #22244c 70%);
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}
.stage-title {
  font-family: "Manrope", sans-serif;
  font-size: 54px;
  line-height: 0.98;
  font-weight: 800;
  position: absolute;
  top: 23%;
  left: 12%;
  letter-spacing: -4px;
}
.stage-title em {
  color: #ff8289;
}
.stage-chip {
  position: absolute;
  bottom: 19px;
  left: 12%;
  font-size: 6px;
  letter-spacing: 3px;
  color: #b2adcf;
}
.stage-orbit {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid #958bc033;
  border-radius: 50%;
  top: -14%;
  right: -10%;
  box-shadow:
    0 0 0 30px #8878e009,
    0 0 0 60px #8878e006;
}
.game-token {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 22%;
  width: 62px;
  height: 62px;
  font-size: 42px;
  font-weight: 800;
  box-shadow: 6px 10px 0 #0002;
  transform: rotate(14deg);
}
.token-one {
  right: 13%;
  top: 15%;
  background: #ff626b;
  color: #54224c;
}
.token-two {
  right: 29%;
  top: 58%;
  background: #655bff;
  color: #c1bbff;
  transform: rotate(-15deg);
  width: 50px;
  height: 50px;
}
.token-three {
  right: 1%;
  top: 64%;
  background: #a3e7d2;
  color: #4a8d8a;
  width: 35px;
  height: 35px;
  font-size: 22px;
}
.screen-foot {
  position: absolute;
  top: 72%;
  left: 34%;
  height: 26px;
  width: 33%;
  background: linear-gradient(#25253c, #3c3a50);
  clip-path: polygon(
    38% 0,
    62% 0,
    68% 75%,
    100% 90%,
    100% 100%,
    0 100%,
    0 90%,
    32% 75%
  );
  z-index: 1;
}
.phone {
  position: absolute;
  width: 106px;
  height: 189px;
  border: 3px solid #68677a;
  border-radius: 21px;
  background: #15172c;
  z-index: 4;
  box-shadow: 10px 15px 30px #0005;
  padding: 14px 10px;
}
.phone-left {
  bottom: 4%;
  left: 3%;
  transform: rotate(-18deg);
}
.phone-right {
  bottom: 0;
  right: 3%;
  transform: rotate(18deg);
}
.phone-notch {
  display: block;
  width: 27px;
  height: 5px;
  background: #020415;
  border-radius: 20px;
  margin: -7px auto 16px;
}
.mini-name {
  font-size: 5px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  color: #acadc0;
}
.mini-name i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
}
.phone-right .mini-name i {
  background: var(--indigo);
}
.mini-stick {
  border-radius: 50%;
  width: 61px;
  height: 61px;
  margin: 18px auto;
  background: #24243f;
  border: 1px solid #42405a;
  display: grid;
  place-items: center;
}
.mini-stick span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(140deg, #ff8d91, #f85062);
  box-shadow: 2px 4px 8px #0004;
}
.mini-button {
  border-radius: 20px;
  background: #ff626b33;
  color: #ffa4ad;
  font-weight: 700;
  text-align: center;
  font-size: 10px;
  margin: 8px 9px;
  padding: 7px;
}
.phone-right .mini-button {
  background: #615aff44;
  color: #b4afff;
}
.phone-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 17px 0;
  color: #b2abff;
  font-size: 14px;
  text-align: center;
}
.phone-pad span {
  background: #393063;
  border-radius: 5px;
  padding: 3px;
}
.phone-pad span:first-child {
  grid-column: 2;
}
.phone-pad span:nth-child(2) {
  grid-column: 1;
}
.phone-pad span:last-child {
  grid-column: 2;
}
.connection-badge {
  position: absolute;
  bottom: 8%;
  left: 29%;
  font-size: 9px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 25px;
  border: 1px solid #403c58;
  background: #17172c;
  transform: rotate(-5deg);
  z-index: 5;
}
.floating-spark {
  position: absolute;
  color: var(--coral);
  font-size: 29px;
}
.spark-a {
  right: 7%;
  top: 1%;
}
.spark-b {
  left: 0;
  top: 37%;
  font-size: 21px;
  color: #8a7fff;
}
.orbit-line {
  position: absolute;
  border: 1px dashed #8278bb33;
  left: 2%;
  top: 15%;
  width: 95%;
  height: 75%;
  border-radius: 50%;
  transform: rotate(-20deg);
}
.orbit-b {
  transform: rotate(30deg);
  top: 10%;
  height: 90%;
  left: 13%;
  width: 75%;
}
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 27px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 30px;
}
.how > div {
  display: flex;
  gap: 20px;
  align-items: center;
}
.how > div > span {
  font-size: 13px;
  color: var(--coral);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.how p {
  font-size: 12px;
  margin: 0;
}
.how strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 3px;
}
.catalog {
  padding: 66px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--muted);
}
.coral {
  color: var(--coral);
}
.section-heading h2 {
  margin-top: 10px;
}
.section-note {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 5px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.game-card {
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: #686179;
}
.game-card.selected {
  border-color: var(--coral);
  box-shadow: 0 0 0 1px var(--coral);
}
.game-art {
  height: 195px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 65% 10%,
    #655779,
    #38304b 60%,
    #25243b
  );
}
.game-art.orbit {
  background: radial-gradient(
    ellipse at 50% 10%,
    #466179,
    #20334b 60%,
    #202c46
  );
}
.game-art.pulse {
  background: radial-gradient(
    ellipse at 40% 20%,
    #6055a3,
    #353363 60%,
    #252543
  );
}
.game-art.maze {
  background: radial-gradient(
    ellipse at 40% 20%,
    #536c62,
    #293e3f 60%,
    #222e39
  );
}
.art-ring {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 145px;
  height: 145px;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  transform: rotateX(50deg) rotateZ(-30deg);
}
.ring-two {
  width: 230px;
  height: 230px;
  top: -4%;
  left: 16%;
  border-color: #ffffff12;
}
.art-core {
  position: absolute;
  left: 39%;
  top: 25%;
  font-size: 71px;
  font-weight: bold;
  background: linear-gradient(130deg, #ff9998, #ff626b);
  color: #702b59;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  transform: rotate(-18deg);
  box-shadow:
    9px 13px 0 #241b3c44,
    0 20px 30px #08091d44;
}
.orbit .art-core {
  background: linear-gradient(130deg, #b0f4df, #67bfc5);
  color: #36606b;
  border-radius: 50%;
  transform: rotate(15deg);
}
.pulse .art-core {
  background: linear-gradient(130deg, #b7b0ff, #7463ff);
  color: #43368a;
  transform: rotate(14deg);
}
.art-star {
  position: absolute;
  right: 16%;
  top: 16%;
  color: #f7c6bb;
  font-size: 19px;
}
.art-dot {
  position: absolute;
  left: 22%;
  bottom: 24%;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: #b7afff;
  transform: rotate(23deg);
}
.art-floor {
  position: absolute;
  inset: 66% -50% -50%;
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, #fff1 26px 27px),
    repeating-linear-gradient(90deg, transparent 0 35px, #fff1 36px 37px);
  transform: perspective(110px) rotateX(45deg);
  z-index: -1;
  opacity: 0.4;
}
.card-info {
  padding: 21px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tag {
  border: 1px solid #ffffff18;
  background: #ffffff05;
  color: #c4c2d3;
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.7px;
  border-radius: 5px;
  white-space: nowrap;
  display: inline-block;
}
.tag.premium {
  color: #d1c9ff;
  background: #6954ff1c;
  border-color: #8b6eff3b;
}
.card-info h3 {
  margin-top: 15px;
  font-size: 23px;
}
.card-info p {
  font-size: 12px;
  line-height: 1.6;
  min-height: 39px;
  margin: 10px 0 20px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b3b0c4;
  font-size: 10px;
  padding-top: 13px;
  border-top: 1px solid #ffffff09;
}
.circle-arrow {
  display: grid;
  place-items: center;
  border: 1px solid #ffffff1a;
  border-radius: 50%;
  height: 26px;
  width: 26px;
  font-size: 15px;
}
.plus-banner {
  margin: 0 0 60px;
  padding: 35px 40px;
  background: linear-gradient(100deg, #1b193b, #15152d 80%);
  border: 1px solid #37314e;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.plus-icon {
  font-size: 52px;
  color: #b9adff;
}
.plus-banner h2 {
  font-size: 26px;
  margin-top: 10px;
}
.plus-banner p {
  font-size: 12px;
  margin-bottom: 0;
}
.plus-note {
  margin-left: auto;
  font-size: 12px;
  line-height: 1.9;
  color: #b9b4cd;
}
.plus-note span {
  display: block;
  font-size: 10px;
  color: #807c9b;
  margin-top: 7px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 25px 0 35px;
  display: flex;
  align-items: center;
  gap: 30px;
}
footer .brand {
  width: 120px;
}
footer .brand img {
  width: 150px;
  margin: -8px -15px;
}
footer > span {
  font-size: 11px;
  color: var(--muted);
}
footer > a:last-child {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #f3ecf6;
  color: #1b182f;
  padding: 15px 22px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90vw;
  box-shadow: 0 8px 40px #0006;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.room-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 45px 0 30px;
}
.room-heading h1 {
  font-size: 42px;
  margin-top: 12px;
}
.connection-status,
#connection-status {
  font-size: 12px;
  color: #e7b587;
}
.online {
  color: var(--mint) !important;
}
.lobby-layout {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 35px;
}
.join-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 23px 18px;
  gap: 13px;
}
.join-card canvas {
  border-radius: 10px;
  width: 190px !important;
  height: 190px !important;
}
.muted {
  font-size: 11px;
  color: var(--muted);
}
.room-code {
  font-family: "Manrope", sans-serif;
  letter-spacing: 7px;
  font-size: 31px;
}
.small-btn {
  border: 1px solid #464157;
  border-radius: 8px;
  background: #ffffff07;
  padding: 10px 14px;
  font-size: 12px;
}
.small-btn:hover {
  background: #ffffff10;
}
.join-card .small-btn {
  font-size: 10px;
}
.lobby-main {
  padding: 12px 0;
}
.roster-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.roster-heading h2 {
  font-size: 25px;
}
.roster-heading h2 span {
  color: var(--muted);
  margin-left: 10px;
}
.players {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  min-height: 210px;
  padding: 23px 0;
}
.player {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  background: #111329;
  border-radius: 10px;
  padding: 15px;
  height: 80px;
}
.player > i {
  margin-left: auto;
}
.player strong {
  font-size: 14px;
}
.player span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.avatar {
  height: 43px;
  width: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #241e3d;
  background: var(--coral);
  font-weight: 800;
}
.avatar-1 {
  background: #9288ff;
}
.avatar-2 {
  background: var(--mint);
}
.avatar-3 {
  background: #f2ce83;
}
.offline {
  opacity: 0.5;
}
.offline-dot {
  width: 6px;
  height: 6px;
  background: #999;
  border-radius: 50%;
}
.waiting-players {
  grid-column: 1/-1;
  text-align: center;
  align-self: center;
  padding: 10px;
}
.waiting-players > span {
  display: block;
  font-size: 30px;
  color: var(--coral);
  margin-bottom: 10px;
}
.waiting-players h3 {
  font-size: 20px;
}
.waiting-players p {
  font-size: 12px;
}
.selection {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.selection h3 {
  font-size: 23px;
  margin-top: 7px;
}
.selection p {
  font-size: 12px;
  max-width: 340px;
}
.play-stage {
  padding: 20px 0;
}
.play-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}
.play-toolbar > div {
  display: flex;
  gap: 10px;
}
.play-toolbar > span {
  font-size: 20px;
  font-weight: 700;
}
#game-mount {
  height: calc(100dvh - 200px);
  min-height: 350px;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #020310;
}
#game-mount iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#pause-notice {
  background: #ffa96622;
  padding: 15px;
  text-align: center;
  margin-top: 12px;
  border-radius: 10px;
}
.mobile-shell {
  max-width: 500px;
  margin: auto;
  padding: 26px 24px;
  min-height: 100dvh;
}
.mobile-shell > .brand {
  margin: 0 auto 42px;
}
.join-form .pill {
  font-size: 8px;
}
.join-form h1 {
  font-size: 58px;
  margin-top: 25px;
}
.join-form p {
  font-size: 14px;
}
.join-form form {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}
.join-form label,
form label {
  font-size: 12px;
  font-weight: 700;
}
input {
  width: 100%;
  background: var(--surface);
  border: 1px solid #37374d;
  border-radius: 9px;
  color: var(--text);
  padding: 15px;
  min-width: 0;
}
input::placeholder {
  color: #696981;
}
#room-code {
  letter-spacing: 8px;
  font-size: 24px;
  text-transform: uppercase;
}
#nickname {
  margin-bottom: 12px;
}
.small-print {
  font-size: 11px !important;
  line-height: 1.7 !important;
  color: var(--muted);
}
.join-form > .small-print {
  margin-top: 35px;
}
.controller-shell > .brand {
  margin-bottom: 20px;
  width: 145px;
}
.controller-shell > .brand img {
  width: 180px;
}
.controller-top,
.controller-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.controller-footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 35px;
}
.controller-wait {
  text-align: center;
  padding: 45px 0 20px;
}
.connected-orb {
  width: 90px;
  height: 90px;
  background: #a8f0d510;
  border: 1px solid #a8f0d544;
  border-radius: 50%;
  color: var(--mint);
  font-size: 35px;
  display: grid;
  place-items: center;
  margin: 0 auto 30px;
  box-shadow: 0 0 0 15px #a8f0d504;
}
.controller-wait h1 {
  font-size: 42px;
  margin-top: 20px;
}
.controller-wait p {
  font-size: 14px;
  margin-bottom: 25px;
}
.controller-title {
  margin: 30px 0;
}
.controller-title h1 {
  font-size: 31px;
  margin-top: 10px;
}
.controller-title p {
  font-size: 12px;
}
.control-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.control-button {
  min-width: 120px;
  min-height: 120px;
  border-radius: 28px;
  background: linear-gradient(140deg, #ff858b, #f85d6a);
  box-shadow: 0 7px 0 #873c55;
  color: #341e38;
  font-weight: 800;
  font-size: 22px;
  flex: 1;
  touch-action: none;
  user-select: none;
}
.control-button:nth-child(even) {
  background: linear-gradient(140deg, #a399ff, #6d5eff);
  box-shadow: 0 7px 0 #3d326c;
  color: #261b4f;
}
.control-button.pressed {
  transform: translateY(5px);
  box-shadow: 0 2px 0 #873c55;
  filter: brightness(0.85);
}
.joystick-wrap {
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.joystick {
  touch-action: none;
  user-select: none;
  height: 210px;
  width: 210px;
  margin: 0 auto 18px;
  position: relative;
  border: 1px solid #4a415d;
  background: radial-gradient(circle, #23203e, #17172d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px #0005;
}
.joystick-cross {
  color: #81739033;
  font-size: 180px;
  line-height: 1;
  position: absolute;
}
.joystick-thumb {
  height: 82px;
  width: 82px;
  background: linear-gradient(135deg, #b1a2ff, #6e60db);
  box-shadow: 0 7px 17px #0006;
  border: 1px solid #b9abff77;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.sensor-control {
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 15px;
  text-align: center;
  flex: 1;
}
.sensor-control > span {
  font-size: 40px;
  color: var(--coral);
}
.sensor-control h3 {
  font-size: 20px;
  margin: 10px 0 18px;
}
.sensor-control p {
  font-size: 11px;
}
.disconnected .control-grid {
  opacity: 0.45;
  pointer-events: none;
}
.admin {
  max-width: 900px;
  margin: 55px auto;
}
.admin h1 {
  font-size: 48px;
  margin-top: 15px;
}
.admin > p {
  margin-bottom: 30px;
}
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  margin-top: 20px;
}
.admin-panel h2 {
  font-size: 25px;
}
.admin-panel p {
  font-size: 13px;
}
.inline-form {
  display: flex;
  gap: 15px;
  margin-top: 12px;
}
.inline-form .primary {
  white-space: nowrap;
}
.versions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
#package-upload {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
#package-upload input {
  flex: 1;
  min-width: 220px;
}
.file-label {
  width: 100%;
}
.error-state {
  max-width: 650px;
  margin: 12vh auto;
  padding: 25px;
}
.error-state h1 {
  font-size: 45px;
  margin-top: 35px;
}
@media (min-width: 1600px) {
  .hero {
    min-height: 740px;
  }
  .hero-visual {
    height: 540px;
  }
}
@media (max-width: 1100px) {
  .shell {
    padding: 0 35px;
  }
  .hero {
    min-height: 600px;
  }
  .hero-visual {
    height: 390px;
  }
  .stage-title {
    font-size: 43px;
  }
  .game-token {
    width: 48px;
    height: 48px;
    font-size: 32px;
  }
  .hero h1 {
    font-size: 56px;
  }
  .hero p {
    font-size: 13px;
  }
  .phone {
    width: 87px;
    height: 160px;
    border-radius: 17px;
    padding: 12px 8px;
  }
  .mini-stick {
    width: 49px;
    height: 49px;
    margin: 13px auto;
  }
  .mini-stick span {
    width: 27px;
    height: 27px;
  }
  .mini-button {
    font-size: 8px;
    padding: 5px;
  }
  .phone-pad {
    margin: 12px 0;
    font-size: 11px;
  }
  .connection-badge {
    font-size: 8px;
    padding: 8px 10px;
  }
  .game-art {
    height: 165px;
  }
  .art-core {
    left: 35%;
    width: 70px;
    height: 70px;
    font-size: 60px;
  }
  .plus-banner {
    padding: 30px;
  }
  .section-note {
    font-size: 10px;
  }
  .selection .primary {
    padding: 14px;
    gap: 15px;
    font-size: 13px;
  }
}
@media (max-width: 800px) {
  .shell {
    padding: 0 24px;
  }
  header {
    height: 85px;
  }
  .brand {
    width: 145px;
  }
  .brand img {
    width: 180px;
    margin: -8px -17px;
  }
  nav {
    gap: 14px;
  }
  nav > a:first-child {
    display: none;
  }
  .nav-join {
    font-size: 12px;
    padding: 10px 13px;
  }
  .nav-join span {
    margin-left: 10px;
  }
  .hero {
    padding: 40px 0;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 520px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero p br {
    display: none;
  }
  .hero .pill {
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .hero-actions {
    gap: 16px;
    flex-wrap: wrap;
  }
  .hero-actions .primary {
    font-size: 13px;
    padding: 14px 16px;
    gap: 16px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .hero-note {
    font-size: 9px;
    gap: 7px;
  }
  .hero-visual {
    height: 340px;
    margin-left: -10px;
  }
  .scene-screen {
    height: 53%;
    top: 18%;
  }
  .stage-title {
    font-size: 34px;
    letter-spacing: -2px;
  }
  .game-token {
    width: 38px;
    height: 38px;
    font-size: 26px;
    border-radius: 10px;
  }
  .token-two {
    width: 33px;
    height: 33px;
  }
  .token-three {
    width: 25px;
    height: 25px;
    font-size: 17px;
  }
  .phone {
    width: 75px;
    height: 135px;
  }
  .mini-name {
    font-size: 4px;
  }
  .phone-notch {
    margin-bottom: 11px;
  }
  .mini-stick {
    width: 39px;
    height: 39px;
    margin: 11px auto;
  }
  .mini-stick span {
    width: 22px;
    height: 22px;
  }
  .mini-button {
    margin: 6px;
    padding: 4px;
  }
  .phone-pad {
    margin: 8px 0;
    font-size: 9px;
    gap: 2px;
  }
  .phone-right {
    bottom: 7%;
  }
  .phone-left {
    bottom: 9%;
  }
  .connection-badge {
    left: 24%;
    bottom: 0%;
    font-size: 7px;
    gap: 5px;
  }
  .screen-foot {
    top: 70%;
  }
  .how {
    gap: 14px;
  }
  .how > div {
    gap: 10px;
  }
  .how > div > span {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    font-size: 10px;
  }
  .how strong {
    font-size: 12px;
  }
  .how p {
    font-size: 10px;
  }
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-note {
    display: none;
  }
  .catalog {
    padding: 45px 0;
  }
  .plus-banner {
    gap: 20px;
    flex-wrap: wrap;
  }
  .plus-note {
    margin-left: 65px;
  }
  .plus-banner h2 {
    font-size: 23px;
  }
  .plus-banner p {
    font-size: 11px;
  }
  .plus-icon {
    font-size: 40px;
  }
  .lobby-layout {
    grid-template-columns: 210px 1fr;
    gap: 20px;
  }
  .players {
    grid-template-columns: 1fr;
  }
  .player {
    height: 65px;
    padding: 10px;
  }
  .join-card canvas {
    width: 165px !important;
    height: 165px !important;
  }
  .selection {
    flex-direction: column;
    align-items: stretch;
  }
  .selection p {
    margin-bottom: 0;
  }
  .selection .primary {
    justify-content: center;
  }
  .room-heading h1 {
    font-size: 32px;
  }
  .room-heading {
    gap: 20px;
  }
  .join-card {
    padding: 20px 10px;
  }
  .join-card .small-btn {
    font-size: 8px;
  }
  .roster-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .inline-form {
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero .pill {
    font-size: 8px;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
  }
  .hero-actions {
    margin-top: 24px;
  }
  .hero-actions .primary {
    padding: 16px 21px;
    font-size: 14px;
  }
  .hero-note {
    font-size: 10px;
  }
  .hero-visual {
    height: 345px;
    width: 100%;
    max-width: 380px;
    margin: 22px auto 0;
  }
  .scene-screen {
    top: 13%;
    height: 58%;
  }
  .stage-title {
    font-size: 44px;
  }
  .phone {
    height: 150px;
    width: 84px;
  }
  .phone-left {
    bottom: 4%;
  }
  .phone-right {
    bottom: 1%;
  }
  .mini-stick {
    width: 47px;
    height: 47px;
  }
  .mini-name {
    font-size: 5px;
  }
  .phone-notch {
    margin-bottom: 14px;
  }
  .mini-button {
    padding: 6px;
  }
  .phone-pad {
    font-size: 11px;
    margin: 10px 0;
  }
  .connection-badge {
    left: 27%;
    bottom: 4%;
  }
  .game-token {
    width: 48px;
    height: 48px;
    font-size: 32px;
  }
  .token-two {
    width: 38px;
    height: 38px;
  }
  .token-three {
    width: 27px;
    height: 27px;
  }
  .screen-foot {
    top: 70%;
  }
  .hero-visual .spark-a {
    top: 0;
    right: 4%;
  }
  .how {
    grid-template-columns: 1fr;
    padding: 23px 0;
    gap: 18px;
  }
  .how > div {
    gap: 17px;
  }
  .how > div > span {
    height: 34px;
    width: 34px;
    font-size: 12px;
  }
  .how strong {
    font-size: 14px;
  }
  .how p {
    font-size: 12px;
    display: flex;
    flex-direction: column;
  }
  .how strong {
    margin-bottom: 0;
  }
  .game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .game-art {
    height: 195px;
  }
  .art-core {
    left: 40%;
    width: 85px;
    height: 85px;
    font-size: 70px;
  }
  .card-info {
    padding: 23px;
  }
  .card-info p {
    min-height: 0;
  }
  .card-top .eyebrow {
    font-size: 10px;
  }
  .card-info h3 {
    font-size: 26px;
  }
  .card-info p {
    font-size: 13px;
  }
  .card-bottom {
    font-size: 11px;
  }
  .plus-banner {
    padding: 25px;
    gap: 14px;
    align-items: flex-start;
  }
  .plus-banner > div:nth-child(2) {
    flex: 1;
  }
  .plus-icon {
    font-size: 28px;
  }
  .plus-banner h2 {
    font-size: 21px;
  }
  .plus-note {
    margin-left: 43px;
    font-size: 11px;
  }
  .plus-banner p {
    font-size: 12px;
  }
  .catalog {
    padding: 40px 0;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .eyebrow {
    font-size: 8px;
  }
  footer {
    gap: 15px;
    flex-wrap: wrap;
  }
  footer > span {
    font-size: 9px;
  }
  footer > a:last-child {
    font-size: 9px;
  }
  .room-heading {
    padding: 30px 0;
    align-items: flex-start;
  }
  .room-heading h1 {
    font-size: 29px;
  }
  .connection-status {
    font-size: 9px;
    padding-top: 10px;
  }
  .lobby-layout {
    grid-template-columns: 1fr;
  }
  .join-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    text-align: center;
    gap: 10px;
    padding: 18px;
  }
  .join-card .eyebrow {
    grid-column: 1/-1;
  }
  .join-card canvas {
    grid-row: 2/5;
    width: 120px !important;
    height: 120px !important;
  }
  .join-card .muted {
    align-self: end;
    font-size: 9px;
  }
  .room-code {
    font-size: 25px;
    letter-spacing: 4px;
  }
  .join-card .small-btn {
    font-size: 9px;
    padding: 9px;
  }
  .roster-heading {
    flex-direction: row;
    align-items: center;
  }
  .players {
    min-height: 150px;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .player {
    gap: 8px;
  }
  .player strong {
    font-size: 12px;
  }
  .player span {
    font-size: 8px;
  }
  .avatar {
    height: 31px;
    width: 31px;
    border-radius: 9px;
    flex-shrink: 0;
    font-size: 12px;
  }
  .player > i {
    width: 4px;
    height: 4px;
  }
  .selection {
    flex-direction: row;
    align-items: center;
  }
  .selection h3 {
    font-size: 19px;
  }
  .selection p {
    font-size: 10px;
  }
  .selection .primary {
    font-size: 11px;
    white-space: nowrap;
    gap: 9px;
    padding: 12px;
  }
  .host-shell #games .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .play-toolbar {
    flex-direction: column;
    align-items: start;
  }
  #game-mount {
    height: calc(100dvh - 220px);
    min-height: 300px;
  }
  .admin {
    margin-top: 35px;
  }
  .admin h1 {
    font-size: 35px;
  }
  .admin-panel {
    padding: 22px;
  }
  .admin > p {
    font-size: 13px;
  }
  .admin .primary {
    font-size: 13px;
  }
  .admin-panel h2 {
    font-size: 23px;
  }
  .admin-panel p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .controller-shell {
    max-width: 850px;
    padding: 15px 25px;
  }
  .controller-shell > .brand {
    display: none;
  }
  .controller-title {
    margin: 15px 0;
  }
  .controller-title h1 {
    font-size: 22px;
  }
  .controller-title p {
    display: none;
  }
  .control-grid {
    flex-wrap: nowrap;
  }
  .joystick-wrap {
    width: auto;
  }
  .joystick {
    height: 160px;
    width: 160px;
    margin-bottom: 8px;
  }
  .joystick-thumb {
    width: 65px;
    height: 65px;
  }
  .control-button {
    max-width: 180px;
    min-height: 110px;
  }
  .controller-footer {
    margin-top: 15px;
  }
}

.pose-control {
  width: min(100%, 420px);
  flex-basis: 100%;
}
.pose-control video {
  width: 100%;
  max-height: 280px;
  border-radius: 16px;
  object-fit: cover;
  background: #05071a;
}
.pose-control button {
  margin: 8px 6px 8px 0;
}
.pose-control [role="status"] {
  font-size: 0.9rem;
  color: #c4c2d8;
}
