/* TinPurr v1 — adapted from tinpurr-chrome v6.css for a playable local preview.
   Visual design matches the approved v4 screens and v6 swipe-card mockups.
   No external network, no CDNs, no tracking. */

@font-face {
  font-family: Bangers;
  src: url("fonts/Bangers-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Comic Neue";
  src: url("fonts/ComicNeue-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Comic Neue";
  src: url("fonts/ComicNeue-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #D9D2C5;
  font-family: "Comic Neue", "Nunito", system-ui, sans-serif;
  color: #111;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
body { display: flex; align-items: center; justify-content: center; }

button, input { font: inherit; }
button { appearance: none; -webkit-appearance: none; background: none; border: 0; color: inherit; }

.phone {
  width: 418px;
  height: 872px;
  background: #111;
  border-radius: 52px;
  padding: 14px;
  box-shadow: 0 16px 36px rgba(17,17,17,.22), 0 2px 0 rgba(255,255,255,.18) inset;
  position: relative;
  flex-shrink: 0;
}
.screen {
  width: 390px;
  height: 844px;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  background: #8FCEE6;
  display: flex;
  flex-direction: column;
}
.comic-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.comic-bg::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.10) 0 6deg, transparent 6deg 16deg);
}
.comic-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 18%, transparent 22%);
  background-size: 20px 20px;
  mix-blend-mode: soft-light;
  opacity: .9;
}
.island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  background: #111;
  border-radius: 20px;
  z-index: 5;
}
.status {
  height: 54px;
  padding: 16px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: "Comic Neue", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  color: #111;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
}
.status .time { padding-left: 6px; padding-top: 2px; }
.status .icons { display: flex; gap: 6px; align-items: center; padding-right: 4px; padding-top: 4px; }
.status .icons svg { display: block; }

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.topbar .mini-logo { height: 42px; width: auto; display: block; }
.topbar .name {
  font-family: Bangers, Impact, sans-serif;
  font-size: 30px;
  letter-spacing: .04em;
  color: #111;
  line-height: 1;
  padding-top: 6px;
}

