/* ============================================================
   Holt Meyers - Interactive Resume (FileFactory design system)
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
em { font-style: normal; }
.text-emphasis {
  color: var(--fg-primary);
  font-weight: 500;
}
body {
  background: var(--bg-app);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
}

#root { min-height: 100vh; }

.page {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 64px;
  min-height: 100vh;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: background 400ms cubic-bezier(0.25, 0.4, 0.25, 1);
}

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  background: rgba(21, 21, 26, 0.85);
  border: 1px solid var(--border-default);
  border-radius: 9999px;
  backdrop-filter: blur(20px);
  position: sticky;
  top: 16px;
  z-index: 10;
  margin-bottom: 28px;
}

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; padding-left: 4px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #15151A;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent, #F97316);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; padding-top: 3px; }
.brand-name {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg-primary);
}
.brand-role {
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.brand-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: var(--fg-muted);
  cursor: help;
  position: relative;
  outline: none;
  transition: color 180ms;
}
.brand-info:hover, .brand-info:focus { color: var(--fg-primary); }
.brand-tip {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  width: 280px;
  background: #14141A;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.55);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 180ms, transform 180ms;
  z-index: 50;
  text-align: left;
}
.brand-tip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 16px;
  width: 9px;
  height: 9px;
  background: #14141A;
  border-left: 1px solid var(--border-default);
  border-top: 1px solid var(--border-default);
  transform: rotate(45deg);
}
.brand-info:hover .brand-tip,
.brand-info:focus .brand-tip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.brand-tip-eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}
.brand-tip-body {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg-primary);
  letter-spacing: 0;
  text-transform: none;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* ---------- How I think - mindset comparison ---------- */
.mindset {
  margin: 36px 0 44px;
}
.mindset-head {
  margin-bottom: 28px;
  max-width: 720px;
}
.mindset-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.mindset-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--fg-primary);
}
.mindset-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-secondary);
  margin: 0;
}

.mindset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .mindset-grid { grid-template-columns: 1fr; }
}

.mindset-col {
  position: relative;
  padding: 32px 24px 24px;
  border-radius: 16px;
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,0.015);
  display: flex;
  flex-direction: column;
}
.mindset-col-them {
  background: rgba(255,255,255,0.01);
  opacity: 0.92;
}
.mindset-col-me {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
}

.mindset-col-tag {
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(20,20,28,0.95);
  border: 1px solid var(--border-default);
  color: var(--fg-muted);
}
.mindset-col-tag-me {
  border-color: transparent;
}

.mflow {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mflow-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  position: relative;
  padding-bottom: 10px;
}
.mflow-row:last-child { padding-bottom: 0; }
.mflow-rail {
  --rail-color: rgba(255,255,255,0.08);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
}
.mflow-row:not(:last-child) .mflow-rail::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: -10px;
  left: 50%;
  width: 1px;
  background: var(--rail-color);
  transform: translateX(-0.5px);
}
.mflow-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  background: var(--bg-card);
  padding: 3px 6px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  position: relative;
  z-index: 1;
}
.mflow-body {
  padding: 8px 14px 12px;
  border-left: 2px solid rgba(255,255,255,0.06);
  border-radius: 0 8px 8px 0;
  background: rgba(255,255,255,0.02);
}
.mflow-body-me {
  background: rgba(255,255,255,0.035);
}
.mflow-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-primary);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.mflow-note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--fg-muted);
}

.mindset-list {
  list-style: none;
  padding: 16px 0 0;
  margin: auto 0 0;
  border-top: 1px dashed var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mindset-list li {
  font-size: 13px;
  color: var(--fg-secondary);
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.4;
}
.mindset-x {
  font-size: 13px;
  color: var(--fg-muted);
  opacity: 0.55;
  width: 12px;
  flex-shrink: 0;
}
.mindset-check {
  font-size: 13px;
  font-weight: 700;
  width: 12px;
  flex-shrink: 0;
}

.mindset-pull {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 18px 22px 18px 26px;
  border-left: 3px solid;
  background: rgba(12,12,18,0.85);
  border-radius: 0 10px 10px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-secondary);
}
.mindset-pull em {
  color: var(--fg-primary);
  font-weight: 500;
}
.mindset-pull-mark {
  font-size: 38px;
  line-height: 0.6;
  margin-top: 8px;
  flex-shrink: 0;
}

/* ---------- Career timeline strip (Hire) ---------- */
.career-strip {
  margin: 28px 0 36px;
  padding: 22px 24px 28px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-default);
  border-radius: 14px;
}
.career-strip-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.career-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: auto 28px auto;
  gap: 0 8px;
}
.career-axis {
  grid-row: 2;
  grid-column: 1 / -1;
  align-self: center;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--border-default) 0 6px, transparent 6px 10px);
}
.career-cell-top {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4px 12px;
  justify-content: flex-end;
}
.career-cell-dot {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.career-cell-bot {
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 4px 0;
}
.career-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.career-pin-year {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.career-pin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.career-pin-card { text-align: center; padding: 0 4px; }
.career-pin-title { font-size: 12px; font-weight: 600; color: var(--fg-primary); line-height: 1.2; }
.career-pin-sub { font-size: 10px; color: var(--fg-muted); margin-top: 4px; line-height: 1.3; }
.career-pin-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
/* career-track stays 7-col at all sizes; .career-strip overflow-x: auto handles scroll on mobile */

/* Mobile vertical list (replaces zigzag) */
.career-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border-default);
  margin-left: 8px;
}
.career-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0 14px 20px;
  position: relative;
}
.career-list-dot {
  position: absolute;
  left: -7px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.career-list-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.career-list-year {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.career-list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-primary);
}
.career-list-sub {
  font-size: 13px;
  color: var(--fg-muted);
  width: 100%;
}

