/* SlashClient website and admin panel: the launcher's look (dark glass, blue accent, Outfit). */
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url(vendor/fonts/outfit-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url(vendor/fonts/outfit-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0a0d14;
  --bg-2: #111622;
  --card: rgba(255, 255, 255, .03);
  --card-hover: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .07);
  --border-focus: rgba(59, 130, 246, .45);
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #1d4ed8;
  --accent-glow: rgba(59, 130, 246, .35);
  --text: #f3f4f6;
  --text-2: #9ca3af;
  --muted: #6b7280;
  --danger: #ef4444;
  --green: #4ade80;
  --gold: #facc15;
  --radius: 16px;
  --btn-radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.55 "Outfit", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(59, 130, 246, .16), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(168, 85, 247, .10), transparent 60%), var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }

/* ---------- controls ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  font: 600 14px "Outfit", sans-serif; color: var(--text); background: var(--card); border: 1px solid var(--border);
  border-radius: var(--btn-radius); cursor: pointer; transition: background .2s, border-color .2s, transform .1s; white-space: nowrap; text-decoration: none;
}
button:hover, .btn:hover { background: var(--card-hover); border-color: rgba(255, 255, 255, .14); text-decoration: none; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }
.primary { background: var(--accent-gradient, linear-gradient(135deg, #3b82f6, #1d4ed8)); border-color: transparent; color: #fff; box-shadow: 0 6px 20px var(--accent-glow); }
.primary:hover { background: linear-gradient(135deg, #60a5fa, #2563eb); border-color: transparent; }
.danger { color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.danger:hover { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .6); }
.icon-btn { width: 36px; height: 36px; padding: 0; }
.big { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
input[type=text], input[type=search], select {
  height: 40px; padding: 0 12px; color: var(--text); background: rgba(0, 0, 0, .25); border: 1px solid var(--border);
  border-radius: var(--btn-radius); font: 14px "Outfit", sans-serif; outline: none; min-width: 0;
}
input:focus, select:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
/* the opened list takes the box's see-through background and comes out light grey: its own dark one */
select option { background: var(--bg-2); color: var(--text); }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: absolute; inset: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #2a3142; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(59, 130, 246, .35); }

