/* Games hub + game page mock (2026-10-26). Builds on the live site's styles.css
   (learn-page classes) and games.css; only new pieces live here. */

:root {
  --anxious: #D4A574;
  --numb: #7E9AA6;
  --angry: #C06C4D;
  --balanced: #7FA77F;
}

/* ---------------------------------------------------------------- hub */

.hub-hero { padding-top: 140px; padding-bottom: 40px; }
.hub-title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hub-title em { display: block; font-style: italic; }
.hub-lede { max-width: 600px; margin: 0; color: #8F9E8B; font-size: 18px; line-height: 1.6; }

.hub-states {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.hub-states a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(242, 240, 233, 0.14);
  border-radius: 999px;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hub-states a:hover { text-decoration: none; border-color: currentColor; }
.hub-states i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

.hub-wide { width: calc(100% - 48px); max-width: 1120px; margin: 0 auto; }

.state-block { padding-top: 72px; scroll-margin-top: 70px; }
.state-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.state-word {
  margin: 0 0 8px;
  color: var(--c);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.state-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
}
.state-head h2 em { font-style: italic; color: var(--c); }
.state-count { color: rgba(143, 158, 139, 0.6); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.25em; text-transform: uppercase; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 26px;
}
.game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.game-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 26px 0;
  background: radial-gradient(120% 80% at 50% 100%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%);
}
.game-phone {
  width: 162px;
  height: 351px;
  padding: 6px;
  border: 1px solid rgba(242, 240, 233, 0.16);
  border-radius: 26px;
  background: #0a1812;
}
.game-screen { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; }
.game-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  border-radius: 22px;
  background: #0a1812;
  text-align: center;
}
.game-soon b { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--cream); }
.game-soon span { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--c); }
.game-soon svg { width: 110px; height: 110px; }

