GLOBALGRID2050 / EXPLORE CODE

Part of: Explore Code / Websites and apps / youengineer-code-review / /

Youengineer Code Review — Styles Style Sheet and 4 more files

A style sheet. Served with the page at https://ventusltd.github.io/youengineer-code-review/.

688 lines of CSS and JavaScript and HTML from youengineer-code-review, in 5 files. Topic: Websites and apps. Section 2042 of 2044.

Cut 2026-12-06T03:07:51+00:00. A copy for reading; the repository at the stated commit is the source.

In the State lines below, domain stage, users and canonical status are rule-based first approximations from code and path evidence (rules explore-agent-rules-v1), not observed facts: the rules.

In this section

  1. Youengineer Code Review — Script render · youengineer-code-review / script.js lines 1–114
  2. Youengineer Code Review — Styles Style Sheet render · youengineer-code-review / styles.css lines 1–415
  3. Youengineer Code Review — World Cup Knockout V5 Page render · youengineer-code-review / world-cup-knockout-v5/index.html lines 1–37
  4. Script Grid render · youengineer-code-review / world-cup-knockout-v5/script-grid.js lines 1–93
  5. Flags render · youengineer-code-review / world-cup-knockout/flags.css lines 1–29

Youengineer Code Review — Script

A JavaScript file that updates clock (`updateClock`) and renders calendar (`renderCalendar`). Served with the page at https://ventusltd.github.io/youengineer-code-review/. It updates clock (`updateClock`) and renders calendar (`renderCalendar`).

renderyouengineer-code-review / script.js · lines 1–114 of 114 · Entry point · pattern updateClock (shared by 2 files)

What it does
It draws its content. Defines updateClock, renderCalendar. Side effects: changes the web page (DOM).
Downstream impact
Used directly by 1 file: Youengineer Code Review — Index Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/). Reached from 1 other entry point, including Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/.
What it achieves
Defines `updateClock` and `renderCalendar`. It responds to click events.
Why it matters
Loaded by the Youengineer Code Review page at https://ventusltd.github.io/youengineer-code-review/.
Application
youengineer-code-review · / · script
Uses
none found
Used by
loaded by Youengineer Code Review — Index Page (script src)
Produces
updateClock, renderCalendar
Defines here
updateClock, renderCalendar
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
youengineer-code-review@929a6d4a955524122e4fd18bd3c85ceaf1a86c56 script.js:1-114 · blob b12565b4471095379b2b546da60d750d26ab1a00 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: unknown · users: none · canonical: unknown
const monthTitle = document.getElementById("monthTitle");
const calendarDays = document.getElementById("calendarDays");
const digitalTime = document.getElementById("digitalTime");
const digitalDate = document.getElementById("digitalDate");
const mythNote = document.getElementById("mythNote");
const hourHand = document.getElementById("hourHand");
const minuteHand = document.getElementById("minuteHand");
const secondHand = document.getElementById("secondHand");

const previousMonthButton = document.getElementById("previousMonth");
const nextMonthButton = document.getElementById("nextMonth");
const todayButton = document.getElementById("todayButton");

const shownDate = new Date();

const mythNotes = [
  "Athena rewards patience before power.",
  "Chronos counts the seconds, but wisdom chooses how to spend them.",
  "Medusa says: do not freeze, debug calmly.",
  "Every temple is built one stone at a time.",
  "A clear commit message is a modern inscription in marble."
];

function updateClock() {
  const now = new Date();

  const hours = now.getHours();
  const minutes = now.getMinutes();
  const seconds = now.getSeconds();

  digitalTime.textContent = now.toLocaleTimeString("en-GB");
  digitalDate.textContent = now.toLocaleDateString("en-GB", {
    weekday: "long",
    day: "numeric",
    month: "long",
    year: "numeric"
  });

  const secondDegrees = seconds * 6;
  const minuteDegrees = minutes * 6 + seconds * 0.1;
  const hourDegrees = (hours % 12) * 30 + minutes * 0.5;

  secondHand.style.transform = `rotate(${secondDegrees}deg)`;
  minuteHand.style.transform = `rotate(${minuteDegrees}deg)`;
  hourHand.style.transform = `rotate(${hourDegrees}deg)`;

  const noteIndex = Math.floor(seconds / 12) % mythNotes.length;
  mythNote.textContent = mythNotes[noteIndex];
}

function renderCalendar() {
  calendarDays.innerHTML = "";

  const year = shownDate.getFullYear();
  const month = shownDate.getMonth();

  monthTitle.textContent = shownDate.toLocaleDateString("en-GB", {
    month: "long",
    year: "numeric"
  });

  const firstDayOfMonth = new Date(year, month, 1);
  const lastDayOfMonth = new Date(year, month + 1, 0);
  const today = new Date();

  // JavaScript starts the week on Sunday. This project uses a Monday-first calendar.
  const emptyDaysBeforeMonth = (firstDayOfMonth.getDay() + 6) % 7;

  for (let i = 0; i < emptyDaysBeforeMonth; i++) {
    const emptySquare = document.createElement("div");
    emptySquare.className = "day empty";
    calendarDays.appendChild(emptySquare);
  }

  for (let dayNumber = 1; dayNumber <= lastDayOfMonth.getDate(); dayNumber++) {
    const daySquare = document.createElement("div");
    daySquare.className = "day";
    daySquare.textContent = dayNumber;

    const isToday =
      dayNumber === today.getDate() &&
      month === today.getMonth() &&
      year === today.getFullYear();

    if (isToday) {
      daySquare.classList.add("today");
      daySquare.setAttribute("aria-label", `${dayNumber}, today`);
    } else {
      daySquare.setAttribute("aria-label", `${dayNumber}`);
    }

    calendarDays.appendChild(daySquare);
  }
}

