:root {
  color-scheme: light;
  --ink: #0b1731;
  --ink-2: #172a4c;
  --muted: #68758b;
  --paper: #f6f8fb;
  --white: #ffffff;
  --line: #dfe5ec;
  --accent: #c83b22;
  --accent-dark: #a82c18;
  --sky: #287b88;
  --mint: #bcdfd1;
  --shadow: 0 20px 60px rgba(14, 31, 58, 0.09);
  --font-sans: "DM Sans", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 0%, rgba(105, 196, 210, 0.13), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
}
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(255, 103, 72, 0.35); outline-offset: 3px; }
.app-shell { min-height: 100vh; }
.topbar {
  height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 48px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.05rem; width: max-content; letter-spacing: .01em; }
.brand > span:last-child > span { color: var(--accent); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; transform: rotate(-3deg); box-shadow: 0 8px 20px rgba(11,23,49,.16); }
.brand-mark svg { width: 27px; fill: var(--accent); }
.brand-mark circle { fill: #fff; }
.desktop-nav { display: flex; align-items: center; height: 100%; gap: 34px; }
.nav-link { align-self: stretch; position: relative; border: 0; background: none; padding: 0 4px; color: var(--muted); font-weight: 600; cursor: pointer; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.nav-link.active { color: var(--ink); }
.nav-link.active::after { transform: scaleX(1); }
.profile-button { justify-self: end; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; box-shadow: 0 8px 20px rgba(14,31,58,.06); }
.profile-button span { display: grid; place-items: center; width: 30px; height: 30px; margin: auto; border-radius: 50%; background: var(--ink); color: white; font-size: .72rem; font-weight: 700; }
.top-stamp-count { justify-self: end; min-width: 64px; height: 42px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; box-shadow: 0 8px 20px rgba(14,31,58,.06); }
.top-stamp-count span { color: var(--accent); }
.top-stamp-count strong { font-size: .88rem; }
main { max-width: 1500px; margin: 0 auto; padding: 44px 48px 70px; }
.eyebrow, .section-kicker { margin: 0; color: var(--accent); letter-spacing: .13em; font-size: .72rem; font-weight: 800; }
h1 { margin: 3px 0 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.2; letter-spacing: -.04em; }
.location-status { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: .875rem; box-shadow: 0 7px 24px rgba(14,31,58,.05); }
.status-pulse { width: 9px; height: 9px; border-radius: 50%; background: #a9b2c0; box-shadow: 0 0 0 5px #edf0f4; }
.location-status.active .status-pulse { background: #1aa67a; box-shadow: 0 0 0 5px rgba(26,166,122,.12); }
.dashboard { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(430px, 1.45fr) minmax(280px, .9fr); gap: 20px; min-height: 560px; }
.card { background: var(--white); border: 1px solid rgba(210,219,229,.9); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.progress-panel { padding: 28px; display: flex; flex-direction: column; }
.card-label-row { display: flex; align-items: center; justify-content: space-between; }
.period { background: #eef2f6; border-radius: 99px; padding: 4px 10px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.ring-wrap { flex: 1; display: grid; place-items: center; align-content: center; gap: 28px; padding: 20px 0; }
.progress-ring { --progress: 25; width: clamp(154px, 13vw, 196px); aspect-ratio: 1; padding: 12px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--progress) * 1%), #e8edf2 0); position: relative; box-shadow: 0 13px 34px rgba(255,103,72,.15); }
.progress-ring::after { content: ""; position: absolute; inset: -5px; border: 1px dashed #cad3dd; border-radius: 50%; }
.ring-inner { width: 100%; height: 100%; border-radius: 50%; background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-inner strong { font-size: clamp(2.6rem, 4.5vw, 4.1rem); line-height: 1; letter-spacing: -.08em; }
.ring-inner span { color: var(--muted); font-size: .7rem; font-weight: 700; margin-top: 8px; letter-spacing: .08em; }
.ring-copy { text-align: center; max-width: 240px; }
.ring-copy > span { font-weight: 800; font-size: 1.1rem; }
.ring-copy p { color: var(--muted); margin: 6px 0 0; font-size: .86rem; }
.reward-box { background: var(--ink); color: white; border-radius: 18px; padding: 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.reward-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: white; }
.reward-box small { color: #9cabc3; display: block; font-size: .64rem; letter-spacing: .1em; }
.reward-box strong { display: block; font-size: .82rem; margin-top: 1px; }
.reward-count { font-size: .72rem; color: var(--mint); font-weight: 700; }
.map-card { display: flex; flex-direction: column; min-height: 560px; }
.map-toolbar { height: 88px; padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.map-toolbar h2, .panel-heading h2 { margin: 1px 0 0; font-size: 1.3rem; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: white; cursor: pointer; transition: .2s ease; }
.icon-button:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-button svg { width: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.route-map { position: relative; flex: 1; min-height: 440px; overflow: hidden; background: #e9f0f2; isolation: isolate; }
.map-grid { position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(rgba(70,104,112,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(70,104,112,.15) 1px, transparent 1px); background-size: 62px 62px; transform: rotate(-8deg) scale(1.2); }
.route-map::before, .route-map::after { content: ""; position: absolute; border-radius: 45% 55% 55% 45%; filter: blur(.2px); z-index: -1; }
.route-map::before { width: 52%; height: 55%; background: #cfe0d6; left: -12%; top: -10%; transform: rotate(-18deg); box-shadow: 310px 230px 0 #d6e4dc; }
.route-map::after { width: 30%; height: 35%; right: -10%; top: 5%; background: #d6e6e8; transform: rotate(20deg); }
.route-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-line path:first-child { fill: none; stroke: white; stroke-width: 15; stroke-linecap: round; }
.route-line .route-shadow { fill: none; stroke: var(--sky); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 8 9; }
.map-pin { position: absolute; left: var(--x); top: var(--y); width: 42px; height: 42px; margin: -21px; border-radius: 50% 50% 50% 14%; transform: rotate(-45deg); border: 4px solid white; background: var(--ink); color: white; box-shadow: 0 6px 18px rgba(11,23,49,.25); cursor: pointer; z-index: 4; transition: transform .2s ease; }
.map-pin:hover { transform: rotate(-45deg) scale(1.12); }
.map-pin span { display: grid; place-items: center; transform: rotate(45deg); font-weight: 800; font-size: .8rem; }
.map-pin.collected { background: var(--accent); }
.map-pin.target { width: 50px; height: 50px; margin: -25px; background: var(--ink); animation: pin-pulse 2.2s ease-in-out infinite; }
.map-pin.locked { background: #8c98a7; }
@keyframes pin-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,103,72,0), 0 6px 18px rgba(11,23,49,.25); } 50% { box-shadow: 0 0 0 12px rgba(255,103,72,.18), 0 6px 18px rgba(11,23,49,.25); } }
.you-marker { position: absolute; left: 58%; top: 64%; display: flex; align-items: center; gap: 8px; z-index: 3; transform: translate(-50%, -50%); transition: left .8s cubic-bezier(.2,.8,.2,1), top .8s cubic-bezier(.2,.8,.2,1); }
.you-marker i { width: 15px; height: 15px; border: 4px solid white; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 7px rgba(105,196,210,.25); }
.you-marker span { background: var(--ink); color: white; font-size: .62rem; font-style: normal; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; }
.map-caption { position: absolute; bottom: 17px; left: 18px; font-size: .72rem; color: #576776; background: rgba(255,255,255,.8); padding: 5px 9px; border-radius: 8px; backdrop-filter: blur(8px); }
.demo-location { position: absolute; right: 18px; bottom: 17px; border: 0; background: var(--ink); color: white; border-radius: 10px; padding: 8px 12px; font-size: .75rem; font-weight: 700; cursor: pointer; box-shadow: 0 5px 16px rgba(11,23,49,.18); }
.nearby-panel { display: flex; flex-direction: column; }
.nearby-photo { position: relative; min-height: 320px; flex: 1; overflow: hidden; background: var(--ink); }
.nearby-photo img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 64% center; }
.photo-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,23,49,.12), rgba(11,23,49,.85)); }
.distance-pill { position: absolute; top: 18px; right: 18px; color: var(--ink); background: rgba(255,255,255,.9); backdrop-filter: blur(8px); padding: 7px 11px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.photo-copy { position: absolute; left: 24px; right: 24px; bottom: 24px; color: white; }
.photo-copy span { color: #b9dce2; font-size: .68rem; letter-spacing: .14em; font-weight: 800; }
.photo-copy h2 { font-size: 2.2rem; line-height: 1.1; margin: 5px 0 4px; letter-spacing: -.04em; }
.photo-copy p { margin: 0; color: rgba(255,255,255,.72); font-size: .86rem; }
.nearby-body { padding: 24px; }
.spot-meta { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
.spot-meta > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.spot-meta small { display: block; color: var(--muted); font-size: .7rem; margin-bottom: 2px; }
.spot-meta strong { font-size: .9rem; }
.official-link { min-height: 58px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); background: #f8fafc; text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.official-link:hover { border-color: var(--sky); background: #eef8fa; transform: translateY(-1px); }
.official-link small { display: block; color: var(--sky); font-size: .6rem; font-weight: 800; letter-spacing: .11em; }
.official-link strong { display: block; margin-top: 1px; font-size: .82rem; }
.official-link svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
.checkin-button, .dialog-action { width: 100%; min-height: 54px; border: 0; border-radius: 15px; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; cursor: pointer; box-shadow: 0 9px 22px rgba(255,103,72,.28); transition: transform .2s ease, background .2s ease, opacity .2s ease; }
.checkin-button:not(:disabled):hover, .dialog-action:hover { background: var(--accent-dark); transform: translateY(-2px); }
.checkin-button:disabled { background: #d5dbe2; color: #7c8998; box-shadow: none; cursor: not-allowed; }
.checkin-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.checkin-note { margin: 10px 4px 0; text-align: center; color: var(--muted); font-size: .75rem; }
.stamp-book, .history-panel { padding: 30px; min-height: 500px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.panel-heading > span { color: var(--accent); font-weight: 800; }
.stamp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; padding-top: 28px; }
.stamp-item { min-height: 204px; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px; text-align: center; background: #fbfcfd; }
.stamp-item.empty { color: #68758b; background: repeating-linear-gradient(-45deg, #fbfcfd, #fbfcfd 8px, #f6f8fa 8px, #f6f8fa 16px); }
.mini-seal { width: 92px; height: 92px; border: 5px double currentColor; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; transform: rotate(-5deg); color: var(--accent); }
.mini-seal strong { font-size: 1.65rem; line-height: 1; }
.mini-seal small { font-size: .55rem; font-weight: 800; letter-spacing: .08em; }
.stamp-item > span { margin-top: 7px; font-size: .77rem; font-weight: 700; }
.stamp-official-link { margin-top: 10px; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; text-underline-offset: 3px; }
.stamp-official-link::after { content: "↗"; color: var(--accent); font-size: .86rem; }
.stamp-item.empty .stamp-official-link { color: #536174; }
.timeline-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.timeline-hero h2 { margin: 4px 0 5px; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.04em; }
.timeline-hero p { margin: 0; color: var(--muted); font-size: .88rem; }
.timeline-stats { display: grid; grid-template-columns: repeat(2, minmax(125px, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #f8fafc; }
.timeline-stats div { min-width: 140px; padding: 13px 17px; }
.timeline-stats div + div { border-left: 1px solid var(--line); }
.timeline-stats dt { color: var(--muted); font-size: .75rem; }
.timeline-stats dd { margin: 1px 0 0; font-size: 1.08rem; font-weight: 800; }
.timeline { width: min(820px, 100%); margin: 0 auto; padding: 12px 0 0; }
.timeline-day { padding-top: 30px; }
.timeline-day + .timeline-day { margin-top: 6px; border-top: 1px solid var(--line); }
.timeline-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.timeline-day-heading h3 { margin: 0; font-size: 1.18rem; letter-spacing: -.02em; }
.timeline-day-heading span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.timeline-day-list { margin-left: 22px; }
.timeline-entry { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 13px 0 19px; }
.timeline-entry:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 55px; bottom: -11px; width: 2px; background: var(--line); }
.timeline-rail { position: relative; z-index: 1; padding-top: 1px; }
.timeline-type { width: 48px; height: 48px; display: grid; place-items: center; border: 5px solid #fce9e4; border-radius: 50%; background: var(--accent); color: white; box-shadow: 0 0 0 4px white; font-size: .75rem; font-weight: 800; }
.timeline-type.pa { border-color: #d9edf0; background: var(--sky); }
.timeline-entry-body { min-width: 0; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 17px; background: #fbfcfd; }
.timeline-entry-main { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.timeline-entry-main h4 { margin: 0; font-size: 1rem; }
.timeline-entry-main p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.timeline-entry-main time { flex: 0 0 auto; color: var(--ink); font-size: .82rem; font-weight: 800; }
.timeline-entry-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.timeline-entry-meta > span { color: var(--accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.timeline-entry-meta a { color: var(--muted); font-size: .75rem; font-weight: 700; text-decoration: none; }
.timeline-entry-meta a:hover { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.timeline-empty { padding: 80px 20px; text-align: center; }
.timeline-empty > span { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: #fce9e4; color: var(--accent); }
.timeline-empty h3 { margin: 0; font-size: 1.1rem; }
.timeline-empty p { max-width: 430px; margin: 7px auto 18px; color: var(--muted); font-size: .84rem; }
.timeline-empty button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--ink); color: white; font-weight: 800; cursor: pointer; }
.hidden { display: none !important; }
.mobile-nav { display: none; }
.dialog-backdrop { position: fixed; inset: 0; background: rgba(5,12,27,.62); display: grid; place-items: center; z-index: 20; padding: 20px; backdrop-filter: blur(9px); }
.success-dialog { position: relative; width: min(440px, 100%); background: white; border-radius: 28px; padding: 38px; text-align: center; box-shadow: 0 30px 90px rgba(0,0,0,.28); animation: dialog-in .35s cubic-bezier(.2,.9,.2,1); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.dialog-close { position: absolute; right: 16px; top: 14px; border: 0; background: #eef1f5; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.25rem; }
.stamp-seal { width: 150px; height: 150px; border: 7px double currentColor; border-radius: 50%; margin: 0 auto 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--accent); transform: rotate(-7deg); animation: stamp-in .55s .16s cubic-bezier(.2,.9,.1,1.4) both; }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.8) rotate(-17deg); } }
.stamp-seal span, .stamp-seal small { font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.stamp-seal strong { font-size: 3rem; line-height: 1; }
.success-dialog h2 { margin: 5px 0 8px; font-size: 1.5rem; }
.success-dialog > p:not(.eyebrow) { margin: 0 0 24px; color: var(--muted); font-size: .9rem; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: white; border-radius: 12px; padding: 11px 16px; box-shadow: 0 12px 30px rgba(11,23,49,.25); font-size: .85rem; opacity: 0; pointer-events: none; z-index: 30; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .dashboard { grid-template-columns: minmax(220px, .75fr) minmax(420px, 1.3fr); }
  .nearby-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
  .nearby-photo { min-height: 280px; }
  .nearby-body { align-self: center; }
  .stamp-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  body { padding-bottom: 82px; }
  .topbar { height: 68px; padding: 0 18px; grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .brand { font-size: .96rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .profile-button { width: 38px; height: 38px; }
  main { padding: 25px 16px 30px; }
  .location-status { padding: 8px; border-radius: 50%; }
  .location-status span:last-child { display: none; }
  .dashboard { display: flex; flex-direction: column; min-height: 0; }
  .map-card { order: 1; min-height: 500px; }
  .nearby-panel { order: 2; display: flex; }
  .progress-panel { order: 3; }
  .map-toolbar { height: 76px; padding: 16px 20px; }
  .route-map { min-height: 420px; }
  .progress-panel { min-height: 520px; }
  .nearby-photo { min-height: 300px; }
  .photo-copy h2 { font-size: 2rem; }
  .card { border-radius: 21px; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(3, 1fr); left: 12px; right: 12px; bottom: 10px; min-height: 67px; background: rgba(11,23,49,.96); border: 1px solid rgba(255,255,255,.13); border-radius: 20px; padding: 7px; z-index: 10; box-shadow: 0 15px 40px rgba(11,23,49,.3); backdrop-filter: blur(14px); }
  .mobile-nav-button { border: 0; background: transparent; color: #94a2b9; border-radius: 14px; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; font-size: .66rem; cursor: pointer; }
  .mobile-nav-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .mobile-nav-button.active { color: white; background: rgba(255,255,255,.1); }
  .stamp-book, .history-panel { padding: 22px 18px; }
  .stamp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stamp-item { min-height: 160px; }
  .timeline-hero { align-items: stretch; flex-direction: column; gap: 18px; }
  .timeline-stats { width: 100%; }
  .timeline-stats div { min-width: 0; padding: 11px 13px; }
  .timeline-day { padding-top: 24px; }
  .timeline-day-list { margin-left: 0; }
  .timeline-day-heading h3 { font-size: 1.05rem; }
  .timeline-entry { grid-template-columns: 42px minmax(0, 1fr); gap: 11px; }
  .timeline-entry:not(:last-child)::before { left: 20px; top: 50px; }
  .timeline-type { width: 42px; height: 42px; border-width: 4px; font-size: .7rem; }
  .timeline-entry-body { padding: 12px 13px 11px; }
  .timeline-entry-main { gap: 10px; }
  .timeline-entry-main p { font-size: .75rem; }
  .timeline-entry-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .success-dialog { padding: 34px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Nationwide directory */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.explorer-card { display: flex; flex-direction: column; min-height: 560px; }
.explorer-heading { flex: 0 0 auto; }
.search-controls { display: grid; grid-template-columns: minmax(180px, 1fr) 105px 135px 100px; gap: 9px; padding: 18px 20px 10px; }
.search-field { position: relative; display: block; }
.search-field svg { position: absolute; width: 18px; left: 14px; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; pointer-events: none; }
.search-field input, .search-controls select, .book-toolbar input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; color: var(--ink); padding: 0 13px; }
.search-field input { padding-left: 42px; }
.search-field input:focus, .search-controls select:focus, .book-toolbar input:focus { border-color: var(--sky); outline: 3px solid rgba(105,196,210,.15); }
.result-summary { display: flex; align-items: baseline; gap: 5px; padding: 2px 22px 10px; color: var(--muted); font-size: .75rem; }
.result-summary strong { color: var(--ink); font-size: 1rem; }
.result-summary button { margin-left: auto; border: 0; background: none; color: var(--accent-dark); font-size: .72rem; font-weight: 700; cursor: pointer; }
.spot-results { flex: 1; min-height: 0; overflow: auto; border-top: 1px solid var(--line); scrollbar-width: thin; }
.spot-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; border-bottom: 1px solid var(--line); transition: background .18s ease; }
.spot-result:hover, .spot-result.selected { background: #f2f8f9; }
.spot-result.selected { box-shadow: inset 3px 0 var(--accent); }
.spot-select { min-width: 0; border: 0; background: transparent; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 10px 14px 20px; text-align: left; cursor: pointer; }
.spot-result > a { align-self: center; margin-right: 16px; color: var(--muted); font-size: .68rem; font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.type-badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ink); color: white; font-size: .7rem; font-weight: 800; }
.type-badge.pa { background: var(--sky); color: var(--ink); }
.result-copy { min-width: 0; display: flex; flex-direction: column; }
.result-copy strong { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; }
.result-copy small { min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .68rem; }
.collected-mark { display: inline-block; margin-left: 7px; border-radius: 999px; padding: 2px 6px; background: #fff0ec; color: var(--accent-dark); font-size: .56rem; font-style: normal; vertical-align: 2px; }
.result-distance { color: var(--ink); font-size: .7rem; font-weight: 700; white-space: nowrap; }
.result-arrow { color: #aab4c1; font-size: 1.4rem; line-height: 1; }
.directory-footer { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; background: #fafbfd; color: var(--muted); font-size: .68rem; }
.load-more-button { border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px; background: white; color: var(--ink); font-size: .72rem; font-weight: 700; cursor: pointer; }
.load-more-button:hover { border-color: var(--sky); }
.empty-results { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.empty-results strong { color: var(--ink); }
.operator-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 14px; color: var(--muted); font-size: .68rem; }
.operator-row strong { color: var(--ink); font-size: .75rem; }
.demo-location-inline { width: 100%; margin-top: 10px; border: 0; background: none; color: var(--muted); font-size: .72rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.book-toolbar { display: flex; align-items: center; gap: 16px; padding-top: 20px; }
.book-toolbar input[type="search"] { max-width: 360px; }
.book-toolbar label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.book-toolbar label input { accent-color: var(--accent); }
.stamp-road { display: block; min-height: 2.4em; margin-top: 4px; color: var(--muted); font-size: .62rem; line-height: 1.2; }
.book-more { display: block; margin: 24px auto 0; min-width: 150px; }
.data-note { max-width: 1040px; margin: 24px auto 0; color: var(--muted); text-align: center; font-size: .7rem; }
.data-note p { margin: 3px 0; }
.data-note strong { color: var(--ink); }
.data-note a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 1120px) {
  .explorer-card { min-height: 620px; }
}

@media (max-width: 760px) {
  .explorer-card { order: 1; min-height: 620px; }
  .search-controls { grid-template-columns: 1fr 1fr; padding: 14px 14px 8px; }
  .search-field { grid-column: 1 / -1; }
  .result-summary { padding-inline: 16px; }
  .spot-select { padding-left: 14px; gap: 9px; }
  .spot-result > a { margin-right: 12px; }
  .result-distance { display: none; }
  .nearby-panel { order: 2; }
  .progress-panel { order: 3; }
  .book-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .book-toolbar input[type="search"] { max-width: none; }
  .stamp-road { min-height: 0; }
  .data-note { padding-inline: 8px; text-align: left; }
}

/* Accessible metadata and direction links */
.official-directions { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 14px; }
.official-directions:empty { display: none; }
.official-directions a { min-height: 36px; display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; background: #eef5f6; color: #185f6a; font-size: .8rem; font-weight: 700; text-decoration: none; }
.official-directions a:hover { background: #dcecef; text-decoration: underline; text-underline-offset: 3px; }
.profile-button span, .eyebrow, .section-kicker, .reward-box small, .reward-count, .ring-inner span, .you-marker span,
.map-caption, .demo-location, .distance-pill, .photo-copy span, .spot-meta small,
.official-link small, .checkin-note, .mini-seal small, .stamp-official-link,
.result-summary, .result-summary button, .spot-result > a, .type-badge,
.result-copy small, .collected-mark, .result-distance, .directory-footer,
.load-more-button, .operator-row, .operator-row strong, .demo-location-inline,
.stamp-road, .data-note, .stamp-seal span, .stamp-seal small { font-size: .75rem; }
.official-link small { color: #185f6a; }
.reward-box small { color: #c4cfdf; }
.mobile-nav-button { font-size: .75rem; }

@media (max-width: 920px) and (min-width: 761px) {
  .search-controls { grid-template-columns: minmax(180px, 1fr) 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
}

/* Check-in-first experience */
main { max-width: 1280px; padding: 28px 32px 70px; }
.checkin-dashboard { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .62fr); gap: 20px; }
.checkin-stage { min-height: 500px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); }
.checkin-primary { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 44px; background: var(--ink); color: white; }
.checkin-primary::after { content: ""; position: absolute; width: 330px; height: 330px; right: -145px; top: -145px; border-radius: 50%; border: 64px solid rgba(255,255,255,.045); pointer-events: none; }
.checkin-primary .location-status { position: relative; z-index: 1; margin-bottom: 28px; color: #d7e2ef; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); box-shadow: none; }
.checkin-primary .status-pulse { background: #a9b2c0; box-shadow: 0 0 0 5px rgba(255,255,255,.08); }
.checkin-primary .location-status.active .status-pulse { background: #6ee7b7; box-shadow: 0 0 0 5px rgba(110,231,183,.14); }
.checkin-stage .checkin-button { position: relative; z-index: 1; min-height: 96px; padding: 16px 20px; border-radius: 24px; justify-content: flex-start; gap: 15px; text-align: left; box-shadow: 0 16px 34px rgba(0,0,0,.24); }
.checkin-button-icon { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.16); }
.checkin-button-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.checkin-button-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.checkin-button-copy strong { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.25; }
.checkin-button-copy small { margin-top: 4px; color: rgba(255,255,255,.78); font-size: .78rem; font-weight: 600; }
.checkin-button-arrow { flex: 0 0 auto; font-size: 1.55rem; }
.checkin-stage .checkin-button:disabled .checkin-button-copy small { color: #536174; }
.checkin-primary .checkin-note { position: relative; z-index: 1; margin-top: 13px; color: #c4cfdf; text-align: left; }
.checkin-primary .checkin-note:empty { display: none; }
.checkin-primary .demo-location-inline { position: relative; z-index: 1; width: auto; margin-top: 18px; padding: 5px 0; color: #d7e2ef; text-align: left; }
.current-spot { min-width: 0; display: flex; flex-direction: column; background: white; }
.current-spot-photo { position: relative; min-height: 250px; flex: 1; overflow: hidden; background: var(--ink); }
.current-spot-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.current-spot-title { position: absolute; left: 26px; right: 26px; bottom: 24px; color: white; }
.current-spot-title > span { color: #cceaf0; font-size: .75rem; letter-spacing: .12em; font-weight: 800; }
.current-spot-title h2 { margin: 4px 0 3px; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.08; letter-spacing: -.045em; }
.current-spot-title p { margin: 0; color: rgba(255,255,255,.78); font-size: .86rem; }
.current-spot-body { padding: 24px; }
.current-spot-body .official-link { margin-bottom: 10px; }
.checkin-dashboard > .progress-panel { min-height: 500px; }
.checkin-dashboard > .explorer-card { grid-column: 1 / -1; min-height: 520px; margin-top: 4px; }
.explorer-heading { height: auto; min-height: 96px; }
.explorer-heading p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }

@media (max-width: 1080px) {
  .checkin-dashboard { grid-template-columns: 1fr; }
  .checkin-dashboard > .progress-panel { min-height: 0; display: grid; grid-template-columns: auto 1fr minmax(250px, auto); align-items: center; gap: 24px; }
  .checkin-dashboard > .progress-panel .ring-wrap { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 0; }
  .checkin-dashboard > .progress-panel .progress-ring { width: 150px; }
  .checkin-dashboard > .progress-panel .reward-box { min-width: 250px; }
}

@media (max-width: 760px) {
  main { padding: 18px 14px 32px; }
  .checkin-dashboard { gap: 14px; }
  .checkin-stage { display: flex; min-height: 0; flex-direction: column; }
  .checkin-primary { padding: 28px 20px 24px; }
  .checkin-primary .location-status { width: 100%; margin-bottom: 18px; border-radius: 14px; padding: 9px 11px; }
  .checkin-primary .location-status span:last-child { display: inline; }
  .checkin-stage .checkin-button { min-height: 92px; padding: 14px; border-radius: 21px; gap: 12px; }
  .checkin-button-icon { width: 50px; height: 50px; border-radius: 16px; }
  .checkin-button-copy strong { font-size: 1rem; }
  .checkin-button-copy small { font-size: .75rem; }
  .current-spot-photo { min-height: 225px; }
  .current-spot-body { padding: 20px; }
  .checkin-dashboard > .progress-panel { display: flex; min-height: 500px; }
  .checkin-dashboard > .progress-panel .ring-wrap { display: grid; padding: 20px 0; }
  .checkin-dashboard > .progress-panel .progress-ring { width: clamp(154px, 48vw, 190px); }
  .checkin-dashboard > .progress-panel .reward-box { min-width: 0; }
  .checkin-dashboard > .explorer-card { min-height: 620px; margin-top: 0; }
  .explorer-heading { min-height: 90px; padding: 15px 18px; }
  .explorer-heading p { max-width: 240px; }
}

/* Map stamp book and account ranking */
.account-control { min-width: 0; display: flex; align-items: center; flex-direction: column; gap: 5px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.account-control #authStatus { color: var(--muted); font-size: .75rem; font-weight: 700; }
.sign-out-button { min-height: 32px; border: 0; background: none; color: var(--sky); font-size: .75rem; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.stamp-book, .ranking-panel { min-height: 590px; }
.ranking-panel { padding: 30px; }
.stamp-tabs { display: flex; gap: 6px; width: fit-content; margin: 22px 0 20px; padding: 5px; border-radius: 14px; background: #eef2f6; }
.stamp-tab { min-height: 43px; padding: 0 22px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: .88rem; font-weight: 800; cursor: pointer; }
.stamp-tab.active { background: white; color: var(--ink); box-shadow: 0 3px 12px rgba(11,23,49,.1); }
.map-book-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); gap: 24px; align-items: start; }
.map-book-visual { min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #f7fafb; }
.map-caption-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--ink); font-size: .82rem; }
.map-caption-line span { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.japan-map { min-height: 420px; display: grid; place-items: center; }
.japan-map svg { display: block; width: min(100%, 490px); max-height: 560px; }
.japan-map svg > g path { fill: #e2e8ec !important; stroke: #fff !important; stroke-width: 3 !important; }
.japan-map svg [data-region] { cursor: pointer; outline: none; }
.japan-map svg [data-region] path { fill: #d1dce2 !important; transition: fill .18s ease; }
.japan-map svg [data-region].visited path { fill: #e5755e !important; }
.japan-map svg [data-region].selected path { stroke: var(--ink) !important; stroke-width: 4 !important; }
.japan-map svg [data-region]:hover path, .japan-map svg [data-region]:focus-visible path { fill: #287b88 !important; }
.map-credit { margin: 0; color: var(--muted); font-size: .7rem; text-align: right; }
.map-fallback { max-width: 250px; color: var(--muted); text-align: center; font-size: .85rem; }
.region-selector { padding: 5px 0; }
.region-selector h3 { margin: 0 0 14px; font-size: 1.05rem; }
.region-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.region-button { min-height: 70px; display: flex; align-items: flex-start; justify-content: space-between; flex-direction: column; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfd; text-align: left; cursor: pointer; }
.region-button strong { font-size: .87rem; }
.region-button span { color: var(--muted); font-size: .75rem; }
.region-button.visited { border-color: #efb3a5; background: #fff4f0; }
.region-button.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.rank-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 17px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.rank-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rank-dot { width: 12px; height: 12px; display: inline-block; border-radius: 50%; }
.rank-dot.red { background: #c83b22; }.rank-dot.silver { background: #8496a5; }.rank-dot.gold { background: #d39d29; }
.region-detail { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 25px; }
.region-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.region-detail-heading h3 { margin: 2px 0 0; font-size: 1.45rem; }
.region-detail-heading p { margin: 1px 0 0; color: var(--muted); font-size: .8rem; }
.region-progress { min-width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; border: 6px solid #f2d9d3; color: var(--accent-dark); font-size: 1rem; font-weight: 800; }
.region-spot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.region-spot { min-width: 0; display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfd; }
.region-spot-seal { width: 39px; height: 39px; display: grid; place-items: center; border: 2px solid #cbd6df; border-radius: 50%; color: var(--muted); font-size: .8rem; font-weight: 800; }
.region-spot.rank-red .region-spot-seal { border-color: #c83b22; color: #c83b22; }
.region-spot.rank-silver .region-spot-seal { border-color: #8496a5; color: #526574; }
.region-spot.rank-gold .region-spot-seal { border-color: #d39d29; color: #aa771a; }
.region-spot h4 { margin: 0; font-size: .86rem; }
.region-spot p { margin: 1px 0; color: var(--muted); font-size: .75rem; }
.region-spot div > span { color: var(--accent-dark); font-size: .75rem; font-weight: 700; }
.region-spot a { color: var(--sky); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.region-more { display: block; margin: 18px auto 0; }
.stamp-item.rank-red .mini-seal { color: #c83b22; }
.stamp-item.rank-silver .mini-seal { color: #6f8191; }
.stamp-item.rank-gold .mini-seal { color: #b98520; }
.book-empty { padding: 70px 20px; text-align: center; }
.book-empty h3 { margin: 0; font-size: 1.05rem; }
.book-empty p { margin: 6px auto 0; color: var(--muted); font-size: .84rem; }
.ranking-description { margin: 5px 0 0; color: var(--muted); font-size: .85rem; }
.ranking-list { max-width: 790px; margin: 26px auto 0; }
.ranking-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 85px 70px; gap: 13px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.ranking-row.me { border-radius: 12px; background: #fff2ec; }
.ranking-position { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-weight: 800; }
.ranking-row strong { font-size: .9rem; }
.ranking-row > span:nth-last-child(2) { color: var(--muted); font-size: .8rem; }
.ranking-row b { color: var(--accent-dark); text-align: right; }

@media (max-width: 900px) { .map-book-layout { grid-template-columns: 1fr; } .japan-map { min-height: 330px; } }
@media (max-width: 760px) {
  .mobile-nav { grid-template-columns: repeat(4, 1fr); }
  .mobile-nav-button { font-size: .69rem; }
  .stamp-book, .ranking-panel { padding: 22px 16px; }
  .stamp-tabs { width: 100%; }
  .stamp-tab { flex: 1; padding: 0 8px; font-size: .8rem; }
  .map-book-visual { padding: 12px; }
  .map-caption-line { align-items: flex-start; flex-direction: column; gap: 2px; }
  .japan-map { min-height: 280px; }
  .japan-map svg { max-height: 410px; }
  .region-spot-grid { grid-template-columns: 1fr; }
  .ranking-row { grid-template-columns: 32px minmax(0, 1fr) 50px 48px; gap: 7px; padding: 13px 8px; }
  .ranking-position { width: 30px; height: 30px; }
}

/* Simple, check-in-first interface */
:root {
  --ink: #252923;
  --ink-2: #3d433c;
  --muted: #697069;
  --paper: #f7f6f2;
  --line: #e3e3dc;
  --accent: #b94832;
  --accent-dark: #943a29;
  --sky: #456b61;
  --shadow: none;
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}
body { background: var(--paper); }
.topbar { height: 68px; max-width: 1184px; padding: 0 32px; border-bottom: 1px solid var(--line); }
.brand { font-size: 1rem; letter-spacing: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; transform: none; box-shadow: none; }
.brand-mark svg { width: 23px; }
.nav-link { font-size: .88rem; }
.top-stamp-count { border-radius: 9px; box-shadow: none; }
main { max-width: 1184px; padding: 32px 32px 70px; }
.card { border-color: var(--line); border-radius: 14px; box-shadow: none; }
.checkin-dashboard { grid-template-columns: minmax(0, 1.75fr) minmax(250px, .65fr); gap: 16px; }
.checkin-stage { min-height: 340px; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); }
.checkin-primary { justify-content: center; padding: 28px 36px; color: var(--ink); background: white; }
.checkin-primary::after { display: none; }
.checkin-primary h1 { margin: 0 0 22px; font-size: clamp(1.7rem, 2.8vw, 2.45rem); letter-spacing: -.04em; line-height: 1.35; }
.checkin-primary .location-status { order: 2; margin: 16px 0 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: .82rem; }
.checkin-primary .status-pulse { box-shadow: none; }
.checkin-primary .location-status.active .status-pulse { background: #4a8663; box-shadow: none; }
.checkin-stage .checkin-button { order: 1; min-height: 74px; padding: 13px 17px; border-radius: 10px; background: var(--accent); box-shadow: none; }
.checkin-stage .checkin-button:hover { transform: none; background: var(--accent-dark); }
.checkin-button-icon { width: 42px; height: 42px; border-radius: 8px; }
.checkin-button-icon svg { width: 23px; height: 23px; }
.checkin-button-copy strong { font-size: 1.08rem; }
.checkin-button-copy small { font-weight: 400; }
.checkin-button-arrow { font-size: 1.2rem; }
.checkin-primary .checkin-note { order: 3; margin-top: 7px; color: var(--muted); font-size: .78rem; }
.checkin-primary .demo-location-inline { order: 4; margin-top: 12px; color: var(--muted); font-weight: 400; font-size: .8rem; }
.current-spot { border-left: 1px solid var(--line); }
.checkin-stage:has(.current-spot.is-empty) { grid-template-columns: 1fr; }
.current-spot.is-empty { display: none; }
.checkin-stage:has(.current-spot.is-empty) .checkin-primary { align-items: flex-start; }
.checkin-stage:has(.current-spot.is-empty) .checkin-button { max-width: 420px; }
.current-spot-photo { min-height: 0; flex: 0 0 auto; padding: 22px 22px 17px; background: white; border-bottom: 1px solid var(--line); }
.current-spot-title { position: static; color: var(--ink); }
.current-spot-title > span { color: var(--muted); letter-spacing: 0; font-size: .77rem; font-weight: 600; }
.current-spot-title h2 { margin: 5px 0 3px; font-size: 1.45rem; letter-spacing: -.03em; }
.current-spot-title p { color: var(--muted); font-size: .78rem; }
.distance-pill { position: static; float: right; padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); backdrop-filter: none; }
.current-spot-body { padding: 18px 22px; }
.spot-meta { margin-bottom: 14px; }
.spot-meta > div + div { padding-left: 12px; }
.operator-row { margin-bottom: 9px; }
.official-link { min-height: 45px; padding: 9px 11px; border-radius: 8px; background: white; }
.official-link:hover { transform: none; }
.checkin-dashboard > .progress-panel { min-height: 340px; padding: 25px 22px; }
.card-label-row h2 { margin: 0; font-size: 1rem; }
.period { border-radius: 5px; background: #f0f0ea; }
.ring-wrap, .checkin-dashboard > .progress-panel .ring-wrap { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 14px 0; }
.progress-ring, .checkin-dashboard > .progress-panel .progress-ring { width: auto; aspect-ratio: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.progress-ring::after { display: none; }
.ring-inner { width: auto; height: auto; flex-direction: row; align-items: baseline; gap: 8px; background: none; border-radius: 0; }
.ring-inner strong { font-size: 3.2rem; letter-spacing: -.06em; }
.ring-inner span { margin: 0; color: var(--muted); font-size: .8rem; letter-spacing: 0; }
.ring-copy { max-width: none; text-align: left; }
.ring-copy > span { color: var(--muted); font-size: .82rem; font-weight: 400; }
.reward-box, .checkin-dashboard > .progress-panel .reward-box { display: block; min-width: 0; padding: 13px 0; border-top: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink); }
.reward-box strong { font-size: .76rem; font-weight: 600; }
.reward-count { display: block; margin-top: 3px; color: var(--muted); font-size: .76rem; font-weight: 400; }
.account-control { align-items: flex-start; margin-top: 0; padding-top: 12px; text-align: left; }
.account-control #authStatus { font-weight: 400; }
.checkin-dashboard > .explorer-card { margin-top: 0; min-height: 0; }
.explorer-heading { min-height: 78px; }
.explorer-heading p { margin-top: 2px; }
.section-kicker { display: none; }
.panel-heading { padding-bottom: 16px; }
.panel-heading h2, .timeline-hero h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.stamp-book, .history-panel, .ranking-panel { border-radius: 14px; }
.data-note { text-align: left; }
.stamp-tab { font-weight: 600; }
.stamp-tab.active { box-shadow: none; }
.dialog-backdrop { backdrop-filter: none; }
.success-dialog { border-radius: 16px; }
.success-dialog .eyebrow { display: none; }
.dialog-action { box-shadow: none; }

@media (max-width: 1080px) {
  .checkin-dashboard { grid-template-columns: 1fr; }
  .checkin-dashboard > .progress-panel { display: flex; min-height: 0; }
  .checkin-dashboard > .progress-panel .ring-wrap { display: flex; }
}
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .topbar { height: 60px; padding: 0 16px; }
  main { padding: 14px 12px 32px; }
  .checkin-dashboard { display: flex; flex-direction: column; gap: 10px; }
  .checkin-stage { display: contents; }
  .checkin-primary, .current-spot { border: 1px solid var(--line); border-radius: 12px; }
  .checkin-primary { order: 1; padding: 26px 20px 21px; }
  .checkin-primary h1 { margin-bottom: 18px; font-size: 1.62rem; }
  .checkin-stage .checkin-button { min-height: 72px; padding: 12px; border-radius: 9px; }
  .checkin-button-icon { width: 40px; height: 40px; }
  .checkin-primary .location-status { width: auto; margin-top: 14px; padding: 0; border-radius: 0; }
  .checkin-dashboard > .progress-panel { order: 2; min-height: 0; padding: 17px 20px; }
  .checkin-dashboard > .progress-panel .ring-wrap { display: flex; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 13px; padding: 6px 0 12px; }
  .checkin-dashboard > .progress-panel .progress-ring { width: auto; }
  .ring-inner strong { font-size: 2.8rem; }
  .reward-box { padding: 10px 0; }
  .current-spot { order: 3; }
  .current-spot-photo { padding: 18px 20px 15px; }
  .current-spot-body { padding: 15px 20px; }
  .checkin-dashboard > .explorer-card { order: 4; min-height: 0; }
  .explorer-heading { min-height: 74px; padding: 13px 17px; }
  .explorer-heading p { max-width: none; }
  .mobile-nav { left: 0; right: 0; bottom: 0; min-height: 62px; padding: 4px 5px calc(4px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); border-radius: 0; background: white; box-shadow: none; backdrop-filter: none; }
  .mobile-nav-button { color: var(--muted); border-radius: 8px; font-size: .67rem; }
  .mobile-nav-button.active { color: var(--accent); background: none; font-weight: 700; }
  .stamp-book, .history-panel, .ranking-panel { padding: 20px 16px; }
}

/* Three focused destinations: arrival, map, journal. */
:root {
  --ink: #242a2b;
  --muted: #62696b;
  --paper: #f8f7f4;
  --line: #e5e3df;
  --accent: #bd6049;
  --accent-dark: #a44d39;
  --shadow: none;
}
body { background: var(--paper); }
.topbar { max-width: 1120px; }
.desktop-nav { gap: 42px; }
.nav-link.active { color: var(--accent-dark); }
main { max-width: 1120px; }
.arrival-home { max-width: 1080px; margin: 0 auto; }
.arrival-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 16px; }
.checkin-stage { min-height: 0; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.checkin-primary { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 27px 34px 25px; text-align: center; background: #fff; }
.checkin-primary > * { order: 0 !important; }
.checkin-primary .location-status { margin: 0 0 4px; padding: 0; color: var(--muted); font-size: .9rem; }
.checkin-primary .status-pulse { background: var(--accent); box-shadow: none; }
.checkin-primary .location-status.active .status-pulse { background: #54856a; box-shadow: none; }
.arrival-art { width: 100%; max-width: 320px; height: 136px; margin: 8px auto 0; }
.arrival-art svg { display: block; width: 100%; height: 100%; }
.arrival-art .ground, .arrival-art .roof { fill: none; stroke: #adb4b1; stroke-width: 3; stroke-linecap: round; }
.arrival-art .building { fill: #eeefec; stroke: #dce0dc; stroke-width: 2; }
.arrival-art .sign { fill: var(--accent); }
.arrival-art .window { fill: #c5cfce; }
.arrival-art .tree { fill: #94ad90; stroke: #63836e; stroke-width: 2; }
.arrival-art .car { fill: #4b5756; stroke: #4b5756; stroke-width: 3; }
.arrival-art text { fill: white; font: 700 23px var(--font-sans); }
.checkin-primary h1 { margin: 4px 0 10px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15; letter-spacing: -.04em; }
.arrival-state { display: inline-flex; align-items: center; min-height: 35px; margin: 0 0 22px; padding: 5px 16px; border-radius: 999px; background: #f4f2ef; color: var(--muted); font-size: .85rem; font-weight: 650; }
.arrival-state.is-ready { color: #88402d; background: #f9e9e3; }
.arrival-state.is-warning { color: #80542b; background: #fbf1e3; }
.arrival-state.is-demo { color: #536175; background: #edf0f3; }
.checkin-stage .checkin-button, .checkin-stage:has(.current-spot.is-empty) .checkin-button { order: 0; width: min(100%, 540px); max-width: none; min-height: 75px; margin: 0; padding: 12px 20px; border-radius: 11px; justify-content: center; box-shadow: none; text-align: center; }
.checkin-stage .checkin-button:disabled { background: #d7d4ce; color: #536174; }
.checkin-button-icon { width: 38px; height: 38px; background: rgba(255,255,255,.15); }
.checkin-button-copy { flex: 0 1 auto; text-align: left; }
.checkin-button-copy strong { font-size: 1.16rem; }
.checkin-button-copy small { color: #fff4f0; }
.checkin-button-arrow { margin-left: auto; }
.checkin-primary .checkin-note { margin: 10px 0 0; color: var(--muted); text-align: center; }
.checkin-primary .demo-location-inline { margin: 7px 0 0; padding: 7px; color: var(--muted); text-align: center; }
.home-shortcuts { display: flex; flex-direction: column; justify-content: center; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.home-row { width: 100%; flex: 1; min-height: 93px; display: flex; align-items: center; gap: 14px; padding: 17px 20px; border: 0; background: #fff; text-align: left; cursor: pointer; }
.home-row + .home-row { border-top: 1px solid var(--line); }
.home-row:hover, .home-row:focus-visible { background: #fbf7f4; }
.home-row-icon { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #f4f0ea; color: #59605d; font-size: 1.35rem; }
.home-row-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.home-row-copy > span { color: var(--muted); font-size: .82rem; }
.home-row-copy strong { overflow: hidden; color: var(--ink); font-size: 1.14rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.home-row-copy strong #stampCount { color: var(--accent-dark); font-size: 1.65rem; }
.home-row-copy strong small { color: var(--muted); font-size: .82rem; font-weight: 500; }
.home-row-arrow { color: var(--muted); font-size: 1.7rem; font-weight: 300; }
.current-spot { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); margin-top: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.current-spot.is-empty { display: none; }
.current-spot-photo { min-height: 0; border-right: 1px solid var(--line); border-bottom: 0; }
.current-spot-body { padding: 18px 22px; }
.spot-meta { margin-bottom: 10px; }
.operator-row { margin: 0 0 9px; }
.official-link { margin-bottom: 6px; }
.explorer-panel { max-width: 1080px; margin: 0 auto; }
.section-back { min-height: 44px; margin: 0 0 12px; padding: 0 2px; border: 0; background: none; color: var(--accent-dark); font-size: .88rem; font-weight: 700; cursor: pointer; }
.explorer-card { max-height: none; }
.small-link, .text-link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent-dark); font-weight: 700; cursor: pointer; }
.small-link:hover, .text-link:hover, .section-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.stamp-book, .history-panel, .ranking-panel { max-width: 1080px; margin: 0 auto; }
.stamp-book { padding: 30px; }
.stamp-book .panel-heading h2, .history-panel .timeline-hero h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
.book-subtitle { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.stamp-book-links { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; color: var(--muted); font-size: .82rem; }
.stamp-tabs { width: 100%; margin: 16px 0 0; padding: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.stamp-tab { flex: 1; border-radius: 0; border-bottom: 3px solid transparent; background: none; }
.stamp-tab.active { border-bottom-color: var(--accent); background: none; color: var(--accent-dark); }
.map-book-layout { grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 18px; margin-top: 16px; }
.map-book-visual { padding: 15px; border-color: var(--line); background: #fcfbf9; }
.map-caption-line { font-size: .9rem; }
.japan-map { min-height: 430px; }
.japan-map svg { width: min(100%, 520px); }
.japan-map svg [data-region].visited path { fill: #c77c68 !important; }
.japan-map svg [data-region]:hover path, .japan-map svg [data-region]:focus-visible path { fill: #9e6151 !important; }
.region-selector { padding: 10px 0; }
.region-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.region-button { border-radius: 9px; background: #fff; }
.region-button.visited { border-color: #e8c6bb; background: #fff8f5; }
.rank-copy { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.rank-copy span { display: block; }
.history-panel { padding: 34px 40px; }
.timeline-hero { border-bottom: 0; padding-bottom: 8px; }
.timeline-hero p { margin: 4px 0 0; font-size: .94rem; }
.timeline { width: min(760px, 100%); margin: 0; padding-top: 0; }
.timeline-day { padding-top: 20px; }
.timeline-day + .timeline-day { margin-top: 0; border-top: 0; }
.timeline-day-heading { margin-bottom: 3px; }
.timeline-day-heading h3 { font-size: 1.06rem; }
.timeline-entry { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 10px 0 18px; }
.timeline-entry:not(:last-child)::before { left: 23px; top: 55px; bottom: -10px; }
.timeline-type, .timeline-type.pa { width: 48px; height: 48px; border: 2px solid #d0d2d0; background: white; color: #59605d; box-shadow: none; }
.timeline-type.rank-red, .timeline-type.pa.rank-red { border-color: #bf604b; background: #fff9f6; color: #ab4d38; }
.timeline-type.rank-silver, .timeline-type.pa.rank-silver { border-color: #9a9fa3; background: #fafbfc; color: #727981; }
.timeline-type.rank-gold, .timeline-type.pa.rank-gold { border-color: #c7a25a; background: #fffaf0; color: #9c751f; }
.timeline-entry-body { padding: 14px 17px; border-radius: 10px; background: #fff; }
.timeline-entry-main h4 { font-size: 1.07rem; }
.timeline-entry-main time { color: var(--muted); font-weight: 500; }
.timeline-entry-meta > span { color: var(--accent-dark); letter-spacing: 0; }
.record-account { max-width: 760px; margin-top: 30px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.record-account h3 { margin: 0 0 3px; font-size: .96rem; }
.record-account p { margin: 0 0 12px; color: var(--muted); font-size: .83rem; }
.record-account #googleSignIn:empty { display: none; }
.ranking-panel .section-back { margin-bottom: 10px; }
.stamp-grid > .book-empty { grid-column: 1 / -1; }
.data-note { margin-top: 28px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .76rem; }
.data-note p { margin: 3px 0; }
.data-note summary { width: fit-content; margin-top: 6px; cursor: pointer; }
.data-note details[open] { max-width: 760px; }
.data-note details[open] p { margin-top: 9px; line-height: 1.6; }

@media (max-width: 900px) {
  .arrival-layout { grid-template-columns: 1fr; }
  .home-shortcuts { display: block; }
  .home-row { min-height: 76px; }
  .map-book-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar { height: 58px; }
  main { padding: 12px 12px 30px; }
  .arrival-layout { display: block; }
  .checkin-stage { display: block; border-radius: 13px; }
  .checkin-primary { padding: 20px 18px 22px; border: 0; border-radius: 0; }
  .checkin-primary .location-status { width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; }
  .arrival-art { height: 112px; margin-top: 1px; }
  .checkin-primary h1 { margin: 1px 0 8px; font-size: 2rem; }
  .arrival-state { min-height: 32px; margin-bottom: 17px; padding: 4px 12px; font-size: .77rem; }
  .checkin-stage .checkin-button { min-height: 69px; padding: 11px 15px; }
  .checkin-button-copy strong { font-size: 1.04rem; }
  .checkin-primary .checkin-note { margin-top: 8px; }
  .checkin-primary .demo-location-inline { margin-top: 4px; }
  .home-shortcuts { margin-top: 10px; border-radius: 12px; }
  .home-row { min-height: 68px; padding: 10px 15px; gap: 12px; }
  .home-row-icon { width: 34px; height: 34px; font-size: 1.1rem; }
  .home-row-copy strong { font-size: 1rem; }
  .home-row-copy strong #stampCount { font-size: 1.3rem; }
  .current-spot { display: block; margin-top: 10px; border-radius: 12px; }
  .current-spot.is-empty { display: none; }
  .current-spot-photo { border-right: 0; border-bottom: 1px solid var(--line); }
  .explorer-panel .section-back { margin-bottom: 8px; }
  .stamp-book, .history-panel, .ranking-panel { padding: 20px 16px; }
  .stamp-book .panel-heading h2, .history-panel .timeline-hero h2 { font-size: 1.85rem; }
  .stamp-book .panel-heading { align-items: flex-start; }
  .small-link { padding: 0; font-size: .78rem; white-space: nowrap; }
  .stamp-book-links { gap: 12px; }
  .stamp-tab { font-size: .84rem; }
  .map-book-visual { padding: 11px; border-radius: 11px; }
  .japan-map { min-height: 350px; }
  .japan-map svg { max-height: 465px; }
  .region-selector { padding-top: 12px; }
  .region-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .region-button { min-height: 64px; }
  .timeline-day { padding-top: 17px; }
  .timeline-day-list { margin-left: 0; }
  .timeline-entry { grid-template-columns: 43px minmax(0, 1fr); gap: 10px; }
  .timeline-type, .timeline-type.pa { width: 43px; height: 43px; }
  .timeline-entry-body { padding: 12px; }
  .record-account { margin-top: 20px; }
  .mobile-nav { grid-template-columns: repeat(3, 1fr); min-height: 66px; }
}
