/* /introduction — lore e apresentacao do servidor (views/content/bodies/introduction.php) */
.intro { display: flex; flex-direction: column; gap: 28px; color: var(--po-text, #ccc); }
.intro p { line-height: 1.75; margin: 0 0 12px; }
.intro b { color: var(--po-text-bright, #fff); font-weight: 600; }

.intro-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--po-accent, #FF9F00); font-weight: 600; }

/* hero */
.intro-hero { position: relative; border-radius: var(--po-radius, 8px); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end;
  background: var(--bg) center / cover no-repeat; image-rendering: pixelated; border: 1px solid var(--po-border, #272618); }
.intro-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 4, .25) 0%, rgba(5, 6, 4, .75) 55%, rgba(5, 6, 4, .97) 100%); }
.intro-hero__inner { position: relative; padding: 32px 28px 28px; max-width: 640px; }
.intro-hero__title { margin: 10px 0 12px; font-size: clamp(24px, 4vw, 36px); line-height: 1.15; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.intro-hero__text { font-size: 15px; color: #ddd; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }

.intro-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.intro-cta--center { justify-content: center; }
.intro-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--po-radius-sm, 6px); font-weight: 600; font-size: 14px;
  border: 1px solid var(--po-border-soft, rgba(255, 159, 0, .15)); background: rgba(0, 0, 0, .55); color: var(--po-text-bright, #fff); text-decoration: none; transition: transform .15s, background .15s; }
.intro-btn:hover { transform: translateY(-1px); background: rgba(0, 0, 0, .75); color: #fff; }
.intro-btn--primary { background: var(--po-gradient-accent, #FF9F00); color: var(--po-text-on-accent, #000); border-color: transparent; }
.intro-btn--primary:hover { background: var(--po-gradient-accent, #FF9F00); color: #000; filter: brightness(1.08); }

/* capitulos */
.intro-chapter { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.intro-chapter--flip .intro-chapter__text { order: 2; }
.intro-chapter--wide { grid-template-columns: 1fr; }
.intro-chapter__title { margin: 6px 0 12px; font-size: 22px; color: var(--po-text-bright, #fff); line-height: 1.25; }
.intro-chapter__text { border-left: 3px solid var(--po-accent, #FF9F00); padding-left: 18px; }

.intro-figure { margin: 0; }
.intro-figure img { display: block; width: 100%; height: auto; border-radius: var(--po-radius-sm, 6px); border: 1px solid var(--po-border, #272618); image-rendering: pixelated; }
.intro-figure figcaption { margin-top: 6px; font-size: 12px; color: var(--po-text-muted, #888); text-align: center; }
.intro-figure--sprite img { border: 0; background: radial-gradient(ellipse at center, rgba(120, 200, 90, .10) 0%, rgba(0, 0, 0, 0) 70%); padding: 16px 0; }
.intro-figure--small img { width: auto; max-width: 160px; margin: 0 auto; transform: scale(1.6); padding: 32px; }

.intro-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.intro-gallery img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s; }
.intro-gallery a { display: block; overflow: hidden; border-radius: var(--po-radius-sm, 6px); }
.intro-gallery a:hover img { transform: scale(1.04); }

/* sistemas */
.intro-systems__head { margin-bottom: 4px; }
.intro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.intro-card { display: flex; flex-direction: column; background: var(--po-surface-1, #17160d); border: 1px solid var(--po-border, #272618); border-radius: var(--po-radius, 8px);
  overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.intro-card:hover { transform: translateY(-2px); border-color: var(--po-accent, #FF9F00); color: inherit; }
.intro-card__img { height: 120px; display: flex; align-items: center; justify-content: center; background: #0c0c0e; overflow: hidden; }
.intro-card__img img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.intro-card__img--sprite img { width: auto; height: auto; max-width: 92%; max-height: 80px; object-fit: contain; }
.intro-card__img--icon { font-size: 38px; color: var(--po-accent, #FF9F00); background: radial-gradient(circle at center, rgba(255, 159, 0, .12) 0%, #0c0c0e 70%); }
.intro-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.intro-card__body h4 { margin: 0 0 8px; font-size: 15px; color: var(--po-text-bright, #fff); }
.intro-card__body h4 i { color: var(--po-accent, #FF9F00); margin-right: 4px; }
.intro-card__body p { font-size: 13px; line-height: 1.6; margin: 0 0 10px; flex: 1; }
.intro-card__more { font-size: 12px; font-weight: 600; color: var(--po-accent, #FF9F00); }

/* final */
.intro-final { text-align: center; padding: 24px 20px; border-radius: var(--po-radius, 8px); border: 1px solid var(--po-border, #272618);
  background: radial-gradient(ellipse at top, rgba(120, 200, 90, .08) 0%, rgba(0, 0, 0, 0) 60%), var(--po-surface-1, #17160d); }
.intro-final p { max-width: 640px; margin-left: auto; margin-right: auto; }
.intro-final__sign { font-style: italic; color: #b9d9a0; }

@media (max-width: 860px) {
  .intro-chapter { grid-template-columns: 1fr; }
  .intro-chapter--flip .intro-chapter__text { order: 0; }
  .intro-gallery { grid-template-columns: 1fr; }
  .intro-hero { min-height: 300px; }
  .intro-hero__inner { padding: 24px 18px; }
}

/* o site pinta links e titulos de laranja: forca as cores dentro da pagina */
.intro .intro-hero__title { color: #fff; }
.intro a.intro-btn { color: var(--po-text-bright, #fff); }
.intro a.intro-btn--primary, .intro a.intro-btn--primary:hover { color: var(--po-text-on-accent, #000); }
.intro a.intro-card, .intro a.intro-card:hover { color: var(--po-text, #ccc); }
.intro a.intro-card p { color: var(--po-text, #ccc); }
.intro a.intro-card h4 { color: var(--po-text-bright, #fff); }
.intro-chapter--wide .intro-figure--sprite img { width: auto; max-width: 100%; margin: 0 auto; }

/* ===== v2: partes, palco dos sprites, links ===== */
.intro-part { display: flex; flex-direction: column; gap: 30px; }
.intro-part__head { text-align: center; padding: 18px 12px 4px; position: relative; }
.intro-part__head::before { content: ""; display: block; height: 1px; margin: 0 auto 18px; max-width: 520px;
  background: linear-gradient(90deg, transparent, var(--po-accent, #FF9F00), transparent); opacity: .5; }
.intro-part__num { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--po-text-muted, #888); }
.intro .intro-part__title { margin: 6px 0 8px; font-size: clamp(22px, 3vw, 28px); color: var(--po-text-bright, #fff); }
.intro-part__intro { max-width: 620px; margin: 0 auto !important; color: var(--po-text-muted, #888); }

.intro h4.intro-chapter__title { font-size: 20px; }
.intro a.intro-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--po-accent, #FF9F00); }
.intro a.intro-more:hover { gap: 9px; }

.intro-figure__stage { display: flex; align-items: center; justify-content: center; min-height: 170px; padding: 24px 16px; border-radius: var(--po-radius-sm, 6px);
  background: radial-gradient(ellipse at center, rgba(255, 159, 0, .07) 0%, rgba(0, 0, 0, 0) 65%), #0c0c0e; border: 1px solid var(--po-border, #272618); }
.intro-figure--sprite .intro-figure__stage img { width: auto; max-width: 100%; height: auto; border: 0; padding: 0; background: none; transform: none; image-rendering: pixelated; }
.intro-figure--small .intro-figure__stage img { width: 128px; }
.intro-chapter--wide .intro-figure__stage { min-height: 0; }

.intro-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.intro-gallery .intro-figure { grid-column: span 2; }

.intro-explore { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--po-border, #272618); }
.intro .intro-explore a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--po-border, #272618); background: rgba(0, 0, 0, .3); color: var(--po-text, #ccc); }
.intro .intro-explore a:hover { border-color: var(--po-accent, #FF9F00); color: var(--po-text-bright, #fff); }
.intro .intro-explore i { color: var(--po-accent, #FF9F00); }

@media (max-width: 860px) {
  .intro-gallery { grid-template-columns: 1fr 1fr; }
  .intro-gallery .intro-figure { grid-column: auto; }
}

.intro a.intro-more, .intro .intro-explore a, .intro a.intro-btn, .intro a.intro-card { text-decoration: none; }


/* galeria: destaque da Phantomgaard em cima das cidades (link para /phantomgaard) */
.intro-gallery-wrap { display: flex; flex-direction: column; gap: 12px; }
.intro a.intro-featured { position: relative; display: flex; align-items: flex-end; min-height: 200px; border-radius: var(--po-radius-sm, 6px); overflow: hidden; text-decoration: none;
  background: var(--bg) center 45% / cover no-repeat; image-rendering: pixelated; border: 1px solid rgba(120, 200, 90, .35); transition: border-color .15s, transform .15s; }
.intro a.intro-featured::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 4, .92) 0%, rgba(5, 6, 4, .55) 50%, rgba(5, 6, 4, .1) 100%); }
.intro a.intro-featured:hover { border-color: #8fd16a; transform: translateY(-1px); }
.intro-featured__inner { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; max-width: 420px; }
.intro-featured__title { font-size: 24px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.intro-featured__text { font-size: 14px; color: #ddd; }
.intro-featured__more { margin-top: 6px; font-size: 13px; font-weight: 600; color: #b9d9a0; }

/* capitulo com icones no lugar da imagem */
.intro-figure__stage--icons { gap: 26px; font-size: 52px; color: var(--po-accent, #FF9F00); }
.intro-figure__stage--icons i:nth-child(2) { color: #c0392b; }

/* atributos por tipo de item (capitulo Equipment) */
.intro-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: -8px; }
.intro-type { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--po-radius-sm, 6px); background: var(--po-surface-1, #17160d); border: 1px solid var(--po-border, #272618); }
.intro-type__img { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: #0c0c0e; }
.intro-type__img img { image-rendering: pixelated; }
.intro-type__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.intro-type__body b { font-size: 13px; color: var(--po-text-bright, #fff); }
.intro-type__body span { font-size: 12px; line-height: 1.5; color: var(--po-text-muted, #999); }
@media (max-width: 900px) { .intro-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .intro-types { grid-template-columns: 1fr; } .intro a.intro-featured { min-height: 170px; } }

/* -- Phantomgaard page (2026-11-24): abas, nevoa, bestiario --- */
.pg [hidden] { display: none !important; }
.pg-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; padding: 10px; border-radius: var(--po-radius, 8px);
  background: rgba(11, 10, 5, .92); border: 1px solid var(--po-border, #272618); backdrop-filter: blur(4px); }
.pg-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--po-border, #272618);
  background: #12110a; color: var(--po-text, #ccc); font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.pg-tab i { color: #8fd16a; }
.pg-tab:hover { border-color: #8fd16a; color: #fff; }
.pg-tab.is-active { background: linear-gradient(180deg, rgba(143, 209, 106, .22), rgba(143, 209, 106, .08)); border-color: #8fd16a; color: #fff; }
.pg-panel { display: flex; flex-direction: column; gap: 28px; }
.pg-note { font-size: 12px; color: var(--po-text-muted, #888); text-align: center; margin: 0 !important; }
.pg-note i { color: #8fd16a; margin-right: 4px; }

/* comparar com/sem nevoa */
.pg-compare { position: relative; border-radius: var(--po-radius-sm, 6px); overflow: hidden; border: 1px solid var(--po-border, #272618); line-height: 0; }
.pg-compare img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.pg-compare__fog { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.pg-compare__fog img { width: 100%; height: 100%; object-fit: cover; }
.pg-compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #b9d9a0; box-shadow: 0 0 10px rgba(143, 209, 106, .8); pointer-events: none; }
.pg-compare__tag { position: absolute; top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(0, 0, 0, .7); color: #ddd; pointer-events: none; }
.pg-compare__tag--l { left: 10px; }
.pg-compare__tag--r { right: 10px; color: #b9d9a0; }
.pg-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

.pg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pg-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--po-radius, 8px); background: var(--po-surface-1, #17160d); border: 1px solid var(--po-border, #272618); }
.pg-stat i { font-size: 20px; color: #8fd16a; margin-bottom: 4px; }
.pg-stat b { font-size: 16px; }
.pg-stat span { font-size: 13px; color: var(--po-text-muted, #888); line-height: 1.5; }

.pg-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.pg-timeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 9px; height: 2px; background: linear-gradient(90deg, #3a4a32, #8fd16a, #3a4a32); }
.pg-timeline__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 26px; text-align: center; font-size: 12px; }
.pg-timeline__step::before { content: ""; position: absolute; top: 2px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #12110a; border: 2px solid #8fd16a; }
.pg-timeline__step span { color: #8fd16a; font-weight: 600; }
.pg-timeline__step b { font-weight: 500; }

.pg-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pg-level { --c: #5ecf6d; display: flex; flex-direction: column; border-radius: var(--po-radius, 8px); background: var(--po-surface-1, #17160d); border: 1px solid var(--po-border, #272618); border-top: 3px solid var(--c); overflow: hidden; }
.pg-level--medium { --c: #f5c542; }
.pg-level--hard { --c: #e67e22; }
.pg-level--extreme { --c: #e74c3c; }
.pg-level__head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px 6px; }
.intro .pg-level__head b { font-size: 16px; color: var(--c); }
.pg-level__head span { font-size: 11px; color: var(--po-text-muted, #888); }
.pg-level__facts { list-style: none; margin: 0; padding: 0 14px 8px; font-size: 13px; }
.pg-level__facts li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #1e1d14; }
.pg-level__facts li span { color: var(--po-text-muted, #888); }
.pg-level__mons { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 10px; margin-top: auto; background: #0e0d08; }
.pg-mini { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.pg-mini img { max-width: 44px; max-height: 44px; image-rendering: pixelated; }

.pg-bosses { padding: 16px; border-radius: var(--po-radius, 8px); border: 1px solid rgba(231, 76, 60, .35); background: radial-gradient(ellipse at top, rgba(231, 76, 60, .08), transparent 70%), #12110a; }
.pg-bosses__head { text-align: center; margin-bottom: 10px; }
.pg-bosses__head .intro-eyebrow { color: #e74c3c; }
.pg-bosses__head p { margin: 4px 0 0 !important; font-size: 13px; color: var(--po-text-muted, #888); }
.pg-bosses__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pg-boss { margin: 0; text-align: center; }
.pg-boss__img { height: 110px; display: flex; align-items: flex-end; justify-content: center; }
.pg-boss__img img { max-height: 110px; max-width: 100%; image-rendering: pixelated; }
.pg-boss figcaption { margin-top: 6px; font-size: 12px; font-weight: 600; color: #fff; }

/* bestiario */
.pg-filter { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.pg-filter__btns, .pg-filter__right { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--po-border, #272618); background: #12110a; color: var(--po-text, #ccc); font-size: 13px; cursor: pointer; }
.pg-chip em { font-style: normal; color: var(--po-text-muted, #888); margin-left: 4px; }
.pg-chip:hover { border-color: #8fd16a; }
.pg-chip.is-active { border-color: #8fd16a; color: #fff; background: rgba(143, 209, 106, .14); }
.pg-search, .pg-sort { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--po-border, #272618); background: #12110a; color: var(--po-text, #ccc); font-size: 13px; }
.pg-search { width: 170px; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pg-card { display: flex; flex-direction: column; border-radius: var(--po-radius, 8px); background: var(--po-surface-1, #17160d); border: 1px solid var(--po-border, #272618); overflow: hidden; transition: transform .15s, border-color .15s; }
.pg-card:hover { transform: translateY(-2px); border-color: #8fd16a; }
.pg-card__img { height: 120px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(120, 200, 90, .12) 0%, #0c0c0e 70%); }
.pg-card__img img { max-width: 90%; max-height: 108px; image-rendering: pixelated; }
.pg-card--boss { border-color: rgba(231, 76, 60, .45); }
.pg-card--boss .pg-card__img { background: radial-gradient(ellipse at center, rgba(231, 76, 60, .16) 0%, #0c0c0e 70%); }
.pg-card--boss:hover { border-color: #e74c3c; }
.pg-card--final { border-color: rgba(155, 89, 182, .6); box-shadow: 0 0 18px rgba(155, 89, 182, .18); }
.pg-card--final .pg-card__img { background: radial-gradient(ellipse at center, rgba(155, 89, 182, .22) 0%, #0c0c0e 70%); }
.pg-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.intro .pg-card__body h4 { margin: 0; font-size: 14px; color: #fff; }
.pg-card__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.pg-badge { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; color: #8fd16a; }
.pg-badge--boss { color: #e74c3c; }
.pg-badge--final { color: #c39bd3; }
.pg-badge--quest { color: #f5c542; }
.pg-badge--mist { color: #9fb8a8; }
.pg-card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: auto 0 0; }
.pg-card__stats div { padding: 6px 8px; border-radius: 6px; background: #0e0d08; }
.pg-card__stats dt { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--po-text-muted, #888); }
.pg-card__stats dt .fa-heart { color: #e74c3c; }
.pg-card__stats dt .fa-star { color: #f5c542; }
.pg-card__stats dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: #fff; }
.pg-empty { text-align: center; color: var(--po-text-muted, #888); }

@media (max-width: 860px) {
  .pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-bosses__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-timeline { grid-template-columns: 1fr; gap: 6px; }
  .pg-timeline::before { display: none; }
  .pg-filter { flex-direction: column; align-items: stretch; }
  .pg-search { flex: 1; width: auto; }
}
@media (max-width: 520px) {
  .pg-stats, .pg-levels { grid-template-columns: 1fr; }
  .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pg-level__facts li { gap: 8px; }
.pg-level__facts li span { white-space: nowrap; }
.pg-level__facts li b { white-space: nowrap; }
