.official-warning,
.platform-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8, 5, 2, 0.88);
  backdrop-filter: blur(8px) saturate(0.8);
}
.official-warning.open,
.platform-modal.open {
  display: flex;
}
.official-warning > div {
  width: min(470px, 92vw);
  padding: 30px;
  border: 1px solid #edab36;
  border-radius: 12px;
  color: #ead2ad;
  background: #321907;
  box-shadow: 0 0 30px #e9a32855;
  text-align: center;
}
.official-warning h2 {
  margin-top: 0;
  color: #f5b43e;
  font: 700 17px Orbitron;
}
.official-warning p {
  line-height: 1.7;
}
.official-warning button {
  padding: 10px 35px;
  border: 1px solid #e2a03a;
  border-radius: 5px;
  color: #321907;
  background: #f3b43e;
  font: 700 11px Orbitron;
  cursor: pointer;
}
.platform-dialog {
  width: min(1800px, calc(60vw - 56px));
  max-height: calc(60vh - 56px);
  overflow: auto;
  border: 1px solid #d99227;
  border-radius: 14px;
  color: #e9c58c;
  background: linear-gradient(145deg, #48240c 0%, #351907 100%);
  box-shadow:
    0 0 0 1px #5c2e0d,
    0 0 38px #ee971f55,
    0 20px 80px #000b;
}
.modal-container {
  position: relative;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid #ee2770;
  border-radius: 50%;
  color: #ee2770;
  background: #261105aa;
  font:
    400 35px/1 Inter,
    sans-serif;
  cursor: pointer;
  transition: 0.2s ease;
}
.modal-close:hover {
  color: #fff;
  background: #ee2770;
  transform: rotate(90deg);
}
.modal-header {
  min-height: 150px;
  padding: 35px 54px 27px;
  border-bottom: 1px solid #b87520;
}
.modal-terminal {
  display: flex;
  gap: 12px;
  color: #28ddbe;
  font:
    500 14px 'Share Tech Mono',
    monospace;
}
.terminal-prompt-modal {
  color: #21dce0;
}
.terminal-command-modal {
  color: #22e57a;
}
.modal-title {
  margin-top: 24px;
  color: #fff7e8;
  text-align: center;
  letter-spacing: 1.5px;
  font:
    900 clamp(25px, 2.1vw, 42px)/1.1 Orbitron,
    sans-serif;
  text-shadow: 0 0 18px #f1a62d88;
}
.modal-bracket {
  color: #ffbd25;
  padding: 0 8px;
}
.modal-subtitle {
  margin-top: 17px;
  color: #a9a9c9;
  text-align: center;
  font:
    500 14px Inter,
    sans-serif;
}
.modal-icon {
  margin-right: 7px;
  color: #19ee8d;
}
.modal-stats {
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 19px 30px;
  border-bottom: 1px solid #b87520;
  background: #25110666;
  font:
    500 13px Orbitron,
    sans-serif;
}
.modal-stat {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.stat-label {
  color: #8e82a4;
}
.stat-value {
  color: #ffb72e;
  text-shadow: 0 0 12px #f7a61e99;
}
.stat-online {
  color: #ffba24;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 27px 45px 45px;
}
.platform-card {
  position: relative;
  display: block;

  overflow: hidden;
  border: 1px solid #9f641b;
  border-radius: 12px;
  background: #1e0e06;
  box-shadow:
    inset 0 0 0 1px #4b270d,
    0 7px 18px #160a0444;
  transition: 0.22s ease;
}
.platform-card:hover {
  border-color: #f1b83b;
  box-shadow:
    inset 0 0 0 1px #efb035,
    0 0 24px #ed9c2d66;
  transform: translateY(-3px);
}
.platform-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #6c36120a 0%, transparent 60%, #0008 100%);
  pointer-events: none;
}
.platform-card img {
  width: 100%;
  height: 100%;
  padding: 13% 11% 16%;
  object-fit: contain;
}
.platform-status {
  position: absolute;
  right: 14px;
  bottom: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 5px;
  color: #07180e;
  background: #20e978;
  font:
    800 11px Inter,
    sans-serif;
  box-shadow: 0 0 12px #20e97855;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #08743b;
}
.win-toast {
  position: fixed;
  left: 18px;
  bottom: 70px;
  z-index: 12;
  width: 235px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #a26928;
  border-radius: 8px;
  color: #d8b384;
  background: #371c0a;
  box-shadow: 0 5px 18px #0005;
  font-size: 10px;
  transform: translateX(-280px);
  transition: transform 0.5s;
}
.win-toast.show {
  transform: translateX(0);
}
.win-toast strong {
  color: #5adc85;
  font-size: 13px;
}
@media (max-width: 720px) {
  .platform-modal {
    padding: 12px;
  }
  .platform-dialog {
    width: 100%;
    max-height: calc(70vh - 24px);
  }
  .modal-header {
    min-height: 140px;
    padding: 25px 20px 22px;
  }
  .modal-terminal {
    font-size: 11px;
  }
  .modal-title {
    margin-top: 24px;
    font-size: 22px;
  }
  .modal-subtitle {
    font-size: 11px;
  }
  .modal-stats {
    gap: 16px;
    padding: 15px 12px;
    font-size: 10px;
  }
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 12px 20px;
  }

  .platform-status {
    right: 7px;
    bottom: 7px;
    padding: 6px 8px;
    font-size: 9px;
  }
  .modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 28px;
  }
  .win-toast {
    left: 8px;
    bottom: 60px;
    width: 205px;
  }
}
