/* THATONEGUY'S STUDIO. The page sits on the liquid field (js/field.js); content lives on calm, translucent panels,
   and its text decodes out of the field as it scrolls in (js/reveal.js, styles at the end). */

:root {
  --bg: #07080a;
  --ink: #edf0f5;
  --ink-2: #b7bfcb;
  --ink-3: #7f8896;
  --panel: rgba(9, 11, 15, 0.8);
  --panel-calm: rgba(11, 13, 18, 0.88);
  --line: rgba(160, 182, 214, 0.13);
  --line-2: rgba(160, 182, 214, 0.26);
  --accent: #7aa7ff;
  --accent-2: #b3ccff;
  --accent-ink: #050b18;
  --accent-soft: rgba(122, 167, 255, 0.12);
  --accent-glow: rgba(122, 167, 255, 0.38);
  --hfh: #eef1f6;
  --pact: #e3a94a;
  --f-display: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Neue', Impact, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 15px/1.65 var(--f-mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip:focus {
  transform: none;
}

/* ---- the field and its veil ---- */
#field {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
#field.on {
  opacity: 1;
}
.veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 35%, transparent 52%, rgba(3, 4, 6, 0.62) 100%),
    linear-gradient(180deg, rgba(3, 4, 6, 0.35), transparent 22%, transparent 78%, rgba(3, 4, 6, 0.45));
}

.topbar,
main,
.foot {
  position: relative;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- shared bits ---- */
.eyebrow {
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow i {
  font-style: normal;
  color: var(--ink-3);
  margin-inline: 0.2em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 5px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.16em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.02);
}
.status-live {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent-2);
}
.status-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px 11px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 700 13px/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn-vote {
  min-width: 132px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-vote:hover:not(:disabled) {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 28px -4px var(--accent-glow);
}
.btn-vote:disabled {
  cursor: default;
  background: transparent;
  border: 1px dashed var(--line-2);
  color: var(--ink-3);
}
.btn-vote.is-mine,
.btn-vote.is-mine:disabled {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-2);
}
.btn-vote.is-mine .btn-label::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 5px;
  margin: 0 10px 3px 0;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-soft);
}
.btn-ghost .arrow {
  transition: transform 0.2s var(--ease);
}
.btn-ghost:hover .arrow {
  transform: translate(2px, -2px);
}
.btn-note {
  font: 500 11px/1.3 var(--f-mono);
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

/* ---- top bar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(7, 8, 10, 0.92), rgba(7, 8, 10, 0.72));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.mark-bg {
  fill: #0b0e14;
  stroke: var(--line-2);
  stroke-width: 0.5;
}
.mark-one {
  fill: var(--ink);
}
.mark-cursor {
  fill: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.brand-name {
  font: 800 19px/1 var(--f-display);
  letter-spacing: 0.06em;
}
.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  padding: 10px 12px;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  border-radius: 2px;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

/* ---- hero ---- */
.hero {
  position: relative;
  padding-top: clamp(40px, 7vh, 80px);
  padding-bottom: clamp(36px, 6vh, 60px);
}
.prompt {
  color: var(--ink);
}
.wordmark {
  margin-top: 16px;
  font: 900 clamp(46px, 7.4vw, 108px)/0.88 var(--f-display);
  letter-spacing: 0.004em;
  color: var(--ink);
}
.wordmark span {
  color: var(--accent);
  text-shadow: 0 0 34px var(--accent-glow);
}
.lede {
  margin-top: clamp(18px, 3vh, 28px);
  max-width: 60ch;
  font: 400 clamp(16px, 1.7vw, 20px)/1.55 var(--f-mono);
  color: var(--ink);
}

/* ---- section heads ---- */
.sec-head {
  margin-bottom: clamp(24px, 4vh, 36px);
}
.sec-head h2 {
  margin-top: 14px;
  font: 800 clamp(34px, 4.8vw, 64px)/0.94 var(--f-display);
  letter-spacing: 0.005em;
  color: var(--ink);
  text-wrap: balance;
}
.sec-sub {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--ink-2);
}

