/* Four in a Row detail page */
:root {
  --ink: #1e304b;
  --muted: #45556c;
  --accent: #245da8;
  --accent-strong: #19477f;
  --line: #dce4ef;
}

body {
  background: #f2f5fa;
  line-height: 1.8;
}

.site-header {
  border-top: 5px solid #245da8;
  background: #fff;
}

.eyebrow { color: #245da8; }

.site-title::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 18px;
  border-radius: 50%;
  background: #cc4145;
  box-shadow: 22px 0 #edbb32;
  vertical-align: middle;
}

.game-detail { gap: 28px; }
.breadcrumb { margin-bottom: 0; }

.game-hero {
  border-top: 4px solid #245da8;
  background: linear-gradient(125deg, #fff 55%, #eaf1fc);
  box-shadow: 0 8px 28px #1e304b08;
}

.game-hero h1 { line-height: 1.5; text-wrap: balance; }
.game-hero p { color: #45556c; line-height: 1.95; }
.detail-app-image-link { border: 1px solid #dce4ef; }

.game-content-layout { gap: 28px; }
.detail-stack { gap: 24px; min-width: 0; }

.content-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 12px;
  box-shadow: 0 4px 18px #1e304b05;
  scroll-margin-top: 24px;
}

.content-card h2 {
  margin: 0 0 22px;
  padding: 0 0 14px 16px;
  border-left: 4px solid #245da8;
  border-bottom: 1px solid #dce4ef;
  color: #19477f;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.content-card p,
.content-card li {
  font-size: 1rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.content-card p { margin-bottom: 20px; }
.content-card h3 {
  margin: 18px 0 12px;
  color: #243e60;
  font-size: 1.08rem;
  line-height: 1.7;
}

.game-content-layout .content-card strong {
  color: #19477f;
  background: #edf3ff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 2px 4px;
}

.content-card .rule-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 4px 0 24px;
  gap: 10px;
}

.rule-steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 58px;
  border-radius: 8px;
  background: #f0f5fd;
}

.rule-steps li::before {
  content: counter(step);
  position: absolute;
  left: 15px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: #245da8;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
}

#solo h2 { border-left-color: #cc4145; }
#duo h2 { border-left-color: #d5a11b; }
#tips h2 { border-left-color: #20836b; }
#tips h3 {
  padding: 10px 14px;
  border-radius: 6px;
  color: #205e50;
  background: #edf7f3;
}

.faq-list h3 {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #dce4ef;
}
.faq-list h2 + h3 { margin-top: 0; padding-top: 0; border-top: 0; }
.faq-list h3::before { content: "Q. "; color: #245da8; }

.game-sidebar { gap: 20px; }
.game-sidebar .content-card { padding: 24px; }
.game-sidebar h2 { font-size: 1.08rem; }
.page-toc ol { gap: 2px; }
.page-toc li { font-size: .9rem; }
.page-toc a {
  display: block;
  padding: 6px 4px;
  text-decoration: none;
  text-underline-offset: 4px;
}
.page-toc a:hover { color: #163f72; text-decoration: underline; }

.primary-button { box-shadow: 0 3px 8px #19477f20; }
.secondary-button { color: #19477f; }
a:focus-visible { outline: 3px solid #b76500; outline-offset: 4px; }

@media (max-width: 960px) {
  .game-content-layout { grid-template-columns: minmax(0, 1fr); }
  .game-sidebar { position: static; grid-row: 1; }
  .game-sidebar > .content-card:last-child { display: none; }
  .page-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}

@media (max-width: 480px) {
  .game-detail { gap: 20px; }
  .content-card, .game-sidebar .content-card { padding: 20px; }
  .content-card h2 { padding-left: 12px; }
  .detail-actions { flex-direction: column; align-items: stretch; }
  .detail-actions a { width: 100%; }
  .page-toc ol { column-gap: 18px; }
  .page-toc li { font-size: .84rem; }
}