previousMonthButton.addEventListener("click", () => {
  shownDate.setMonth(shownDate.getMonth() - 1);
  renderCalendar();
});

nextMonthButton.addEventListener("click", () => {
  shownDate.setMonth(shownDate.getMonth() + 1);
  renderCalendar();
});

todayButton.addEventListener("click", () => {
  const today = new Date();
  shownDate.setFullYear(today.getFullYear(), today.getMonth(), today.getDate());
  renderCalendar();
});

renderCalendar();
updateClock();
setInterval(updateClock, 1000);

Youengineer Code Review — Styles Style Sheet

A style sheet. Served with the page at https://ventusltd.github.io/youengineer-code-review/.

renderyouengineer-code-review / styles.css · lines 1–415 of 415 · Entry point

What it does
Side effects: changes the web page (DOM).
Downstream impact
Used directly by 2 files: Youengineer Code Review — Index Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/); Youengineer Code Review — World Cup Knockout V5 Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/world-cup-knockout-v5/). Reached from 1 other entry point, including Civilisation Map (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/civilisation-map.html). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/.
What it achieves
No statement of purpose was found in the file, a README line naming it, or its name.
Why it matters
Loaded by the Youengineer Code Review page at https://ventusltd.github.io/youengineer-code-review/ and 1 other page.
Application
youengineer-code-review · / · style sheet
Uses
none found
Used by
loaded by Youengineer Code Review — Index Page (stylesheet), loaded by Youengineer Code Review — World Cup Knockout V5 Page (stylesheet)
Produces
none declared
Defines here
none
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
youengineer-code-review@929a6d4a955524122e4fd18bd3c85ceaf1a86c56 styles.css:1-415 · blob 79430ca2f3e7d9c20d6f311fcde8baa0adbdd469 · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: unknown · users: none · canonical: unknown
:root {
  --ink: #24190f;
  --marble: #fff8e7;
  --stone: #e9d8b7;
  --bronze: #9e6b2e;
  --olive: #5f6f3a;
  --snake: #273f2c;
  --shade: rgba(36, 25, 15, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 248, 231, 0.96), rgba(171, 137, 86, 0.78)),
    linear-gradient(135deg, #1b231a, #40301f);
  padding: 28px;
}

.temple-shell {
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(255, 248, 231, 0.94);
  border: 8px double var(--bronze);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px var(--shade);
}

.hero {
  text-align: center;
  padding: 34px 24px 24px;
  border-bottom: 3px solid rgba(158, 107, 46, 0.35);
  background:
    linear-gradient(90deg, transparent, rgba(158, 107, 46, 0.12), transparent),
    var(--marble);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--olive);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1;
}

.subtitle {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 1.08rem;
}

.frieze {
  margin: 18px 0 0;
  color: var(--bronze);
  font-weight: bold;
  letter-spacing: 0.18em;
}

.dashboard {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  padding: 28px;
}

