:root {
  --ink: #1c2b2d;
  --paper: #f2ede3;
  --closed: #a83232;
  --open: #2f6b4f;
  --unknown: #8a8378;
  --line: #d8cfbe;
  --harbor: #3d5a6c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--harbor);
}

.subtitle {
  color: #6b6459;
  font-size: 0.85rem;
  margin: 0 0 32px;
  text-align: center;
}

.status-row {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 380px;
}

.status-card {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 22px 14px;
  text-align: center;
}

.status-card .direction {
  font-size: 0.74rem;
  color: #6b6459;
  margin: 0 0 12px;
  line-height: 1.3;
}

.status-word {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.status-word.closed { color: var(--closed); }
.status-word.open { color: var(--open); }
.status-word.unknown { color: var(--unknown); }

.status-detail {
  font-size: 0.74rem;
  color: #6b6459;
  line-height: 1.4;
  min-height: 1.2em;
}

.checked-at {
  font-size: 0.75rem;
  color: #9a927f;
  margin-top: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

button, .btn {
  margin-top: 22px;
  width: 100%;
  max-width: 380px;
  padding: 14px;
  background: var(--harbor);
  color: var(--paper);
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

button:disabled { opacity: 0.5; }

.card-form {
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 24px 20px;
  margin-top: 20px;
}

.card-form label {
  display: block;
  font-size: 0.78rem;
  color: #6b6459;
  margin: 0 0 6px;
}

.card-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.9rem;
  background: var(--paper);
  margin-bottom: 16px;
}

.card-form input:last-of-type { margin-bottom: 0; }

.note {
  max-width: 380px;
  font-size: 0.78rem;
  color: #9a927f;
  margin-top: 28px;
  line-height: 1.5;
  text-align: center;
}

.error-text {
  color: var(--closed);
  font-size: 0.85rem;
  margin: 0 0 14px;
}

.success-text {
  color: var(--open);
  font-size: 0.85rem;
  margin: 0 0 14px;
}

.admin-link {
  margin-top: 40px;
  font-size: 0.72rem;
  color: #b6ad9a;
  text-decoration: none;
}

.admin-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(28, 43, 45, 0.12);
  color: var(--harbor);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.admin-fab:active {
  transform: scale(0.92);
}

.live-badge {
  font-size: 0.72rem;
  color: var(--open);
  font-weight: 600;
  margin: 0 0 22px;
  animation: live-blink 1.8s ease-in-out infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.top-bar {
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.top-bar a {
  font-size: 0.78rem;
  color: var(--harbor);
}
