/* Bulíky — wide-screen layout. Tokens and the phone layout live in styles.css. */

/* ---------- Desktop: the pasture runs across the whole window, the game sits centred below ---------- */

.scene__hud {
  position: absolute;
  inset: 0;
}

.side {
  display: none;
}

@media (min-width: 48rem) {
  :root,
  body[data-view='intro'] {
    --scene-h: clamp(280px, 38dvh, 420px);
    --issue-top: 4.9rem;
    --main: 44rem;
    --column: min(100% - 3rem, var(--main));
  }

  html,
  body {
    background: var(--grass);
  }

  /* Grass tufts, so the meadow under the game is not a flat colour. */
  body {
    background-image:
      radial-gradient(ellipse 7px 3px at 20% 30%, var(--grass-deep) 0 98%, transparent 100%),
      radial-gradient(ellipse 5px 2px at 68% 72%, var(--grass-deep) 0 98%, transparent 100%),
      radial-gradient(ellipse 6px 2px at 45% 12%, #2a5e49 0 98%, transparent 100%);
    background-size: 150px 120px, 110px 96px, 190px 140px;
  }

  .world {
    width: 100%;
    border-inline: 0;
    background: none;
  }

  .scene__hud {
    inset: 0 auto;
    left: 50%;
    width: var(--column);
    translate: -50% 0;
  }

  .logo,
  body[data-view='intro'] .logo {
    top: 0.7rem;
    left: 0;
    font-size: 3.1rem;
  }

  .issue {
    left: 0.1rem;
  }

  .profile-chip {
    top: 1.2rem;
    right: 0;
  }

  /* The bull stands just right of the middle; the bubble ends beside his head. */
  .bubble {
    left: auto;
    right: calc(50% + 0.6rem);
    width: max-content;
    max-width: 17rem;
    padding: 0.65rem 0.95rem;
    font-size: 1.1rem;
  }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, var(--main));
    justify-content: center;
    gap: 0 1.75rem;
    width: min(100% - 3rem, 82rem);
    margin-inline: auto;
  }

  .stage {
    padding-inline: 0;
  }

  .options {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }

  .options > li {
    display: grid;
  }

  .actions--sticky {
    margin-inline: 0;
    padding-inline: 0;
  }

  .actions .button:not(.button--quiet) {
    max-width: 24rem;
  }
}

/* Wide enough for side panels: your progress on the left, your herd and the rules on the right. */
@media (min-width: 80rem) {
  .layout {
    grid-template-columns: minmax(14rem, 17rem) minmax(0, var(--main)) minmax(14rem, 17rem);
  }

  .side {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: 1.5rem 0 1.5rem;
  }

  .side__panel {
    margin: 0;
    animation: rise 0.45s var(--ease-out) both;
  }

  .panel + .side__panel {
    margin-top: 0;
  }

  .side .login-button {
    padding-inline: 0.6rem;
    font-size: 0.9rem;
  }

  .side__title {
    margin: 0 0 0.6rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.15;
  }

  .side .level__name {
    font-size: 1.35rem;
  }

  .side .stats {
    margin-top: 0.7rem;
  }

  .side .stats dd {
    font-size: 1rem;
  }

  .side .muted {
    margin-top: 0.6rem;
    font-size: 0.84rem;
  }

  .side__big {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 1;
  }

  .side__big svg {
    width: 2.6rem;
    height: 2.6rem;
  }

  .side__herd {
    margin: 0.7rem 0 0;
    padding: 0;
    list-style: none;
  }

  .side__herd-row {
    display: grid;
    gap: 0.05rem;
    padding: 0.4rem 0;
    border-top: 2px dashed #d9cfb3;
  }

  .side__herd-word {
    font-weight: 800;
  }

  .side__herd-status {
    color: var(--ink-soft);
    font-size: 0.86rem;
  }

  .side__rules {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.95rem;
  }

  .side__rules li + li {
    margin-top: 0.3rem;
  }

  /* The side panel already explains the rules, so the home screen skips them. */
  body[data-view='intro'] .stage .steps,
  .rules-toggle {
    display: none;
  }

  /* The rules are for the home screen; during play they would only push the page taller. */
  body:not([data-view='intro']) .side__panel--rules {
    display: none;
  }

  /* These repeat what the side panels already show. */
  .summary-level--plain,
  .summary-social,
  body[data-view='intro'] .stage .nav-row {
    display: none;
  }
}

/* Big monitors: everything a notch larger instead of a small game in a big field. */
@media (min-width: 100rem) and (min-height: 72rem) {
  html {
    font-size: 112.5%;
  }
}

@media (min-width: 130rem) and (min-height: 80rem) {
  html {
    font-size: 125%;
  }
}
