/* ==========================================================================
   Little Roos — site chrome
   The layout every page shares: the bar, the wrap, the tiles, the cards, the
   grown-ups box and the footer. Colour comes only from tokens.css.
   Games do not load this file; they have their own shell.
   ========================================================================== */

img { display: block; max-width: 100%; }

.lr-wrap { max-width: var(--lr-wrap); margin: 0 auto; padding: 0 var(--lr-gutter); }

.lr-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── The bar ─────────────────────────────────────────────────────────────
   White, never teal: the kangaroo is teal and the guidelines reject a teal
   background for the logo. */
.lr-top {
  position: sticky; top: 0; z-index: 30;
  background: var(--lr-white);
  box-shadow: 0 1px 0 var(--lr-hairline);
}
.lr-top__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.lr-top__mark { display: block; line-height: 0; }
.lr-top__mark img { height: 44px; width: auto; padding: 4px 0; }   /* clear space ≥ the R in Roos */
.lr-top__links { display: flex; align-items: center; gap: 1.25rem; }
.lr-top__links a {
  font-weight: 700; font-size: 0.95rem; color: var(--lr-forest); text-decoration: none;
  min-height: var(--lr-tap-min); display: inline-flex; align-items: center;
}
.lr-top__links a:hover { color: var(--lr-deep-teal); }
.lr-top__sound {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--lr-white); border: 0;
  box-shadow: inset 0 0 0 1px rgba(7, 53, 46, 0.14);
  border-radius: var(--lr-radius-pill);
  color: var(--lr-forest); font: inherit; font-size: 0.85rem; font-weight: 700;
  padding: 0.55rem 1rem; cursor: pointer;
}
.lr-top__sound::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(7, 53, 46, 0.25);
}
.lr-top__sound[aria-pressed="true"]::before { background: var(--lr-olive); }

