/* Intro screen: "made within Y-Cycle" with the project logos. The logos are drawn for a light
   background, so the card is ivory paper on the game's night board. */
.ycintro {
  position: fixed; inset: 0; z-index: 1000; /* above every game layer */
  display: flex; align-items: center; justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 40%, #2a2e37 0%, #14161b 70%);
  font-family: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}
.ycintro[hidden] { display: none !important; }
.ycintro-card {
  width: min(560px, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: clamp(.5rem, 2.2vh, 1rem);
  padding: clamp(14px, 3.5vh, 28px) clamp(16px, 4vw, 32px);
  background: #fbf7ee; color: #1d2433; text-align: center;
  border: 2px solid #e0b04a; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.ycintro-kicker { margin: 0; font-family: "Alegreya SC", Georgia, serif; font-weight: 700; font-size: clamp(1.1rem, 3.4vh, 1.5rem); color: #14161b; letter-spacing: .02em; }
.ycintro-logo-link { display: block; line-height: 0; }
.ycintro-logo { height: clamp(54px, 16vh, 116px); width: auto; max-width: 100%; }
.ycintro-text { margin: 0; font-size: clamp(.98rem, 2.6vh, 1.12rem); line-height: 1.45; max-width: 34em; }
.ycintro-text strong { white-space: nowrap; }
.ycintro-url-line { margin: 0; }
.ycintro-url { font-weight: 700; color: #1f5f8b; text-underline-offset: .2em; word-break: break-word; }
.ycintro-url:hover { color: #14161b; }
.ycintro-url:focus-visible, .ycintro-logo-link:focus-visible, .ycintro-play:focus-visible { outline: 3px solid #1f5f8b; outline-offset: 3px; border-radius: 6px; }
.ycintro-funders {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(.75rem, 3vw, 1.5rem);
  width: 100%; box-sizing: border-box; padding: clamp(.4rem, 1.5vh, .7rem) .75rem;
  background: #fff; border: 1px solid #e4dccb; border-radius: 10px;
}
.ycintro-funders img { height: clamp(38px, 11vh, 64px); width: auto; max-width: 100%; }
.ycintro-play {
  appearance: none; margin-top: .15rem; min-height: 46px; padding: 10px 34px; border-radius: 10px; cursor: pointer;
  background: #e0b04a; color: #1b1608; border: 1.5px solid #c99a33; font: inherit; font-weight: 800; font-size: 1.08rem;
}
.ycintro-play:hover { background: #ecc263; }
/* Landscape phones are short: put the Y-Cycle logo beside the text. */
@media (max-height: 460px) and (min-width: 560px) {
  .ycintro-card {
    width: min(740px, 100%); display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; text-align: left;
    grid-template-areas: 'logo kicker' 'logo text' 'logo url' 'funders funders' 'play play';
  }
  .ycintro-kicker { grid-area: kicker; }
  .ycintro-logo-link { grid-area: logo; align-self: center; }
  .ycintro-logo { height: auto; width: min(240px, 34vw); }
  .ycintro-text { grid-area: text; }
  .ycintro-url-line { grid-area: url; }
  .ycintro-funders { grid-area: funders; }
  .ycintro-play { grid-area: play; justify-self: center; }
}
