/* Page-specific styles for the No-Limit Hold'em tutorial.
   Layered on top of /styles.css (monochrome site theme). */

article.detail.nlh-page {
  max-width: 900px;
}
article.detail.nlh-page > p,
article.detail.nlh-page > ul,
article.detail.nlh-page > ol,
article.detail.nlh-page > h2,
article.detail.nlh-page > .back,
article.detail.nlh-page > .meta,
article.detail.nlh-page > h1 {
  max-width: 720px;
}

.nlh-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.nlh-section h2 {
  font-family: var(--mono);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white);
  margin-bottom: 0.5rem;
  padding-left: 0;
  border-left: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nlh-section h2::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
}
.nlh-section .blurb {
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

.nlh-sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  margin: 1.75rem 0 0.75rem;
}

/* ============ Playing cards (shared look with PLO4) ============ */
.pc {
  display: inline-flex;
  flex-direction: column;
  width: 46px;
  height: 64px;
  background: #f0f0f0;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  padding: 2px 4px 3px;
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1;
  user-select: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.pc.red  { color: #8a8a8a; }
.pc.dark { color: #1a1a1a; }
.pc.face-down {
  background: repeating-linear-gradient(45deg, #1a1a1a 0 8px, #2a2a2a 8px 16px);
  border-color: #1a1a1a;
}
.pc.empty {
  background: transparent;
  border: 1px dashed var(--line-hi);
  box-shadow: none;
}
.pc.win {
  box-shadow: 0 0 0 2px var(--white), 0 0 16px rgba(255, 255, 255, 0.35), 0 2px 0 rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
.pc-rank { font-size: 1.4rem; line-height: 0.95; align-self: flex-start; }
.pc-suit {
  font-size: 2.1rem;
  line-height: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}
.pc-sm { width: 34px; height: 48px; padding: 1px 3px 2px; border-radius: 3px; }
.pc-sm .pc-rank { font-size: 1rem; }
.pc-sm .pc-suit { font-size: 1.5rem; }
.pc-lg { width: 54px; height: 76px; padding: 3px 5px 4px; }
.pc-lg .pc-rank { font-size: 1.65rem; }
.pc-lg .pc-suit { font-size: 2.55rem; }

/* ============ Table / seat diagram ============ */
.nlh-diagram {
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem;
  margin: 1rem 0 1.5rem;
}
.nlh-diagram svg { width: 100%; height: auto; display: block; }
.seat-felt {
  fill: #141414;
  stroke: var(--line-hi);
  stroke-width: 1.5;
}
.seat-circle {
  fill: var(--surface-hi);
  stroke: var(--line-hi);
  stroke-width: 1.5;
}
.seat-circle.blind { stroke: var(--white); stroke-width: 2; }
.seat-circle.btn   { fill: var(--white); stroke: var(--white); }
.seat-pos {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  fill: var(--white);
  text-anchor: middle;
  dominant-baseline: middle;
}
.seat-pos.on-btn { fill: #0c0c0c; }
.seat-num {
  font-family: var(--mono);
  font-size: 9px;
  fill: var(--grey-dim);
  text-anchor: middle;
  dominant-baseline: middle;
}
.seat-num.on-btn { fill: #555; }
.dealer-chip { fill: var(--white); stroke: #0c0c0c; stroke-width: 1; }
.dealer-chip-txt {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  fill: #0c0c0c;
  text-anchor: middle;
  dominant-baseline: middle;
}
.felt-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--grey-faded);
  text-anchor: middle;
  text-transform: uppercase;
}

.seat-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--grey);
}
.seat-legend b {
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* ============ Board-building strip ============ */
.board-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem;
  margin: 1rem 0 1.5rem;
}
.board-street { text-align: center; }
.board-street .cards { display: flex; gap: 0.35rem; justify-content: center; }
.board-street .street-name {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-top: 0.55rem;
}
.board-street .street-desc {
  font-size: 0.72rem;
  color: var(--grey-faded);
  margin-top: 0.15rem;
}
.board-arrow {
  font-family: var(--mono);
  color: var(--grey-faded);
  align-self: center;
  padding-bottom: 1.5rem;
}

/* ============ Hand ranking reference ============ */
.rank-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rank-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--white);
  border-radius: 2px;
  padding: 0.7rem 0.95rem;
}
.rank-order {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--grey-dim);
  text-align: center;
}
.rank-info .rank-name {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.rank-info .rank-desc {
  font-size: 0.82rem;
  color: var(--grey);
  margin-top: 0.15rem;
}
.rank-cards { display: flex; gap: 0.25rem; }

/* ============ Quiz ============ */
.nlh-quiz {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--white);
  border-radius: 2px;
  padding: 1.5rem;
}

.quiz-hud {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.quiz-hud .hud-item { display: flex; gap: 0.4rem; align-items: baseline; }
.quiz-hud .hud-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--grey-faded);
}
.quiz-hud .hud-val { color: var(--white); font-weight: 700; font-size: 0.95rem; }
.quiz-progress {
  flex: 1;
  min-width: 120px;
  height: 5px;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--white);
  width: 0;
  transition: width 0.3s ease-out;
}

