/* ===========================================================================
   Banana Sandwich — shared site styles
   Used by every custom page (home, hof, players, categories, and the player
   breakdown) so they're all pixel-for-pixel the same. The compiled original
   site is no longer served for these routes.
   =========================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Same pixel font the original site shipped, so it feels like Minecraft. */
@font-face {
  font-family: "BananaMC";
  src: url("/_next/static/media/2babfc071d22c2ee-s.p.otf") format("opentype");
  font-display: swap;
}
body {
  font-family: "BananaMC", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #fff1c9;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(24,16,8,.74) 0%, rgba(13,9,5,.92) 100%),
    url("/assets/background/mid.webp") center top / cover no-repeat fixed,
    #14110b;
}
a { color: inherit; }

/* ---- Nav bar (quartz panel) ---- */
.bs-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px;
  max-width: 760px; margin: 10px auto 2px; padding: 7px;
  background: url("/assets/background/quartz.webp") center/cover;
  border: 2px solid #efe7d6; border-radius: 14px;
  box-shadow: inset 0 0 0 9999px rgba(217,130,43,.15), 0 8px 26px rgba(0,0,0,.45); }
.bs-nav a { padding: 8px 14px; border-radius: 9px; text-decoration: none; font-weight: 800; font-size: 15px; color: #2a1a0c; white-space: nowrap; }
.bs-nav a:hover { background: rgba(217,130,43,.16); }
.bs-nav a.bs-active { background: linear-gradient(135deg, #ffd860, #d9822b); color: #1a1209; box-shadow: 0 3px 10px rgba(0,0,0,.3); }

/* ---- Floating decorative bananas ---- */
.bs-floaties { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bs-floaties span { position: absolute; font-size: 34px; opacity: .1; animation: bs-float 14s linear infinite; }
@keyframes bs-float { 0% { transform: translateY(110vh) rotate(0); } 100% { transform: translateY(-20vh) rotate(360deg); } }

/* ---- Page container + smooth fade-in on every load ---- */
.bs-wrap { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; padding: 14px 16px 80px; animation: bs-page-in .34s ease both; }
@keyframes bs-page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* fade-out helper toggled by banana-site.js when navigating between pages */
body.bs-leaving .bs-wrap { opacity: 0; transform: translateY(-8px); transition: opacity .16s ease, transform .16s ease; }

.bs-topbar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 6px; }
.bs-topbar img.bs-logo { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
.bs-topbar .bs-logo-fb { width: 50px; height: 50px; border-radius: 13px; display:flex; align-items:center; justify-content:center; font-size: 28px; background: radial-gradient(circle at 40% 30%, #ffd860, #d9822b); box-shadow: inset 0 0 0 3px #1a1209; }
.bs-topbar img.bs-title { max-height: 58px; }

/* ---- Hero ---- */
.bs-head { text-align: center; padding: 6px 8px 4px; }
.bs-season { font-weight: 800; letter-spacing: .22em; font-size: clamp(12px, 3vw, 18px);
  background: linear-gradient(90deg, #4a1942, #e0457b, #d9822b, #ffc83d);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.bs-head h1 { margin: 8px 0 6px; font-size: clamp(28px, 6vw, 50px); font-weight: 900; line-height: 1.14; padding-bottom: .08em;
  background: linear-gradient(180deg, #ffd860, #e8a317 55%, #d9822b);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 3px 0 rgba(26,18,9,.25); }
.bs-head p.bs-lead { color: #ffe9b8; opacity: .9; font-size: clamp(14px, 2.4vw, 17px); margin: 0 auto; max-width: 560px; }
.bs-updated { text-align: center; color: #c9a86a; font-size: 12px; margin: 2px auto 0; opacity: .8; }

/* ---- Find-your-rank form ---- */
.bs-find { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 18px auto 4px; max-width: 440px; }
.bs-input { flex: 1 1 200px; min-width: 160px; padding: 12px 15px; border-radius: 13px; border: 2px solid #e8a317;
  background: rgba(255,241,201,.97); color: #1a1209; font-size: 15px; font-weight: 700; outline: none; }
.bs-input::placeholder { color: #8a5220; opacity: .7; font-weight: 600; }
.bs-btn { padding: 12px 18px; border-radius: 13px; border: 2px solid #1a1209;
  background: linear-gradient(135deg, #ffd860, #d9822b); color: #1a1209; font-size: 15px; font-weight: 900;
  cursor: pointer; box-shadow: 0 5px 14px rgba(0,0,0,.4); transition: transform .15s ease; }
.bs-btn:hover { transform: translateY(-2px); }
.bs-status { text-align: center; margin: 12px auto 6px; min-height: 20px; color: #ffd860; font-weight: 700; }
.bs-status.bs-err { color: #ff8d6b; }

/* ---- Generic cream quartz panel ---- */
.bs-panel { background: url("/assets/background/quartz.webp") center/cover; color: #2a1a0c;
  border: 2px solid #efe7d6; border-radius: 16px; padding: 16px 18px;
  box-shadow: inset 0 0 0 9999px rgba(217,130,43,.14), 0 12px 30px rgba(0,0,0,.4); margin: 14px auto 0; max-width: 1000px; }

/* ---- Home: summary stat grid ---- */
.bs-stats { display: grid; gap: 14px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bs-stat-card { background: url("/assets/background/quartz.webp") center/cover; color: #2a1a0c;
  border: 2px solid #efe7d6; border-top: 5px solid var(--accent, #e8a317); border-radius: 14px; padding: 16px 14px; text-align: center;
  box-shadow: inset 0 0 0 9999px rgba(217,130,43,.13), 0 8px 20px rgba(0,0,0,.32); transition: transform .15s ease; }
.bs-stat-card:hover { transform: translateY(-3px); }
.bs-stat-ic { font-size: 30px; line-height: 1; }
.bs-stat-lab { font-weight: 800; font-size: 14px; color: #6b4a28; text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.bs-stat-num { font-weight: 900; font-size: clamp(22px, 4vw, 30px); color: #1a1209; margin-top: 4px; }

/* ---- my-standing card + per-player breakdown ---- */
.bs-mecard { display: none; margin: 10px auto 2px; max-width: 1000px; text-align: center; color: #2a1a0c;
  background: url("/assets/background/quartz.webp") center/cover; border: 2px solid #efe7d6; border-radius: 16px; padding: 14px 16px;
  box-shadow: inset 0 0 0 9999px rgba(217,130,43,.14), 0 10px 28px rgba(0,0,0,.4); }
.bs-mecard.show { display: block; }
.bs-mecard .bs-me-name { font-weight: 900; font-size: 20px; color: #1a1209; }
.bs-mecard .bs-me-ranks { margin-top: 6px; display: flex; gap: 8px 16px; justify-content: center; flex-wrap: wrap; font-weight: 800; font-size: 14px; color: #5e3514; }
.bs-mecard .bs-me-ranks b { font-size: 16px; color: #1a1209; }
.bs-bd { margin-top: 14px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); text-align: left; }
.bs-bd-sec { background: rgba(255,247,230,.72); border: 1px solid rgba(90,53,20,.18); border-top: 4px solid var(--accent); border-radius: 12px; padding: 10px 12px; }
.bs-bd-title { font-weight: 900; font-size: 14px; letter-spacing: .02em; margin-bottom: 8px; color: #1a1209; }
.bs-bd-title span { opacity: .55; font-weight: 700; }
.bs-bd-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; border-bottom: 1px dashed rgba(90,53,20,.22); }
.bs-bd-row:last-child { border-bottom: 0; }
.bs-bd-name { font-weight: 600; color: #3a2a18; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-bd-val { font-weight: 900; color: #8a5220; white-space: nowrap; }
.bs-bd-more { font-size: 12px; color: #6b4a28; opacity: .85; margin-top: 6px; font-weight: 700; }
.bs-bd-empty { font-size: 12px; color: #6b4a28; opacity: .7; font-style: italic; }

/* ---- category cards ---- */
.bs-cats { display: grid; gap: 18px; margin-top: 18px; }
.bs-cat { border-radius: 16px; padding: 16px 18px 10px; position: relative; overflow: hidden; color: #2a1a0c;
  background: url("/assets/background/quartz.webp") center/cover; border: 2px solid #efe7d6;
  border-top: 6px solid var(--accent, #ffd860);
  box-shadow: inset 0 0 0 9999px rgba(217,130,43,.14), 0 12px 30px rgba(0,0,0,.4); }
.bs-cat-head { display: flex; align-items: center; gap: 14px; }
.bs-cat-emoji { font-size: 40px; filter: drop-shadow(0 3px 7px rgba(0,0,0,.3)); }
.bs-cat-title { font-size: clamp(20px, 4vw, 28px); font-weight: 900; line-height: 1; color: #1a1209; }
.bs-cat-tag { font-size: 13px; font-weight: 700; color: #6b4a28; margin-top: 3px; }
.bs-cat-fun { text-align: center; font-size: 14px; font-weight: 700; margin: 12px auto 14px; max-width: 600px; color: #3a2a18;
  background: rgba(90,53,20,.1); padding: 9px 14px; border-radius: 13px; box-shadow: inset 0 0 0 1px rgba(90,53,20,.14); }

/* ---- leaderboard / list rows ---- */
.bs-board { list-style: none; margin: 0; padding: 0; }
.bs-board li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.bs-board li + li { margin-top: 3px; }
.bs-board li:nth-child(odd) { background: rgba(90,53,20,.06); }
.bs-board li.me { background: linear-gradient(90deg, rgba(255,200,61,.55), rgba(217,130,43,.28)); box-shadow: inset 0 0 0 1.5px rgba(184,120,30,.7); }
.bs-board a.bs-board-link { display: flex; align-items: center; gap: 12px; flex: 1; text-decoration: none; min-width: 0; }
.bs-rank { width: 38px; text-align: center; font-weight: 900; font-size: 16px; flex: none; color: #5e3514; }
.bs-rank.r1 { color: #d99a17; } .bs-rank.r2 { color: #9a9a9a; } .bs-rank.r3 { color: #b9763e; }
.bs-ava { width: 34px; height: 34px; border-radius: 8px; image-rendering: pixelated; background: rgba(90,53,20,.18); flex: none; border: 1px solid rgba(90,53,20,.3); }
.bs-pname { flex: 1; font-weight: 800; font-size: 15px; color: #2a1a0c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-psub { font-weight: 700; font-size: 12px; color: #6b4a28; flex: none; }
.bs-pval { font-weight: 900; font-size: 15px; color: #8a5220; flex: none; }
.bs-empty { text-align: center; color: #6b4a28; font-style: italic; padding: 10px; }
.bs-more { text-align: center; color: #6b4a28; opacity: .8; font-size: 12px; padding: 8px 0 2px; }

.bs-foot { text-align: center; margin-top: 26px; }
.bs-back { display: inline-block; color: #ffe9b8; opacity: .85; text-decoration: none; font-weight: 700; margin: 0 10px; }
.bs-back:hover { opacity: 1; text-decoration: underline; }

/* ---- Floating "Your Wrapped" button (bottom-right, on every page) ---- */
.bs-wrapped-fab { position: fixed; right: 18px; bottom: 18px; z-index: 9999; display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; border-radius: 999px; border: 2px solid #1a1209; font-weight: 900; font-size: 15px; letter-spacing: .02em;
  color: #1a1209; text-decoration: none; cursor: pointer; background: linear-gradient(135deg, #ffd860, #d9822b);
  box-shadow: 0 6px 18px rgba(0,0,0,.45); transition: transform .18s ease, box-shadow .18s ease; }
.bs-wrapped-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 26px rgba(0,0,0,.5); }
.bs-wrapped-fab .bs-fab-emoji { font-size: 20px; }
@media (max-width: 520px) { .bs-wrapped-fab { padding: 10px 14px; font-size: 13px; } }

/* ---- Minecraft icons in the summary stat cards ---- */
.bs-stat-ic img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; vertical-align: middle; }

/* ---- Hall of Fame podium (top 3 — full skins, spotlight glow, crown) ---- */
.bs-podium { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 26px auto 10px; max-width: 680px; }
.bs-pod { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1 1 0; max-width: 216px; min-width: 0; text-decoration: none; transition: transform .18s ease; }
.bs-pod:hover { transform: translateY(-4px); }
.bs-pod-crown { font-size: clamp(22px, 5vw, 30px); line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.55)); animation: bs-pod-float 3s ease-in-out infinite; }
.bs-pod-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; }
.bs-pod-glow { position: absolute; left: 50%; bottom: 2px; width: 135%; height: 92%; transform: translateX(-50%); border-radius: 50%; filter: blur(18px); z-index: 0; }
.bs-pod.p1 .bs-pod-glow { background: radial-gradient(circle, rgba(255,200,61,.7), rgba(255,200,61,0) 70%); }
.bs-pod.p2 .bs-pod-glow { background: radial-gradient(circle, rgba(228,228,228,.5), transparent 70%); }
.bs-pod.p3 .bs-pod-glow { background: radial-gradient(circle, rgba(201,138,78,.55), transparent 70%); }
.bs-pod-skin { position: relative; z-index: 1; width: auto; height: clamp(98px, 23vw, 150px); image-rendering: pixelated; filter: drop-shadow(2px 6px 4px rgba(0,0,0,.6)); animation: bs-pod-float 4s ease-in-out infinite; }
.bs-pod.p1 .bs-pod-skin { height: clamp(116px, 27vw, 172px); }
.bs-pod.p2 .bs-pod-skin { animation-delay: -1.3s; }
.bs-pod.p3 .bs-pod-skin { animation-delay: -2.6s; }
.bs-pod-shadow { position: absolute; z-index: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 11px; background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 72%); }
@keyframes bs-pod-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.bs-pod-name { font-weight: 900; font-size: clamp(13px, 2.6vw, 16px); color: #ffe9b8; margin: 7px 0 0; text-shadow: 0 2px 4px rgba(0,0,0,.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.bs-pod-block { width: 100%; border-radius: 13px 13px 0 0; padding: 9px 6px 14px; text-align: center; margin-top: 6px; color: #2a1a0c; position: relative;
  background: url("/assets/background/quartz.webp") center/cover; border: 2px solid #efe7d6; border-bottom: 0;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 0 0 9999px rgba(217,130,43,.14), 0 -3px 18px rgba(0,0,0,.35); }
.bs-pod-num { font-weight: 900; line-height: 1; text-shadow: 0 2px 0 rgba(255,255,255,.4); }
.bs-pod-score { font-weight: 900; color: #8a5220; font-size: clamp(13px, 2.6vw, 16px); margin-top: 3px; }
.bs-pod-sub { font-size: 10px; color: #6b4a28; font-weight: 700; margin-top: 2px; }
.bs-pod.p1 { order: 2; } .bs-pod.p1 .bs-pod-block { min-height: 158px; border-top: 7px solid #d99a17; } .bs-pod.p1 .bs-pod-num { font-size: clamp(34px, 7vw, 48px); color: #d99a17; }
.bs-pod.p2 { order: 1; } .bs-pod.p2 .bs-pod-block { min-height: 116px; border-top: 7px solid #c0c0c0; } .bs-pod.p2 .bs-pod-num { font-size: clamp(28px, 6vw, 38px); color: #9a9a9a; }
.bs-pod.p3 { order: 3; } .bs-pod.p3 .bs-pod-block { min-height: 74px; border-top: 7px solid #c98a4e; } .bs-pod.p3 .bs-pod-num { font-size: clamp(24px, 5vw, 32px); color: #b9763e; }

/* ---- Player page: per-category stat sections ---- */
.bs-pcat { margin-top: 16px; }
.bs-pcat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bs-pcat-emoji { font-size: 26px; }
.bs-pcat-title { font-weight: 900; font-size: 18px; color: #1a1209; }
.bs-pcat-rank { margin-left: auto; font-weight: 800; font-size: 13px; color: #8a5220; }
/* Multi-column: items flow DOWN the left column first, then the next — so a
   player's top stats (sorted first) stack together on the left. */
.bs-pcat-grid { columns: 240px; column-gap: 22px; }
.bs-pstat { display: flex; align-items: baseline; gap: 8px; font-size: 13px; padding: 5px 4px; border-bottom: 1px dashed rgba(90,53,20,.18);
  break-inside: avoid; text-decoration: none; color: inherit; border-radius: 6px; }
a.bs-pstat:hover { background: rgba(217,130,43,.18); }
.bs-pstat.zero { opacity: .42; }
.bs-prank { flex: none; min-width: 26px; font-weight: 900; color: #b9763e; font-size: 12px; }
.bs-pstat-l { flex: 1; color: #3a2a18; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-pstat b { font-weight: 900; color: #8a5220; flex: none; }