/* ── Headings ────────────────────────────────────────────────────────── */
.lr-h1, .lr-h2 {
  font-family: var(--lr-font-display); font-weight: var(--lr-display-weight);
  line-height: 1.05; color: var(--lr-forest); margin: 0;
}
.lr-h1 { font-size: var(--lr-size-h1); }
.lr-h2 { font-size: var(--lr-size-h2); }
.lr-kicker {
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.lr-lede { font-size: 1.1rem; color: var(--lr-text-muted); font-weight: 500; margin: 0.5rem 0 0; }

/* ── Pills ───────────────────────────────────────────────────────────── */
.lr-pill {
  display: inline-block; font-weight: 700; font-size: 0.8rem;
  padding: 0.45rem 0.9rem; border-radius: var(--lr-radius-pill);
  background: var(--lr-mint-soft); color: var(--lr-deep-teal);
}
.lr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── Place tiles — the five worlds ───────────────────────────────────── */
.lr-worlds {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(200px, 20vw, 280px); gap: 18px;
}
.lr-world {
  position: relative; overflow: hidden;
  border-radius: var(--lr-radius-xl);
  padding: clamp(18px, 2.2vw, 26px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--lr-white); text-decoration: none;
  box-shadow: var(--lr-shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lr-world:hover, .lr-world:focus-visible { transform: translateY(-4px); box-shadow: var(--lr-shadow-pop); color: var(--lr-white); }
.lr-world img {
  position: absolute; right: 6%; top: 8%;
  max-height: 58%; max-width: 46%; width: auto; height: auto;
  filter: drop-shadow(0 12px 16px rgba(7, 53, 46, 0.18));
  transition: transform 0.25s ease;
}
.lr-world:hover img { transform: translateY(-4px) rotate(-3deg); }
.lr-world__teaches {
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.85; margin-bottom: 0.3rem;
}
.lr-world__name {
  font-family: var(--lr-font-display); font-weight: var(--lr-display-weight);
  font-size: var(--lr-size-tile); line-height: 1.05; max-width: 72%;
}
.lr-world__count {
  position: absolute; top: 20px; left: 20px; z-index: 1;
  background: rgba(255, 255, 255, 0.22); border-radius: var(--lr-radius-pill);
  padding: 0.4rem 0.75rem; font-size: 0.8rem; font-weight: 800;
}
/* Five places, five colours, cycling from the manifest order. */
.lr-world--1 { grid-column: span 3; background: var(--lr-mint); color: var(--lr-forest); }
.lr-world--1:hover, .lr-world--1:focus-visible { color: var(--lr-forest); }
.lr-world--1 .lr-world__count { background: rgba(7, 53, 46, 0.12); }
.lr-world--2 { grid-column: span 3; background: var(--lr-deep-teal); }
.lr-world--3 { grid-column: span 2; background: var(--lr-olive); }
.lr-world--4 { grid-column: span 2; background: var(--lr-pink); }
.lr-world--5 { grid-column: span 2; background: var(--lr-forest); }
.lr-world--5 img { max-height: 52%; }

/* ── The Friday card ─────────────────────────────────────────────────── */
.lr-friday[hidden] { display: none; }
.lr-friday {
  margin-top: 22px;
  background: var(--lr-coral); color: var(--lr-white);
  border-radius: var(--lr-radius-xl);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 40px);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 2.6vw, 32px);
  align-items: center; box-shadow: var(--lr-shadow-card);
}
.lr-friday img { height: clamp(96px, 10vw, 130px); width: auto; }
.lr-friday .lr-kicker { opacity: 0.92; }
.lr-friday__name {
  font-family: var(--lr-font-display); font-weight: var(--lr-display-weight);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.02; margin: 0.3rem 0 0.4rem; color: var(--lr-white);
}
.lr-friday p { margin: 0; font-weight: 500; opacity: 0.94; }

/* ── Game cards — the rows and the place pages ───────────────────────── */
.lr-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.lr-game {
  background: var(--lr-white); border-radius: var(--lr-radius-lg);
  padding: 18px; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 0 0 1px var(--lr-hairline);
  color: var(--lr-forest); text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lr-game:hover, .lr-game:focus-visible { transform: translateY(-3px); box-shadow: var(--lr-shadow-card); color: var(--lr-forest); }
.lr-game img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.lr-game__name { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.15; }
.lr-game__meta { display: block; font-size: 0.85rem; color: var(--lr-text-muted); font-weight: 600; margin-top: 0.15rem; }
.lr-game__go {
  margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--lr-mint-soft); color: var(--lr-deep-teal);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.lr-game.is-played .lr-game__go { background: var(--lr-olive); color: var(--lr-white); }

/* Big tiles — a place page is a child's menu, so the games are large. */
.lr-bigtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.lr-bigtile {
  background: var(--lr-white); border-radius: var(--lr-radius-xl);
  padding: 22px; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px var(--lr-hairline);
  color: var(--lr-forest); text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lr-bigtile:hover, .lr-bigtile:focus-visible { transform: translateY(-4px); box-shadow: var(--lr-shadow-card); color: var(--lr-forest); }
.lr-bigtile img {
  position: absolute; top: 18px; right: 18px; max-height: 46%; max-width: 50%; width: auto; height: auto;
}
.lr-bigtile__name {
  font-family: var(--lr-font-display); font-weight: var(--lr-display-weight);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.05; max-width: 80%;
}
.lr-bigtile__meta { font-size: 0.85rem; font-weight: 600; color: var(--lr-text-muted); margin-top: 0.35rem; }
.lr-bigtile__played {
  position: absolute; top: 18px; left: 18px; display: none;
  background: var(--lr-olive); color: var(--lr-white);
  border-radius: var(--lr-radius-pill); padding: 0.35rem 0.7rem; font-size: 0.75rem; font-weight: 800;
}
.lr-bigtile.is-played .lr-bigtile__played { display: inline-block; }
.lr-bigtile__grown {
  position: absolute; bottom: 18px; right: 18px;
  font-size: 0.75rem; font-weight: 700; color: var(--lr-deep-teal); text-decoration: none;
  min-height: var(--lr-tap-min); display: inline-flex; align-items: center;
}

/* ── Grown-ups box ───────────────────────────────────────────────────── */
.lr-grown {
  background: var(--lr-white); border-radius: var(--lr-radius-xl);
  padding: clamp(24px, 3.2vw, 44px);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  box-shadow: 0 0 0 1px var(--lr-hairline);
}
.lr-grown p { margin: 0.4rem 0 0; color: var(--lr-text-muted); max-width: 640px; }
.lr-grown .lr-pills { margin-top: 1.1rem; }

/* ── Sections ────────────────────────────────────────────────────────── */
.lr-section { padding: clamp(36px, 5vw, 56px) 0 0; }
.lr-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.lr-section__head a { font-weight: 800; color: var(--lr-deep-teal); text-decoration: none; }

/* ── Offline note ────────────────────────────────────────────────────── */
.lr-offline {
  display: none; text-align: center; padding: 0.6rem var(--lr-gutter);
  background: var(--lr-mint); color: var(--lr-forest); font-weight: 700; font-size: 0.85rem;
}
.lr-offline.is-on { display: block; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.lr-foot { background: var(--lr-forest); color: var(--lr-white); padding: 56px 0 40px; margin-top: clamp(48px, 6vw, 72px); }
.lr-foot__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.lr-foot img { height: 56px; width: auto; }
.lr-foot p { margin: 14px 0 0; font-size: var(--lr-size-small); color: var(--lr-text-muted-on-dark); max-width: 420px; }
.lr-foot__cols { display: flex; gap: 56px; font-size: var(--lr-size-small); }
.lr-foot__cols b { display: block; margin-bottom: 10px; color: var(--lr-mint); }
.lr-foot__cols a { display: block; margin: 6px 0; color: rgba(255, 255, 255, 0.82); text-decoration: none; min-height: 28px; }
.lr-foot__cols a:hover { color: var(--lr-white); }

/* ── Phone ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .lr-top__inner { height: 64px; }
  .lr-top__mark img { height: 38px; }
  .lr-top__links { gap: 0.75rem; }
  .lr-top__links a { font-size: 0.85rem; }
  .lr-worlds { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 12px; }
  .lr-world--1, .lr-world--2, .lr-world--5 { grid-column: span 2; }
  .lr-world--3, .lr-world--4 { grid-column: span 1; }
  .lr-world { border-radius: var(--lr-radius-lg); }
  .lr-world__name { max-width: 100%; }
  .lr-world--3 img, .lr-world--4 img { max-height: 36%; max-width: 60%; top: 16%; right: 8%; }
  .lr-world--3 .lr-world__count, .lr-world--4 .lr-world__count { display: none; }
  .lr-friday { grid-template-columns: 1fr; text-align: left; }
  .lr-games { grid-template-columns: 1fr; }
  .lr-bigtiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lr-bigtile { min-height: 200px; padding: 16px; border-radius: var(--lr-radius-lg); }
  .lr-bigtile__name { max-width: 100%; }
  .lr-grown { grid-template-columns: 1fr; gap: 20px; }
  .lr-foot__cols { gap: 28px; flex-wrap: wrap; }
}

/* ── The Talk door (shown once site.talk.door is on) ─────────────────── */
.lr-talkdoor {
  background: var(--lr-white); border-radius: var(--lr-radius-xl);
  padding: clamp(24px, 3.2vw, 44px);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 36px); align-items: center;
  box-shadow: 0 0 0 1px var(--lr-hairline);
}
.lr-talkdoor img { width: clamp(84px, 9vw, 120px); height: auto; }
.lr-talkdoor p { margin: 0.4rem 0 0; color: var(--lr-text-muted); max-width: 620px; }
.lr-talkdoor .lr-kicker { color: var(--lr-deep-teal); }
.lr-talkdoor__ctas { display: grid; gap: 10px; justify-items: stretch; }
@media (max-width: 760px) { .lr-talkdoor { grid-template-columns: 1fr; } .lr-talkdoor img { width: 84px; } }