/* ---------- Boarding pass (Contact) ---------- */
.bp {
  display: grid;
  grid-template-columns: 1fr 130px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border-default);
  border-radius: 14px;
  margin: 28px 0 24px;
  overflow: hidden;
  position: relative;
}
.bp::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 130px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--border-default) 0 4px, transparent 4px 8px);
}
.bp-main { padding: 22px 26px 20px; }
.bp-stub {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0,0,0,0.2);
}
.bp-eyebrow {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.bp-value { font-size: 18px; font-weight: 600; color: var(--fg-primary); letter-spacing: -0.01em; }
.bp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 18px;
}
.bp-row-meta { grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; margin-bottom: 0; }
.bp-meta { font-size: 12px; font-weight: 600; color: var(--fg-primary); }
.bp-route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px dashed var(--border-default);
  border-bottom: 1px dashed var(--border-default);
}
.bp-port-code {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}
.bp-port-name { font-size: 10px; color: var(--fg-muted); margin-top: 4px; letter-spacing: 0.04em; }
.bp-route-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.bp-route-line::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--border-default) 0 3px, transparent 3px 6px);
}
.bp-route-dot { width: 6px; height: 6px; border-radius: 50%; position: relative; z-index: 1; }
.bp-route-arrow {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--fg-secondary);
  background: rgba(0,0,0,0.4);
  padding: 0 8px;
}
.bp-stub-eyebrow {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.bp-stub-num { font-size: 22px; font-weight: 600; color: var(--fg-primary); margin-bottom: 14px; }
.bp-stub-bars { display: flex; align-items: end; gap: 2px; height: 32px; }
.bp-stub-bar { display: inline-block; height: 100%; background: var(--fg-primary); opacity: 0.85; }
@media (max-width: 720px) {
  .bp { grid-template-columns: 1fr; }
  .bp::before { display: none; }
  .bp-stub { border-top: 1px dashed var(--border-default); }
}
@media (max-width: 560px) {
  .bp-row-meta { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bp-value { font-size: 15px; }
  .big-link { padding: 14px 12px; gap: 12px; }
  .big-link-handle { font-size: 13px; }
  .copy-btn { width: 28px; height: 28px; }
}

/* ---------- Hamburger / mobile nav ---------- */
.hamburger {
  display: none;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.ham-icon { display: flex; flex-direction: column; gap: 4px; width: 16px; }
.ham-icon span { display: block; height: 2px; background: var(--fg-primary); border-radius: 2px; transition: transform 200ms, opacity 200ms; }
.ham-icon.ham-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ham-icon.ham-open span:nth-child(2) { opacity: 0; }
.ham-icon.ham-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(10,10,13,0.96);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 80px 24px 40px;
  animation: fadeIn 180ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.mobile-nav-item {
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 16px;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 150ms, color 150ms;
}
.mobile-nav-item.is-active { color: var(--fg-primary); background: rgba(255,255,255,0.05); border-color: var(--border-default); }
.mobile-nav-github { margin-top: 8px; border-color: var(--border-default) !important; }

/* header hamburger mode handled by 820px block below */

.pills {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default);
  padding: 4px;
  border-radius: 9999px;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

.pill {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--fg-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 150ms, background 200ms;
  white-space: nowrap;
}
.pill:hover { color: var(--fg-primary); }
.pill.is-active {
  color: #0a0a0d;
  font-weight: 600;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 13px;
  color: #0a0a0d !important;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 200ms, box-shadow 200ms;
}
.cta:hover { transform: translateY(-1px); text-decoration: none; }
.cta-outline {
  background: transparent !important;
  box-shadow: none !important;
  border: 1.5px solid var(--accent);
  color: var(--accent) !important;
}
.cta-outline:hover { background: rgba(255,255,255,0.05) !important; }

@media (max-width: 1100px) {
  .header { gap: 14px; padding: 12px 14px; }
  .brand-role { display: none; }
  .pill { padding: 8px 12px; font-size: 12px; }
  .cta { padding: 8px 14px; font-size: 12px; }
  .terminal-wrap { padding-left: 64px; padding-right: 56px; }
  .foot { padding-left: 64px; padding-right: 56px; }
}
@media (max-width: 820px) {
  .header { flex-wrap: nowrap; border-radius: 14px; padding: 12px 14px; gap: 12px; }
  .brand { flex: 1; padding: 0; }
  .brand-mark { display: none; }
  .brand-name { white-space: nowrap; }
  .header-github { display: none !important; }
  .pills { display: none; }
  .hamburger { display: flex; }
  .subtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%); mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%); }
  .subtabs::-webkit-scrollbar { display: none; }
  .career-strip { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .career-track { min-width: 680px; grid-template-columns: repeat(7, 1fr); }
  .career-axis { display: block; }
}

/* ---------- Panel ---------- */
.panel {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  padding: 56px 48px 72px 48px;
  margin-bottom: 32px;
  margin-left: 96px;
  margin-right: 88px;
  box-shadow: var(--shadow-lg);
  min-height: 540px;
}
@media (max-width: 1100px) {
  .panel { padding: 48px 36px 60px 36px; margin-left: 64px; margin-right: 56px; }
}
@media (max-width: 900px) {
  .panel { padding: 36px 24px 48px 24px; margin-left: 0; margin-right: 0; }
}

/* ---------- Type ---------- */
.display {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 12px 0 24px;
  color: var(--fg-primary);
}
.heading-break { display: block; }
@media (max-width: 820px) {
  .heading-break { display: none; }
}


.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-secondary);
  max-width: 60ch;
  margin: 0 0 28px;
  text-wrap: pretty;
}

.lead-typed { position: relative; text-wrap: normal; }
.lead-ghost {
  visibility: hidden;
  display: block;
  pointer-events: none;
}
.lead-typed-text {
  position: absolute;
  inset: 0;
  display: block;
}

.overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sub-h {
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 16px;
  color: var(--fg-primary);
}

