/* The Epsilon Program: the in-game GTA V site, at full screen. */
:root {
  --wall: #6891ad;            /* the patterned wallpaper outside the panel */
  --edge: #7197b6;            /* the pilasters along the panel */
  --panel: #93b0cf;           /* the light blue panel */
  --panel-hi: #a9c2de;
  --btn: #6691ad;             /* the menu buttons */
  --btn-hi: #79a0bd;
  --btn-edge: #86a9c4;
  --sheet: #e9ecee;           /* the light content sheet */
  --head: #435c79;            /* headings on the sheet */
  --text: #4a6584;            /* text on the sheet */
  --ink: #26282c;
  --navy: #1c2c55;
  --blue-hi: #c3d7f2;
  --blue: #7ea4dc;
  --blue-lo: #5f8bcd;
  --blue-edge: #4a78bb;
  --green-hi: #b6e3b0;
  --green: #6fbd6a;
  --green-lo: #4c9c4b;
  --green-edge: #3b8240;
  --forest: #123816;
  --gold: #c9a443;
  --gold-lo: #9c7a26;
  --trajan: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --times: "Times New Roman", Times, Georgia, serif;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --pad: clamp(16px, 3.2vw, 60px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--wall) url(/pattern.svg) 0 0 / 64px 90px repeat;
  color: var(--text);
  font: 17px/1.55 var(--times);
}
a { color: #2f5a8f; }
a:hover { color: var(--navy); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* the panel with its two glossy pilasters */
.frame {
  position: relative;
  width: min(1600px, calc(100% - 120px));
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(var(--panel-hi), var(--panel) 380px, var(--panel));
  box-shadow:
    -14px 0 0 var(--edge), 14px 0 0 var(--edge),
    -15px 0 0 rgba(255, 255, 255, .22), 15px 0 0 rgba(255, 255, 255, .22),
    -22px 0 18px rgba(30, 60, 95, .35), 22px 0 18px rgba(30, 60, 95, .35);
  display: flex;
  flex-direction: column;
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 45%, rgba(20, 50, 80, .22));
  pointer-events: none;
}
.frame::before { left: -14px; }
.frame::after { right: -14px; transform: scaleX(-1); }

/* ---------- top: the menu and the crest ---------- */
.top {
  display: grid;
  grid-template-columns: clamp(250px, 21vw, 330px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding: 26px var(--pad) 18px;
}
.side-menu { display: flex; flex-direction: column; gap: 7px; align-self: center; }
.side-menu a {
  display: block;
  padding: 11px 12px 10px;
  text-align: center;
  font: 19px/1.15 var(--times);
  color: #fff;
  text-decoration: none;
  background: linear-gradient(var(--btn-hi), var(--btn));
  border: 1px solid var(--btn-edge);
  border-bottom-color: #557c99;
  text-shadow: 0 1px 1px rgba(20, 45, 75, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(30, 60, 95, .2);
  transition: background .2s ease, transform .15s ease;
}
.side-menu a:hover { background: linear-gradient(#8bb0cb, #7099b6); color: #fff; }
.side-menu a[aria-current="page"] {
  background: linear-gradient(#557e9c, #4c7492);
  box-shadow: inset 0 2px 4px rgba(10, 30, 55, .35);
}

.crest {
  position: relative;
  min-height: clamp(280px, 30vw, 430px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: radial-gradient(ellipse at 50% 42%, #d3e2f2 0, #b5cbe6 26%, rgba(147, 176, 207, 0) 66%);
}
.crest::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .5) 0deg 1.2deg, rgba(255, 255, 255, 0) 1.2deg 6deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 18%, transparent 46%);
  mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 18%, transparent 46%);
  animation: spin 160s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.chart { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.whisper {
  position: absolute;
  z-index: 2;
  top: clamp(12px, 1.6vw, 26px);
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
  font: 600 clamp(10px, .9vw, 13px)/1 var(--trajan);
  letter-spacing: .26em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 2px rgba(30, 60, 100, .5);
  transition: opacity .7s ease;
}
.whisper.out { opacity: 0; }

.brand {
  --mw: clamp(78px, 10vw, 168px);
  --wb: calc(var(--mw) * .2);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
}
.brand .word, .brand .the {
  font-family: var(--trajan);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 1px #2f5a8c, 0 1px 0 #2f5a8c, 0 2px 0 #3a6797, 0 3px 9px rgba(15, 40, 75, .5);
}
.brand .word { font-size: clamp(26px, 4.2vw, 70px); line-height: .9; letter-spacing: .02em; }
.brand .the { font-size: clamp(16px, 2.5vw, 42px); line-height: .9; margin: 0 2px 2px 0; }
.w-left { display: flex; flex-direction: column; align-items: flex-end; margin: 0 clamp(2px, .4vw, 6px) var(--wb) 0; }
.w-right { margin: 0 0 var(--wb) clamp(2px, .4vw, 6px); }
.sun { position: relative; display: block; width: var(--mw); height: calc(var(--mw) * 1.3); }
.sun::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: calc(var(--mw) * 1.9);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, .55) 30%, rgba(255, 255, 255, 0) 66%);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.1); opacity: .8; } }
.mark-big { position: relative; z-index: 1; width: var(--mw); height: calc(var(--mw) * 1.3); filter: drop-shadow(0 3px 4px rgba(20, 50, 90, .45)); }
.tagline {
  position: relative;
  z-index: 2;
  margin: clamp(8px, 1vw, 14px) 0 0;
  font: italic clamp(13px, 1.15vw, 18px)/1.3 var(--times);
  color: #fff;
  text-shadow: 0 1px 2px rgba(30, 60, 100, .55);
  text-align: center;
  padding: 0 12px;
}

/* ---------- CA + ticker ---------- */
.ca-bar {
  margin: 0 var(--pad);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  background: var(--sheet);
  border: 2px solid #7d9fbe;
  border-radius: 14px;
  box-shadow: inset 0 0 0 3px #fff, 0 6px 16px rgba(30, 60, 95, .18);
}
.ca-k {
  padding: 7px 12px 6px;
  border-radius: 8px;
  background: linear-gradient(var(--btn-hi), var(--btn));
  border: 1px solid #567d9b;
  font: 700 15px/1 var(--trajan);
  letter-spacing: .14em;
  color: #fff;
  text-shadow: 0 1px 1px rgba(20, 45, 75, .4);
}
.ca-v { font: 700 clamp(13px, 1.3vw, 21px)/1.3 "Courier New", monospace; color: #223a5a; overflow-wrap: anywhere; cursor: copy; }
.ca-actions { display: flex; gap: 8px; }

.ticker-tape {
  margin: 12px var(--pad) 0;
  overflow: hidden;
  white-space: nowrap;
  font: 700 11px/26px var(--sans);
  letter-spacing: .1em;
  color: #fff;
  background: linear-gradient(var(--btn-hi), var(--btn));
  border: 1px solid var(--btn-edge);
  text-shadow: 0 1px 1px rgba(20, 45, 75, .35);
}
.tape { display: inline-block; animation: tape 52s linear infinite; }
.tape span { padding: 0 20px; }
.tape span::after { content: "✦"; padding-left: 40px; color: #fff3c4; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- the sheet ---------- */
.sheet {
  margin: 14px var(--pad) 0;
  padding: clamp(18px, 2.4vw, 40px);
  background: var(--sheet);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(40, 70, 100, .12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 17vw, 270px);
  gap: clamp(24px, 3vw, 48px);
  flex: 1;
}
main { min-width: 0; }
section { animation: rise .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
h1 { margin: 0 0 14px; font: 400 clamp(26px, 2.3vw, 36px)/1.15 var(--times); color: var(--head); }
h2 { margin: 0 0 10px; font: 400 clamp(21px, 1.7vw, 27px)/1.2 var(--times); color: var(--head); }
h2.sub { margin-top: 30px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; }
.caps { text-transform: uppercase; letter-spacing: .03em; }
.small { font-size: 14px; color: #6a8099; }
.fine { font: 13px/1.4 var(--sans); color: #6a7c90; margin: 10px 0 0; }

/* the welcome: words and the poster on the left, the Evaluation on the right */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas: "welcome eval" "poster eval";
  grid-template-rows: auto 1fr;
  gap: 0 clamp(24px, 3vw, 46px);
  align-items: start;
}
.welcome { grid-area: welcome; }
.hero .poster { grid-area: poster; margin: 8px 0 0; }
.hero .eval { grid-area: eval; }

/* the poster, laid out like the in-game Kifflom ad */
.poster { border: 1px solid #6f8fae; background: #dfe8f2; }
.poster-img { position: relative; overflow: hidden; }
.poster-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.poster-img img.cut { position: absolute; inset: 0; height: 100%; z-index: 2; pointer-events: none; }
.kifflom-words {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 3%;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  container-type: inline-size;
}
.kifflom-words span {
  font: 900 21cqi/.86 "Rubik", "Arial Black", sans-serif;
  letter-spacing: .01em;
  color: #fff;
  -webkit-text-stroke: 2px #3d6db2;
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(30, 60, 120, .3);
  animation: glow 4.5s ease-in-out infinite;
}
.kifflom-words span:nth-child(2) { opacity: .8; animation-delay: .4s; }
.kifflom-words span:nth-child(3) { opacity: .6; animation-delay: .8s; }
.kifflom-words span:nth-child(4) { opacity: .4; animation-delay: 1.2s; }
@keyframes glow { 50% { text-shadow: 0 4px 0 rgba(30, 60, 120, .3), 0 0 26px rgba(255, 220, 140, .85); } }
.poster figcaption {
  padding: 14px 16px 16px;
  text-align: center;
  background: linear-gradient(#5f86b4, #3f659a);
  color: #fff;
  font-family: var(--trajan);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}
.poster figcaption strong { display: block; font-size: clamp(16px, 1.45vw, 22px); font-weight: 700; letter-spacing: .03em; }
.poster figcaption > span { display: block; margin-top: 5px; font-size: clamp(11px, .9vw, 13.5px); font-weight: 600; letter-spacing: .03em; }
.apply-row { display: flex !important; align-items: center; justify-content: center; gap: 14px; margin-top: 12px !important; }
.apply-row .mini { width: 36px; height: 47px; flex: none; filter: drop-shadow(0 2px 2px rgba(10, 30, 60, .4)); }
.btn.apply { padding: 10px 26px 9px; font-size: 20px; }
.btn.apply small { display: block; margin-top: 3px; font: 600 9.5px/1.2 var(--trajan); letter-spacing: .04em; }

.never {
  margin: 34px 0 10px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 28px;
  align-items: center;
  background: #fff;
  border: 1px solid #b9c9da;
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px #f3f6f9;
}
.never-big { margin: 0; font: 700 clamp(20px, 2vw, 30px)/1.1 var(--trajan); letter-spacing: .04em; color: #34506f; }
.never p:last-child { margin: 0; max-width: 80ch; }

/* ---------- buttons: the in-game look ---------- */
.btn {
  display: inline-block;
  padding: 11px 20px 10px;
  border-radius: 12px;
  border: 1px solid #4f7697;
  font: 700 14px/1.2 var(--trajan);
  letter-spacing: .05em;
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 1px rgba(15, 40, 70, .45);
  background: linear-gradient(#86a9c4, #6691ad 55%, #5a87a6);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75), inset 0 0 0 3px rgba(70, 105, 140, .5), 0 2px 5px rgba(30, 60, 95, .28);
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, opacity .2s ease;
}
.btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; filter: grayscale(.3); }
.btn.green { border-color: var(--green-edge); background: linear-gradient(var(--green-hi), var(--green) 50%, var(--green-lo)); }
.btn.gold { border-color: var(--gold-lo); background: linear-gradient(#f3dfa0, #d4af4f 52%, #b48b2c); }
.btn.small { padding: 8px 14px 7px; font-size: 12.5px; border-radius: 9px; }
.btn.big { display: block; width: 100%; padding: 16px 18px 15px; font-size: 18px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: #2f5a8f; text-decoration: underline; cursor: pointer; }

/* glossy pills from the old site, kept in the rail */
.pill {
  display: block;
  padding: 11px 8px 10px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font: 600 14px/1.25 var(--trajan);
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .28);
  transition: transform .15s ease, filter .15s ease;
}
.pill b { display: block; margin-top: 4px; font-weight: 700; font-size: 14.5px; text-shadow: none; }
.pill.blue { background: linear-gradient(var(--blue-hi), var(--blue) 48%, var(--blue-lo) 52%, #7aa2dd); border: 1px solid var(--blue-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 1px 3px rgba(20, 40, 80, .3); }
.pill.blue b { color: var(--navy); }
.pill.green { background: linear-gradient(var(--green-hi), var(--green) 48%, var(--green-lo) 52%, #6cb867); border: 1px solid var(--green-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 1px 3px rgba(20, 60, 20, .3); }
.pill.green b { color: var(--forest); }
.pill:hover { color: #fff; filter: brightness(1.06) saturate(1.05); transform: translateY(-1px); }

/* ---------- the rail ---------- */
.rail { display: flex; flex-direction: column; gap: 20px; }
.kraff { margin: 0; text-align: center; }
.kraff img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #fff; border: 1px solid #a2a7b0; border-radius: 12px; padding: 6px; }
.kraff figcaption { margin-top: 7px; font: 17px/1.2 var(--times); color: #222; }
.counter { text-align: center; }
.counter-label { display: block; font: 700 10.5px/1 var(--sans); letter-spacing: .14em; color: #5d6f84; margin-bottom: 6px; }
.digits {
  display: inline-block;
  padding: 4px 5px;
  background: #121212;
  border: 2px inset #8b8b8b;
  font: 700 19px/1 "Courier New", monospace;
  letter-spacing: .18em;
  color: #9dff6a;
  text-shadow: 0 0 6px rgba(140, 255, 90, .55);
}
.rail-x { text-align: center; font: 700 12px/1.3 var(--sans); letter-spacing: .08em; }

/* ---------- the Evaluation: the big in-game button, opened up ---------- */
.eval-frame {
  padding: clamp(14px, 1.6vw, 22px);
  border-radius: 24px;
  background: var(--btn) url(/pattern.svg) 0 0 / 52px 73px repeat;
  box-shadow: inset 0 0 0 5px #f3f6f9, inset 0 0 0 7px rgba(70, 105, 140, .45), 0 12px 30px rgba(30, 60, 95, .28);
}
.eval-title {
  margin: 8px 0 8px;
  text-align: center;
  font: 600 clamp(28px, 2.7vw, 44px)/1.04 var(--trajan);
  letter-spacing: .05em;
  color: #eef4fa;
  text-shadow: 0 0 1px #2c4d74, 0 1px 0 #2c4d74, 0 2px 0 #2f5684, 0 4px 10px rgba(10, 30, 60, .45);
}
.eval-sub { margin: 0 auto 14px; max-width: 46ch; text-align: center; font: 16px/1.45 var(--times); color: #eef4fa; text-shadow: 0 1px 2px rgba(15, 40, 70, .55); }
.eval-box {
  padding: 18px;
  background: var(--sheet);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(15, 40, 70, .25);
}
.eval-box > div { display: none; }
.eval-box[data-state="pick"] .pick,
.eval-box[data-state="run"] .quiz,
.eval-box[data-state="done"] .result,
.eval-box[data-state="error"] .error { display: block; animation: rise .4s cubic-bezier(.16, 1, .3, 1); }

.drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 14px;
  border: 2px dashed #8ea8c8;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.drop:hover, .drop.over { border-color: #4f7697; background: #f7fafd; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop img { width: 180px; height: 180px; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 10px rgba(30, 50, 90, .25); }
.drop-text b { display: block; font: 700 18px/1.2 var(--trajan); letter-spacing: .04em; color: #34506f; }
.drop-text small { display: block; margin-top: 6px; font: 13px/1.3 var(--sans); color: #6a7c90; }
.drop.has .drop-text { display: none; }

.or { position: relative; margin: 14px 0 10px; text-align: center; font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #6a7c90; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #c5d0dc; }
.or span { position: relative; padding: 0 10px; background: var(--sheet); }

.handle-row { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.handle-row .at { font: 700 16px/1 var(--sans); color: #6a7c90; }
.handle-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  font: 15px/1.2 var(--sans);
  border: 1px solid #9aa9bf;
  border-radius: 7px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
  background: #fff;
}
.handle-row input:focus { outline: 2px solid #8fb3e6; outline-offset: 1px; }

.styles { margin: 0 0 14px; }
.styles-label { display: block; margin-bottom: 7px; font: 700 11px/1 var(--sans); letter-spacing: .12em; color: #6a7c90; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #a6b6cf;
  background: #fff;
  font: 700 11px/1 var(--sans);
  letter-spacing: .06em;
  color: #3b4a66;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: #4f7697; }
.chip[aria-pressed="true"] { background: linear-gradient(#ff8fc4, #ff5aa0); border-color: #d23f82; color: #fff; }

.quiz-top { display: flex; justify-content: space-between; gap: 10px; font: 700 11px/1.3 var(--sans); letter-spacing: .08em; color: #6a7c90; }
#q-status { font-style: italic; font-weight: 400; letter-spacing: 0; text-align: right; }
.bar { margin: 8px 0 14px; height: 12px; border: 1px solid #7f9cc0; border-radius: 3px; background: #fff; overflow: hidden; }
.bar i {
  display: block;
  height: 100%;
  width: 4%;
  background: repeating-linear-gradient(-45deg, #6691ad 0 8px, #8fb0ca 8px 16px);
  background-size: 22px 22px;
  animation: stripes .8s linear infinite;
  transition: width .6s ease;
}
@keyframes stripes { to { background-position: 22px 0; } }
.q-title { font: 700 19px/1.3 var(--trajan); color: #34506f; margin-bottom: 10px; }
.q-opts { display: grid; gap: 7px; }
.q-opts button {
  text-align: left;
  padding: 11px 13px;
  border: 1px solid #a9b6c9;
  border-radius: 8px;
  background: #fff;
  font: 16px/1.3 var(--times);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.q-opts button:hover { background: #f1f6fd; border-color: #4f7697; transform: translateX(2px); }
.q-wait { font-style: italic; color: #6a7c90; }
.alert-red { color: #a01616; font-weight: 700; }

.verdict { margin: 0 0 12px; text-align: center; font: 700 15px/1.3 var(--trajan); letter-spacing: .06em; color: #6a7c90; }
.verdict b { display: block; font-size: 27px; color: #2c4d74; }
.result-pair { display: flex; justify-content: center; }
#out {
  width: min(100%, 440px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 7px solid #fff;
  outline: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(30, 50, 90, .35);
  animation: reveal 1.1s cubic-bezier(.16, 1, .3, 1);
}
@keyframes reveal { from { opacity: 0; filter: brightness(2.2) blur(6px); transform: scale(.96); } }
.member { margin: 14px 0 12px; text-align: center; font: 700 12px/1.3 var(--sans); letter-spacing: .1em; color: #6a7c90; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.result .fine { text-align: center; }
.error { text-align: center; }
.error p { font: 700 17px/1.4 var(--trajan); color: #7a1c1c; }

.already { margin-top: 26px; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pairs figure { margin: 0; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border: 1px solid #b7c2d2; padding: 3px; background: #fff; }
.ba img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pairs figcaption { margin-top: 6px; font-size: 15px; line-height: 1.35; color: #5d6f84; }

/* ---------- the other pages ---------- */
section[data-route="/give-money"], section[data-route="/unsaveables"] { max-width: 920px; }
.slip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 6px 0 14px;
  padding: 14px;
  border: 2px dashed #8ea8c8;
  background: #fff;
}
.slip-label { flex-basis: 100%; font: 700 11px/1 var(--sans); letter-spacing: .14em; color: #5d6f84; }
.ca-text { flex: 1; min-width: 0; font: 700 15px/1.35 "Courier New", monospace; color: #223a5a; word-break: break-all; }
.buy.big { margin-bottom: 14px; }
.tiers { border-top: 1px solid #c5d0dc; }
.tier {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  grid-template-areas: "amt name btn" "amt desc btn";
  gap: 2px 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #c5d0dc;
}
.tier .amt { grid-area: amt; font: 700 20px/1.1 var(--trajan); color: #34506f; }
.tier .tname { grid-area: name; font: 700 14px/1.2 var(--trajan); letter-spacing: .04em; color: #2c3d52; }
.tier .tdesc { grid-area: desc; font-size: 16px; line-height: 1.35; }
.tier .btn { grid-area: btn; }

.tenets-title { font: 700 20px/1.2 var(--trajan); letter-spacing: .03em; color: #34506f; }
.tenets { margin: 4px 0 18px; padding-left: 30px; columns: 2 360px; column-gap: 60px; }
.tenets li { margin-bottom: 12px; padding-left: 4px; break-inside: avoid; }
.tenets li::marker { font-weight: 700; }

.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px 40px; margin-top: 10px; }
.quotes blockquote { margin: 0; padding-top: 12px; border-top: 1px solid #c5d0dc; }
.quotes p { margin: 0 0 4px; font-size: 17px; color: #3d5672; }
.quotes cite { font: italic 700 13px/1.2 var(--sans); color: #6a7c90; }
.quotes cite::before { content: "– "; }

.unsave { margin: 0 0 16px; padding-left: 22px; }
.unsave li { margin-bottom: 8px; }

section[data-route="/tract"] > p { max-width: 920px; }
.paradigms { list-style: none; margin: 18px 0 8px; padding: 0 0 0 18px; border-left: 2px solid #b9c9da; }
.paradigms li { position: relative; padding: 0 0 18px 14px; }
.paradigms li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #6691ad);
  border: 1px solid #4f7697;
}
.paradigms .yr { display: block; font: 800 30px/1 var(--trajan); color: #8aa3bd; }
.paradigms .place { display: block; margin: 3px 0 5px; font: 700 13px/1.2 var(--trajan); letter-spacing: .08em; color: #2c4d74; }
.paradigms p { margin: 0; }
.paradigms .next .yr { color: #e2559a; }
.paradigms .next .place { color: #c2347a; }
.paradigms .next::before { background: radial-gradient(circle at 35% 35%, #ffe0f0, #ff5aa0); border-color: #c2347a; box-shadow: 0 0 0 4px rgba(255, 90, 160, .18); }

/* ---------- footer ---------- */
.foot { padding: 30px var(--pad) 34px; text-align: center; }
.mark-foot { width: 30px; height: 39px; margin: 0 auto 10px; display: block; filter: drop-shadow(0 2px 3px rgba(20, 50, 90, .4)); }
.foot p { margin: 0; font: 700 10.5px/1.7 var(--sans); letter-spacing: .1em; color: #fff; text-shadow: 0 1px 1px rgba(20, 45, 75, .4); }

/* ---------- wide screens: the lore reads across ---------- */
@media (min-width: 1180px) {
  .paradigms {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0 22px;
    margin-top: 40px;
    padding: 30px 0 0;
    border-left: 0;
    border-top: 2px solid #b9c9da;
  }
  .paradigms li { padding: 0; }
  .paradigms li::before { left: 0; top: -37px; }
  .paradigms p { font-size: 15px; line-height: 1.45; }
}

/* ---------- laptops and tablets ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "welcome" "eval" "poster"; }
  .hero .poster { margin-top: 24px; }
  .hero .eval { margin-top: 6px; }
}
@media (max-width: 980px) {
  .frame { width: calc(100% - 56px); }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .rail .kraff { grid-row: span 3; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .frame { width: 100%; box-shadow: none; }
  .frame::before, .frame::after { display: none; }
  .top { grid-template-columns: minmax(0, 1fr); padding: 14px 12px 10px; gap: 12px; }
  .crest { order: -1; min-height: 230px; }
  .side-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .side-menu a { font-size: 15px; padding: 9px 6px 8px; }
  .ca-bar { margin: 0 12px; justify-content: flex-start; padding: 10px 12px; gap: 8px 10px; }
  .ca-v { flex: 1 1 100%; order: 2; font-size: 13px; }
  .ca-k { order: 1; }
  .ca-actions { order: 3; }
  .ticker-tape { margin: 10px 12px 0; }
  .sheet { margin: 10px 0 0; padding: 18px 14px; }
  .rail { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rail .kraff { grid-row: auto; grid-column: 1 / -1; max-width: 260px; justify-self: center; }
  .counter, .rail-x { grid-column: 1 / -1; }
  .pill { font-size: 11px; padding: 8px 6px 7px; }
  .pill b { font-size: 11.5px; }
  .eval-frame { border-radius: 18px; }
  .eval-box { padding: 14px; }
  .drop { min-height: 190px; }
  .never { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; margin: 26px 0 8px; }
  .pairs { grid-template-columns: 1fr; }
  .tier { grid-template-columns: 90px 1fr; grid-template-areas: "amt name" "amt desc" "btn btn"; }
  .tier .btn { justify-self: start; margin-top: 6px; }
  .btn.apply { font-size: 17px; padding: 9px 16px 8px; }
  .apply-row .mini { width: 26px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
