@charset "UTF-8";
html {
  -webkit-text-size-adjust: 100%;
}
:root {
  font-family: "Pretendard", "Malgun Gothic", sans-serif;
  color: #252624;
  background: #f7f7f2;
  font-synthesis: none;
  --coral: #eb654d;
  --blue: #3265df;
  --gold: #d6a725;
  --mint: #3b9d84;
  --accent: #303b34;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
h1,
h2,
p {
  margin: 0;
}
button {
  border: 0;
  background: none;
}
.host {
  max-width: 1664px;
  margin: auto;
  padding: 36px 64px 26px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.8px;
}
.brand b {
  font-weight: 450;
}
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  gap: 3px;
  margin-right: 5px;
}
.brand-mark i,
.brand-mark:before,
.brand-mark:after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.brand-mark i:first-child {
  background: var(--blue);
}
.brand-mark i:last-child {
  background: var(--gold);
}
.brand-mark:after {
  background: var(--mint);
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.tag {
  font-size: 12px;
  color: #737670;
}
.icon-button {
  font-size: 24px;
  padding: 5px 8px;
}
.quiet {
  font-size: 12px;
  color: #747770;
  padding: 10px 0;
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 65px 0 42px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2.2px;
  color: #81847c;
  margin-bottom: 17px;
}
.welcome h1 {
  font-size: clamp(30px, 3.4vw, 54px);
  font-weight: 900;
  letter-spacing: -2.7px;
  line-height: 1.22;
}
.welcome h1 span,
.join-view h1 span {
  color: inherit;
}
.lead {
  font-size: 14px;
  color: #81847c;
  margin-top: 16px;
  line-height: 1.6;
}
.join-ticket {
  flex: 0 0 238px;
  padding: 20px 23px;
  border: 1px solid #dedfd7;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 8px #24291b03;
}
.ticket-label {
  font-size: 11px;
  font-weight: 650;
  color: #73766e;
}
.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
}
.room-code {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 7px 0 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#join-link {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #73766e;
  border-top: 1px solid #eeeee8;
  padding-top: 11px;
}
.ticket-note {
  display: block;
  font-size: 10px;
  text-align: center;
  color: #8b8e85;
  margin-top: 11px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  background: #303b34;
  color: white;
  min-height: 52px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 6px #25262411;
}
.primary:hover:not(:disabled) {
  background: #202b24;
}
#create-room {
  width: 100%;
  margin-top: 13px;
  min-height: 45px;
  font-size: 12px;
}
.players {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.player {
  --accent: var(--coral);
  position: relative;
  background: #fff;
  border: 1px solid #dddeda;
  border-radius: 17px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 5px 12px #2c311708;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.player[data-color="blue"] {
  --accent: var(--blue);
}
.player[data-color="gold"] {
  --accent: var(--gold);
}
.player[data-color="mint"] {
  --accent: var(--mint);
}
.pass-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 17px 18px;
  background: color-mix(in srgb, var(--accent) 11%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 13%, white);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.pass-heading small {
  font-size: 7px;
  letter-spacing: 0.5px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.pass-heading small:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.player-number {
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(94px, 10.5vw, 157px);
  letter-spacing: -10px;
  line-height: 1.07;
  text-align: center;
  color: var(--accent);
  padding: 32px 12px 20px;
}
.pedestal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 22px;
  min-height: 211px;
}
.player-id {
  display: none;
}
.pedestal h2 {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.7px;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.4;
  text-align: center;
}
.axis-indicator {
  position: relative;
  width: 72px;
  height: 72px;
  border: 1px solid #e7e9e4;
  border-radius: 50%;
  margin: 20px 0 12px;
  background:
    linear-gradient(
      90deg,
      transparent calc(50% - 0.5px),
      #eeeee8 50%,
      transparent calc(50% + 0.5px)
    ),
    linear-gradient(
      0deg,
      transparent calc(50% - 0.5px),
      #eeeee8 50%,
      transparent calc(50% + 0.5px)
    );
  display: grid;
  place-items: center;
}
.axis-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 9%, transparent);
  transition: transform 50ms linear;
}
.player-message {
  font-size: 11px;
  line-height: 1.6;
  background: #f5f6f2;
  max-width: 100%;
  border-radius: 8px;
  padding: 6px 10px;
  overflow-wrap: anywhere;
  margin-bottom: 13px;
  color: #60655c;
}
.player-message:empty {
  height: 30px;
  background: none;
  margin-bottom: 13px;
}
.player-status {
  width: 100%;
  text-align: center;
  font-size: 11px;
  padding: 10px 5px;
  border-top: 1px solid #eeeee8;
  color: #999c94;
  letter-spacing: 0.2px;
}
.player-status[data-ready="true"] {
  color: var(--accent);
  font-weight: 750;
  background: color-mix(in srgb, var(--accent) 8%, white);
  border: 0;
  border-radius: 8px;
}
.empty {
  background: transparent;
  box-shadow: none;
  border-style: dashed;
}
.empty .pass-heading {
  background: transparent;
  color: #a6aaa0;
  border-bottom: 1px dashed #dddfd7;
}
.empty .player-number {
  color: transparent;
  -webkit-text-stroke: 1.5px #c9d0c5;
}
.empty .pedestal h2 {
  color: #a0a59a;
  font-weight: 500;
  font-size: 15px;
  padding-top: 6px;
}
.empty .axis-indicator,
.empty .player-message,
.empty .player-status {
  visibility: hidden;
}
.offline .player-number {
  opacity: 0.3;
}
.offline .pass-heading small {
  font-size: 6px;
}
.remove-player {
  padding: 8px 12px;
  font-size: 11px;
  text-decoration: underline;
}
.lobby-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #dddfd6;
  margin-top: 36px;
  padding-top: 25px;
}
.roster-count {
  display: flex;
  align-items: center;
  gap: 13px;
}
.people-icon {
  font-size: 27px;
  color: #7d8475;
}
.roster-count strong {
  display: block;
  font-size: 12px;
}
.roster-count div > span {
  display: block;
  color: #94998d;
  font-size: 10px;
  margin-top: 5px;
}
.ready-summary {
  font-size: 12px;
  color: #8b9183;
}
.ready-summary.all-ready {
  color: var(--mint);
  font-weight: 700;
}
.connection-detail {
  position: relative;
  font-size: 10px;
  color: #919787;
}
.connection-detail summary {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.connection-detail summary:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a7aaa4;
  margin-right: 6px;
}
.connection-detail.online summary:before {
  background: var(--mint);
}
.connection-detail p {
  position: absolute;
  right: 0;
  bottom: 25px;
  width: 235px;
  padding: 13px;
  background: #fff;
  border: 1px solid #dfe2d9;
  border-radius: 9px;
  color: #636b59;
  line-height: 1.7;
  z-index: 5;
}
.notice,
.phone-alert {
  padding: 13px 17px;
  background: #fff4e2;
  border: 1px solid #eddcc0;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 20px;
}
.phone-mode {
  background: #eeeee8;
}
.phone {
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 26px 27px 20px;
  background: #fafaf6;
}
.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}
.phone .brand {
  font-size: 16px;
}
.phone .brand-mark {
  transform: scale(0.86);
  margin-right: 2px;
}
.connection {
  font-size: 9px;
  color: #89917d;
}
.connection:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #aaa;
  margin-right: 5px;
}
.connection.online:before {
  background: var(--mint);
}
.identity-strip {
  display: flex;
  align-items: center;
  gap: 17px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 9%, white);
  padding: 18px 19px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 13%, white);
}
.identity-strip h1 {
  font-family: Arial, sans-serif;
  font-size: 49px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
}
.identity-strip h2 {
  font-size: 15px;
  color: #272c34;
  overflow-wrap: anywhere;
}
.identity-strip > div {
  min-width: 0;
  flex: 1;
}
.identity-strip > span {
  font-size: 8px;
  writing-mode: vertical-rl;
  letter-spacing: 1px;
  color: #929cab;
}
.text-button {
  font-size: 10px;
  color: #858e9b;
  padding: 5px 0;
}
.stick-area {
  display: flex;
  justify-content: center;
  padding: 25px 0 17px;
}
.joystick {
  width: 226px;
  height: 226px;
  position: relative;
  border-radius: 50%;
  background: #f2f3ee;
  border: 1px solid #e3e5de;
  touch-action: none;
  user-select: none;
  display: grid;
  place-items: center;
  box-shadow: inset 0 2px 3px #18211603;
}
.joystick[aria-disabled="true"] {
  opacity: 0.5;
}
.stick-base {
  width: 178px;
  height: 178px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, #e8eae4, #f1f2ed 66%);
  border: 1px solid #dde1d7;
  display: grid;
  place-items: center;
  box-shadow: inset 0 4px 8px #27341b0b;
}
.stick-knob {
  width: 84px;
  height: 84px;
  display: block;
  background: linear-gradient(150deg, #fff, #f1f2ec);
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 10px 16px #2532181b,
    0 2px 3px #27371710;
  position: relative;
  will-change: transform;
}
.stick-knob:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  top: calc(50% - 3.5px);
  left: calc(50% - 3.5px);
  opacity: 0.75;
}
.stick-tick {
  position: absolute;
  background: #c5cbbe;
  border-radius: 2px;
}
.tick-n,
.tick-s {
  width: 2px;
  height: 6px;
  left: calc(50% - 1px);
}
.tick-n {
  top: 7px;
}
.tick-s {
  bottom: 7px;
}
.tick-e,
.tick-w {
  height: 2px;
  width: 6px;
  top: calc(50% - 1px);
}
.tick-e {
  right: 7px;
}
.tick-w {
  left: 7px;
}
.secondary {
  border: 1px solid #d7dcd0;
  background: transparent;
  border-radius: 10px;
  padding: 12px 17px;
  font-size: 12px;
  font-weight: 600;
}
.identify {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 43px;
  color: #57634a;
  font-size: 11px;
}
.identify span {
  font-size: 17px;
}
.message-form {
  margin-top: 24px;
}
.message-form label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 9px;
}
.message-form label span {
  font-size: 9px;
  font-weight: 400;
  color: #9ba392;
}
.message-form > div {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe3d7;
  border-radius: 11px;
  padding: 7px;
  background: #fff;
}
.message-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: none;
  padding: 7px 5px;
  font-size: 11px;
  outline-offset: 0;
}
.message-form button {
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  flex: 0 0 32px;
  height: 32px;
  font-size: 18px;
}
.message-form input::placeholder {
  color: #a2a899;
}
#send-status {
  display: block;
  min-height: 22px;
  padding-top: 6px;
  font-size: 9px;
  color: var(--mint);
}
.phone-actions {
  margin-top: 12px;
}
.phone-actions .primary {
  width: 100%;
  background: var(--accent);
  justify-content: center;
  gap: 12px;
  min-height: 51px;
}
.phone-actions .primary[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 13%, white);
  color: var(--accent);
  box-shadow: none;
}
#my-state {
  text-align: center;
  font-size: 9px;
  color: #929b87;
  margin-top: 12px;
  line-height: 1.5;
}
.phone-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}
.phone-bottom .connection-detail p {
  left: 0;
  right: auto;
}
.phone-alert {
  font-size: 11px;
}
.join-view {
  padding-top: 20px;
}
.join-view .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.join-view h1 {
  font-size: 47px;
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1.22;
}
.entry-players {
  display: flex;
  gap: 8px;
  margin: 29px 0 33px;
}
.entry-players span {
  flex: 1;
  padding: 16px 0;
  text-align: center;
  border-radius: 9px;
  background: #f3e6df;
  color: var(--coral);
  font: 800 27px Arial;
}
.entry-players span:nth-child(2) {
  background: #e6ebf7;
  color: var(--blue);
}
.entry-players span:nth-child(3) {
  background: #f5eedc;
  color: var(--gold);
}
.entry-players span:nth-child(4) {
  background: #e4efea;
  color: var(--mint);
}
#join-form label,
.rename-form label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 9px;
}
#join-form label span {
  color: #a3a998;
  font-size: 9px;
  font-weight: 400;
  margin-left: 4px;
}
#join-form input,
.rename-form input {
  border: 1px solid #dfe3d8;
  border-radius: 10px;
  padding: 14px 13px;
  background: white;
  width: 100%;
  font-size: 13px;
  margin-bottom: 22px;
}
#join-form .code-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 4px;
  font-size: 21px;
}
.code-input::placeholder {
  font-size: 13px;
  letter-spacing: 1px;
}
#join-button {
  width: 100%;
  margin-top: 4px;
}
.entry-note {
  text-align: center;
  font-size: 10px;
  color: #979f8c;
  margin-top: 20px;
}
.rename-form {
  padding: 17px 0 0;
}
.rename-form > div {
  display: flex;
  gap: 8px;
}
.rename-form input {
  margin: 0;
  min-width: 0;
}
.small-button {
  background: var(--accent);
  color: white;
  flex: 0 0 53px;
  border-radius: 9px;
  font-size: 12px;
}
dialog {
  border: 1px solid #ddd;
  border-radius: 18px;
  max-width: 390px;
  padding: 28px;
}
dialog::backdrop {
  background: #1d241c55;
}
dialog h2 {
  font-size: 19px;
}
dialog p {
  font-size: 12px;
  color: #777;
  margin: 15px 0 25px;
}
dialog > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
dialog .primary {
  min-height: 43px;
  font-size: 12px;
}
.pulsing {
  animation: identify 0.65s ease-in-out;
}
@keyframes identify {
  40% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent);
    border-color: var(--accent);
  }
}
@media (min-width: 1600px) {
  .host {
    padding-top: 48px;
  }
  .welcome {
    margin-top: 80px;
    margin-bottom: 52px;
  }
  .player-number {
    padding-top: 43px;
    padding-bottom: 31px;
  }
  .pedestal {
    padding-bottom: 30px;
  }
  .lobby-footer {
    margin-top: 44px;
  }
}
@media (max-width: 1100px) {
  .host {
    padding: 28px 32px;
  }
  .welcome {
    margin: 45px 0 30px;
  }
  .players {
    gap: 13px;
  }
  .pass-heading {
    padding: 14px 12px;
    letter-spacing: 0.6px;
  }
  .pass-heading small {
    font-size: 6px;
  }
  .pedestal {
    padding: 0 12px 15px;
  }
  .pedestal h2 {
    font-size: 17px;
  }
  .ready-summary {
    font-size: 10px;
  }
  .player-number {
    letter-spacing: -7px;
  }
  .join-ticket {
    flex-basis: 210px;
  }
  .room-code {
    font-size: 30px;
  }
}
@media (max-width: 750px) {
  .host {
    padding: 24px 22px;
  }
  .top-actions {
    gap: 8px;
  }
  .tag {
    display: none;
  }
  .welcome {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 34px;
    gap: 22px;
  }
  .welcome h1 {
    font-size: 31px;
    letter-spacing: -1.5px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .lead {
    font-size: 12px;
  }
  .join-ticket {
    flex-basis: auto;
    width: 100%;
    padding: 15px 20px;
  }
  #code-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2px 20px;
  }
  .ticket-top {
    grid-column: 1;
  }
  .room-code {
    grid-column: 2;
    grid-row: 1/3;
    text-align: right;
    font-size: 30px;
  }
  #join-link {
    grid-column: 1;
    border: 0;
    font-size: 9px;
    padding: 7px 0;
  }
  .players {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .player-number {
    font-size: 87px;
    letter-spacing: -6px;
    padding: 23px 8px 17px;
  }
  .pass-heading {
    font-size: 8px;
    padding: 12px 10px;
  }
  .pass-heading small {
    font-size: 5px;
    letter-spacing: 0;
  }
  .pedestal h2 {
    font-size: 15px;
  }
  .pedestal {
    min-height: 200px;
  }
  .empty .pedestal h2 {
    font-size: 12px;
  }
  .player-message {
    font-size: 10px;
    padding: 5px 7px;
  }
  .lobby-footer {
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
  }
  .ready-summary {
    order: 3;
    flex-basis: 100%;
    text-align: center;
    font-size: 10px;
  }
  .phone {
    padding: 23px 25px 18px;
  }
}
@media (max-height: 780px) and (max-width: 480px) {
  .phone-header {
    margin-bottom: 19px;
  }
  .stick-area {
    padding: 18px 0 14px;
  }
  .joystick {
    width: 206px;
    height: 206px;
  }
  .stick-base {
    width: 164px;
    height: 164px;
  }
  .message-form {
    margin-top: 18px;
  }
  .phone-bottom {
    margin-top: 18px;
  }
}
@media (min-width: 751px) {
  .welcome {
    margin: clamp(25px, 4vh, 48px) 0 clamp(20px, 3vh, 34px);
  }
  .player-number {
    font-size: clamp(96px, 16vh, 156px);
    padding: 20px 12px 12px;
  }
  .pedestal {
    min-height: 199px;
    padding-bottom: 17px;
  }
  .axis-indicator {
    margin-top: 16px;
    margin-bottom: 10px;
  }
  .lobby-footer {
    margin-top: 25px;
    padding-top: 20px;
  }
  .player-message {
    min-height: 30px;
  }
}
.phone .identify {
  font-size: 12px;
}
.message-form label {
  font-size: 12px;
}
.message-form input {
  font-size: 12px;
}
.phone-actions .primary {
  font-size: 15px;
}
.phone-bottom .text-button {
  min-height: 40px;
  padding: 10px 0;
}
.identity-strip .text-button {
  min-height: 28px;
}
.phone .connection-detail summary {
  padding: 10px 0;
}
.phone-actions #my-state {
  font-size: 10px;
}
.people-icon {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid #ccd1c4;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .pulsing {
    outline: 4px solid var(--accent);
    outline-offset: 2px;
  }
}
/* Animal companions: identifiers stay clear even when two people pick the same pet. */
.player:not(.empty) .player-number {
  position: absolute;
  top: 63px;
  left: 19px;
  z-index: 1;
  padding: 0;
  font-size: 36px;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--accent);
}
.player-pet {
  display: block;
  object-fit: contain;
  width: 100%;
  height: clamp(174px, 26vh, 255px);
  padding: 8px 25px 0;
  filter: drop-shadow(0 8px 7px #2b20190b);
}
.offline .player-pet {
  opacity: 0.4;
}
.player .pedestal {
  min-height: 0;
}
.player .axis-indicator {
  width: 62px;
  height: 62px;
  margin-top: 12px;
  margin-bottom: 9px;
}
.player .player-message {
  margin-bottom: 8px;
}
.player .pedestal h2 {
  font-size: 19px;
}
.player.empty .player-number {
  height: clamp(174px, 26vh, 255px);
  display: grid;
  place-items: center;
  padding: 15px;
  font-size: 100px;
}
.avatar-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  flex: 0 0 75px;
  position: relative;
}
.avatar-toggle img {
  width: 72px;
  height: 65px;
  object-fit: contain;
  transform: scale(1.18);
}
.avatar-toggle span {
  font-size: 8px;
  color: #7b8696;
  padding-top: 3px;
}
.identity-strip {
  padding: 13px 17px;
}
.avatar-panel {
  margin: 15px 0 0;
  padding: 16px;
  border: 1px solid #dfe3d8;
  background: white;
  border-radius: 13px;
}
.avatar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.avatar-title h2 {
  font-size: 13px;
}
.avatar-title > button {
  min-width: 32px;
  min-height: 32px;
  color: #7b8570;
}
.avatar-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.avatar-options button {
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f7f8f3;
  min-width: 0;
}
.avatar-options button[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, white);
}
.avatar-options img {
  width: 100%;
  height: 77px;
  object-fit: contain;
  display: block;
}
.avatar-options span {
  font-size: 9px;
  display: block;
  padding: 5px 0;
}
.avatar-options button:hover {
  background: #eef1e7;
}
@media (min-width: 751px) and (max-height: 820px) {
  .host {
    padding-top: 24px;
    padding-bottom: 16px;
  }
  .welcome {
    margin: 22px 0 22px;
  }
  .join-ticket {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .player-pet,
  .player.empty .player-number {
    height: 180px;
  }
  .lobby-footer {
    margin-top: 20px;
    padding-top: 15px;
  }
  .pedestal {
    padding-bottom: 12px;
  }
  .pass-heading {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
@media (max-width: 750px) {
  .player-pet {
    height: 165px;
    padding: 18px 8px 0;
  }
  .player:not(.empty) .player-number {
    font-size: 26px;
    top: 51px;
    left: 12px;
  }
  .player.empty .player-number {
    height: 165px;
    font-size: 76px;
  }
  .player .pedestal h2 {
    font-size: 15px;
  }
}
/* Mobile browser controls: keep keyboard focus readable and clear of device insets. */
.phone {
  padding-top: max(23px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  padding-left: max(25px, env(safe-area-inset-left));
  padding-right: max(25px, env(safe-area-inset-right));
}
.phone input,
#join-form input,
.rename-form input,
.message-form input {
  font-size: 16px;
}
#join-form .code-input {
  font-size: 23px;
}
.joystick,
.stick-knob {
  -webkit-touch-callout: none;
}
.phone-access {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: -10px 0 18px;
  font-size: 11px;
  color: #81847c;
}
.phone-access a {
  color: #303b34;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
@media (max-width: 750px) {
  .phone-access {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-top: -5px;
  }
}
.boot-status {
  width: min(100% - 48px, 420px);
  margin: 18vh auto 48px;
}
.boot-status h1 {
  margin: 28px 0 14px;
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.4;
  letter-spacing: -1px;
}
.boot-status p { color: #656c62; line-height: 1.7; }
.boot-status .primary { margin-top: 28px; }