.game-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: rgba(143, 158, 139, 0.75);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.game-meta .free { color: var(--cream); }
.game-meta .plus { color: var(--teal); }
.game-card h3 { margin: 2px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.15; }
.game-card .how { margin: 0; color: var(--c); font-family: var(--serif); font-style: italic; font-size: 16px; }
.game-card p.desc { margin: 2px 0 0; color: #C7CFC8; font-size: 14.5px; line-height: 1.6; }
.game-link {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.game-link a { color: var(--cream); border-bottom: 1px solid rgba(242, 240, 233, 0.3); }
.game-link a:hover { text-decoration: none; border-color: var(--cream); }
.game-link span { color: rgba(143, 158, 139, 0.55); }

.hub-promise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 96px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.hub-promise h3 { margin: 10px 0 8px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.hub-promise p { margin: 0; color: #C7CFC8; font-size: 15px; line-height: 1.65; }
.hub-promise .n { color: var(--teal); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.3em; }

/* ---------------------------------------------------------------- game page */

.follow {
  margin-top: 8px;
  padding: 30px 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: radial-gradient(90% 70% at 50% 100%, rgba(212, 165, 116, 0.10), transparent 70%), var(--panel);
}
.follow-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.follow-top h2 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.2; }
.follow-labels { position: relative; height: 16px; margin: 0 0 18px; }
.follow-labels span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; color: rgba(143,158,139,.8); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.25em; text-transform: uppercase; }
.follow-labels .out { color: var(--anxious); }
.follow-round { color: rgba(143, 158, 139, 0.7); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.25em; text-transform: uppercase; white-space: nowrap; }
.follow svg { display: block; width: 100%; height: auto; margin: 22px 0 8px; overflow: visible; }
.follow-cue { min-height: 76px; text-align: center; }
.follow-cue b {
  display: block;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  transition: opacity 0.6s ease;
}
.follow-cue span {
  display: block;
  margin-top: 6px;
  color: var(--anxious);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.follow-actions { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.btn {
  padding: 11px 22px;
  border: 1px solid rgba(242, 240, 233, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { border-color: var(--anxious); color: var(--anxious); }
.btn:focus-visible { outline: 2px solid var(--anxious); outline-offset: 3px; }
.follow-note { margin: 14px 0 0; color: rgba(143, 158, 139, 0.75); font-size: 13px; text-align: center; }

.feel { margin-top: 44px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; align-items: center; }
.feel .game-phone { width: 200px; height: 433px; }
.feel h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.2; }
.feel p { margin: 0 0 16px; color: #C7CFC8; font-size: 16px; line-height: 1.7; }
.taps { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 18px; padding: 0; list-style: none; }
.taps li { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 14px; color: #C7CFC8; font-size: 15px; }
.taps svg { width: 54px; height: 22px; overflow: visible; }
.feel .ver { color: rgba(143, 158, 139, 0.7); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; }

.study {
  margin-top: 44px;
  padding: 26px 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: var(--panel);
}
.study-label { margin: 0 0 12px; color: #8F9E8B; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; }
.study h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.25; }
.study p { margin: 0 0 12px; color: #C7CFC8; font-size: 15.5px; line-height: 1.7; }
.study dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 18px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; }
.study dt { color: #8F9E8B; font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; padding-top: 3px; }
.study dd { margin: 0; color: #C7CFC8; }
.evidence { display: inline-flex; gap: 4px; align-items: center; margin-right: 8px; vertical-align: 1px; }
.evidence i { width: 14px; height: 4px; border-radius: 2px; background: rgba(242, 240, 233, 0.14); }
.evidence i.on { background: var(--anxious); }

.more { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.more h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.more-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.more-list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: var(--panel);
  color: var(--cream);
}
.more-list a:hover { text-decoration: none; border-color: rgba(212, 165, 116, 0.5); }
.more-list b { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.more-list span { color: #8F9E8B; font-size: 13px; line-height: 1.5; }
.more-all { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream) !important; border-bottom: 1px solid rgba(242, 240, 233, 0.3); }

@media (min-width: 900px) { .learn-nav-links { display: flex; } }

/* ---------------------------------------------------------------- current and haul game pages */

.try {
  margin-top: 8px;
  padding: 30px 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--learn-state-color) 12%, transparent), transparent 70%), var(--panel);
}
.try .follow-top h2 { margin: 0; }
.try-stage { position: relative; margin: 20px 0 6px; }
#current-canvas {
  display: block;
  width: 100%;
  height: 340px;
  border-radius: 6px;
  touch-action: none;
  cursor: crosshair;
  background: radial-gradient(70% 60% at 50% 50%, rgba(127, 167, 127, 0.06), transparent 70%), #0a1812;
}
.feel-text { margin-top: 44px; }
.feel-text h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.2; }
.feel-text p { margin: 0 0 16px; color: #C7CFC8; font-size: 16px; line-height: 1.7; }
.feel-text .taps li { grid-template-columns: 14px minmax(0, 1fr); }
.feel-text .taps li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--learn-state-color); }

@media (max-width: 700px) {
  .try { padding: 24px 18px 22px; }
  #current-canvas { height: 300px; }
}

/* The Haul demo is contained by its page mount and sizes from that container. */
#haul-try {
  --haul-cream: #F2F0E9;
  --haul-line: rgba(242, 240, 233, 0.08);
  --haul-line2: rgba(242, 240, 233, 0.13);
  --haul-orange: #C06C4D;
  --haul-screen: #06110c;
  --haul-k: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 20px 0 6px;
}
#haul-try .haul-phone-box { position: relative; width: calc(210px * var(--haul-k)); height: calc(444px * var(--haul-k)); flex: none; }
#haul-try .haul-phone {
  position: absolute;
  top: 0;
  left: 0;
  width: 210px;
  height: 444px;
  transform: scale(var(--haul-k));
  transform-origin: 0 0;
  border: 1px solid var(--haul-line2);
  border-radius: 38px;
  padding: 7px;
  background: #0b1a13;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(242,240,233,.07);
}
#haul-try .haul-screen {
  position: relative;
  width: 196px;
  height: 430px;
  overflow: hidden;
  border-radius: 31px;
  background: var(--haul-screen);
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
#haul-try .haul-screen canvas { display: block; width: 196px; height: 430px; }
#haul-try .haul-island {
  position: absolute;
  z-index: 9;
  top: 9px;
  left: 50%;
  width: 62px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 11px;
  background: #030b07;
}
#haul-try .haul-hud { position: absolute; z-index: 5; inset: 0; pointer-events: none; transition: opacity 1.2s ease; }
#haul-try .haul-hud.gone { opacity: 0; }
#haul-try .haul-hbar { position: absolute; top: 31px; left: 12px; right: 12px; height: 1.5px; border-radius: 1px; background: rgba(242,240,233,.09); }
#haul-try .haul-hbar i { display: block; width: 0%; height: 100%; border-radius: 1px; background: linear-gradient(90deg,rgba(192,108,77,.55),var(--haul-orange)); }
#haul-try .haul-hback { position: absolute; top: 39px; left: 13px; color: rgba(242,240,233,.42); font-size: 13px; line-height: 1; }
#haul-try .haul-hphase { position: absolute; top: 41px; left: 0; right: 0; color: rgba(242,240,233,.66); font: 600 6.6px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing: .3em; text-align: center; transition: opacity .5s ease; }
#haul-try .haul-hphase.swap { opacity: 0; }
#haul-try .haul-hinstr { position: absolute; top: 54px; left: 0; right: 0; color: rgba(242,240,233,.55); font-family: var(--serif); font-size: 10.5px; font-style: italic; letter-spacing: .02em; text-align: center; transition: opacity 1.6s ease; }
#haul-try .haul-hinstr.gone { opacity: 0; }
#haul-try .haul-fin { position: absolute; z-index: 7; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 24px; background: #06110c; opacity: 0; pointer-events: none; }
#haul-try .haul-fin p { color: var(--haul-cream); font-family: var(--serif); font-size: 13.5px; line-height: 1.45; text-align: center; opacity: 0; transition: opacity 1.6s ease; }
#haul-try .haul-fin .haul-done { padding: 9px 22px; border-radius: 999px; background: var(--haul-orange); color: var(--haul-cream); font: 600 8px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing: .2em; text-transform: uppercase; opacity: 0; transition: opacity 1.6s ease .6s; }
#haul-try .haul-fin.show p,
#haul-try .haul-fin.show .haul-done { opacity: 1; }

@media (max-width: 700px) {
  .hub-hero { padding-top: 112px; }
  .hub-title { font-size: 40px; }
  .hub-lede { font-size: 16.5px; }
  .state-block { padding-top: 56px; }
  .state-head { grid-template-columns: 1fr; }
  .state-head h2 { font-size: 26px; }
  .game-grid { grid-template-columns: 1fr; gap: 14px; }
  .game-card { display: grid; grid-template-columns: 124px minmax(0, 1fr); }
  .game-stage { padding: 16px 0 16px 14px; background: none; align-items: center; }
  .game-phone { width: 110px; height: 238px; padding: 4px; border-radius: 18px; }
  .game-screen, .game-soon { border-radius: 15px; }
  .game-soon b { font-size: 15px; }
  .game-soon svg { width: 60px; height: 60px; }
  .game-body { padding: 16px 16px 16px 14px; gap: 6px; }
  .game-card h3 { font-size: 20px; }
  .game-card p.desc { font-size: 14px; }
  .follow { padding: 24px 20px 22px; }
  .follow-top { flex-direction: column; gap: 6px; }
  .follow-cue b { font-size: 28px; }
  .feel { grid-template-columns: 1fr; justify-items: center; }
  .feel > div:last-child { justify-self: stretch; }
  .study { padding: 22px 20px; }
  .study dl { grid-template-columns: 1fr; gap: 2px; }
  .study dd { margin-bottom: 10px; }
  .more-list { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
}
