/* =============================================================
   The open design: /games/code-name/design/.
   Adapted from the design brief's own styles to the site tokens in
   site.css. Every class here starts with dz- so nothing collides with
   the shared classes (.card, .d, .k and so on). Colours and fonts come
   from the tokens; motion stops under reduced motion because site.css
   switches off every animation and transition.
   ============================================================= */

.dz {
  --panel: #12111A;
  --line-dz: #262433;
  font-size: 18px;
  line-height: 1.6;
}
.dz-w { max-width: 1040px; margin: 0 auto; padding-inline: var(--gut); }
.dz a { color: var(--y); }
.dz a:hover { text-decoration: underline; }

.dz-d {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .005em;
  line-height: .92;
  text-wrap: balance;
}
.dz-k, .dz-cover small {
  display: block;
  font-size: 12.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mut);
}
.dz-mut { color: var(--mut); }

/* ---- Cover ---------------------------------------------------- */
.dz-cover { padding-block: 56px 34px; }
.dz-pill {
  display: inline-block;
  border: 1.5px solid var(--line-dz);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 26px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mut);
}
.dz-cover h1 { font-size: clamp(64px, 13vw, 150px); margin: 14px 0 18px; }
.dz-bars { display: flex; gap: 8px; margin: 0 0 28px; }
.dz-bars i { height: 8px; flex: 0 1 86px; border-radius: 2px; display: block; }
.dz-lede {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  max-width: 30em;
  margin: 0;
  color: var(--text);
}

/* ---- Figures -------------------------------------------------- */
.dz-fig { margin: 0; border-bottom: 1px solid var(--line-dz); padding-block: 0 28px; }
.dz-fig img, .dz-fig video { width: 100%; height: auto; border-radius: 14px; }
.dz-fig figcaption { color: var(--mut); font-size: 13px; letter-spacing: .08em; margin-top: 10px; }
section .dz-fig { border-bottom: 0; padding-block: 0; }

/* ---- Sections ------------------------------------------------- */
.dz section { padding-block: 64px; border-bottom: 1px solid var(--line-dz); }
.dz h2 { font-size: clamp(40px, 6vw, 64px); margin: 10px 0 22px; }
.dz h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 28px;
  margin: 30px 0 8px;
  line-height: 1;
}
.dz p { margin: 0 0 14px; max-width: 44em; }

/* ---- Grids and cards ------------------------------------------ */
.dz-grid { display: grid; gap: 14px; }
.dz-g2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.dz-g4 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.dz-card {
  background: var(--panel);
  border: 1px solid var(--line-dz);
  border-radius: 14px;
  padding: 22px;
  min-width: 0;
}
.dz-card b.dz-t {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
}
.dz-card p { font-size: 16.5px; color: var(--mut); margin: 0; }
.dz-role { border-top: 6px solid var(--c); }
.dz-role b.dz-t { color: var(--c); }

/* ---- Tables --------------------------------------------------- */
.dz-tw { overflow-x: auto; border: 1px solid var(--line-dz); border-radius: 14px; }
.dz table { border-collapse: collapse; width: 100%; font-size: 16.5px; min-width: 560px; }
.dz th, .dz td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-dz); vertical-align: top; }
.dz th {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mut);
  font-weight: 600;
  background: var(--panel);
}
.dz tr:last-child td { border-bottom: 0; }
.dz td.dz-c, .dz th.dz-c { text-align: center; font-weight: 600; }
.dz-dot { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -1px; }

/* ---- Quotes --------------------------------------------------- */
.dz blockquote {
  margin: 0 0 14px;
  padding: 18px 22px;
  border-left: 5px solid var(--g);
  background: var(--panel);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
}
.dz blockquote cite {
  display: block;
  font-family: var(--font-text);
  font-style: normal;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mut);
  margin-top: 10px;
}

/* ---- Numbered loop -------------------------------------------- */
.dz-loop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 10px;
  counter-reset: s;
}
.dz-loop > div {
  background: var(--panel);
  border: 1px solid var(--line-dz);
  border-radius: 12px;
  padding: 18px;
  counter-increment: s;
}
.dz-loop > div::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  color: var(--c, #fff);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.dz-loop b { display: block; font-size: 18px; }
.dz-loop span { color: var(--mut); font-size: 15.5px; }

/* ---- Prompts -------------------------------------------------- */
.dz pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #0D0C14;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  color: #DAD6EA;
  margin: 0 0 14px;
}

/* ---- Steps ---------------------------------------------------- */
.dz-ph { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: p; }
.dz-ph li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line-dz);
  border-radius: 12px;
  padding: 18px 20px;
}
.dz-ph li::before {
  content: counter(p);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 54px;
  line-height: .9;
  color: var(--y);
}
.dz-ph b { display: block; font-size: 20px; }
.dz-ph span { color: var(--mut); font-size: 16.5px; }

/* ---- Open questions ------------------------------------------- */
.dz-q { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dz-q li {
  padding: 14px 18px 14px 46px;
  background: var(--panel);
  border: 1px solid var(--line-dz);
  border-radius: 10px;
  position: relative;
}
.dz-q li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--mut);
  border-radius: 4px;
}
.dz-q b { color: var(--text); }
.dz-new {
  display: inline-block;
  background: var(--g);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: 2px;
  margin-left: 6px;
}

/* ---- Closing note --------------------------------------------- */
.dz-colophon { padding-block: 44px 60px; color: var(--mut); font-size: 14px; }
.dz-colophon .dz-d { font-size: 44px; color: var(--text); margin-bottom: 14px; }

/* ---- Phones --------------------------------------------------- */
@media (max-width: 620px) {
  .dz section { padding-block: 48px; }
  .dz-cover { padding-block: 36px 24px; }
  .dz-ph li { grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; }
  .dz-ph li::before { font-size: 40px; }
  .dz blockquote { font-size: 19px; padding: 14px 16px; }
}
