/* The iframe is also usable before fullscreen on a portrait phone (390x219). */
:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #f8f5ec;
  background: #a8c4cb;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #ffffff35;
  color: inherit;
  background: #17252de8;
  border-radius: 5px;
  min-height: 44px;
  padding: 9px 14px;
  font-weight: 750;
}
button:hover {
  background: #34434a;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ffb37d;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
[hidden] {
  display: none !important;
}
#arena {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
  outline: none;
}
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #11252de8, #11252d75 50%, transparent 80%);
  display: flex;
  align-items: center;
  padding: 5%;
}
.intro {
  max-width: 550px;
}
.eyebrow {
  font:
    700 10px ui-monospace,
    monospace;
  letter-spacing: 2px;
  color: #a5b9bd;
}
.intro h1 {
  font-size: clamp(28px, 7vw, 83px);
  line-height: 0.91;
  letter-spacing: -4px;
  margin: 24px 0;
  position: relative;
  font-weight: 950;
  transform: skewY(-3deg);
}
.intro h1 span {
  color: #ff8a56;
}
.intro h1 i {
  position: absolute;
  font-style: normal;
  left: 95%;
  top: 0;
  color: #ff8a56;
  font-size: 60px;
}
.intro p:not(.eyebrow) {
  color: #d1dce0;
  font-size: 14px;
}
.primary {
  background: #ff7845;
  color: #17232b;
  border: 0;
  min-width: 180px;
  padding: 15px 24px;
  font-weight: 900;
}
.primary:hover {
  background: #ff9d73;
}
.intro .hint {
  font-size: 10px !important;
  opacity: 0.7;
  margin-top: 16px;
}
.edition {
  position: absolute;
  right: 3%;
  bottom: 5%;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 2px;
}
header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.nameplate {
  display: flex;
  flex-direction: column;
  background: #15252ddd;
  padding: 12px 17px;
  border-left: 3px solid #ff7845;
  min-width: 155px;
}
.nameplate strong {
  font-size: 23px;
  letter-spacing: -0.8px;
}
.nameplate #connection {
  font:
    10px ui-monospace,
    monospace;
  color: #abc3c5;
  margin-top: 4px;
}
.top-actions {
  display: flex;
  gap: 7px;
}
.top-actions button {
  font-size: 12px;
}
/* The smile stays visible on compact screens, where the full voice label is hidden. */
#combo-voice[aria-pressed="true"] {
  color: #ffe7a3;
  border-color: #ffb7ce;
  background: #463443;
}
.room {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  background: #15252ddd;
  border-radius: 20px;
  padding: 8px 13px;
  font:
    9px ui-monospace,
    monospace;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #79e2b4;
}
.stats {
  position: absolute;
  top: 135px;
  left: 24px;
  display: flex;
  flex-direction: column;
  text-shadow: 0 1px 4px #17252d;
}
.stats b {
  font-size: 40px;
  line-height: 1;
}
.stats span {
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
.stats small {
  font-size: 10px;
  margin-top: 8px;
}
#notice {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  background: #17252ddd;
  padding: 10px 18px;
  border-radius: 5px;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
  max-width: 80%;
}
#notice:empty {
  display: none;
}
.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  font: 20px monospace;
  opacity: 0.45;
  pointer-events: none;
}
footer {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(610px, 72%);
}
.vitals {
  display: flex;
  flex-direction: column;
  width: 280px;
  max-width: 65%;
  margin: 0 auto 10px;
}
.vital-label {
  display: flex;
  justify-content: space-between;
  font:
    9px ui-monospace,
    monospace;
  text-shadow: 0 1px 3px #17252d;
}
.meter {
  height: 7px;
  background: #15252dbb;
  margin: 4px 0 6px;
  border-radius: 1px;
  overflow: hidden;
}
.meter i {
  display: block;
  background: #7ef0be;
  height: 100%;
  width: 100%;
  transition: width 0.15s;
}
#ultimate {
  position: relative;
  min-height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  font-size: 10px;
  overflow: hidden;
  border-color: #e6b45f;
}
#ultimate span,
#ultimate strong {
  z-index: 1;
}
#ultimate > i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #e4a83966;
  width: 0;
}
kbd {
  font:
    10px ui-monospace,
    monospace;
  opacity: 0.6;
  margin-right: 5px;
}
.skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.skill {
  position: relative;
  background: #17252deb;
  border-bottom: 3px solid #ff885b;
  min-height: 57px;
  text-align: left;
  font-size: 11px;
  padding: 8px 9px;
  overflow: hidden;
}
.skill kbd {
  display: block;
}
.skill .cooldown {
  position: absolute;
  right: 6px;
  top: 5px;
  font:
    12px ui-monospace,
    monospace;
  color: #ffbc89;
}
.skill.on-cooldown {
  background: #19242bb0;
  border-bottom-color: #758183;
}
.desktop-help {
  text-align: center;
  font:
    9px ui-monospace,
    monospace;
  margin-top: 9px;
  text-shadow: 0 1px 3px #000;
}
.panel {
  position: absolute;
  inset: 6% 8%;
  padding: 24px;
  background: #13242df5;
  border: 1px solid #91a6aa45;
  border-radius: 8px;
  box-shadow: 0 20px 80px #0004;
  overflow: auto;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.panel h2 {
  font-size: 27px;
  margin: 3px 0 12px;
  letter-spacing: -1px;
}
.panel p {
  color: #acbfc6;
  font-size: 12px;
}
.panel-header button {
  background: transparent;
  font-size: 18px;
}
.collection-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.collection-bar input {
  min-width: 50px;
  flex: 1;
}
.collection-bar input,
.collection-bar select {
  background: #23363e;
  border: 1px solid #ffffff25;
  border-radius: 5px;
  color: #e9ece8;
  padding: 11px;
  font-size: 12px;
  height: 44px;
}
.collection-bar span {
  font: 11px monospace;
  white-space: nowrap;
}
.favorites {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin-bottom: 14px;
}
.favorites button {
  padding: 4px;
  font-size: 9px;
  min-width: 0;
}
.favorites button:empty:after {
  content: "+";
  color: #7b9199;
}
.favorites button.active {
  border-color: #ff9464;
}
#collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.emote-card {
  text-align: left;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #22353d;
}
.emote-card .glyph {
  font: 24px monospace;
  color: #a5decf;
}
.emote-card span:last-child {
  font-size: 9px;
  color: #97afb9;
}
.emote-card.locked {
  border-color: #ffffff12;
}
.emote-card b {
  font-size: 11px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}
