*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  color: #e6ebff;
  background: radial-gradient(circle at 1px 1px, rgba(120, 140, 255, 0.15) 1px, transparent 0) 0 0 / 22px 22px,
    #05070f;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.shell__column {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

/* —— Toast —— */
.toast-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.toast {
  --toast-accent: #7ab0ff;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: stretch;
  column-gap: 6px;
  row-gap: 0;
  padding: 10px 10px 0 12px;
  background: rgba(12, 16, 32, 0.95);
  border: 1px solid rgba(80, 100, 180, 0.28);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: toast-in 0.38s cubic-bezier(0.34, 1.15, 0.64, 1) both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.is-out {
  animation: toast-out 0.32s ease forwards;
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

.toast--success {
  --toast-accent: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}

.toast--error {
  --toast-accent: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}

.toast--warning {
  --toast-accent: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.toast--info {
  --toast-accent: #60a5fa;
  border-color: rgba(96, 165, 250, 0.35);
}

.toast__main {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px 0 10px;
  padding-right: 4px;
}

.toast__close {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  margin: 0;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(200, 210, 240, 0.45);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.toast__close:hover {
  color: rgba(230, 235, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
}

.toast__close-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.toast__icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.16);
  color: var(--toast-accent);
  flex-shrink: 0;
}

.toast--success .toast__icon-wrap {
  background: rgba(52, 211, 153, 0.18);
}

.toast--error .toast__icon-wrap {
  background: rgba(251, 113, 133, 0.18);
}

.toast--warning .toast__icon-wrap {
  background: rgba(251, 191, 36, 0.18);
}

.toast--info .toast__icon-wrap {
  background: rgba(96, 165, 250, 0.18);
}

.toast__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.toast__body {
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 32px;
}

.toast__msg {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(230, 235, 255, 0.92);
}

.toast__bar {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 2px;
  margin: 0 -10px 0 -12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 0 9px 9px;
  overflow: hidden;
}

.toast__bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--toast-accent), #e8ecff);
  transform-origin: left center;
  animation: toast-progress 3s linear forwards;
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.card {
  width: 100%;
  padding: 28px 22px 24px;
  background: rgba(12, 16, 32, 0.92);
  border: 1px solid rgba(80, 100, 180, 0.22);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(120, 140, 220, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 28px 72px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(70, 90, 180, 0.14),
    0 0 120px rgba(50, 80, 160, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card__header {
  margin-bottom: 22px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(120, 140, 255, 0.35));
  animation: logo-mark-float 2.8s ease-in-out infinite;
}

@keyframes logo-mark-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.logo-mark__svg {
  display: block;
}

.logo-mark__cell--tl {
  stroke: #a78bfa;
}

.logo-mark__cell--tr {
  stroke: #60a5fa;
}

.logo-mark__cell--bl {
  stroke: #f472b6;
}

.logo-mark__cell--br {
  stroke: #34d399;
}

.card__title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
}

.card__title-card {
  color: #b8c5f0;
  font-weight: 700;
}

.card__title-names {
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #a78bfa 0%, #60a5fa 40%, #34d399 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(96, 165, 250, 0.25);
  position: relative;
}

.card__title-names::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.5), rgba(96, 165, 250, 0.6), rgba(52, 211, 153, 0.45));
  opacity: 0.85;
}

.card__tagline {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(200, 210, 240, 0.55);
  font-weight: 500;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guest-identity {
  padding: 14px 14px 16px;
  background: rgba(6, 10, 22, 0.55);
  border: 1px solid rgba(90, 110, 180, 0.22);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.guest-identity > .field {
  margin-bottom: 0;
}

.avatar-block--guest {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(100, 120, 200, 0.12);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(220, 228, 255, 0.72);
}

.input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.875rem;
  color: #e6ebff;
  background: rgba(4, 6, 14, 0.85);
  border: 1px solid rgba(100, 120, 200, 0.2);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: rgba(180, 190, 230, 0.35);
}

.input:focus {
  border-color: rgba(120, 160, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(80, 120, 255, 0.15);
}

.avatar-block__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.link-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.78125rem;
  font-weight: 500;
  color: #7ab0ff;
  cursor: pointer;
  transition: color 0.15s ease;
}

.link-refresh:hover {
  color: #9ec5ff;
}

.link-refresh__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.avatar-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.avatar-pick {
  position: relative;
  flex: 1;
  min-width: 0;
  aspect-ratio: 1;
  max-width: 62px;
  border-radius: 10px;
  background: rgba(4, 6, 14, 0.85);
  border: 2px solid rgba(80, 100, 160, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.avatar-pick:hover {
  border-color: rgba(140, 175, 255, 0.85);
  box-shadow:
    0 0 0 2px rgba(80, 130, 255, 0.22),
    0 10px 28px rgba(40, 80, 200, 0.35),
    0 0 24px rgba(100, 150, 255, 0.2);
  transform: translateY(-3px) scale(1.04);
}

.avatar-pick:hover .avatar-pick__img {
  transform: scale(1.05);
}

.avatar-pick__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-pick:has(.avatar-pick__input:checked) {
  border-color: #3d9cff;
  box-shadow: 0 0 0 1px rgba(61, 156, 255, 0.35), 0 0 16px rgba(61, 156, 255, 0.2);
}

.avatar-pick__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.btn-hint {
  position: relative;
  width: 100%;
}

.btn-hint__tip {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(10px) scale(0.96);
  padding: 9px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(228, 234, 255, 0.96);
  text-align: center;
  max-width: min(288px, 88vw);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: linear-gradient(180deg, rgba(24, 30, 54, 0.99) 0%, rgba(14, 18, 38, 0.99) 100%);
  border: 1px solid rgba(120, 145, 220, 0.38);
  border-radius: 11px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.btn-hint__tip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(120, 145, 220, 0.45);
}

.btn-hint__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -2px;
  border: 6px solid transparent;
  border-top-color: rgba(18, 22, 42, 0.99);
}

.btn-hint:hover .btn-hint__tip,
.btn-hint:focus-within .btn-hint__tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.25, 0.64, 1), filter 0.2s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px) scale(0.97);
}

