/* Luka spike shell styles */

:root {
  --bone: #EFEBE3;
  --paper: #FFFFFF;
  --ink: #0E0E0E;
  --lime: #D4FF3A;
  --lime-dark: #8FB300;
  --blue: #2336FF;
  --danger: #FF2D2D;
  --muted: #6B665C;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bone);
  color: var(--ink);
  font-family: -apple-system, "SF Pro Display", system-ui, sans-serif;
}

body {
  margin: 0;
  padding:
    calc(env(safe-area-inset-top) + 16px)
    calc(env(safe-area-inset-right) + 16px)
    calc(env(safe-area-inset-bottom) + 16px)
    calc(env(safe-area-inset-left) + 16px);
  min-height: 100vh;
  background: var(--bone);
  border: 2px solid var(--lime);
  border-width: 2px;
}

header, main, section {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--paper);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
}

.dot {
  color: var(--lime-dark);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.status {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

h2 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

p {
  margin: 0 0 12px;
  line-height: 1.5;
}

p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

button,
.button-like {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-bottom: 8px;
}

button:last-child,
.button-like:last-child {
  margin-bottom: 0;
}

.btn-primary {
  background: var(--lime);
  color: var(--ink);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
}

button:focus-visible,
.button-like:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-variant-numeric: tabular-nums;
}

.list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--bone);
}

.list li:last-child {
  border-bottom: none;
}

.result {
  margin-top: 12px;
  font-weight: 500;
}

.result.ok {
  color: var(--lime-dark);
}

.result.error {
  color: var(--danger);
}

details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.875rem;
}

pre {
  background: var(--bone);
  border-radius: 10px;
  padding: 12px;
  overflow-x: auto;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.message {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.message.hidden {
  display: none;
}

.message-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.message-step {
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.message-code {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
}

.hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
