/* Hallmark · macrostructure: Marquee Hero (one input as the hero) · genre: modern-minimal · tone: utilitarian, friendly · anchor hue: blue · theme: custom, owner-ordered Google-like dark
 * nav: N1b · footer: statement line + one row · enrichment: owner's G · contrast: pass (40-41) · slop: pass (42-45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · mobile: pass (34, 49, 50-57) */
/* GOOGLEPAID. A dark page with one task on it. Everything scales from the root size. */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #131314;
  --panel: #1e1f20;
  --field: #28292b;
  --ink: #e8eaed;
  --grey: #b0b4ba;
  --hint: #a3a7ad;
  --line: #3c4043;
  --line-strong: #6f7377;
  --soft: #2d2e31;
  --soft-hover: #393a3e;
  --soft-press: #45464a;
  --blue: #8ab4f8;
  --blue-deep: #aecbfa;
  --blue-press: #c6dafc;
  --on-blue: #131314;
  --red: #f28b82;
  --yellow: #fdd663;
  --green: #81c995;
  --notice: #352b0e;
  --notice-ink: #fde293;
  --bar-veil: rgba(19, 19, 20, .92);
  --lift: 0 1px 3px rgba(0, 0, 0, .5), 0 4px 16px rgba(0, 0, 0, .35);
  --lift-up: 0 2px 6px rgba(0, 0, 0, .55), 0 8px 28px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --control: 3rem;
}

html { font-size: clamp(14px, min(1.05vw, 1.72vh), 30px); background: var(--page); overflow-x: clip; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--page); color: var(--ink); font: 400 1rem/1.45 "Outfit", system-ui, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, canvas { display: block; }
ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: fixed; left: 1rem; top: -5rem; z-index: 60; background: var(--blue); color: var(--on-blue); padding: .5rem 1.25rem; border-radius: 99rem; }
.skip:focus { top: .5rem; }

/* The four colours, once across the top of the page */
body::before { content: ""; display: block; height: .22rem; background: linear-gradient(90deg, var(--blue) 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--green) 75%); }

/* Pills */
.pill {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  padding: .5rem 1.25rem; border-radius: 99rem; font-weight: 500; white-space: nowrap;
  transition: background .2s, box-shadow .2s, color .2s;
}
.solid { background: var(--blue); color: var(--on-blue); }
.solid:hover { background: var(--blue-deep); }
.solid:active { background: var(--blue-press); }
.solid[disabled] { background: var(--soft); color: var(--grey); box-shadow: none; cursor: not-allowed; }
.ghost { border: 1px solid var(--line); color: var(--ink); padding: calc(.5rem - 1px) 1.25rem; }
.ghost:hover { background: var(--soft); }
.ghost:active { background: var(--soft-hover); }
.soft { background: var(--soft); color: var(--ink); }
.soft:hover { background: var(--soft-hover); }
.soft:active { background: var(--soft-press); }
.soft[disabled], .ghost[disabled] { color: var(--grey); cursor: not-allowed; }
.rip { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; pointer-events: none; transform: translate(-50%, -50%); }

/* Header. The owner's lockup has white letters drawn for dark, so it sits straight on the page. */
.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1.75rem;
  padding: .75rem 1.25rem; background: var(--bar-veil); backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem 0; border-radius: .5rem; width: max-content; }
