/* ===== GUIDE / LANDING PAGES ===== */
/* Shared styles for content pages (rules, scorecard, yatzy, friends). Matches the existing guide look. */

.page-container {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1a9ab8 0%, #0d7a94 50%, #065666 100%);
  overflow: hidden;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.page-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.15s;
}

.page-back:hover {
  background: rgba(255, 255, 255, 0.25);
}

.page-back svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.page-back span {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-transform: lowercase;
}

.page-logo {
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 40px;
  -webkit-overflow-scrolling: touch;
}

.page-content::-webkit-scrollbar {
  width: 6px;
}

.page-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.content-wrapper {
  max-width: 640px;
  margin: 0 auto;
  font-family: 'Nunito', sans-serif;
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 12px;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #fff;
}

.page-title {
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  margin: 0 0 10px;
}

.page-intro {
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 24px;
}

.guide-section {
  margin-bottom: 32px;
}

.content-wrapper > p {
  font-size: clamp(15px, 3.8vw, 17px);
  font-weight: 600;
  line-height: 1.6;
}

.guide-section h2 {
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 900;
  line-height: 1.25;
  color: #fbbf24;
  margin: 0 0 12px;
}

.guide-section h3 {
  font-size: clamp(17px, 4.2vw, 19px);
  font-weight: 900;
  color: #fff;
  margin: 20px 0 8px;
}

.guide-section p,
.guide-section li {
  font-size: clamp(15px, 3.8vw, 17px);
  font-weight: 600;
  line-height: 1.6;
}

.guide-section p {
  margin: 0 0 16px;
}

.guide-section ul,
.guide-section ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.guide-section li {
  margin-bottom: 8px;
}

.guide-section strong {
  color: #fff;
  font-weight: 900;
}

.content-wrapper a:not(.play-cta):not(.nav-link):not(.footer-link):not(.more-guides a) {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.8);
  text-underline-offset: 3px;
}

.tip-box {
  padding: 16px;
  background: rgba(251, 191, 36, 0.15);
  border-radius: 12px;
  border-left: 4px solid #fbbf24;
  margin: 16px 0;
}

.tip-box p {
  margin: 0;
}

.tip-box strong {
  color: #fbbf24;
}

/* Tables (scoring reference, comparisons) */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 700;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
}

.data-table th {
  color: #fbbf24;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.15);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td:first-child {
  color: #fff;
  font-weight: 800;
}

/* Big call to action back into the game */
.play-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
  padding: 16px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, #4ecdc4 0%, #26a69a 100%);
  box-shadow: 0 5px 0 #1a7a72, 0 8px 15px rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(0, 50, 50, 0.3);
  transition: transform 0.15s;
}

.play-cta:hover {
  transform: translateY(-2px);
}

.play-cta.cta-online {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 5px 0 #92400e, 0 8px 15px rgba(0, 0, 0, 0.15);
  text-shadow: 0 2px 0 rgba(100, 50, 0, 0.3);
}

/* Links to every guide, at the bottom of each page */
.more-guides {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.more-guides h2 {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
}

.more-guides-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.more-guides a {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s;
}

.more-guides a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.more-guides a[aria-current="page"] {
  background: rgba(251, 191, 36, 0.25);
}

.page-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.footer-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  text-transform: lowercase;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 8px;
}

.trademark-note {
  margin: 12px 0 0;
}

/* Light themes: dark text */
[data-theme="ice"] .content-wrapper,
[data-theme="ice"] .page-title,
[data-theme="ice"] .page-intro,
[data-theme="ice"] .guide-section h3,
[data-theme="ice"] .guide-section strong { color: #0c4a6e; }
[data-theme="ice"] .guide-section h2 { color: #0369a1; }
[data-theme="pastel"] .content-wrapper,
[data-theme="pastel"] .page-title,
[data-theme="pastel"] .page-intro,
[data-theme="pastel"] .guide-section h3,
[data-theme="pastel"] .guide-section strong { color: #831843; }
[data-theme="pastel"] .guide-section h2 { color: #9333ea; }
[data-theme="ice"] .content-wrapper a:not(.play-cta),
[data-theme="ice"] .data-table td:first-child,
[data-theme="ice"] .more-guides h2,
[data-theme="ice"] .breadcrumbs a,
[data-theme="ice"] .footer-link,
[data-theme="ice"] .page-footer { color: #0c4a6e !important; }
[data-theme="pastel"] .content-wrapper a:not(.play-cta),
[data-theme="pastel"] .data-table td:first-child,
[data-theme="pastel"] .more-guides h2,
[data-theme="pastel"] .breadcrumbs a,
[data-theme="pastel"] .footer-link,
[data-theme="pastel"] .page-footer { color: #831843 !important; }
[data-theme="ice"] .data-table th { color: #0369a1; }
[data-theme="pastel"] .data-table th { color: #9333ea; }
[data-theme="neon"] .guide-section h2 { color: #0ff; }
[data-theme="retro"] .guide-section h2 { color: #0f0; }
[data-theme="matrix"] .guide-section h2 { color: #22c55e; }
[data-theme="halloween"] .guide-section h2 { color: #f97316; }
