@import url('../../fonts/fonts.css');

:root {
  --ink: #151942;
  --paper: #ffffff;
  --frame: #ffffff;
  --page-width: min(488px, calc(100vw - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--frame);
  color: var(--ink);
  font-family: 'Kippen', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(21, 25, 66, 0.08);
}

.top-bar-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -8px 0 -8px -8px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-bar-back-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-bar-back:hover,
.top-bar-back:focus-visible {
  text-decoration: none;
  background: rgba(21, 25, 66, 0.08);
}

.top-bar-back:active {
  transform: scale(0.94);
}

.top-bar-title {
  margin: 0;
  font-size: 18px;
  font-weight: normal;
  text-align: center;
}

.guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px 48px;
}

.guide-pages {
  width: var(--page-width);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--paper);
  box-shadow:
    0 2px 8px rgba(21, 25, 66, 0.08),
    0 18px 48px rgba(21, 25, 66, 0.12);
}

.video-notice {
  width: var(--page-width);
  padding: 16px 20px;
  background: #d1d2d8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(21, 25, 66, 0.06);
}

.video-notice-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  color: var(--ink);
}

.guide-page {
  margin: 0;
  line-height: 0;
}

.guide-page + .guide-page {
  border-top: 1px solid rgba(21, 25, 66, 0.06);
}

.guide-page img {
  display: block;
  width: 100%;
  height: auto;
}
