:root {
  --color-bg: #f7f6f0;
  --color-surface: #fff;
  --color-text: #3a3a36;
  --color-text-muted: #9a9a92;
  --color-menu-text: #4a3b2c;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic", sans-serif;
  --radius-pill: 999px;
  --shadow-card: 0 1px 3px rgba(58, 58, 54, 0.08);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.root,
.shell {
  height: 100%;
}

.shell {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--color-bg);
  -webkit-overflow-scrolling: touch;
}

.story {
  height: 400dvh;
}

.stage {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  height: 100dvh;
}

.frame {
  position: relative;
  width: min(100%, 480px);
  height: 100%;
  overflow: hidden;
}

.hero,
.finale-copy {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--color-menu-text);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}

.hero {
  z-index: 3;
  inset: 0;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
}

.hero-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
}

.scroll-hint {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.scroll-dots {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

.art {
  position: absolute;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 46%;
  opacity: 0;
  pointer-events: none;
}

.art-walk {
  top: 0;
  left: 0;
}

.art-bag {
  right: 0;
  bottom: 0;
}

.note {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 176px;
  height: 176px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--color-menu-text);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: var(--color-menu-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.note span {
  display: block;
  white-space: nowrap;
}

.note-late {
  top: 18px;
  right: 12px;
}

.note-forget {
  bottom: max(96px, 16%);
  left: 12px;
}

.finale-copy {
  z-index: 4;
  top: 20%;
  right: 28px;
  bottom: 28%;
  left: 28px;
  font-size: 20px;
  opacity: 0;
}

.finale-bar {
  position: fixed;
  z-index: 20;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  width: min(calc(100% - 32px), 448px);
  opacity: 0;
  transform: translateX(-50%) translateY(24px);
  pointer-events: none;
}

.start {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: #ea7a7a;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.legal-links {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  padding: 2px 4px;
  text-align: center;
  background-color: color-mix(in srgb, var(--color-bg) 80%, transparent);
}

.start:focus-visible,
.shot:focus-visible {
  outline: 2px solid var(--color-menu-text);
  outline-offset: 2px;
}

.after {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 36px 16px calc(136px + env(safe-area-inset-bottom));
}

.example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 12px;
  align-items: center;
}

.example-title {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0 auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-menu-text);
  color: var(--color-menu-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.around {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--color-menu-text);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.around span {
  display: block;
}

.around[data-step="prep"] {
  grid-column: 1;
  grid-row: 1;
}

.around[data-step="pack"] {
  grid-column: 2;
  grid-row: 1;
}

.around[data-step="route"] {
  grid-column: 1;
  grid-row: 3;
}

.around[data-step="count"] {
  grid-column: 2;
  grid-row: 3;
}

.example-title,
.around,
.shots,
.bridge [data-beat] {
  opacity: 0;
  transform: translateY(12px);
}

.bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  color: var(--color-menu-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.bridge-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 176px;
  margin: 4px 0;
  padding: 16px;
  border: 2px dotted var(--color-menu-text);
  border-radius: 50%;
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.bridge-lead span {
  display: block;
  white-space: nowrap;
}

.bridge-arrow {
  font-size: 20px;
}

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.shot {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.shot img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
}

.invite {
  position: relative;
  width: fit-content;
  margin: 40px auto 12px;
  padding: 14px 18px;
  border-radius: 22px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  color: var(--color-menu-text);
  font-size: 16px;
  line-height: 1.4;
}

.invite::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: var(--color-surface) transparent transparent;
}

.zoom {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  padding: 56px 16px 24px;
  background: rgba(58, 58, 54, 0.72);
}

.zoom[hidden] {
  display: none;
}

.zoom img {
  width: min(100%, 420px);
  height: auto;
  border-radius: 12px;
}

.zoom-close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 16px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-menu-text);
  font-size: 12px;
  font-weight: 700;
}

.zoom-close:focus-visible {
  outline: 2px solid var(--color-surface);
  outline-offset: 2px;
}

.shell[data-reduced="true"] .story {
  height: auto;
}

.shell[data-reduced="true"] .stage {
  position: relative;
  height: auto;
}

.shell[data-reduced="true"] .frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  gap: 28px;
  padding: 40px 20px calc(28px + env(safe-area-inset-bottom));
  overflow: visible;
}

.shell[data-reduced="true"] .hero,
.shell[data-reduced="true"] .finale-copy,
.shell[data-reduced="true"] .note,
.shell[data-reduced="true"] .art {
  position: static;
  inset: auto;
  width: min(100%, 320px);
  height: auto;
  opacity: 1;
  filter: none;
}

.shell[data-reduced="true"] .hero,
.shell[data-reduced="true"] .finale-copy {
  padding: 0;
  font-size: 22px;
}

.shell[data-reduced="true"] .scroll-hint {
  display: none;
}

.shell[data-reduced="true"] .art {
  max-width: min(100%, 320px);
  max-height: none;
}

.shell[data-reduced="true"] .note {
  width: 176px;
  height: 176px;
}

.shell[data-reduced="true"] .example-title,
.shell[data-reduced="true"] .around,
.shell[data-reduced="true"] .bridge [data-beat],
.shell[data-reduced="true"] .shots {
  opacity: 1;
  transform: none;
}