/* ---- the games and the vote ---- */
.games {
  padding-bottom: clamp(64px, 10vh, 120px);
}
.duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: stretch;
}
.vs {
  position: relative;
  display: grid;
  place-items: center;
}
.vs::before {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-2) 25%, var(--line-2) 75%, transparent);
}
.vs span {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
  font: 800 18px/1 var(--f-display);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.game {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: border-color 0.3s, box-shadow 0.4s;
}
/* HUD corner brackets */
.game::before,
.game::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  pointer-events: none;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  border-style: solid;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.game::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}
.game::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}
.game:hover {
  border-color: var(--line-2);
}
.game:hover::before {
  border-color: var(--accent);
  transform: translate(-3px, -3px);
}
.game:hover::after {
  border-color: var(--accent);
  transform: translate(3px, 3px);
}
.game.is-mine {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 18px 60px -24px var(--accent-glow);
}
.game.is-mine::before,
.game.is-mine::after {
  border-color: var(--accent-2);
}

.game-art {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
  background: #000;
}
.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s;
}
.game:hover .game-art img {
  transform: scale(1.025);
}
.game-art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(9, 11, 15, 0.55) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.status-mine {
  display: none;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.game.is-mine .status-mine {
  display: inline-flex;
  animation: pop 0.45s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(-4px); }
}
.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px 26px 26px;
}
.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.game-title {
  margin-top: 4px;
  font: 800 clamp(34px, 3.4vw, 46px)/0.92 var(--f-display);
  letter-spacing: 0.01em;
  color: var(--ink);
}
.game-sub {
  margin-top: -4px;
  font: 500 11px/1.5 var(--f-mono);
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.game-pitch {
  max-width: 46ch;
  color: var(--ink-2);
}
.game-tag {
  font: 700 17px/1.2 var(--f-display);
  letter-spacing: 0.2em;
  color: var(--ink);
}
.game-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: auto;
  padding-top: 10px;
}

/* the split bar */
.tally {
  margin-top: 22px;
  padding: 20px 24px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.tally-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}
.tally-side {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.tally-right {
  justify-content: flex-end;
  text-align: right;
}
.tally-name {
  font: 700 15px/1.1 var(--f-display);
  letter-spacing: 0.16em;
  color: var(--ink-2);
}
.tally-num {
  font: 800 30px/1 var(--f-display);
  letter-spacing: 0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tally[data-split='counts'] .tally-num {
  font-size: 20px;
  letter-spacing: 0.08em;
}
.tally-bar {
  --gap: 3px;
  position: relative;
  display: flex;
  gap: var(--gap);
  height: 12px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
}
.tally-bar i {
  display: block;
  height: 100%;
  transition: width 1.1s var(--ease), flex-basis 1.1s var(--ease), opacity 0.4s;
}
.fill-hfh {
  width: calc(var(--share, 0.5) * 100% - var(--gap) / 2);
  flex: none;
  background: var(--hfh);
  box-shadow: 0 0 18px -2px rgba(238, 241, 246, 0.35);
}
.fill-pact {
  flex: 1;
  background: var(--pact);
}
.tally-bar::after {
  /* the halfway notch */
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: rgba(0, 0, 0, 0.6);
}
.tally[data-state='loading'] .tally-bar i,
.tally[data-state='closed'] .tally-bar i,
.tally[data-split='empty'] .tally-bar i {
  opacity: 0;
}
.tally[data-state='loading'] .tally-bar {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
.tally[data-state='closed'] .tally-bar,
.tally[data-split='empty'] .tally-bar {
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 6px, transparent 6px 12px);
}
.tally-status {
  margin-top: 12px;
  font: 500 12px/1.4 var(--f-mono);
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-align: center;
}
.tally[data-state='voted'] .tally-status {
  color: var(--accent-2);
}
.tally[data-state='closed'] .tally-status {
  color: var(--ink-2);
}

/* the classified file */
.classified {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px 32px;
  margin-top: 28px;
  padding: 26px 28px;
  border: 1px dashed var(--line-2);
  border-radius: 4px;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 9px),
    var(--panel);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  overflow: hidden;
}
.cl-stamp {
  padding: 9px 14px 8px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  font: 800 22px/1 var(--f-display);
  letter-spacing: 0.24em;
  transform: rotate(-6deg);
  opacity: 0.88;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
.cl-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
  font: 800 clamp(26px, 3vw, 36px)/1 var(--f-display);
  letter-spacing: 0.06em;
  color: var(--ink);
}
.redact {
  /* a redaction bar with something still churning under it */
  display: inline-block;
  padding: 6px 10px 5px;
  background: var(--ink);
  border-radius: 1px;
  line-height: 1;
  box-shadow: 0 0 24px -6px rgba(255, 255, 255, 0.25);
}
.redact-glyphs {
  font: 700 clamp(15px, 1.5vw, 19px)/1 var(--f-mono);
  letter-spacing: 0.14em;
  color: rgba(7, 8, 10, 0.16);
}
.cl-name {
  color: var(--accent-2);
}
.cl-line {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink);
}
.classified[data-declassified='true'] .cl-stamp {
  border-style: dashed;
}

