/*
 * Nebula visual effects: liquid glass + motion.
 *
 * Three levels, chosen in the account menu (Visual effects) and kept per device, on <html data-fx="...">:
 *   full     glass surfaces with blur, a slowly moving ambient background, entrance / hover / press animations
 *   reduced  the same glass look (lighter blur), but nothing moves
 *   off      the plain flat look, no blur, no animation: for weak devices
 * "Automatic" (the default) picks reduced for people who asked their system for less motion or a weak device, full otherwise (see fx.js).
 */

:root {
    --fx-glass: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018) 55%, rgba(255,255,255,.04));
    --fx-glass-tint: rgba(22,22,32,.46);
    --fx-edge: rgba(255,255,255,.10);
    --fx-edge-top: rgba(255,255,255,.22);
    --fx-shadow: 0 10px 34px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.09), inset 0 -1px 0 rgba(0,0,0,.25);
    --fx-ease: cubic-bezier(.22,.8,.24,1);
}

/* ---------- backdrop: neutral and quiet (a soft top light, a faint dot grid), so the glass reads by its edges and shadows ---------- */
html[data-fx="full"] body::before,
html[data-fx="reduced"] body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60vmax 38vmax at 50% -8%, rgba(255,255,255,.07), transparent 70%),
        radial-gradient(rgba(255,255,255,.055) 1px, transparent 1.2px) 0 0 / 22px 22px,
        linear-gradient(180deg, #14141b 0%, #0e0e13 55%, #0b0b0f 100%);
    -webkit-mask-image: none;
}

/* ---------- glass surfaces ---------- */
/* Every card-like surface in the site (the list is the one place to add a new kind). */
html:is([data-fx="full"], [data-fx="reduced"]) :is(.card, .dl-card, .dv-card, .acc-card, .server-card, .sec-card, .mcs-card, .mcs-world, .mcs-stat, .mcs-vitals, .mcs-plist,
        .mcs-histbox, .mcs-modal, .wiz-box, .android-select, .tb-drop, .jump-box, .nd-box, .srvpick__pop, .toast, .acc-toast, .sec-toast) {
    background: var(--fx-glass), var(--fx-glass-tint);
    border: 1px solid var(--fx-edge);
    border-top-color: var(--fx-edge-top);
    box-shadow: var(--fx-shadow);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    backdrop-filter: blur(22px) saturate(165%);
}
html[data-fx="reduced"] :is(.card, .dl-card, .dv-card, .acc-card, .server-card, .sec-card, .mcs-card, .mcs-world, .mcs-stat, .mcs-vitals, .mcs-plist,
        .mcs-histbox, .mcs-modal, .wiz-box, .android-select, .tb-drop, .jump-box, .nd-box, .srvpick__pop, .toast, .acc-toast, .sec-toast) {
    -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
}
html:is([data-fx="full"], [data-fx="reduced"]) :is(.card, .dl-card, .dv-card, .acc-card, .server-card) { border-radius: 16px; }

html[data-fx="full"] .topbar, html[data-fx="reduced"] .topbar {
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015)), rgba(18,18,26,.62);
    border-bottom: 1px solid var(--fx-edge);
    box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 8px 28px rgba(0,0,0,.28);
    -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
}
html[data-fx="reduced"] .topbar { -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); }

