:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f4;
  color: #262626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f5f4;
}

button,
input {
  font: inherit;
}

button,
a.button {
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid #3f3f46;
  background: #fff;
  color: #27272a;
  text-decoration: none;
  cursor: pointer;
}

button.primary {
  background: #27272a;
  color: #fff;
}

button.danger {
  border-color: #b91c1c;
  color: #991b1b;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #737373;
  outline-offset: 2px;
}

main {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 24px 16px 56px;
}

header {
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  margin: 0 0 8px;
}

h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

p {
  line-height: 1.7;
}

.lead,
.muted {
  color: #626262;
}

.card {
  background: #fff;
  border: 1px solid #d6d3d1;
  border-radius: 20px;
  padding: 18px;
  margin: 16px 0;
}

.status {
  min-height: 1.5em;
  margin: 12px 0;
}

.status.error {
  color: #991b1b;
}

.status.ok {
  color: #166534;
}

.form-row {
  display: grid;
  gap: 8px;
}

input[type="text"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid #a8a29e;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #262626;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.place-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.place-item {
  border: 1px solid #d6d3d1;
  border-radius: 14px;
  padding: 12px;
}

.place-item[data-selected="true"] {
  border-width: 2px;
  border-color: #525252;
}

.place-name {
  font-weight: 700;
  word-break: break-word;
}

.place-meta {
  margin-top: 4px;
  font-size: .86rem;
  color: #737373;
}

[hidden] {
  display: none !important;
}

.counter {
  font-variant-numeric: tabular-nums;
}

.notice {
  padding: 12px;
  border-radius: 12px;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
}


/* Direction / target-up compass */

.direction-panel {
  scroll-margin-top: 16px;
}

.direction-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.direction-eyebrow {
  margin: 0 0 4px;
  color: #737373;
  font-size: .82rem;
}

.direction-target-name {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  word-break: break-word;
}

.target-bearing-primary {
  margin: 12px 0 18px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.direction-compass {
  --compass-counter: 0deg;
  position: relative;
  width: min(78vw, 320px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid #a8a29e;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 48%, transparent 49%),
    repeating-conic-gradient(
      from 0deg,
      #d6d3d1 0deg 1deg,
      transparent 1deg 15deg
    ),
    #fafaf9;
  box-shadow:
    inset 0 0 0 10px #fff,
    inset 0 0 0 11px #e7e5e4;
}

.compass-rotor {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
}

.compass-cardinal {
  position: absolute;
  display: block;
  color: #404040;
  font-weight: 700;
  line-height: 1;
}

.compass-cardinal > span {
  display: block;
  transform: rotate(var(--compass-counter));
}

.compass-cardinal--north {
  top: 12%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.compass-cardinal--east {
  top: 50%;
  right: 12%;
  transform: translate(50%, -50%);
}

.compass-cardinal--south {
  bottom: 12%;
  left: 50%;
  transform: translate(-50%, 50%);
}

.compass-cardinal--west {
  top: 50%;
  left: 12%;
  transform: translate(-50%, -50%);
}

.target-fixed-mark {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 4px;
  transform: translateX(-50%);
  pointer-events: none;
}

.target-fixed-dot {
  display: block;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #262626;
  box-shadow: 0 0 0 1px #525252;
}

.target-fixed-label {
  padding: 3px 8px;
  border: 1px solid #a8a29e;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #262626;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
}

.compass-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 20px;
  height: 20px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #525252;
  box-shadow: 0 0 0 1px #737373;
  transform: translate(-50%, -50%);
}

.current-heading-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 4px;
  height: 34%;
  border-radius: 999px;
  background: #525252;
  transform: translate(-50%, -100%) rotate(0deg);
  transform-origin: 50% 100%;
  transition: transform 140ms ease-out;
}

.current-heading-needle::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-bottom: 14px solid #525252;
  border-left: 8px solid transparent;
  transform: translateX(-50%);
}

.direction-compass[data-aligned="true"] .current-heading-needle,
.direction-compass[data-aligned="true"] .current-heading-needle::before {
  filter: contrast(1.2);
}

.turn-instruction {
  min-height: 1.7em;
  margin: 18px 0 8px;
  text-align: center;
  font-weight: 700;
}

.direction-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}

.direction-metrics > div {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  background: #fafaf9;
  text-align: center;
}

.direction-metrics dt {
  color: #737373;
  font-size: .72rem;
}

