/* ===========================================
   PAGE: Counter Offer: Coffee Tycoon (loaded after style.css)
   The game's own street: a wall of glazed white tile, black ink, and colour only
   on enamel plates. Bottle green with a gold key-line is the player's chain;
   vermilion is MegaMug, the rival, and every loss. Signs are lettered in Big
   Shoulders Display, as in the game. The nav sits on the shop's fascia; below
   the wall the site's dark questions and footer take over.
   =========================================== */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/counter-offer/fonts/big-shoulders-display.woff2') format('woff2');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

.co {
  --co-tile: #F4F6F5;
  --co-grout: #D3D9D6;
  --co-ink: #101312;
  --co-paper: #FFFFFF;
  --co-mute: #5E6663;
  --co-green: #0E5A43;
  --co-gold: #D2A84C;
  --co-rival: #C93F28;
  --co-sign: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --co-mount: 0 3px 2px rgba(16, 19, 18, 0.2);
}

.co-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The wall: 64x28 tiles laid in a running bond, grout lines and a glaze
   highlight under each one, as behind the shop in the game. */
.co-wall {
  background-color: var(--co-tile);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='56'%3E%3Cpath d='M0 1.5h64M0 29.5h64' stroke='%23fff' stroke-opacity='.9'/%3E%3Cpath d='M0 27.5h64M0 55.5h64M.5 0v28M32.5 28v28' stroke='%23D3D9D6'/%3E%3C/svg%3E");
  background-size: 64px 56px;
  color: var(--co-ink);
}

/* Film grain is the site's texture; on glazed tile it read as dirt. */
.co .grain { opacity: 0.03; }

/* ----- The fascia: at the top the nav is the shop's green sign board ----- */

.co .nav:not(.nav--scrolled) {
  background: var(--co-green);
  border-bottom: 3px solid var(--co-gold);
  box-shadow: 0 1.5px 0 var(--co-ink);
}

.co .nav:not(.nav--scrolled) .nav__link { color: rgba(255, 255, 255, 0.78); }
.co .nav:not(.nav--scrolled) .nav__link:hover,
.co .nav:not(.nav--scrolled) .nav__link:focus-visible { color: #fff; }
.co .nav:not(.nav--scrolled) .nav__hamburger span { background: #fff; }

/* ----- Shared pieces: plates, labels, keys ----- */

.co-plate {
  display: inline-block;
  font-family: var(--co-sign);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  border: 1.5px solid var(--co-ink);
  border-radius: 6px;
  box-shadow: var(--co-mount);
}

/* Coloured enamel: the gold key-line sits just inside the ink edge, and the
   enamel catches the light along its top. */
.co-plate--green {
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%),
    var(--co-green);
  box-shadow: inset 0 0 0 3px var(--co-gold), inset 0 0 0 4.5px var(--co-ink), var(--co-mount);
}

.co-plate--rival {
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%),
    var(--co-rival);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4.5px var(--co-ink), var(--co-mount);
}

.co-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--co-mute);
  margin: 0;
}

.co-num { font-variant-numeric: tabular-nums; }

/* ----- Hero ----- */

.co-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-12)) var(--gutter) var(--space-16);
  border-bottom: 1.5px solid var(--co-ink);
}

.co-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
}

.co-hero__icon {
  width: 88px;
  height: 88px;
  border-radius: 22.5%;
  border: 1.5px solid var(--co-ink);
  box-shadow: 0 6px 0 rgba(16, 19, 18, 0.12);
  margin-bottom: var(--space-6);
}

.co-hero__title {
  margin: 0 0 var(--space-6);
  font-family: var(--co-sign);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.86;
}

.co-hero__name {
  display: block;
  font-size: clamp(64px, 11vw, 132px);
  color: var(--co-ink);
}

.co-hero__plate {
  margin-top: 10px;
  padding: 12px 20px 10px;
  font-size: clamp(34px, 5.6vw, 64px);
}