.brand-g { width: 1.75rem; height: 1.75rem; }
.brand-w { width: auto; height: .98rem; }
.links { display: flex; gap: 1.5rem; color: var(--grey); }
.links a { white-space: nowrap; transition: color .2s; }
.links a:hover { color: var(--blue); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.ca { color: var(--grey); white-space: nowrap; padding: .25rem .75rem; border-radius: 99rem; transition: background .2s; }
.ca:hover { background: var(--soft); }
.ca.has { color: var(--ink); }
.glyph { display: inline-flex; width: 1.3rem; height: 1.3rem; color: var(--grey); transition: color .2s; }
.glyph:hover { color: var(--blue); }
.glyph svg { width: 100%; height: 100%; }

/* First view */
.first {
  position: relative; display: flex; flex-direction: column; align-items: center;
  min-height: calc(82svh - 3.4rem); padding: 1rem 1.25rem 2.5rem; text-align: center;
}
.cloud { position: absolute; left: 0; top: 0; width: 100%; height: 22rem; pointer-events: none; }
.gspace { flex: 0 0 auto; width: 13.5rem; height: 13.5rem; margin-bottom: 1rem; }
.hero-g { width: 100%; height: 100%; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero-g { opacity: 1; } }
.launch.open .sub, .launch.open .quick, .launch.open > .fine { display: none; }
h1, h2 { overflow-wrap: anywhere; min-width: 0; }
h1 { position: relative; font-size: 3.15rem; line-height: 1.12; font-weight: 500; letter-spacing: -.015em; margin-bottom: 1.5rem; text-wrap: balance; }
.launch { position: relative; width: min(100%, 44rem); }
.bar {
  display: flex; align-items: center; gap: .5rem; padding: .5rem .5rem .5rem 1.5rem;
  background: var(--field); border: 1px solid var(--line); border-radius: 99rem; box-shadow: var(--lift);
  transition: border-color .25s var(--ease);
}
.bar:hover, .bar:focus-within { border-color: var(--line-strong); }
.bar:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.bar.bad { border-color: var(--red); }
.bar.locked input { color: var(--grey); }
.bar input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 1.3rem/1.4 "Outfit", system-ui, sans-serif; padding: .5rem 0; }
.bar input:focus { outline: none; }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); box-shadow: 0 0 0 5rem var(--field) inset; }
.bar input::placeholder { color: var(--grey); }
.bar-go { font-size: 1.1rem; padding: .75rem 1.75rem; }
.sub { text-wrap: balance; color: var(--grey); font-size: 1.1rem; max-width: 60ch; margin: 1rem auto 0; }
.quick { display: flex; justify-content: center; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.fine { color: var(--grey); font-size: .9rem; margin-top: 1rem; }
.fine.left { text-align: left; margin-top: 1rem; }

/* The rest of the launch */
.more { text-align: left; margin-top: 1.5rem; padding: 1.5rem; border-radius: 1.5rem; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-up); }
.more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.more-head h2 { font-size: 1.4rem; font-weight: 500; }
.say { color: var(--blue); }
.say:hover { text-decoration: underline; }
.say.on { color: var(--red); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.wide { grid-column: 1 / -1; }
.field { position: relative; min-width: 0; }
.field label { display: block; color: var(--grey); font-size: .9rem; margin-bottom: .25rem; }
.field input { width: 100%; background: var(--field); border: 1px solid var(--line); border-radius: .75rem; color: var(--ink); font: 400 1.1rem/1.3 "Outfit", system-ui, sans-serif; height: var(--control); padding: 0 .75rem; transition: border-color .2s; }
.field input:hover { border-color: var(--line-strong); }
.field input:focus-visible, .split input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.field input:disabled, .split input:disabled { background: var(--soft); color: var(--grey); cursor: not-allowed; }
.field input::placeholder { color: var(--hint); }
.field.bad input { border-color: var(--red); }
.file input { padding: .5rem .5rem; font-size: .95rem; color: var(--grey); }
.file input::file-selector-button { font: inherit; font-weight: 500; color: var(--ink); background: var(--soft); border: 0; border-radius: 99rem; padding: .25rem .75rem; margin-right: .5rem; cursor: pointer; }
.file img { position: absolute; right: .5rem; bottom: .42rem; width: 2rem; height: 2rem; border-radius: .5rem; object-fit: cover; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 4.6rem 2rem; gap: .5rem; align-items: center; margin-top: .5rem; }
.split input { min-width: 0; width: 100%; height: var(--control); background: var(--field); border: 1px solid var(--line); border-radius: .75rem; color: var(--ink); font: 400 1rem/1.3 "Outfit", system-ui, sans-serif; padding: 0 .75rem; }
.split button { color: var(--grey); font-size: 1.3rem; border-radius: 50%; height: 2rem; }
.split button:hover { color: var(--red); background: var(--soft); }
.add-split { color: var(--blue); margin-top: .75rem; }
.add-split:hover { text-decoration: underline; }
.cost { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .95rem; }
.cost div { display: flex; justify-content: space-between; gap: 1rem; color: var(--grey); padding: .25rem 0; }
.cost dd { white-space: nowrap; }
.cost .sum { color: var(--ink); font-size: 1.1rem; font-weight: 500; padding-top: .25rem; }
.go { width: 100%; margin-top: 1rem; height: var(--control); padding: 0 1.25rem; font-size: 1.1rem; }

.status { padding-top: .75rem; text-align: left; min-height: calc(1lh + .75rem); }
.status[hidden] { display: block !important; visibility: hidden; }
.status.bad { color: var(--red); }
.status.good { color: var(--green); }
.status.wait { color: var(--grey); }
.status.wait::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: 2rem; border-radius: 50%; background: var(--blue); box-shadow: .7rem 0 0 var(--red), 1.4rem 0 0 var(--yellow), 2.1rem 0 0 var(--green); animation: bob 1s ease-in-out infinite alternate; vertical-align: .05rem; }
.status a { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-.22rem); } }

