:root {
  font-family: 'Arial Black', Arial, sans-serif;
  color: white;
  background: #34447e;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
}
main {
  width: min(100%, 580px);
  padding: 28px 24px;
}
header {
  text-align: center;
  margin-bottom: 28px;
}
.logo {
  width: min(310px, 75vw);
  max-height: 155px;
  object-fit: contain;
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  min-width: 0;
}
.identity label {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  text-transform: uppercase;
}
input:not([type='file']) {
  width: 100%;
  min-width: 0;
  border: 2px solid white;
  border-radius: 0;
  background: #28365f;
  padding: 10px;
  color: white;
  font:
    bold 16px Arial,
    sans-serif;
}
button,
.upload {
  font:
    bold 12px Arial,
    sans-serif;
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
.upload:focus-within {
  outline: 3px solid #ffe46d;
  outline-offset: 4px;
}
.room-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.room-actions button,
.reset {
  background: none;
  border: 0;
  color: white;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.customizers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: center;
}
.customizer {
  min-width: 0;
}
.avatar,
.ball-wrap {
  display: block;
  width: 72px;
  height: 72px;
  margin: auto;
  border: 3px solid white;
}
.avatar {
  object-fit: cover;
}
.ball-wrap {
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #d44336;
}
.ball {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ball-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 30% 25%,
    #ffffff70,
    transparent 45%,
    #0008
  );
}
h3 {
  font-size: 12px;
  margin: 12px 0;
}
.upload {
  display: block;
  position: relative;
  overflow: hidden;
  border: 2px solid white;
  background: #4965b5;
  padding: 8px 4px;
}
.upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.reset {
  margin-top: 6px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.hint,
#status,
#room-status {
  font:
    12px/1.4 Arial,
    sans-serif;
  margin: 10px 0 0;
}
#status:empty,
#room-status:empty {
  display: none;
}
.play {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 180px;
  border: 3px solid white;
  border-radius: 0;
  padding: 10px 24px;
  background: #4965b5;
  color: white;
  font:
    900 24px Arial,
    sans-serif;
  box-shadow: 5px 5px 0 white;
}
.play:hover,
.upload:hover {
  background: #5876ca;
}
.play:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 white;
}
[hidden] {
  display: none !important;
}
@media (max-width: 480px) {
  main {
    max-width: 360px;
    padding: 24px;
  }
  form {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