.caret-text {
  display: inline;
  animation: blink 1s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.about-grid { grid-template-columns: 1.5fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .about-grid { grid-template-columns: 1fr; }
  .panel { padding: 32px 24px; }
  .terminal-wrap { padding-left: 24px; padding-right: 24px; }
  .foot { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 560px) {
  .terminal-wrap { display: none; }
  .terminal-hint { display: none; }
  .panel { padding: 24px 16px; margin-left: 0 !important; margin-right: 0 !important; }
  .page { padding-left: 12px; padding-right: 12px; }
  .origin-url { font-size: 13px; }
  .origin-card { overflow: visible; }
  .about-grid > * { min-width: 0; }
  .tprompt-host { display: none; }
  .terminal-body { padding: 14px 14px; font-size: 12px; min-height: 200px; }
  .tcell { font-size: 12px; gap: 6px; }
  .tcmd { min-width: 48px; }
  .tdesc { font-size: 11px; }
  .tline-input { font-size: 12px; }
  .terminal-input, .terminal-measure { font-size: 12px; }
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; transition: opacity 400ms ease, transform 400ms ease; }
.chips.chips-out { opacity: 0; transform: translateY(-6px); }
.chips.chips-in  { opacity: 0; transform: translateY(6px); }
.chip {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-default);
  color: var(--fg-secondary);
}

/* ---------- Origin card (replaces card-note on About) ---------- */
.origin-card-out { opacity: 0; transform: rotate(-0.4deg) translateY(-8px); transition: opacity 400ms ease, transform 400ms ease; }
.origin-card-in  { opacity: 0; transform: rotate(-0.4deg) translateY(8px);  transition: none; }
.origin-card { transition: opacity 200ms ease; }

@keyframes originItemIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.origin-entering .origin-panel.is-active .origin-meta,
.origin-entering .origin-panel.is-active .origin-url,
.origin-entering .origin-panel.is-active .origin-body p,
.origin-entering .origin-panel.is-active .origin-game-link {
  animation: originItemIn 260ms ease both;
}
.origin-entering .origin-panel.is-active .origin-meta        { animation-delay: 100ms; }
.origin-entering .origin-panel.is-active .origin-url         { animation-delay: 180ms; }
.origin-entering .origin-panel.is-active .origin-body p:first-child { animation-delay: 260ms; }
.origin-entering .origin-panel.is-active .origin-body p:last-child  { animation-delay: 340ms; }
.origin-entering .origin-panel.is-active .origin-game-link   { animation-delay: 420ms; }
.origin-panels { display: grid; }
.origin-panel { grid-row: 1; grid-column: 1; visibility: hidden; pointer-events: none; }
.origin-panel.is-active { visibility: visible; pointer-events: auto; }
.origin-card {
  position: relative;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 27px,
      rgba(255,255,255,0.04) 27px,
      rgba(255,255,255,0.04) 28px
    ),
    rgba(245, 235, 215, 0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  padding: 36px 32px 28px;
  margin-top: 28px;
  transform: rotate(-0.4deg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 24px 40px -28px rgba(0,0,0,0.7);
}
.origin-card::before {
  /* punched holes on the left edge - looks like a notebook */
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 6px;
  background-image: radial-gradient(circle, var(--bg-app) 2.5px, transparent 3px);
  background-size: 6px 32px;
  background-position: 0 14px;
  background-repeat: repeat-y;
  opacity: 0.7;
}
.origin-tape {
  position: absolute;
  width: 64px;
  height: 18px;
  background: rgba(255, 215, 130, 0.18);
  border: 1px solid rgba(255, 215, 130, 0.22);
  top: -8px;
  transform: rotate(-3deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.origin-tape-l { left: 18%; transform: rotate(-3deg); }
.origin-tape-r { right: 14%; transform: rotate(2.5deg); }
.origin-stamp {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 78px;
  height: 78px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transform: rotate(8deg);
  opacity: 0.85;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
}
.origin-stamp-line { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.origin-stamp-year { font-family: 'Merriweather', Georgia, serif; font-size: 22px; font-weight: 700; line-height: 1; margin-top: 2px; }
.origin-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  text-transform: uppercase;
  padding-left: 24px;
  padding-right: 24px;
  margin-bottom: 10px;
}
.origin-meta-label { color: var(--accent); font-weight: 700; }
.origin-meta-dot { opacity: 0.5; }
.origin-url {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  padding-left: 24px;
  padding-right: 24px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.origin-url-proto { color: var(--fg-muted); }
.origin-url-host { color: var(--fg-primary); font-weight: 600; }
.origin-url-tld { color: var(--fg-secondary); }
.origin-url-cursor {
  color: var(--accent);
  margin-left: 4px;
}
.origin-meta-loc { color: var(--fg-muted); }
.origin-body {
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-secondary);
}
.origin-body p { margin: 0; }
.origin-body p + p { margin-top: 0.75em; }
.origin-game-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0 24px;
  padding: 9px 12px;
  border: 1px solid;
  border-radius: 2px;
  background: rgba(249, 115, 22, 0.08);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.origin-game-link:hover {
  transform: translateY(-1px);
  background: rgba(249, 115, 22, 0.14);
  text-decoration: none;
}
.origin-game-link-kicker {
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.origin-game-link-title {
  color: var(--fg-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.origin-game-link-arrow { font-size: 14px; }
/* ---------- Notepaper (taped paper note, reusable) ---------- */
.notepad {
  position: relative;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 27px,
      rgba(255,255,255,0.04) 27px,
      rgba(255,255,255,0.04) 28px
    ),
    rgba(245, 235, 215, 0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  padding: 32px 36px 28px 44px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 24px 40px -28px rgba(0,0,0,0.7);
}
.notepad-tilt-l { transform: rotate(-0.5deg); }
.notepad-tilt-r { transform: rotate(0.4deg); }
.notepad::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 6px;
  background-image: radial-gradient(circle, var(--bg-app) 2.5px, transparent 3px);
  background-size: 6px 32px;
  background-position: 0 18px;
  background-repeat: repeat-y;
  opacity: 0.7;
}
.notepad-tape {
  position: absolute;
  width: 64px;
  height: 18px;
  background: rgba(255, 215, 130, 0.18);
  border: 1px solid rgba(255, 215, 130, 0.22);
  top: -8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  pointer-events: none;
}
.notepad-tape-l { left: 18%; transform: rotate(-3deg); }
.notepad-tape-r { right: 14%; transform: rotate(2.5deg); }
.notepad-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.notepad-eyebrow-rule {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
  max-width: 60px;
}
.notepad-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-primary);
  margin: 0;
}
.notepad-body em {
  color: var(--fg-primary);
  font-weight: 500;
}
.notepad-sig {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255,255,255,0.1);
}
.notepad-sig-mark {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.notepad-sig-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  line-height: 1.4;
}
.notepad-sig-meta span { display: block; }

/* ---------- Card note (still used elsewhere) ---------- */
.card-note {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 16px;
}
.card-note-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.card-note-body { font-size: 15px; line-height: 1.6; color: var(--fg-primary); }

/* ---------- Mascot ---------- */
.mascot-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: end;
  padding-right: 4%;
  padding-top: 10px;
  min-height: 380px;
}
.mascot-glow {
  position: absolute;
  inset: -10% -15% -10% 30%;
  filter: blur(28px);
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.mascot-img {
  display: block;
  max-width: 320px;
  max-height: 380px;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
  transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
}
.mascot-stage:hover .mascot-img {
  transform: perspective(1000px) rotateY(8deg) rotateX(-4deg) scale(1.03);
}
.mascot-bubble-wrap {
  position: absolute;
  top: 8%;
  right: calc(4% + 100px);
  z-index: 2;
}
.mascot-bubble {
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-primary);
  box-shadow: var(--shadow-md);
  max-width: 220px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  animation: bubblePop 360ms cubic-bezier(0.25, 0.4, 0.25, 1);
}
@keyframes bubblePop {
  from { transform: scale(0.85) translateY(4px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.bubble-caret {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--fg-primary);
  margin-left: 2px;
  animation: blink 1s steps(2, jump-none) infinite;
}

/* ---------- Subtabs ---------- */
.subtabs {
  display: flex;
  gap: 4px;
  margin: 24px 0 28px;
  border-bottom: 1px solid var(--border-default);
  flex-wrap: wrap;
}
.subtab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 150ms, border-color 150ms;
}
.subtab:hover { color: var(--fg-primary); }
.subtab.is-active { font-weight: 600; }

@media (max-width: 820px) {
  .subtabs {
    border-bottom: none;
    gap: 8px;
    margin: 20px 0 24px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .subtab {
    flex: 1;
    min-width: calc(50% - 4px);
    text-align: center;
    border: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    border-radius: 10px;
    margin-bottom: 0;
    padding: 10px 12px;
    font-size: 13px;
    background: rgba(255,255,255,0.03);
  }
  .subtab.is-active {
    background: rgba(255,255,255,0.07);
  }
}

.subpanel { animation: fadeUp 360ms cubic-bezier(0.25, 0.4, 0.25, 1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Stat ---------- */
.stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 20px 22px;
  transition: transform 250ms, border-color 250ms;
  position: relative;
}
.stat:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.18); }
.stat-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 250ms;
}
.stat:hover .stat-icon { opacity: 1; }
.stat-value {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-primary);
  margin-top: 8px;
}
.stat-sub { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }

/* ---------- Overview stats (redesigned) ---------- */
.ov { display: flex; flex-direction: column; gap: 24px; }
.ov-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: block;
}

