:root {
  --bg-primary: #000000;
  --bg-surface: #1c1e21;
  --text-primary: #ffffff;
  --text-secondary: #e4e6eb;
  --text-muted: #b0b3b8;
  --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;
  padding: 8px;
  position: relative;
}

.screen {
  width: 584px;
  height: 584px;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 8px;
  left: 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-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #007aa8;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 16px rgba(0, 122, 168, 0.45);
}

.header h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.header-meta {
  font-size: 16px;
  color: var(--text-muted);
}

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

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

#app-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.focusable {
  min-height: 108px;
  padding: 14px 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 600;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  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;
}

.app-name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.app-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.app-updated-badge {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ff2a00;
  text-shadow:
    0 0 8px #ff6a00,
    0 0 16px rgba(255, 51, 0, 0.85);
  animation: updated-fire 1.15s ease-in-out infinite;
}

@keyframes updated-fire {
  0%,
  100% {
    color: #ff2200;
    text-shadow:
      0 0 6px #ff6a00,
      0 0 14px rgba(255, 40, 0, 0.8);
  }
  50% {
    color: #ffb000;
    text-shadow:
      0 0 10px #ff4d00,
      0 0 22px rgba(255, 80, 0, 0.95);
  }
}

.app-blurb {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-secondary);
}

.app-updated {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
}

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