.co-hero__lead {
  max-width: 30ch;
  margin: 0 0 var(--space-8);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--co-ink);
}

/* Fifteen districts, fifteen rivals, one city: the numbers lead. */
.co-facts {
  display: flex;
  margin: 0 0 var(--space-8);
  padding: 0;
  list-style: none;
}

.co-facts li {
  padding: 0 var(--space-6);
  border-left: 1.5px solid var(--co-ink);
}

.co-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.co-facts b {
  display: block;
  font-family: var(--co-sign);
  font-weight: 900;
  font-size: clamp(44px, 5vw, 60px);
  line-height: 0.9;
  color: var(--co-green);
}

.co-facts span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--co-ink);
}

.co-hero .store-badges { justify-content: flex-start; }

.co-hero__meta {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--co-mute);
}

.co-hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--co-mute);
}

.co-hero__links a {
  color: var(--co-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(16, 19, 18, 0.35);
  transition: text-decoration-color var(--transition-fast);
}

.co-hero__links a:hover { text-decoration-color: var(--co-ink); }

@media (max-width: 767px) {
  .co-hero__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .co-hero__links { margin-top: var(--space-2); }
}

/* ----- The counter: the game's one lever, to try ----- */

.co-stage {
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

.co-counter {
  background: var(--co-paper);
  border: 1.5px solid var(--co-ink);
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--co-ink), 0 24px 40px rgba(16, 19, 18, 0.12);
  overflow: hidden;
}

.co-counter__fascia {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 14px 16px 10px;
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 60%),
    var(--co-green);
}

.co-counter__chain {
  margin: 0;
  font-family: var(--co-sign);
  font-weight: 900;
  font-size: 28px;
  line-height: 0.9;
  text-transform: uppercase;
}

.co-counter__chain small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
}

.co-counter__profit {
  margin: 0;
  padding: 5px 8px 4px;
  background: var(--co-paper);
  color: var(--co-ink);
  border: 1.5px solid var(--co-ink);
  border-radius: 5px;
  text-align: right;
  font-family: var(--co-sign);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
}

.co-counter__profit small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-family);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--co-green);
}

/* Who serves the district: you in green from the left, MegaMug in vermilion
   from the right, the walk-aways in between. */
.co-share {
  display: flex;
  justify-content: space-between;
  height: 22px;
  background: var(--co-paper);
  border-top: 3px solid var(--co-gold);
  border-bottom: 1.5px solid var(--co-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 19px;
  white-space: nowrap;
}

.co-share span {
  min-width: max-content;
  padding: 0 8px;
  transition: width 0.4s ease;
}

.co-share__you { background: var(--co-green); color: #fff; }
.co-share__rival { background: var(--co-rival); color: #fff; text-align: right; }

.co-counter__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  padding: var(--space-5) 16px var(--space-4);
}

.co-price__value {
  display: block;
  margin: 2px 0 10px;
  font-family: var(--co-sign);
  font-weight: 900;
  font-size: 56px;
  line-height: 0.9;
  color: var(--co-ink);
}

.co-price__keys {
  display: flex;
  gap: 8px;
}

/* Keys stand on a 4px ink edge and go down onto it when pressed, as in the game. */
.co-key {
  width: 52px;
  height: 44px;
  border: 1.5px solid var(--co-ink);
  border-radius: 6px;
  background: var(--co-paper);
  color: var(--co-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 0 var(--co-ink);
  transition: transform 80ms ease, box-shadow 80ms ease;
  touch-action: manipulation;
}

.co-key--dark {
  background: var(--co-ink);
  color: #fff;
}

.co-key:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--co-ink);
}

.co-key:focus-visible {
  outline: 3px solid var(--co-gold);
  outline-offset: 2px;
}

.co-key:disabled {
  opacity: 0.35;
  cursor: default;
}

.co-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 0;
  padding-left: var(--space-4);
  border-left: 1.5px solid var(--co-grout);
}

.co-stats dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--co-mute);
}

