/* Invisible-character page. Site header and footer stay untouched. */
body.page-caractere-invisivel {
  --inv-ink: #1a1d2b;
  --inv-blue: #2563eb;
  --inv-line: #e6ebf2;
  --inv-card: #fff;
  --inv-soft: #f4f7fb;
}

.inv-stage {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: 18px 22px;
  align-items: start;
  margin: 4px 0 22px;
  color: var(--inv-ink);
}

.inv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--inv-blue);
  font-size: 0.82rem;
  font-weight: 750;
}

.inv-kicker span {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--inv-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.inv-title {
  margin: 0 0 10px;
  font-size: clamp(2.05rem, 2.7vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
  color: #172033;
}

.article .inv-lede {
  margin: 0 0 16px;
  max-width: 32ch;
  color: #3d4658;
  font-size: 0.98rem;
  line-height: 1.45;
  hyphens: manual;
}

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

.inv-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--inv-ink);
}

.inv-perk {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  background: #fff center / 16px no-repeat;
  box-shadow: 0 4px 10px rgba(20, 40, 80, 0.06);
}

.inv-perk.is-bolt { background-color: #fff7e6; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5b400' d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.inv-perk.is-game { background-color: #eef2ff; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236366f1' d='M7 8h10a4 4 0 0 1 4 4l-.6 3.2A2.5 2.5 0 0 1 16 18l-1.2-2H9.2L8 18a2.5 2.5 0 0 1-4.4-2.8L4 12a4 4 0 0 1 3-4z'/%3E%3C/svg%3E"); }
.inv-perk.is-shield { background-color: #ecfdf3; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2316a34a' d='M12 2 5 5v6c0 5 3.2 8.4 7 9.8 3.8-1.4 7-4.8 7-9.8V5z'/%3E%3C/svg%3E"); }
.inv-perk.is-phone { background-color: #f3e8ff; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%237c3aed' d='M8 2h8a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm4 17a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4z'/%3E%3C/svg%3E"); }

.inv-art { margin-top: 4px; }
.inv-art img {
  display: block;
  width: min(100%, 290px);
  height: auto;
  margin: 25px 0 25px -6px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.page-caractere-invisivel select.ut-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 18px !important;
  padding-right: 34px !important;
}

.inv-board {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #e6edf6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 50, 90, 0.05);
}

.inv-board .ut-cat-row { margin-bottom: 10px; }
.inv-board .ut-char-strip,
.inv-board #ut-invis-grid { margin: 0; }

body.page-caractere-invisivel .ut-cat-arrow { display: none; }

.inv-board .inv-char {
  background: #f4f7fb;
  border-color: transparent;
  box-shadow: none;
}

.inv-side-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
}
body.page-caractere-invisivel .ut-side-card-label .inv-side-ico svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.inv-side-ico.is-bulb { background: #fde68a; color: #d97706; }
.inv-side-ico.is-pad { background: #dbeafe; color: #2563eb; }

body.page-caractere-invisivel .ut-side-card.is-how {
  background: #fff8eb;
  border-color: #f3e6c8;
}
body.page-caractere-invisivel .ut-side-card.is-where {
  background: #f3f8ff;
  border-color: #d7e6fb;
}

body.page-caractere-invisivel .ut-side-steps {
  list-style: none;
  padding-left: 0;
  counter-reset: invstep;
}
body.page-caractere-invisivel .ut-side-steps li { counter-increment: invstep; }
body.page-caractere-invisivel .ut-side-steps li::before {
  content: counter(invstep) ". ";
  color: #2563eb;
  font-weight: 800;
}

body.page-caractere-invisivel .ut-btn-primary {
  background: #2563eb;
  border-color: #1d4ed8;
  border-radius: 12px !important;
}
body.page-caractere-invisivel .ut-btn-primary:hover {
  background: #1d4ed8;
  filter: none;
}

.inv-ex-star { color: #f5b400; margin-right: 2px; }

body.page-caractere-invisivel .ut-invis-app {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.page-caractere-invisivel .ut-cat-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(20, 40, 80, 0.04);
}

body.page-caractere-invisivel .ut-cat-card.is-active {
  border-color: var(--inv-blue);
  background: #f5f9ff;
  box-shadow: 0 0 0 1px var(--inv-blue);
}

body.page-caractere-invisivel .ut-cat-count {
  color: var(--inv-blue);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.ut-char-strip,
#ut-invis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.inv-char {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--inv-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(20, 40, 80, 0.04);
}

.inv-char-body { min-width: 0; }
.inv-char-body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--inv-ink);
}
.inv-char-code {
  display: block;
  margin: 2px 0 4px;
  color: #64748b;
  font-size: 0.78rem;
}
.article .inv-char-body p {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
}

.inv-char-copy,
.inv-preview-copy,
.inv-ex-copy {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe4f0;
  border-radius: 50%;
  background: #f8fbff;
  color: var(--inv-blue);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.inv-char-copy svg,
.inv-preview-copy svg { width: 16px; height: 16px; fill: currentColor; }

body.page-caractere-invisivel .ut-invis-shell {
  align-items: stretch;
}

body.page-caractere-invisivel .ut-gen-card,
body.page-caractere-invisivel .ut-side-card {
  border-radius: 16px;
  background: #fff;
}

.inv-preview-wrap { position: relative; }
.inv-preview-copy {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

body.page-caractere-invisivel .ut-preview {
  min-height: 72px;
  padding-right: 52px;
  border: 1.5px dashed #c5d4ea;
  border-radius: 14px;
  background: #f8fbff;
  text-align: center;
}

.inv-gen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.inv-ghost {
  flex: 1 1 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 1px solid var(--inv-line);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--inv-ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}
.inv-ghost svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: none;
}

.inv-codes {
  margin: 8px 0 0;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}

.inv-socials .ut-social {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
}
.inv-socials .is-wa { background: #25d366; }
.inv-socials .is-ig { background: #e1306c; }
.inv-socials .is-dc { background: #5865f2; }
.inv-socials .is-tt { background: #111; }
.inv-socials .is-yt { background: #ff0033; }
.inv-socials .ut-social svg { fill: #fff; }
.inv-socials .ut-social-more { background: #e2e8f0; color: #334155; }

.inv-examples {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #fff8ee;
}

.article .inv-examples h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.article .inv-examples h2 span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.inv-examples-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.inv-ex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--inv-ink);
}

.inv-ex strong { display: block; font-size: 0.82rem; }
.inv-ex-show {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.8rem;
  white-space: pre;
}
.inv-ex-copy {
  width: 28px;
  height: 28px;
  background: #f8fbff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232563eb' d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (max-width: 1100px) {
  .ut-char-strip, #ut-invis-grid, .inv-examples-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-caractere-invisivel .ut-cat-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .inv-stage { grid-template-columns: 1fr; }
  .article .inv-lede { max-width: none; }
  body.page-caractere-invisivel .ut-invis-shell { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .ut-char-strip, #ut-invis-grid, .inv-examples-row,
  body.page-caractere-invisivel .ut-cat-row { grid-template-columns: 1fr; }
}

html[data-theme="dark"] body.page-caractere-invisivel {
  --inv-ink: #f1f5f9;
  --inv-card: #1e293b;
  --inv-line: #334155;
  --inv-soft: #111827;
}

html[data-theme="dark"] .inv-char,
html[data-theme="dark"] body.page-caractere-invisivel .ut-cat-card,
html[data-theme="dark"] body.page-caractere-invisivel .ut-gen-card,
html[data-theme="dark"] body.page-caractere-invisivel .ut-side-card,
html[data-theme="dark"] .inv-ex,
html[data-theme="dark"] .inv-ghost {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #334155;
}

html[data-theme="dark"] .inv-board {
  background: #172033;
  border-color: #334155;
}
html[data-theme="dark"] .inv-board .inv-char { background: #1e293b; }
html[data-theme="dark"] .inv-title { color: #f8fafc; }
html[data-theme="dark"] .inv-art img { background: #fff; border-radius: 18px; }
html[data-theme="dark"] body.page-caractere-invisivel .ut-side-card.is-how,
html[data-theme="dark"] body.page-caractere-invisivel .ut-side-card.is-where {
  background: #1e293b;
  border-color: #334155;
}
html[data-theme="dark"] .inv-kicker { background: #152033; }
html[data-theme="dark"] .article .inv-lede,
html[data-theme="dark"] .inv-char-code,
html[data-theme="dark"] .article .inv-char-body p { color: #cbd5e1; }
html[data-theme="dark"] .inv-examples { background: #2a2416; }
html[data-theme="dark"] body.page-caractere-invisivel .ut-preview { background: #152033; color: #f8fafc; }
