/* ============================================
   TANKFUL — Cheat Sheet styles + Print
   ============================================ */

/* ---------- Cheat sheet screen layout ---------- */
.cheatsheet-body {
  padding: 0;
}

.sheet {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .sheet { padding: 48px 36px 60px; gap: 32px; }
}

/* Header */
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideDown 0.6s ease backwards;
}

.sheet-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sheet-brand .brand-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.sheet-brand .brand-icon svg {
  width: 28px;
  height: 28px;
}

.sheet-brand h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .sheet-brand h1 { font-size: 2.1rem; }
}

.sheet-sub {
  font-size: 0.875rem;
  color: var(--text-soft);
  font-weight: 500;
  margin-top: 4px;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-btn,
.solid-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.ghost-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.solid-btn {
  background: var(--accent);
  color: var(--c-4);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.2);
}

.ghost-btn:hover,
.solid-btn:hover { transform: translateY(-2px); }

.ghost-btn svg,
.solid-btn svg { width: 16px; height: 16px; }

/* Rules grid */
.rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  animation: fadeSlideUp 0.7s 0.1s ease backwards;
}

@media (min-width: 600px) {
  .rules { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (min-width: 980px) {
  .rules { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

.rule {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 18px 18px 18px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.18);
}

.rule-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--c-4);
  color: var(--accent);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  font-feature-settings: "tnum";
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.25);
}

.rule-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 6px;
}

.rule-body p {
  font-size: 0.825rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.45;
}

.rule-body p strong { color: var(--text); font-weight: 600; }
.rule-body p em { font-style: italic; }

/* Big callout */
.big-callout {
  background: var(--accent);
  border-radius: 28px;
  padding: 22px 26px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.25);
  animation: fadeSlideUp 0.7s 0.2s ease backwards;
}

.callout-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.callout-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.callout-text strong {
  font-weight: 800;
  color: var(--c-4);
}

/* Footer */
.sheet-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  text-align: center;
}

.sheet-footer .dot { opacity: 0.5; }

/* ============================================
   PRINT STYLES
   Optimized for 8.5x11 portrait, single page
   ============================================ */
@media print {

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  @page {
    size: letter portrait;
    margin: 0.5in;
  }

  html, body {
    background: white !important;
    color: black !important;
    font-size: 9.5pt;
  }

  /* Hide all the gooey background stuff */
  .bg-stage,
  .bg-noise,
  .blob,
  .no-print { display: none !important; }

  .sheet {
    max-width: 100%;
    padding: 0;
    gap: 12px;
  }

  /* Override theme variables with print-safe versions */
  body[data-state="neutral"],
  body[data-state="fill-up"],
  body[data-state="wait"] {
    --text: #111;
    --text-soft: #333;
    --text-faint: #666;
    --c-4: #D9442F;          /* warm print-safe coral */
    --accent: #fff;
    --glass-bg: #fff;
    --glass-border: #d0d0d0;
    --glass-shadow: none;
  }

  .sheet-header { margin-bottom: 6px; }

  .sheet-brand h1 {
    font-size: 18pt;
    color: #111 !important;
  }

  .sheet-sub {
    font-size: 9pt;
    color: #555 !important;
  }

  .sheet-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: #D9442F !important;
    color: white !important;
    box-shadow: none !important;
  }

  /* Rules: 3-col grid on print */
  .rules {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .rule {
    background: white !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .rule-num {
    width: 26px;
    height: 26px;
    font-size: 11pt;
    background: #D9442F !important;
    color: white !important;
    box-shadow: none !important;
    border-radius: 6px !important;
  }

  .rule-body h3 {
    font-size: 9pt;
    color: #111 !important;
    margin-bottom: 3px;
  }

  .rule-body p {
    font-size: 8pt;
    color: #444 !important;
    line-height: 1.35;
  }

  .rule-body p strong { color: #111 !important; }

  .big-callout {
    background: #FFF6F0 !important;
    border: 1px solid #D9442F !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin-top: 8px;
    page-break-inside: avoid;
    box-shadow: none !important;
  }

  .callout-icon { font-size: 16pt; }
  .callout-text { font-size: 9pt; }
  .callout-text strong { color: #D9442F !important; }

  .sheet-footer {
    font-size: 7pt;
    color: #888 !important;
    margin-top: 6px;
  }
}
