/* CHUTE — the landing is the factory floor.
   Cream ground, teal ink, one hot coral for the only thing you can press — the game's own style.css,
   continued. The dividers are a real chute drawn in CSS with the game's gauge (belts.js: a dark far rim,
   a grey floor, a lit near wall standing in front), because the whole game is a part falling down one.
   Everything is scoped under .landing; the shared site.css is generated and dark by default, so the
   language pills, the Play chooser and the links are re-dressed for a light factory here. */

.landing{
  /* the game's palette, by its own names (www/style.css, www/belts.js, levels.js COLORS) */
  --ground:#e9e1cf; --panel:#fffbf3; --line:#d8cdb5; --teal:#2a7f8a; --teal-d:#1e5a63;
  --coral:#ff6b4a; --coral-d:#d94f30; --sun:#ffd166; --steel:#4d6b73; --dim:#6f8388;
  --belt-dark:#1e5a63; --belt-face:#256f79; --belt-lit:#3b98a4; --belt-floor:#d4dad3;
  --p-red:#ff5a6a; --p-blue:#4aa8ff; --p-yellow:#ffd166; --p-grey:#aeb9c2; --p-purple:#a66cff; --p-green:#4fc46a;
  font-family:var(--display,'Rubik',system-ui,sans-serif); font-weight:500; font-size:17px; line-height:1.55;
  color:var(--ink); background-color:var(--bg);
  /* the board's faint grid under the opening, fading into the bare floor */
  background-image:
    linear-gradient(to bottom, rgba(244,239,228,0) 0, rgba(244,239,228,.35) 58%, var(--bg) 92%),
    repeating-linear-gradient(90deg, rgba(29,58,63,.055) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg,  rgba(29,58,63,.055) 0 1px, transparent 1px 58px);
  background-repeat:no-repeat, repeat, repeat;
  background-size:100% 760px, auto, auto;
  background-position:center top, center -6px, center -6px;
}
.landing{ min-height:100vh; display:flex; flex-direction:column; }   /* the baseboard sits at the foot of a short page */
.landing main{ flex:1 0 auto; }
.landing .wrap{ max-width:1060px; margin-inline:auto; width:100%; padding-inline:16px; }
@media (min-width:600px){ .landing .wrap{ padding-inline:24px; } }

/* ---- the opening: the wordmark as the menu wears it, and the line falling into its bins ---- */
.landing header{ padding-top:16px; padding-bottom:8px; }
.landing .top{ display:flex; justify-content:flex-end; margin-bottom:26px; }
.landing .opening{ display:grid; gap:26px; align-items:center; }
@media (min-width:900px){
  .landing header{ padding-top:22px; }
  .landing .opening{ grid-template-columns:minmax(300px,1fr) minmax(0,1.12fr); gap:44px; margin-block:14px 8px; }
}
.landing h1{
  margin:0; color:var(--teal); font-weight:800; letter-spacing:.06em; line-height:.95;
  font-size:clamp(54px,13vw,104px); text-shadow:0 .055em 0 #cfe6e9;
}
.landing .tag{ margin:14px 0 0; font-weight:800; font-size:clamp(20px,3.2vw,26px); line-height:1.2; color:var(--ink); max-width:26ch; }
.landing .short{ margin:12px 0 0; color:var(--steel); max-width:34ch; }
.landing .ctas{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:26px; }
.landing .soonline{ color:var(--dim); font-size:14px; font-weight:600; }

