/*=============== COURT CHEESTER – THEME ON TOP OF THE ETHERLOCKED STYLE ===============
  Loaded only by cheester.html, after styles.css and etherlocked-cartoon.css.
  The page uses <body class="ether-page cheese-page">, so it gets every
  component of the EtherLocked page (hero, cards, TOC, narrative rows,
  buttons, menu, footer). This file only:
    1. swaps the colour tokens for the game's palette (the castle's night
       slate, the gold of the cheese and the jester's bells),
    2. puts the cellar picture behind the hero,
    3. styles the Movement, Enemies and Controls content and keeps pixel art crisp.
===================================================================== */

/* ───────────── 1. TOKENS ───────────── */
.cheese-page {
  /* ground: the castle at night, a soft slate with only a hint of blue
     so it stays easy on the eyes */
  --paper: rgb(30, 32, 41); /* page background */
  --paper-2: rgb(41, 44, 56); /* cards */
  --paper-3: rgb(54, 58, 73); /* chips and small buttons */
  --night: rgb(20, 21, 28); /* footer, menu, frames */
  --text: #eceef3;
  --ink: #1b1d26;
  --pencil: #8e93a8;

  /* accents: cheese gold and the jester's red */
  --orange: #e9a43b;
  --orange-hi: #f3bd5a;
  --orange-dk: #f5c766;
  --mustard: #f8dc8e;
  --brick: #d9605a;
  --itch: #a8322f; /* the jester's red, for the Play on itch.io button */
  --itch-hi: #c03c38;
  --mark: rgba(233, 164, 59, 0.16);

  background-color: var(--paper);
}

/* ───────────── 2. HERO: the castle cellar behind the title ───────────── */
.cheese-page .work-details {
  overflow: hidden;
  background: var(--night) url("../img/Cheester/Cheese-bg.png") 50% 45% / cover no-repeat;
}

/* the picture is already soft; darken it so the title and facts read */
.cheese-page .cheese-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20, 21, 28, 0.35) 0%, rgba(20, 21, 28, 0.75) 100%),
    linear-gradient(to bottom, rgba(20, 21, 28, 0.2) 0%, rgba(20, 21, 28, 0.7) 100%);
}

.cheese-page .work-details .intro {
  position: relative;
  z-index: 1;
}

.cheese-page .work-title {
  text-shadow: 0 4px 0 rgba(20, 21, 28, 0.6), 0 10px 40px rgba(0, 0, 0, 0.7);
}

/* ───────────── 3. CONTENT ───────────── */
/* a wide picture straight under a section title */
.cheese-page .project-section > .section-title + .loop-diagram {
  margin-top: 0;
}

.cheese-page .project-section > .loop-diagram + .about-description1 {
  margin-top: var(--flow-gap);
}

/* pixel art stays sharp when it is scaled up */
.cheese-page .pixel-art {
  image-rendering: pixelated;
}

/* the hop demo: two neighbouring tiles filled like the Enemies cards
   (card colour, rounded, no outline) with a hairline gap between them,
   the game's jester sprite on the first and the site's gold arrow
   over the gap pointing to the second */
.cheese-page .hop-demo {
  --t: 6rem;
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* a tiny gap, so the two filled tiles read as two (the arrow sits between
   them in the markup, hence ~ rather than +) */
.cheese-page .hop-demo__tile ~ .hop-demo__tile {
  margin-left: var(--space-2xs);
}

.cheese-page .hop-demo__tile {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: var(--t);
  height: var(--t);
  background: var(--paper-2);
  border-radius: var(--radius);
}

.cheese-page .hop-demo__jester {
  width: 75%;
  height: auto;
  image-rendering: pixelated;
}

.cheese-page .hop-demo__arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  transform: translate(-50%, -50%);
  fill: var(--orange);
  stroke: none;
}

@media (max-width: 768px) {
  .cheese-page .hop-demo {
    --t: 4.5rem;
    align-self: center;
  }
}

/* Enemies: the game's own guard and bottle sprites, still, at the top of
   their cards; pixelated keeps them crisp */
.cheese-page .mech-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 6.5rem;
  margin-bottom: var(--space-s);
}

.cheese-page .mech-sprite {
  width: auto;
  height: 100%;
  image-rendering: pixelated;
}

/* Enemies: the two enemies side by side, "Caught" across the full width
   underneath them */
.cheese-page .mech-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-m);
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
}

.cheese-page .mech-card {
  display: flex;
  flex-direction: column;
}

.cheese-page .mech-card:last-child {
  grid-column: 1 / -1;
}

.cheese-page .mech-card .contribution-card {
  flex: 1;
}

/* card text: the same size as the My contribution cards, and key words
   with the same highlighter mark as the paragraphs on the page */
.cheese-page .mech-text {
  font-size: var(--fs-body-s);
  line-height: var(--lh-body);
  color: var(--text);
}

.cheese-page .mech-text strong {
  padding: 0.02em 0.18em;
  margin-inline: -0.05em;
  font-weight: 400;
  color: var(--orange-dk);
  background: var(--mark);
  border-radius: 0.4em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media (max-width: 768px) {
  .cheese-page .mech-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}