html[data-fx="full"] .form-control, html[data-fx="reduced"] .form-control,
html[data-fx="full"] .jump-box input, html[data-fx="reduced"] .jump-box input {
    background: rgba(8,8,14,.45); border-color: rgba(255,255,255,.10);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.35);
}
html[data-fx="full"] .form-control:focus, html[data-fx="reduced"] .form-control:focus {
    outline: none; border-color: rgba(124,92,255,.7); box-shadow: 0 0 0 3px rgba(124,92,255,.22), inset 0 1px 3px rgba(0,0,0,.35);
}
html[data-fx="full"] .btn-primary, html[data-fx="reduced"] .btn-primary {
    background: linear-gradient(135deg, #4a3df5, #7c5cff); border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 4px 16px rgba(91,75,245,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
html[data-fx="full"] .btn-success, html[data-fx="reduced"] .btn-success { box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
html[data-fx="full"] .btn-danger, html[data-fx="reduced"] .btn-danger { box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
html[data-fx="full"] table tr:hover td, html[data-fx="reduced"] table tr:hover td { background: rgba(255,255,255,.03); }
html[data-fx="full"] .jump-overlay, html[data-fx="reduced"] .jump-overlay { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- motion (full only) ---------- */
html[data-fx="full"] .container > *, html[data-fx="full"] #pageContent > .container > * { animation: fx-rise .55s var(--fx-ease) both; }
html[data-fx="full"] .container > *:nth-child(1) { animation-delay: .02s; }
html[data-fx="full"] .container > *:nth-child(2) { animation-delay: .07s; }
html[data-fx="full"] .container > *:nth-child(3) { animation-delay: .12s; }
html[data-fx="full"] .container > *:nth-child(4) { animation-delay: .17s; }
html[data-fx="full"] .container > *:nth-child(5) { animation-delay: .22s; }
html[data-fx="full"] .container > *:nth-child(6) { animation-delay: .27s; }
html[data-fx="full"] .container > *:nth-child(n+7) { animation-delay: .32s; }
@keyframes fx-rise { from { opacity: 0; transform: translate3d(0,14px,0) scale(.985); } to { opacity: 1; transform: none; } }

html[data-fx="full"] :is(.card, .dl-card, .dv-card, .acc-card, .server-card, .sec-card, .mcs-card) { transition: transform .35s var(--fx-ease), box-shadow .35s var(--fx-ease), border-color .25s; position: relative; }
html[data-fx="full"] :is(.card, .dl-card, .dv-card, .acc-card, .server-card, .sec-card, .mcs-card):hover { transform: translateY(-2px); border-color: rgba(255,255,255,.16); box-shadow: 0 16px 44px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); }
/* a soft highlight that follows the pointer across a card (fx.js sets --mx / --my) */
html[data-fx="full"] :is(.card, .dl-card, .dv-card, .acc-card, .server-card, .sec-card, .mcs-card)::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.085), transparent 65%);
}
html[data-fx="full"] :is(.card, .dl-card, .dv-card, .acc-card, .server-card, .sec-card, .mcs-card):hover::after { opacity: 1; }

html[data-fx="full"] .btn, html[data-fx="full"] button, html[data-fx="full"] .tb-dl, html[data-fx="full"] .tb-jump {
    transition: transform .18s var(--fx-ease), filter .2s, background .2s, box-shadow .25s, border-color .2s, color .2s;
}
html[data-fx="full"] .btn:hover, html[data-fx="full"] .tb-dl:hover { transform: translateY(-1px); }
html[data-fx="full"] .btn:active, html[data-fx="full"] button:active, html[data-fx="full"] .tb-dl:active, html[data-fx="full"] .tb-jump:active { transform: scale(.96); }
html[data-fx="full"] .btn-primary:hover { box-shadow: 0 8px 24px rgba(91,75,245,.5), inset 0 1px 0 rgba(255,255,255,.3); }

html[data-fx="full"] .tb-links > a, html[data-fx="full"] .tb-menu > summary { transition: background .2s, color .2s, transform .18s var(--fx-ease); }
html[data-fx="full"] .tb-links > a:hover, html[data-fx="full"] .tb-menu > summary:hover { transform: translateY(-1px); }
html[data-fx="full"] .tb-menu[open] > .tb-drop { animation: fx-pop .24s var(--fx-ease) both; transform-origin: top right; }
html[data-fx="full"] .jump-overlay:not([hidden]) { animation: fx-fade .2s ease both; }
html[data-fx="full"] .jump-overlay:not([hidden]) .jump-box { animation: fx-pop .28s var(--fx-ease) both; transform-origin: top center; }
html[data-fx="full"] .nd-box { animation: fx-pop .28s var(--fx-ease) both; }
html[data-fx="full"] .tb-avatar { transition: transform .25s var(--fx-ease), border-color .2s; }
html[data-fx="full"] .tb-user > summary:hover .tb-avatar { transform: scale(1.08); }
html[data-fx="full"] tbody tr, html[data-fx="full"] .mc-row { animation: fx-rise .4s var(--fx-ease) both; }
html[data-fx="full"] tbody tr:nth-child(2) { animation-delay: .03s; } html[data-fx="full"] tbody tr:nth-child(3) { animation-delay: .06s; }
html[data-fx="full"] tbody tr:nth-child(4) { animation-delay: .09s; } html[data-fx="full"] tbody tr:nth-child(5) { animation-delay: .12s; }
html[data-fx="full"] tbody tr:nth-child(n+6) { animation-delay: .15s; }
html[data-fx="full"] #pageLoader { transition: opacity .35s ease; }
@keyframes fx-pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fx-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- reduced: no movement at all ---------- */
html[data-fx="reduced"] *, html[data-fx="reduced"] *::before, html[data-fx="reduced"] *::after {
    animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
}
html[data-fx="reduced"] .skel-block, html[data-fx="reduced"] .skel-line { animation: none !important; }

/* ---------- off: flat, instant, nothing to render ---------- */
html[data-fx="off"] *, html[data-fx="off"] *::before, html[data-fx="off"] *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html[data-fx="off"] .topbar { background: #14141b; }

/* ---------- the setting itself ---------- */
.fx-pick { padding: 8px 12px 10px; border-top: 1px solid #2a2a35; margin-top: 4px; }
.fx-pick-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b6b7a; padding-bottom: 6px; }
.fx-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; border-radius: 10px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.07); }
.fx-seg button { padding: 6px 0; border-radius: 7px; border: none; background: transparent; color: #9a9aab; font: inherit; font-size: 12px; cursor: pointer; }
.fx-seg button:hover { color: #fff; background: rgba(255,255,255,.06); }
.fx-seg button.on { color: #fff; background: rgba(124,92,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.fx-note { margin-top: 6px; font-size: 11.5px; line-height: 1.4; color: #6b6b7a; }

/* ---------- colour theme ----------
 * The site is designed dark. Light flips the whole page (invert + hue-rotate keeps every hue where it was), then flips pictures back so
 * avatars, logos and icons look as they should. Set on <html data-theme> by fx.js (Settings: account menu > Theme). */
.fx-seg-3 { grid-template-columns: repeat(3, 1fr); }
html[data-theme="light"] { filter: invert(1) hue-rotate(180deg); background: #0f0f13; }
html[data-theme="light"] :is(img, video, canvas, picture, iframe, .theme-keep) { filter: invert(1) hue-rotate(180deg); }
html[data-theme="light"] .fx-seg button.on { color: #fff; }

/* ---------- game launcher look ---------- */
.chip { display: inline-block; padding: 3px 10px; border-radius: 6px; background: rgba(124,92,255,.22); color: #cfc7ff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* a game poster at the top of a page */
.hero-poster {
    position: relative; overflow: hidden; padding: 30px 28px !important;
    background: radial-gradient(520px 260px at 92% -20%, rgba(124,92,255,.55), transparent 70%), linear-gradient(135deg, #1d1650, #0e0c26 62%, #150f3a) !important;
    border: 1px solid rgba(124,92,255,.35) !important;
}
.hero-poster .chip { background: rgba(183,169,255,.2); }
.hero-poster-title { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 28px; margin: 12px 0 6px !important; color: #fff; letter-spacing: .01em; }
.hero-poster-sub { margin: 0 !important; color: #c9c6e6 !important; font-size: 14px; }

/* the sign-in page */
.landing { position: relative; margin: 36px auto 0; padding: 64px 36px 56px; max-width: 860px; text-align: center; border-radius: 22px; overflow: hidden;
    background: radial-gradient(640px 320px at 50% -10%, rgba(124,92,255,.5), transparent 70%), radial-gradient(420px 240px at 100% 100%, rgba(61,47,240,.35), transparent 70%), linear-gradient(160deg, #181246, #0d0b22 70%);
    border: 1px solid rgba(124,92,255,.35); box-shadow: 0 30px 80px rgba(20,10,80,.55); }
.landing-title { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(44px, 9vw, 84px); line-height: 1; margin: 18px 0 14px; color: #fff; letter-spacing: .02em; text-shadow: 0 0 40px rgba(124,92,255,.65); }
.landing-title span { color: #7c5cff; }
.landing-lead { max-width: 560px; margin: 0 auto 26px; font-size: 17px; line-height: 1.55; color: #cfcce8; }
.landing-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-hero { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; font-size: 16px; font-weight: 700; border-radius: 12px; color: #fff;
    background: linear-gradient(135deg, #3d2ff0, #7c5cff); box-shadow: 0 8px 30px rgba(61,47,240,.55); transition: transform .15s, filter .15s; }
.btn-hero:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-ghost-hero { display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 12px; font-size: 16px; font-weight: 600; color: #e6e6ff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.btn-ghost-hero:hover { background: rgba(255,255,255,.12); color: #fff; }
.landing-feats { list-style: none; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 34px 0 0; padding: 0; }
.landing-feats li { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #d8d6f2; font-size: 13px; }
@@media (max-width: 560px) { .landing { padding: 44px 20px 40px; margin-top: 16px; } .btn-hero, .btn-ghost-hero { width: 100%; justify-content: center; } }

/* top bar: the page you are on glows */
.tb-links a.on { position: relative; }
.tb-links a.on::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -9px; height: 2px; border-radius: 2px; background: #7c5cff; box-shadow: 0 0 10px #7c5cff; }

/* cards lift and glow a little when you point at them */
.card, .server-card, .dl-card { transition: border-color .18s, box-shadow .18s, transform .18s; }
.server-card:hover { border-color: rgba(124,92,255,.55); box-shadow: 0 10px 34px rgba(61,47,240,.25); transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #3d2ff0, #6a5cff); box-shadow: 0 4px 16px rgba(61,47,240,.35); }
.btn-primary:hover { filter: brightness(1.1); }
h1, .card h2 { font-family: 'Orbitron', 'Segoe UI', sans-serif; letter-spacing: .01em; }

/* ---------- liquid glass (iOS): clear glass over a coloured world, and one light that follows the pointer ----------
 * The colours are variables. Dark is blackish (the defaults here); the Custom theme sets them all from the colour the user picked (fx.js).
 */
:root {
    --lg-a: #14141b; --lg-b: #0d0d12; --lg-c: #0a0a0e;          /* the page: top left, middle, bottom right */
    --lg-tint: rgba(26,26,34,.42);                               /* the body of the glass */
    --lg-bar: rgba(18,18,26,.60);                                /* the top bar */
    --lg-spot: rgba(255,255,255,.10);                            /* the light that follows the pointer */
    --lg-p1: rgba(29,22,80,.88); --lg-p2: rgba(14,12,38,.84); --lg-p3: rgba(21,15,58,.88);   /* posters */
    --lg-edge: rgba(124,92,255,.35);
    --fx-glass: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025) 42%, rgba(255,255,255,.05));
    --fx-glass-tint: var(--lg-tint);
    --fx-edge: rgba(255,255,255,.14);
    --fx-edge-top: rgba(255,255,255,.30);
    --fx-shadow: 0 14px 40px rgba(2,4,12,.5), inset 1px 1px 0 rgba(255,255,255,.34), inset -1px -1px 0 rgba(255,255,255,.12), inset 0 0 24px rgba(255,255,255,.04);
}
html[data-fx] body { background: var(--lg-c); }
html[data-fx="full"] body::before, html[data-fx="reduced"] body::before {
    background: linear-gradient(160deg, var(--lg-a) 0%, var(--lg-b) 46%, var(--lg-c) 100%);
}
/* the light behind the glass: it follows the pointer (fx.js sets --sx / --sy / --so) and glows through every surface above it */
html[data-fx="full"] body::after, html[data-fx="reduced"] body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--so, 0);
    background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 30%), var(--lg-spot), transparent 70%);
    transition: opacity .5s ease;
}
html:is([data-fx="full"], [data-fx="reduced"]) :is(.card, .dl-card, .dv-card, .acc-card, .server-card, .sec-card, .mcs-card, .mcs-world, .mcs-stat, .mcs-vitals, .mcs-plist,
        .mcs-histbox, .mcs-modal, .wiz-box, .android-select, .tb-drop, .jump-box, .nd-box, .srvpick__pop, .toast, .acc-toast, .sec-toast) {
    -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.08); backdrop-filter: blur(28px) saturate(190%) brightness(1.08);
    border-radius: 22px;
}
html[data-fx="reduced"] :is(.card, .dl-card, .dv-card, .acc-card, .server-card) { -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); }
/* where the browser can bend what is behind the glass, it does: a slight lens, like the real thing */
html.lg-refract[data-fx="full"] :is(.card, .dl-card, .dv-card, .acc-card, .server-card, .sec-card, .mcs-card, .tb-drop, .jump-box, .nd-box) {
    -webkit-backdrop-filter: url(#lg-refract) blur(26px) saturate(190%) brightness(1.08); backdrop-filter: url(#lg-refract) blur(26px) saturate(190%) brightness(1.08);
}
html[data-fx="full"] .topbar, html[data-fx="reduced"] .topbar {
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02)), var(--lg-bar);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 30px rgba(2,4,12,.4);
    -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%);
}
html[data-fx="full"] :is(.card, .dl-card, .dv-card, .acc-card, .server-card, .sec-card, .mcs-card)::after {
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.10), transparent 65%);
}
/* posters and the landing hero */
.hero-poster { background: linear-gradient(135deg, var(--lg-p1), var(--lg-p2) 62%, var(--lg-p3)) !important; border: 1px solid var(--lg-edge) !important; }
.landing { background: linear-gradient(160deg, var(--lg-p1), var(--lg-p2) 70%); border: 1px solid var(--lg-edge); box-shadow: 0 30px 80px rgba(2,4,12,.6), inset 1px 1px 0 rgba(255,255,255,.25); }
.landing-title span { color: #8b7dff; }
.btn-hero, .btn-primary { background: linear-gradient(135deg, #3d2ff0, #7c5cff); }
.btn-hero { box-shadow: 0 8px 30px rgba(61,47,240,.5), inset 0 1px 0 rgba(255,255,255,.3); }
.navbar-brand .brand-ula, .tb-brand .brand-ula { color: #8b7dff; }

/* ---------- the Custom theme's colour picker (account menu) ---------- */
.fx-seg-4 { grid-template-columns: repeat(4, 1fr); }
.cust-pick { padding: 10px 2px 2px; }
.cust-pick[hidden] { display: none; }
.cust-sw { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-bottom: 10px; }
.cust-sw button { aspect-ratio: 1; width: 100%; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.32); padding: 0; cursor: pointer; }
.cust-sw button.on { border: 3px solid #fff; }
.cust-row { display: flex; gap: 8px; align-items: center; }
.cust-row input[type=color] { width: 38px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: none; cursor: pointer; }
.cust-row input[type=text] { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.28); color: #fff; font: 13px ui-monospace, Consolas, monospace; }
.cust-row input[type=text].bad { border-color: #ff6b6b; }
.cust-row button { padding: 7px 10px; border-radius: 9px; font-size: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; cursor: pointer; }

.fx-seg-2 { grid-template-columns: repeat(2, 1fr); }
:root { --lg-solid: #17171f; --lg-solid2: #121218; }
/* solid surfaces: opaque colour instead of glass */
html[data-solid="1"] :is(.card, .dl-card, .dv-card, .acc-card, .server-card, .sec-card, .mcs-card, .mcs-world, .mcs-stat, .mcs-vitals, .mcs-plist,
        .mcs-histbox, .mcs-modal, .wiz-box, .android-select, .tb-drop, .jump-box, .nd-box, .srvpick__pop, .toast, .acc-toast, .sec-toast) {
    background: var(--lg-solid) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.14), inset -1px -1px 0 rgba(255,255,255,.05), 0 6px 18px rgba(0,0,0,.3);
}
html[data-solid="1"] .topbar { background: var(--lg-solid2) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html[data-solid="1"] body::after { display: none; }
html[data-solid="1"] .hero-poster, html[data-solid="1"] .landing { backdrop-filter: none; }

/* ---------- game UI pass: tabs, tables, forms, chips and buttons everywhere (server pages, Minecraft pages, lobbies, admin) ---------- */
/* tabs: rounded pills with a glowing underline on the one you are on */
html .srv-tabs { border-bottom: 0; gap: 6px; margin: 20px 0 22px; padding: 5px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: inline-flex; max-width: 100%; overflow-x: auto; }
html .srv-tab { position: relative; border: 0; border-radius: 12px; padding: 9px 16px; margin: 0; color: #9a9aab; font-weight: 600; transition: background .18s, color .18s; white-space: nowrap; }
html .srv-tab:hover { color: #fff; background: rgba(255,255,255,.06); }
html .srv-tab.is-on { color: #fff; background: rgba(124,92,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
html .srv-tab.is-on::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 20px; height: 2px; margin-left: -10px; border-radius: 2px; background: #8b7dff; box-shadow: 0 0 10px #8b7dff; }
html .mcs-bar, html .mcs-tabs { gap: 6px; }

/* rows of data are tiles */
html .srv-tbl, html .table-responsive table, html .mcs-plist table { border-collapse: separate; border-spacing: 0 6px; }
html .srv-tbl td, html table.srv-tbl td { border-bottom: 0; background: rgba(255,255,255,.04); padding: 11px 12px; }
html .srv-tbl tr td:first-child, html .table-responsive tbody tr td:first-child { border-radius: 12px 0 0 12px; }
html .srv-tbl tr td:last-child, html .table-responsive tbody tr td:last-child { border-radius: 0 12px 12px 0; }
html .table-responsive tbody td { border-bottom: 0; background: rgba(255,255,255,.04); }
html .table-responsive thead th { border-bottom: 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8b8b98; }
html .table-responsive tbody tr:hover td, html .srv-tbl tr:hover td { background: rgba(255,255,255,.08); }

/* controls */
html .form-control, html select, html input[type=text], html input[type=password], html input[type=search], html input[type=number], html textarea { border-radius: 12px; }
html .btn, html button.btn { border-radius: 12px; font-weight: 600; }
html .btn-sm { border-radius: 10px; }
html .btn-danger { background: linear-gradient(135deg, #d93a4a, #f0546a); box-shadow: 0 4px 14px rgba(217,58,74,.3); }
html .btn-success { background: linear-gradient(135deg, #1f9d57, #2fcf7e); box-shadow: 0 4px 14px rgba(31,157,87,.28); }
html .mcs-btn { border-radius: 12px; }
html .mcs-input, html .mcs-cmdinput { border-radius: 12px; }
html .alert { border-radius: 14px; }

/* chips and pills */
html .mcs-pill, html .srv-banned-tag, html .badge, html .pill { border-radius: 999px; }
html .mcs-chip { border-radius: 999px; }

/* Minecraft and server panels */
html .mcs-card, html .srv-detail, html .mcs-panel .card { border-radius: 22px; }
html .mcs-head { padding: 22px 24px; border-radius: 22px; margin-bottom: 18px; background: linear-gradient(135deg, var(--lg-p1), var(--lg-p2) 62%, var(--lg-p3)); border: 1px solid var(--lg-edge); }
html .mcs-title { font-family: 'Orbitron', 'Segoe UI', sans-serif; font-size: 26px; }
html .mcs-back { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); }
html .mcs-kv > * { border-radius: 10px; }
html .mcs-console { border-radius: 18px; }
html .mcs-cmdbar { border-radius: 14px; }

/* lobbies */
html .lobbies-header, html .detail-header { padding: 22px 24px; border-radius: 22px; background: linear-gradient(135deg, var(--lg-p1), var(--lg-p2) 62%, var(--lg-p3)); border: 1px solid var(--lg-edge); margin-bottom: 18px; }
html .lobbies-header h1, html .detail-header h1 { font-family: 'Orbitron', 'Segoe UI', sans-serif; }
html .lobbies-eyebrow, html .detail-eyebrow { color: #cfc7ff; }
html .stat { border-radius: 14px; background: rgba(255,255,255,.07); padding: 8px 14px; }
html .live-status { border-radius: 999px; }

/* a .card used only as a plain wrapper (inline background:transparent): no glass rim or blur of its own */
.card[style*="background:transparent"] { box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.card[style*="background:transparent"] > p, .card[style*="background:transparent"] > .text-muted { padding: 0 6px; }

/* ---------- accessibility and touch ---------- */
html { color-scheme: dark; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100000; padding: 10px 16px; border-radius: 12px; background: #fff; color: #111; font-weight: 700; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 12px; }
:where(a, button, summary, [role="button"], input, select, textarea, .btn, .srv-tab):focus-visible { outline: 2px solid #a99bff; outline-offset: 2px; }
.fx-seg button:focus-visible, .cust-sw button:focus-visible { outline-offset: 1px; }
a, button, summary, .btn, .srv-tab, .fx-seg button, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(124,92,255,.25); }
@media (prefers-reduced-motion: reduce) {
    html[data-fx] body::after { transition: none; }
    .landing-title, .hero-poster-title { text-shadow: none; }
}
h1, h2, h3, .hero-poster-title, .landing-title, .mcs-title { text-wrap: balance; }
.tb-links a, .fx-seg button { -webkit-user-select: none; user-select: none; }

/* sign-in page, from the design inspector: the card fills the first screen, the lead is readable, labels are sentence case */
.landing { min-height: calc(100vh - 130px); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.landing .chip { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 5px 14px; }
.landing-lead { font-size: 19px; line-height: 1.5; max-width: 600px; }
.landing-feats li { font-size: 14px; }

.landing-tos { margin: 22px 0 0; font-size: 13.5px; color: #b9b6d8; }
.landing-tos a { color: #fff; text-decoration: underline; }