.co-stats dd {
  margin: 2px 0 0;
  font-family: var(--co-sign);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  color: var(--co-ink);
  white-space: nowrap;
}

.co-stats dd small {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 700;
  color: var(--co-mute);
}

.co-stats .co-is-up { color: var(--co-green); }
.co-stats .co-is-rival { color: var(--co-rival); }

/* Customers the counter can't serve walk to the rival: hatched in vermilion. */
.co-counter__line {
  margin: 0 16px var(--space-3);
  padding: 4px 8px;
  border: 1.5px dashed var(--co-rival);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--co-rival);
  background: repeating-linear-gradient(135deg, rgba(201, 63, 40, 0.08) 0 6px, transparent 6px 12px);
}

.co-counter__line[hidden] { display: none; }

.co-counter__news {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 10px 16px;
  border-top: 1.5px solid var(--co-ink);
  background: var(--co-tile);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--co-ink);
}

.co-counter__news::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--co-ink);
  background: var(--co-gold);
}

.co-counter__news[data-tone="rival"]::before { background: var(--co-rival); }
.co-counter__news[data-tone="win"]::before { background: var(--co-green); }

.co-stage__hint {
  margin: var(--space-5) 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--co-mute);
  text-align: center;
}

@media (min-width: 960px) {
  .co-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .co-hero__inner {
    width: 100%;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-16);
  }

  .co-stage {
    max-width: 480px;
    justify-self: end;
  }
}

@media (max-width: 420px) {
  .co-facts li { padding: 0 var(--space-4); }
  .co-counter__body { gap: var(--space-4); padding-left: 12px; padding-right: 12px; }
  .co-price__value { font-size: 48px; }
  .co-key { width: 46px; }
  .co-stats { padding-left: var(--space-3); gap: 10px; }
  .co-stats dd { font-size: 26px; }
}

/* ----- Section headings: the site's small number, the game's sign face ----- */

.co-heading {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin: 0 0 var(--space-12);
  font-family: var(--co-sign);
  font-weight: 900;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--co-ink);
}

.co-heading .section-head__num,
.co .faq__title .section-head__num {
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: none;
}

.co-heading .section-head__num { color: var(--co-green); }

/* ----- Screens: a green enamel band, like the game's own sign ----- */

.co-shots {
  padding: var(--space-20) 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 30%),
    var(--co-green);
  border-top: 4px solid var(--co-gold);
  border-bottom: 4px solid var(--co-gold);
  box-shadow: 0 1.5px 0 var(--co-ink), 0 -1.5px 0 var(--co-ink);
}

.co-shots .co-heading {
  padding: 0 var(--gutter);
  color: #fff;
}

.co-shots .co-heading .section-head__num { color: var(--co-gold); }

.co-shots__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 62vw, 280px);
  gap: var(--space-5);
  margin: 0;
  padding: 4px var(--gutter) var(--space-6);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.co-shots__row:focus-visible {
  outline: 3px solid var(--co-gold);
  outline-offset: -3px;
}

.co-shots__row li { scroll-snap-align: start; }

.co-shots__row img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1.5px solid var(--co-ink);
  box-shadow: 0 4px 0 rgba(16, 19, 18, 0.45), 0 20px 36px rgba(0, 0, 0, 0.25);
}

/* Wide screens show every slide side by side, as the store does. */
@media (min-width: 1360px) {
  .co-shots__row {
    grid-auto-columns: minmax(0, 300px);
    overflow: visible;
  }
}

/* ----- How you win: plates on the wall ----- */

.co-win {
  padding: var(--space-20) var(--gutter);
  border-bottom: 1.5px solid var(--co-ink);
}

.co-feats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.co-feat {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--co-paper);
  border: 1.5px solid var(--co-ink);
  border-radius: 6px;
  box-shadow: var(--co-mount);
}

.co-feat__sign {
  display: flex;
  align-items: center;
  min-height: 72px;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1.5px solid var(--co-grout);
}

