/* Purpose: the two parts of the home page added on 2026-10-12, shared by the home page and by /2 (which must say the
   same): the "Still baking" notice under the top bar, one link to the devnet site, and the example campaigns that
   play in the hero (examples.js); and, since 2026-10-18, the X and Discord logos in the top bar. It only adds classes of its own and uses the few tokens both pages define, so it
   works over styles.css and over 2/home.css. Sprint: out of band (landing page), 2026-10-12. */

/* The notice is the loaf's colours in both themes: crust orange, dark crumb text. */
.baking {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 18px;
  padding: 13px 18px;
  border: 2px solid #b5670f;
  border-radius: 12px;
  background: #eea546;
  box-shadow: 0 3px 0 #b5670f;
  color: #1b1611;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    background-color 0.12s;
}
.baking:hover {
  background: #f4b65e;
  color: #1b1611;
  text-decoration: none;
  transform: translateY(1px);
  box-shadow: 0 2px 0 #b5670f;
}
.baking b {
  font-family: var(--display, var(--mono, inherit));
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.baking-text {
  flex: 1 1 320px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.baking-go {
  flex: none;
  padding: 8px 14px;
  border-radius: 8px;
  background: #1b1611;
  color: #f7eedb;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* The example campaigns: the cards share one cell, so the box keeps the height of the tallest. */
.read[data-examples] {
  position: relative;
}
.ex-stack {
  display: grid;
}
.ex {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition:
    opacity 0.35s,
    transform 0.35s,
    visibility 0s 0.35s;
}
.ex.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.ex.is-gone {
  transform: translateX(-16px);
}
/* Each card's bar before the script runs: YES's share of its pot. */
.ex-a .bar i {
  width: 62%;
}
.ex-b .bar i {
  width: 68%;
}
.ex-c .bar i {
  width: 59%;
}
.ex-d .bar i {
  width: 53%;
}
.ex .bar i {
  transition: width 0.5s;
}
.ex .side {
  transition:
    opacity 0.2s,
    box-shadow 0.2s;
}
.ex.is-picked .side {
  opacity: 0.55;
}
.ex.is-picked .side.is-picked {
  opacity: 1;
  box-shadow: 0 0 0 2px currentColor;
}
.ex-foot {
  display: grid;
  align-items: start;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.ex-line,
.ex-result {
  grid-area: 1 / 1;
  transition: opacity 0.3s;
}
.ex-line {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.78;
}
.ex-result {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
}
.ex.is-resolved .ex-line {
  opacity: 0;
}
.ex.is-resolved .ex-result {
  opacity: 1;
  visibility: visible;
}
.ex-result img {
  flex: none;
  width: 64px;
  height: 41px;
  object-fit: contain;
}
.ex-words {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ex-stamp {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  opacity: 0.72;
}
.ex-amount {
  min-height: 24px;
  font-family: var(--display, var(--mono, inherit));
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.ex.is-won .ex-amount {
  color: var(--yes-fg, #6be1b4);
}
.ex.is-lost .ex-amount {
  color: var(--no-fg, #fa9aac);
}
.ex-pot {
  min-height: 2.8em;
  font-size: 11.5px;
  line-height: 1.4;
  opacity: 0.78;
}
.ex-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.ex-cursor.is-on {
  opacity: 1;
}
.ex-cursor svg {
  display: block;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

@media (max-width: 860px) {
  .baking {
    margin-top: 14px;
  }
  .baking b {
    font-size: 22px;
  }
}
/* The X and Discord logos in the top bar (2026-10-18), quieter than the theme button beside them. */
.social {
  display: flex;
  gap: 4px;
}
.social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
}
.social a:hover {
  border-color: var(--line);
  color: var(--text);
}
.social svg {
  width: 15px;
  height: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .baking,
  .ex,
  .ex.is-on,
  .ex .bar i {
    transition: none;
  }
}
