:root {
  --bg-primary: #000000;
  --bg-surface: #1c1e21;
  --text-primary: #f5f7fa;
  --text-secondary: #e4e6eb;
  --text-muted: #b0b3b8;
  --accent: #7ee0c8;
  --focus-ring: #00d4ff;
  --focus-glow: rgba(0, 212, 255, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#app {
  width: 600px;
  height: 600px;
  position: relative;
}

.screen {
  width: 584px;
  height: 584px;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 8px;
  left: 8px;
}

.screen.hidden {
  display: none;
}

.screen-read {
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  padding: 8px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
  background: var(--bg-surface);
  border-radius: 12px;
  flex-shrink: 0;
}

.header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.title-block {
  padding: 24px 16px 8px;
  text-align: center;
}

.title-tag {
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 10px;
}

.title-block h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}

.build {
  margin-top: 10px;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.header-build {
  margin-top: 0;
  font-size: 14px;
}

.title-lede {
  margin-top: 14px;
  text-align: left;
}

.content,
.menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0 0;
  overflow: hidden;
}

.lede {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.facts li::before {
  content: "• ";
  color: var(--focus-ring);
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 14px;
  background: var(--bg-surface);
  border-radius: 10px;
  flex-shrink: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
}

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 8px 0 6px;
  overflow: hidden;
}

.ghost-frame {
  position: absolute;
  inset: 8px 18px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 12px;
  pointer-events: none;
}

.card {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 8px;
  bottom: 8px;
  padding: 16px 18px;
  background: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  will-change: transform;
  transform-origin: center center;
}

.card-kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-text {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-primary);
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.control-row {
  display: flex;
  gap: 8px;
}

.control-row .focusable {
  flex: 1;
}

.focusable {
  min-height: 88px;
  padding: 0 16px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  opacity: 0.8;
  transition:
    transform 475ms cubic-bezier(0.6, 0, 0.4, 1),
    opacity 300ms cubic-bezier(0.4, 0.04, 0.5, 1),
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.menu .focusable,
.content .focusable {
  min-height: 88px;
  font-size: 20px;
}

.focusable:focus {
  outline: none;
  opacity: 1;
  border-color: var(--focus-ring);
  box-shadow: 0 0 20px var(--focus-glow);
  transform: scale(calc(1 - 8 / 88));
}