.co-feat__title {
  margin: 0 0 var(--space-3);
  font-family: var(--co-sign);
  font-weight: 900;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--co-ink);
}

.co-feat__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--co-mute);
}

/* 1. The rival's price tag, as it hangs over the counter. */
.co-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px 8px;
  background: var(--co-paper);
  border: 1.5px solid var(--co-ink);
  border-radius: 6px;
  box-shadow: var(--co-mount);
  font-family: var(--co-sign);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--co-ink);
}

.co-tag b { color: var(--co-rival); }

/* 2. The district, served more by you than by them. */
.co-minishare {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 30px;
  border: 1.5px solid var(--co-ink);
  border-radius: 4px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 27px;
  text-transform: uppercase;
  white-space: nowrap;
}

.co-minishare span { padding: 0 10px; color: #fff; }
.co-minishare span:first-child { background: var(--co-green); }
.co-minishare span:last-child { background: var(--co-rival); text-align: right; }

/* 3. Big figures. */
.co-big {
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
  margin: 0;
}

.co-big b {
  font-family: var(--co-sign);
  font-weight: 900;
  font-size: 76px;
  line-height: 0.8;
  color: var(--co-green);
}

.co-big span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--co-ink);
}

/* 4. A manager's rules, as the game's segmented control. */
.co-seg {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1.5px solid var(--co-ink);
  border-radius: 5px;
  overflow: hidden;
}

.co-seg li {
  flex: 1;
  padding: 10px 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--co-ink);
}

.co-seg li + li { border-left: 1.5px solid var(--co-ink); }
.co-seg li[aria-current] { background: var(--co-green); color: #fff; }

/* 5. The morning's news, pinned to the wall. */
.co-news {
  width: 100%;
  padding: 10px 14px 12px;
  background: var(--co-tile);
  border: 1.5px solid var(--co-ink);
  border-radius: 4px;
  transform: rotate(-1deg);
}

.co-news__head {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--co-mute);
}

.co-news__title {
  margin: 0;
  font-family: var(--co-sign);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--co-ink);
}

/* 6. Seven days on the calendar, three taken. */
.co-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.co-days li {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1.5px solid var(--co-ink);
  border-radius: 4px;
  font-family: var(--co-sign);
  font-weight: 900;
  font-size: 20px;
  color: var(--co-ink);
  background: var(--co-paper);
}

.co-days li[data-done] { background: var(--co-green); color: #fff; }
.co-days li[data-today] { background: var(--co-gold); }

/* 7. Fair by design: black enamel, the gold key-line, the promise in figures. */
.co-fair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6) var(--space-12);
  align-items: center;
  margin-top: var(--space-6);
  padding: var(--space-10) var(--space-8);
  background: var(--co-ink);
  color: #fff;
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px var(--co-gold), inset 0 0 0 4.5px var(--co-ink), var(--co-mount);
}

.co-fair__figure {
  margin: 0;
  font-family: var(--co-sign);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.85;
}

.co-fair__figure b {
  display: block;
  font-size: clamp(96px, 14vw, 160px);
  color: var(--co-gold);
}

.co-fair__figure span {
  display: block;
  font-size: clamp(30px, 3.6vw, 44px);
}

.co-fair h3 {
  margin: 0 0 var(--space-3);
  font-family: var(--co-sign);
  font-weight: 900;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.co-fair p {
  max-width: 60ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}

.co-fair ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.co-fair li {
  padding: 6px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 720px) {
  .co-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-fair { grid-template-columns: auto minmax(0, 1fr); }
}

@media (min-width: 1100px) {
  .co-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ----- Questions: the site's dark accordion, headed in the sign face ----- */

.co .faq__title {
  font-family: var(--co-sign);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 var(--space-10);
}

.co .faq__title .section-head__num { color: var(--co-gold); }

.co .accordion__content a { color: #fff; }

.co .faq__help-note {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .co-key,
  .co-share span { transition: none; }
  .co-key:active { transform: none; }
}
