html,
body {
  margin: 0;
  background: #080a0e;
  color: #e9e5dc;
}
#startup-screen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  box-sizing: border-box;
  min-height: 100vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: radial-gradient(ellipse at 50% 0%, #282219 0, #101115 45%, #080a0e 80%);
  font:
    14px/1.65 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
}
#startup-screen[hidden],
#startup-actions[hidden] {
  display: none !important;
}
.startup-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 24px;
  border: 1px solid #4c4131;
  border-radius: 22px;
  background: linear-gradient(150deg, #191919, #101215 55%, #121316);
  box-shadow: 0 24px 70px #00000055;
  text-align: center;
}
.startup-brand {
  display: flex;
  align-items: center;
  text-align: left;
  padding-bottom: 18px;
  border-bottom: 1px solid #34312b;
}
.startup-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-right: 12px;
}
.startup-brand strong {
  display: block;
  color: #e5cd9e;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.startup-brand span {
  display: block;
  color: #a49c8e;
  font-size: 12px;
  margin-top: 1px;
}
.startup-emblem {
  width: 80px;
  height: 80px;
  margin: 22px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.startup-error-symbol {
  display: none;
  width: 80px;
  height: 80px;
  fill: none;
  stroke: #d5b77d;
  stroke-width: 1.5;
}
.startup-error-symbol circle {
  stroke: #57472e;
  stroke-dasharray: 2 7;
}
.startup-error-symbol path:last-child {
  stroke-width: 3;
  stroke-linecap: round;
}
.startup-signal {
  width: 42px;
  height: 42px;
  border: 2px solid #453d30;
  border-top-color: #e5c895;
  border-radius: 50%;
  animation: startup-spin 1s linear infinite;
}
#startup-screen[data-failed] .startup-signal {
  display: none;
}
#startup-screen[data-failed] .startup-error-symbol {
  display: block;
}
.startup-card h1 {
  margin: 0 auto 12px;
  max-width: 310px;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #f0e8d9;
}
#startup-help {
  margin: 0 auto 20px;
  max-width: 310px;
  color: #b4aea4;
  line-height: 1.85;
}
.startup-card button {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0 0 10px;
  border: 1px solid #665238;
  border-radius: 11px;
  background: transparent;
  color: #dbc397;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.16s,
    border-color 0.16s;
}
#startup-retry {
  background: linear-gradient(110deg, #e2c692, #c29a60);
  color: #261c0f;
  border-color: #ddbb83;
  font-weight: 600;
  box-shadow: 0 5px 18px #b58a3b15;
}
#startup-retry span {
  margin-left: 8px;
  font-size: 20px;
  vertical-align: -1px;
}
#startup-copy:hover {
  background: #26221b;
  border-color: #c5a16d;
}
#startup-retry:active {
  background: #b9945c;
}
.startup-card button:focus,
.startup-card summary:focus {
  outline: 2px solid #e4c590;
  outline-offset: 4px;
}
.startup-advice {
  margin: 12px 0 18px;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff04;
  border: 1px solid #37332c;
  text-align: left;
}
.startup-advice strong {
  font-size: 13px;
  color: #d5cbb9;
  font-weight: 500;
}
.startup-advice p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #aaa396;
  line-height: 1.85;
}
.startup-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 14px;
  color: #a49c8e;
  font-size: 12px;
}
.startup-reference code {
  font:
    11px/1.6 'SFMono-Regular',
    Consolas,
    monospace;
  color: #c2ad88;
}
.startup-card details {
  text-align: left;
  border-top: 1px solid #34312b;
}
.startup-card summary {
  padding: 13px 0;
  min-height: 22px;
  cursor: pointer;
  color: #c7b89c;
  font-size: 12px;
}
#startup-report {
  box-sizing: border-box;
  width: 100%;
  height: 230px;
  padding: 12px;
  resize: vertical;
  color: #d0c8ba;
  background: #0b0e12;
  border: 1px solid #4e4536;
  border-radius: 8px;
  font:
    11px/1.6 Consolas,
    monospace;
}
.startup-card .startup-privacy {
  color: #aaa396;
  font-size: 11px;
  margin: 14px 0 0;
}
.startup-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #34312b;
  color: #a49c8e;
  font-size: 10px;
  letter-spacing: 0.2px;
}
@keyframes startup-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 360px) {
  #startup-screen {
    padding: 16px 12px;
  }
  .startup-card {
    padding: 22px;
  }
  .startup-card h1 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .startup-signal {
    animation: none;
  }
  .startup-card button {
    transition: none;
  }
}