.direction-metrics dd {
  margin: 4px 0 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (max-width: 390px) {
  .direction-metrics {
    grid-template-columns: 1fr;
  }

  .direction-metrics > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .current-heading-needle {
    transition: none;
  }
}


/* Direction map overview */

.guidance-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 360px);
  margin: 0 auto 18px;
  padding: 4px;
  border: 1px solid #d6d3d1;
  border-radius: 999px;
  background: #fafaf9;
}

.guidance-mode-button {
  min-height: 40px;
  border-color: transparent;
  background: transparent;
}

.guidance-mode-button[aria-pressed="true"] {
  border-color: #525252;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.map-mode-panel {
  margin-top: 4px;
}

.map-overview-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.map-overview {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid #d6d3d1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.95), rgba(250,250,249,.86) 42%, rgba(245,245,244,.96)),
    #f5f5f4;
}

.map-overview > .muted,
.map-overview > .status {
  margin: 0;
  padding: 24px;
}

.map-overview-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: 520px;
  background: #fafaf9;
}

.map-geography {
  fill: #e7e5e4;
  stroke: #a8a29e;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.map-geography--japan {
  fill: #e5e7eb;
  stroke: #a3a3a3;
}

.map-geography--world {
  fill: #e7e5e4;
  stroke: #b8b8b8;
}

.map-relationship-line {
  fill: none;
  stroke: #404040;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .78;
}

.map-marker-shape {
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.map-marker--current .map-marker-shape {
  fill: #525252;
}

.map-marker--target .map-marker-shape {
  fill: #171717;
}

.map-marker-label {
  fill: #262626;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(255,255,255,.96);
  stroke-width: 4px;
  vector-effect: non-scaling-stroke;
}

.map-north-cue {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(82,82,82,.35);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  color: #404040;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  white-space: pre-line;
  backdrop-filter: blur(6px);
}

.map-overview-note {
  margin: 10px 2px 0;
  font-size: .86rem;
}

@media (max-width: 480px) {
  .map-overview {
    min-height: 240px;
  }

  .map-overview-svg {
    min-height: 240px;
  }
}


.map-attribution {
  margin: 6px 2px 0;
  font-size: .68rem;
  line-height: 1.45;
}


/* Direction aligned state */

.aligned-panel {
  text-align: center;
}

.aligned-eyebrow {
  margin: 0 0 6px;
  color: #166534;
  font-size: .9rem;
  font-weight: 700;
}

.aligned-panel h2 {
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.aligned-compass {
  margin-top: 8px;
}

.aligned-heading-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 4px;
  height: 34%;
  border-radius: 999px;
  background: #262626;
  transform: translate(-50%, -100%) rotate(0deg);
  transform-origin: 50% 100%;
}

.aligned-heading-needle::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-bottom: 14px solid #262626;
  border-left: 8px solid transparent;
  transform: translateX(-50%);
}

.aligned-copy {
  margin: 18px 0 8px;
  font-weight: 700;
}

.aligned-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aligned-actions {
  justify-content: center;
  margin-top: 18px;
}


/* Quiet mode */

.quiet-mode-entry-button {
  width: min(100%, 360px);
  min-height: 52px;
  margin-top: 18px;
  border-color: #303336;
  background: #202326;
  color: #f5f5f4;
  font-weight: 700;
  letter-spacing: .04em;
}

.quiet-mode-entry-button:focus-visible {
  outline-color: #73777b;
}

body.quiet-mode-active {
  overflow: hidden;
  background: #111315;
}

.quiet-mode-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding:
    max(2rem, env(safe-area-inset-top))
    1.5rem
    max(2rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 42%, rgba(226, 229, 226, .08), transparent 18rem),
    radial-gradient(circle at 24% 18%, rgba(190, 197, 198, .055), transparent 14rem),
    linear-gradient(180deg, #17191b 0%, #101214 100%);
  color: #eceeed;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  animation: quiet-mode-fade-in 240ms ease-out both;
}

.quiet-mode-panel::before,
.quiet-mode-panel::after {
  content: "";
  position: absolute;
  left: -12%;
  width: 124%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(222, 226, 224, .12),
    transparent
  );
  pointer-events: none;
}

.quiet-mode-panel::before {
  top: 22%;
}

.quiet-mode-panel::after {
  bottom: 20%;
  opacity: .7;
}

.quiet-mode-panel:focus-visible {
  outline: 2px solid rgba(236, 238, 237, .42);
  outline-offset: -6px;
}

.quiet-mode-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(88vw, 34rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(238, 240, 239, .04) 0 26%,
    rgba(238, 240, 239, .015) 50%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.quiet-mode-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 30rem);
  flex-direction: column;
  align-items: center;
}

