/* More easter eggs (assets/easter-more.js). Tokens and motion from design.md §2 and §4; same card language as easter-lk.css. */

@keyframes eg-in { from { opacity: 0; filter: blur(6px); transform: translateY(10px) scale(.99); } }

/* ---------- the card that plays the moment, in the answer's place ---------- */
.eg-card { margin-top: 32px; padding: 8px; background: #fff; border-radius: var(--r-32); box-shadow: 0 0 0 1px var(--ink-5), var(--shadow-el-1); opacity: 0; }
.eg-card.in { opacity: 1; animation: eg-in .7s var(--ease) both; }
.eg-vis { position: relative; border-radius: 30px; overflow: hidden; background: var(--grey-50); isolation: isolate; }
.eg-vis-map { aspect-ratio: 16 / 9; background: #e8e8e8; }
.eg-skip { position: absolute; top: 12px; right: 12px; z-index: 40; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: #ffffffd9; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer; box-shadow: 0 0 0 1px var(--ink-5); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), background-color .2s var(--ease); }
.eg-skip.in { opacity: 1; pointer-events: auto; }
.eg-skip:hover { background: #fff; }
.eg-skip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.eg-vis-lanes .eg-skip { top: auto; bottom: 16px; } /* the lane headers own the top corners */

/* status under the visual: the site's word wave, a soft pulse while working */
.eg-foot { padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 12px; }
.eg-status { display: grid; overflow: hidden; font-size: 15px; line-height: 1.4; color: var(--ink); }
.eg-g { grid-area: 1 / 1; }
.eg-g > span { display: inline-block; }
.eg-g.busy { color: var(--ink-65); animation: pulse 2s linear infinite; }
.eg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 4px 12px 4px 4px; border-radius: 999px; background: #0014890d; font-size: 13px; color: var(--ink); animation: pill-in .46s var(--ease) both; }
.eg-chip .ini { box-shadow: none; }
.eg-tick { color: var(--blue); opacity: 0; transition: opacity .3s var(--ease); }
.ok > .eg-tick { opacity: 1; }

/* ---------- the map: light-grey tiles, one SVG layer in the same pixel space, pins and place pills ---------- */
.eg-pic { position: absolute; inset: 0; }
.eg-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-origin: 0 0; will-change: transform; }
.eg-world img { position: absolute; left: 0; top: 0; width: 257px; height: 257px; max-width: none; user-select: none; } /* 1px overlap hides seams */
.eg-world svg { position: absolute; left: -700px; top: -420px; overflow: visible; }
.eg-shade { position: absolute; inset: 0; z-index: 30; pointer-events: none; box-shadow: inset 0 0 0 1px #000c1f0d; border-radius: inherit; }
.eg-attr { position: absolute; right: 16px; bottom: 10px; z-index: 31; font-size: 10.5px; line-height: 1; letter-spacing: 0; color: var(--ink-45); }

.eg-bih { fill: none; stroke: var(--ink-45); stroke-width: 1.25px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.eg-fb, .eg-rest { stroke: none; opacity: 0; transition: opacity .7s var(--ease); }
.eg-fb { fill: #0014890f; }
.eg-rest { fill: #ffcd0017; }
.eg-fb.on, .eg-rest.on { opacity: 1; }
.eg-route-halo { fill: none; stroke: #fff; stroke-width: 7px; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.eg-route { fill: none; stroke: var(--navy); stroke-width: 2.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }

.eg-pin { position: absolute; left: 0; top: 0; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 999px; background: var(--navy); box-shadow: 0 0 0 3px #fff, 0 4px 12px #000c1f40; opacity: 0; }
.eg-pin i { position: absolute; inset: -3px; border-radius: 999px; border: 2px solid var(--navy); opacity: 0; }
.eg-place { position: absolute; left: 0; top: 0; z-index: 3; height: 28px; margin: -14px 0 0 18px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-composer), 0 0 0 1px var(--ink-5); white-space: nowrap; opacity: 0; }
.eg-place.l { translate: calc(-100% - 36px) 0; }
.eg-place.in { opacity: 1; animation: pill-in .46s var(--ease) both; }
.eg-line { margin: 12px 0 0 10px; height: 24px; padding: 0 10px; font-size: 12px; font-weight: 400; color: var(--ink-65); }

/* move: the steps list themselves */
.eg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.eg-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 22px; background: var(--grey-50); animation: pill-in .46s var(--ease) both; }
.eg-n { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 500; }
.eg-step-t { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.eg-step-t b { font-size: 14px; font-weight: 500; }
.eg-step-t small { font-size: 12.5px; color: var(--ink-65); }

/* firm: the two entities side by side, stations light up in order */
.eg-vis-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; min-height: 280px; }
.eg-lane { padding: 18px 18px 20px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--ink-5); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.eg-lane.in { opacity: 1; transform: none; }
.eg-lane-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 16px; }
.eg-lane-h b { font-size: 15px; font-weight: 500; }
.eg-days { height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: #0014890d; color: var(--navy); font-size: 12px; opacity: 0; transition: opacity .4s var(--ease); }
.eg-lane.days .eg-days { opacity: 1; }
.eg-lane ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.eg-lane ol::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--ink-10); }
.eg-lane li { position: relative; display: grid; grid-template-columns: 12px 1fr; column-gap: 12px; font-size: 14px; line-height: 1.4; color: var(--ink-45); transition: color .4s var(--ease); }
.eg-lane li i { width: 12px; height: 12px; margin-top: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px #000c1f38; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.eg-lane li.on { color: var(--ink); }
.eg-lane li.on i { background: var(--navy); box-shadow: 0 0 0 3px #00148926; }

/* abroad: pick your city, then the nearest missions */
.eg-cities { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-cities button { height: 36px; padding: 0 16px; border: 1px solid var(--ink-10); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; animation: pill-in .46s var(--ease) both; transition: background-color .2s var(--ease), color .2s var(--ease), opacity .3s var(--ease), border-color .2s var(--ease); }
.eg-cities button:nth-child(2) { animation-delay: .03s; } .eg-cities button:nth-child(3) { animation-delay: .06s; } .eg-cities button:nth-child(4) { animation-delay: .09s; }
.eg-cities button:nth-child(5) { animation-delay: .12s; } .eg-cities button:nth-child(6) { animation-delay: .15s; } .eg-cities button:nth-child(7) { animation-delay: .18s; } .eg-cities button:nth-child(8) { animation-delay: .21s; }
.eg-cities button:hover:not(:disabled) { background: var(--grey-50); }
.eg-cities button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.eg-cities button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; cursor: default; }
.eg-cities button.off { opacity: .35; cursor: default; }
.eg-pin.me { background: #fff; box-shadow: 0 0 0 4px var(--navy), 0 4px 12px #000c1f40; }
.eg-pin.sm { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--ink-45); box-shadow: 0 0 0 2px #fff, 0 2px 6px #000c1f33; }
.eg-pin.sm.near { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--navy); box-shadow: 0 0 0 3px #fff, 0 4px 12px #000c1f40; }
.eg-missions li { padding: 10px 16px; }
.eg-missions li.near { background: #0014890d; }
.eg-dist { flex: none; font-size: 13px; color: var(--ink-65); font-variant-numeric: tabular-nums; }
.eg-missions li.near .eg-dist { color: var(--navy); font-weight: 500; }
.eg-fine { font-size: 12.5px; line-height: 1.4; color: var(--ink-65); animation: fade-in .4s var(--ease) both; }
.eg-loc-btn { flex: none; height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--ink-10); background: #fff; color: var(--ink); font-size: 13px; text-decoration: none; transition: background-color .2s var(--ease); }
.eg-loc-btn:hover { background: var(--grey-50); }
.eg-loc { gap: 12px 16px; flex-wrap: wrap; }
.eg-loc b { font-weight: 500; }
.eg-loc-t { display: grid; line-height: 1.35; }
.eg-loc-t small { font-size: 13px; color: var(--ink-65); }
.eg-loc:has(.eg-loc-btn) { align-self: stretch; justify-content: space-between; flex-wrap: nowrap; }

/* what stays above the answer */
.eg-loc { align-self: flex-start; display: flex; align-items: center; margin-top: 24px; padding: 8px 16px 8px 8px; background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px var(--ink-5), var(--shadow-el-1); font-size: 15px; line-height: 1.4; color: var(--ink); animation: eg-in .7s var(--ease) both; }
.eg-loc p { display: flex; gap: 12px; align-items: center; }
.eg-loc-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 999px; background: #0014890d; color: var(--navy); }
.eg-loc-ic svg { width: 18px; height: 18px; }
.eg-turn .msg-ai > div:not(.thinking):first-child > :first-child { animation: eg-in .7s var(--ease) both; }

/* ---------- cyr: a quiet note under the question, then the script switch ---------- */
.eg-note { align-self: flex-end; margin-top: 8px; font-size: 12.5px; color: var(--ink-65); animation: fade-in .4s var(--ease) both; }
.eg-script { align-self: flex-start; display: inline-flex; gap: 2px; margin-top: 24px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--ink-5), var(--shadow-el-1); animation: eg-in .5s var(--ease) both; }
.eg-script button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-65); font: inherit; font-size: 13px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.eg-script button:hover { color: var(--ink); }
.eg-script button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.eg-script button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- gap: the institutions' view of open questions ---------- */
.eg-board { margin-top: 32px; padding: 20px; border-radius: var(--r-32); background: #fff; box-shadow: 0 0 0 1px var(--ink-5), var(--shadow-el-1); opacity: 0; transform: translateY(10px); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); }
.eg-board.in { opacity: 1; transform: none; filter: none; }
.eg-board header { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-65); }
.eg-board header b { font-weight: 500; }
.eg-tag { flex: none; padding: 2px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-10); font-size: 12px; }
.eg-qcard { margin: 14px 0 18px; padding: 14px 16px; border-radius: 22px; background: #0014890d; transform-origin: 0 0; visibility: hidden; }
.eg-board.landed .eg-qcard { visibility: visible; }
.eg-qcard small { display: block; font-size: 12px; color: var(--ink-65); }
.eg-qcard p { margin-top: 2px; overflow-wrap: anywhere; }
.eg-sent { margin-top: 10px; background: #fff; padding: 4px 12px; display: none; }
.eg-board.sent .eg-sent { display: inline-flex; }
.eg-row { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 3ch; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; color: var(--ink-65); }
.eg-row.mine { color: var(--ink); font-weight: 500; }
.eg-row b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.eg-row.bump b { animation: pill-in .46s var(--ease) both; }
.eg-track { height: 6px; border-radius: 999px; background: var(--ink-5); overflow: hidden; }
.eg-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: #000c1f38; }
.eg-row.mine .eg-track i { background: var(--navy); }
.eg-board-foot { margin-top: 14px; font-family: var(--serif); font-size: 20px; line-height: 1.3; opacity: 0; transition: opacity .6s var(--ease); }
.eg-board.told .eg-board-foot { opacity: 1; }

@media (max-width: 767px) {
  .eg-card { border-radius: 28px; padding: 6px; }
  .eg-vis { border-radius: 22px; }
  .eg-foot { padding: 12px 10px 4px; }
  .eg-status { font-size: 14px; }
  .eg-vis-lanes { grid-template-columns: 1fr; }
  .eg-board { padding: 16px; }
  .eg-row { grid-template-columns: minmax(0, 8rem) 1fr 3ch; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-loc, .eg-script, .eg-note, .eg-chip, .eg-steps li, .eg-turn .msg-ai > div:not(.thinking):first-child > :first-child { animation: none; }
}