@keyframes btn-primary-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes btn-primary-glow {
  0%,
  100% {
    box-shadow: 0 6px 20px rgba(90, 100, 255, 0.32), 0 0 0 0 rgba(120, 140, 255, 0.35);
  }
  50% {
    box-shadow: 0 8px 28px rgba(100, 110, 255, 0.45), 0 0 24px rgba(120, 140, 255, 0.2);
  }
}

.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, #6d4dff 0%, #4a7dff 35%, #5b6bff 55%, #8b5cf6 100%);
  background-size: 220% 220%;
  animation: btn-primary-gradient 5s ease-in-out infinite, btn-primary-glow 2.8s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(90, 100, 255, 0.35);
}

.btn--primary::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  left: -40%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.18) 45%, transparent 70%);
  transform: skewX(-18deg) translateX(-100%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn--primary:hover {
  filter: brightness(1.08);
  animation-duration: 2.8s, 1.6s;
}

.btn--primary:hover::before {
  transform: skewX(-18deg) translateX(280%);
}

.btn--secondary {
  color: #e6ebff;
  background: rgba(8, 10, 22, 0.9);
  border: 1px solid rgba(120, 130, 180, 0.35);
  animation: btn-secondary-pulse 3.2s ease-in-out infinite;
}

@keyframes btn-secondary-pulse {
  0%,
  100% {
    border-color: rgba(120, 130, 180, 0.35);
    box-shadow: 0 0 0 0 rgba(100, 140, 255, 0);
  }
  50% {
    border-color: rgba(150, 170, 230, 0.5);
    box-shadow: 0 0 16px rgba(80, 120, 255, 0.08);
  }
}

.btn--secondary::after {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(120, 180, 255, 0.7), transparent);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
  border-radius: 2px;
}

.btn--secondary:hover {
  background: rgba(18, 22, 40, 0.95);
  border-color: rgba(160, 180, 240, 0.55);
  animation: none;
  box-shadow: 0 0 20px rgba(80, 120, 255, 0.12);
}

.btn--secondary:hover::after {
  width: 72%;
}

.btn__icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn__icon-svg--lead {
  width: 22px;
  height: 22px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 20px;
}

.divider__line {
  flex: 1;
  height: 1px;
  min-height: 1px;
  border: none;
  padding: 0;
  margin: 0;
}

.divider__line--from-left {
  background: linear-gradient(
    90deg,
    rgba(150, 165, 220, 0.38) 0%,
    rgba(140, 150, 200, 0.12) 72%,
    transparent 100%
  );
}

.divider__line--from-right {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(140, 150, 200, 0.12) 28%,
    rgba(150, 165, 220, 0.38) 100%
  );
}

.divider__text {
  font-size: 0.8125rem;
  color: rgba(180, 190, 220, 0.45);
  font-weight: 500;
}

.social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn--social {
  font-weight: 600;
}