.quiet-mode-mark {
  position: relative;
  display: grid;
  width: 4.6rem;
  height: 4.6rem;
  margin-bottom: 1.7rem;
  place-items: center;
  border: 1px solid rgba(232, 235, 233, .34);
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(236, 238, 237, .018),
    inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.quiet-mode-mark::before {
  content: "";
  width: .62rem;
  height: .62rem;
  border: 2px solid #e7e9e8;
  border-radius: 50%;
  background: #151719;
}

.quiet-mode-mark span {
  position: absolute;
  top: .55rem;
  left: 50%;
  width: 1px;
  height: 1.15rem;
  background: linear-gradient(
    180deg,
    rgba(232, 235, 233, .72),
    transparent
  );
  transform: translateX(-50%);
}

.quiet-mode-target {
  margin: 0;
  color: rgba(236, 238, 237, .76);
  font-size: clamp(1rem, 4.7vw, 1.3rem);
  font-weight: 650;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}

.quiet-mode-rule {
  display: flex;
  width: min(13rem, 56vw);
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin: 1.5rem auto 1.8rem;
}

.quiet-mode-rule::before,
.quiet-mode-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 233, 231, .28));
}

.quiet-mode-rule::after {
  background: linear-gradient(90deg, rgba(230, 233, 231, .28), transparent);
}

.quiet-mode-rule span {
  width: .38rem;
  height: .38rem;
  border: 1px solid rgba(230, 233, 231, .52);
  transform: rotate(45deg);
}

.quiet-mode-message {
  margin: 0;
  color: #f0f1f0;
  font-size: clamp(1.55rem, 7.2vw, 2.35rem);
  font-weight: 560;
  letter-spacing: .035em;
  line-height: 1.65;
}

.quiet-mode-exit-hint {
  margin: 3.4rem 0 0;
  color: rgba(236, 238, 237, .42);
  font-size: .76rem;
  letter-spacing: .07em;
}

@keyframes quiet-mode-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiet-mode-panel {
    animation-duration: .001ms;
  }
}


/* Visual theme: Morning Mist / Issue #59 */

:root {
  --omoi-bg: #f5f2ea;
  --omoi-card: #fbf9f4;
  --omoi-text: #343532;
  --omoi-accent: #556468;
  --omoi-delete: #a35a52;
  --omoi-muted: #74746e;
  --omoi-border: #d8d3c8;
  --omoi-mist: #e8ece9;
  --omoi-line: #b9bbb5;
  --omoi-heading:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;
  --omoi-ui:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--omoi-bg);
  color: var(--omoi-text);
  font-family: var(--omoi-ui);
}

body {
  position: relative;
  background:
    radial-gradient(
      ellipse at 88% 7%,
      rgba(199, 209, 207, .28) 0,
      rgba(225, 228, 223, .16) 18rem,
      transparent 34rem
    ),
    radial-gradient(
      ellipse at 8% 88%,
      rgba(194, 203, 199, .24) 0,
      rgba(228, 228, 218, .14) 20rem,
      transparent 36rem
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .24),
      rgba(245, 242, 234, .96) 18rem,
      var(--omoi-bg)
    );
  color: var(--omoi-text);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(18px);
  opacity: .62;
}

body::before {
  top: 4rem;
  right: -16vw;
  width: 72vw;
  height: 18rem;
  border-radius: 55% 45% 48% 52%;
  background:
    radial-gradient(ellipse, rgba(153, 169, 167, .13), transparent 68%);
  transform: rotate(-7deg);
}

body::after {
  bottom: 0;
  left: -22vw;
  width: 84vw;
  height: 20rem;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(133, 151, 148, .11), transparent 70%);
  transform: rotate(8deg);
}

main {
  position: relative;
  width: min(100%, 700px);
  padding-top: 28px;
}

header {
  position: relative;
  margin: 0 4px 30px;
  padding: 8px 2px 18px;
}

header::after {
  content: "";
  display: block;
  width: 52px;
  height: 1px;
  margin-top: 20px;
  background: linear-gradient(
    90deg,
    var(--omoi-accent),
    rgba(85, 100, 104, 0)
  );
}

h1,
h2,
.direction-target-name,
.place-name,
.aligned-panel h2 {
  font-family: var(--omoi-heading);
  color: var(--omoi-text);
  font-weight: 600;
  letter-spacing: .035em;
}

h1 {
  font-size: clamp(2rem, 8.4vw, 3rem);
  line-height: 1.2;
  letter-spacing: .08em;
}

