:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #171c23;
  --panel-2: #20262e;
  --line: rgba(218, 180, 108, .28);
  --gold: #e2b85f;
  --gold-light: #f3d998;
  --text: #f7f1e5;
  --muted: #c8bda9;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(120, 77, 29, .36), transparent 38%),
    linear-gradient(160deg, #17120d 0, var(--bg) 36%, #0a0d12 100%);
  font-size: 18px;
  line-height: 1.75;
}
a { color: inherit; }
.help-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 70px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr);
  align-items: center;
  gap: 8px;
  background: rgba(13, 17, 23, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.help-logo { width: 170px; max-height: 52px; object-fit: contain; }
.back-button {
  justify-self: start;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 7px 10px;
  color: var(--gold-light);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}
.header-spacer { min-width: 1px; }
main { width: min(820px, 100%); margin: 0 auto; padding: 24px 16px 70px; }
.hero { padding: 24px 6px 16px; text-align: center; }
.eyebrow { margin: 0; color: var(--gold); font-weight: 800; letter-spacing: .12em; }
h1 { margin: 3px 0 8px; font-size: clamp(30px, 8vw, 44px); line-height: 1.25; }
.hero > p:last-child { margin: 0; color: var(--muted); }
.help-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 22px;
}
.help-menu a,
.bottom-action a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--gold-light);
  background: linear-gradient(180deg, #292f37, #1d2229);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.help-section {
  margin: 0 0 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(31, 37, 45, .98), rgba(20, 25, 31, .98));
  box-shadow: 0 16px 38px rgba(0,0,0,.24);
}
.help-section h2 { margin: 0 0 16px; color: var(--gold-light); font-size: 27px; line-height: 1.35; }
.help-section h3 { margin: 0 0 5px; font-size: 22px; line-height: 1.45; }
.help-section p { margin: 0 0 12px; }
.plain-steps { margin: 0; padding-left: 1.55em; }
.plain-steps li { padding: 5px 0 10px; }
.note,
.important {
  padding: 14px 16px;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  background: rgba(225, 181, 92, .12);
}
.note { margin: 16px 0 0 !important; color: #e7dcc9; }
.mode-list { display: grid; gap: 10px; }
.mode-list article { display: flex; gap: 14px; padding: 15px; border-radius: 13px; background: var(--panel-2); }
.mode-list article > span { font-size: 29px; line-height: 1.3; }
.mode-list p { margin: 0; color: var(--muted); }
.device-guide { display: flex; gap: 15px; padding: 18px 0; }
.device-guide + .device-guide { border-top: 1px solid rgba(255,255,255,.1); }
.device-guide > div:last-child { min-width: 0; }
.device-mark { flex: 0 0 auto; font-size: 34px; line-height: 1.35; }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 15px; }
.section-heading h2 { margin-bottom: 4px; }
.section-heading p { color: var(--muted); }
.iphone-mark {
  flex: 0 0 auto;
  margin-top: 5px;
  padding: 5px 10px;
  border-radius: 9px;
  color: #14181e;
  background: var(--gold-light);
  font-size: 15px;
  font-weight: 900;
}
.important { display: flex; flex-direction: column; margin: 0 0 22px; }
.important strong { color: #fff1c9; font-size: 20px; }
.important span { color: var(--muted); }
.guide-step {
  position: relative;
  margin: 0 0 22px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: #f5f0e7;
  color: #2b2823;
}
.step-number {
  position: absolute;
  top: -13px;
  left: -7px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid #fff4d6;
  border-radius: 50%;
  color: #21190f;
  background: var(--gold);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(0,0,0,.24);
}
.step-copy { padding-left: 25px; }
.step-copy strong { color: #8a3f22; }
.small-note { color: #625d54; font-size: 16px; }
figure { margin: 16px auto 0; max-width: 590px; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #d8c8ab;
  border-radius: 13px;
  box-shadow: 0 9px 24px rgba(0,0,0,.16);
}
figcaption { padding: 8px 4px 0; color: #5b554d; font-size: 16px; text-align: center; }
.final-step { display: grid; grid-template-columns: 1fr minmax(210px, .7fr); align-items: center; gap: 15px; }
.done-box { padding: 20px; border: 2px dashed #aa7b2f; border-radius: 14px; text-align: center; background: #fffaf0; }
.done-box b { color: #8a3f22; }
details { border-top: 1px solid rgba(255,255,255,.1); }
details:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
summary { padding: 16px 5px; color: #f4e7cf; font-size: 19px; font-weight: 800; cursor: pointer; }
details p { padding: 0 7px 15px; color: var(--muted); }
.bottom-action { margin: 28px auto 4px; max-width: 460px; }
.bottom-action a { min-height: 62px; font-size: 20px; }
footer { padding: 16px 10px calc(22px + env(safe-area-inset-bottom, 0px)); color: #8f877a; text-align: center; font-size: 14px; }

@media (max-width: 600px) {
  body { font-size: 17px; line-height: 1.7; }
  .help-header { grid-template-columns: 108px 1fr 22px; padding-left: 7px; padding-right: 7px; }
  .help-logo { width: min(155px, 44vw); justify-self: center; }
  .back-button { padding: 6px 4px; font-size: 14px; }
  main { padding: 15px 10px 54px; }
  .hero { padding-top: 18px; }
  .help-menu { grid-template-columns: 1fr; gap: 8px; }
  .help-menu a { min-height: 50px; }
  .help-section { padding: 20px 14px; border-radius: 15px; }
  .help-section h2 { font-size: 24px; }
  .help-section h3 { font-size: 21px; }
  .section-heading { display: block; }
  .device-guide { display: block; }
  .device-mark { margin-bottom: 5px; }
  .iphone-mark { display: inline-block; margin: 0 0 9px; }
  .guide-step { padding: 20px 11px 15px; }
  .step-copy { padding-left: 28px; }
  .final-step { display: block; }
  .done-box { margin-top: 14px; }
  figure img { border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
