:root {
  color-scheme: dark;
  --om-bg: #0d1019;
  --om-surface: #171b28;
  --om-surface-raised: #202637;
  --om-ink: #f4f0ed;
  --om-muted: #b8b5bd;
  --om-line: rgba(244, 240, 237, .16);
  --om-pearl: #f6e8df;
  --om-lilac: #c9b8e8;
  --om-pink: #e7a4bb;
  --om-focus: #f3dce6;
  --om-danger: #e9a0a8;
  --om-radius-sm: 12px;
  --om-radius-md: 20px;
  --om-radius-lg: 30px;
  --om-space-1: 4px;
  --om-space-2: 8px;
  --om-space-3: 12px;
  --om-space-4: 16px;
  --om-space-5: 24px;
  --om-space-6: 32px;
  --om-space-7: 48px;
  --om-ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { background: var(--om-bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--om-ink);
  background: radial-gradient(70rem 42rem at 20% -10%, rgba(114, 126, 174, .22), transparent 56%), var(--om-bg);
  font-family: Inter, "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  line-height: 1.58;
}

a { color: inherit; }
button, a { touch-action: manipulation; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--om-focus); outline-offset: 3px; }

.om-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--om-space-2);
  min-width: 44px;
  min-height: 44px;
  margin: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  padding: 10px 14px;
  border: 1px solid var(--om-line);
  border-radius: 999px;
  color: var(--om-pearl);
  text-decoration: none;
  background: rgba(23, 27, 40, .74);
  transition: background 180ms var(--om-ease), border-color 180ms var(--om-ease), transform 180ms var(--om-ease);
}
.om-back:hover { border-color: rgba(246, 232, 223, .38); background: rgba(42, 48, 67, .9); transform: translateY(-1px); }
.om-back:active { transform: translateY(0) scale(.98); }

.om-app {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0 max(40px, env(safe-area-inset-bottom));
}
.om-app__header { max-width: 68ch; margin-bottom: var(--om-space-6); }
.om-eyebrow { margin: 0 0 var(--om-space-2); color: var(--om-lilac); font-size: .72rem; font-weight: 700; letter-spacing: .18em; }
.om-app h1 { margin: 0; font-family: Georgia, "Noto Serif JP", serif; font-size: clamp(2.25rem, 6vw, 4.75rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.om-lede { max-width: 58ch; margin: var(--om-space-4) 0 0; color: var(--om-muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.om-app__mount { min-height: 1px; }

.om-panel, .om-state, .om-disclaimer {
  border: 1px solid var(--om-line);
  border-radius: var(--om-radius-lg);
  background: linear-gradient(145deg, rgba(42, 48, 67, .78), rgba(23, 27, 40, .94));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}
.om-panel { padding: clamp(20px, 4vw, 40px); }
.om-state { padding: var(--om-space-5); }
.om-state--error { border-color: rgba(233, 160, 168, .5); }
.om-state h2 { margin: 0; font-family: Georgia, "Noto Serif JP", serif; }
.om-state p { margin-bottom: 0; color: var(--om-muted); }
.om-disclaimer { margin-top: var(--om-space-6); padding: var(--om-space-4); color: var(--om-muted); font-size: .9rem; }
.om-disclaimer p { margin: 0; }
.om-footer { padding: 0 16px max(20px, env(safe-area-inset-bottom)); color: var(--om-muted); font-size: .82rem; text-align: center; }

.om-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(246, 232, 223, .26);
  border-radius: 999px;
  color: #201924;
  background: var(--om-pearl);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms var(--om-ease), background 180ms var(--om-ease), box-shadow 180ms var(--om-ease);
}
.om-button:hover { background: #fff8f3; box-shadow: 0 11px 24px rgba(0, 0, 0, .22); transform: translateY(-1px); }
.om-button:active { transform: scale(.98); }
.om-button[disabled], .om-button[aria-disabled="true"] { cursor: not-allowed; opacity: .52; transform: none; }

@media (max-width: 479px) {
  .om-app { width: min(100% - 32px, 1120px); }
  .om-back { margin-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