.pagination span {
  font: 11px monospace;
}
#character-list {
  display: grid;
  /* Eight cards wrap inside the existing scrolling panel, including narrow touch frames. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
  margin-top: 25px;
}
.character-card {
  text-align: left;
  min-height: 130px;
  padding: 25px 15px;
  border-top: 4px solid var(--accent);
}
.character-card b {
  display: block;
  font-size: 20px;
}
.character-card span {
  display: block;
  font-size: 12px;
  margin-top: 14px;
  color: #c0cbd0;
}
#wheel {
  position: absolute;
  inset: 20% 24%;
  background: #14242ff2;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
#wheel h2 {
  font-size: 15px;
  margin: 0 0 12px;
}
#wheel-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
#wheel-slots button {
  font-size: 10px;
}
#wheel-close {
  margin-top: 8px;
}
.preview-panel {
  inset: 8% 22%;
  background: #192e36;
}
#preview-canvas {
  width: 100%;
  height: 55%;
  min-height: 100px;
  display: block;
  border-radius: 5px;
}
.preview-panel h2 {
  font-size: 18px;
}
#touch-actions,
#joystick {
  display: none;
}
@media (pointer: coarse) {
  .desktop-help {
    display: none;
  }
  #joystick {
    display: block;
    position: absolute;
    left: 5%;
    bottom: 15%;
    width: 100px;
    height: 100px;
    border: 2px solid #ffffff55;
    border-radius: 50%;
    background: #182d3450;
    touch-action: none;
  }
  #joystick i {
    display: block;
    position: absolute;
    left: 29px;
    top: 29px;
    width: 38px;
    height: 38px;
    background: #ffffff80;
    border-radius: 50%;
  }
  #touch-actions {
    position: absolute;
    right: 3%;
    bottom: 14%;
    display: grid;
    grid-template-columns: repeat(2, 48px);
    gap: 6px;
  }
  #touch-actions button {
    touch-action: none;
    padding: 3px;
    line-height: 1.1;
    font-size: 12px;
  }
  #touch-actions span {
    font-size: 8px;
  }
  #touch-actions .punch {
    background: #ff8759;
    color: #18242d;
    grid-row: span 2;
    min-height: 70px;
  }
  footer {
    width: 50%;
    bottom: 8px;
  }
  .skill {
    font-size: 9px;
    min-height: 48px;
    padding: 5px;
  }
  .vitals {
    margin-bottom: 5px;
  }
  header {
    top: 8px;
    left: 8px;
    right: 8px;
  }
  .nameplate {
    padding: 6px 9px;
    min-width: 100px;
  }
  .nameplate strong {
    font-size: 17px;
  }
  .stats {
    top: 82px;
    left: 12px;
  }
  .stats b {
    font-size: 25px;
  }
  .room {
    top: 10px;
  }
  .top-actions button {
    padding: 6px;
    min-height: 44px;
  }
  .top-actions span {
    display: none;
  }
}
@media (max-height: 360px) {
  .intro h1 {
    font-size: 34px;
    margin: 12px 0;
    letter-spacing: -2px;
  }
  .intro h1 i {
    font-size: 30px;
  }
  .intro p:not(.eyebrow) {
    font-size: 10px;
  }
  .intro .hint {
    display: none;
  }
  .primary {
    padding: 9px 16px;
    min-height: 44px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .room {
    display: none;
  }
  .stats {
    display: none;
  }
  header {
    top: 6px;
    left: 6px;
    right: 6px;
  }
  .nameplate {
    padding: 4px 8px;
    min-width: 100px;
  }
  .nameplate strong {
    font-size: 14px;
  }
  .nameplate #connection {
    font-size: 8px;
  }
  .top-actions span {
    display: none;
  }
  .top-actions button {
    padding: 5px;
    min-width: 44px;
  }
  .vitals {
    width: 210px;
    margin-bottom: 3px;
  }
  .vital-label {
    font-size: 8px;
  }
  .meter {
    margin: 2px 0;
    height: 4px;
  }
  #ultimate {
    min-height: 22px;
    font-size: 8px;
  }
  .skill {
    font-size: 8px;
    min-height: 44px;
    padding: 4px;
  }
  .desktop-help {
    display: none;
  }
  footer {
    bottom: 4px;
    width: 60%;
  }
  #joystick {
    width: 74px;
    height: 74px;
    bottom: 12%;
    left: 3%;
  }
  #joystick i {
    left: 17px;
    top: 17px;
  }
  #touch-actions {
    grid-template-columns: repeat(2, 44px);
    gap: 3px;
    bottom: 9%;
    right: 1%;
  }
  .panel {
    inset: 3%;
    padding: 10px;
  }
  .panel h2 {
    font-size: 18px;
    margin: 0;
  }
  .panel p {
    font-size: 10px;
    margin: 6px 0;
  }
  #collection-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .emote-card {
    min-height: 65px;
    gap: 3px;
    padding: 7px;
  }
  .emote-card .glyph {
    display: none;
  }
  .collection-bar {
    margin: 5px 0;
    gap: 5px;
  }
  .collection-bar input,
  .collection-bar select {
    padding: 5px;
  }
  .favorites {
    margin-bottom: 6px;
  }
  .character-card {
    padding: 10px;
    min-height: 110px;
  }
  .character-card b {
    font-size: 18px;
  }
  #character-list {
    margin-top: 12px;
  }
  .preview-panel {
    inset: 3% 17%;
  }
  .preview-panel h2 {
    font-size: 12px;
  }
  .preview-panel .panel-header button {
    min-height: 30px;
  }
  #preview-canvas {
    height: 46%;
  }
  #wheel {
    inset: 8% 10%;
    padding: 10px;
  }
}
/* Labels follow projected world positions and never intercept camera or attack input. */
.fighter-label {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -100%);
  width: 60px;
  background: #17252dbb;
  padding: 4px 3px;
  font:
    8px ui-monospace,
    monospace;
  text-align: center;
  z-index: 1;
}
.fighter-label i {
  display: block;
  height: 3px;
  background: #9df0c4;
  margin-top: 3px;
}
.overlay,
.panel,
#wheel {
  z-index: 10;
}
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
#hud button,
#hud #joystick {
  pointer-events: auto;
}
/* White paving needs opaque backing beneath fine HUD labels, especially in sun. */
.vitals {
  background: #17252ded;
  border-radius: 5px;
  padding: 8px 10px;
  max-width: 90%;
}
.vital-label {
  font-size: 10px;
  text-shadow: none;
}
.stats {
  background: #17252dd9;
  padding: 10px;
  border-radius: 5px;
  text-shadow: none;
}
.desktop-help {
  background: #17252ddd;
  border-radius: 4px;
  padding: 5px;
  font-size: 10px;
  text-shadow: none;
}
/* Reserve the shell's top-left fullscreen exit without moving platform controls. */
.nameplate {
  margin-left: 44px;
}
@media (max-height: 360px) {
  .vitals {
    padding: 4px 7px;
  }
  .vital-label {
    font-size: 9px;
  }
}