.ov-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ov-hero-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 24px 24px 20px;
  position: relative;
  overflow: hidden;
}
.ov-hero-num {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.ov-plus { font-size: 28px; vertical-align: 6px; margin-left: 2px; opacity: 0.7; }
.ov-hero-sub {
  font-size: 13px;
  color: var(--fg-secondary);
  margin-top: 8px;
  margin-bottom: 18px;
}
.ov-spark-dates {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: ui-monospace, monospace;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.ov-hero-spark {
  display: block;
  width: 100%;
  height: 52px;
}
.ov-pv-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 3px;
  margin-bottom: 8px;
}
.ov-pv-cell {
  aspect-ratio: 1;
  border-radius: 1px;
}
.ov-pv-legend {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: ui-monospace, monospace;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* Ledger */
.ov-ledger {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 22px 24px;
}
.ov-ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-default);
  margin-bottom: 6px;
}
.ov-ledger-sub {
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.ov-ledger-rows { display: flex; flex-direction: column; }
.ov-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.ov-row:last-child { border-bottom: 0; }
.ov-row-name { font-size: 14px; font-weight: 600; color: var(--fg-primary); }
.ov-row-note { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }
.ov-row-bar {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.ov-row-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 900ms cubic-bezier(0.25, 0.4, 0.25, 1);
}
.ov-row-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ov-row-val {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: block;
  line-height: 1;
}
.ov-row-unit {
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: ui-monospace, monospace;
  margin-top: 4px;
  display: block;
}

/* Pull quote (replaces .ov-note) */
.ov-quote {
  position: relative;
  margin: 0;
  padding: 32px 40px 28px 80px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-default);
  border-radius: 14px;
}
.ov-quote-mark {
  position: absolute;
  left: 22px;
  top: 6px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 96px;
  line-height: 1;
  font-weight: 500;
  user-select: none;
}
.ov-quote-body {
  margin: 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--fg-primary);
  letter-spacing: -0.005em;
}
.ov-quote-cite {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
}
.ov-quote-rule {
  display: inline-block;
  width: 24px;
  height: 1px;
}
.ov-quote-name {
  color: var(--fg-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ov-quote-role {
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .ov-quote { padding: 28px 22px 22px 22px; }
  .ov-quote-mark { position: static; display: block; font-size: 64px; margin-bottom: -20px; }
  .ov-quote-body { font-size: 19px; }
}


@media (max-width: 900px) {
  .ov-hero { grid-template-columns: 1fr; }
  .ov-row { grid-template-columns: 1fr; gap: 8px; }
  .ov-row-num { text-align: left; }
  .ov-hero-num { font-size: 40px; }
}

/* ---------- Bars (migration) ---------- */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar { display: grid; grid-template-columns: 200px 1fr 130px; align-items: center; gap: 18px; }
.bar-label { display: flex; justify-content: space-between; font-size: 13px; }
.bar-label > span:first-child { font-family: var(--font-mono); color: var(--fg-primary); font-weight: 600; }
.bar-files { color: var(--fg-muted); font-size: 11px; }
.bar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 600ms cubic-bezier(0.25, 0.4, 0.25, 1);
}
.bar-value { font-family: var(--font-mono); font-size: 12px; color: var(--fg-secondary); text-align: right; }

@media (max-width: 700px) {
  .bar { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Mock ---------- */
.mock {
  background: #0E0E12;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #15151A;
  border-bottom: 1px solid var(--border-default);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mock-title { font-size: 12px; color: var(--fg-muted); margin-left: 8px; }
.mock-body { padding: 22px; }

.drop {
  border: 2px dashed var(--accent);
  border-radius: 12px;
  padding: 32px 16px;
  text-align: center;
  margin-bottom: 16px;
  background: var(--accent-soft);
}
.drop-icon { font-size: 42px; line-height: 1; }
.drop-headline { font-size: 16px; font-weight: 600; color: var(--fg-primary); margin-top: 8px; }
.drop-sub { font-size: 12px; color: var(--fg-muted); margin-top: 4px; }

.file-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
}
.file-name { font-size: 13px; font-weight: 500; color: var(--fg-primary); }
.file-meta { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }

/* ---------- Inbox ---------- */
.inbox { padding: 0; }
.thread {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-default);
}
.thread:last-child { border-bottom: 0; }
.thread.unread .thread-name { font-weight: 700; }
.thread.unread { background: rgba(255,255,255,0.02); }
.thread-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.thread-name { font-size: 13px; color: var(--fg-primary); }
.thread-subj { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.thread-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--fg-muted); }
.dot-unread { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Ticks ---------- */
.ticks {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.ticks li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.55;
  border-bottom: 1px solid var(--border-default);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--accent);
  font-weight: 700;
}
.ticks code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255,255,255,0.05);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--fg-primary);
}