/* the Play chooser's button = the game's Start button: coral, a hard shadow, no gradient */
.landing .btn.play{
  font:800 20px/1 var(--display,'Rubik',sans-serif); letter-spacing:.02em; color:#fff;
  background:var(--coral); border:2px solid var(--coral-d); border-radius:14px;
  padding:0 34px; min-height:58px; cursor:pointer; box-shadow:0 4px 0 var(--coral-d);
}
.landing .btn.play:hover{ background:#ff7d60; }
.landing .btn.play:active{ transform:translateY(2px); box-shadow:0 2px 0 var(--coral-d); }

/* the hero: the game's cover, cropped above its own wordmark so only the line and its bins show */
.landing .board{
  margin:0; padding:10px; background:var(--panel); border:2px solid var(--line); border-radius:20px;
  box-shadow:0 6px 0 var(--line), 0 22px 44px rgba(29,58,63,.10);
}
.landing .board{ position:relative; overflow:hidden; }
.landing .board img{ display:block; width:100%; height:auto; border-radius:12px; background:#fdf7ea; }
/* the cover's floor is a grey reflection: it dissolves into the frame instead of stopping on a hard edge */
.landing .board::after{
  content:""; position:absolute; left:2px; right:2px; bottom:10px; height:10%; border-radius:0 0 12px 12px;
  background:linear-gradient(to bottom, rgba(255,251,243,0), rgba(255,251,243,.85) 92%); pointer-events:none;
}

/* ---- the divider: one cell of chute, the gauge and the light of the ones in the game ---- */
.landing .drop{
  width:34px; height:104px; margin:48px auto; position:relative;
  background:linear-gradient(90deg,
    var(--belt-dark) 0 3px, var(--belt-floor) 3px 21px, var(--belt-lit) 21px 25px, var(--belt-face) 25px 34px);
  box-shadow:4px 4px 0 rgba(29,58,63,.09);
}
.landing .drop::after{
  content:""; position:absolute; left:4px; top:74px; width:16px; height:16px; border-radius:50%;
  background:radial-gradient(circle at 34% 28%, rgba(255,255,255,.75), transparent 62%) var(--p-red);
}
@media (prefers-reduced-motion:no-preference){
  .landing .drop::after{ animation:chuteFall 4.4s cubic-bezier(.45,0,.85,.6) infinite; }
  .landing .drop.late::after{ animation-delay:1.6s; background-color:var(--p-blue); }
}
@keyframes chuteFall{ 0%{ top:-20px; opacity:0 } 8%{ opacity:1 } 46%,100%{ top:74px; opacity:1 } }

/* ---- what it is ---- */
.landing main{ padding-bottom:78px; }
.landing h2{ margin:0 0 16px; font-weight:800; font-size:22px; letter-spacing:.01em; color:var(--teal); }
.landing .lead{ margin:0 0 16px; max-width:34em; font-size:clamp(17px,2.1vw,19px); line-height:1.6; }
.landing .about .lead:first-of-type{ font-size:clamp(18px,2.5vw,22px); line-height:1.5; }
/* on a wide page the paragraph and the note stand side by side, the way the guide's line stands beside the board */
@media (min-width:900px){
  .landing .about{ display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:0 34px; align-items:start; }
  .landing .about h2{ grid-column:1/-1; }
  .landing .about .lead{ max-width:none; margin-bottom:0; }
  .landing .about .lead:last-of-type:not(:first-of-type){ margin-top:4px; }
}
/* the second paragraph is the best move in the game — it gets the coral edge */
.landing .about .lead:last-of-type:not(:first-of-type){
  margin-top:26px; padding:16px 20px; font-weight:600; background:var(--panel);
  border:2px solid var(--line); border-left:6px solid var(--coral); border-radius:14px;
  box-shadow:0 3px 0 var(--line);
}

/* ---- the clip and the shots, each in a board frame ---- */
.landing .media{ margin-top:8px; display:grid; gap:16px; }
@media (min-width:820px){ .landing .media{ grid-template-columns:1fr 1fr; } }
.landing .media h2{ grid-column:1/-1; margin-bottom:0; }
.landing .shots{ display:contents; }
@media (min-width:820px){ .landing .shots img:first-of-type{ grid-column:1/-1; } }   /* the fullest board leads */
.landing .clip, .landing .shots img{
  display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover;
  background:var(--panel); border:2px solid var(--line); border-radius:16px; box-shadow:0 4px 0 var(--line);
}
/* a phone holds the 16:9 shot at 358 px: the board would be thumbnail-sized, so the frame closes in on it */
@media (max-width:599px){ .landing .shots img{ aspect-ratio:4/3; object-position:44% 48%; } }


/* ---- the facts: sticker rows, a part's colour on each ---- */
.landing .facts{ margin-top:44px; }
.landing .feat{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
@media (min-width:760px){ .landing .feat{ grid-template-columns:1fr 1fr; } }
.landing .feat li{
  position:relative; margin:0; padding:13px 18px 13px 46px; font-size:16px; line-height:1.45;
  background:#fff; border:2px solid var(--line); border-radius:12px; box-shadow:0 3px 0 var(--line);
}
.landing .feat li::before{
  content:""; position:absolute; left:17px; top:17px; width:14px; height:14px; border-radius:50%;
  background:radial-gradient(circle at 34% 28%, rgba(255,255,255,.8), transparent 62%) var(--part,var(--p-red));
  box-shadow:0 2px 0 rgba(29,58,63,.16);
}
.landing .feat li:nth-child(1){ --part:var(--p-red) }
.landing .feat li:nth-child(2){ --part:var(--p-blue) }
.landing .feat li:nth-child(3){ --part:var(--p-yellow) }
.landing .feat li:nth-child(4){ --part:var(--p-purple) }
.landing .feat li:nth-child(5){ --part:var(--p-green) }
.landing .feat li:nth-child(6){ --part:var(--p-grey) }

/* ---- the language pills and the links: re-dressed for cream ---- */
.landing .langs{ gap:5px; }
.landing .langs a{
  border:2px solid var(--line); background:#fff; color:var(--steel); font-weight:600; font-size:13px;
  padding:6px 10px; text-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none;
  box-shadow:0 2px 0 var(--line);
}
@media (min-width:600px){ .landing .langs{ gap:7px; } .landing .langs a{ font-size:14px; padding:7px 14px; } }
.landing .langs a:hover{ background:#fff; border-color:var(--teal); color:var(--teal); }
.landing .langs a[aria-current="page"]{ background:var(--teal); border-color:var(--teal); color:#fff; box-shadow:0 2px 0 var(--teal-d); }
.landing a{ color:var(--teal-d); }
.landing a:focus-visible, .landing button:focus-visible{ outline:3px solid var(--sun); outline-offset:3px; }

/* ---- the Play chooser: a card off the game's own panel, live stores first, the rest honestly waiting ---- */
.landing .where{ max-width:min(92vw,410px); }
.landing .where::backdrop{ background:rgba(29,58,63,.42); }
.landing .where-box{
  display:flex; flex-direction:column; max-height:min(82vh,620px); padding:20px 20px 18px;
  background:var(--panel); color:var(--ink); border:2px solid var(--line); border-radius:18px;
  box-shadow:0 8px 0 var(--line), 0 30px 60px rgba(29,58,63,.28);
}
.landing .where b{ margin:2px 44px 14px 2px; font-weight:800; font-size:16px; letter-spacing:0; text-transform:none; opacity:1; color:var(--teal); }
.landing .where .opts{ gap:8px; overflow-y:auto; min-height:0; padding:2px; }
.landing .where .opts a, .landing .where .opts .soon{
  padding:11px 15px; min-height:48px; display:flex; align-items:center; border-radius:12px;
  background:#fff; border:2px solid var(--line); color:var(--ink); font-weight:600; box-shadow:0 2px 0 var(--line);
}
.landing .where .opts a:hover, .landing .where .opts a:focus-visible{ background:#fff; border-color:var(--teal); color:var(--teal); }
.landing .where .opts .soon{ opacity:1; background:transparent; color:var(--dim); border-style:dashed; box-shadow:none; }
.landing .where .close{ top:12px; right:12px; }
.landing .where .close button{
  width:38px; height:38px; border:2px solid var(--line); background:#fff; color:var(--steel);
  border-radius:12px; box-shadow:0 2px 0 var(--line); cursor:pointer;
}
.landing .where .close button:hover{ border-color:var(--teal); color:var(--teal); }

/* ---- the footer is the baseboard the floor ends on ---- */
.landing footer{ margin-top:0; padding-block:22px 34px; background:var(--ground); border-top:2px solid var(--line); }
.landing .foot{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 22px; font-size:15px; }
.landing .foot a{ color:var(--teal-d); font-weight:600; text-decoration:none; border-bottom:2px solid rgba(42,127,138,.3); }
.landing .foot a:hover{ border-bottom-color:var(--teal); }
.landing .copy{ color:var(--dim); margin-left:auto; }
@media (max-width:519px){ .landing .copy{ margin-left:0; width:100%; } }
