:root {
  --rc-accent: #3d6fd9;
  --rc-accent-hover: #5584e8;
  --rc-panel: rgba(18, 20, 28, 0.88);
  --rc-panel-2: rgba(255, 255, 255, 0.04);
  --rc-border: rgba(255, 255, 255, 0.08);
  --rc-text: #e9ecf2;
  --rc-muted: #9aa3b5;
  --rc-green: #2fbf71;
  --rc-radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--rc-text);
  background: #0d0f15 url('/img/background.jpg') center top / cover fixed;
  min-height: 100vh;
}
a { color: var(--rc-accent-hover); text-decoration: none; }
a:hover { color: #fff; }
.container { max-width: 1340px; margin: 0 auto; padding: 0 16px 100px; }
.rc-muted { color: var(--rc-muted); font-size: 14px; line-height: 1.5; }
.sc { font-variant: all-small-caps; letter-spacing: .6px; }

/* Header */
.rc-header { text-align: center; padding: 22px 0 14px; }
.rc-header img { max-height: 90px; width: auto; }
.rc-logo-text { font-weight: 800; font-size: 40px; letter-spacing: 4px; color: #fff; }

/* Panels */
.rc-panel {
  background: var(--rc-panel);
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.rc-panel-head {
  padding: 14px 18px; border-bottom: 1px solid var(--rc-border);
  font-weight: 700; font-size: 15px; color: #fff;
  font-variant: all-small-caps; letter-spacing: .6px;
}
.rc-panel-body { padding: 16px 18px; }

/* Nav */
.rc-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(14,16,24,.82); border: 1px solid var(--rc-border); border-radius: var(--rc-radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 8px 12px; margin-bottom: 12px;
}
.rc-nav-links { display: flex; flex-wrap: wrap; gap: 2px; }
.rc-nav a.rc-cat, .rc-basket-link {
  position: relative; display: inline-block; padding: 12px 11px; border-radius: 6px;
  font-size: 17px; font-weight: 700; white-space: nowrap;
  font-variant: all-small-caps; letter-spacing: .6px;
  color: var(--rc-c, #cfd6e4); transition: background .15s, color .15s;
}
.rc-nav a.rc-cat:hover { color: #fff; background: rgba(255,255,255,.07); background: color-mix(in srgb, var(--rc-c) 22%, transparent); }
.rc-nav a.rc-cat.active {
  color: #fff; background: rgba(255,255,255,.08); background: color-mix(in srgb, var(--rc-c) 26%, transparent);
  box-shadow: inset 0 -3px 0 var(--rc-c);
}
.rc-basket-link { color: #fff; }
.rc-basket-link:hover, .rc-basket-link.active { background: rgba(255,255,255,.08); color: #fff; }
.rc-basket-count {
  display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 10px;
  background: var(--rc-accent); font-variant: normal; font-size: 12px; text-align: center;
}
.rc-new {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  background: #e53935; color: #fff; font-size: 9px; font-weight: 800; font-variant: normal;
  letter-spacing: .8px; line-height: 1; padding: 3px 5px; border-radius: 4px;
  box-shadow: 0 2px 6px rgba(229,57,53,.5); pointer-events: none;
}

/* IP bar */
.rc-ipbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  background: var(--rc-panel); border: 1px solid var(--rc-border); border-radius: var(--rc-radius);
  padding: 10px 16px; margin-bottom: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.rc-ip-label { color: var(--rc-muted); font-size: 13px; font-variant: all-small-caps; letter-spacing: .6px; }
.rc-ip { font-weight: 800; letter-spacing: 1px; font-size: 16px; color: #fff; }
.rc-ipstatus { display: flex; align-items: center; gap: 10px; justify-content: center; white-space: nowrap; }
.rc-ipstatus-count { color: var(--rc-muted); font-size: 14px; }

.rc-ipstatus-count b { color: #fff; font-size: 17px; font-weight: 800; }
.rc-ipbar-actions { display: flex; gap: 8px; justify-content: flex-end; }
.rc-pill { font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 4px 9px; border-radius: 5px; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.rc-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.rc-pill.on { background: #12b76a; } .rc-pill.on .dot { animation: pulse 1.6s infinite; }
.rc-pill.off { background: #d64545; } .rc-pill.wait { background: #4a5162; }

/* Buttons */
.rc-btn, .rc-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 6px; padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer;
  font-family: inherit; font-variant: all-small-caps; letter-spacing: .6px; transition: all .15s;
}
.rc-btn { background: var(--rc-accent); color: #fff; border: 1px solid var(--rc-accent); }
.rc-btn:hover { background: var(--rc-accent-hover); border-color: var(--rc-accent-hover); color: #fff; transform: translateY(-1px); }
.rc-btn.done { background: var(--rc-green); border-color: var(--rc-green); }
.rc-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.rc-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.rc-btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--rc-accent); color: #fff; }
.rc-btn-big { width: 100%; padding: 13px; font-size: 16px; }
.rc-pay + .rc-pay { margin-top: 10px; }
.rc-paypal { background: #ffc439; border-color: #ffc439; color: #111; }
.rc-paypal:hover { background: #ffd366; border-color: #ffd366; color: #111; }

/* Layout */
.rc-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.rc-main { padding: 20px; min-height: 300px; }
.rc-side { display: flex; flex-direction: column; gap: 16px; }
.rc-loading { color: var(--rc-muted); text-align: center; padding: 60px 0; }

/* Package rows */
.rc-rows { display: flex; flex-direction: column; gap: 10px; }
.rc-row {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px;
  background: var(--rc-panel-2); border: 1px solid var(--rc-border); border-radius: 10px;
  transition: background .15s, border-color .15s;
}
.rc-row:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.rc-thumb {
  width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; border-radius: 8px;
  background: rgba(0,0,0,.25); padding: 6px; transform: rotate(-6deg); transition: transform .2s;
}
.rc-row:hover .rc-thumb { transform: rotate(0) scale(1.08); }
.rc-row-name { flex: 1; min-width: 0; font-weight: 700; font-size: 18px; color: #fff; font-variant: all-small-caps; letter-spacing: .6px; }
.rc-row-price { white-space: nowrap; font-weight: 600; font-size: 16px; }
.rc-row-price small { opacity: .7; }
.rc-row-actions { display: flex; gap: 6px; align-items: center; }
.rc-amount { width: 90px; }
.rc-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .6px; font-variant: normal;
  text-transform: uppercase; padding: 3px 7px; border-radius: 4px; margin-left: 8px; vertical-align: middle;
  background: rgba(232,120,40,.18); color: #ffb07a; border: 1px solid rgba(232,120,40,.35);
}
.rc-badge.blue { background: rgba(61,111,217,.18); color: #b9cdf7; border-color: rgba(61,111,217,.4); }

/* Inputs */
.rc-input {
  background: rgba(255,255,255,.06); border: 1px solid var(--rc-border); color: #fff;
  border-radius: 6px; height: 42px; padding: 0 12px; font: inherit; font-size: 15px; width: 100%;
}
/* dark dropdown lists (stops white-on-white options) */
select.rc-input { color-scheme: dark; cursor: pointer; }
select.rc-input option, select.rc-input optgroup { background: #151821; color: #e9ecf2; }
.rc-input:focus { outline: none; border-color: var(--rc-accent); }
.rc-label { display: block; font-size: 13px; color: var(--rc-muted); margin: 14px 0 6px; }

/* Basket */
.rc-basket-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rc-border); }
.rc-basket-item .name { flex: 1; font-weight: 700; }
.rc-qty { display: flex; align-items: center; gap: 6px; }
.rc-qty button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--rc-border); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.rc-remove { background: none; border: none; color: #ff7a7a; cursor: pointer; font-size: 13px; }
.rc-total { text-align: right; font-size: 18px; margin: 16px 0; }
.rc-checkout { max-width: 460px; margin-left: auto; }
.rc-gift { display: flex; gap: 8px; margin-top: 14px; }
.rc-gift .rc-input { text-transform: uppercase; }
.rc-gift-on { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(47,191,113,.4); background: rgba(47,191,113,.1); border-radius: 8px; }
.rc-gift-on > span:first-child { flex: 1; }
.rc-gift-amt { color: #3ddc84; font-weight: 800; font-size: 17px; }
.rc-error { color: #ff8a8a; font-size: 14px; margin-top: 10px; min-height: 18px; }
.rc-section-title { margin: 0 0 16px; font-size: 26px; font-weight: 800; color: #fff; font-variant: all-small-caps; letter-spacing: .8px; }

/* Sidebar gift card + Discord */
[hidden] { display: none !important; }
.rc-side-gift-result { margin-top: 12px; padding: 12px; border-radius: 8px; background: rgba(47,191,113,.1); border: 1px solid rgba(47,191,113,.35); font-size: 14px; line-height: 1.6; }
.rc-side-gift-result b.big { font-size: 22px; color: #3ddc84; display: block; }
#rc-discord-frame iframe { width: 100%; height: 420px; border: 0; display: block; border-radius: 0 0 var(--rc-radius) var(--rc-radius); }

/* Recent */
.rc-recent-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.rc-recent-item img { width: 32px; height: 32px; border-radius: 6px; image-rendering: pixelated; }
.rc-recent-item .who { font-weight: 700; font-size: 14px; color: #fff; }
.rc-recent-item .what { font-size: 12px; color: var(--rc-muted); }

/* Modal */
.rc-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 16px; }
.rc-modal[hidden] { display: none; }
.rc-modal-box { position: relative; width: 100%; max-width: 520px; background: #151821; border: 1px solid var(--rc-border); border-radius: var(--rc-radius); padding: 24px; }
.rc-modal-close { position: absolute; top: 8px; right: 12px; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; opacity: .7; }
.rc-modal-box img { max-width: 120px; display: block; margin: 0 auto 14px; }
.rc-modal-box h3 { margin: 0 0 10px; font-variant: all-small-caps; letter-spacing: .6px; font-size: 22px; }
.rc-modal-box p { white-space: pre-line; color: var(--rc-muted); line-height: 1.5; }

/* Toast */
.rc-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--rc-green); color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 700; z-index: 10001; box-shadow: 0 6px 20px rgba(0,0,0,.4); }

/* Footer */
.rc-footer { display: flex; justify-content: space-between; color: var(--rc-muted); font-size: 13px; padding: 20px 4px; }

/* Twitch player (400x300 so Twitch allows autoplay) */
#realcraft-stream { position: fixed; bottom: 20px; right: 20px; width: 400px; transform-origin: bottom right; transition: transform .45s ease; z-index: 9999; background: #0e0e10; border-radius: 10px; overflow: hidden; border: 1px solid rgba(145,70,255,.35); box-shadow: 0 10px 30px rgba(0,0,0,.55); user-select: none; }
#drag-handle { height: 30px; background: #18181b; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; cursor: grab; }
#drag-handle.dragging { cursor: grabbing; }
.rc-live-label { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.rc-live-label .dot { width: 7px; height: 7px; background: #f33; border-radius: 50%; animation: pulse 1.2s infinite; }
#toggle-chat { color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; background: rgba(145,70,255,.55); border: none; border-radius: 4px; padding: 3px 7px; }
#toggle-chat:hover { background: #9146ff; }
#stream-video { height: 300px; background: #000; transition: height .45s ease; }
/* Small = scaled down, not resized: Twitch still sees 400x300, so it keeps autoplaying
   and never has to reload. Moved players scale from their top-left corner. */
#realcraft-stream.rc-small { transform: scale(.8); }
#realcraft-stream.rc-moved { transform-origin: top left; }
#realcraft-stream.rc-instant { transition: none; }
#stream-video iframe, #stream-chat iframe { width: 100%; height: 100%; border: 0; display: block; }
#stream-chat { height: 320px; } #stream-chat.hidden { height: 0; overflow: hidden; }
#bottom-left-btns { position: fixed; bottom: 20px; left: 20px; z-index: 9999; }
#live-streams-btn { background: #6441a5; color: #fff; border: none; border-radius: 8px; padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 7px; box-shadow: 0 6px 18px rgba(0,0,0,.4); font-family: inherit; }
#live-streams-btn .dot { width: 8px; height: 8px; background: #f33; border-radius: 50%; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.3); } }

/* Mobile */
@media (max-width: 960px) { .rc-layout { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .rc-nav { flex-direction: column; align-items: stretch; }
  .rc-nav-links { justify-content: center; }
  .rc-ipbar { grid-template-columns: 1fr; justify-items: center; }
  .rc-row { flex-wrap: wrap; }
  .rc-thumb { width: 48px; height: 48px; flex-basis: 48px; }
  .rc-row-name { flex: 1 1 calc(100% - 70px); }
  .rc-row-price { flex: 1; }
}
@media (max-width: 576px) {
  #realcraft-stream, #realcraft-stream.rc-small { width: 192px; bottom: 10px; right: 10px; transform: none; }
  #stream-video, #realcraft-stream.rc-small #stream-video { height: 108px; }
  #stream-chat, #toggle-chat { display: none !important; }
  #bottom-left-btns { bottom: 10px; left: 10px; }
}

/* Twitch login + leaderboard (v1.7.0) */
.rc-twitch-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #9146ff; border-color: #9146ff; }
.rc-twitch-btn:hover { background: #a970ff; border-color: #a970ff; }
.rc-acct-who { display: flex; align-items: center; gap: 10px; }
.rc-acct-who img { width: 40px; height: 40px; border-radius: 50%; }
.rc-acct-who .who { font-weight: 700; color: #fff; }
.rc-link { background: none; border: 0; padding: 0; color: var(--rc-muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.rc-link:hover { color: #fff; }
.rc-acct-row { display: flex; gap: 8px; }
.rc-acct-row .rc-input { flex: 1; min-width: 0; }
.rc-board-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-board-tabs { display: inline-flex; gap: 4px; }
.rc-board-tabs button { background: transparent; border: 1px solid var(--rc-border); color: var(--rc-muted); border-radius: 6px; padding: 3px 8px; font: inherit; font-size: 12px; cursor: pointer; font-variant: normal; letter-spacing: 0; }
.rc-board-tabs button.active { background: var(--rc-accent); border-color: var(--rc-accent); color: #fff; }
.rc-lb-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.rc-lb-rank { width: 26px; text-align: center; font-weight: 700; color: var(--rc-muted); font-size: 14px; flex: none; }
.rc-lb-row img { width: 32px; height: 32px; border-radius: 6px; image-rendering: pixelated; flex: none; }
.rc-lb-name { flex: 1; min-width: 0; }
.rc-lb-name .who { font-weight: 700; font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-lb-tw { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #bf94ff; }
.rc-lb-score { font-weight: 700; font-size: 13px; color: var(--rc-green); flex: none; }

/* Public song queue (v1.8.0) */
.rc-songs-h { margin: 22px 0 10px; font-size: 16px; font-weight: 800; color: #fff; }
.rc-song { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; background: var(--rc-panel-2); border: 1px solid var(--rc-border); margin-bottom: 8px; }
.rc-song img { width: 112px; height: 63px; object-fit: cover; border-radius: 6px; flex: none; }
.rc-song-n { width: 26px; text-align: center; font-weight: 800; color: var(--rc-muted); flex: none; }
.rc-song-info { min-width: 0; flex: 1; }
.rc-song-t { font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-song-info .rc-muted { font-size: 13px; }
.rc-song-now .rc-song { border-color: rgba(255,79,154,.5); }
.rc-song-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.rc-song-bar i { display: block; height: 100%; background: #ff4f9a; }
@media (max-width: 576px) { .rc-song img { width: 80px; height: 45px; } }

/* Leaderboard periods + account link (v1.9.0) */
.rc-board-periods { display: flex; gap: 4px; padding: 10px 18px 0; }
.rc-board-periods button { flex: 1; background: transparent; border: 1px solid var(--rc-border); color: var(--rc-muted); border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 12px; cursor: pointer; }
.rc-board-periods button.active { background: rgba(145,70,255,.25); border-color: #9146ff; color: #fff; }
.rc-lb-sep { color: var(--rc-muted); }
.rc-lb-row img.rc-lb-round { border-radius: 50%; image-rendering: auto; }
.rc-acct-mc { margin-top: 12px; font-size: 13px; line-height: 1.45; }
.rc-acct-bal { margin-top: 12px; font-size: 15px; }   /* v1.48.1: own line above the Minecraft name */
.rc-acct-bal[hidden] { display: none; }
/* v1.65.0: TokenBank tokens + time left, under the balance */
.rc-acct-bank { margin-top: 8px; padding: 6px 9px; border-radius: 8px; background: rgba(90, 140, 255, .12); border: 1px solid rgba(90, 140, 255, .35); font-size: 14px; }
.rc-acct-bank-time { font-size: 12px; opacity: .85; margin-top: 2px; font-variant-numeric: tabular-nums; }
.rc-acct-bank.low { background: rgba(255, 80, 80, .12); border-color: rgba(255, 80, 80, .45); }
.rc-acct-bank.low .rc-acct-bank-time { color: #ff6b6b; opacity: 1; font-weight: 700; }
.rc-bal-live { color: #3ddc84; font-size: 11px; font-weight: 700; margin-left: 4px; animation: rcBalPulse 2s ease-in-out infinite; }
@keyframes rcBalPulse { 50% { opacity: .45; } }
.rc-ok { color: var(--rc-green); font-weight: 700; }
.rc-lb-name .who { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }

/* Full leaderboard page (v1.9.1) */
.rc-board-page-tabs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.rc-board-page-tabs .rc-board-tabs button { font-size: 14px; padding: 6px 12px; }
.rc-board-periods-page { padding: 0; min-width: 300px; }
.rc-board-page .rc-lb-row { padding: 10px 12px; border-radius: 10px; background: var(--rc-panel-2); border: 1px solid var(--rc-border); margin-bottom: 8px; }
.rc-board-page .rc-lb-row img { width: 40px; height: 40px; }
.rc-board-page .rc-lb-name .who { font-size: 16px; }
.rc-board-page .rc-lb-rank { width: 36px; font-size: 18px; }
@media (max-width: 576px) { .rc-board-periods-page { min-width: 0; width: 100%; } }

/* fit the extra menu buttons on one line on wide screens (v1.9.1) */
@media (min-width: 1200px) { .rc-nav a.rc-cat { padding: 12px 8px; font-size: 16px; } }

/* Hours board (v1.10.0) - watch time is fine to show */
.rc-lb-time { font-weight: 700; font-size: 13px; color: #bf94ff; flex: none; white-space: nowrap; }
.rc-board-page .rc-lb-time { font-size: 16px; }
.rc-toast { max-width: min(560px, calc(100vw - 32px)); text-align: center; line-height: 1.4; }

/* Discord names + your own Hours rank (v1.11.0) */
.rc-lb-dc { color: #a5b4fc; white-space: nowrap; }
.rc-lb-row .rc-lb-dc img { width: 16px; height: 16px; border-radius: 50%; image-rendering: auto; vertical-align: -3px; margin-right: 4px; display: inline-block; }
.rc-board-page .rc-lb-row .rc-lb-dc img { width: 18px; height: 18px; }
.rc-lb-row.rc-lb-me { background: rgba(145, 70, 255, .14); border: 1px solid rgba(145, 70, 255, .45); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.rc-lb-you { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #bf94ff; }
#rc-board { max-height: 640px; overflow-y: auto; }
/* Discord logo before Discord names (v1.11.1) - official icon from Simple Icons, tinted Discord blurple */
.rc-dc-logo { display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px; background: #5865f2;
  -webkit-mask: url("https://cdn.jsdelivr.net/npm/simple-icons@11.0.0/icons/discord.svg") center / contain no-repeat;
  mask: url("https://cdn.jsdelivr.net/npm/simple-icons@11.0.0/icons/discord.svg") center / contain no-repeat; }
.rc-board-page .rc-dc-logo { width: 17px; height: 17px; }
/* Twitch logo before Twitch names on the Hours board (v1.11.2) - official icon from Simple Icons, Twitch purple */
.rc-tw-logo { display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px; background: #9146ff;
  -webkit-mask: url("https://cdn.jsdelivr.net/npm/simple-icons@11.0.0/icons/twitch.svg") center / contain no-repeat;
  mask: url("https://cdn.jsdelivr.net/npm/simple-icons@11.0.0/icons/twitch.svg") center / contain no-repeat; }
.rc-board-page .rc-tw-logo { width: 17px; height: 17px; }
/* Grass block before Minecraft names (v1.11.3) - made from the game's own grass textures */
.rc-mc-logo { display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px;
  background: url("/img/grass-block.png") center / contain no-repeat; image-rendering: auto; }
.rc-board-page .rc-mc-logo { width: 17px; height: 17px; }
/* Balance board (v1.13.0) */
.rc-lb-time.rc-lb-money { color: var(--rc-green, #3ddc84); }
/* Online board (v1.13.0) */
.rc-lb-online { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; font-weight: 700; font-size: 13px; white-space: nowrap; }
.rc-lb-online .rc-lb-money { color: var(--rc-green, #3ddc84); }
.rc-lb-online .rc-lb-carry { color: #f6c26b; }
.rc-board-page .rc-lb-online { font-size: 15px; }
.rc-lb-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 6px #3ddc84; }
/* sidebar: tabs get their own row so all five fit (v1.13.0) */
#rc-side-board .rc-board-head { flex-wrap: wrap; row-gap: 8px; }
#rc-side-board .rc-board-tabs { width: 100%; }
#rc-side-board .rc-board-tabs button { flex: 1; padding: 3px 4px; }
/* Online Players button in the server IP bar (v1.13.1) */
.rc-online-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(61,220,132,.5);
  background: rgba(61,220,132,.12); color: #3ddc84; font-weight: 700; font-size: 12px; text-decoration: none; white-space: nowrap; }
.rc-online-btn:hover { background: rgba(61,220,132,.22); color: #fff; }
.rc-online-btn.rc-streams-btn { border-color: rgba(145,70,255,.6); background: rgba(145,70,255,.14); color: #bf94ff; }   /* v1.64.0 */
.rc-online-btn.rc-streams-btn:hover { background: rgba(145,70,255,.28); color: #fff; }
/* phones: long leaderboard / online rows must not push the page wider than the screen (v1.13.1) */
.rc-layout > * { min-width: 0; }
@media (max-width: 576px) { .rc-ipstatus { flex-wrap: wrap; white-space: normal; row-gap: 6px; } }
/* Live on Twitch: clickable name + LIVE tag (v1.16.0) */
.rc-live-link { color: #fff; text-decoration: none; border-bottom: 2px solid rgba(145,70,255,.7); cursor: pointer; transition: color .15s, border-color .15s; }
.rc-live-link:hover { color: #bf94ff; border-bottom-color: #bf94ff; }
.rc-live-pill { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #e91916; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; vertical-align: 2px; animation: rcLivePulse 2s ease-in-out infinite; }
@keyframes rcLivePulse { 50% { opacity: .65; } }
/* Discord name opens their Discord profile (v1.18.2) */
a.rc-dc-link { text-decoration: none; border-bottom: 2px solid rgba(88,101,242,.55); transition: color .15s, border-color .15s; }
a.rc-dc-link:hover { color: #c7d2fe; border-bottom-color: #8b9aff; }
/* v1.20.6: never scale the stream player down - Twitch pauses anything under 400x300 */
#realcraft-stream.rc-small { transform: none; }
/* v1.20.7: widescreen 534x300 - the 16:9 video fills it (no black bars) and it's still at least
   400x300, so Twitch keeps playing. Phones keep their own size (rules above). */
@media (min-width: 577px) {
  /* v1.20.8: 445x250 like the map page - 16:9 (no black bars), shorter, and it plays there */
  #realcraft-stream { width: 445px; max-width: calc(100vw - 40px); }
  #stream-video { height: 250px; }
}
#stream-video { position: relative; }
#rc-play-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); cursor: pointer; z-index: 2; }
#rc-play-over span { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.75); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; }
/* Venmo button (v1.21.0) - PayPal draws the button itself */
.rc-venmo { margin-top: 10px; min-height: 48px; }
.rc-venmo[hidden] { display: none; }

/* Loans board (v1.23.0) */
.rc-loan-views { padding-top: 6px; }
.rc-board-tabs { flex-wrap: wrap; }
.rc-lb-sub { font-size: 12px; color: var(--rc-muted); line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere; }
.rc-board-page .rc-lb-sub { font-size: 13px; }
.rc-lb-bad, .rc-lb-time.rc-lb-money.rc-lb-bad { color: #ff7a7a; }
.rc-lb-bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 5px; overflow: hidden; }
.rc-lb-bar span { display: block; height: 100%; background: var(--rc-green, #3ddc84); border-radius: 3px; }
.rc-credit small { font-size: 11px; font-weight: 600; opacity: .85; }
.rc-credit-excellent { color: #3ddc84; } .rc-credit-good { color: #8fd694; } .rc-credit-fair { color: #f5c542; }
.rc-credit-poor { color: #ff9f43; } .rc-credit-bad { color: #ff7a7a; }
.rc-loan-views button { white-space: nowrap; }
.rc-board-page-tabs .rc-loan-views-page { flex-basis: 100%; margin-top: 10px; min-width: 0; }

/* Playtime board (v1.24.0) */
.rc-lb-name .who .rc-lb-dot { width: 8px; height: 8px; margin-right: 6px; vertical-align: 1px; }
.rc-lb-more { display: block; width: 100%; margin-top: 6px; }
.rc-pt-views, .rc-pt-periods { padding-top: 6px; }
.rc-pt-views button, .rc-pt-periods button { white-space: nowrap; }

/* ---------- Auction House (v1.31.0) ---------- */
.rc-auc-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-auc-bar #rc-auc-q { flex: 1 1 240px; }
.rc-auc-bar select { flex: 0 0 auto; width: auto; }
.rc-auc-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.rc-auc-cats button { background: var(--rc-panel-2); border: 1px solid var(--rc-border); color: var(--rc-text); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.rc-auc-cats button small { color: var(--rc-muted); margin-left: 3px; }
.rc-auc-cats button.active { background: #ff9f43; border-color: #ff9f43; color: #111; }
.rc-auc-cats button.active small { color: #3a2400; }
.rc-auc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rc-auc-card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: var(--rc-panel-2); border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius); padding: 12px 8px; color: var(--rc-text); font: inherit; cursor: pointer; transition: transform .12s, border-color .12s; min-width: 0; }
.rc-auc-card:hover { transform: translateY(-2px); border-color: #ff9f43; }
.rc-auc-iconbox { position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); border-radius: 8px; }
.rc-auc-iconbox.big { width: 88px; height: 88px; flex: none; }
.rc-auc-icon { width: 40px; height: 40px; object-fit: contain; }
.rc-auc-iconbox.big .rc-auc-icon { width: 64px; height: 64px; }
.rc-pix { image-rendering: pixelated; }
.rc-auc-noimg { font-size: 28px; line-height: 40px; text-align: center; }
.rc-glint .rc-auc-icon { filter: drop-shadow(0 0 4px #c27bff) drop-shadow(0 0 2px #8f4dff); animation: rc-glint 2.4s ease-in-out infinite; }
@keyframes rc-glint { 50% { filter: drop-shadow(0 0 7px #d9a6ff) drop-shadow(0 0 3px #a066ff); } }
.rc-auc-qty { position: absolute; right: 3px; bottom: 1px; font-weight: 800; font-size: 13px; text-shadow: 1px 1px 0 #3f3f3f; color: #fff; }
.rc-auc-custom { position: absolute; left: 4px; top: 2px; font-size: 11px; color: #ffd166; }
.rc-auc-name { font-weight: 600; font-size: 14px; line-height: 1.25; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #fff; }
.rc-auc-price { color: #3ddc84; font-weight: 700; font-size: 15px; }
.rc-auc-seller { color: var(--rc-muted); font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-auc-modal { display: flex; gap: 14px; align-items: flex-start; }
.rc-auc-tip { flex: 1; min-width: 0; background: rgba(16,0,16,.94); border: 2px solid #2a0a5e; border-radius: 6px; padding: 8px 10px; font-size: 14px; line-height: 1.45; color: #fff; overflow-wrap: anywhere; }
.rc-auc-tip-name { font-size: 15px; margin-bottom: 2px; }
.rc-auc-deal { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.rc-auc-deal > div { display: flex; flex-direction: column; gap: 2px; background: var(--rc-panel-2); border: 1px solid var(--rc-border); border-radius: 8px; padding: 8px 10px; }
.rc-auc-deal b { font-size: 15px; }
.rc-obf { filter: blur(2px); }
@media (max-width: 560px) { .rc-auc-grid { grid-template-columns: repeat(2, 1fr); } .rc-auc-modal { flex-direction: column; } }

/* v1.32.0: resource pack item pictures (sprite sheet) */
.rc-auc-sprite { display: inline-block; background-repeat: no-repeat; image-rendering: pixelated; flex: none; }
.rc-glint .rc-auc-sprite { filter: drop-shadow(0 0 4px #c27bff) drop-shadow(0 0 2px #8f4dff); animation: rc-glint 2.4s ease-in-out infinite; }

/* v1.35.0: link Minecraft from the website */
.rc-linkbox { display: block; }
.rc-link-row { display: flex; gap: 6px; }
.rc-link-row .rc-input { flex: 1; min-width: 0; margin: 0; }
.rc-link-row .rc-btn { flex: none; padding: 8px 12px; }
.rc-link-msg { margin-top: 8px; font-size: 13px; color: var(--rc-muted); }
.rc-link-msg.ok { color: #3ddc84; }
.rc-link-msg.bad { color: #ff6b6b; }

/* v1.36.0 Connect Discord */
.rc-discord-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #5865f2; border-color: #5865f2; color: #fff; text-decoration: none; }
.rc-discord-btn:hover { background: #4752c4; border-color: #4752c4; }
.rc-discord-btn[aria-disabled="true"] { opacity: .7; cursor: default; }
.rc-acct-dc .rc-dc-av { width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; margin-right: 5px; }
.rc-acct-dc .rc-link[disabled] { opacity: .5; cursor: default; }

/* v1.38.0 Java / Bedrock switch in the link box */
.rc-ed-switch { display: flex; gap: 6px; margin: 0 0 8px; }
.rc-ed-switch button { flex: 1; padding: 7px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.rc-ed-switch button:hover { border-color: rgba(255,255,255,.35); }
.rc-ed-switch button.on { background: #3ddc84; border-color: #3ddc84; color: #0b1a10; font-weight: 700; }

/* v1.39.0 guest checkout note */
.rc-guest-note { margin: 12px 0 4px; padding: 9px 11px; border-radius: 8px; font-size: 13px; line-height: 1.4; background: rgba(255,209,102,.1); border: 1px solid rgba(255,209,102,.35); }
.rc-guest-note a { color: #ffd166; font-weight: 700; }

/* ---------- v1.67.0: hoodie / merch shop (store-merch.js) ---------- */
.rs-m-prevtag { background: #7b2cbf; box-shadow: 0 2px 6px rgba(123,44,191,.5); }
.rs-m-navcount { display: inline-block; min-width: 18px; padding: 1px 5px; margin-left: 5px; border-radius: 9px; background: var(--rc-c); color: #111; font-variant: normal; font-size: 11px; text-align: center; }
.rs-m-preview { background: rgba(123,44,191,.18); border: 1px solid rgba(199,125,255,.45); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; line-height: 1.5; }
.rs-m-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rs-m-back { font-weight: 800; font-size: 22px; color: #fff; font-variant: all-small-caps; letter-spacing: .8px; }
.rs-m-cartbtn { padding: 8px 14px; }
.rs-m-intro { color: var(--rc-muted); margin: 0 0 16px; }
.rs-m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.rs-m-card { display: flex; flex-direction: column; background: var(--rc-panel-2); border: 1px solid var(--rc-border); border-radius: 10px; overflow: hidden; color: inherit; transition: border-color .15s, transform .15s; }
.rs-m-card:hover { border-color: rgba(255,255,255,.22); transform: translateY(-2px); }
.rs-m-card.out { opacity: .6; }
.rs-m-card-img { position: relative; aspect-ratio: 1 / 1; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
.rs-m-card-img img { width: 100%; height: 100%; object-fit: cover; }
.rs-m-card-img > span { font-size: 64px; }
.rs-m-badge { position: absolute; top: 8px; left: 8px; background: var(--rc-accent); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 5px; }
.rs-m-badge.sold { left: auto; right: 8px; background: #c94848; }
.rs-m-badge.inline { position: static; vertical-align: middle; font-size: 12px; }
.rs-m-card-body { padding: 10px 12px 12px; }
.rs-m-card-name { font-weight: 700; color: #fff; }
.rs-m-card-price { color: var(--rc-muted); margin-top: 2px; }
.rs-m-dots { display: flex; gap: 4px; margin-top: 8px; }
.rs-m-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); }
.rs-m-prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rs-m-big { aspect-ratio: 1 / 1; background: rgba(0,0,0,.25); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rs-m-big img { width: 100%; height: 100%; object-fit: contain; }
.rs-m-big > span { font-size: 120px; }
.rs-m-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rs-m-thumbs button { width: 62px; height: 62px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: rgba(0,0,0,.25); cursor: pointer; }
.rs-m-thumbs button.on { border-color: var(--rc-accent); }
.rs-m-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.rs-m-title { margin: 0; color: #fff; font-size: 26px; }
.rs-m-price { font-size: 22px; font-weight: 700; margin-top: 6px; }
.rs-m-price small { opacity: .6; font-size: 13px; }
.rs-m-swatches, .rs-m-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-m-sw { width: 38px; height: 38px; border-radius: 50%; padding: 3px; border: 2px solid transparent; background: transparent; cursor: pointer; position: relative; }
.rs-m-sw i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.rs-m-sw.on { border-color: #fff; }
.rs-m-sw.out::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: #ff7a7a; transform: rotate(-45deg); }
.rs-m-size { min-width: 52px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--rc-border); background: rgba(255,255,255,.05); color: #fff; font: inherit; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.rs-m-size small { font-weight: 400; font-size: 11px; color: var(--rc-muted); }
.rs-m-size.on { border-color: var(--rc-accent); background: rgba(61,111,217,.25); }
.rs-m-size:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.rs-m-low { color: #ffb347; font-size: 13px; margin-top: 8px; font-weight: 700; }
.rs-m-qtyrow { display: flex; }
.rs-m-shipnote { margin-top: 14px; color: var(--rc-muted); font-size: 14px; }
.rs-m-desc { margin-top: 16px; line-height: 1.6; font-size: 15px; border-top: 1px solid var(--rc-border); padding-top: 14px; }
.rs-m-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rc-border); }
.rs-m-line img, .rs-m-noimg { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 8px; object-fit: cover; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.rs-m-line-name { flex: 1; min-width: 0; font-weight: 700; }
.rs-m-line-name a { color: #fff; }
.rs-m-line-total { min-width: 70px; text-align: right; font-weight: 600; }
.rs-m-totals { max-width: 460px; margin: 16px 0 0 auto; font-size: 15px; }
.rs-m-totals > div, .rs-m-orderitems > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.rs-m-totals .big, .rs-m-orderitems .big { font-size: 19px; font-weight: 800; color: #fff; border-top: 1px solid var(--rc-border); margin-top: 4px; padding-top: 8px; }
.rs-m-totals small { opacity: .6; font-size: 12px; }
.rs-m-free { color: #3ddc84; font-size: 13px; justify-content: flex-end !important; }
.rs-m-h3 { margin: 22px 0 0; font-size: 16px; color: #fff; }
.rs-m-row3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.rs-m-fixed { padding: 10px 12px; border: 1px dashed var(--rc-border); border-radius: 8px; font-size: 14px; }
.rs-m-paybtn { margin-top: 14px; }
.rs-m-paybtn + .rs-m-paybtn { margin-top: 10px; }
.rs-m-form .rc-label input[type=checkbox] { vertical-align: middle; margin-right: 4px; }
.rs-m-status { margin: 16px 0; padding: 12px 14px; border-radius: 8px; background: var(--rc-panel-2); border: 1px solid var(--rc-border); }
.rs-m-status.bad { border-color: #c94848; color: #ff8a8a; }
.rs-m-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 20px 0; }
.rs-m-steps > div { text-align: center; font-size: 13px; color: var(--rc-muted); position: relative; padding-top: 22px; }
.rs-m-steps i { position: absolute; top: 0; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.2); }
.rs-m-steps > div.on { color: #fff; font-weight: 700; }
.rs-m-steps > div.on i { background: #3ddc84; border-color: #3ddc84; }
.rs-m-track { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: var(--rc-panel-2); border: 1px solid var(--rc-border); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.rs-m-track > .rc-muted { width: 100%; }
.rs-m-track b { font-size: 18px; letter-spacing: .5px; color: #fff; }
.rs-m-orderitems { max-width: 520px; font-size: 15px; }
.rs-m-shipto { margin: 16px 0; font-size: 15px; line-height: 1.5; }
@media (max-width: 767px) {
  .rs-m-prod { grid-template-columns: 1fr; }
  .rs-m-row3 { grid-template-columns: 1fr 1fr; }
  .rs-m-row3 > div:first-child { grid-column: 1 / -1; }
  .rs-m-line { flex-wrap: wrap; }
  .rs-m-line-name { flex: 1 1 calc(100% - 70px); }
  .rs-m-grid { grid-template-columns: repeat(2, 1fr); }
}
/* v1.69.0: name on the back */
.rs-m-customrow { display: flex; align-items: center; gap: 8px; }
.rs-m-customrow .rc-input { flex: 1; text-transform: uppercase; letter-spacing: .5px; }
.rs-m-count { color: var(--rc-muted); font-size: 12px; min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
/* v1.70.0: sizing guide (collapsed) */
.rs-m-guide { margin-top: 16px; border: 1px solid var(--rc-border); border-radius: 10px; background: var(--rc-panel-2); }
.rs-m-guide summary { cursor: pointer; padding: 11px 14px; font-weight: 700; color: #fff; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.rs-m-guide summary::-webkit-details-marker { display: none; }
.rs-m-guide summary::after { content: '▸'; color: var(--rc-muted); transition: transform .15s; }
.rs-m-guide[open] summary::after { transform: rotate(90deg); }
.rs-m-guide-body { padding: 0 14px 14px; }
.rs-m-guide-scroll { overflow-x: auto; }
.rs-m-guide table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rs-m-guide th, .rs-m-guide td { padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--rc-border); white-space: nowrap; }
.rs-m-guide th { color: var(--rc-muted); font-size: 12px; font-weight: 600; line-height: 1.25; }
.rs-m-guide th small { font-size: 10px; }
.rs-m-guide td:first-child, .rs-m-guide th:first-child { text-align: left; }
.rs-m-guide tr.on td { background: rgba(61,111,217,.18); color: #fff; }
.rs-m-guide-note { margin-top: 10px; font-size: 12px; color: var(--rc-muted); line-height: 1.5; }
/* v1.71.0: return policy under the shipping note */
.rs-m-returns { margin-top: 8px; line-height: 1.5; }