/* ---------- Stack rows ---------- */
.stack-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.stack-row {
  display: grid;
  grid-template-columns: 1fr 280px 80px;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-default);
}
.stack-bar {
  order: 3;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  width: auto;
}
.stack-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: 9999px;
  transition: width 600ms cubic-bezier(0.25, 0.4, 0.25, 1);
}
.stack-row .stack-key { order: 1; font-family: var(--font-mono); font-size: 13px; color: var(--fg-primary); }
.stack-row .stack-val { order: 4; font-family: var(--font-mono); font-size: 14px; font-weight: 600; text-align: right; }
@media (max-width: 640px) {
  .stack-row { grid-template-columns: 1fr auto; gap: 12px; }
  .stack-row .stack-bar { display: none; }
}

/* ---------- Hire cards ---------- */
.hire-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 28px;
  transition: transform 250ms cubic-bezier(0.25, 0.4, 0.25, 1), border-color 250ms;
}
.hire-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.16); }
.hire-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hire-card-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  margin: 8px 0 12px;
  color: var(--fg-primary);
  letter-spacing: -0.01em;
}
.hire-card p { font-size: 14px; line-height: 1.65; color: var(--fg-secondary); }

.kbd-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-default);
  color: var(--fg-primary);
}

.velocity-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  margin-top: 16px;
}
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.vbar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 6px;
  transition: height 600ms cubic-bezier(0.25, 0.4, 0.25, 1);
}
.vbar-lbl { font-size: 10px; color: var(--fg-muted); font-family: var(--font-mono); }


/* ============================================================
   Stats charts (resume-stats.jsx)
   ============================================================ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 22px 12px;
  margin: 28px 0 32px;
}
.stat-strip-item {
  text-align: center;
  padding: 4px 12px;
  border-right: 1px solid var(--border-default);
}
.stat-strip-item:last-child { border-right: 0; }
.stat-strip-num {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-strip-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
}
@media (max-width: 800px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 16px; }
  .stat-strip-item { border-right: 0; border-bottom: 1px solid var(--border-default); padding-bottom: 16px; }
  .stat-strip-item:nth-last-child(-n+2) { border-bottom: 0; }
  .stat-strip-num { font-size: 30px; }
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}
.chart-full { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .charts-grid { grid-template-columns: 1fr; }
  .mascot-stage { display: none; }
  .mindset-grid { gap: 40px; }
}
@media (max-width: 820px) {
  .chart-card { overflow: hidden; }
  .chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chart-svg { width: 680px; height: auto; overflow: hidden; }
  /* hourly/weekday are reduced on mobile - no min-width needed */
  .bars-hourly { min-width: 0; }
  .bars-weekday { min-width: 0; }
}