.quiz-board-host { text-align: center; margin: 0.5rem 0 1.75rem; }
.quiz-board-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--grey-faded);
  margin-bottom: 0.6rem;
}
.quiz-board-cards { display: flex; justify-content: center; gap: 0.45rem; flex-wrap: wrap; }

.quiz-players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.quiz-player {
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quiz-player.win {
  border-color: var(--white);
  box-shadow: inset 0 0 0 1px var(--white);
}
.quiz-player.lose { opacity: 0.5; }
.quiz-player-name {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.quiz-player-cards { display: flex; justify-content: center; gap: 0.4rem; }
.quiz-player-hand {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 0.75rem;
  min-height: 1rem;
}

.quiz-choices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
}
.quiz-choice {
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  padding: 0.85rem 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 700;
}
.quiz-choice:hover:not(:disabled) {
  border-color: var(--white);
  background: var(--surface-hi);
  transform: translateY(-1px);
}
.quiz-choice.chop { color: var(--grey); }
.quiz-choice:disabled { cursor: default; }
.quiz-choice.correct {
  background: var(--white);
  color: #0c0c0c;
  border-color: var(--white);
}
.quiz-choice.wrong {
  border-color: var(--grey-dim);
  color: var(--grey-dim);
  text-decoration: line-through;
}

.quiz-feedback {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.6;
  min-height: 1.5rem;
  color: var(--grey);
}
.quiz-feedback .verdict-right { color: #ffffff; font-weight: 700; }
.quiz-feedback .verdict-wrong { color: var(--grey-dim); font-weight: 700; }
.quiz-feedback .accent { color: var(--white); }

.quiz-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.nlh-btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--white);
  color: #0c0c0c;
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--white);
  border-radius: 2px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.nlh-btn:hover:not(:disabled) { background: transparent; color: var(--white); }
.nlh-btn.secondary { background: transparent; color: var(--grey); border-color: var(--line-hi); }
.nlh-btn.secondary:hover:not(:disabled) { border-color: var(--white); color: var(--white); }
.nlh-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Intro + results panels */
.quiz-panel { text-align: center; padding: 1.5rem 0.5rem; }
.quiz-panel p { color: var(--grey); max-width: 46ch; margin: 0 auto 1.25rem; }
.quiz-score {
  font-family: var(--mono);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin: 0.5rem 0;
}
.quiz-score small { font-size: 1.4rem; color: var(--grey-dim); }
.quiz-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 420px;
}
.quiz-stat { border: 1px solid var(--line); border-radius: 2px; padding: 0.9rem 0.5rem; }
.quiz-stat .stat-val { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.quiz-stat .stat-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-faded);
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  .quiz-players { grid-template-columns: 1fr; }
  .quiz-choices { grid-template-columns: 1fr; }
  .pc { width: 40px; height: 56px; }
  .pc .pc-rank { font-size: 1.2rem; }
  .pc .pc-suit { font-size: 1.85rem; }
  .board-strip { gap: 0.75rem; }
  .board-arrow { display: none; }
}