/* ---- about ---- */
.about {
  padding-bottom: clamp(64px, 10vh, 120px);
}
.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 4.5vw, 56px);
  background: var(--panel-calm);
  border: 1px solid var(--line);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.about-text {
  margin-top: 22px;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.75;
  color: var(--ink);
  text-wrap: pretty;
}
.mission {
  align-self: center;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 2px solid var(--accent);
}
.mission-title {
  font: 800 clamp(30px, 3.2vw, 42px)/0.95 var(--f-display);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.mission-text {
  margin-top: 16px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---- apps: the calmer half ---- */
.apps {
  padding-bottom: clamp(64px, 10vh, 120px);
}
.sec-head-calm .eyebrow {
  color: var(--ink-2);
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.app {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  overflow: hidden;
  background: var(--panel-calm);
  border: 1px solid var(--line);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.app-art {
  position: relative;
  min-height: 240px;
  overflow: hidden;
}
.app-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-getfit .app-art {
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(40, 196, 166, 0.26), transparent 70%),
    linear-gradient(160deg, #0f2a2a, #0a1a1c 70%);
}
.app-getfit .app-art img {
  inset: 50% auto auto 50%;
  width: 58%;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}
.app-manna .app-art img {
  object-position: 62% 60%;
}
.app-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px 28px;
}
.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font: 500 11px/1.4 var(--f-mono);
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.app-name {
  font: 800 40px/1 var(--f-display);
  letter-spacing: 0.01em;
  color: var(--ink);
}
.app-text {
  color: var(--ink-2);
  text-wrap: pretty;
}
.app-quote {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 500;
}
.app-getfit .app-quote {
  color: #6fe0c6;
}
.app-manna .app-quote {
  color: #f0c46a;
}

/* Agape: its own ministry, its own look (navy, gold, parchment) */
.agape {
  --navy: #0f2140;
  --gold: #c9a24e;
  --gold-2: #e6c97f;
  --parchment: #f3ead8;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 78, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(70% 110% at 82% 10%, rgba(201, 162, 78, 0.13), transparent 60%),
    radial-gradient(60% 80% at 10% 100%, rgba(46, 84, 150, 0.35), transparent 70%),
    linear-gradient(160deg, #142a4d 0%, #0d1c36 55%, #08132a 100%);
  color: var(--parchment);
  font-family: var(--f-serif);
}
.agape-copy {
  padding: clamp(30px, 4.5vw, 56px);
}
.agape-kicker {
  font: 600 14px/1 var(--f-serif);
  letter-spacing: 0.34em;
  color: var(--gold-2);
}
.agape-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.agape-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(201, 162, 78, 0.4), 0 10px 30px -8px rgba(0, 0, 0, 0.6);
}
.agape-name {
  font: 500 clamp(44px, 5vw, 64px)/1 var(--f-serif);
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  color: var(--parchment);
}
.agape-line {
  margin-top: 22px;
  font: italic 500 clamp(24px, 2.4vw, 30px)/1.2 var(--f-serif);
  color: var(--gold-2);
}
.agape-text {
  margin-top: 12px;
  font: 500 20px/1.5 var(--f-serif);
  color: rgba(243, 234, 216, 0.88);
}
.agape-note {
  margin-top: 6px;
  font: italic 500 18px/1.5 var(--f-serif);
  color: rgba(243, 234, 216, 0.72);
}
.agape-soon {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font: 600 13px/1 var(--f-serif);
  letter-spacing: 0.34em;
  color: var(--gold);
}
.agape-soon::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.agape-phones {
  position: relative;
}
.agape-phones img {
  position: absolute;
  right: -10px;
  bottom: -40px;
  width: 360px;
  max-width: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

/* ---- contact and footer ---- */
.contact {
  padding-bottom: clamp(56px, 9vh, 104px);
  text-align: center;
}
.contact h2 {
  margin-top: 14px;
  font: 800 clamp(34px, 4.6vw, 56px)/0.95 var(--f-display);
  color: var(--ink);
}
.mail {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 22px 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--panel);
  font: 500 clamp(15px, 2.4vw, 26px)/1.2 var(--f-mono);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.3s;
}
.mail:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  box-shadow: 0 0 40px -12px var(--accent-glow);
}
.foot {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.86);
  font: 500 12px/1.4 var(--f-mono);
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-align: center;
}

/* ---- smaller screens ---- */
@media (max-width: 980px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  .agape {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .agape-phones img {
    width: 290px;
  }
}
@media (max-width: 860px) {
  .duel {
    grid-template-columns: 1fr;
  }
  .vs {
    height: 64px;
  }
  .vs::before {
    top: 50%;
    bottom: auto;
    left: 8%;
    right: 8%;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-2) 25%, var(--line-2) 75%, transparent);
  }
  .about-panel {
    grid-template-columns: 1fr;
  }
  .classified {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .cl-stamp {
    font-size: 18px;
  }
}
@media (max-width: 640px) {
  .nav {
    display: none;
  }
  .brand-name {
    font-size: 18px;
  }
  .game-body {
    padding: 20px 20px 22px;
  }
  .game-actions .btn {
    flex: 1 1 auto;
  }
  .tally {
    padding: 16px 16px 14px;
  }
  .tally-labels {
    align-items: flex-end;
  }
  .tally-side {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .tally-right {
    align-items: flex-end;
  }
  .tally-right .tally-num {
    order: 2;
  }
  .tally-name {
    font-size: 13px;
    letter-spacing: 0.12em;
  }
  .tally-num {
    font-size: 26px;
  }
  .tally-status {
    letter-spacing: 0.1em;
  }
  .classified {
    padding: 22px 20px;
  }
  .app {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }
  .app-art {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .app-getfit .app-art img {
    width: 34%;
  }
  .app-body {
    padding: 22px 20px 24px;
  }
  .agape {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .agape-phones {
    height: 210px;
    overflow: hidden;
  }
  .agape-phones img {
    position: absolute;
    right: auto;
    left: 50%;
    bottom: auto;
    top: 0;
    width: 280px;
    transform: translateX(-50%);
  }
  .agape-name {
    letter-spacing: 0.22em;
    margin-right: -0.22em;
  }
}

/* touch screens: no live blur over the moving field, a little more opacity instead */
@media (pointer: coarse) {
  .game,
  .tally,
  .classified,
  .about-panel,
  .app {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  :root {
    --panel: rgba(9, 11, 15, 0.88);
    --panel-calm: rgba(11, 13, 18, 0.93);
  }
}

/* ---- the scroll reveal (js/reveal.js) ---- */
/* text waiting, or decoding under its twin: the real text keeps its place, only transparent */
.dc-wait,
.dc-wait *,
.dc-run,
.dc-run *:not(.dc-ch) {
  color: transparent !important;
  text-shadow: none !important;
}
.dc-host {
  position: relative;
}
.dc-twin {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0;
  word-spacing: 0;
  text-indent: 0;
  text-align: left;
  white-space: pre;
  transform-origin: 0 0;
  animation: dc-depth 0.6s var(--ease) both;
}
.dc-ch {
  position: absolute;
  display: block;
  white-space: pre;
  font-style: normal;
  text-transform: none;
  transition: color 0.35s ease;
}
@keyframes dc-depth {
  from { opacity: 0; transform: translate3d(0, 0.3em, 0) scale(0.97); filter: blur(3px); }
  35% { opacity: 1; }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes dc-depth-lite {
  from { opacity: 0; transform: translate3d(0, 0.3em, 0) scale(0.97); }
  35% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
.rv-lite .dc-twin {
  animation-name: dc-depth-lite;
}
/* panels and pictures surface from behind the field */
.rv-wait,
.rv-wait-img,
.fd-wait {
  opacity: 0;
}
.rv-in {
  animation: rv-emerge 0.95s var(--ease) both;
}
@keyframes rv-emerge {
  from { opacity: 0; translate: 0 22px; scale: 0.985; filter: blur(6px); }
  60% { filter: blur(0); }
  to { opacity: 1; translate: none; scale: none; filter: none; }
}
@keyframes rv-emerge-lite {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: none; }
}
.rv-lite .rv-in {
  animation-name: rv-emerge-lite;
}
.game.rv-in::before {
  animation: rv-corner-a 0.8s 0.3s var(--ease) both;
}
.game.rv-in::after {
  animation: rv-corner-b 0.8s 0.3s var(--ease) both;
}
@keyframes rv-corner-a {
  from { opacity: 0; translate: 28px 28px; }
}
@keyframes rv-corner-b {
  from { opacity: 0; translate: -28px -28px; }
}
.rv-in-img {
  animation: rv-surface 1.25s var(--ease) both;
}
@keyframes rv-surface {
  from { opacity: 0; scale: 1.06; filter: blur(10px) brightness(0.3); }
  to { opacity: 1; scale: none; filter: none; }
}
@keyframes rv-surface-lite {
  from { opacity: 0; scale: 1.04; filter: brightness(0.3); }
  to { opacity: 1; scale: none; filter: none; }
}
.rv-lite .rv-in-img {
  animation-name: rv-surface-lite;
}
.rv-stamp {
  animation: rv-stamp 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
@keyframes rv-stamp {
  from { opacity: 0; scale: 1.8; }
  to { opacity: 0.88; scale: none; }
}
@media print {
  .dc-wait,
  .dc-wait *,
  .dc-run,
  .dc-run * {
    color: inherit !important;
  }
  .rv-wait,
  .rv-wait-img,
  .fd-wait {
    opacity: 1 !important;
  }
  .dc-twin {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .mark-cursor {
    animation: none;
  }
}
/* reduced motion: the reveal is a quick fade (this outranks the rule above) */
.fd-in {
  transition: opacity 0.35s ease !important;
}

/* "Made to help": collapsed by default, so the page leads with the games (the owner, 2026-10-15) */
.apps-more > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.apps-more > summary::-webkit-details-marker { display: none; }
.apps-more > summary::marker { content: ''; }
.apps-summary-text { display: flex; flex-direction: column; }
.apps-title {
  margin-top: 12px;
  font: 800 clamp(26px, 3.4vw, 40px)/0.94 var(--f-display);
  letter-spacing: 0.005em;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}
.apps-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.22em;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  padding: 9px 12px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.apps-chev { display: inline-block; font-size: 15px; line-height: 12px; transition: transform 0.3s var(--ease); }
.apps-hide { display: none; }
.apps-more[open] .apps-show { display: none; }
.apps-more[open] .apps-hide { display: inline; }
.apps-more[open] .apps-chev { transform: rotate(45deg); }
.apps-more > summary:hover .apps-title,
.apps-more[open] .apps-title { color: var(--ink); }
.apps-more > summary:hover .apps-toggle { color: var(--accent); border-color: var(--accent); }
.apps-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.apps-more[open] > summary { margin-bottom: clamp(24px, 4vh, 36px); }
.apps-more[open] .apps-body { animation: apps-in 0.6s var(--ease) both; }
@keyframes apps-in {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .apps-more[open] .apps-body { animation: none; }
}
@media (max-width: 600px) {
  .apps-more > summary { flex-direction: column; align-items: flex-start; }
}