.main, .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 32px 0;
  text-align: center;
  position: relative;
  z-index: 2;
  min-height: 0;
}
.stack {
  width: 100%;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.bottom {
  flex-shrink: 0;
  padding: 8px 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}
.bottom .btn { max-width: 310px; }
.home-bar-wrap {
  height: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.home-bar { width: 128px; height: 5px; background: rgba(17,17,17,.4); border-radius: 3px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  background: #fff;
  color: #111;
  font-family: Bangers, Impact, sans-serif;
  font-size: 28px;
  letter-spacing: .06em;
  border: 3px solid #111;
  border-radius: 999px;
  box-shadow: 4px 4px 0 #111;
  cursor: pointer;
  user-select: none;
}
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #111; }
.btn:focus-visible { outline: 3px solid #F4CC3F; outline-offset: 3px; }

.fineprint {
  font-family: "Comic Neue", "Nunito", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(17,17,17,.72);
  max-width: 300px;
  text-align: center;
  margin-bottom: 16px;
}
.label {
  font-family: "Comic Neue", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
  color: #111;
  margin: 0 0 8px;
  display: block;
}
.label + .field { margin-bottom: 0; }
.field-block { margin-bottom: 20px; }
.field-block:last-of-type { margin-bottom: 0; }
.field {
  width: 100%;
  height: 50px;
  font-family: "Comic Neue", sans-serif;
  font-size: 17px;
  font-weight: 700;
  border: 3px solid #111;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  box-shadow: 3px 3px 0 #111;
  color: #111;
  outline: none;
}
.field:focus { box-shadow: 3px 3px 0 #111, 0 0 0 3px #F4CC3F; }
.field::placeholder { color: #8a8a8a; font-weight: 700; }

.lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lockup .hero-logo { height: 118px; width: auto; display: block; }
.wordmark {
  font-family: Bangers, Impact, sans-serif;
  font-weight: 400;
  font-size: 60px;
  letter-spacing: .04em;
  line-height: .9;
  color: #fff;
  text-shadow:
    3px 0 0 #111, -3px 0 0 #111, 0 3px 0 #111, 0 -3px 0 #111,
    2px 2px 0 #111, -2px -2px 0 #111, 2px -2px 0 #111, -2px 2px 0 #111,
    5px 5px 0 #111;
}
.subtitle {
  margin-top: 22px;
  font-family: Bangers, Impact, sans-serif;
  font-size: 24px;
  letter-spacing: .03em;
  line-height: 1.15;
  color: #111;
  max-width: 300px;
}
.badge {
  display: inline-block;
  margin-top: 16px;
  background: #F4CC3F;
  border: 3px solid #111;
  box-shadow: 3px 3px 0 #111;
  padding: 6px 14px 5px;
  font-family: Bangers, Impact, sans-serif;
  font-size: 20px;
  letter-spacing: .06em;
  line-height: 1;
}

.lead {
  font-family: "Comic Neue", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  color: #111;
  text-align: center;
}

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px 4px;
  min-height: 0;
  position: relative;
  z-index: 2;
}
.card {
  width: 100%;
  max-height: 100%;
  aspect-ratio: 4 / 3;
  border: 3px solid #111;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #111;
  overflow: hidden;
  position: relative;
  background: #8FCEE6;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.actions {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 16px 20px 8px;
  position: relative;
  z-index: 2;
}
.actions.legend { padding: 28px 0 0; }
.action-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.action {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #111;
  box-shadow: 3px 3px 0 #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}
.action:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #111; }
.action:focus-visible { outline: 3px solid #F4CC3F; outline-offset: 3px; }
.action svg { display: block; }
.albl {
  font-family: Bangers, Impact, sans-serif;
  font-size: 20px;
  letter-spacing: .04em;
  line-height: 1;
}
.albl.no { color: #E8412C; }
.albl.yes { color: #27792F; }

.placeholder-panel {
  width: 100%;
  max-width: 310px;
  background: #FFFBEA;
  border: 3px solid #111;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #111;
  padding: 32px 20px;
}
.placeholder-panel .ph {
  font-family: "Comic Neue", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  color: #111;
}

/* v4: white outline + soft glow so the black approved logo reads on the comic bg */
.hero-logo, .mini-logo {
  filter:
    drop-shadow(1px 0 0 #fff)
    drop-shadow(-1px 0 0 #fff)
    drop-shadow(0 1px 0 #fff)
    drop-shadow(0 -1px 0 #fff)
    drop-shadow(0 0 2px rgba(255,255,255,.9))
    drop-shadow(0 0 5px rgba(255,255,255,.7));
}

/* v5: top swipe hint for older users, and captions below the card picture */
.swipe-hint {
  flex-shrink: 0;
  margin: 0 16px 4px;
  padding: 8px 14px 7px;
  background: #FFFBEA;
  border: 3px solid #111;
  border-radius: 14px;
  box-shadow: 3px 3px 0 #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 2;
  font-family: Bangers, Impact, sans-serif;
  font-size: 24px;
  letter-spacing: .04em;
  line-height: 1;
}
.swipe-hint .no { color: #E8412C; }
.swipe-hint .mid { color: #111; }
.swipe-hint .yes { color: #27792F; }

.stage.with-caption {
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 10px 16px 4px;
  gap: 12px;
  overflow: hidden;
}
.stage.with-caption .card {
  flex: 0 1 auto;
  width: 100%;
  max-height: none;
}
.caption {
  flex-shrink: 0;
  text-align: center;
  padding: 0 6px 2px;
  position: relative;
  z-index: 2;
}
.caption .title {
  font-family: Bangers, Impact, sans-serif;
  font-size: 40px;
  letter-spacing: .03em;
  line-height: 1.05;
  color: #111;
}
.caption .desc {
  margin-top: 6px;
  font-family: "Comic Neue", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .01em;
  line-height: 1.25;
  color: #111;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.caption .q {
  margin-top: 6px;
  font-family: "Comic Neue", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(17,17,17,.62);
}

/* v6: timeframe tag under the title, large and easy to read */
.caption .timeframe {
  display: inline-block;
  margin-top: 8px;
  background: #F4CC3F;
  border: 3px solid #111;
  box-shadow: 3px 3px 0 #111;
  padding: 6px 14px 5px;
  border-radius: 10px;
  font-family: Bangers, Impact, sans-serif;
  font-size: 22px;
  letter-spacing: .04em;
  line-height: 1.1;
  color: #111;
}
.caption .timeframe[hidden] { display: none; }
.caption:has(.timeframe:not([hidden])) .desc {
  margin-top: 10px;
}

/* Playable-game additions */
.view { display: none; flex: 1; min-height: 0; flex-direction: column; position: relative; z-index: 2; }
.view.active { display: flex; }

.swipe-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  touch-action: none;
  user-select: none;
  will-change: transform;
  cursor: grab;
}
.swipe-card.dragging { cursor: grabbing; }
.swipe-card.fly { transition: transform .38s ease-in, opacity .38s ease-in; }
.swipe-card.snap { transition: transform .28s ease-out; }
.swipe-card.enter { animation: card-enter .28s ease-out; }

@keyframes card-enter {
  from { transform: scale(.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.stamp {
  position: absolute;
  top: 16px;
  padding: 4px 12px 2px;
  border: 4px solid;
  border-radius: 10px;
  font-family: Bangers, Impact, sans-serif;
  font-size: 36px;
  letter-spacing: .08em;
  line-height: 1;
  background: rgba(255,255,255,.9);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.stamp.yes {
  left: 14px;
  color: #27792F;
  border-color: #27792F;
  transform: rotate(-18deg);
}
.stamp.no {
  right: 14px;
  color: #E8412C;
  border-color: #E8412C;
  transform: rotate(18deg);
}

/* Real phones: fill the viewport, no bezel-inside-a-bezel */
@media (max-width: 430px) {
  body { background: #8FCEE6; }
  .island, .status { display: none; }
  .screen { padding-top: env(safe-area-inset-top); }
  .home-bar-wrap { visibility: hidden; height: calc(14px + env(safe-area-inset-bottom)); }
  .phone {
    width: 100%;
    height: 100%;
    height: 100dvh;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .screen {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* If the window is a bit short but still desktop-wide, scale the phone to fit */
@media (min-width: 431px) and (max-height: 871px) {
  .phone {
    transform: scale(min(1, calc(100dvh / 872)));
    transform-origin: center center;
  }
}

.disclosures-line {
  margin: 24px 16px;
  text-align: center;
  font-family: "Comic Neue", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  color: #111;
}
.disclosures-line a {
  color: #111;
  text-decoration: underline;
}

/* v29a: site build additions (client-games/tinpurr) */
a.btn { text-decoration: none; }
.back-link {
  margin-top: 14px;
  font-family: "Comic Neue", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #111;
  text-decoration: underline;
}
.form-err {
  min-height: 1.4em;
  margin-top: 12px;
  font-family: "Comic Neue", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: #B3261E;
  text-align: center;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done-stack { text-align: center; }
.done-title { font-family: Bangers, Impact, sans-serif; font-weight: 400; font-size: 40px; letter-spacing: .04em; margin-bottom: 14px; }
.done-text {
  font-family: "Comic Neue", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* v29c: Undo (matches Athena's Asset Reading: lavender "↶ UNDO" button, dimmed when there's nothing to undo) */
.undo-btn {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 12px 5px;
  background: #cdb8ff;
  color: #111;
  font-family: Bangers, Impact, sans-serif;
  font-size: 20px;
  letter-spacing: .05em;
  line-height: 1;
  border: 3px solid #111;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #111;
  cursor: pointer;
  z-index: 3;
}
.undo-btn:active:not(:disabled) { transform: translate(2px, calc(-50% + 2px)); box-shadow: 1px 1px 0 #111; }
.undo-btn:focus-visible { outline: 3px solid #F4CC3F; outline-offset: 2px; }
.undo-btn:disabled { opacity: .35; cursor: default; }
.undo-btn.undo-last { position: static; transform: none; margin-bottom: 14px; font-size: 22px; padding: 8px 16px 6px; }
.undo-btn.undo-last:active { transform: translate(2px, 2px); }
.swipe-card.back { transition: transform .4s cubic-bezier(.215,.61,.355,1), opacity .4s ease-out; }
