@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --bg-page: #f5efe6; --bg-card: #fdfaf5; --bg-soft: #eae0d3; --bg-showcase: #f4eee5;
  --border: #dfd3c2; --border-strong: #c8b8a2;
  --text-main: #1e2229; --text-soft: #59606d; --text-muted: #848b98;
  --btn-dark: #1c1f26; --btn-dark-hover: #2c313c;
  --accent: #5d8439; --accent-tint: #e4ecd8;
  --discord: #5865F2; --discord-hover: #4752C4;
  --limited: #e5484d; --limited-tint: #fde8e8;
  --online: #3fa66b;
  --shadow-sm: 0 2px 8px rgba(30, 34, 41, .05); --shadow-md: 0 8px 24px rgba(30, 34, 41, .09);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-page); color: var(--text-main); font-family: 'Poppins', -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.55; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
.hidden { display: none !important; }

/* ---------- header ---------- */
header { position: sticky; top: 0; z-index: 40; background: rgba(253, 250, 245, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.head-in { max-width: 1240px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; text-decoration: none; margin-right: 6px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; image-rendering: pixelated; }
nav.tabs { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
nav.tabs::-webkit-scrollbar { display: none; }
.tab-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: transparent; color: var(--text-soft); font-weight: 500; font-size: 13px; padding: 7px 12px; border-radius: 9px; white-space: nowrap; }
.tab-btn:hover { background: var(--bg-soft); color: var(--text-main); }
.tab-btn.active { background: var(--btn-dark); color: #fff; }
.tab-btn svg { width: 14px; height: 14px; }
.head-right { margin-left: auto; display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; font-weight: 600; font-size: 13px; padding: 9px 16px; border: 1px solid transparent; text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--btn-dark); color: #fff; }
.btn-dark:hover { background: var(--btn-dark-hover); }
.btn-soft { background: var(--bg-soft); color: var(--text-main); border-color: var(--border-strong); }
.btn-soft:hover { background: #e2d6c6; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: var(--discord-hover); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn img.head { width: 20px; height: 20px; border-radius: 4px; image-rendering: pixelated; }

/* ---------- layout ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-left)) 40px; }
.tab { display: none; flex-direction: column; gap: 16px; }
.tab.active { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; }
.card h2 { margin: 0; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h3 { margin: 0; font-size: 15px; font-weight: 700; }
.card p.sub { margin: 4px 0 0; color: var(--text-soft); font-size: 13px; }
.row { display: flex; gap: 16px; }
.row > * { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pill { display: inline-block; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-main); font-weight: 600; font-size: 11px; padding: 3px 10px; border-radius: 7px; }
.badge-limited { background: var(--limited); color: #fff; font-weight: 700; font-size: 10px; padding: 2px 8px; border-radius: 6px; letter-spacing: .02em; }
.limited-text { color: var(--limited); font-weight: 600; font-size: 12px; }

/* ---------- home ---------- */
.hero { padding: 0; overflow: hidden; }
.hero-art { display: block; width: 100%; aspect-ratio: 16 / 5.3; object-fit: cover; object-position: center 30%; }
.hero-body { padding: 18px 22px 22px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hero h1 { margin: 14px 0 8px; font-size: 26px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.hero p { margin: 0; color: var(--text-soft); max-width: 760px; }
.ip-box { margin: 18px auto 0; display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: var(--bg-soft); border: 1px solid var(--border-strong); padding: 7px 8px 7px 14px; border-radius: 10px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px rgba(63, 166, 107, .18); display: inline-block; }
.dot.off { background: #c0c4cc; box-shadow: none; }
.sep { color: var(--text-muted); }
.login-row { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.login-row img { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-soft); image-rendering: pixelated; }
.input { flex: 1; min-width: 0; background: var(--bg-showcase); border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text-main); }
.input:focus, .btn:focus-visible, .tab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.feature { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.feature .ico { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; flex: none; }
.feature .txt { flex: 1; min-width: 0; }
.feature .txt b { font-size: 15px; }
.feature .txt div { color: var(--text-soft); font-size: 13px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- product cards ---------- */
.pcard { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pcard .show { position: relative; background: var(--bg-showcase); border-bottom: 1px solid var(--border); height: 116px; }
.pcard .show canvas { width: 100%; height: 100%; display: block; }
.pcard .show .badge-limited, .pcard .show .pill { position: absolute; top: 8px; left: 8px; }
.pcard .save { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: var(--text-muted); font-size: 15px; }
.pcard .save.on { color: #e0a83c; }
.pcard .body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard .title { display: flex; justify-content: space-between; gap: 6px; font-weight: 700; font-size: 14px; }
.pcard .acts { display: flex; gap: 6px; margin-top: auto; }
.pcard .acts .btn-dark { flex: 1; }

/* builder */
.builder-show { background: var(--bg-showcase); border: 1px solid var(--border); border-radius: 12px; height: 120px; margin-top: 16px; }
.builder-show canvas { width: 100%; height: 100%; display: block; }
.builder-ctrl { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; align-items: flex-end; }
.builder-ctrl label { font-size: 12px; font-weight: 600; color: var(--text-soft); display: block; margin-bottom: 6px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-showcase); border: 1px solid var(--border-strong); border-radius: 10px; padding: 6px 10px; font-weight: 600; font-size: 12px; }
.swatch input[type=color] { width: 20px; height: 20px; border: 0; padding: 0; background: none; cursor: pointer; }
.swatch input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input[type=color]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.15); border-radius: 4px; }
.price-big { font-size: 18px; font-weight: 700; }
.filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; }
.chip { border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-main); font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 8px; }
.chip.active { background: var(--btn-dark); color: #fff; border-color: var(--btn-dark); }
.filters .search { margin-left: auto; width: 220px; max-width: 100%; padding: 7px 11px; }

/* FFA item cards */
.grid5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.icard .show { height: 124px; display: grid; place-items: center; }
.icard .show canvas.icon { width: 72px; height: 72px; image-rendering: pixelated; }
.icard .show .pill { position: absolute; top: 8px; left: 8px; }
.icard.best { border: 1.5px solid var(--btn-dark); }
.icard.best .pill, .icard .pill.dark { background: var(--btn-dark); color: #fff; border-color: var(--btn-dark); }
.icard .desc { color: var(--text-soft); font-size: 12.5px; }
.icard .amount { font-size: 13px; font-weight: 700; color: var(--accent); }
.contents { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.contents li { background: var(--bg-showcase); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; font-weight: 600; font-size: 13px; }
.modal canvas.big-icon { width: 110px; height: 110px; image-rendering: pixelated; display: block; margin: 0 auto; }

/* plans */
.plan .show { height: 140px; display: grid; place-items: center; }
.plan .show canvas { width: 96px; height: 96px; image-rendering: pixelated; }
.plan ul { margin: 0; padding-left: 16px; color: var(--text-soft); font-size: 12.5px; display: grid; gap: 4px; }
.plan ul b { color: var(--text-main); }
.plan.best { border: 1.5px solid var(--btn-dark); }
.plan.best .pill { background: var(--btn-dark); color: #fff; border-color: var(--btn-dark); }
.faq details { border-top: 1px solid var(--border); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 8px 0 0; color: var(--text-soft); }

/* server */
.status-pill { display: inline-flex; align-items: center; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.stat { background: var(--bg-showcase); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.stat .k { font-size: 11px; font-weight: 600; color: var(--text-soft); }
.stat .v { font-size: 16px; font-weight: 700; margin-top: 2px; overflow-wrap: anywhere; }
.stat .s { font-size: 12px; color: var(--text-soft); }
.stat a { color: var(--discord); font-weight: 600; font-size: 12px; text-decoration: none; }
.players { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-showcase); border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px 4px 5px; font-size: 12px; font-weight: 600; }
.pchip img { width: 18px; height: 18px; border-radius: 4px; image-rendering: pixelated; }
.lb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.lb-row { display: flex; align-items: center; gap: 10px; background: var(--bg-showcase); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.lb-row .n { width: 30px; color: var(--text-soft); }
.lb-row img { width: 20px; height: 20px; border-radius: 4px; image-rendering: pixelated; }
.lb-row .val { margin-left: auto; }
.empty { text-align: center; color: var(--text-muted); padding: 26px 10px; border: 1px dashed var(--border-strong); border-radius: 12px; font-size: 13px; }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.rule { background: var(--bg-showcase); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.rule b { font-size: 13px; }
.rule div { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.lookup { display: flex; gap: 8px; align-items: center; }
.profile { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.profile img { height: 150px; image-rendering: pixelated; }

/* limited */
.countdown { border: 1px solid #f3b4b6; background: var(--limited-tint); color: var(--limited); font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 10px; }
.set-show { background: var(--bg-showcase); border: 1px solid var(--border); border-radius: 12px; height: 110px; margin: 12px 0; }
.set-show canvas { width: 100%; height: 100%; display: block; }

/* modals */
.modal-bg { position: fixed; inset: 0; background: rgba(30, 34, 41, .45); backdrop-filter: blur(2px); z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.open { display: flex; }
.modal { background: var(--bg-card); border-radius: 18px; box-shadow: var(--shadow-md); width: 100%; max-width: 480px; padding: 18px 20px 20px; max-height: calc(100vh - 32px); overflow: auto; animation: pop .18s ease; }
@keyframes pop { from { transform: scale(.97); opacity: .5; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 17px; }
.x { border: 0; background: transparent; font-size: 18px; font-weight: 700; color: var(--text-soft); }
.modal .builder-show { height: 150px; margin-top: 0; }
.bline { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.bline button { border: 0; background: none; color: var(--text-muted); font-size: 12px; }
.box { background: var(--bg-showcase); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.box label { font-size: 12px; font-weight: 700; display: block; margin-bottom: 6px; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-top: 12px; }
.note { font-size: 11.5px; color: var(--text-muted); margin-top: 8px; }

/* toast */
#toast { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; background: var(--btn-dark); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; box-shadow: var(--shadow-md); transform: translateY(20px); opacity: 0; transition: .2s; pointer-events: none; }
#toast.show { transform: none; opacity: 1; }

/* footer */
footer { border-top: 1px solid var(--border); background: var(--bg-card); }
.foot-in { max-width: 1040px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-soft); font-weight: 600; }
.foot-in img { width: 24px; height: 24px; image-rendering: pixelated; }
.foot-links { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--text-muted); }
.foot-links a:first-child { color: var(--discord); }
.foot-small { width: 100%; font-weight: 400; font-size: 11px; color: var(--text-muted); }

@media (max-width: 900px) {
  .grid4, .grid5, .grid3, .stats, .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-right .label { display: none; }
}
@media (max-width: 640px) {
  .row, .grid2 { display: flex; flex-direction: column; }
  .hero h1 { font-size: 21px; }
  .feature { flex-wrap: wrap; }
  .filters .search { width: 100%; margin-left: 0; }
  .brand span { display: none; }
}
@media (max-width: 420px) { .grid4, .grid5, .grid3, .stats, .rules { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.grid5 .acts .btn { padding: 6px 8px; font-size: 11.5px; }
.pcard .acts .btn { min-width: 0; }
.icard .show img.icon { width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 4px 6px rgba(30,34,41,.18)); }
.plan .show img.rank-icon { width: 80px; height: 80px; image-rendering: pixelated; filter: drop-shadow(0 6px 8px rgba(30,34,41,.2)); }
.modal img.big-icon { width: 112px; height: 112px; image-rendering: pixelated; display: block; margin: 4px auto 0; filter: drop-shadow(0 6px 10px rgba(30,34,41,.2)); }

/* section sub-headings, winter ranks, server cards */
.sub-h { font-size: 16px; margin: 6px 0 -4px; display: flex; gap: 8px; align-items: center; }
.pcard .acts { margin-top: auto; }
.pcard.winter .show { background: linear-gradient(180deg, #eaf6ff, #d6ecfb); }
.servers .srv { border: 1px solid var(--border); border-left: 5px solid var(--c); border-radius: 14px; background: var(--bg-showcase); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.srv-top { display: flex; gap: 12px; align-items: center; }
.srv-top img { width: 48px; height: 48px; image-rendering: pixelated; }
.srv-top h3 { margin: 0 0 4px; font-size: 22px; color: var(--c); }
.srv ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.srv-join { margin-top: auto; font-size: 13px; font-weight: 600; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 760px) { .servers { grid-template-columns: 1fr; } }
.srv-online { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.srv-count { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.srv-online .players { margin-top: 8px; }
.srv-online .pchip { background: var(--bg-showcase); }

/* home + SMP: pick a server cards (FFA / SMP) */
.pick { margin-bottom: 14px; }
.pick-card { border-top: 4px solid var(--c); display: flex; flex-direction: column; gap: 10px; }
.pick-top { display: flex; gap: 12px; align-items: center; }
.pick-top img { width: 48px; height: 48px; image-rendering: pixelated; }
.pick-top h2 { margin: 0 0 4px; }
.pick-card ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.pick-card > .btn, .pick-card > .btn-row { margin-top: auto; }
.pill.both { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.pill.only { background: var(--bg-soft); }

/* FFA: custom token amount */
.ctok { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.ctok-l { display: flex; gap: 10px; align-items: center; }
.ctok-l img { width: 32px; height: 32px; image-rendering: pixelated; }
.ctok-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ctok-r .input { width: 130px; }

/* Limited tab: icy winter banner with falling snow, countdown chips, Winter Bundle card */
.winter-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px 28px; border-radius: var(--radius); border: 1px solid #b9d9f2; box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #0f2a4a 0%, #1d4f86 55%, #3f8fd2 100%); color: #fff; }
.winter-hero .snow { position: absolute; inset: -200px 0 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(3px 3px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 200px 150px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 60px 170px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 160px 20px, #fff 50%, transparent 51%);
  background-size: 220px 200px; animation: snowfall 12s linear infinite; }
@keyframes snowfall { to { transform: translateY(200px); } }
.wh-text, .wh-clock { position: relative; }
.wh-text h2 { margin: 8px 0 4px; font-size: 30px; font-weight: 800; letter-spacing: .01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.wh-text p { margin: 0; color: #d6ecfb; font-size: 14px; max-width: 520px; }
.wh-label { font-size: 12px; color: #d6ecfb; font-weight: 600; margin-bottom: 6px; text-align: center; }
.clock { display: flex; gap: 8px; }
.clock span { min-width: 64px; padding: 8px 10px; border-radius: 12px; text-align: center; font-size: 11px; color: #d6ecfb;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(4px); }
.clock b { display: block; font-size: 24px; line-height: 1.1; color: #fff; }
.sub-p { margin: -8px 0 -2px; color: var(--text-soft); font-size: 13px; }
#tab-limited .sub-h { margin-top: 12px; }
#tab-limited .card, #tab-limited .pcard { border-color: #cfe3f3; }
#tab-limited .set-show { background: linear-gradient(180deg, #f3f9ff, #e3f0fb); border-color: #cfe3f3; }
.bundle { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; border: 2px solid #3f8fd2 !important;
  background: linear-gradient(180deg, #f7fbff, var(--bg-card)); }
.bundle .set-show { margin: 0; }
.bundle .save { background: #3f8fd2; color: #fff; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 8px; }
.bundle-list { display: flex; flex-wrap: wrap; gap: 6px; }
.bundle-list span { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: #e3f0fb; color: #1d4f86; }
.bundle-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bundle-buy s { color: var(--text-muted); font-size: 14px; }
@media (max-width: 640px) { .winter-hero { padding: 22px 18px; } .wh-text h2 { font-size: 24px; } .clock span { min-width: 56px; } }
@media (max-width: 420px) { .bundle { grid-column: auto; } }

/* ---------- STRONGHOLD THEME (2026-10-30): stone bricks, moss, end portal, eyes of ender ---------- */
:root {
  --bg-page: #e4e6e0; --bg-card: #fbfbf8; --bg-soft: #e7e9e3; --bg-showcase: #eef0ea;
  --border: #cdd1c8; --border-strong: #b9beb3;
  --btn-dark: #2b2f2a; --btn-dark-hover: #3a4136;
  --stone-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' shape-rendering='crispEdges'%3E%3Crect width='32' height='16' fill='%23cfd2cb'/%3E%3Crect width='15' height='7' fill='%23dfe1db'/%3E%3Crect x='16' width='16' height='7' fill='%23dbded7'/%3E%3Crect y='8' width='7' height='7' fill='%23dbded7'/%3E%3Crect x='8' y='8' width='15' height='7' fill='%23e0e2dc'/%3E%3Crect x='24' y='8' width='8' height='7' fill='%23dcdfd8'/%3E%3Crect x='3' y='2' width='4' height='1' fill='%23c9ccc4'/%3E%3Crect x='6' y='3' width='1' height='2' fill='%23c9ccc4'/%3E%3Crect x='19' y='4' width='3' height='1' fill='%23c9ccc4'/%3E%3Crect x='11' y='12' width='2' height='2' fill='%23c5d3b4'/%3E%3Crect x='13' y='13' width='3' height='2' fill='%23c5d3b4'/%3E%3Crect x='27' y='9' width='2' height='1' fill='%23c9ccc4'/%3E%3C/svg%3E");
  --stone-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' shape-rendering='crispEdges'%3E%3Crect width='32' height='16' fill='%231f2220'/%3E%3Crect width='15' height='7' fill='%2334382f'/%3E%3Crect x='16' width='16' height='7' fill='%2330342d'/%3E%3Crect y='8' width='7' height='7' fill='%2330342d'/%3E%3Crect x='8' y='8' width='15' height='7' fill='%23353930'/%3E%3Crect x='24' y='8' width='8' height='7' fill='%23313530'/%3E%3Crect x='3' y='2' width='4' height='1' fill='%232a2d28'/%3E%3Crect x='6' y='3' width='1' height='2' fill='%232a2d28'/%3E%3Crect x='19' y='4' width='3' height='1' fill='%232a2d28'/%3E%3Crect x='11' y='12' width='2' height='2' fill='%233c4a2e'/%3E%3Crect x='13' y='13' width='3' height='2' fill='%233c4a2e'/%3E%3Crect x='27' y='9' width='2' height='1' fill='%232a2d28'/%3E%3C/svg%3E");
}
body { background: var(--bg-page) var(--stone-light) 0 0 / 128px 64px; }

/* header + footer = dark stone bricks with a moss edge */
header { background: #262925 var(--stone-dark) 0 0 / 128px 64px; border-bottom: 3px solid var(--accent); backdrop-filter: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.brand { color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.tab-btn { color: #c9cec4; }
.tab-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.tab-btn.active { background: var(--accent); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
header .btn-dark { background: var(--accent); }
header .btn-dark:hover { background: #6e9a45; }
footer { background: #262925 var(--stone-dark) 0 0 / 128px 64px; border-top: 3px solid var(--accent); color: #c9cec4; }
footer .foot-in { color: #e4e7df; }
footer .foot-links a { color: #c9cec4; }
footer .foot-links a:hover { color: #fff; }
footer .foot-links a:first-child { color: #9aa4ff; }
footer .foot-small { color: #a3a99c; }

/* end portal strip under the home banner */
.portal-band { height: 16px; border-top: 3px solid #7d8a6a; border-bottom: 3px solid #7d8a6a;
  background: radial-gradient(1.5px 1.5px at 10px 5px, #9ff 50%, transparent 51%), radial-gradient(1px 1px at 37px 10px, #cfe 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 61px 3px, #7fd 50%, transparent 51%), radial-gradient(1px 1px at 85px 8px, #fff 50%, transparent 51%),
    linear-gradient(90deg, #06201f, #0b3b36, #06201f);
  background-size: 96px 16px, 96px 16px, 96px 16px, 96px 16px, 100% 100%; animation: portal 6s linear infinite; }
@keyframes portal { to { background-position: 96px 0, -96px 0, 192px 0, -192px 0, 0 0; } }

/* cards look carved: moss line on top */
.card, .pcard { box-shadow: 0 2px 0 rgba(0, 0, 0, .05), var(--shadow-sm); }
.hero, .pick-card, .stat { border-top: 3px solid var(--accent); }

/* eye of ender in front of section titles */
.sub-h::before { content: ''; width: 20px; height: 20px; flex: none; background: url(assets/items/ender_eye.png) center / contain no-repeat; image-rendering: pixelated; }
#tab-limited .sub-h::before { display: none; }

/* every section sits on a white panel (owner 2026-10-30) */
.card > .filters { padding: 0 0 14px; }
#tab-limited .card > .sub-h, .card > .sub-h { margin-top: 0; }
.card > .sub-p { margin: 4px 0 14px; }
#tab-limited .card > .grid4, #tab-limited .card > .grid2 { margin-top: 0; }

/* sections sit straight on the stone background (owner 2026-10-30: no big white panels) */
.card.bare { background: none; border: 0; box-shadow: none; padding: 0; }
.card.bare > .section-head h2 { font-size: 16px; }
.card.bare > .section-head h2:not(:has(img))::before { content: ''; width: 20px; height: 20px; flex: none; background: url(assets/items/ender_eye.png) center / contain no-repeat; image-rendering: pixelated; }
.card.bare > .section-head { margin-bottom: 12px; }
.card.bare > .section-head p.sub { color: var(--text-main); opacity: .75; }
.card.bare > .filters { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 10px 12px; margin-bottom: 14px; }
.card.bare > .ctok { background: var(--bg-card); }

/* "Coming soon": items not built in game yet can't be bought */
.pcard.soon .show { filter: grayscale(.6); opacity: .8; }
.btn[disabled] { background: var(--bg-soft) !important; color: var(--text-muted) !important; border-color: var(--border) !important; cursor: not-allowed; }
.soon-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 0 6px; border-radius: 5px; background: #fff1cc; color: #8a6200; vertical-align: 1px; }

/* rank comparison tables */
.cmp-wrap { margin-top: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.cmp-title { font-weight: 700; font-size: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.cmp-scroll { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.cmp th, .cmp td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--text-soft); position: sticky; left: 0; background: var(--bg-card); }
.cmp th { font-weight: 700; vertical-align: bottom; }
.cmp th img { display: block; width: 28px; height: 28px; margin: 0 auto 4px; image-rendering: pixelated; }
.cmp th small { display: block; font-weight: 500; color: var(--text-muted); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:nth-child(even) td { background: #f6f7f3; }
.cmp .ck { color: var(--accent); font-weight: 800; font-size: 15px; }
.cmp .no { color: var(--text-muted); }

/* sale bar (catalog sale.on) */
.sale-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 9px 16px; text-align: center; font-size: 13px;
  background: linear-gradient(90deg, #7a0f1f, #e5484d, #7a0f1f); color: #fff; }
.sale-fire { background: #fff; color: #c2272d; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 6px; letter-spacing: .05em; }
.sale-until { opacity: .85; }
.sale-code { border: 1px dashed rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 7px; }

/* terms page */
.terms h3 { margin: 18px 0 4px; font-size: 15px; }
.terms p, .terms li { color: var(--text-soft); font-size: 13.5px; }
.terms ul { margin: 4px 0; padding-left: 20px; }

/* phone: menu gets its own full-width row under the logo, IP box stacks neatly */
@media (max-width: 760px) {
  .head-in { flex-wrap: wrap; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .brand { order: 1; }
  .head-right { order: 2; }
  .brand span { display: inline; font-size: 15px; }
  nav.tabs { order: 3; width: 100%; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .tab-btn { padding: 6px 10px; }
}
@media (max-width: 640px) {
  .ip-box { flex-direction: column; gap: 6px; padding: 12px 14px; }
  .ip-box .sep { display: none; }
  .ip-box .btn { width: 100%; }
}
@media (max-width: 380px) { .brand span { display: none; } }
@media (max-width: 640px) { .cmp { font-size: 11px; min-width: 0; } .cmp th, .cmp td { padding: 7px 3px; } .cmp th:first-child, .cmp td:first-child { max-width: 110px; padding-left: 10px; } .cmp th img { width: 22px; height: 22px; } .cmp .ck { font-size: 13px; } }
.cmp-wrap + .cmp-wrap { margin-top: 0; }

/* SMP page: hardcore banner (dark red, row of hardcore hearts, ticking death-ban clock) */
.smp-hero { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid #5a1414; box-shadow: var(--shadow-md); color: #fff;
  background: radial-gradient(120% 140% at 85% 20%, #8b1a1a 0%, #4a0d0d 45%, #1d0707 100%); padding: 26px 28px; }
.smp-hero .hearts { position: absolute; left: 0; right: 0; top: 0; height: 26px; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8' shape-rendering='crispEdges'%3E%3Crect x='1' y='0' width='2' height='1' fill='%23e01b24'/%3E%3Crect x='5' y='0' width='2' height='1' fill='%23e01b24'/%3E%3Crect x='0' y='1' width='8' height='2' fill='%23e01b24'/%3E%3Crect x='1' y='3' width='6' height='1' fill='%23e01b24'/%3E%3Crect x='2' y='4' width='4' height='1' fill='%23e01b24'/%3E%3Crect x='3' y='5' width='2' height='1' fill='%23e01b24'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23ff9a9a'/%3E%3C/svg%3E") 6px 6px / 22px 20px repeat-x;
  image-rendering: pixelated; }
.smp-hero-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding-top: 10px; }
.smp-hero-txt { flex: 1 1 380px; }
.smp-pill { background: #e01b24 !important; color: #fff !important; border: 0 !important; font-weight: 800; letter-spacing: .05em; }
.smp-hero h2 { margin: 10px 0 6px; font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 10px; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.smp-hero h2 img { width: 30px; height: 30px; image-rendering: pixelated; }
.smp-hero p { margin: 0; color: #f3caca; max-width: 520px; }
.smp-jump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.smp-jump .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.smp-jump .chip:hover { background: rgba(255, 255, 255, .2); }
.smp-ban { text-align: center; padding: 14px 18px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 90, 90, .35); min-width: 230px; }
.smp-ban-l { font-size: 12px; color: #f3caca; }
.smp-ban-t { font-family: 'Courier New', monospace; font-size: 34px; font-weight: 800; color: #ff5a5a; letter-spacing: .04em; text-shadow: 0 0 14px rgba(255, 60, 60, .5); margin: 2px 0; }
#tab-smp .pcard.plan { border-top: 3px solid #b3261e; }
.smp-bundle .bundle-ico { width: 22px; height: 22px; image-rendering: pixelated; vertical-align: -5px; margin-right: 6px; }
.smp-bundle { border-color: #b3261e !important; background: linear-gradient(180deg, #fff6f5, var(--bg-card)); }
.smp-bundle .save { background: #b3261e; }
.smp-bundle .bundle-list span { background: #fde3e1; color: #7a1a14; }
@media (max-width: 640px) { .smp-hero { padding: 22px 18px; } .smp-hero h2 { font-size: 23px; } .smp-ban { width: 100%; } }

/* Tags page: FFA only / SMP only / FFA + SMP picker */
.where { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 10px; align-items: stretch; margin-bottom: 14px; padding: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.where-l { display: flex; flex-direction: column; justify-content: center; padding: 0 6px; }
.where-l b { font-size: 14px; }
.where-l span { font-size: 12px; color: var(--text-soft); }
.where-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 8px;
  border: 2px solid var(--border); border-radius: 12px; background: var(--bg-soft); color: var(--text-main); font-family: inherit; }
.where-opt b { font-size: 13px; }
.where-opt span { font-size: 16px; font-weight: 800; }
.where-opt:hover { border-color: var(--border-strong); }
.where-opt.on { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 3px rgba(93, 132, 57, .15); }
.where-opt .where-best { position: absolute; top: -9px; right: 8px; font-size: 10px; font-weight: 800; color: #fff; background: var(--accent); padding: 1px 7px; border-radius: 6px; }
@media (max-width: 640px) { .where { grid-template-columns: repeat(3, 1fr); } .where-l { grid-column: 1 / -1; padding: 0 2px 4px; } }
.tab > .where { margin-bottom: 0; }

/* Limited = FOUNDERS COLLECTION look (owner 2026-10-31): deep moss + gold, gold sparkles instead of snow */
.winter-hero { background: radial-gradient(120% 150% at 85% 10%, #3d5a22 0%, #1e2e14 50%, #0f170a 100%); border-color: #6b8a3a; }
.winter-hero .snow { opacity: .9;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, #ffe27a 50%, transparent 51%), radial-gradient(2px 2px at 120px 80px, #fff2b0 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 200px 150px, #ffe27a 50%, transparent 51%), radial-gradient(1px 1px at 60px 170px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 160px 20px, #d9b54a 50%, transparent 51%);
  animation-duration: 18s; }
.wh-text h2 { background: linear-gradient(90deg, #fff2b0, #ffe27a 40%, #9bd162); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.wh-text p, .wh-label, .clock span { color: #dfe8c8; }
.clock span { background: rgba(255, 226, 122, .08); border-color: rgba(255, 226, 122, .35); }
.clock b { color: #ffe27a; }
.pcard.winter .show { background: radial-gradient(circle at 50% 40%, #fff6d0, #e9efd9 70%); }
#tab-limited .card, #tab-limited .pcard { border-color: #dccf9a; }
#tab-limited .set-show { background: linear-gradient(180deg, #fbf8ea, #eef2e2); border-color: #dccf9a; }
.bundle { border-color: #c9a227 !important; background: linear-gradient(180deg, #fffbea, var(--bg-card)); }
.bundle .save { background: #b8901e; }
.bundle-list span { background: #f6eecb; color: #5c4a10; }
.smp-bundle { border-color: #b3261e !important; background: linear-gradient(180deg, #fff6f5, var(--bg-card)); }
.smp-bundle .save { background: #b3261e; }
.smp-bundle .bundle-list span { background: #fde3e1; color: #7a1a14; }
.pcard.plan .acts { flex-wrap: wrap; } .pcard.plan .acts .btn { flex: 1 1 auto; }

/* animated (limited) tags: moving shine over the tag + ANIMATED pill */
.pcard.anim .show { position: relative; overflow: hidden; }
.pcard.anim .show::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); background-size: 260% 100%; animation: shine 2.6s linear infinite; }
@keyframes shine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.anim-pill { font-size: 9px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; background: linear-gradient(90deg, #ffe27a, #9bd162); color: #2a3a14; vertical-align: 2px; }

/* Home: launch countdown bar (dark stone + moss, end-portal glow) */
.launch-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--radius); color: #fff;
  background: radial-gradient(120% 160% at 90% 0%, #2b5a4a 0%, #16241b 55%, #0d140f 100%); border: 1px solid #3d6b4f; box-shadow: var(--shadow-md); }
.lb-txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; }
.lb-txt b { font-size: 18px; }
.lb-txt > span:last-child { color: #c9dccd; font-size: 13px; }
.lb-pill { align-self: flex-start; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; margin-bottom: 4px; }
.launch-bar .clock span { color: #c9dccd; background: rgba(255, 255, 255, .08); border: 1px solid rgba(155, 209, 98, .35); }
.launch-bar .clock b { color: #9bd162; }

/* Home: gift cards */
.gift-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.gift { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; border-radius: 14px; border: 1px solid #3d6b4f; color: #fff; font-family: inherit; text-align: left;
  background: linear-gradient(135deg, #2b3a24 0%, #4d6b2f 55%, #9bd162 140%); box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; aspect-ratio: 1.6; justify-content: flex-end; }
.gift:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gift b { font-size: 24px; line-height: 1.1; }
.gift > span:last-child { font-size: 12px; color: #dfe8c8; }
.gift-logo { position: absolute; top: 12px; left: 14px; font-weight: 800; font-size: 13px; letter-spacing: .05em; color: #d7f0b8; }
.gift-pop { position: absolute; top: 10px; right: 10px; background: #fff; color: #3d6b2f; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.gift.pop { border-color: #9bd162; box-shadow: 0 0 0 3px rgba(155, 209, 98, .25); }
@media (max-width: 640px) { .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* basket: payment methods */
.pay-icons { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.pay-icons span { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-soft); }

/* "Customize: own name +15% · own colours +10%" hint under customizable items */
.cust-hint { margin-top: 8px; font-size: 11.5px; color: var(--text-soft); background: var(--bg-soft); border: 1px dashed var(--border-strong); border-radius: 8px; padding: 5px 9px; line-height: 1.45; }
.cust-hint b { color: var(--accent); }
.pcard .cust-hint { margin: 8px 0 0; }

/* FFA token boosters: personal (2) + global (3) side by side, big multiplier on each card */
.bst-wrap { display: grid; grid-template-columns: 2fr 3fr; gap: 16px; }
.bst-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.bst-group.global { border-color: #d9c27a; background: linear-gradient(180deg, #fffaea, var(--bg-card) 60%); }
.bst-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bst-head b { font-size: 15px; }
.bst-head span { font-size: 12px; color: var(--text-soft); }
.bst-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.bcard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 18px 10px 12px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg-showcase); }
.bcard.pop { border: 2px solid var(--btn-dark); }
.bpill { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--btn-dark); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 6px; }
.bmult { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.bcard.personal .bmult { background: linear-gradient(180deg, #9bd162, #3f8f2a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bcard.global .bmult { background: linear-gradient(180deg, #ffd34a, #c27a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bcard img { width: 40px; height: 40px; image-rendering: pixelated; margin: 8px 0 4px; }
.btime { font-size: 13px; font-weight: 700; }
.bprice { font-size: 18px; font-weight: 800; margin-top: 6px; }
.bper { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; min-height: 15px; }
.bst-info { margin-top: 12px; font-size: 12.5px; color: var(--text-soft); background: var(--bg-card); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 10px 14px; }
@media (max-width: 900px) { .bst-wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .bst-row { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* what a booster boosts: Kills / Quests / AFK chips on every booster card */
.bfor { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }
.bfor span { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--accent-tint); color: #3f6a22; border: 1px solid #c9dbb0; }
.bcard.global .bfor span { background: #fbf1cf; color: #7a5a00; border-color: #e6d28c; }

/* Server page: FFA + SMP leaderboards, recent SMP deaths */
.lb-grid { align-items: start; }
.lb-card.ffa { border-top: 3px solid var(--accent); }
.lb-card.smp { border-top: 3px solid #b3261e; }
.lb-head { display: flex; align-items: center; gap: 10px; }
.lb-head img { width: 26px; height: 26px; image-rendering: pixelated; }
.lb-head h2 { margin: 0; font-size: 18px; }
.lb-head .pill { margin-left: auto; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.lb-tabs .chip.active { background: var(--btn-dark); color: #fff; border-color: var(--btn-dark); }
.lb-card.smp .lb-tabs .chip.active { background: #b3261e; border-color: #b3261e; }
.lb-list { display: flex; flex-direction: column; gap: 6px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: var(--bg-showcase); border: 1px solid var(--border); }
.lb-row img { width: 26px; height: 26px; border-radius: 5px; image-rendering: pixelated; }
.lb-pos { width: 22px; text-align: center; font-weight: 800; color: var(--text-muted); }
.lb-row.r1 { background: #fff6d6; border-color: #e6cf7a; } .lb-row.r1 .lb-pos { color: #c79a00; }
.lb-row.r2 { background: #f1f3f5; border-color: #cfd4da; } .lb-row.r2 .lb-pos { color: #7d8790; }
.lb-row.r3 { background: #fbeee4; border-color: #e3c2a6; } .lb-row.r3 .lb-pos { color: #a8622c; }
.lb-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row b { font-variant-numeric: tabular-nums; }
.deaths-card { border-top: 3px solid #b3261e; }
.death-feed { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 520px; overflow-y: auto; }
.death { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--bg-showcase); border: 1px solid var(--border); }
.death img { width: 30px; height: 30px; border-radius: 6px; image-rendering: pixelated; flex: none; }
.death-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.death-txt span { font-size: 12px; color: var(--text-soft); }
.death-ago { font-size: 12px; font-weight: 700; color: var(--text-soft); white-space: nowrap; }
@media (max-width: 480px) { .death { flex-wrap: wrap; } .death .btn { width: 100%; } }
/* launch sale in the basket (catalog sale.pct) */
.sale-line { display: flex; justify-content: space-between; padding: 6px 2px; color: #c2272d; font-weight: 700; font-size: 14px; }
.sale-note { margin: 4px 0 0; font-size: 12px; color: #c2272d; font-weight: 600; }
.sale-sub { flex-basis: 100%; font-size: 12px; opacity: .9; }
/* custom gradient: 2 or 3 colours */
.cg-count { display: inline-flex; gap: 4px; padding: 3px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px; margin-bottom: 8px; }
.cg-count button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-soft); cursor: pointer; }
.cg-count button.on { background: var(--bg-card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.swatch[hidden] { display: none; }
/* "collect them all" box on Tags + Gradients (owner 2026-10-31) */
.collect { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; }
.collect-ic { flex: none; font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 14px; color: #fff; background: #2b2f27; padding: 8px 12px; border-radius: 8px; }
.collect b { display: block; font-size: 15px; margin-bottom: 2px; }
.collect span { font-size: 13px; color: var(--text-soft); }
.collect code { background: var(--bg-soft); border: 1px solid var(--border); padding: 0 5px; border-radius: 5px; font-weight: 700; color: var(--text); }
@media (max-width: 640px) { .collect { flex-direction: column; align-items: flex-start; gap: 8px; } }
/* Animated upgrade switch under the where-picker (owner 2026-10-31, +$4.99) */
.where-anim { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; text-align: left; padding: 10px 14px; border-radius: 10px; cursor: pointer; font: inherit;
  border: 1px dashed var(--border); background: linear-gradient(90deg, rgba(155, 209, 98, .10), rgba(79, 194, 143, .10), rgba(155, 209, 98, .10)); background-size: 200% 100%; animation: waShine 4s linear infinite; color: var(--text); }
.where-anim b { font-size: 14px; letter-spacing: .02em; }
.where-anim .wa-txt { font-size: 12px; color: var(--text-soft); flex: 1; min-width: 160px; }
.where-anim .wa-price { font-weight: 800; color: var(--accent); }
.where-anim .wa-box { width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 5px; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--bg-card); }
.where-anim.on { border: 2px solid var(--accent); }
.where-anim.on .wa-box { background: var(--accent); border-color: var(--accent); color: #fff; }
@keyframes waShine { from { background-position: 0 0; } to { background-position: 200% 0; } }
/* ANIMATED switch on: same white shine as the Founders tags on every card, the builder and the preview (owner 2026-10-31) */
body.anim-tag #tab-tags .pcard .show, body.anim-tag #ctCanvas, body.anim-gradient #tab-gradients .pcard .show, body.anim-gradient #cgCanvas { position: relative; }
body.anim-tag #tab-tags .builder-show:has(#ctCanvas), body.anim-gradient #tab-gradients .builder-show:has(#cgCanvas), .builder-show.shine { position: relative; overflow: hidden; }
body.anim-tag #tab-tags .pcard .show { overflow: hidden; }
body.anim-gradient #tab-gradients .pcard .show { overflow: hidden; }
body.anim-tag #tab-tags .pcard .show::after, body.anim-gradient #tab-gradients .pcard .show::after,
body.anim-tag #tab-tags .builder-show:has(#ctCanvas)::after, body.anim-gradient #tab-gradients .builder-show:has(#cgCanvas)::after, .builder-show.shine::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); background-size: 260% 100%; animation: shine 2.6s linear infinite; }
/* rank cards: Animated tag switch + shine on the tag when on */
.where-anim.rank-anim { margin: 8px 0 2px; padding: 7px 10px; width: 100%; gap: 8px; }
.where-anim.rank-anim b { font-size: 13px; flex: 1; }
body.anim-rank .plan .rank-show { position: relative; overflow: hidden; }
body.anim-rank .plan .rank-show:has(+ .rank-anim)::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); background-size: 260% 100%; animation: shine 2.6s linear infinite; }
/* phones: one short sale line instead of the long explanation (owner 2026-10-31) */
.sale-sub-m { display: none; }
@media (max-width: 640px) {
  .sale-bar { padding: 6px 10px; gap: 4px 8px; font-size: 12px; }
  .sale-sub { display: none; }
  .sale-sub-m { display: block; flex-basis: 100%; font-size: 11px; opacity: .9; }
}
