* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  background-image: linear-gradient(rgba(17, 17, 17, 0.55), rgba(17, 17, 17, 0.82));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #141414;
}

img {
  width: 100%;
  display: block;
}

audio {
  width: 100%;
  margin-bottom: 2rem;
}

.error-message {
  color: #bdbdbd;
}

#app {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
  min-height: 100dvh;
  transition: min-height 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

[hidden] {
  display: none !important;
}

.loading-view {
  width: 100%;
}

.view {
  width: 100%;
}

#loading-screen,
#error-screen {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 40px);
  color: #d8d8d8;
}

#guide-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding-bottom: 5dvh;
  gap: 1rem;
}

.guide-logo {
  height: 5dvh;
  width: auto;
  margin: 0 auto;
  border-radius: 0;
}

.guide-body {
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
}

.loading-panel {
  width: min(100%, 560px);
  padding: 28px;
  background: #1b1b1b;
  border: 1px solid #2d2d2d;
  border-radius: 18px;
  color: #d8d8d8;
}

.loading-message {
  color: #d8d8d8;
  font-size: 1rem;
}

.error-card {
  background: rgba(27, 27, 27, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.guide-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guide-title-image {
  width: 100%;
  margin-bottom: 1.7rem;
  display: block;
}

.guide-description {
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
}

h1 {
  margin-top: 0;
}

button {
  background: transparent;
  border: 1px solid #4e1505;
  color: #4e1505;
  padding: 0.9rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  width: 100%;
  transition: transform 0.2s ease;
}

button:hover:not(:disabled) {
  transform: scale(1.05);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.share-link__note {
  font-style: normal;
  font-size: 0.8rem;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  color: #14141480;
}

.guide-notice {
  padding: 12px;
  border-radius: 10px;
  background: #1b1b1b;
  color: #ffffff;
  position: absolute;
  left: 0;
  top: 0;
  margin-top: 10px;
  margin-left: 10px;
  max-width: 300px;
}
.share-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 445px;
}

.dev-tools {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 1rem;
}

.dev-link {
  color: rgb(0 0 0 / 82%);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.dev-link:hover {
  color: #000000;
}

@media (max-width: 767px) {
  .share-link {
    width: 100%;
  }
  #app {
    padding: 1rem 1rem;
  }
}

.progress {
  height: 8px;
  background: #2a2a2a;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.progress--loading {
  height: 12px;
  margin-top: 18px;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: #d8d8d8;
}
