:root {
  --guide-bg: #0d0d0f;
  --guide-card: #19191e;
  --guide-line: rgba(255, 255, 255, .12);
  --guide-text: #fff;
  --guide-muted: #b9bac3;
  --guide-accent: #f1c965;
  --guide-accent-text: #221b0c;
}

.inapp-guide[hidden] { display: none !important; }
.inapp-guide {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: rgba(6, 6, 8, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

.inapp-guide__card {
  width: min(100%, 410px);
  padding: 28px 22px 22px;
  box-sizing: border-box;
  color: var(--guide-text);
  text-align: center;
  background: linear-gradient(145deg, #222229, var(--guide-card));
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.inapp-guide__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  color: #18130a;
  font-size: 28px;
  place-items: center;
  background: var(--guide-accent);
  border-radius: 50%;
}

.inapp-guide h1 { margin: 0 0 10px; color: var(--guide-text); font-size: 21px; line-height: 1.35; }
.inapp-guide__lead { margin: 0 0 18px; color: var(--guide-muted); font-size: 14px; line-height: 1.65; }
.inapp-guide__steps {
  margin: 0 0 18px;
  padding: 14px 15px;
  color: #e7e7e9;
  text-align: left;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--guide-line);
  border-radius: 12px;
}
.inapp-guide__steps-title { display: block; margin-bottom: 7px; color: var(--guide-accent); font-size: 13px; font-weight: 700; }
.inapp-guide__steps p { margin: 0; font-size: 13px; line-height: 1.7; }
.inapp-guide__action {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  box-sizing: border-box;
  color: var(--guide-accent-text);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(90deg, #efd071, #ffe4a1);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.inapp-guide__action:active { transform: translateY(1px); opacity: .9; }
.inapp-guide__copy { width: 100%; margin-top: 10px; padding: 9px 12px; color: #e6e6e8; font-size: 13px; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; cursor: pointer; }
.inapp-guide__copy:active { background: rgba(255,255,255,.08); }
.inapp-guide__note { min-height: 18px; margin: 10px 0 0; color: #999ba6; font-size: 12px; line-height: 1.5; }

@media (max-width: 360px) { .inapp-guide__card { padding: 22px 16px 17px; } .inapp-guide h1 { font-size: 19px; } }
