:root {
  --cc-paper: #fafaf8;
  --cc-ink: #172033;
  --cc-muted: #657083;
  --cc-line: #d9e1eb;
  --cc-soft: #f1f4f6;
  --cc-coral: #e86a5a;
  --cc-coral-soft: #fff0ed;
}

html:has(.clue-coach-page) {
  background: var(--cc-paper);
}

body.clue-coach-page {
  min-width: 320px;
  color: var(--cc-ink);
  background: var(--cc-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.clue-coach-page a { color: inherit; }
.cc-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--cc-line); background: rgba(250, 250, 248, .96); }
.cc-header-inner { width: min(1240px, calc(100% - 40px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cc-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cc-ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cc-brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 2px solid var(--cc-ink); border-radius: 50% 50% 45% 45%; font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.cc-nav { display: flex; align-items: center; gap: 26px; color: var(--cc-muted); font-size: .86rem; }
.cc-nav a { padding: 24px 0 20px; text-decoration: none; }
.cc-nav a:hover, .cc-nav a:focus-visible { color: var(--cc-ink); }
.cc-nav-active { border-bottom: 2px solid var(--cc-coral); color: var(--cc-ink); font-weight: 700; }
.cc-main { padding: 58px 0 84px; }
.cc-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.cc-hero { margin: 0 auto 42px; text-align: center; }
.cc-hero h1, .cc-card h2, .cc-faq h2 { font-family: Georgia, "Times New Roman", serif; }
.cc-hero h1 { margin: 0; color: var(--cc-ink); font-size: clamp(3.4rem, 7vw, 5.8rem); font-weight: 700; letter-spacing: -.06em; line-height: .95; }
.cc-hero h1::after { display: block; width: 176px; height: 5px; margin: 18px auto 12px; border-radius: 99px; background: var(--cc-coral); content: ""; transform: rotate(-1deg); }
.cc-hero p { margin: 0; color: #50617a; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.cc-play-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: stretch; }
.cc-card { border: 1px solid var(--cc-line); border-radius: 12px; background: rgba(255,255,255,.72); }
.cc-clue-card { padding: 42px 48px 38px; }
.cc-card-kicker { display: flex; justify-content: space-between; gap: 16px; color: var(--cc-muted); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cc-clue-text { margin: 44px 0 12px; color: var(--cc-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.cc-clue-note { margin: 0 0 32px; color: var(--cc-muted); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.cc-answer-field label { display: block; margin-bottom: 8px; color: var(--cc-ink); font-family: Georgia, "Times New Roman", serif; font-size: .98rem; font-weight: 700; }
.cc-answer-field input { display: block; width: 100%; min-height: 60px; padding: 12px 16px; border: 1px solid #b9c8d8; border-radius: 8px; outline: 0; color: var(--cc-ink); background: #fff; font-size: 1.1rem; letter-spacing: .06em; }
.cc-answer-field input:focus { border-color: var(--cc-coral); box-shadow: 0 0 0 3px var(--cc-coral-soft); }
.cc-answer-field p { margin: 8px 0 0; color: var(--cc-muted); font-size: .78rem; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cc-button { min-height: 46px; padding: 10px 20px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: .92rem; font-weight: 750; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.cc-button:hover:not(:disabled) { transform: translateY(-1px); }
.cc-button:focus-visible { outline: 3px solid rgba(232,106,90,.3); outline-offset: 2px; }
.cc-button:disabled { cursor: not-allowed; opacity: .5; }
.cc-button-primary { color: #fff; background: var(--cc-coral); }
.cc-button-primary:hover:not(:disabled) { background: #d95d4d; }
.cc-button-secondary { border-color: #f2b0a7; color: #a34236; background: #fff; }
.cc-button-secondary:hover:not(:disabled) { background: var(--cc-coral-soft); }
.cc-button-quiet { color: var(--cc-muted); background: transparent; }
.cc-button-quiet:hover:not(:disabled) { color: var(--cc-ink); background: var(--cc-soft); }
.cc-status { min-height: 26px; margin: 18px 0 0; color: var(--cc-muted); font-size: .9rem; }
.cc-status[data-tone="success"] { color: #18734c; font-weight: 700; }
.cc-status[data-tone="error"] { color: #ad4036; font-weight: 700; }
.cc-explanation { margin-top: 20px; padding: 18px 20px; border-left: 3px solid var(--cc-coral); background: #fff8f6; color: #455268; font-size: .93rem; line-height: 1.6; }
.cc-explanation p { margin: 0 0 8px; }
.cc-explanation p:last-child { margin-bottom: 0; }
.cc-explanation-label { color: var(--cc-ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 700; }
.cc-progress-card { padding: 32px 30px; }
.cc-streak { color: var(--cc-ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.cc-streak strong { color: var(--cc-coral); }
.cc-dots { display: flex; gap: 12px; margin: 22px 0 30px; padding-bottom: 28px; border-bottom: 1px solid var(--cc-line); }
.cc-dots span { display: block; width: 20px; height: 20px; border-radius: 50%; background: #e5eaf0; }
.cc-dots span.is-done, .cc-dots span.is-current { background: var(--cc-coral); }
.cc-dots span.is-current { box-shadow: 0 0 0 4px var(--cc-coral-soft); }
.cc-hint-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--cc-ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 700; }
.cc-hint-heading span:last-child { color: var(--cc-muted); font-family: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cc-hint-list { position: relative; display: grid; gap: 18px; margin: 22px 0 30px; padding: 0; list-style: none; }
.cc-hint-list::before { position: absolute; top: 22px; bottom: 22px; left: 15px; width: 1px; background: var(--cc-line); content: ""; }
.cc-hint-list li { position: relative; display: flex; align-items: flex-start; gap: 14px; min-height: 34px; color: #9ca8b8; }
.cc-hint-list li span { z-index: 1; display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border: 1px solid var(--cc-line); border-radius: 50%; background: var(--cc-paper); font-size: .83rem; font-weight: 800; }
.cc-hint-list li p { margin: 5px 0 0; font-size: .9rem; line-height: 1.35; }
.cc-hint-list li.is-revealed { color: var(--cc-ink); }
.cc-hint-list li.is-revealed span { border-color: var(--cc-coral); color: #fff; background: var(--cc-coral); }
.cc-local-note { margin: 0; padding-top: 18px; border-top: 1px solid var(--cc-line); color: var(--cc-muted); font-size: .78rem; line-height: 1.6; }
.cc-how-card { margin-top: 22px; padding: 34px 40px 38px; }
.cc-how-card h2, .cc-practice-card h2, .cc-faq h2 { margin: 0 0 10px; color: var(--cc-ink); font-size: 1.8rem; letter-spacing: -.025em; }
.cc-how-card > p { max-width: 700px; margin: 0; color: var(--cc-muted); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.cc-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.cc-how-grid article { display: flex; gap: 14px; padding-top: 18px; border-top: 1px solid var(--cc-line); }
.cc-how-grid article > span { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border: 1px solid #c6d6e5; border-radius: 50%; color: #4b607a; background: #eef3f7; font-weight: 800; }
.cc-how-grid h3 { margin: 3px 0 6px; color: var(--cc-ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.cc-how-grid p { margin: 0; color: var(--cc-muted); font-size: .87rem; line-height: 1.55; }
.cc-practice-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 22px; padding: 26px 30px; }
.cc-practice-card p { margin: 0; color: var(--cc-muted); font-size: .9rem; }
.cc-faq { margin-top: 42px; }
.cc-faq details { border-bottom: 1px solid var(--cc-line); }
.cc-faq summary { padding: 18px 0; cursor: pointer; color: var(--cc-ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 700; }
.cc-faq details p { max-width: 760px; margin: 0 0 18px; color: var(--cc-muted); font-size: .9rem; line-height: 1.65; }
.clue-coach-page .quokka-ad, .clue-coach-page .quokka-footer { color: var(--gt-text); }

@media (max-width: 820px) {
  .cc-header-inner, .cc-shell { width: min(100% - 28px, 680px); }
  .cc-header-inner { min-height: 64px; }
  .cc-nav { gap: 14px; overflow-x: auto; }
  .cc-nav a { padding: 20px 0 17px; }
  .cc-play-grid { grid-template-columns: 1fr; }
  .cc-progress-card { order: -1; }
  .cc-progress-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .cc-streak, .cc-dots, .cc-hint-heading, .cc-hint-list, .cc-local-note { grid-column: 1 / -1; }
  .cc-dots { margin-bottom: 18px; padding-bottom: 18px; }
  .cc-hint-list { margin-bottom: 0; }
  .cc-local-note { margin-top: 4px; }
}

@media (max-width: 560px) {
  .cc-main { padding-top: 38px; }
  .cc-hero { margin-bottom: 30px; }
  .cc-hero h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .cc-hero h1::after { width: 130px; height: 4px; margin-top: 14px; }
  .cc-hero p { font-size: 1.1rem; }
  .cc-clue-card, .cc-progress-card, .cc-how-card { padding: 26px 22px; }
  .cc-clue-text { margin-top: 32px; font-size: 2rem; }
  .cc-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cc-button-primary { grid-column: 1 / -1; }
  .cc-button { width: 100%; padding-inline: 12px; }
  .cc-progress-card { display: block; }
  .cc-how-grid { grid-template-columns: 1fr; gap: 14px; }
  .cc-practice-card { align-items: flex-start; flex-direction: column; padding: 24px 22px; }
  .cc-nav a:nth-child(3) { display: none; }
}
