/* ═══════════════════════════════════════════════════════
   Guide Page — css/guide.css
   Depends on css/base.css (tokens + nav)
   ═══════════════════════════════════════════════════════ */

/* ── Hero / Video Section ────────────────────────────── */
.guide-hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem 1rem;
  text-align: center;
}

.guide-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.guide-video-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-video-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.guide-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--card-bg);
}

.guide-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Tab Section ─────────────────────────────────────── */
.guide-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.guide-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.guide-tabs::-webkit-scrollbar {
  display: none;
}

.guide-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.guide-tab:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-accent);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-1px);
}

.guide-tab.active {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

.guide-tab svg {
  width: 16px;
  height: 16px;
}

/* ── Content Panels ──────────────────────────────────── */
.guide-panel {
  display: none;
}

.guide-panel.active {
  display: block;
  animation: guideTabFadeUp 0.2s ease;
}

@keyframes guideTabFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.guide-panel-body {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.guide-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-panel-title svg {
  width: 20px;
  height: 20px;
  color: var(--text-accent);
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-list li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.9rem;
}

.guide-list li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: var(--text-accent);
  font-size: 0.9rem;
}

/* ── Rotation ────────────────────────────────────────── */
.rot-prepull-block {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-left: 3px solid var(--text-accent);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.rot-prepull-heading {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-accent);
  margin-bottom: 0.5rem;
}

.rot-prepull-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rot-prepull-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.rot-prepull-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--text-accent);
}

.rot-prepull-list a[href*="/spell="],
.rot-prepull-list a[href*="/npc="] {
  color: #ffd100 !important;
  font-weight: 700;
  text-decoration: none;
}

.rot-prepull-list a[href*="/item="] {
  font-weight: 700;
  text-decoration: none;
}

.rot-section-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-accent);
  margin: 1.5rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rot-steps,
.rot-priority {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  counter-reset: rot-counter;
}

.rot-steps li,
.rot-priority li {
  counter-increment: rot-counter;
  position: relative;
  padding: 0.35rem 0 0.35rem 2.1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.rot-steps li::before,
.rot-priority li::before {
  content: counter(rot-counter);
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.4rem;
  height: 1.4rem;
  background: rgba(255, 209, 0, 0.12);
  border: 1px solid rgba(255, 209, 0, 0.3);
  border-radius: 4px;
  color: var(--text-accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rot-steps a[href*="/spell="],
.rot-priority a[href*="/spell="],
.rot-rule a[href*="/spell="],
.rot-loop a[href*="/spell="],
.rot-note a[href*="/spell="],
.rot-goal a[href*="/spell="],
.rot-steps a[href*="/npc="],
.rot-priority a[href*="/npc="],
.rot-rule a[href*="/npc="],
.rot-loop a[href*="/npc="],
.rot-note a[href*="/npc="],
.rot-goal a[href*="/npc="] {
  color: #ffd100 !important;
  font-weight: 700;
  text-decoration: none;
}

.rot-steps a[href*="/item="],
.rot-priority a[href*="/item="],
.rot-rule a[href*="/item="],
.rot-loop a[href*="/item="],
.rot-note a[href*="/item="],
.rot-goal a[href*="/item="] {
  font-weight: 700;
  text-decoration: none;
}

.rot-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0 1rem;
  line-height: 1.55;
}

.rot-goal {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.rot-subheading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
}

.rot-priority-desc {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.rot-priority-desc a[href*="/spell="],
.rot-priority-desc a[href*="/npc="] {
  color: #ffd100 !important;
  font-weight: 700;
  text-decoration: none;
}

.rot-priority-desc a[href*="/item="] {
  font-weight: 700;
  text-decoration: none;
}

.rot-rule {
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: rgba(80, 200, 120, 0.06);
  border-left: 3px solid #50c878;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0 0.75rem;
  line-height: 1.65;
}

.rot-loop {
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: rgba(255, 209, 0, 0.05);
  border-left: 3px solid var(--text-accent);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 0;
  line-height: 1.65;
}

/* ── Talent Build ────────────────────────────────────── */
.talent-build {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.talent-tier-row {
  display: grid;
  grid-template-columns: 1.75rem auto 1fr;
  gap: 0 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.talent-tier-row:last-of-type {
  border-bottom: none;
}

.talent-tier-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}

.talent-tier-icons {
  display: flex;
  gap: 0.375rem;
}

.talent-cell {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  overflow: hidden;
  transition: all 0.2s ease;
  opacity: 0.3;
  filter: grayscale(0.6);
}

.talent-cell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Prevent Wowhead iconizeLinks from injecting background-image into talent grid cells */
.talent-cell.icontinyl {
  background-image: none !important;
  padding-left: 0 !important;
}


.talent-cell.active {
  opacity: 1;
  filter: none;
  border-color: var(--success-color);
  box-shadow: 0 0 0 2px var(--success-color), 0 4px 12px rgba(16, 185, 129, 0.3);
}

.talent-cell:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.08);
}

.talent-tier-text {
  min-width: 0;
}

.talent-explain-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffd100;
}

.talent-explain-name a {
  color: #ffd100 !important;
  text-decoration: none;
}

.talent-explain-name a:hover {
  text-decoration: underline;
}

.talent-tier-text p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.talent-tier-text p a {
  color: #ffd100 !important;
  font-weight: 700;
  text-decoration: none;
}

.talent-boss-note {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.talent-boss-note strong {
  color: var(--text-accent);
}

/* ── Macros ──────────────────────────────────────────── */
.macro-grid {
  columns: 2;
  column-gap: 1rem;
}

.macro-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  break-inside: avoid;
  margin-bottom: 1rem;
}

.macro-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffd100;
  padding: 0.625rem 0.875rem 0.625rem calc(0.875rem - 3px);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #ffd100;
  border-bottom: 1px solid var(--border-color);
  margin: 0;
}