.btn__brand {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.btn--steam {
  color: #c7d5e0;
  background: linear-gradient(180deg, #1b2838 0%, #171a21 100%);
  border: 1px solid rgba(102, 192, 244, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(102, 192, 244, 0.08);
}

.btn--steam:hover {
  color: #e5eef5;
  background: linear-gradient(180deg, #22354a 0%, #1c2029 100%);
  border-color: rgba(102, 192, 244, 0.55);
  box-shadow: 0 0 24px rgba(102, 192, 244, 0.12);
}

.btn--steam .btn__label {
  color: inherit;
}

.btn--kick {
  color: #e8ffe8;
  background: linear-gradient(180deg, #0a1408 0%, #050805 100%);
  border: 1px solid rgba(83, 252, 24, 0.55);
  box-shadow: 0 0 0 1px rgba(83, 252, 24, 0.12), inset 0 1px 0 rgba(83, 252, 24, 0.06);
}

.btn--kick:hover {
  border-color: rgba(100, 255, 50, 0.85);
  background: linear-gradient(180deg, #0f1f0c 0%, #080c06 100%);
  box-shadow: 0 0 28px rgba(83, 252, 24, 0.18);
}

/* OAuth profile */
.is-hidden {
  display: none !important;
}

.identity-oauth__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(4, 6, 14, 0.75);
  border: 1px solid rgba(100, 120, 200, 0.22);
  border-radius: 12px;
}

.identity-oauth__avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(120, 160, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.identity-oauth__meta {
  flex: 1;
  min-width: 0;
}

.identity-oauth__name {
  font-size: 1rem;
  font-weight: 700;
  color: #e6ebff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.identity-oauth__provider {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(180, 200, 240, 0.55);
}

.identity-oauth__provider.is-steam {
  color: rgba(102, 192, 244, 0.75);
}

.identity-oauth__provider.is-kick {
  color: rgba(120, 255, 80, 0.75);
}

.btn-logout {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(230, 235, 255, 0.85);
  background: rgba(255, 80, 100, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-logout:hover {
  background: rgba(251, 113, 133, 0.2);
  border-color: rgba(251, 113, 133, 0.55);
  color: #fff;
}

.btn-logout__icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 380px) {
  .btn-logout__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .btn-logout {
    padding: 8px 10px;
  }
}

.card__footer {
  margin-top: 26px;
}

.stats-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.75) 0%, rgba(6, 9, 20, 0.85) 100%);
  border: 1px solid rgba(100, 120, 200, 0.22);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stats-bar__item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 2px 6px;
}

.stats-bar__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(160, 175, 220, 0.55);
  line-height: 1.2;
}

.stats-bar__value {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #d8e0ff;
  text-shadow: 0 0 24px rgba(120, 160, 255, 0.25);
}

.stats-bar__sep {
  align-self: stretch;
  width: 1px;
  min-width: 1px;
  margin: 4px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(120, 140, 200, 0.35) 22%,
    rgba(120, 140, 200, 0.35) 78%,
    transparent 100%
  );
}

@media (max-width: 360px) {
  .stats-bar {
    padding: 10px 10px;
  }

  .stats-bar__label {
    font-size: 0.625rem;
    letter-spacing: 0.03em;
  }

  .stats-bar__value {
    font-size: 1rem;
  }
}

/* —— Logout modal —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
  perspective: 1000px;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 26px 24px 22px;
  background: rgba(14, 18, 36, 0.97);
  border: 1px solid rgba(100, 120, 200, 0.28);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(120, 140, 220, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(60, 80, 160, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-72px) scale(0.88) rotateX(10deg);
  transform-origin: 50% 0%;
  opacity: 0;
  filter: blur(5px);
  transition: transform 0.52s cubic-bezier(0.28, 0.82, 0.32, 1.04), opacity 0.38s ease, filter 0.38s ease;
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1) rotateX(0deg);
  opacity: 1;
  filter: blur(0);
  transition-delay: 0.05s;
}

.modal__title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8ecff;
  line-height: 1.35;
}

.modal__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(190, 200, 235, 0.72);
  font-weight: 500;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.modal-btn {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.25, 0.64, 1), box-shadow 0.22s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.modal-btn:hover {
  transform: translateY(-2px);
}

.modal-btn:active {
  transform: translateY(0) scale(0.97);
}

.modal-btn--no {
  color: rgba(220, 228, 255, 0.9);
  background: rgba(8, 12, 28, 0.95);
  border: 1px solid rgba(120, 135, 190, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.modal-btn--no:hover {
  background: rgba(20, 26, 48, 0.98);
  border-color: rgba(150, 170, 230, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.modal-btn--yes {
  color: #fff;
  background: linear-gradient(135deg, #e85d6f 0%, #d9465c 50%, #c73e52 100%);
  border: 1px solid rgba(255, 130, 150, 0.35);
  box-shadow: 0 6px 22px rgba(220, 70, 90, 0.35);
}

.modal-btn--yes:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(220, 70, 90, 0.45);
}

@keyframes modal-btn-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal.is-open .modal-btn {
  animation: modal-btn-rise 0.42s cubic-bezier(0.34, 1.15, 0.64, 1) backwards;
}

.modal.is-open .modal-btn--no {
  animation-delay: 0.1s;
}

.modal.is-open .modal-btn--yes {
  animation-delay: 0.18s;
}