.chart-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 20px 22px 18px;
}
.chart-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.chart-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-primary);
  letter-spacing: -0.01em;
}
.chart-card-sub {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.chart-wrap { display: flex; flex-direction: column; gap: 10px; position: relative; }

.chart-tooltip {
  position: absolute;
  background: rgba(14,14,20,0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 12px;
  pointer-events: none;
  transform: translateX(-50%) translateY(calc(-100% - 10px));
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.chart-tooltip-title { font-size: 12px; font-weight: 600; color: var(--fg-primary); margin-bottom: 3px; }
.chart-tooltip-body { font-size: 11px; color: var(--fg-muted); line-height: 1.4; }
.chart-svg { width: 100%; display: block; overflow: visible; }

/* Timeline gap tooltip (resume-stats.jsx) */
.tl-tooltip {
  position: absolute;
  background: rgba(14,14,20,0.94);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 12px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.tl-tt-title { font-size: 12px; font-weight: 600; color: var(--fg-primary); margin-bottom: 3px; }
.tl-tt-sub { font-size: 11px; color: var(--fg-muted); line-height: 1.4; }

.chart-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 4px;
}
.lg-item { display: inline-flex; align-items: center; gap: 6px; }
.lg-item.lg-quiet { color: var(--fg-secondary); }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lg-line { width: 18px; height: 2px; border-radius: 2px; display: inline-block; }

/* coding intensity chart */
.intensity-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-default);
}
.intensity-stat { flex: 1; text-align: center; }
.intensity-stat-num { font-size: 18px; font-weight: 700; line-height: 1; margin-bottom: 2px; }
.intensity-stat-lbl { font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.intensity-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.intensity-row { display: flex; align-items: center; gap: 10px; }
.intensity-lbl { font-size: 12px; color: var(--fg-secondary); width: 56px; flex-shrink: 0; text-align: right; font-weight: 500; }
.intensity-note { font-size: 10px; color: var(--fg-muted); display: block; font-weight: 400; }
.intensity-track { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.intensity-fill { height: 100%; border-radius: 4px; transition: width 600ms cubic-bezier(0.25, 0.4, 0.25, 1); }
.intensity-val { font-size: 12px; color: var(--fg-secondary); width: 28px; text-align: right; font-variant-numeric: tabular-nums; }

/* vertical bar chart (monthly / weekday / hourly) */
.bars-vertical {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 200px;
  padding-bottom: 4px;
}
.bars-vertical.bars-hourly { gap: 3px; height: 180px; }
.bars-vertical.bars-weekday { gap: 10px; height: 200px; }

.bv-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  height: 100%;
  min-width: 0;
}
.bv-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  color: var(--fg-secondary);
  text-align: center;
  height: 14px;
  white-space: nowrap;
}
.bv-track {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  background: rgba(255,255,255,0.025);
  border-radius: 4px 4px 0 0;
  overflow: visible;
  position: relative;
  min-height: 0;
}
.bv-fill {
  width: 100%;
  min-height: 0;
  transition: height 800ms cubic-bezier(0.25, 0.4, 0.25, 1);
}
.bv-fill-platform { border-radius: 4px 4px 0 0; }
.bv-fill-workspace { border-radius: 0; }
.bv-fill:only-child { border-radius: 4px 4px 0 0; }
.bv-track > .bv-fill:first-child { border-radius: 4px 4px 0 0; }
.bv-track > .bv-fill:last-child:not(:only-child) { border-radius: 0; }

/* Side-by-side grouped bars (MonthlyChart, WeekdayChart) */
.bv-duo {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 2px;
  background: rgba(255,255,255,0.025);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  min-height: 0;
}
.bv-bar {
  flex: 1;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  transition: height 800ms cubic-bezier(0.25, 0.4, 0.25, 1);
}

.bv-peak {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.bv-lbl {
  font-size: 10px;
  text-align: center;
  color: var(--fg-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  height: 14px;
}
.bv-lbl-mini { font-size: 9px; }
.bars-hourly .bv-lbl-mini:nth-child(odd) { /* keep all visible */ }
.bars-hourly .bv-col:nth-child(odd) .bv-lbl-mini { opacity: 0.45; }

/* ---------- Big link (contact) ---------- */
.big-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  margin-bottom: 12px;
  text-decoration: none !important;
  background: rgba(255,255,255,0.02);
  transition: transform 200ms, background 200ms;
  position: relative;
}
.copy-btn {
  margin-left: auto;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms, color 150ms, border-color 150ms;
  flex-shrink: 0;
}
.copy-btn:hover { background: rgba(255,255,255,0.1); color: var(--fg-primary); }
.copy-btn.copied { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.4); color: #10B981; }
.big-link:hover { transform: translateX(4px); background: rgba(255,255,255,0.04); }
.big-link-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #0a0a0d;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.big-link-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}
.big-link-handle {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--fg-primary);
  margin-top: 2px;
}

.contact-real-holt {
  align-self: end;
  justify-self: center;
  margin: 56px 4% 28px 0;
  width: min(272px, 100%);
  position: relative;
}
.contact-real-holt-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--contact-accent, #F97316) 55%, transparent);
  box-shadow: 0 28px 70px rgba(0,0,0,0.44), 0 0 36px color-mix(in srgb, var(--contact-accent, #F97316) 18%, transparent);
  transform: rotate(3deg);
  transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1), border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}
.contact-real-holt:hover .contact-real-holt-photo {
  border-color: color-mix(in srgb, var(--contact-accent, #F97316) 85%, transparent);
  box-shadow: 0 34px 84px rgba(0,0,0,0.52), 0 0 54px color-mix(in srgb, var(--contact-accent, #F97316) 30%, transparent);
  filter: saturate(1.08) contrast(1.03);
  transform: rotate(6deg) translateY(-6px) scale(1.025);
}
.contact-real-holt-note {
  font-family: var(--font-handwriting);
  font-size: clamp(17px, 1.785vw, 24px);
  line-height: 1.35;
  color: #FDBA74;
  text-shadow: 0 8px 24px rgba(249,115,22,0.24);
  transform: rotate(2deg) translate(16px, -4px);
  margin-top: 22px;
  margin-left: 8px;
}

@media (max-width: 900px) {
  .contact-real-holt {
    align-self: center;
    margin: 36px auto 8px;
    width: min(238px, 90%);
  }
  .contact-real-holt-note {
    text-align: center;
    transform: rotate(2deg) translateY(-2px);
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-real-holt-photo {
    transition: none;
  }
  .contact-real-holt:hover .contact-real-holt-photo {
    filter: none;
    transform: rotate(6deg);
  }
}

/* ---------- Terminal ---------- */
.terminal-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  padding-left: 96px;
  padding-right: 88px;
}
.terminal-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.terminal-hint { font-size: 12px; color: var(--fg-muted); font-family: var(--font-mono); }
.terminal-hint code {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  margin: 0 2px;
}
.terminal {
  background: #0a0a0d;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  cursor: text;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #15151A;
  border-bottom: 1px solid var(--border-default);
}
.terminal-title { font-size: 11px; color: var(--fg-muted); margin-left: 8px; }
.terminal-body {
  padding: 18px 22px;
  min-height: 180px;
  overflow-x: hidden;
  font-size: 13px;
  line-height: 1.7;
}
.terminal-body::-webkit-scrollbar { width: 8px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.28);
  background-clip: content-box;
  border: 2px solid transparent;
}
.tline { white-space: pre-wrap; overflow-wrap: anywhere; }
.tline-cmd { display: flex; flex-wrap: nowrap; align-items: baseline; color: var(--fg-primary); white-space: normal; }
.tline-out { color: var(--fg-primary); }
.tline-dim { color: var(--fg-secondary); }
.tprompt-host { flex-shrink: 0; }
.tline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 18px;
  padding: 4px 0 6px;
}
@media (max-width: 820px) {
  .terminal-body { min-height: 240px; }
}
@media (max-width: 720px) {
  .tline-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tline-grid { grid-template-columns: 1fr; }
  .tcell { gap: 6px; }
  .tdesc { white-space: normal; overflow: visible; text-overflow: clip; }
}
.tcell {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  min-width: 0;
}
.tcmd { font-weight: 600; flex-shrink: 0; min-width: 52px; }
.tdesc { color: var(--fg-secondary); font-size: 12px; overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tline-err { color: #f87171; }
.tline-suggest { color: var(--fg-muted); margin: 4px 0 2px; }
.tsuggest-btn {
  appearance: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tsuggest-btn:hover { opacity: 0.8; }
.tline-input { display: flex; align-items: center; }
.terminal-input-wrap {
  position: relative;
  flex: 1;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
}
.terminal-measure {
  visibility: hidden;
  white-space: pre;
  font-family: var(--font-mono);
  font-size: 13px;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
.terminal-input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--fg-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  flex: 1;
  width: 100%;
  padding: 0;
  margin: 0;
  caret-color: transparent;
}
.caret {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 14px;
  pointer-events: none;
  animation: blink 1s steps(2, jump-none) infinite;
}

/* ---------- Footer ---------- */
.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-muted);
  padding: 28px 88px 10px 96px;
}
.next-page-wrap {
  display: flex;
  justify-content: flex-end;
  padding-top: 40px;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.next-page-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.next-page-teaser {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
}
.next-page-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--np-accent, currentColor);
  transition: opacity 150ms;
}
.next-page-link:hover .next-page-label { opacity: 0.75; }
.next-page-arrow { display: inline-block; transition: transform 150ms; }
.next-page-link:hover .next-page-arrow { transform: translateX(3px); }

.foot-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.foot-nav-item {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: color 150ms, background 150ms;
}
.foot-nav-item:hover { color: var(--fg-primary); background: rgba(255,255,255,0.05); }
.foot-nav-item.is-active { color: var(--fg-primary); }

.foot-game-attract {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #FDBA74;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 180ms;
}
.foot-game-attract:hover {
  color: #FDBA74;
  text-decoration: none;
  opacity: 1;
}
.foot-game-attract:focus-visible {
  outline: 2px solid #F97316;
  outline-offset: 3px;
  border-radius: 4px;
}
.foot-game-track {
  position: relative;
  width: 64px;
  height: 30px;
  flex-shrink: 0;
}
.foot-game-runner {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 30px;
  animation: footGameDrift 3s steps(8, end) infinite alternate;
  will-change: transform;
}
/* Shared sprite base */
.foot-game-sprite {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  background: transparent;
  transform: scale(2);
  transform-origin: 0 0;
  image-rendering: pixelated;
}
/* Frame A - legs spread out */
.foot-sprite-a {
  box-shadow:
    8px 0 #F97316,    10px 0 #F97316,
    6px 2px #F97316,  8px 2px #FDBA74,  10px 2px #FDBA74,  12px 2px #F97316,
    4px 4px #F97316,  6px 4px #EA580C,  8px 4px #EA580C,   10px 4px #EA580C,  12px 4px #EA580C,  14px 4px #F97316,
    2px 6px #F97316,  4px 6px #EA580C,  6px 6px #431407,   8px 6px #EA580C,   10px 6px #EA580C,  12px 6px #431407,  14px 6px #EA580C,  16px 6px #F97316,
    0 8px #F97316,    2px 8px #EA580C,  4px 8px #EA580C,   6px 8px #EA580C,   8px 8px #F97316,   10px 8px #F97316,  12px 8px #EA580C,  14px 8px #EA580C,  16px 8px #EA580C,  18px 8px #F97316,
    2px 10px #F97316, 6px 10px #F97316, 12px 10px #F97316, 16px 10px #F97316,
    4px 12px #F97316, 14px 12px #F97316;
  animation: footWalkA 0.9s steps(1) infinite;
}
/* Frame B - legs tucked in */
.foot-sprite-b {
  box-shadow:
    8px 0 #F97316,    10px 0 #F97316,
    6px 2px #F97316,  8px 2px #FDBA74,  10px 2px #FDBA74,  12px 2px #F97316,
    4px 4px #F97316,  6px 4px #EA580C,  8px 4px #EA580C,   10px 4px #EA580C,  12px 4px #EA580C,  14px 4px #F97316,
    2px 6px #F97316,  4px 6px #EA580C,  6px 6px #431407,   8px 6px #EA580C,   10px 6px #EA580C,  12px 6px #431407,  14px 6px #EA580C,  16px 6px #F97316,
    0 8px #F97316,    2px 8px #EA580C,  4px 8px #EA580C,   6px 8px #EA580C,   8px 8px #F97316,   10px 8px #F97316,  12px 8px #EA580C,  14px 8px #EA580C,  16px 8px #EA580C,  18px 8px #F97316,
    4px 10px #F97316, 6px 10px #F97316, 12px 10px #F97316, 14px 10px #F97316,
    6px 12px #F97316, 12px 12px #F97316;
  animation: footWalkB 0.9s steps(1) infinite;
}
@keyframes footWalkA {
  0%, 49.9% { opacity: 1; }
  50%, 100%  { opacity: 0; }
}
@keyframes footWalkB {
  0%, 49.9% { opacity: 0; }
  50%, 100%  { opacity: 1; }
}
.foot-game-copy {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  color: #FDBA74;
  text-transform: uppercase;
  white-space: nowrap;
}
.foot-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.foot-sep { opacity: 0.4; }

.foot-tweaks-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--tw-accent, #F97316);
  background: transparent;
  color: var(--tw-accent, #F97316);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: inherit;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 160ms, transform 160ms;
  margin-top: 8px;
}
.foot-tweaks-btn:hover { opacity: 1; transform: translateY(-1px); }

/* Build receipt pill + tooltip */
.foot-build-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.foot-build-label {
  cursor: default;
  color: var(--accent);
  opacity: 0.7;
  transition: opacity 150ms;
  letter-spacing: 0.01em;
}
.foot-build-pill:hover .foot-build-label { opacity: 1; }
.foot-build-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 280px;
  background: #1c1c22;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms, transform 180ms;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  z-index: 20;
}
.foot-build-pill:hover .foot-build-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fbt-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  opacity: 0.7;
}
.fbt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.5;
}
.fbt-row-total .fbt-key {
  color: var(--fg-primary);
  font-weight: 500;
}
.fbt-key {
  color: var(--fg-muted);
  flex-shrink: 0;
}
.fbt-val {
  color: var(--fg-primary);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.fbt-val-accent {
  color: var(--accent);
}
.fbt-divider {
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 2px 0;
}
.fbt-row-note {
  font-size: 11px;
  color: var(--fg-muted);
  opacity: 0.7;
  justify-content: center;
}

@keyframes footGameDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(24px, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .foot-game-attract {
    transition: none;
  }
  .foot-game-attract:hover {
    transform: none;
  }
  .foot-game-runner {
    animation: none;
    transform: translate3d(12px, 0, 0);
  }
}

/* ---------- Konami overlay ---------- */
.konami {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 280ms;
  cursor: pointer;
  padding: 24px;
}
.konami-card {
  position: relative;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,138,61,0.07), transparent 55%),
    linear-gradient(180deg, #14141c, #0d0d14);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0;
  max-width: 700px;
  width: 100%;
  cursor: default;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: pop 400ms cubic-bezier(0.25, 0.4, 0.25, 1);
  overflow: hidden;
}
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.konami-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  opacity: 0.6;
  border-radius: 20px;
}