.glass { background: rgba(17, 22, 34, .72); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(14px); }
.card { padding: 20px; }
/* cards stacked on an admin page (and whatever follows one) keep apart instead of touching */
#main > * + .card, #main > .card + * { margin-top: 16px; }
/* a row that opens its details (linkRow in common.js) */
tr.row-link { cursor: pointer; }
tr.row-link:hover, tr.row-link:focus-visible { background: rgba(255, 255, 255, .05); }
tr.row-link:focus-visible { outline: 2px solid rgba(59, 130, 246, .6); outline-offset: -2px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* a switch with its text: the text wraps beside the switch, never under it */
label.row:has(> .switch) { flex-wrap: nowrap; }
label.row > .switch { flex-shrink: 0; }
/* switches one under another: a gap between them, not touching */
.card > label.row:has(> .switch) + label.row:has(> .switch) { margin-top: 10px; }
/* the admin panel's list of worn capes (not the account page's "worn" slot tabs) */
div.worn { display: flex; flex-direction: column; gap: 6px; }
.grow { flex: 1; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .06); color: var(--text-2); }
.chip.blue { background: rgba(59, 130, 246, .15); color: var(--accent-light); }
.chip.red { background: rgba(239, 68, 68, .14); color: #fca5a5; }
.chip.gold { background: rgba(250, 204, 21, .14); color: var(--gold); }
.avatar-choice { gap: 8px; flex-wrap: wrap; }
.avatar-pick { height: auto; padding: 4px 10px 4px 4px; gap: 8px; border-radius: 10px; font-size: 13px; }
.avatar-pick img { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }
.avatar-pick.selected { border-color: var(--accent); background: rgba(59, 130, 246, .12); }
.chip-logo { width: 14px; height: 14px; border-radius: 3px; }
.chip.sky { background: rgba(56, 189, 248, .14); color: #7dd3fc; }
.chip.green { background: rgba(74, 222, 128, .12); color: var(--green); }
.chip.pink { background: rgba(236, 72, 153, .14); color: #f9a8d4; }
.avatar { padding: 0; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--accent-gradient, linear-gradient(135deg, #3b82f6, #1d4ed8)); display: grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; }
.avatar.big { width: 64px; height: 64px; padding: 0; border-radius: 18px; font-size: 26px; }
/* a picture (often with a transparent background) sits on a neutral tile, not on the letter's gradient */
img.avatar { background: rgba(255, 255, 255, .06); }
/* the Minecraft face: sharp pixels */
img.avatar[src^="/v1/head/"] { image-rendering: pixelated; }
/* chips that can be clicked keep the size of the others */
button.chip { height: auto; min-height: 0; padding: 2px 10px; border: 0; font-size: 12px; font-weight: 600; cursor: pointer; }
button.chip:hover { background: rgba(255, 255, 255, .12); color: var(--text); }

/* the front of a cape texture (256×128, the face at 4,4 40×64) */
.cape { width: 60px; height: 96px; border-radius: 6px; flex-shrink: 0; image-rendering: pixelated; background-repeat: no-repeat; background-size: 384px 192px; background-position: -6px -6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.cape.sm { width: 30px; height: 48px; background-size: 192px 96px; background-position: -3px -3px; border-radius: 4px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(380px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: rgba(17, 22, 34, .95); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); display: flex; gap: 10px; align-items: center; animation: rise .25s ease; }
.toast i { color: var(--green); }
.toast.error i { color: var(--danger); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- the public page ---------- */
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); background: rgba(10, 13, 20, .7); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand b { color: var(--accent-light); font-weight: 800; }
.nav-links { display: flex; gap: 18px; margin-left: 8px; }
.nav-links a { color: var(--text-2); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.nav-support { color: #f9a8d4; }
.nav .push { margin-left: auto; }

/* account */
.account { display: block; }
/* the account page's tabs (account.js): one card or two at a time */
.account-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.account-tabs button { height: 36px; padding: 0 14px; font-size: 14px; }
.account-tabs button.active { border-color: var(--accent); background: rgba(59, 130, 246, .12); }
.account-panel { display: flex; flex-direction: column; gap: 16px; }
.account-profile { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; align-items: start; }
.account-panel.hidden { display: none; }
.signin { max-width: 460px; }
.signin .providers { display: grid; gap: 10px; margin-top: 16px; }
.signin .providers button { justify-content: flex-start; height: 46px; }
.profile-card { display: flex; flex-direction: column; gap: 14px; }
.cape.wing { background-size: 307px 154px; background-position: -163px -10px; }
.cape.wing.sm { background-size: 154px 77px; background-position: -82px -5px; }
.cape.icon-item { display: grid; place-items: center; background: rgba(255, 255, 255, .04); color: var(--accent-light, #93c5fd); font-size: 26px; }
.cape.icon-item.sm { font-size: 14px; }
.cape.clothing { background-color: rgba(255, 255, 255, .04); background-size: 54px 54px; background-position: center; }
.cape.clothing.sm { background-size: 27px 27px; }
.cape.held { background-color: rgba(255, 255, 255, .04); box-shadow: none; }
.cape.ring { background-color: rgba(255, 255, 255, .04); background-size: 108px 54px; background-position: 3px center; }
.cape.ring.sm { background-size: 54px 27px; background-position: 1.5px center; }
.cape.spray { background-size: 64px 64px; image-rendering: pixelated; }
.cape.spray.sm { background-size: 32px 32px; }
.slot-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.slot-tabs button { height: 32px; padding: 0 12px; font-size: 13px; position: relative; }
.slot-tabs button.active { border-color: var(--accent); background: rgba(59, 130, 246, .12); }
.slot-tabs button.worn::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.cosmetic-for { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.slot-head { grid-column: 1 / -1; margin: 10px 0 0; display: flex; align-items: center; gap: 8px; }
/* all cards the same width (a long name does not push one out to the next row) */
.cape-picker { display: grid; grid-template-columns: repeat(auto-fill, 88px); gap: 12px; }
.cape-choice { height: auto; padding: 10px; flex-direction: column; justify-content: flex-start; gap: 6px; font-weight: 500; font-size: 12px; width: 88px; min-width: 0; position: relative; }
.cape-name { display: block; width: 100%; overflow: hidden; white-space: nowrap; text-align: center; }
.cape-name > span { display: inline-block; }
/* a name wider than the card slides to its end and back, pausing at each end */
.cape-name.long { text-align: left; }
.cape-name.long > span { animation: cape-name-slide var(--slide, 4s) ease-in-out infinite alternate; }
@keyframes cape-name-slide { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(var(--over)); } }
html.reduce-motion .cape-name.long > span { animation: none; }
html.reduce-motion .cape-name.long { text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .cape-name.long > span { animation: none; } .cape-name.long { text-overflow: ellipsis; } }
.cape-choice.selected { border-color: var(--accent); background: rgba(59, 130, 246, .12); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.cape-choice .lock { position: absolute; top: 6px; right: 6px; color: var(--gold); font-size: 12px; }
.cape-choice.none .cape { display: grid; place-items: center; background: rgba(255, 255, 255, .04); box-shadow: none; color: var(--muted); font-size: 20px; }

/* ---------- the admin panel ---------- */
.admin { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { padding: 20px 14px; border-right: 1px solid var(--border); background: rgba(10, 13, 20, .6); display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.side .brand { margin: 0 8px 18px; }
.side { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .25) transparent; }
.side .side-group { margin: 10px 12px 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); opacity: .7; }
.side .side-group:first-of-type { margin-top: 0; }
.side .tab { justify-content: flex-start; height: 42px; background: transparent; border-color: transparent; color: var(--text-2); font-weight: 500; }
.side .tab i { width: 18px; text-align: center; }
.side .tab:hover { background: var(--card); color: var(--text); }
.side .tab.active { background: rgba(59, 130, 246, .14); color: var(--text); border-color: rgba(96, 165, 250, .25); }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--card); }
.side .me .avatar { width: 34px; height: 34px; border-radius: 10px; }
.main { padding: 28px 32px 60px; min-width: 0; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { padding: 18px; }
.stat small { color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.stat small i { color: var(--accent-light); }
.stat b { display: block; font-size: 30px; font-weight: 800; margin-top: 6px; }
.stat em { font-style: normal; font-size: 12px; color: var(--green); }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.chart div { flex: 1; min-width: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #60a5fa, #1d4ed8); opacity: .85; position: relative; }
.chart div:hover { opacity: 1; }
.chart div[data-n="0"] { background: rgba(255, 255, 255, .06); }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bars .bar { display: grid; grid-template-columns: 30px 90px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; }
.bars .track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bars .track div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1d4ed8, #60a5fa); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .04); vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: var(--card); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; }
.who div { min-width: 0; }
.who b, .who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: var(--muted); }
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 14px; color: var(--text-2); font-size: 13px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 30; padding: 24px; overflow-y: auto; border-radius: 0; border-width: 0 0 0 1px; display: flex; flex-direction: column; gap: 18px; animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.shade { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 25; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cosmetics { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cos { display: flex; gap: 16px; padding: 18px; }
.cos .opts { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.cos label.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.grantees { display: flex; flex-wrap: wrap; gap: 6px; }
.grantees .chip button { all: unset; cursor: pointer; color: var(--muted); }
.grantees .chip button:hover { color: var(--danger); }
.gate { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.gate .card { width: min(420px, 100%); text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.log-detail { color: var(--text-2); }
.clan-logo { width: 32px; height: 32px; border-radius: 6px; display: inline-grid; place-items: center; image-rendering: pixelated; }
.clan-logo-none { background: #b45309; color: #fff; font-size: 11px; font-weight: 700; }

@media (max-width: 900px) {
  .two, .account-profile { grid-template-columns: 1fr; }
  /* on a phone the tabs scroll sideways in one row */
  .account-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .account-tabs button { flex-shrink: 0; }
  .nav-links { display: none; }
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--border); }
  .side .brand { margin: 0 8px 0 0; }
  .side .me { margin: 0 0 0 auto; }
  .side .side-group { display: none; }
  .main { padding: 20px 16px 50px; }
  .hide-sm { display: none; }
}
.cos form { flex-wrap: nowrap; }
.cos form input { flex: 1; width: 0; }
@media (max-width: 600px) {
  .nav .wrap { gap: 10px; }
  .nav .push { flex-wrap: nowrap; gap: 8px; }
  .nav .label { display: none; }
  .nav .btn { width: 40px; padding: 0; }
}

/* the sign-in code (Microsoft) */
.login-code-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5, 7, 12, .7); backdrop-filter: blur(6px); }
.login-code { max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.login-code h3 { margin: 0; }
.login-code p { margin: 0; }
.login-code-value { font: 700 28px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; padding: 14px; text-align: center; border-radius: 12px; background: rgba(255, 255, 255, .06); user-select: all; }

/* partner servers: the banner as the game shows it behind the server in the list */
.partner-list { display: grid; gap: 14px; }
.partner-add input { flex: 1; min-width: 150px; }
.partner-card { display: flex; flex-direction: column; gap: 12px; }
.partner-card form input { width: 200px; }
.partner-addresses { flex-wrap: wrap; gap: 6px; }
.partner-aliases { display: flex; flex-direction: column; gap: 6px; }
.partner-aliases textarea { width: 100%; max-width: 420px; box-sizing: border-box; padding: 8px 10px; color: var(--text); background: rgba(0, 0, 0, .25); border: 1px solid var(--border); border-radius: var(--btn-radius); font: 13px ui-monospace, Consolas, monospace; resize: vertical; }
.partner-alias-error { margin: 0; padding: 6px 10px; max-width: 420px; box-sizing: border-box; border-radius: var(--btn-radius); background: rgba(239, 68, 68, .14); color: #fca5a5; font-size: 13px; }
.partner-alias-error[hidden] { display: none; }
/* one row of the game's server list (300×32 there), twice as large, with the game's dark list behind it */
.partner-row-wrap { background: rgba(0, 0, 0, .45); border-radius: 6px; padding: 8px; max-width: 476px; }
.partner-banner { position: relative; width: 100%; aspect-ratio: 300 / 32; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 0;
  background-size: cover; background-position: center; border-radius: 4px;
  box-shadow: 0 0 0 1px #f59e0b, inset 0 0 0 1px rgba(253, 230, 138, .35); container-type: inline-size; }
.partner-banner.empty { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 12px, rgba(255, 255, 255, .06) 12px 24px); }
.partner-banner .mc-icon { height: 100%; aspect-ratio: 1; flex-shrink: 0; background: rgba(0, 0, 0, .35); display: grid; place-items: center; border-radius: 4px 0 0 4px; }
.partner-banner .mc-icon img { width: 70%; image-rendering: pixelated; }
.partner-banner .mc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2cqw; text-shadow: 2px 2px 0 rgba(0, 0, 0, .55); }
.partner-banner .mc-name { display: flex; align-items: center; gap: 8px; font-size: clamp(11px, 3.1cqw, 18px); color: #fff; white-space: nowrap; }
.partner-banner .mc-name > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.partner-banner .mc-motd { font-size: clamp(10px, 2.7cqw, 16px); color: #a8a8a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partner-banner .mc-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 5px; font-size: clamp(8px, 2cqw, 12px); font-weight: 700; color: #451a03;
  background: linear-gradient(#fde68a, #f59e0b); box-shadow: inset 0 1px 0 #fef3c7, 0 1px 0 rgba(0, 0, 0, .35); text-shadow: none; flex-shrink: 0; }
.partner-banner .mc-status { align-self: flex-start; margin-top: 1.2cqw; display: flex; align-items: flex-end; gap: 6px; font-size: clamp(10px, 2.7cqw, 16px); color: #a8a8a8; text-shadow: 2px 2px 0 rgba(0, 0, 0, .55); }
.mc-bars { display: inline-flex; align-items: flex-end; gap: 1px; }
.mc-bars i { width: 2px; background: #22c55e; display: block; }
.partner-own { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
/* the animated icon fills the icon's square, pixel art kept sharp */
.partner-banner .mc-icon canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.partner-icon { align-items: center; flex-wrap: wrap; }
.partner-icon small { flex-basis: 100%; }
.partner-icon-preview { width: 64px; height: 64px; flex-shrink: 0; display: grid; place-items: center; border-radius: 6px; background: rgba(0, 0, 0, .35); color: rgba(255, 255, 255, .35); }
.partner-icon-preview canvas, .partner-icon-preview img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; border-radius: 6px; }
label.btn input.hidden { display: none; }

/* the request log in the admin panel */
.req-bar { gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.req-bar input[type=search] { flex: 1; min-width: 200px; }
.req-path code { font-size: 12.5px; word-break: break-all; }
.scroll-x { overflow-x: auto; }
.req-card { margin-bottom: 14px; }
.req-card h3, .req-card + .card h3 { font-size: 15px; margin-bottom: 10px; }

/* the 3D figure (account page, home page) */
.figure { position: relative; flex-shrink: 0; border-radius: 14px; background: radial-gradient(closest-side, rgba(59, 130, 246, .22), transparent 75%); cursor: grab; }
.figure:active { cursor: grabbing; }
.figure canvas { display: block; }
.cosmetic-stage { display: flex; gap: 16px; align-items: flex-start; margin-top: 12px; }
.cosmetic-stage .grow { min-width: 0; }
.figure-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.figure-caption { color: var(--text-2); font-size: 14px; min-height: 1.4em; text-align: center; }
.cape.icon-item .game-icon { width: 40px; height: 40px; image-rendering: pixelated; }
.cape.icon-item.sm .game-icon { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .cosmetic-stage { flex-direction: column; align-items: center; }
}
.partner-pins { gap: 18px; }

/* ---------- sparks (the achievements' currency): prices, the balance, achievements on the account page ---------- */
.spark-sign { color: #fbbf24; }
.spark-price { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 8px; background: rgba(15, 15, 20, .85); color: #fde68a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.cape-choice.for-sale > :first-child { filter: saturate(.75) brightness(.85); }
.cape-strip .cape.priced { position: relative; }
.cape-strip .cape .spark-price { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); font-size: 10px; }
.sparks-card { display: flex; flex-direction: column; gap: 10px; grid-column: 1 / -1; }
/* on the account page it stands beside the profile card, not under it with an empty column */
.account-profile > .sparks-card { grid-column: auto; }
.spark-balance { font-size: 14px; gap: 6px; }
.ach-cat h4 { margin: 6px 0 8px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.ach-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ach-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.ach-item > i { width: 18px; text-align: center; color: var(--muted); }
.ach-item.done { border-color: rgba(250, 204, 21, .3); }
.ach-item.done > i { color: var(--gold); }
.ach-item .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ach-item b { font-size: 13px; }
.ach-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 2px; }
.ach-progress { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.ach-reward { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ach-reward.got { color: #fde68a; }
.ledger { display: flex; flex-direction: column; }
.ledger-row { display: flex; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 13px; }
.ledger-row:last-child { border-bottom: none; }
.ledger-row .plus { color: #fbbf24; min-width: 60px; text-align: right; }
.ledger-row .minus { color: #f87171; min-width: 60px; text-align: right; }
.wallet-admin form input[type=number] { width: 120px; }
.wallet-admin form input[type=text] { flex: 1; min-width: 160px; }
.ledger-table { width: 100%; font-size: 12px; margin-top: 8px; }
.ledger-table td { padding: 3px 6px; }
.ledger-table .plus { color: #fbbf24; text-align: right; }
.ledger-table .minus { color: #f87171; text-align: right; }
.shop-admin { margin-bottom: 14px; }
.shop-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.shop-admin-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.shop-admin-item .grow { display: flex; flex-direction: column; min-width: 0; }
.shop-admin-item input { width: 80px; }
.ledger-table td.nowrap { white-space: nowrap; }

/* the admin panel's achievement creator (adminAchievements.js) and "how to get" on the cosmetics */
.chip.purple { background: rgba(168, 85, 247, .14); color: #d8b4fe; }
.chip.off { opacity: .55; text-decoration: line-through; }
a.chip.link:hover { background: rgba(168, 85, 247, .26); }
button.chip.active { background: var(--accent); color: #fff; }
.obtain { display: flex; flex-wrap: wrap; gap: 4px; }
.ach-admin-filters { margin: 4px 0 14px; }
.ach-admin-filters input { flex: 1; min-width: 200px; }
.ach-admin-list { display: flex; flex-direction: column; gap: 6px; }
.ach-admin-row { display: flex; align-items: center; gap: 10px; width: 100%; height: auto; padding: 10px 14px; text-align: left; cursor: pointer; }
.ach-admin-row:hover { border-color: var(--border-focus); }
.ach-admin-row.off { opacity: .6; }
.ach-admin-row .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ach-admin-icon, .ach-preview-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(250, 204, 21, .12); color: var(--gold); font-size: 17px; }
.ach-admin-reward .cape { transform: scale(.7); margin: -8px; }
.ach-editor { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.ach-editor-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .ach-editor-cols { grid-template-columns: 1fr; } }
.ach-editor-main { display: flex; flex-direction: column; gap: 12px; }
.ach-editor-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ach-editor .row.two > * { flex: 1; min-width: 200px; }
.ach-editor .field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.ach-editor .field > span { font-weight: 600; }
.ach-editor textarea, .ach-editor input[type=number], .holders textarea, .card textarea {
  padding: 8px 12px; color: var(--text); background: rgba(0, 0, 0, .25); border: 1px solid var(--border); border-radius: 10px; font: inherit; resize: vertical;
}
.ach-editor input[type=number] { height: 40px; }
.ach-editor input:disabled, .ach-editor select:disabled { opacity: .6; }
.icon-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.icon-pick { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; }
.icon-pick.active { background: rgba(250, 204, 21, .18); border-color: var(--gold); color: var(--gold); }
.reward-pick { display: flex; flex-direction: column; gap: 8px; }
.reward-pick .row input { flex: 1; }
.reward-chosen { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.reward-chosen .grow { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.reward-tile { height: auto; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.reward-tile.active { border-color: var(--gold); background: rgba(250, 204, 21, .1); }
.reward-tile .tiny { font-size: 10px; line-height: 1.2; }
.warn { color: #fbbf24; }
.ach-preview { display: flex; flex-direction: column; gap: 8px; }
.ach-preview-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); }
.ach-preview-card .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ach-preview-card.secret .ach-preview-icon { background: rgba(255, 255, 255, .06); color: var(--text-2); }
.ach-preview-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .08); margin-top: 4px; }
.ach-preview-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ach-preview-reward { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; }
.holder { padding: 6px 0; border-top: 1px solid var(--border); }
/* the challenges (adminChallenges.js) */
.chal-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; margin-bottom: 18px; align-items: start; }
.chal-top .card { padding: 20px; }
.chal-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 10px 0; }
.chal-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); }
.chal-stat b { font-size: 18px; }
.chal-pool { margin-bottom: 20px; }
.chal-pool h2 { font-size: 17px; margin: 6px 0 10px; }
.chal-row .switch { display: inline-block; }
.cos .obtain { margin-top: -2px; }
.cos label.opt input[type=number] { width: 90px; height: 32px; padding: 0 8px; color: var(--text); background: rgba(0, 0, 0, .25); border: 1px solid var(--border); border-radius: 8px; }
.ach-editor label.opt, .card label.opt { display: inline-flex; align-items: center; gap: 10px; margin-right: 18px; font-size: 14px; }
.ach-editor .switch, .card .switch { display: inline-block; }
.card form.row textarea { flex: 1; min-width: 240px; }
/* the account page's profile privacy (profilePrivacy.js) */
.account-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.privacy-card h3 { margin: 0 0 6px; }
.privacy-card h4 { margin: 16px 0 8px; font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; }
.privacy-link { gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.privacy-link input { min-width: 0; flex: 1 1 100%; font-size: 13px; }
.privacy-visibility { display: flex; flex-direction: column; gap: 6px; }
.privacy-visibility button { justify-content: flex-start; height: auto; padding: 8px 12px; gap: 12px; text-align: left; }
.privacy-visibility button span { display: flex; flex-direction: column; line-height: 1.3; }
.privacy-visibility button i { width: 18px; text-align: center; color: var(--text-2); }
.privacy-visibility button.selected { border-color: var(--accent); background: rgba(59, 130, 246, .12); }
.privacy-visibility button.selected i { color: var(--accent-light); }
.privacy-elements { display: flex; flex-direction: column; gap: 8px; }
.privacy-index { margin-top: 14px; }
.privacy-card label.row { flex-wrap: nowrap; }
.privacy-hidden { padding: 8px 12px; border-radius: 10px; background: rgba(239, 68, 68, .12); color: #fca5a5; }
/* the account page's legal bits (legalNotice.js) */
.signin .legal-note { margin: 14px 0 0; }
.signin .legal-note a, .legal-notice a:not(.btn) { color: var(--accent-light); }
.legal-notice { margin-bottom: 14px; border-color: rgba(96, 165, 250, .35); }
.legal-notice .fa-scale-balanced { color: var(--accent-light); }
.legal-notice p { margin: 6px 0 10px; }
/* ranks (ranks.js): the Slash logo in the rank's colour, or its own icon, and a chip in its colour */
.rank-logo { display: inline-block; width: 13px; height: 15px; flex-shrink: 0; background: var(--rank, #fff); -webkit-mask: url(/img/badge.svg) center / contain no-repeat; mask: url(/img/badge.svg) center / contain no-repeat; }
.rank-icon { width: 16px; height: 16px; flex-shrink: 0; image-rendering: pixelated; }
.chip.rank-chip { background: color-mix(in srgb, var(--rank, #9ca3af) 16%, transparent); color: color-mix(in srgb, var(--rank, #d1d5db) 70%, #fff); }
.rank-grants { display: flex; flex-direction: column; gap: 6px; }
.rank-grant { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rank-grant.expired { opacity: .5; }
.rank-swatch { width: 18px; height: 18px; border-radius: 5px; background: var(--rank); flex-shrink: 0; }
.rank-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.rank-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.rank-form input[type=color] { height: 40px; width: 100%; padding: 2px; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); border-radius: var(--btn-radius); }
.rank-list { display: flex; flex-direction: column; gap: 12px; }

/* The admin's announcement on top of the pages (siteBanner.js; its preview in the panel's Ustawienia) */
/* floating at the bottom: the pages' headers are fixed at the top */
.site-banner { position: fixed; z-index: 1000; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(920px, calc(100% - 32px)); box-sizing: border-box;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; font-size: 14px; border-radius: 12px;
  color: #dbeafe; background: rgba(23, 37, 84, .95); border: 1px solid rgba(96, 165, 250, .45); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.site-banner.warning { color: #fef3c7; background: rgba(69, 39, 6, .95); border-color: rgba(251, 191, 36, .5); }
.site-banner > i { flex-shrink: 0; }
.site-banner-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.site-banner a { color: inherit; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.site-banner .site-banner-close { width: 28px; height: 28px; flex-shrink: 0; background: transparent; border-color: transparent; color: inherit; }
/* Twitch and Kick (profileStream.js, accountStreams.js, adminStreams.js): Kick's green "K", Twitch's purple */
.kick-mark { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; border-radius: 3px; background: #53fc18; color: #0b0e14; font-weight: 900; font-size: .85em; line-height: 1; font-style: normal; flex-shrink: 0; }
i.fa-twitch { color: #a970ff; }
.streams-card .stream-row { align-items: center; gap: 10px; margin: 6px 0; }
.streams-card .stream-row a { overflow-wrap: anywhere; }

/* ---------- the site's questions (confirmModal, promptModal in common.js) ---------- */
html.modal-open { overflow: hidden; }
.modal-back {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: rgba(5, 7, 12, .66); backdrop-filter: blur(6px); animation: modal-fade .18s ease-out;
}
.modal {
  width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 22px;
  background: rgba(17, 22, 34, .97); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); animation: modal-pop .22s cubic-bezier(.16, 1, .3, 1);
}
.modal.wide { max-width: 560px; }
.modal-head { display: flex; align-items: center; gap: 12px; }
.modal-head h2 { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.modal-mark { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: rgba(59, 130, 246, .15); color: var(--accent-light); font-size: 16px; }
.modal.is-danger .modal-mark { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.modal.is-warning .modal-mark { background: rgba(250, 204, 21, .14); color: var(--gold); }
.modal-text { margin: 0; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.modal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 42vh; overflow-y: auto; }
.modal-list li { padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); overflow-wrap: anywhere; }
.modal-change { display: flex; flex-direction: column; gap: 2px; }
.modal-change-name { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.modal-change-values { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; }
.modal-change-values .old { color: var(--text-2); }
.modal-change-values .arrow { color: var(--muted); }
.modal-change-values .new { color: var(--text); font-weight: 600; }
.modal-change.risky { background: rgba(250, 204, 21, .06); border-color: rgba(250, 204, 21, .32); }
.modal-change.risky .modal-change-name i { color: var(--gold); }
.modal-warning { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: #fde68a; background: rgba(250, 204, 21, .08); border: 1px solid rgba(250, 204, 21, .3); }
.modal-warning i { margin-top: 3px; color: var(--gold); }
.modal-warning span { white-space: pre-line; }
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-field label { font-size: 13px; color: var(--text-2); }
.modal-field input, .modal-field textarea {
  width: 100%; min-height: 40px; padding: 8px 12px; color: var(--text); background: rgba(0, 0, 0, .25); border: 1px solid var(--border);
  border-radius: var(--btn-radius); font: 14px "Outfit", sans-serif; outline: none; resize: vertical;
}
.modal-field input:focus, .modal-field textarea:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.modal-field .bad { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }
.modal-error { color: #fca5a5; }
.modal-error:empty { display: none; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.modal-actions button:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
button.modal-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(239, 68, 68, .3); }
button.modal-danger:hover { background: linear-gradient(135deg, #f87171, #dc2626); border-color: transparent; }
.modal-back.closing { animation: modal-fade-out .14s ease-in forwards; }
.modal-back.closing .modal { animation: modal-pop-out .14s ease-in forwards; }
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-fade-out { to { opacity: 0; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes modal-pop-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }
@media (max-width: 520px) {
  .modal { padding: 18px; }
  .modal-actions button { flex: 1; }
}
html.reduce-motion .modal-back, html.reduce-motion .modal { animation: none; }
@media (prefers-reduced-motion: reduce) { .modal-back, .modal { animation: none; } }
