:root {
  --accent: #FF6A00;
  --accent-dark: #B34700;
  --accent-light: #FFE9D6;
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --border: #E4E1D8;
  --text: #2C2C2A;
  --text-muted: #6B6A66;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.screen { min-height: 100vh; }
.hidden { display: none !important; }

#gate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  display: block;
}

.logo-sm {
  width: 34px;
  height: 34px;
  display: block;
}

.card h1 {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 600;
}

.muted { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }

input[type="password"], input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  margin-bottom: 12px;
}

button {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

button:hover { background: var(--accent-dark); }

button.ghost {
  width: auto;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  font-size: 13px;
}

.error {
  color: #A32D2D;
  font-size: 14px;
  font-weight: 500;
  min-height: 18px;
  margin: 8px 0 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--accent-dark); font-size: 17px; }

#app-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.prompt { font-size: 15px; color: var(--text-muted); margin: 0 0 16px; }

.option-list { display: flex; flex-direction: column; gap: 10px; }

.option-btn {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 400;
  padding: 14px 16px;
  border-radius: var(--radius);
}

.option-btn:hover { border-color: var(--accent); background: var(--accent-light); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  width: auto;
  padding: 0 0 16px;
  cursor: pointer;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
}

.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.result-title { font-size: 16px; font-weight: 500; margin: 0 0 16px; line-height: 1.5; }

.action-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.restart-btn { margin-top: 20px; }
