/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg:        #fff8fb;
  --surface:   #ffffff;
  --surface2:  #ffe8f4;
  --accent:    #f7339a;
  --accent2:   #ff9dd1;
  --accent3:   #ffb6d9;
  --blue:      #c084fc;
  --text:      #2d0a1e;
  --muted:     #b06090;
  --border:    #f5c2de;
  --danger:    #e8225a;
  --white:     #ffffff;
  --stripe1:   #f7339a;
  --stripe2:   #ffffff;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 15%, #ffd6ec44 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, #ffb6d933 0%, transparent 50%);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Circus Tent Banner ──────────────────────────────────────────────────── */
.circus-tent {
  position: relative;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--stripe1) 0px,
    var(--stripe1) 48px,
    var(--stripe2) 48px,
    var(--stripe2) 96px
  );
  padding: 16px 2rem 14px;
  overflow: visible;
  z-index: 50;
  box-shadow: 0 4px 20px #f7339a33;
}

/* Scalloped bottom edge — pink */
.circus-tent::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='24' viewBox='0 0 96 24'%3E%3Cellipse cx='0'  cy='0' rx='48' ry='24' fill='%23f7339a'/%3E%3Cellipse cx='96' cy='0' rx='48' ry='24' fill='%23f7339a'/%3E%3C/svg%3E") repeat-x;
  background-size: 96px 24px;
  z-index: 10;
}

/* White outline behind scallops */
.circus-tent::before {
  content: '';
  position: absolute;
  bottom: -26px;
  left: 0;
  width: 100%;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='28' viewBox='0 0 96 28'%3E%3Cellipse cx='0'  cy='0' rx='50' ry='28' fill='%23ffffff'/%3E%3Cellipse cx='96' cy='0' rx='50' ry='28' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x;
  background-size: 96px 28px;
  z-index: 9;
}