.panel {
  background: var(--marble);
  border: 3px solid rgba(158, 107, 46, 0.35);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 35px rgba(36, 25, 15, 0.14);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.medusa-panel {
  text-align: center;
}

.medusa-art {
  position: relative;
  width: 180px;
  height: 150px;
  margin: 0 auto 18px;
}

.face {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 106px;
  height: 108px;
  transform: translate(-50%, -50%);
  border: 4px solid var(--bronze);
  border-radius: 52% 52% 46% 46%;
  background: linear-gradient(#f9e8bd, #d8b36c);
  box-shadow: inset 0 -12px 0 rgba(158, 107, 46, 0.12);
}

.snake {
  position: absolute;
  color: var(--snake);
  font-size: 5.2rem;
  font-weight: bold;
  line-height: 1;
}

.snake-one {
  left: 0;
  top: 4px;
  transform: rotate(-30deg);
}

.snake-two {
  right: 0;
  top: 4px;
  transform: rotate(30deg);
}

.snake-three {
  left: 38px;
  top: -16px;
  transform: rotate(8deg);
}

.snake-four {
  right: 38px;
  top: -16px;
  transform: rotate(-8deg);
}

.eye {
  position: absolute;
  top: 42px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px rgba(95, 111, 58, 0.18);
}

.left-eye {
  left: 28px;
}

.right-eye {
  right: 28px;
}

.nose {
  position: absolute;
  left: 50%;
  top: 56px;
  width: 12px;
  height: 24px;
  border-left: 3px solid rgba(36, 25, 15, 0.5);
  border-bottom: 3px solid rgba(36, 25, 15, 0.5);
  transform: translateX(-50%) rotate(-8deg);
}

.mouth {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 42px;
  height: 14px;
  border-bottom: 4px solid rgba(36, 25, 15, 0.65);
  border-radius: 50%;
  transform: translateX(-50%);
}

.myth-note {
  min-height: 48px;
  margin: 0 auto 18px;
  max-width: 360px;
  color: var(--olive);
  font-style: italic;
}

.clock {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 18px;
  border: 10px double var(--bronze);
  border-radius: 50%;
  background:
    radial-gradient(circle, #fffdf3 0 58%, #e9d8b7 59% 100%);
}

.clock-ring {
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(158, 107, 46, 0.35);
  border-radius: 50%;
}

.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: bottom center;
  border-radius: 999px;
}

.hour-hand {
  width: 8px;
  height: 70px;
  margin-left: -4px;
  background: var(--ink);
}

.minute-hand {
  width: 5px;
  height: 92px;
  margin-left: -2.5px;
  background: var(--olive);
}

.second-hand {
  width: 2px;
  height: 102px;
  margin-left: -1px;
  background: var(--bronze);
}

.clock-centre {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bronze);
  transform: translate(-50%, -50%);
}

.clock-number {
  position: absolute;
  font-weight: bold;
  color: var(--bronze);
}

.twelve {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.three {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.six {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.nine {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.digital-time {
  margin: 0;
  font-size: 2.4rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.digital-date {
  margin: 8px 0 0;
  color: var(--olive);
  font-weight: bold;
}

.calendar-header {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.calendar-header h2 {
  margin: 0;
  text-align: center;
}

button {
  border: 2px solid var(--bronze);
  border-radius: 12px;
  background: #f7e4b9;
  color: var(--ink);
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 14px rgba(36, 25, 15, 0.18);
}

.calendar-header button {
  height: 46px;
  font-size: 1.3rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.weekday-row {
  margin-bottom: 8px;
  text-align: center;
  color: var(--olive);
  font-weight: bold;
}

.day {
  min-height: 70px;
  padding: 8px;
  border: 2px solid rgba(158, 107, 46, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  font-weight: bold;
}

.day.empty {
  background: transparent;
  border-color: transparent;
}

.day.today {
  border-color: var(--bronze);
  background: rgba(158, 107, 46, 0.18);
  box-shadow: inset 0 0 0 3px rgba(158, 107, 46, 0.15);
}

.today-button {
  width: 100%;
  margin: 18px 0;
  padding: 12px 16px;
}

.quest-box {
  border-top: 2px solid rgba(158, 107, 46, 0.25);
  padding-top: 16px;
}

.quest-box h3 {
  margin: 0 0 10px;
}

.quest-box ul {
  margin: 0;
  padding-left: 20px;
}

.quest-box li {
  margin: 8px 0;
}

code {
  background: rgba(95, 111, 58, 0.12);
  padding: 2px 5px;
  border-radius: 5px;
}

@media (max-width: 840px) {
  body {
    padding: 14px;
  }

  .dashboard {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .clock {
    width: 230px;
    height: 230px;
  }

  .day {
    min-height: 54px;
    padding: 6px;
  }
}

Youengineer Code Review — World Cup Knockout V5 Page

A web page. Published at https://ventusltd.github.io/youengineer-code-review/world-cup-knockout-v5/.

renderyouengineer-code-review / world-cup-knockout-v5/index.html · lines 1–37 of 37 · Entry point

What it does
It draws its content. Side effects: changes the web page (DOM).
Why it exists in the grid workflow
README: "Download or clone the repo, then open `index.html` or `civilisation-atlas-v8/index.html` in a browser."
Inputs & outputs
Out: web page.
Downstream impact
It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/world-cup-knockout-v5/.
What it achieves
The README says: Download or clone the repo, then open `index.html` or `civilisation-atlas-v8/index.html` in a browser.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
youengineer-code-review · world-cup-knockout-v5 · page
Uses
Youengineer Code Review — Styles Style Sheet (stylesheet), Script Grid (script src)
Used by
none found
Produces
none declared
Defines here
none
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
youengineer-code-review@929a6d4a955524122e4fd18bd3c85ceaf1a86c56 world-cup-knockout-v5/index.html:1-37 · blob 32f5e65bbec2df91a32129e4cc5f9cf90b214b78 · GitHub at these lines
State
achieves: readme · context: readme_derived · stage: output · effects: dom · domain stage: unknown · users: none · canonical: unknown
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
  <title>World Cup Knockout Predictor v5</title>
  <link rel="stylesheet" href="styles.css?v=5" />
  <script src="script-grid.js?v=8" defer></script>
</head>
<body>
  <main class="app-shell">
    <header class="topbar">
      <div>
        <p class="eyebrow">YouEngineer Football Lab · v5 test copy</p>
        <h1>World Cup Knockout Predictor</h1>
      </div>
      <div class="actions">
        <button id="resetButton" type="button">Reset picks</button>
        <button id="fullscreenButton" type="button">Fullscreen</button>
      </div>
    </header>
    <nav class="round-nav" aria-label="Round navigation">
      <button data-round="round-32" type="button">Round of 32</button>
      <button data-round="round-16" type="button">Round of 16</button>
      <button data-round="quarter-finals" type="button">Quarter-finals</button>
      <button data-round="semi-finals" type="button">Semi-finals</button>
      <button data-round="final" type="button">Final</button>
    </nav>
    <section class="scoreboard" aria-live="polite">
      <div><span class="label">Predicted champion</span><strong id="championName">TBD</strong></div>
      <div><span class="label">Selections</span><strong id="selectionCount">0 / 31</strong></div>
    </section>
    <section class="bracket-wrap" aria-label="Knockout bracket"><div id="bracket" class="bracket"></div></section>
    <footer class="note">v5 isolated version. Updated through Spain 2–1 Belgium; France v Spain confirmed in the semi-final.</footer>
  </main>
</body>
</html>

Script Grid

A JavaScript file in Youengineer Code Review that cleans invalid picks (`cleanInvalidPicks`), sets focus (`setFocus`) and draws SVG graphics. Served with the page at https://ventusltd.github.io/youengineer-code-review/world-cup-knockout-v5/.

renderyouengineer-code-review / world-cup-knockout-v5/script-grid.js · lines 1–93 of 93 · Entry point · pattern scrollRound (shared by 2 files)

What it does
It draws its content. Defines 24 functions or classes, including m, load, save, esc, team. Side effects: changes the web page (DOM); uses storage (browser storage, DuckDB or Parquet).
Inputs & outputs
In: browser storage (getItem). Out: browser storage (setItem); SVG drawing.
Downstream impact
Used directly by 1 file: Youengineer Code Review — World Cup Knockout V5 Page (youengineer-code-review, https://ventusltd.github.io/youengineer-code-review/world-cup-knockout-v5/). It is itself an entry point, published at https://ventusltd.github.io/youengineer-code-review/world-cup-knockout-v5/.
What it achieves
It cleans invalid picks (`cleanInvalidPicks`) and sets focus (`setFocus`). Defines `load`, `save`, `esc` and 19 more. It responds to fullscreenchange, scroll and resize events.
Why it matters
Loaded by the World Cup Knockout V5 page at https://ventusltd.github.io/youengineer-code-review/world-cup-knockout-v5/.
Application
youengineer-code-review · world-cup-knockout-v5 · script
Uses
none found
Used by
loaded by Youengineer Code Review — World Cup Knockout V5 Page (script src)
Produces
m, load, save, esc, team, resultFor, winner, entrants, clearAfter, officialCount, activePickCount, cleanInvalidPicks
Defines here
m, load, save, esc, team, resultFor, winner, entrants, clearAfter, officialCount, activePickCount, cleanInvalidPicks, pick, css, a, flag, eventMinute, eventType, eventText, eventBlock, sourceBlock, nav, scrollRound, setFocus
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
youengineer-code-review@929a6d4a955524122e4fd18bd3c85ceaf1a86c56 world-cup-knockout-v5/script-grid.js:1-93 · blob 3ed65417f890df801ba31747053aec1d4659cf4e · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: dom, storage · domain stage: unknown · users: none · canonical: unknown
"use strict";
const STORE = "youengineer-wc-grid-v5-isolated";
const T = {
  rsa:["South Africa","🇿🇦"], can:["Canada","🇨🇦"], ned:["Netherlands","🇳🇱"], mar:["Morocco","🇲🇦"],
  ger:["Germany","🇩🇪"], par:["Paraguay","🇵🇾"], fra:["France","🇫🇷"], swe:["Sweden","🇸🇪"],
  por:["Portugal","🇵🇹"], cro:["Croatia","🇭🇷"], esp:["Spain","🇪🇸"], aut:["Austria","🇦🇹"],
  usa:["United States","🇺🇸"], bih:["Bosnia and Herzegovina","🇧🇦"], bel:["Belgium","🇧🇪"], sen:["Senegal","🇸🇳"],
  bra:["Brazil","🇧🇷"], jpn:["Japan","🇯🇵"], civ:["Ivory Coast","🇨🇮"], nor:["Norway","🇳🇴"],
  mex:["Mexico","🇲🇽"], ecu:["Ecuador","🇪🇨"], eng:["England",""] , cod:["DR Congo","🇨🇩"],
  arg:["Argentina","🇦🇷"], cpv:["Cape Verde","🇨🇻"], aus:["Australia","🇦🇺"], egy:["Egypt","🇪🇬"],
  sui:["Switzerland","🇨🇭"], dza:["Algeria","🇩🇿"], col:["Colombia","🇨🇴"], gha:["Ghana","🇬🇭"]
};
const sources = {r32:"SB Nation + Reuters / AP / Guardian bundle", r16a:"Reuters + Guardian", r16b:"Reuters + NY Post", r16c:"Reuters + AP + Guardian", r16d:"Reuters", qf:"Reuters + Guardian + AP", committed:"Committed v5 snapshot"};
const rounds = [
  {id:"round-32", title:"Round of 32", count:16, dates:null},
  {id:"round-16", title:"Round of 16", count:8, dates:["Sat 4 Jul, 18:00","Sat 4 Jul, 22:00","Mon 6 Jul, 20:00","Tue 7 Jul, 01:00","Sun 5 Jul, 21:00","Mon 6 Jul, 01:00","Tue 7 Jul, 17:00","Tue 7 Jul, 21:00"]},
  {id:"quarter-finals", title:"Quarter-finals", count:4, dates:["Thu 9 Jul, 21:00","Fri 10 Jul, 20:00","Sat 11 Jul, 22:00","Sun 12 Jul, 02:00"]},
  {id:"semi-finals", title:"Semi-finals", count:2, dates:["Tue 14 Jul, 20:00","Wed 15 Jul, 20:00"]},
  {id:"final", title:"Final", count:1, dates:["Sun 19 Jul, 20:00"]}
];
function m(home,away,date,status,score,winner,events=[],note=null,source="r32",confidence=0.82){return {home,away,date,status,score,winner,events,note,source,confidence}}
const baseMatches = [
  m("rsa","can","Sun 28 Jun, 20:00","FT",[0,1],"can",[{team:"can",player:"Stephen Eustáquio",minute:"90+2"}]),
  m("ned","mar","Tue 30 Jun, 02:00","FT",["1 (2p)","1 (3p)"],"mar",[{team:"ned",player:"Cody Gakpo",minute:"72"},{team:"mar",player:"Issa Diop",minute:"90+1"},{team:"mar",type:"shootout",player:"Ismael Saibari",minute:"pens",detail:"decisive penalty"}]),
  m("ger","par","Mon 29 Jun, 21:30","FT",["1 (3p)","1 (4p)"],"par",[{team:"par",player:"Julio Enciso"},{team:"ger",player:"Kai Havertz"},{team:"par",type:"shootout",player:"José Canale",minute:"pens",detail:"decisive penalty"}]),
  m("fra","swe","Tue 30 Jun, 22:00","FT",[3,0],"fra",[{team:"fra",player:"Kylian Mbappé"},{team:"fra",player:"Bradley Barcola"},{team:"fra",player:"Kylian Mbappé"}]),
  m("por","cro","Fri 3 Jul, 00:00","FT",[2,1],"por",[{team:"cro",player:"Ivan Perišić",minute:"53"},{team:"por",type:"penalty",player:"Cristiano Ronaldo",minute:"68"},{team:"por",player:"Gonçalo Ramos",minute:"90+4"}]),
  m("esp","aut","Thu 2 Jul, 20:00","FT",[3,0],"esp",[{team:"esp",player:"Mikel Oyarzabal"},{team:"esp",player:"Mikel Oyarzabal"},{team:"esp",player:"Pedro Porro"}]),
  m("usa","bih","Thu 2 Jul, 01:00","FT",[2,0],"usa",[{team:"usa",player:"Folarin Balogun",minute:"45"},{team:"usa",player:"Malik Tillman",minute:"82"}]),
  m("bel","sen","Wed 1 Jul, 21:00","FT",[3,2],"bel",[{team:"sen",player:"Habib Diarra"},{team:"sen",player:"Ismaïla Sarr"},{team:"bel",player:"Romelu Lukaku",minute:"86"},{team:"bel",player:"Youri Tielemans",minute:"89"},{team:"bel",type:"penalty",player:"Youri Tielemans",minute:"125"}]),
  m("bra","jpn","Mon 29 Jun, 18:00","FT",[2,1],"bra",[{team:"jpn",player:"Kaishu Sano",minute:"29"},{team:"bra",player:"Casemiro",minute:"55"},{team:"bra",player:"Gabriel Martinelli",minute:"90+6"}]),
  m("civ","nor","Tue 30 Jun, 18:00","FT",[1,2],"nor",[{team:"nor",player:"Antonio Nusa",minute:"36"},{team:"civ",player:"Amad Diallo",minute:"74"},{team:"nor",player:"Erling Haaland",minute:"86"}]),
  m("mex","ecu","Wed 1 Jul, 02:00","FT",[2,0],"mex",[{team:"mex",player:"Julián Quiñones",minute:"22"},{team:"mex",player:"Raúl Jiménez",minute:"32"}]),
  m("eng","cod","Wed 1 Jul, 17:00","FT",[2,1],"eng",[{team:"cod",player:"Brian Cipenga",minute:"7"},{team:"eng",player:"Harry Kane",minute:"75"},{team:"eng",player:"Harry Kane",minute:"86"}]),
  m("arg","cpv","Fri 3 Jul, 23:00","AET",[3,2],"arg",[{team:"arg",player:"Lionel Messi",minute:"29"},{team:"cpv",player:"Deroy Duarte",minute:"59"},{team:"arg",player:"Lisandro Martínez",minute:"92"},{team:"cpv",player:"Sidny Lopes Cabral",minute:"103"},{team:"arg",type:"own_goal",player:"Diney Borges",minute:"111"}]),
  m("aus","egy","Fri 3 Jul, 19:00","FT",["1 (2p)","1 (4p)"],"egy",[{team:"egy",player:"Emam Ashour"},{team:"aus",type:"own_goal",player:"Mohamed Hany"},{team:"egy",type:"shootout",player:"Mohamed Salah",minute:"pens"},{team:"egy",type:"shootout",player:"Hossam Abdelmaguid",minute:"pens",detail:"decisive penalty"}]),
  m("sui","dza","Fri 3 Jul, 04:00","FT",[2,0],"sui",[{team:"sui",player:"Breel Embolo",minute:"10"},{team:"sui",player:"Dan Ndoye",minute:"49"}],"⚠ topology note: earlier source text listed Austria; current bracket uses Algeria"),
  m("col","gha","Sat 4 Jul, 02:30","FT",[1,0],"col",[{team:"col",player:"Jhon Arias",minute:"14"}])
];
rounds[0].dates = baseMatches.map(x => x.date);
const officialRounds = {
  "round-16": [
    m("can","mar","Sat 4 Jul, 18:00","FT",[0,3],"mar",[{team:"mar",player:"Azzedine Ounahi"},{team:"mar",player:"Azzedine Ounahi",minute:"82"},{team:"mar",player:"Soufiane Rahimi",minute:"90+",detail:"late third"}],null,"r16a",0.90),
    m("par","fra","Sat 4 Jul, 22:00","FT",[0,1],"fra",[{team:"fra",type:"penalty",player:"Kylian Mbappé",minute:"70",detail:"foul won by Désiré Doué"}],null,"r16a",0.96),
    m("por","esp","Mon 6 Jul, 20:00","FT",[0,1],"esp",[{team:"esp",player:"Mikel Merino",minute:"91",assist:"Ferran Torres"}],null,"r16a",0.96),
    m("usa","bel","Tue 7 Jul, 01:00","FT",[1,4],"bel",[{team:"bel",player:"Charles De Ketelaere",minute:"9"},{team:"usa",player:"Malik Tillman",minute:"31",detail:"deflected free kick"},{team:"bel",player:"Charles De Ketelaere",detail:"second goal"},{team:"bel",player:"Hans Vanaken",minute:"57"},{team:"bel",player:"Romelu Lukaku",minute:"90+"}],null,"r16c",0.94),
    m("bra","nor","Sun 5 Jul, 21:00","FT",[1,2],"nor",[{team:"nor",player:"Erling Haaland",minute:"79",assist:"Andreas Schjelderup"},{team:"nor",player:"Erling Haaland",minute:"90",assist:"Andreas Schjelderup"},{team:"bra",type:"penalty",player:"Neymar",minute:"90+"}],null,"r16a",0.96),
    m("mex","eng","Mon 6 Jul, 01:00","FT",[2,3],"eng",[{team:"eng",player:"Jude Bellingham",minute:"36"},{team:"eng",player:"Jude Bellingham",minute:"38"},{team:"mex",player:"Julián Quiñones",minute:"42"},{team:"eng",type:"penalty",player:"Harry Kane",minute:"60"},{team:"mex",type:"penalty",player:"Raúl Jiménez",minute:"69"}],null,"r16b",0.94),
    m("arg","egy","Tue 7 Jul, 17:00","FT",[3,2],"arg",[{team:"egy",player:"Yasser Ibrahim",minute:"15"},{team:"egy",player:"Mostafa Zico",minute:"67"},{team:"arg",player:"Cristian Romero",minute:"79"},{team:"arg",player:"Lionel Messi",minute:"83"},{team:"arg",player:"Enzo Fernández",minute:"90+2",assist:"Lautaro Martínez"}],"Messi missed an earlier penalty; Argentina came back from 0-2", "r16d",0.  … [line shortened here: 404 characters; full line on GitHub]
    m("sui","col","Tue 7 Jul, 21:00","FT",["0 (4p)","0 (3p)"],"sui",[{team:"col",type:"shootout",player:"Davinson Sánchez",minute:"pens",detail:"hit crossbar"},{team:"col",type:"shootout",player:"Cucho Hernández",minute:"pens",detail:"saved by Gregor Kobel"},{team:"sui",type:"shootout",player:"Manuel Akanji",minute:"pens",detail:"missed"},{team:"sui",type:"shootout",player:"Ruben Vargas",minute:"p  … [line shortened here: 503 characters; full line on GitHub]
  ],
  "quarter-finals": [
    m("fra","mar","Thu 9 Jul, 21:00","FT",[2,0],"fra",[{team:"fra",player:"Kylian Mbappé",minute:"60"},{team:"fra",player:"Ousmane Dembélé",minute:"66"}],"Mbappé missed a first-half penalty", "qf",0.97),
    m("esp","bel","Fri 10 Jul, 20:00","FT",[2,1],"esp",[{team:"esp",player:"Fabián Ruiz",minute:"30"},{team:"bel",player:"Charles De Ketelaere",minute:"41",assist:"Timothy Castagne"},{team:"esp",player:"Mikel Merino",minute:"88",detail:"rebound after Pau Cubarsí shot"}],null,"qf",0.98),
    m("nor","eng","Sat 11 Jul, 22:00","Predict"),
    m("arg","sui","Sun 12 Jul, 02:00","Predict")
  ]
};
let picks = load(), pos = [], focus = false;
function load(){try{return JSON.parse(localStorage.getItem(STORE))||{}}catch{return {}}}
function save(){localStorage.setItem(STORE,JSON.stringify(picks))}
function esc(v){return String(v??"").replace(/[&<>"']/g,c=>({"&":"&amp;","<":"&lt;",">":"&gt;","\"":"&quot;","'":"&#39;"}[c]))}
function team(k){return k&&T[k]?{id:k,name:T[k][0],flag:T[k][1]}:null}
function resultFor(r,i){return r===0 ? baseMatches[i] : ((officialRounds[rounds[r].id]||[])[i]||{})}
function winner(r,i){const result=resultFor(r,i);return result.winner||picks[`r${r}m${i}`]||""}
function entrants(r,i){return r===0?[team(baseMatches[i].home),team(baseMatches[i].away)]:[team(winner(r-1,i*2)),team(winner(r-1,i*2+1))]}
function clearAfter(r){Object.keys(picks).forEach(k=>{const mm=k.match(/^r(\d+)/);if(mm&&+mm[1]>r)delete picks[k]})}
function officialCount(){return baseMatches.filter(x=>x.winner).length+Object.values(officialRounds).flat().filter(x=>x&&x.winner).length}
function activePickCount(){return Object.keys(picks).filter(k=>{const mm=k.match(/^r(\d+)m(\d+)$/);return !mm||!resultFor(+mm[1],+mm[2]).winner}).length}
function cleanInvalidPicks(){let changed=false;Object.keys(picks).forEach(k=>{const mm=k.match(/^r(\d+)m(\d+)$/);if(!mm)return;const r=+mm[1],i=+mm[2],result=resultFor(r,i),pair=entrants(r,i).map(t=>t&&t.id);if(result.winner||!pair.includes(picks[k])){delete picks[k];changed=true}});if(changed)save()}
function pick(r,i,t){if(!t||resultFor(r,i).winner)return;picks[`r${r}m${i}`]=t.id;clearAfter(r);save();render()}
function css(n,f){const v=parseFloat(getComputedStyle(document.documentElement).getPropertyValue(n));return Number.isFinite(v)?v:f}
function geometry(){const w=css("--card-w",360),h=css("--card-h",244),g=css("--round-gap",48),cg=css("--col-gap",140),p=css("--bracket-pad",12),to=css("--title-offset",38),xs=rounds.map((_,r)=>p+r*(w+cg));pos=[];pos[0]=baseMatches.map((_,i)=>({x:xs[0],y:p+to+i*(h+g)}));for(let r=1;r<rounds.length;r++){pos[r]=[];for(let i=0;i<rounds[r].count;i++){const a=pos[r-1][i*2],b=pos[r-1][i*2+1],cy=(a.y+h/2+  … [line shortened here: 565 characters; full line on GitHub]
function a(label,href){const x=document.createElement("a");x.textContent=label;x.href=href;x.target="_blank";x.rel="noopener noreferrer";return x}
function tools(t){const d=document.createElement("div");d.className="team-tools";if(!t)return d;const q=encodeURIComponent(`${t.name} football team World Cup 2026`);d.append(a("News",`https://news.google.com/search?q=${q}`),a("Wiki",`https://en.wikipedia.org/w/index.php?search=${encodeURIComponent(t.name+" national football team")}`),a("Images",`https://www.google.com/search?tbm=isch&q=${q}`));ret  … [line shortened here: 406 characters; full line on GitHub]
function flag(t){return `<span class="flag ${t.id==="eng"?"england-flag":""}" aria-label="${esc(t.name)} flag">${t.id==="eng"?"":esc(t.flag)}</span>`}
function eventMinute(e){return e.minute===undefined||e.minute===null||e.minute===""?"min tbc":e.minute==="pens"?"pens":`${e.minute}'`}
function eventType(e){return e.type==="penalty"?"pen":e.type==="own_goal"?"OG":e.type==="shootout"?"shootout":""}
function eventText(e){const bits=[eventMinute(e)],typ=eventType(e);if(typ)bits.push(typ);if(e.player)bits.push(e.player);if(e.assist)bits.push(`A: ${e.assist}`);if(e.detail)bits.push(`(${e.detail})`);return bits.join(" · ")}
function eventBlock(result,teamId){const evs=(result.events||[]).filter(e=>e.team===teamId);if(!evs.length)return null;const d=document.createElement("div");d.className="match-events";evs.forEach(e=>{const line=document.createElement("div");line.className="match-event";line.textContent=eventText(e);d.append(line)});return d}
function sourceBlock(result){if(!result.winner&&!result.note)return null;const d=document.createElement("div");d.className="match-source";d.textContent=`${result.note?result.note+" · ":""}${sources[result.source]||sources.committed}${result.confidence?` · c${(+result.confidence).toFixed(2)}`:""}`;return d}
function teamRow(r,i,t,sel,score,result){const wrap=document.createElement("div"),b=document.createElement("button");b.className="team-button";b.type="button";if(!t){b.disabled=true;b.innerHTML='<span class="flag">◇</span><span class="team-name">TBD</span><span></span>';wrap.append(b);return wrap}const locked=!!result.winner,s=sel===t.id;if(s)b.classList.add("selected");if(locked){b.classList.add(  … [line shortened here: 717 characters; full line on GitHub]
function card(r,i){const [x,y]=entrants(r,i),sel=winner(r,i),result=resultFor(r,i),node=document.createElement("article");node.className="match-card";if(result.winner)node.classList.add("official-result");if(r===4)node.classList.add("champion-card");node.style.left=pos[r][i].x+"px";node.style.top=pos[r][i].y+"px";const meta=document.createElement("div");meta.className="match-meta";meta.innerHTML=`  … [line shortened here: 763 characters; full line on GitHub]
function lines(br,g){const svg=document.createElementNS("http://www.w3.org/2000/svg","svg");svg.classList.add("connector-layer");svg.setAttribute("width",g.width);svg.setAttribute("height",g.height);svg.setAttribute("viewBox",`0 0 ${g.width} ${g.height}`);for(let r=0;r<rounds.length-1;r++)for(let i=0;i<rounds[r].count;i++){const m=pos[r][i],n=pos[r+1][Math.floor(i/2)],x1=m.x+g.w,y1=m.y+g.h/2,x2=n.  … [line shortened here: 627 characters; full line on GitHub]
function render(){cleanInvalidPicks();const wrap=document.querySelector(".bracket-wrap"),br=document.getElementById("bracket"),sl=wrap.scrollLeft,st=wrap.scrollTop,g=geometry();br.innerHTML="";br.style.width=g.width+"px";br.style.height=g.height+"px";lines(br,g);rounds.forEach((round,ri)=>{const title=document.createElement("h2");title.className="round-title";title.id=round.id;title.dataset.round=  … [line shortened here: 816 characters; full line on GitHub]
function nav(){const wrap=document.querySelector(".bracket-wrap"),titles=[...document.querySelectorAll(".round-title")];let active=titles[0]?.dataset.round;titles.forEach(t=>{if(t.offsetLeft-60<=wrap.scrollLeft)active=t.dataset.round});document.querySelectorAll(".round-nav button").forEach(b=>b.classList.toggle("active",b.dataset.round===active))}
function scrollRound(id){const w=document.querySelector(".bracket-wrap"),t=document.getElementById(id);if(t)w.scrollTo({left:Math.max(0,t.offsetLeft-12),behavior:"smooth"})}
function setFocus(v){focus=v;document.body.classList.toggle("focus-mode",v);document.getElementById("fullscreenButton").textContent=v?"Exit":"Fullscreen";setTimeout(render,120)}
document.getElementById("resetButton").onclick=()=>{picks={};save();render()};
document.getElementById("fullscreenButton").onclick=async()=>{if(focus){if(document.fullscreenElement&&document.exitFullscreen)await document.exitFullscreen().catch(()=>{});setFocus(false);return}setFocus(true);if(document.documentElement.requestFullscreen)await document.documentElement.requestFullscreen().catch(()=>{})};
document.addEventListener("fullscreenchange",()=>{if(!document.fullscreenElement&&focus)setFocus(false)});
document.querySelector(".round-nav").onclick=e=>{const b=e.target.closest("button[data-round]");if(b)scrollRound(b.dataset.round)};
document.querySelector(".bracket-wrap").addEventListener("scroll",nav,{passive:true});window.addEventListener("resize",render,{passive:true});render();

Flags

A style sheet in the world cup knockout folder of Youengineer Code Review. Served with the page at https://ventusltd.github.io/youengineer-code-review/world-cup-knockout/.

renderyouengineer-code-review / world-cup-knockout/flags.css · lines 1–29 of 29 · Not reached from any entry point (candidate for review)

What it does
Side effects: changes the web page (DOM).
What it achieves
No statement of purpose was found in the file, a README line naming it, or its name.
Why it matters
No other file in the estate was found to import it.
Application
youengineer-code-review · world-cup-knockout · style sheet
Uses
none found
Used by
none found
Produces
none declared
Defines here
none
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
youengineer-code-review@929a6d4a955524122e4fd18bd3c85ceaf1a86c56 world-cup-knockout/flags.css:1-29 · blob 72ddebf6192489d98b863ebc050cbbc061a399fe · GitHub at these lines
State
achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: unknown · users: none · canonical: unreached_review
.england-flag {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.45);
}

.england-flag::before,
.england-flag::after {
  content: "";
  position: absolute;
  background: #cf142b;
}

.england-flag::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 28%;
  transform: translateY(-50%);
}

.england-flag::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 28%;
  transform: translateX(-50%);
}