:root {
  --GLOBAL: radial-gradient(100% 100% at 50% 0, #ff7c5b 0, #d94a55 100%);
  --summer-page: #14131b;
  --summer-panel: rgba(46, 43, 58, 0.94);
  --summer-border: rgba(255, 164, 111, 0.14);
  --summer-text: #f7f3ef;
  --summer-muted: #a39dad;
  --summer-accent: #f2a45f;
}

body {
  color: var(--summer-text) !important;
  background:
    radial-gradient(circle at 18% 6%, rgba(255, 108, 82, 0.16), transparent 30%),
    radial-gradient(circle at 84% 11%, rgba(242, 164, 95, 0.12), transparent 34%),
    linear-gradient(145deg, #15131d 0%, #1f1b27 45%, #14131b 100%) !important;
}

.Background,
.Panel,
.Auth,
.Form,
.modal-content {
  background: linear-gradient(180deg, rgba(59, 55, 72, 0.94) 0%, var(--summer-panel) 100%) !important;
  border-color: var(--summer-border) !important;
  box-shadow: 0 18px 42px rgba(8, 7, 12, 0.38) !important;
  color: var(--summer-text) !important;
}

.Panel span,
.Panel p,
.Panel label,
.Auth span,
.Auth p,
.Auth label {
  color: var(--summer-text) !important;
}

input,
textarea,
select,
.form-control {
  background: rgba(38, 36, 49, 0.94) !important;
  border-color: var(--summer-border) !important;
  color: var(--summer-text) !important;
}

input::placeholder,
textarea::placeholder {
  color: #777184 !important;
}

a,
.ClickSound,
.Panel i {
  color: var(--summer-accent) !important;
}

.Background .Panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 10px !important;
  top: 42px !important;
  right: 42px !important;
}

.Background .Panel .ClickSound {
  min-height: 48px;
  padding: 0 16px 0 18px;
  border: 1px solid rgba(255, 164, 111, 0.13);
  border-radius: 16px;
  background: rgba(45, 42, 58, 0.76);
  box-shadow: 0 14px 34px rgba(9, 7, 13, 0.28);
  color: #efe9e4 !important;
  animation: none !important;
  backdrop-filter: blur(10px);
}

.Background .Panel .ClickSound span {
  color: #efe9e4 !important;
  font-size: 14px;
  white-space: nowrap;
}

.Background .Panel .ClickSound svg {
  width: 22px;
  height: 22px;
  color: #f4a765;
  opacity: 0.9;
}

.Background .Panel button.Volume {
  width: 52px;
  height: 52px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #ff8164 0%, #dc4f5b 100%) !important;
  box-shadow: 0 12px 26px rgba(220, 79, 91, 0.26) !important;
  animation: none !important;
}

.Background .Panel button.Volume:hover {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #ff956f 0%, #d64a55 100%) !important;
}

.Background .Panel button.Volume img {
  width: 24px !important;
  height: 24px !important;
  filter: invert(1);
  opacity: 0.96;
}

.AuthSocial a {
  min-width: 142px;
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 129, 100, 0.96) 0%, rgba(220, 79, 91, 0.96) 100%);
  color: #ffffff !important;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(220, 79, 91, 0.2);
}

.AuthSocial a:hover {
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn,
button,
input[type="submit"],
.Button,
.Discord {
  background: var(--GLOBAL) !important;
  border-color: rgba(255, 137, 93, 0.26) !important;
  color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: 0 10px 24px rgba(217, 74, 85, 0.22) !important;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
.Button:hover,
.Discord:hover {
  background: radial-gradient(100% 100% at 50% 0, #ff9165 0, #c94750 100%) !important;
  color: #ffffff !important;
}

#api_auth.modal.show .modal-dialog {
  left: 50% !important;
  right: auto !important;
  top: 50% !important;
  width: min(550px, calc(100vw - 32px));
  margin: 0 !important;
  text-align: center;
  transform: translate(-50%, -50%) !important;
}

#api_auth.modal.show .modal-content {
  padding: 34px 36px 36px !important;
  border-radius: 14px;
}

#api_auth.modal.show .modal-header {
  position: relative;
  justify-content: center;
  padding: 0 48px 24px;
  border: 0;
}

#api_auth.modal.show .modal-header .modal-title {
  width: 100%;
  text-align: center !important;
}

#api_auth.modal.show .modal-header .close {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0 !important;
}

#api_auth.modal.show .modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

#api_auth.modal.show .modal-body p {
  margin: 0 0 22px;
  text-align: center;
}

#api_auth.modal.show #api_email,
#api_auth.modal.show #api_reg_btn {
  width: min(304px, 100%);
}