.macro-code-wrap {
  position: relative;
}

.macro-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.macro-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.macro-copy-btn.copied {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.macro-code {
  margin: 0;
  padding: 1.25rem 0.875rem 0.75rem;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre;
  overflow-x: auto;
}

.macro-code code {
  font-family: inherit;
}

.macro-desc {
  padding: 0.625rem 0.875rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.015);
}

.macro-desc a[href*="/npc="],
.macro-desc a[href*="/spell="] {
  color: #ffd100 !important;
  font-weight: 700;
  text-decoration: none;
}

.macro-desc a[href*="/item="] {
  font-weight: 700;
  text-decoration: none;
}

.macro-slots {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.35rem;
}

.macro-slots span {
  display: block;
  line-height: 1.7;
}

.macro-slots span code {
  margin-right: 0.3rem;
}

.macro-slots code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 0.05rem 0.35rem;
  color: var(--text-secondary);
}

.mc-comment { color: #4b5563; }
.mc-cmd  { color: #c084fc; }
.mc-cond { color: #67e8f9; }

/* ── Stats ───────────────────────────────────────────── */
.stats-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

/* Priority bar */
.stats-priority {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.stats-priority-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.stats-priority-chain {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.stats-priority-arrow {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.stats-wowsims-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-accent);
  text-decoration: none;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.06);
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.stats-wowsims-cta:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.5);
}

.stats-source-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  border-radius: 3px;
}

/* Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.stats-block {
  background: none;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.stats-block:first-child {
  border-right: 1px solid var(--border-color);
}

/* Section headings */
.stats-block-heading {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Bar rows */
.stats-bars {
  padding: 0.875rem 1rem;
}

.stat-bar-row {
  margin-bottom: 1rem;
}

.stat-bar-row:last-child {
  margin-bottom: 0;
}

.stat-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.5rem;
  margin-bottom: 0.3rem;
}

.stat-bar-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-accent);
  text-decoration: none;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.08);
  transition: background 0.15s, border-color 0.15s;
}

.stat-bar-link:hover {
  background: rgba(124, 58, 237, 0.16);
  border-color: rgba(124, 58, 237, 0.6);
}

.stat-bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.stat-bar-fill {
  height: 100%;
  background: var(--accent-color);
  border-radius: 3px;
}

.stat-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-bar-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-bar-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-bar-meta .stat-bar-val:only-child {
  margin-left: auto;
}

/* Gold highlight (Intellect) */
.stat-bar-row--highlight .stat-bar-name {
  color: #ffd100;
}

.stat-bar-row--highlight .stat-bar-fill {
  background: #ffd100;
}

.stat-bar-row--highlight .stat-bar-val {
  color: #ffd100;
}

/* Hero highlight (Haste) — gold, mirrors Intellect */
.stat-bar-row--hero .stat-bar-name {
  color: #ffd100;
}

.stat-bar-row--hero .stat-bar-fill {
  background: #ffd100;
}

.stat-bar-row--hero .stat-bar-pct {
  color: #ffd100;
}

.stat-bar-row--hero .stat-bar-val {
  color: #ffd100;
}

.stat-bar-row--hero .stat-bar-link {
  color: #ffd100;
  border-color: rgba(255, 209, 0, 0.35);
  background: rgba(255, 209, 0, 0.08);
}

.stat-bar-row--hero .stat-bar-link:hover {
  background: rgba(255, 209, 0, 0.16);
  border-color: rgba(255, 209, 0, 0.6);
}

