/* M.U.N.I.T. — KONTO GRACZA V1 */

.game-account-menu {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding: 10px 0;
  border-top: 1px solid #E1E8E4;
  border-bottom: 1px solid #E1E8E4;
}

.game-account-menu-status {
  display: grid;
  grid-template-columns: 9px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  padding: 9px 11px;
  border: 1px solid #DDE6E1;
  border-radius: 13px;
  background: #F7F9F7;
}

.game-account-menu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A8B2AF;
}

.game-account-menu-status.is-online .game-account-menu-dot {
  background: #5EA87E;
  box-shadow: 0 0 0 3px rgba(94,168,126,.12);
}

.game-account-menu-status.is-guest .game-account-menu-dot {
  background: #C5A665;
}

.game-account-menu-status strong,
.game-account-menu-status small {
  display: block;
}

.game-account-menu-status strong {
  color: #34464B;
  font-size: 10px;
  font-weight: 900;
}

.game-account-menu-status small {
  margin-top: 2px;
  color: #78868B;
  font-size: 8px;
  line-height: 1.35;
}

.game-account-menu-link {
  text-decoration: none !important;
}

.game-account-logout strong {
  color: #8B5555 !important;
}

.game-account-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(27,38,42,.38);
  backdrop-filter: blur(6px);
}

.game-account-overlay.hidden {
  display: none !important;
}

body.game-account-modal-open {
  overflow: hidden !important;
}

.game-account-sheet {
  width: min(94vw, 560px);
  max-height: min(90dvh, 780px);
  overflow: auto;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid #DDE6E1;
  border-radius: 22px;
  background: #FCFDFB;
  box-shadow: 0 24px 70px rgba(37,50,57,.22);
}

.game-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.game-account-kicker {
  color: #477C83;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .1em;
}

.game-account-head h2 {
  margin: 3px 0;
  color: #253239;
  font-size: 20px;
  line-height: 1.15;
}

.game-account-head p {
  margin: 0;
  color: #758389;
  font-size: 9px;
}

.game-account-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #DFE7E3;
  border-radius: 11px;
  background: #FFF;
  color: #53646B;
  font-size: 20px;
}

.game-account-form {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.game-account-form label {
  display: grid;
  gap: 5px;
  color: #53646B;
  font-size: 9px;
  font-weight: 850;
}

.game-account-form input {
  width: 100%;
  min-height: 43px;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #DCE5E0;
  border-radius: 12px;
  outline: none;
  background: #FFF;
  color: #253239;
  font-size: 12px;
}

.game-account-form input:focus {
  border-color: #7DA2A6;
  box-shadow: 0 0 0 3px rgba(71,124,131,.10);
}

.game-account-primary {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #477C83;
  color: #FFF;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .03em;
}

.game-account-primary:disabled {
  opacity: .65;
}

.game-account-error {
  min-height: 16px;
  color: #A04F4F;
  font-size: 9px;
  line-height: 1.4;
}

.game-account-auth-note {
  padding: 10px 11px;
  border-radius: 12px;
  background: #F2F6F3;
  color: #718087;
  font-size: 9px;
  line-height: 1.45;
}

.game-account-create-link {
  color: #477C83;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.game-account-profile-card {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 11px;
  border: 1px solid #DFE7E3;
  border-radius: 15px;
  background: #FFF;
}

.game-account-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #E7F0EC;
  color: #477C83;
  font-size: 17px;
  font-weight: 950;
}

.game-account-profile-card strong,
.game-account-profile-card span {
  display: block;
}

.game-account-profile-card strong {
  color: #2F4146;
  font-size: 12px;
}

.game-account-profile-card span {
  margin-top: 2px;
  overflow: hidden;
  color: #7C898E;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-account-profile-card em {
  color: #4E946E;
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
}

.game-account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 9px;
}

.game-account-stat {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 56px;
  padding: 6px 4px;
  border: 1px solid #E1E8E4;
  border-radius: 12px;
  background: #F8FAF8;
}

.game-account-stat strong {
  color: #34464B;
  font-size: 16px;
}

.game-account-stat span {
  color: #7C898E;
  font-size: 6px;
  font-weight: 950;
  letter-spacing: .05em;
}

.game-account-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #E3E9E5;
}

.game-account-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: #53646B;
  font-size: 9px;
  font-weight: 950;
}

.game-account-games,
.game-history-list {
  display: grid;
  gap: 6px;
}

.game-account-game-row {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #E1E8E4;
  border-radius: 11px;
  background: #FFF;
}

.game-account-game-name {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.game-account-game-name > span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #F1F5F2;
  font-size: 12px;
}

.game-account-game-name strong {
  overflow: hidden;
  color: #42545A;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-account-game-numbers {
  text-align: right;
}

.game-account-game-numbers b {
  display: block;
  color: #34464B;
  font-size: 10px;
}

.game-account-game-numbers span {
  color: #849196;
  font-size: 7px;
}

.game-history-row {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #E1E8E4;
  border-radius: 12px;
  background: #FFF;
}

.game-history-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #F1F5F2;
  font-size: 15px;
}

.game-history-main {
  min-width: 0;
}

.game-history-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.game-history-top strong {
  min-width: 0;
  overflow: hidden;
  color: #405258;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-history-top span {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 6px;
  font-weight: 950;
}

.game-history-top .is-win {
  background: #E7F4EC;
  color: #4E8F69;
}

.game-history-top .is-draw {
  background: #F2F2EC;
  color: #7F806A;
}

.game-history-top .is-loss {
  background: #F7EAEA;
  color: #9B5D5D;
}

.game-history-opponent {
  margin-top: 2px;
  color: #6F7E83;
  font-size: 8px;
}

.game-history-opponent b {
  margin-left: 5px;
  color: #34464B;
  font-size: 9px;
}

.game-history-meta {
  margin-top: 2px;
  color: #98A2A5;
  font-size: 7px;
}

.game-history-row time {
  color: #9AA4A7;
  font-size: 6px;
  text-align: right;
  white-space: nowrap;
}

.game-account-empty {
  display: grid;
  place-items: center;
  padding: 22px 12px;
  border-radius: 14px;
  background: #F5F8F6;
  text-align: center;
}

.game-account-empty > span {
  font-size: 25px;
}

.game-account-empty strong {
  margin-top: 5px;
  color: #475A5F;
  font-size: 10px;
}

.game-account-empty p {
  max-width: 310px;
  margin: 4px 0 0;
  color: #849196;
  font-size: 8px;
  line-height: 1.5;
}

.game-account-loading,
.game-account-error-card {
  margin-top: 16px;
  padding: 18px 12px;
  border-radius: 13px;
  background: #F5F8F6;
  color: #6F7E83;
  font-size: 9px;
  text-align: center;
}

.game-account-error-card {
  background: #FAEEEE;
  color: #955A5A;
}

@media (max-width: 390px) {
  .game-account-sheet {
    padding: 14px;
    border-radius: 18px;
  }

  .game-account-stat-grid {
    gap: 4px;
  }

  .game-account-stat {
    min-height: 50px;
  }

  .game-history-row {
    grid-template-columns: 30px minmax(0,1fr);
  }

  .game-history-icon {
    width: 30px;
    height: 30px;
  }

  .game-history-row time {
    grid-column: 2;
    text-align: left;
  }
}
