@charset "UTF-8";
/*=============================================
*
* ゲーム HUD 共通
*
=============================================*/
.game-hud {
  background-color: var(--color-hud-bg);
  min-height: 100vh;
  width: 100%;
}

body:has(.game-hud) {
  background-color: var(--color-hud-bg);
  background-image: none;
}

.game-hud__inner {
  margin: 0 auto;
  max-width: 50rem;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

.game-hud__header {
  align-items: flex-start;
  display: flex;
  justify-content: flex-start;
  gap: 1.2rem;
  height: 7.5rem;
  padding: 0.5rem 0.5rem 0 0.5rem;
  position: relative;
}

.game-hud__rank-container {
  text-align: left;
  width: calc(100% - 20rem);
}

.game-hud__rank {
  align-items: center;
  color: var(--color-hud-text-light);
  display: flex;
  flex-direction: row;
  font-size: 1.6rem;
  font-weight: 500;
  gap: 0.8rem;
  line-height: 1.4;
  white-space: pre-line;
}

.game-hud__rank-avatar {
  background-color: var(--color-input-bg);
  border-radius: 50%;
  flex-shrink: 0;
  height: 3.5rem;
  overflow: hidden;
  position: relative;
  width: 3.5rem;
}

.game-hud__rank-avatar img {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

.game-hud__rank-text {
  display: flex;
  flex-direction: column;
}

.game-hud__player-name {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.game-hud__area {
  background-color: var(--color-hud-area);
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  text-align: center;
  padding: 0.3rem;
  position: relative;
  top: -3rem;
  width: 13rem;
}

.game-hud__area-inner {
  border: 0.1rem solid #fff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  justify-content: center;
  padding: 2.9rem 0.9rem 1rem 0.9rem;
  text-align: center;
}

.game-hud__area-label {
  color: var(--color-hud-text-light);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.game-hud__area-floor {
  color: var(--color-hud-text-light);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.game-hud__logo {
  max-width: 6.56rem;
  width: 65.6px;
}

.game-hud__logo-img {
  height: auto;
  object-fit: cover;
  width: 100%;
}

.game-hud__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.2rem;
  width: 100%;
}

.game-hud__tab {
  background-color: var(--color-hud-tab);
  border: 1px solid var(--color-hud-bg);
  display: flex;
  height: 4.9rem;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.game-hud__tab span {
  align-items: center;
  appearance: none;
  color: var(--color-hud-text-light);
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  top: -3px;
  width: auto;
}
.game-hud__tab.-comm span {
  background: url(../images/game/game-hud__tab-icon-comm.svg) no-repeat left center transparent;
  padding: 0 0 0 3.5rem;
}
.game-hud__tab.-log span {
  background: url(../images/game/game-hud__tab-icon-log.svg) no-repeat left center;
  padding: 0 0 0 3.4rem;
}
.game-hud__tab.-status span {
  background: url(../images/game/game-hud__tab-icon-status.svg) no-repeat left center;
  padding: 0 0 0 3.4rem;
}

.game-hud__tab.-comm.is-active::after {
  background-color: var(--color-hud-tab-active-comm);
  border: 1px solid var(--color-hud-bg);
}

.game-hud__tab.-log.is-active::after {
  background-color: var(--color-hud-tab-active-log);
  border: 1px solid var(--color-hud-bg);
}

.game-hud__tab.-status.is-active::after {
  background-color: var(--color-hud-tab-active-status);
  border: 1px solid var(--color-hud-bg);
}

.game-hud__tab.is-active::after {
  bottom: 0;
  content: "";
  height: 1rem;
  left: 0;
  position: absolute;
  width: 100%;
}

.game-hud__content {
  background: url(../images/game/background-logo.png) no-repeat center center/259.6px;
  min-height: 14rem;
  width: 100%;
}

.game-hud__banner {
  background-color: var(--color-hud-banner);
  color: #000000;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.45;
  min-height: 5.8rem;
  padding: 0.8rem 1.6rem;
  white-space: pre-line;
}

.game-hud__footer {
  margin-top: auto;
  width: 100%;
}

.game-hud__controls {
  background-color: var(--color-hud-bg);
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto auto;
  padding: 0.5rem;
}

.game-hud__input {
  appearance: none;
  background-color: var(--color-input-bg);
  border: none;
  border-radius: 0;
  color: #333333;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.6rem;
  height: 4.8rem;
  padding: 0 1rem;
  width: 100%;
}

.game-hud__input::placeholder {
  color: var(--color-hud-input-placeholder);
}

.game-hud__send-btn {
  appearance: none;
  background: var(--color-hud-send-btn);
  border: none;
  border-radius: 0 5px 5px 0;
  color: var(--color-white-text);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 500;
  height: 4.8rem;
  padding: 0;
  text-align: center;
  width: 6.2rem;
}

.game-hud__camera-btn {
  appearance: none;
  background: var(--color-hud-camera) url(../images/game/btn-camera-icon.svg) no-repeat left 7px center;
  border: none;
  border-radius: 10px;
  color: var(--color-black-text);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 500;
  height: 4.8rem;
  line-height: 1.2;
  margin-left: 0.5rem;
  padding: 0 0 0 4.5rem;
  width: 12.5rem;
}

.game-hud__camera-img {
  width: 100%;
}

.game-hud__timer {
  --timer-fill-percent: 0%;
  background: linear-gradient(to right, var(--color-hud-timer-bar-active) var(--timer-fill-percent), var(--color-hud-timer-bar) var(--timer-fill-percent));
  padding: 0.6rem 0 1rem;
  text-align: center;
  width: 100%;
}

.game-hud__timer.-active {
  background-color: var(--color-hud-timer-bar-active);
}

.game-hud__timer-value {
  color: var(--color-hud-text-light);
  font-family: "Roboto", sans-serif;
  font-size: 5.8rem;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.game-hud__timer-label {
  color: var(--color-hud-text-light);
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0.2rem 0 0;
}

/*=============================================
*
* モーダル共通
*
=============================================*/
.modal-overlay {
  align-items: center;
  background-color: var(--color-modal-overlay);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.6rem;
  position: fixed;
  z-index: 100;
}

.modal-box {
  background-color: var(--color-button);
  color: var(--color-hud-text-light);
  max-width: 29.9rem;
  padding: 2.4rem 2rem 2rem;
  text-align: center;
  width: 100%;
}

.modal-box.-light {
  background-color: var(--color-input-bg);
  color: #000000;
}

.modal-box__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.modal-box__lead {
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 1.6rem 0 0;
}

.modal-box__body {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 2rem 0 0;
  white-space: pre-line;
}

.modal-box__actions {
  align-items: center;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2.4rem;
}

.modal-box__btn {
  appearance: none;
  background: var(--color-hud-send-btn);
  border: none;
  color: var(--color-white-text);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 500;
  padding: 0.2rem 0 0.4rem;
}

.modal-box__btn.-cancel {
  width: 12rem;
}

.modal-box__btn.-confirm {
  width: 11.6rem;
}

.modal-box__btn.-close {
  width: 12.5rem;
}

.modal-box__btn-img {
  width: 100%;
}

@media screen and (max-width: 360px) {
  .game-hud__area {
    width: 11.5rem;
  }
  .game-hud__tab {
    font-size: 1.2rem;
  }
  .game-hud__timer-value {
    font-size: 3.2rem;
  }
}