/* Inline caption under a stat row */
.stat-bar-caption {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.stat-bar-caption a {
  color: unset;
  font-weight: 600;
  text-decoration: none;
}

.stat-bar-caption a:hover {
  text-decoration: underline;
}

.stat-bar-caption a.icontinyl {
  background-size: 13px 13px !important;
  padding-left: 18px;
  background-position: left center;
}


@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stats-block:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .stats-wowsims-cta span {
    display: none;
  }
}

/* ── Boss Accordion (T15 Tips) ──────────────────────── */
.boss-wing-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 1.5rem 0 0.5rem;
}

.boss-wing-label:first-of-type {
  margin-top: 0.5rem;
}

.boss-accordion {
  border-bottom: 1px solid var(--border-color);
}

.boss-accordion:last-of-type {
  border-bottom: none;
}

.boss-accordion-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
  border-radius: 6px;
}

.boss-accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.boss-accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.boss-accordion-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.boss-accordion-chevron {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.boss-accordion-header.active .boss-accordion-chevron {
  transform: rotate(0deg);
}

.boss-accordion-header:not(.active) .boss-accordion-chevron {
  transform: rotate(-90deg);
}

.boss-accordion-body {
  display: none;
  padding: 0 0.5rem 0.75rem;
}

.boss-accordion-body.active {
  display: block;
}

.boss-tips {
  list-style: none;
  padding: 0;
  margin: 0;
}

.boss-tips li {
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.85rem;
}

.boss-tips li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: var(--text-accent);
  font-size: 0.85rem;
}

.boss-tips a[href*="/spell="] {
  color: #ffd100 !important;
  font-weight: 700;
  text-decoration: none;
}

.boss-tips a[href*="/item="] {
  font-weight: 700;
  text-decoration: none;
}

.boss-tips a[href*="/npc="] {
  color: #ffd100 !important;
  font-weight: 700;
  text-decoration: none;
}

.boss-rules {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border-left: 2px solid var(--border-color);
  line-height: 1.5;
}

.boss-rules a {
  color: #ffd100 !important;
  font-weight: 700;
  text-decoration: none;
}

/* ── Expand / Collapse All ─────────────────────────── */
.boss-expand-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.boss-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.boss-expand-btn:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--text-accent);
  border-color: rgba(124, 58, 237, 0.3);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .guide-hero {
    padding: 2rem 1.25rem 0.75rem;
  }

  .guide-content {
    padding: 0 1.25rem 3rem;
  }

  .guide-tabs {
    justify-content: flex-start;
    padding: 1.25rem 0;
    gap: 0.4rem;
  }

  .guide-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .guide-panel-body {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }

  .guide-panel-title {
    font-size: 1.1rem;
  }

  .talent-tier-row {
    grid-template-columns: 1.5rem auto 1fr;
    gap: 0 0.75rem;
    padding: 0.625rem 0;
  }

  .talent-cell {
    width: 42px;
    height: 42px;
  }

  .macro-grid {
    columns: 1;
  }

  /* Rotation — tighten numbered badge rows */
  .rot-steps li,
  .rot-priority li {
    font-size: 0.85rem;
  }

  .rot-section-heading {
    font-size: 0.9rem;
    margin-top: 1.25rem;
  }

  .rot-rule,
  .rot-loop,
  .rot-note {
    font-size: 0.82rem;
    padding: 0.625rem 0.75rem;
  }

  /* Boss accordion — allow name to wrap */
  .boss-accordion-name {
    font-size: 0.85rem;
  }

  .boss-accordion-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .guide-hero {
    padding: 1.5rem 1rem 0.5rem;
  }

  .guide-content {
    padding: 0 1rem 2.5rem;
  }

  .guide-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }

  .guide-panel-body {
    padding: 1rem 0.875rem;
  }

  .guide-list li {
    font-size: 0.85rem;
  }

  .talent-tier-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .talent-tier-label {
    text-align: center;
    font-size: 0.625rem;
  }

  .talent-tier-icons {
    justify-content: center;
  }

  .talent-cell {
    width: 38px;
    height: 38px;
    border-radius: 6px;
  }

  /* Rotation — numbered counter shrinks */
  .rot-steps li::before,
  .rot-priority li::before {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.7rem;
  }

  .rot-steps li,
  .rot-priority li {
    font-size: 0.82rem;
    padding-left: 1.85rem;
  }

  .rot-rule,
  .rot-loop,
  .rot-note {
    font-size: 0.8rem;
    padding: 0.5rem 0.625rem;
  }

  /* Boss accordion — stack icon tighter on small phones */
  .boss-accordion-header {
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
  }

  .boss-accordion-icon {
    width: 24px;
    height: 24px;
  }

  .boss-accordion-name {
    font-size: 0.82rem;
  }

  .boss-tips li {
    font-size: 0.8rem;
  }
}