/* Results */
.results { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 26rem); justify-content: center; gap: 3.5rem; padding: 1.25rem 1.25rem 0; border-top: 1px solid var(--line); }
.tally { color: var(--grey); margin-bottom: 1rem; }
.tally span { font-weight: 500; }
#statCoins { color: var(--blue); }
#statBooked { color: var(--green); }
#statClaimed { color: var(--red); }
.notice { background: var(--notice); color: var(--notice-ink); border-radius: .9rem; padding: .75rem 1rem; margin-bottom: 1.25rem; }
.feed li { margin-bottom: 1.5rem; }
.feed li.empty { color: var(--grey); font-size: 1.2rem; margin: 0; }
.feed a { display: block; }
.feed .where { display: block; font-size: .9rem; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .what { display: block; font-size: 1.4rem; line-height: 1.25; color: var(--blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed a:hover .what { text-decoration: underline; }
.feed .snip { display: block; color: var(--grey); overflow: hidden; text-overflow: ellipsis; }
.feed .amt { font-weight: 500; color: var(--ink); }
.feed .paid .amt { color: var(--green); }

.panel { align-self: start; background: var(--panel); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.25rem 1.25rem; }
.panel h2 { font-size: 1.3rem; font-weight: 500; margin-bottom: .5rem; }
.muted { color: var(--grey); }
.board li + li { border-top: 1px solid var(--line); }
.board a { display: grid; grid-template-columns: 1fr auto; gap: 0 .75rem; padding: .5rem 0; }
.board a:hover .who { color: var(--blue); }
.board .who { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .st { color: var(--grey); font-size: .9rem; }
.board .st.yes { color: var(--green); }

/* Sections */
.coins, .rules { max-width: 78.1rem; margin: 0 auto; padding: 4.5rem 1.25rem 0; }
.coins > h2, .rules > h2 { font-size: 2.1rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: 1.25rem; }
.plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.plate { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 1.2rem; overflow: hidden; transition: border-color .25s var(--ease); }
.plate:hover { border-color: var(--line-strong); }
.plate-img { overflow: hidden; aspect-ratio: 1 / 1; background: var(--soft); }
.plate-img img { width: 100%; height: 100%; object-fit: cover; }
.plate h3 { font-size: 1.05rem; font-weight: 500; padding: .75rem 1rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate p { color: var(--grey); font-size: .9rem; padding: 0 1rem; }
.plate p:last-child { padding-bottom: .75rem; color: var(--ink); }

details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem .25rem; font-size: 1.2rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: .55rem; height: .55rem; margin: .5rem .25rem 0; border-right: 2px solid var(--grey); border-bottom: 2px solid var(--grey); transform: rotate(45deg); transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(-135deg); }
summary:hover { color: var(--blue); }
details p { color: var(--grey); max-width: 70ch; padding: 0 .25rem 1rem; font-size: 1.1rem; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 78.1rem; margin: 0 auto; padding: 4.5rem 1.25rem 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 1.5rem; padding: 1.75rem; scroll-margin-top: 5rem; }
.card h2 { font-size: 1.6rem; line-height: 1.2; font-weight: 500; margin-bottom: 1rem; }
.closed { font-size: 1.1rem; color: var(--grey); }
.link-form { display: grid; gap: .75rem; }
.link-form .go { margin-top: .25rem; }
.link-out { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; margin-top: 1.25rem; align-items: start; }
#qr { width: 10rem; height: 10rem; border-radius: .6rem; }
.linky { display: block; color: var(--blue); overflow-wrap: anywhere; margin: .5rem 0 .75rem; }
.linky:hover { text-decoration: underline; }
.claim-who { color: var(--grey); }
.claim-sum { font-size: 2.6rem; font-weight: 500; line-height: 1.15; margin-bottom: .5rem; }
.claim-coin { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: .5rem 0; }
.claim-coin:hover { color: var(--blue); }
.claim-past { color: var(--grey); margin-top: .5rem; }
.claim-past a { color: var(--blue); }
.claim-acts { display: grid; gap: .5rem; }

/* Coin and person pages */
.detail { display: grid; grid-template-columns: minmax(0, 28rem) minmax(0, 40rem); justify-content: center; gap: 3rem; padding: 2rem 1.25rem 1rem; }
.detail-plate .plate-img { border-radius: 1.5rem; box-shadow: var(--lift); }
.detail-g { width: 100%; height: 100%; object-fit: contain; padding: 14%; }
.detail-info h1 { margin-bottom: 1rem; overflow-wrap: anywhere; text-align: left; }
.detail-note { font-size: 1.1rem; margin-bottom: .75rem; }
.detail-note.warn { background: var(--notice); color: var(--notice-ink); border-radius: .9rem; padding: .75rem 1rem; }
.detail-note.yes { color: var(--green); }
.detail-actions { margin: 1rem 0; }
.ledger-row, .row-link { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: .5rem 0; }
.row-link:hover { color: var(--blue); }
.row-link i { font-style: normal; }
.ledger-row a { color: var(--blue); }

/* Footer */
.foot { margin-top: 5rem; background: var(--panel); color: var(--grey); }
.foot-line { padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 1rem 1.5rem; }
.foot-glyphs { margin-left: auto; display: flex; gap: 1rem; }

@media (max-width: 1100px) {
  html { font-size: 15px; }
  .results { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .links { display: none; }
  .foot .links { display: flex; }
  .detail { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  html { font-size: 16px; }
  .top { flex-wrap: wrap; gap: .5rem .75rem; padding: .5rem .75rem; }
  .tools { margin-left: 0; width: 100%; gap: .5rem; flex-wrap: wrap; }
  .tools .ca { margin-right: auto; padding-left: 0; font-size: .85rem; white-space: nowrap; }
  .pill { padding: .5rem 1rem; }
  .first { min-height: 0; padding: .5rem .75rem 2rem; }
  .gspace { width: 10rem; height: 10rem; margin-bottom: .5rem; }
  .cloud { height: 14rem; }
  h1 { font-size: 2.2rem; margin-bottom: 1rem; }
  .bar { padding-left: 1rem; }
  .bar input { font-size: 1.05rem; }
  .bar-go { padding: .5rem 1rem; font-size: 1rem; }
  .sub { font-size: 1rem; }
  .more { padding: 1rem; }
  .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
  .file { grid-column: 1 / -1; }
  .results { padding: 1rem .75rem 0; }
  .coins, .rules, .duo { padding: 3rem .75rem 0; }
  .link-out { grid-template-columns: minmax(0, 1fr); }
  .foot { margin-top: 3rem; }
  .foot-glyphs { margin-left: 0; }
}

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