.trainer-graphics-gate {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: clamp(24px, 6vw, 72px);
  background: radial-gradient(circle at 50% 46%, #211c14 0%, #100e0b 48%, #070706 100%);
  color: #e8d7ad;
}

.trainer-graphics-gate-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(510px, calc(100vw - 48px));
  min-height: 248px;
  box-sizing: border-box;
  align-content: center;
  padding: 31px 44px 32px;
  border: 1px solid rgba(225, 92, 72, 0.82);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0) 48%),
    radial-gradient(circle at 50% 0%, rgba(213, 164, 102, 0.14), transparent 64%),
    #181511;
  box-shadow:
    inset 0 0 0 1px rgba(232, 215, 173, 0.07),
    inset 0 -24px 42px rgba(0, 0, 0, 0.18),
    0 24px 64px rgba(0, 0, 0, 0.54);
  text-align: center;
}

.trainer-graphics-gate-panel::before {
  content: "";
  width: 104px;
  height: 2px;
  margin-bottom: 5px;
  background: linear-gradient(90deg, transparent, rgba(255, 118, 104, 0.9), transparent);
  box-shadow: 0 0 12px rgba(255, 118, 104, 0.2);
}

.trainer-graphics-gate-panel > b {
  color: rgba(232, 215, 173, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.trainer-graphics-gate-panel > strong {
  color: #ff7668;
  font-size: clamp(18px, 2.5vw, 23px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 1px;
  text-shadow: 0 0 18px rgba(255, 118, 104, 0.14);
}

.trainer-graphics-gate-panel p {
  max-width: 400px;
  margin: 0;
  color: rgba(232, 215, 173, 0.78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.trainer-graphics-gate-instructions {
  display: grid;
  gap: 3px;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px 10px;
  border: 1px solid rgba(177, 132, 60, 0.38);
  background: rgba(7, 6, 5, 0.3);
  text-align: left;
}

.trainer-graphics-gate-instructions em {
  color: #49d5d4;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.trainer-graphics-gate-instructions span {
  color: rgba(232, 215, 173, 0.78);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.trainer-graphics-gate-panel small {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: rgba(232, 215, 173, 0.46);
  font-size: 9px;
  line-height: 1.3;
}

.trainer-graphics-gate-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 3px;
}

.trainer-graphics-gate-actions button {
  min-width: 126px;
  min-height: 31px;
  box-sizing: border-box;
  padding: 6px 12px;
  border: 1px solid rgba(177, 132, 60, 0.7);
  border-radius: 3px;
  background: linear-gradient(rgba(80, 67, 47, 0.9), rgba(39, 33, 25, 0.96));
  color: #f0ddb0;
  font: 700 10px/1 "RSAim UI", sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.trainer-graphics-gate-actions button:hover,
.trainer-graphics-gate-actions button:focus-visible {
  border-color: #49d5d4;
  color: #fff1ca;
  outline: none;
  box-shadow: 0 0 10px rgba(73, 213, 212, 0.17);
}

@media (max-width: 560px) {
  .trainer-graphics-gate-panel {
    width: min(430px, calc(100vw - 32px));
    padding: 28px 24px 30px;
  }

  .trainer-graphics-gate-actions {
    width: 100%;
    flex-direction: column;
  }

  .trainer-graphics-gate-actions button {
    width: 100%;
  }
}