h2 {
  font-size: 1.18rem;
}

.lead {
  max-width: 32rem;
  margin-top: 12px;
  color: #686a65;
  line-height: 1.9;
  letter-spacing: .025em;
}

.muted,
.place-meta,
.direction-eyebrow,
.direction-metrics dt {
  color: var(--omoi-muted);
}

.card {
  background: rgba(251, 249, 244, .88);
  border-color: rgba(177, 173, 163, .28);
  box-shadow:
    0 8px 24px rgba(70, 72, 68, .018),
    inset 0 1px 0 rgba(255, 255, 255, .58);
  backdrop-filter: blur(6px);
}

button,
a.button {
  border-color: rgba(85, 100, 104, .56);
  background: rgba(251, 249, 244, .86);
  color: var(--omoi-text);
  box-shadow: none;
}

button:hover,
a.button:hover {
  border-color: var(--omoi-accent);
}

button.primary,
.quiet-mode-entry-button {
  border-color: var(--omoi-accent);
  background: var(--omoi-accent);
  color: #fbfaf6;
  box-shadow: 0 8px 18px rgba(85, 100, 104, .12);
}

button.primary:hover,
.quiet-mode-entry-button:hover {
  background: #4c5b5f;
}

button.danger {
  border-color: rgba(163, 90, 82, .75);
  background: rgba(251, 249, 244, .9);
  color: var(--omoi-delete);
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
.quiet-mode-panel:focus-visible {
  outline-color: rgba(85, 100, 104, .72);
}

input[type="text"] {
  border-color: var(--omoi-border);
  background: rgba(255, 254, 250, .78);
  color: var(--omoi-text);
}

input[type="text"]::placeholder {
  color: #99978f;
}

.notice {
  border-color: rgba(216, 211, 200, .85);
  background: rgba(245, 242, 234, .6);
}

.install-guidance {
  margin: 16px 0 6px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(177, 173, 163, .24);
}

.install-guidance-title {
  margin: 0 0 6px;
  color: var(--omoi-text);
  font-weight: 600;
  line-height: 1.65;
}

.install-guidance .muted {
  margin: 0;
  line-height: 1.7;
}

.install-guidance .actions {
  margin-top: 10px;
}

.status.ok {
  color: var(--omoi-accent);
}

.status.error {
  color: var(--omoi-delete);
}

.place-list {
  gap: 12px;
}

.place-item {
  border-color: rgba(197, 192, 181, .24);
  background: rgba(255, 254, 250, .38);
}

.place-item[data-selected="true"] {
  border-width: 1px;
  border-color: rgba(85, 100, 104, .30);
  background: rgba(232, 236, 233, .30);
  box-shadow: inset 4px 0 0 rgba(85, 100, 104, .72);
}

.place-name {
  font-size: 1.08rem;
}

.counter {
  margin-left: .12em;
  color: var(--omoi-muted);
  font-family: var(--omoi-ui);
  font-size: .82em;
  font-weight: 500;
}

/* Direction */

.direction-panel {
  border-color: rgba(143, 151, 149, .24);
}

.direction-header {
  padding-bottom: 4px;
}

.direction-eyebrow {
  letter-spacing: .06em;
}

.direction-target-name {
  font-size: 1.35rem;
}

.target-bearing-primary {
  color: var(--omoi-text);
  letter-spacing: .04em;
}

.guidance-mode-switch {
  border-color: rgba(147, 153, 150, .30);
  background: rgba(237, 235, 228, .60);
}

.guidance-mode-button {
  color: #5e615d;
}

.guidance-mode-button[aria-pressed="true"] {
  border-color: rgba(85, 100, 104, .46);
  background: rgba(251, 249, 244, .88);
  color: var(--omoi-accent);
  box-shadow: 0 2px 8px rgba(76, 88, 90, .035);
}

/* Compass */

.direction-compass {
  border-color: rgba(85, 100, 104, .26);
  background:
    radial-gradient(
      circle at center,
      rgba(251, 249, 244, .98) 0 48%,
      transparent 49%
    ),
    repeating-conic-gradient(
      from 0deg,
      rgba(85, 100, 104, .22) 0deg 1deg,
      transparent 1deg 15deg
    ),
    rgba(248, 246, 240, .96);
  box-shadow:
    inset 0 0 0 9px rgba(251, 249, 244, .9),
    inset 0 0 0 10px rgba(85, 100, 104, .14),
    0 10px 28px rgba(70, 76, 74, .022);
}

.compass-cardinal {
  color: #4a4c49;
  font-family: var(--omoi-heading);
  font-weight: 600;
}

.target-fixed-dot {
  border-color: var(--omoi-card);
  background: var(--omoi-accent);
  box-shadow: 0 0 0 1px rgba(85, 100, 104, .7);
}

.target-fixed-label {
  border-color: rgba(85, 100, 104, .38);
  background: rgba(251, 249, 244, .96);
  color: var(--omoi-text);
}

.compass-center {
  border-color: var(--omoi-card);
  background: #657477;
  box-shadow: 0 0 0 1px rgba(85, 100, 104, .58);
}

.current-heading-needle,
.aligned-heading-needle {
  background: var(--omoi-accent);
}

.current-heading-needle::before,
.aligned-heading-needle::before {
  border-bottom-color: var(--omoi-accent);
}

.turn-instruction {
  color: #494c49;
  letter-spacing: .025em;
}

.direction-metrics > div {
  border-color: rgba(216, 211, 200, .42);
  background: rgba(251, 249, 244, .52);
}

.direction-metrics dd {
  color: var(--omoi-text);
}

/* Map */

.map-overview {
  border-color: rgba(180, 180, 171, .38);
  background:
    radial-gradient(
      circle at 34% 20%,
      rgba(255, 254, 250, .94),
      rgba(242, 241, 234, .82) 46%,
      rgba(235, 236, 230, .9)
    );
}

.map-overview-svg {
  background: rgba(249, 247, 241, .94);
}

.map-geography,
.map-geography--japan,
.map-geography--world {
  fill: #e2e3de;
  stroke: #aeb4b0;
}

.map-relationship-line {
  stroke: var(--omoi-accent);
  opacity: .88;
}

.map-marker--current .map-marker-shape {
  fill: #687579;
}

.map-marker--target .map-marker-shape {
  fill: var(--omoi-text);
}

.map-marker-label {
  fill: var(--omoi-text);
  stroke: rgba(251, 249, 244, .98);
}

.map-north-cue {
  border-color: rgba(85, 100, 104, .28);
  background: rgba(251, 249, 244, .9);
  color: var(--omoi-accent);
}

/* Aligned */

.aligned-eyebrow {
  color: var(--omoi-accent);
}

.aligned-copy {
  color: #4d504c;
}

/* Quiet mode */

body.quiet-mode-active {
  background: #111315;
}

.quiet-mode-entry-button {
  letter-spacing: .06em;
}

.quiet-mode-panel {
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(103, 121, 124, .13),
      transparent 17rem
    ),
    radial-gradient(
      ellipse at 50% 100%,
      rgba(218, 221, 214, .035),
      transparent 35rem
    ),
    linear-gradient(180deg, #171a1b 0%, #101214 100%);
  color: #eceeed;
}

.quiet-mode-mark {
  border-color: rgba(155, 173, 175, .34);
}

.quiet-mode-mark::before {
  border-color: #cfd8d8;
}

.quiet-mode-target {
  color: rgba(214, 222, 221, .78);
  font-family: var(--omoi-heading);
  letter-spacing: .1em;
}

.quiet-mode-message {
  font-family: var(--omoi-heading);
  font-weight: 500;
}

/* Mobile tuning */

@media (max-width: 480px) {
  main {
    padding: 20px 14px 48px;
  }

  header {
    margin-bottom: 24px;
  }

  .card {
    border-radius: 18px;
    padding: 17px;
  }

  .direction-compass {
    width: min(82vw, 318px);
  }

  .status {
    font-size: .94rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .install-guidance-title,
  .install-guidance .muted {
    line-break: strict;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .card,
  .map-north-cue {
    backdrop-filter: none;
    background: var(--omoi-card);
  }
}


/* Morning Mist approved background asset */

body::before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(
      180deg,
      rgba(245, 242, 234, .42) 0%,
      rgba(245, 242, 234, .60) 34%,
      rgba(245, 242, 234, .76) 72%,
      rgba(245, 242, 234, .88) 100%
    ),
    url("/assets/backgrounds/omoi-no-hougaku-bg-morning-mist-beige.png")
      center top / cover no-repeat;
  filter: none;
  opacity: 1;
  transform: none;
}

body::after {
  z-index: 0;
  opacity: .36;
}

main {
  z-index: 1;
}

body.quiet-mode-active::before,
body.quiet-mode-active::after {
  opacity: 0;
}

@media (max-width: 480px) {
  body::before {
    background-position: 50% 0;
  }
}