/* ── Nav (sits inside tent) ──────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  gap: 1rem;
  position: relative;
  z-index: 60;
}

.nav-home {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: #ffffff !important;
  text-decoration: none !important;
  white-space: nowrap;
  text-shadow: 0 2px 8px #c0005566;
  letter-spacing: .03em;
}

.nav-links { display: flex; gap: 0.2rem; align-items: center; flex-wrap: wrap; }

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  text-shadow: 0 1px 4px #c0005544;
}
.nav-links a:hover {
  background: rgba(255,255,255,0.28);
  color: #ffffff;
  text-decoration: none;
}

/* ── Main wrapper ────────────────────────────────────────────────────────── */
main {
  flex: 1;
  padding: 2.5rem 1rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.wide { max-width: 1200px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 72px 1rem 56px; text-align: center;
}
.logo-wrap { position: relative; margin-bottom: 24px; }
.logo-bg {
  background: radial-gradient(ellipse at center, #f7339a2a 0%, transparent 70%);
  position: absolute; inset: -30px; border-radius: 50%; filter: blur(20px);
}
.logo-icon {
  font-size: 5.5rem; position: relative;
  filter: drop-shadow(0 4px 16px #f7339a44);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}

.wiki-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1.05;
  background: linear-gradient(135deg, #f7339a 0%, #ff6eb4 40%, #c084fc 70%, #f7339a 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 6px;
  animation: shimmer 5s linear infinite; background-size: 250% auto;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 250% center; }
}

.wiki-subtitle {
  font-size: 1.5rem; font-weight: 800; color: var(--muted);
  letter-spacing: .14em; margin-bottom: 10px; text-transform: uppercase;
}
.wiki-tagline { color: var(--muted); font-size: 1rem; font-weight: 600; margin-bottom: 36px; }

/* ── Search bar ──────────────────────────────────────────────────────────── */
.search-wrap { width:100%; max-width:540px; margin-bottom:36px; position:relative; z-index:1; }
.search-wrap input {
  width:100%; background:var(--white); border:2px solid var(--accent3);
  border-radius:999px; padding:14px 24px 14px 50px; font-size:1rem;
  font-family:'Nunito',sans-serif; color:var(--text); outline:none;
  transition:border-color .2s, box-shadow .2s;
  box-shadow: 0 4px 18px #f7339a14;
}
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus { border-color:var(--accent); box-shadow:0 0 0 4px #f7339a1f; }
.search-icon { position:absolute; left:18px; top:50%; transform:translateY(-50%); color:var(--accent2); font-size:1.1rem; pointer-events:none; }

/* ── Stat cards ──────────────────────────────────────────────────────────── */
.stats { display:flex; gap:14px; margin-bottom:28px; flex-wrap:wrap; justify-content:center; z-index:1; position:relative; }
.stat-card {
  background: var(--white); border: 2px solid var(--accent3); border-radius: 20px;
  padding: 18px 36px; text-align: center; min-width: 150px;
  box-shadow: 0 4px 18px #f7339a10;
  transition: transform .2s, box-shadow .2s; cursor: default;
}
.stat-card:hover { transform:translateY(-4px); box-shadow:0 10px 28px #f7339a22; }
.stat-number { font-family:'Fredoka One',cursive; font-size:2.4rem; line-height:1; margin-bottom:4px; }
.stat-card:nth-child(1) .stat-number { color: var(--accent); }
.stat-card:nth-child(2) .stat-number { color: var(--blue); }
.stat-card:nth-child(3) .stat-number { color: #f97316; }
.stat-label { font-size:.72rem; font-weight:800; letter-spacing:.12em; color:var(--muted); text-transform:uppercase; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display:inline-block; font-family:'Nunito',sans-serif; font-weight:800;
  font-size:.95rem; padding:11px 30px; border:none; border-radius:999px;
  cursor:pointer; letter-spacing:.03em; text-decoration:none !important;
  transition:opacity .2s, transform .2s, box-shadow .2s;
}
.btn-primary {
  background: linear-gradient(135deg, #f7339a, #ff6eb4);
  color: #fff;
  box-shadow: 0 4px 18px #f7339a44;
}
.btn-primary:hover { opacity:.9; transform:translateY(-2px); box-shadow:0 8px 28px #f7339a55; }
.btn-secondary { background:var(--white); color:var(--accent); border:2px solid var(--accent3); }
.btn-secondary:hover { background:var(--surface2); border-color:var(--accent); }
.btn-danger { background:var(--danger); color:#fff; }
.btn-danger:hover { opacity:.85; }
.btn-sm { padding:6px 16px; font-size:.82rem; }

/* ── Feature cards ───────────────────────────────────────────────────────── */
.feature-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:16px; max-width:680px; width:100%; margin:40px auto 0; z-index:1; position:relative;
}
.feature-card {
  background:var(--white); border:2px solid var(--accent3); border-radius:20px;
  padding:28px 20px; text-align:center; color:var(--text);
  box-shadow:0 4px 18px #f7339a0c;
  transition:border-color .2s, transform .2s, box-shadow .2s;
  display:block; text-decoration:none !important;
}
.feature-card:hover { border-color:var(--accent); transform:translateY(-5px); box-shadow:0 12px 32px #f7339a28; }
.feature-card .icon { font-size:2.4rem; margin-bottom:12px; display:block; }
.feature-card .name { font-weight:800; font-size:1.05rem; color:var(--text); }
.feature-card .desc { font-size:.82rem; color:var(--muted); margin-top:5px; }

/* ── Page content ────────────────────────────────────────────────────────── */
.page-header { margin-bottom:2rem; padding-bottom:1rem; border-bottom:2px dashed var(--border); }
.page-header h1 { font-family:'Fredoka One',cursive; font-size:2.4rem; color:var(--accent); margin-bottom:.5rem; }
.page-meta { font-size:.82rem; color:var(--muted); }
.page-actions { display:flex; gap:.5rem; margin-top:1rem; flex-wrap:wrap; }

.wiki-content { line-height:1.8; }
.wiki-content h2 { font-family:'Fredoka One',cursive; font-size:1.6rem; color:var(--accent); margin:2rem 0 .75rem; border-bottom:2px dashed var(--border); padding-bottom:.4rem; }
.wiki-content h3 { font-size:1.2rem; font-weight:800; color:var(--text); margin:1.5rem 0 .5rem; }
.wiki-content p  { margin-bottom:1rem; }
.wiki-content ul, .wiki-content ol { margin:0 0 1rem 1.5rem; }
.wiki-content li { margin-bottom:.3rem; }
.wiki-content table { width:100%; border-collapse:collapse; margin-bottom:1.5rem; }
.wiki-content th, .wiki-content td { border:1px solid var(--border); padding:8px 12px; text-align:left; }
.wiki-content th { background:var(--surface2); font-weight:800; color:var(--accent); }
.wiki-content tr:nth-child(even) td { background:#fff5fa; }
.wiki-content blockquote { border-left:4px solid var(--accent3); padding:.6rem 1rem; background:#fff0f8; border-radius:0 10px 10px 0; margin-bottom:1rem; color:var(--muted); }
.wiki-content code { background:var(--surface2); padding:2px 6px; border-radius:6px; font-family:monospace; font-size:.9em; color:var(--accent); }
.wiki-content pre  { background:var(--surface2); padding:1rem; border-radius:12px; overflow-x:auto; margin-bottom:1rem; }
.wiki-content img  { max-width:100%; border-radius:12px; border:2px solid var(--border); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; }
.card { background:var(--white); border:2px solid var(--border); border-radius:16px; padding:1.25rem 1.5rem; transition:border-color .2s, transform .2s; box-shadow:0 2px 10px #f7339a08; }
.card:hover { border-color:var(--accent); transform:translateY(-2px); }
.card h3 { font-size:1rem; font-weight:800; margin-bottom:.3rem; }
.card h3 a { color:var(--text); }
.card h3 a:hover { color:var(--accent); text-decoration:none; }
.card .meta { font-size:.78rem; color:var(--muted); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-wrap { max-width:700px; }
.form-group { margin-bottom:1.25rem; }
label { display:block; font-weight:800; font-size:.85rem; margin-bottom:.4rem; color:var(--muted); letter-spacing:.06em; text-transform:uppercase; }
input[type=text], input[type=password], input[type=email], textarea, select {
  width:100%; background:var(--white); border:2px solid var(--accent3);
  border-radius:12px; padding:10px 14px; font-size:.95rem;
  font-family:'Nunito',sans-serif; color:var(--text); outline:none;
  transition:border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { border-color:var(--accent); box-shadow:0 0 0 3px #f7339a18; }
textarea { resize:vertical; min-height:320px; line-height:1.6; }
.form-hint { font-size:.78rem; color:var(--muted); margin-top:.3rem; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert { padding:.85rem 1.2rem; border-radius:12px; margin-bottom:1.5rem; font-weight:700; font-size:.9rem; }
.alert-success { background:#fff0f8; border:2px solid var(--accent3); color:var(--accent); }
.alert-error   { background:#fff0f5; border:2px solid var(--danger);   color:var(--danger); }
.alert-info    { background:#f5f0ff; border:2px solid var(--blue);     color:var(--blue); }

/* ── Page list ───────────────────────────────────────────────────────────── */
.page-list { list-style:none; }
.page-list li { display:flex; align-items:center; justify-content:space-between; padding:.85rem 1rem; border-bottom:1px solid var(--border); gap:1rem; flex-wrap:wrap; }
.page-list li:hover { background:#fff5fa; border-radius:10px; }
.page-list .title a { font-weight:800; color:var(--text); }
.page-list .title a:hover { color:var(--accent); text-decoration:none; }
.page-list .meta { font-size:.78rem; color:var(--muted); }
.page-list .actions { display:flex; gap:.4rem; }

/* ── Gallery ─────────────────────────────────────────────────────────────── */
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.gallery-item { background:var(--white); border:2px solid var(--border); border-radius:16px; overflow:hidden; position:relative; transition:transform .2s; box-shadow:0 2px 10px #f7339a0a; }
.gallery-item:hover { transform:scale(1.02); box-shadow:0 8px 24px #f7339a22; }
.gallery-item img { width:100%; height:160px; object-fit:cover; display:block; }
.gallery-item .caption { padding:.6rem .8rem; font-size:.82rem; color:var(--muted); }
.gallery-item .del-btn { position:absolute; top:6px; right:6px; background:#f7339acc; border:none; color:#fff; border-radius:8px; padding:3px 8px; cursor:pointer; font-size:.75rem; font-family:'Nunito',sans-serif; display:none; font-weight:800; }
.gallery-item:hover .del-btn { display:block; }

/* ── Forum ───────────────────────────────────────────────────────────────── */
.thread-item { display:flex; align-items:flex-start; gap:1rem; padding:1rem; border-bottom:1px solid var(--border); transition:background .15s; }
.thread-item:hover { background:#fff5fa; border-radius:10px; }
.thread-icon { font-size:1.8rem; flex-shrink:0; }
.thread-body { flex:1; min-width:0; }
.thread-title a { font-weight:800; color:var(--text); }
.thread-title a:hover { color:var(--accent); text-decoration:none; }
.thread-meta { font-size:.78rem; color:var(--muted); margin-top:.2rem; }
.thread-replies { font-size:.78rem; color:var(--muted); flex-shrink:0; text-align:right; }

.reply-box { background:var(--white); border:2px solid var(--border); border-radius:14px; padding:1rem 1.25rem; margin-bottom:1rem; box-shadow:0 2px 8px #f7339a08; }
.reply-box .author { font-weight:800; font-size:.85rem; color:var(--accent); margin-bottom:.4rem; }
.reply-box .body { line-height:1.7; font-size:.95rem; color:var(--text); }
.reply-box .date { font-size:.75rem; color:var(--muted); margin-top:.4rem; }

/* ── Search results ──────────────────────────────────────────────────────── */
.search-result { padding:1rem 0; border-bottom:1px solid var(--border); }
.search-result h3 a { color:var(--text); font-weight:800; font-size:1.1rem; }
.search-result h3 a:hover { color:var(--accent); text-decoration:none; }
.search-result .snippet { color:var(--muted); font-size:.9rem; margin-top:.3rem; }
.search-result .snippet em { color:var(--accent); font-style:normal; font-weight:800; }

/* ── Section header ──────────────────────────────────────────────────────── */
.section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.5rem; flex-wrap:wrap; gap:.75rem; }
.section-header h1 { font-family:'Fredoka One',cursive; font-size:2rem; color:var(--accent); }
.section-header h2 { font-family:'Fredoka One',cursive; font-size:1.6rem; color:var(--accent); }

/* ── Editor toolbar ──────────────────────────────────────────────────────── */
.editor-toolbar { display:flex; gap:.3rem; flex-wrap:wrap; padding:.5rem; background:var(--surface2); border:2px solid var(--accent3); border-bottom:none; border-radius:12px 12px 0 0; }
.editor-toolbar button { background:var(--white); border:1px solid var(--border); color:var(--text); padding:4px 10px; border-radius:8px; cursor:pointer; font-size:.85rem; font-family:'Nunito',sans-serif; font-weight:700; transition:background .15s, color .15s; }
.editor-toolbar button:hover { background:var(--accent); color:#fff; border-color:var(--accent); }
.editor-toolbar .sep { width:1px; background:var(--border); margin:0 2px; }
#content { border-radius:0 0 12px 12px; border-top:none !important; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  text-align:center; padding:22px 28px; margin-top:auto;
  background: repeating-linear-gradient(90deg, var(--stripe1) 0px, var(--stripe1) 24px, var(--stripe2) 24px, var(--stripe2) 48px);
  position: relative;
}
footer::before {
  content:''; position:absolute; top:-16px; left:0; width:100%; height:18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cellipse cx='0' cy='18' rx='25' ry='18' fill='%23f7339a'/%3E%3Cellipse cx='48' cy='18' rx='25' ry='18' fill='%23f7339a'/%3E%3C/svg%3E") repeat-x;
  background-size:48px 18px;
}
footer p { color:#fff; font-weight:800; text-shadow:0 1px 4px #c0005566; position:relative; font-size:.85rem; }
footer a { color:#fff; text-decoration:underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media(max-width:600px) {
  .wiki-title { font-size:2.2rem; }
  .stats { flex-direction:column; align-items:center; }
  .stat-card { min-width:260px; }
  .nav-home span { display:none; }
}




/* Base container */
.carnival-infobox {
  width: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid #ff9ad5;
  background: #fff4fb;
  box-shadow: 0 6px 14px rgba(255, 150, 200, 0.35);
  transition: all 0.25s ease;
  font-family: "Baloo 2", "Fredoka", sans-serif;
}

/* Carnival header */
.carnival-header {
  background: repeating-linear-gradient(
    45deg,
    #ffb7e6,
    #ffb7e6 14px,
    #ffd6f3 14px,
    #ffd6f3 28px
  );
  padding: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7a2e6f;
  font-weight: 800;
  font-size: 1.2em;
  border-bottom: 3px solid #ff9ad5;
  user-select: none;
}

/* Tent icon */
.carnival-infobox.tent .carnival-header::before {
  content: "🎪";
  margin-right: 8px;
}

/* Balloon toggle */
.carnival-toggle {
  display: inline-block;
  padding: 4px 8px;
  background: #ff9ad5;
  border-radius: 50%;
  color: white;
  font-size: 0.8em;
  transition: transform 0.25s ease;
}

/* Content */
.carnival-content {
  padding: 14px;
}

/* Collapsed */
.carnival-infobox.collapsed .carnival-content {
  display: none;
}

.carnival-infobox.collapsed .carnival-toggle {
  transform: rotate(-90deg);
}

/* Cotton Candy Mode */
.carnival-infobox.cotton {
  background: #fff7ff;
  border-color: #ffb3e6;
  box-shadow: 0 6px 16px rgba(255, 180, 230, 0.4);
}

/* Neon Carnival Mode */
.carnival-infobox.neon {
  background: #ffe6ff;
  border-color: #ff4fe0;
  box-shadow: 0 0 12px #ff4fe0, 0 0 24px #ff9dff;
}

/* Dark Circus Mode */
.carnival-infobox.dark {
  background: #2b0026;
  border-color: #ff4fa8;
  box-shadow: 0 0 12px #ff4fa8;
}

.carnival-infobox.dark .carnival-header {
  background: repeating-linear-gradient(
    45deg,
    #4d003f,
    #4d003f 14px,
    #330028 14px,
    #330028 28px
  );
  color: #ffb3e6;
}

.carnival-infobox.dark .carnival-toggle {
  background: #ff4fa8;
}

/* Floating (Fandom-style) */
.carnival-infobox.floating {
  float: right;
  margin: 0 0 20px 20px;
}

/* Mobile-friendly */
@media (max-width: 600px) {
  .carnival-infobox.mobile {
    width: 100%;
    float: none;
    margin: 0 0 20px 0;
  }
}

/* Modal background */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Modal box */
.modal-content {
  background: #fff0fa;
  border: 3px solid #ff9ad5;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
  font-family: "Baloo 2", "Fredoka", sans-serif;
}

/* Buttons */
.modal-btn {
  background: #ffb7e6;
  border: 2px solid #ff9ad5;
  padding: 8px 14px;
  margin: 10px 5px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.modal-btn.cancel {
  background: #ffd6f3;
}



.infobox {
  width: 300px;
  background: #fff4fb;
  border: 3px solid #ff9ad5;
  border-radius: 12px;
  padding: 12px;
  margin: 20px 0;
  font-family: "Baloo 2", "Fredoka", sans-serif;
}

.infobox-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.infobox-label {
  font-weight: 700;
  color: #7a2e6f;
}

.infobox-value {
  color: #5a3a55;
}

/* ============================
   INFOBOX BASE
   ============================ */
.infobox {
  width: 300px;
  background: #fff4fb;
  border: 4px solid #ff9ad5;
  border-radius: 12px;
  padding: 12px;
  margin: 20px 0;
  font-family: "Baloo 2", "Fredoka", sans-serif;
}

.infobox-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.infobox-label {
  font-weight: 700;
  color: #7a2e6f;
}

.infobox-value {
  color: #5a3a55;
}

/* ============================
   CARNIVAL RIBBON HEADERS
   ============================ */
@keyframes ribbonFlutter {
  0%   { background: linear-gradient(135deg, #ff9ad5, #ffe6f7); }
  50%  { background: linear-gradient(135deg, #ffe6f7, #ff9ad5); }
  100% { background: linear-gradient(135deg, #ff9ad5, #ffe6f7); }
}

.infobox-header {
  position: relative;
  animation: ribbonFlutter 3s ease-in-out infinite;
  color: #7a2e6f;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 8px 12px;
  margin: 16px 0 8px;
  border-radius: 8px;
  text-align: center;
  font-family: "Fredoka One", "Baloo 2", sans-serif;
  cursor: pointer;
}

/* Ribbon ends */
.infobox-header::before,
.infobox-header::after {
  content: "";
  position: absolute;
  top: 100%;
  border-style: solid;
  border-width: 8px 8px 0 8px;
  border-color: #ff9ad5 transparent transparent transparent;
}

.infobox-header::before { left: 10px; }
.infobox-header::after { right: 10px; }

/* ============================
   AUTO IMAGE RENDERING
   ============================ */
.infobox-image {
  width: 100%;
  border-radius: 10px;
  margin: 8px 0;
  border: 3px solid #ff9ad5;
}

/* Smooth rarity transitions */
.infobox,
.infobox-header {
  transition: all 0.3s ease;
}