.konami-grid {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 36px 40px 32px 16px;
  align-items: center;
}
@media (max-width: 640px) {
  .konami-grid { grid-template-columns: 1fr; padding: 28px; gap: 16px; }
}

.konami-mascot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.konami-eyebrow-l {
  position: relative;
  z-index: 2;
  align-self: center;
}
.konami-mascot-glow {
  position: absolute;
  inset: -20%;
  filter: blur(24px);
  z-index: 0;
  animation: float 5s ease-in-out infinite;
}
.konami-mascot img {
  position: relative;
  width: 200px;
  height: auto;
  z-index: 1;
}

.konami-text { display: flex; flex-direction: column; gap: 14px; }
.konami-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px 5px 8px;
  border: 1px solid;
  border-radius: 4px;
  background: rgba(255,138,61,0.06);
}
.konami-blink {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: konamiBlink 1s steps(2, end) infinite;
  box-shadow: 0 0 8px currentColor;
}
@keyframes konamiBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.3; } }

.konami-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--fg-primary);
}
.konami-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-secondary);
  margin: 0;
}
.konami-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  color: var(--fg-primary);
}

.konami-keys {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.konami-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--fg-secondary);
  animation: keyPop 600ms cubic-bezier(0.25, 0.4, 0.25, 1) backwards;
}
@keyframes keyPop {
  0% { transform: translateY(-6px) scale(0.8); opacity: 0; }
  60% { transform: translateY(0) scale(1.08); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.konami-dismiss {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid;
  border-radius: 6px;
  cursor: pointer;
  transition: background 160ms;
}
.konami-dismiss:hover { background: rgba(255,138,61,0.08); }
.konami-dismiss-kbd {
  font-size: 9px;
  padding: 2px 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  color: var(--fg-muted);
}

/* ---------- HOLT ATTACK modal ---------- */
.game-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 36px);
  background:
    radial-gradient(circle at 50% 0%, rgba(249,115,22,0.16), transparent 48%),
    rgba(5,5,8,0.9);
  backdrop-filter: blur(18px);
}
.game-modal-shell {
  width: var(--game-frame-width, 600px);
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(249,115,22,0.08), rgba(249,115,22,0.015) 22%),
    #050508;
  border: 1px solid rgba(249,115,22,0.36);
  border-radius: 8px;
  box-shadow:
    0 36px 90px rgba(0,0,0,0.72),
    0 0 0 1px rgba(67,20,7,0.55) inset;
}
.game-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid rgba(249,115,22,0.24);
  background: rgba(10,10,13,0.86);
}
.game-modal-kicker {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.game-modal-title {
  margin-top: 3px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #FDBA74;
  text-shadow: 0 0 14px rgba(249,115,22,0.46);
}
.game-modal-close {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249,115,22,0.42);
  border-radius: 9999px;
  background: rgba(249,115,22,0.08);
  color: #FDBA74;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, transform 160ms;
}
.game-modal-close:hover {
  background: rgba(249,115,22,0.16);
  border-color: rgba(249,115,22,0.72);
  transform: translateY(-1px);
}
.game-modal-close:focus-visible {
  outline: 2px solid #FDBA74;
  outline-offset: 3px;
}
.game-modal-close svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.game-modal-stage {
  width: var(--game-frame-width, 600px);
  height: var(--game-frame-height, 800px);
  flex: 0 0 auto;
  background: #000;
}
.game-modal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
@media (max-width: 760px) {
  .game-modal-overlay { padding: 10px; }
  .game-modal-shell {
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
  .game-modal-title { font-size: 15px; }
  .game-modal-close {
    width: 48px;
    height: 48px;
  }
}

/* ---------- Mobile modal ---------- */
.mobile-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(10,10,14,0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mobile-modal {
  background: #15151A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 32px 28px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 32px 64px rgba(0,0,0,0.6);
}
.mobile-modal-emoji { font-size: 40px; margin-bottom: 16px; }
.mobile-modal-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-primary);
  margin: 0 0 24px;
}
.mobile-modal-btn {
  display: inline-block;
  background: var(--accent, #F97316);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  padding: 11px 40px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.mobile-modal-btn:hover { opacity: 0.85; }
