@charset "utf-8";
/* ==========================================================================
   LS Rebirth website theme - the "Portal" look of LSLauncher 1.1
   (same palette, Unbounded display type, Manrope body type, cards and pills).
   Replaces common.css / main.css / sub.css on pages that use main.Master.
   ========================================================================== */

@font-face {
    font-family: "Unbounded";
    src: url("/font/rebirth/unbounded.woff") format("woff");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("/font/rebirth/manrope.woff") format("woff");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0f0e13;
    --bg-raised: #141319;
    --surface: #1a1920;
    --surface-2: #23222b;
    --surface-3: #2b2a34;
    --stroke: #33313d;
    --stroke-2: #3a3844;
    --stroke-hover: #5a5666;
    --text: #f6f4f1;
    --text-soft: #e4e0ea;
    --text-dim: #d8d4df;
    --text-mute: #aaa6b5;
    --accent: #f2a20c;
    --accent-hover: #ffb52e;
    --accent-text: #ffc24d;
    --accent-tint: rgba(242, 162, 12, 0.13);
    --on-accent: #1a1206;
    --green: #4cc38a;
    --green-text: #7fdcaa;
    --red: #ff6b6b;
    --red-text: #ff8a8a;
    --blue-text: #9cc4ff;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 14px;
    --header-h: 64px;
    --maxw: 1200px;
    --gutter: 24px;
    --font-display: "Unbounded", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
    --font-body: "Manrope", "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { margin: 0; padding: 0; }
body.rb {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
.rb h1, .rb h2, .rb h3, .rb h4, .rb h5, .rb h6 { margin: 0; color: var(--text); font-weight: 700; line-height: 1.2; }
.rb p, .rb ul, .rb ol, .rb dl, .rb dd, .rb figure, .rb blockquote, .rb table, .rb fieldset { margin: 0; padding: 0; }
.rb ul, .rb ol { list-style: none; }
.rb img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
.rb a { color: var(--accent-text); text-decoration: none; }
.rb a:hover { color: #ffd98a; }
.rb table { border-collapse: collapse; border-spacing: 0; }
.rb button, .rb input, .rb select, .rb textarea { font: inherit; color: inherit; }
.rb button { cursor: pointer; }
.rb :focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
.rb ::selection { background: rgba(242, 162, 12, 0.35); color: #fff; }
.rb form { margin: 0; }
.blind, .rb .blind, .rb caption, .rb legend, .hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.rb .tab_content { display: none; }
.rb .tab_content.on { display: block; }
.rb-skip {
    position: absolute; left: 16px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: var(--radius-sm);
    background: var(--accent); color: var(--on-accent) !important; font-weight: 800;
}
.rb-skip:focus { top: 12px; }
.rb-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- wordmark (LOST SAGA / REBIRTH, as in the launcher) ---------- */
.rb-brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--text) !important; }
.rb-brand__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; white-space: nowrap; }
.rb-brand__sub { margin-top: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.46em; color: var(--accent); white-space: nowrap; }
.rb-brand--center { align-items: center; }

/* ---------- buttons, pills, tags ---------- */
.rb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 0 18px; border-radius: var(--radius);
    border: 1px solid transparent; background: var(--surface-2); color: var(--text) !important;
    font-family: var(--font-body); font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap;
    cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.rb-btn:hover { background: var(--surface-3); color: #fff !important; }
.rb-btn svg { flex: none; }
.rb-btn--primary {
    background: var(--accent); color: var(--on-accent) !important; font-family: var(--font-display);
    box-shadow: 0 10px 30px rgba(242, 162, 12, 0.3);
}
.rb-btn--primary:hover { background: var(--accent-hover); color: var(--on-accent) !important; }
.rb-btn--ghost { background: rgba(15, 14, 19, 0.55); border-color: rgba(255, 255, 255, 0.22); }
.rb-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.rb-btn--quiet { background: transparent; color: var(--text-dim) !important; }
.rb-btn--quiet:hover { background: rgba(255, 255, 255, 0.07); }
.rb-btn--lg { min-height: 56px; padding: 0 26px; font-size: 16px; border-radius: var(--radius); }
.rb-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.rb-btn--block { width: 100%; }
.rb-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(242, 162, 12, 0.55); background: rgba(15, 14, 19, 0.6);
    color: var(--accent-text); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.rb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.rb-dot--off { background: var(--red); }
.rb-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.rb-tag {
    display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px;
    background: var(--accent-tint); color: var(--accent-text);
    font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.rb-tag--update { background: rgba(156, 196, 255, 0.14); color: var(--blue-text); }
.rb-tag--event { background: rgba(127, 220, 170, 0.14); color: var(--green-text); }
.rb-tag--free, .rb-tag--muted { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }

/* ---------- header ---------- */
.rb-header {
    position: sticky; top: 0; z-index: 1000; height: var(--header-h);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* The blur sits on a pseudo-element: a backdrop-filter on the header itself would make it the
   containing block of the fixed mobile menu. */
.rb-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15, 14, 19, 0.86);
    -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
}
.rb-header__inner { display: flex; align-items: center; gap: 20px; height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.rb-header .rb-brand { flex: none; margin-right: 8px; }
.rb-nav { flex: 1 1 auto; min-width: 0; }
.rb-nav__list { display: flex; align-items: center; gap: 2px; }
.rb-nav__item { position: relative; }
.rb-nav__link {
    display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
    color: var(--text-dim) !important; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.rb-nav__link:hover, .rb-nav__item:focus-within > .rb-nav__link, .rb-nav__item:hover > .rb-nav__link { color: #fff !important; background: rgba(255, 255, 255, 0.07); }
.rb-nav__item.is-active > .rb-nav__link { color: var(--accent) !important; background: var(--accent-tint); font-weight: 700; }
.rb-nav__link .rb-caret { opacity: .7; transition: transform .15s; }
.rb-nav__ext { opacity: .7; }
.rb-nav__sub {
    position: absolute; left: 0; top: calc(100% + 6px); min-width: 210px; padding: 6px;
    background: #1c1b22; border: 1px solid var(--stroke); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.rb-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.rb-nav__item:hover > .rb-nav__sub, .rb-nav__item:focus-within > .rb-nav__sub { opacity: 1; visibility: visible; transform: none; }
.rb-nav__sub a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm);
    color: var(--text-dim) !important; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.rb-nav__sub a:hover { background: rgba(255, 255, 255, 0.07); color: #fff !important; }
.rb-header__actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.rb-menu-toggle {
    display: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent;
    color: var(--text-dim); align-items: center; justify-content: center;
}
.rb-menu-toggle:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* account menu (details/summary) */
.rb-menu { position: relative; }
.rb-menu > summary { list-style: none; cursor: pointer; }
.rb-menu > summary::-webkit-details-marker { display: none; }
.rb-account__chip {
    display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 10px 0 6px; border-radius: 22px;
    color: var(--text); font-weight: 600; font-size: 14px;
}
.rb-account__chip:hover, .rb-menu[open] .rb-account__chip { background: rgba(255, 255, 255, 0.09); }
.rb-avatar {
    width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; background: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.rb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-account__name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-menu__panel {
    position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: 8px; z-index: 5;
    background: #1c1b22; border: 1px solid var(--stroke); border-radius: var(--radius); box-shadow: var(--shadow);
}
.rb-menu__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--stroke); margin-bottom: 6px; }
.rb-menu__head .rb-avatar { width: 44px; height: 44px; }
.rb-menu__who { min-width: 0; }
.rb-menu__who strong { display: block; color: var(--text); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-menu__who span { display: block; color: var(--text-mute); font-size: 12px; font-weight: 600; }
.rb-menu__item {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--text-dim) !important; font-size: 14px; font-weight: 600; text-align: left;
}
.rb-menu__item:hover { background: rgba(255, 255, 255, 0.07); color: #fff !important; }
.rb-menu__item small { margin-left: auto; color: var(--text-mute); font-weight: 600; font-size: 11px; }
.rb-menu__sep { height: 1px; margin: 6px 4px; background: var(--stroke); }

/* ---------- main / footer ---------- */
.rb-main { display: block; min-height: calc(100vh - var(--header-h) - 200px); }
.rb-footer { margin-top: 72px; border-top: 1px solid var(--stroke); background: #0c0b10; color: var(--text-mute); font-size: 14px; }
.rb-footer__inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; max-width: var(--maxw); margin: 0 auto; padding: 44px var(--gutter) 28px; }
.rb-footer__about p { margin-top: 14px; max-width: 360px; line-height: 1.6; }
.rb-footer h2 { margin-bottom: 12px; color: var(--text); font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.rb-footer li + li { margin-top: 8px; }
.rb-footer a { color: var(--text-dim); font-weight: 600; }
.rb-footer a:hover { color: #fff; }
.rb-footer__base { max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter) 28px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.rb-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--stroke-2); background: rgba(26, 25, 32, 0.92); color: var(--text-dim);
    display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.rb-top.is-visible { opacity: 1; visibility: visible; }
.rb-top:hover { color: #fff; border-color: var(--stroke-hover); }
.rb-admin-link {
    position: fixed; left: 20px; bottom: 20px; z-index: 900; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--stroke-2);
    color: var(--text) !important; font-size: 13px; font-weight: 700; box-shadow: var(--shadow);
}
.rb-admin-link:hover { border-color: var(--accent); }

/* ---------- home: hero ---------- */
.rb-hero { position: relative; overflow: hidden; background: #16131c; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.rb-hero__slides { position: absolute; inset: 0; }
.rb-hero__slide {
    position: absolute; inset: 0; background-size: cover; background-position: right center; background-repeat: no-repeat;
    opacity: 0; transition: opacity 1s ease; filter: saturate(0.82) brightness(0.9);
}
.rb-hero__slide.is-on { opacity: 1; }
.rb-hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 14, 19, 0.97) 0%, rgba(15, 14, 19, 0.9) 34%, rgba(15, 14, 19, 0.35) 62%, rgba(15, 14, 19, 0.15) 100%),
        linear-gradient(0deg, rgba(15, 14, 19, 1) 0%, rgba(15, 14, 19, 0) 38%);
}
.rb-hero__inner {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
    max-width: var(--maxw); margin: 0 auto; padding: 88px var(--gutter) 80px; min-height: 520px;
}
.rb-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 640px; }
.rb-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -0.01em; }
.rb-hero h1 em { font-style: normal; color: var(--accent); }
.rb-hero__lead { max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--text-soft); }
.rb-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.rb-hero__dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.rb-hero__dots button { width: 26px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, 0.28); }
.rb-hero__dots button[aria-current="true"] { background: var(--accent); }


/* ---------- home: sections ---------- */
.rb-section { max-width: var(--maxw); margin: 0 auto; padding: 56px var(--gutter) 0; }
.rb-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.rb-section__head h2 { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: 0.01em; }
.rb-section__more { font-size: 13px; font-weight: 700; white-space: nowrap; }
.rb-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.rb-tabs a, .rb-tabs button {
    display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--text-dim) !important; font-size: 13px; font-weight: 700;
}
.rb-tabs a:hover, .rb-tabs button:hover { background: rgba(255, 255, 255, 0.07); color: #fff !important; }
.rb-tabs .on a, .rb-tabs a.on, .rb-tabs button.on, .rb-tabs [aria-selected="true"] { background: var(--accent-tint); color: var(--accent) !important; }
.rb-empty { padding: 28px; border: 1px dashed var(--stroke-2); border-radius: var(--radius); color: var(--text-mute); text-align: center; }
.rb-media { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 32px; align-items: center; }
.rb-media__copy h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-bottom: 12px; }
.rb-media__copy p { color: var(--text-mute); margin-bottom: 20px; }
.rb-media__copy .rb-hero__cta { margin-top: 0; }
.rb-card { border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--surface); padding: 20px; }
.rb-card + .rb-card { margin-top: 16px; }
.rb-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rb-card__head h2, .rb-card__head h3 { font-family: var(--font-display); font-weight: 500; font-size: 16px; }

/* ranking rows (HTML built by DBClient.GetRanking / GetGuildRanking) */
.rb-rank { width: 100%; }
.rb-rank tr + tr td { border-top: 1px solid var(--stroke); }
.rb-rank td { padding: 10px 6px; vertical-align: middle; }
.rb-rank .td_rank { width: 48px; }
.rb-rank .rank, .rank_table .td_rank, .rb .td_rank .rank {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px;
    background: var(--surface-2); color: var(--text-dim); font-family: var(--font-display); font-weight: 700; font-size: 14px; font-style: normal;
}
.rb .rank1 { background: var(--accent) !important; color: var(--on-accent) !important; }
.rb .rank2 { background: #cfd3de !important; color: #1b1c22 !important; }
.rb .rank3 { background: #c89b6d !important; color: #1f140a !important; }
.rb-rank .td_nick { color: var(--text); font-weight: 700; font-size: 15px; }
.rb-rank .td_job { text-align: right; white-space: nowrap; color: var(--text-mute); font-size: 13px; }
.rb-rank .figure_job, .rb .figure_job { display: inline-block; width: 24px; height: 24px; border-radius: 6px; overflow: hidden; vertical-align: middle; margin-right: 8px; background: var(--surface-2); }
.rb .figure_job img { width: 100%; height: 100%; object-fit: cover; }
.rb-rank .job { vertical-align: middle; }

.rb .server {
    display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.rb .server.baspo { background: var(--accent-tint); color: var(--accent-text); }
.rb-video { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--stroke); background: #000; aspect-ratio: 16 / 9; }
.rb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rb-cta-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px;
    border-radius: var(--radius-lg); border: 1px solid rgba(242, 162, 12, 0.35);
    background: radial-gradient(120% 140% at 0% 0%, rgba(242, 162, 12, 0.16), rgba(26, 25, 32, 0.9) 55%), var(--surface);
}
.rb-cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.rb-cta-band p { color: var(--text-mute); margin-top: 6px; }
.rb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rb-step { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--stroke); background: var(--surface); }
.rb-step__num { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--accent-tint); color: var(--accent-text); font-family: var(--font-display); font-weight: 700; }
.rb-step h3 { font-size: 15px; margin-bottom: 4px; }
.rb-step p { color: var(--text-mute); font-size: 14px; }

/* ==========================================================================
   Sub pages (legacy markup: .content_sub > .container > .lnb + .content_wrap)
   ========================================================================== */
.rb .content_sub {
    position: relative;
    background:
        radial-gradient(90% 260px at 18% 0%, rgba(242, 162, 12, 0.08), transparent 70%),
        linear-gradient(180deg, #17151d 0, var(--bg) 260px);
}
.rb .content_sub > .container {
    display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 36px; align-items: start;
    width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter) 0; border: 0;
}
.rb .lnb { position: sticky; top: calc(var(--header-h) + 20px); padding: 18px 12px 12px; border-radius: var(--radius-lg); border: 1px solid var(--stroke); background: var(--surface); }
.rb .lnb h2 { padding: 0 10px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--stroke); font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--text); height: auto; text-align: left; }
.rb .lnb ul { display: flex; flex-direction: column; gap: 2px; width: auto; margin: 0; border: 0; }
.rb .lnb li { border: 0; }
.rb .lnb li a {
    display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
    color: var(--text-dim) !important; font-size: 14px; font-weight: 600; background: none; line-height: 1;
}
.rb .lnb li a:hover { background: rgba(255, 255, 255, 0.07); color: #fff !important; }
.rb .lnb li.on a { background: var(--accent-tint); color: var(--accent) !important; font-weight: 700; }
.rb .content_wrap { width: auto; min-width: 0; padding: 0; border: 0; }
.rb .content_title { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 26px; padding: 0; font-size: 15px; }
.rb .content_title h3 { flex: 1 1 auto; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); color: var(--text); margin: 0; }
.rb .content_title > p { order: 3; flex-basis: 100%; display: block; color: var(--text-mute); font-size: 15px; line-height: 1.5; }
.rb .content_title .location { position: static; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--text-mute); font-size: 12px; font-weight: 700; }
.rb .content_title .location li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-mute); float: none; }
.rb .content_title .location li a { color: var(--text-mute) !important; }
.rb .content_title .location li a:hover { color: #fff !important; }
.rb .content_title .location .home a { display: inline-flex; width: 16px; height: 16px; background: none; }
.rb .content_title .location .home a::before { content: ""; width: 14px; height: 14px; margin: auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 7.5L8 3l5.5 4.5V13a.5.5 0 0 1-.5.5H10v-4H6v4H3a.5.5 0 0 1-.5-.5z' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 7.5L8 3l5.5 4.5V13a.5.5 0 0 1-.5.5H10v-4H6v4H3a.5.5 0 0 1-.5-.5z' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center/contain no-repeat; }
.rb .content_title .location .arrow { display: inline-block; width: 6px; height: 6px; margin: 0 2px 0 4px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); background: none; opacity: .8; }

/* generic panels / headings used in sub pages */
.rb .h_blt, .rb .content_wrap h4.h_blt, .rb .content_wrap h6.h_blt { display: flex; align-items: center; gap: 8px; margin: 28px 0 12px; color: var(--text); font-size: 15px; font-weight: 800; }
.rb .h_blt span { display: inline-block; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); }
.rb .border_box { border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--surface); padding: 20px; }
.rb .blue, .rb span.keyword { color: var(--accent-text); font-weight: 700; }
.rb .fcRed { color: var(--red-text); }

/* ---------- tables ---------- */
.rb .table1, .rb .rank_table, .rb .spec_table, .rb .write_bug, .rb .board_write table {
    width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.rb .table1 th, .rb .table1 td, .rb .rank_table th, .rb .rank_table td, .rb .spec_table th, .rb .spec_table td {
    padding: 12px 14px; border-bottom: 1px solid var(--stroke); font-size: 14px; text-align: left; vertical-align: middle; height: auto; line-height: 1.45;
}
.rb .table1 tr:last-child > *, .rb .rank_table tr:last-child > *, .rb .spec_table tr:last-child > * { border-bottom: 0; }
.rb .table1 thead th, .rb .rank_table thead th { background: var(--surface-2); color: var(--text-mute); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.rb .table1 tbody th, .rb .spec_table th { width: 30%; color: var(--text-dim); font-weight: 700; background: rgba(255, 255, 255, 0.02); }
.rb .table1 td, .rb .spec_table td { color: var(--text-soft); }
.rb .table1 th span, .rb .rank_table th span { display: inline; }
.rb .table1 th span::after, .rb .rank_table th span::after { display: none; }
.rb .table1 caption, .rb .rank_table caption { display: none; }
.rb .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- board list ---------- */
.rb .board_wrap .board { border: 0; }
.rb .board_list table.board { width: 100%; border: 1px solid var(--stroke); border-radius: var(--radius-lg); border-collapse: separate; border-spacing: 0; background: var(--surface); overflow: hidden; }
.rb .board_list table.board td { padding: 14px 16px; border-bottom: 1px solid var(--stroke); height: auto; vertical-align: middle; font-size: 14px; }
.rb .board_list table.board tr:last-child td { border-bottom: 0; }
.rb .board_list table.board tr:hover td { background: rgba(255, 255, 255, 0.025); }
.rb .board_list .tr_admin td { background: rgba(242, 162, 12, 0.05); }
.rb .board_list .td_info { width: 1%; white-space: nowrap; }
.rb .board_list .td_title { width: auto; display: table-cell; }
.rb .board_list .td_title a { color: var(--text) !important; font-weight: 700; font-size: 15px; max-width: none; white-space: normal; }
.rb .board_list .td_title a:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.rb .board_list .td_view, .rb .board_list .td_time { width: 1%; white-space: nowrap; color: var(--text-mute); font-size: 12px; font-weight: 700; text-align: right; }
.rb .board_wrap .category, .rb .board_wrap .job {
    display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: auto; padding: 4px 9px; border-radius: 6px;
    background: var(--accent-tint); color: var(--accent-text); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; width: auto;
}
.rb .board_wrap .comment { color: var(--accent-text); font-weight: 800; font-size: 13px; margin-left: 6px; }
.rb .board_wrap .view, .rb .board_wrap .time { display: inline-flex; align-items: center; gap: 6px; background: none; padding: 0; color: var(--text-mute); font-size: 12px; font-weight: 700; font-family: var(--font-body); }
.rb .board_wrap .view::before { content: ""; width: 14px; height: 14px; background: currentColor; opacity: .8; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z' fill='none' stroke='black' stroke-width='1.4'/%3E%3Ccircle cx='8' cy='8' r='2' fill='black'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z' fill='none' stroke='black' stroke-width='1.4'/%3E%3Ccircle cx='8' cy='8' r='2' fill='black'/%3E%3C/svg%3E") center/contain no-repeat; }
.rb .board_wrap .nickname { color: var(--text-dim); font-size: 13px; font-weight: 700; }
.rb .board_list .td_info .figure_job { width: 28px; height: 28px; border-radius: 8px; margin-right: 8px; }
.rb .board_list .td_info .server { margin-right: 6px; }

/* search + buttons row */
.rb .board_footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 0; }
.rb .board_footer::after { display: none; }
.rb .board_footer form, .rb .board_search form, .rb .rb-search { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; }
.rb .board_footer label, .rb .board_search label { display: flex; align-items: center; min-width: 0; padding: 0 4px 0 0; border: 0; background: none; color: var(--text-mute); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.rb .board_footer .select, .rb .board_search .select { width: auto; border: 0; background: none; }
.rb .board_footer .select select, .rb select.rb-select { display: block; position: static; width: auto; height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--stroke-2); border-radius: 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23aaa6b5' stroke-width='1.6'/%3E%3C/svg%3E") right 12px center/12px no-repeat; color: var(--text); -webkit-appearance: none; appearance: none; visibility: visible; clip: auto; overflow: visible; margin: 0; }
.rb input.text, .rb .inpt, .rb input[type="text"], .rb input[type="email"], .rb input[type="password"], .rb input[type="date"], .rb input[type="time"], .rb input[type="number"], .rb textarea, .rb .form-control {
    height: 42px; padding: 0 14px; border: 1px solid var(--stroke-2); border-radius: 10px; background: var(--surface);
    color: var(--text); font-size: 14px; font-weight: 600; line-height: normal; outline: none; transition: border-color .15s, box-shadow .15s; width: auto;
}
.rb textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; font-weight: 500; }
.rb input.text:focus, .rb .inpt:focus, .rb input[type="text"]:focus, .rb input[type="email"]:focus, .rb input[type="password"]:focus, .rb input[type="date"]:focus, .rb input[type="time"]:focus, .rb textarea:focus, .rb .form-control:focus, .rb select:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 162, 12, 0.22);
}
.rb ::placeholder { color: #8d899a; opacity: 1; }
.rb .board_footer input.text, .rb .board_search input.text { width: 240px; max-width: 100%; }
.rb .btn_search, .rb .btn_blue, .rb .btn_gray, .rb .board_footer .board_btn a, .rb .board_footer .board_btn button, .rb .btn_spec {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 0; padding: 0 16px; margin: 0;
    border: 1px solid transparent; border-radius: 10px; background: var(--surface-2); color: var(--text) !important;
    font-family: var(--font-body); font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; text-align: center;
}
.rb .btn_search:hover, .rb .btn_gray:hover, .rb .board_footer .board_btn a.btn_gray:hover, .rb .btn_spec:hover { background: var(--surface-3); color: #fff !important; }
.rb .btn_blue, .rb .board_footer .board_btn .btn_blue { background: var(--accent); color: var(--on-accent) !important; }
.rb .btn_blue:hover, .rb .board_footer .board_btn .btn_blue:hover { background: var(--accent-hover); color: var(--on-accent) !important; }
.rb .board_footer .board_btn { display: flex; flex-wrap: wrap; gap: 8px; float: none; margin-left: auto; }

/* pager (HTML built in the code-behind) */
.rb .board_pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; height: auto; margin: 24px 0 0; padding: 0; border: 0; font-size: 14px; line-height: 1; }
.rb .board_pager button, .rb .board_pager a, .rb .board_pager .on {
    position: static; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; margin: 0;
    border: 1px solid var(--stroke); border-radius: 10px; background: var(--surface); color: var(--text-dim) !important;
    font-family: var(--font-body); font-size: 13px; font-weight: 700; text-indent: 0; overflow: visible;
}
.rb .board_pager button:hover, .rb .board_pager a:hover { border-color: var(--stroke-hover); color: #fff !important; }
.rb .board_pager .on { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }

/* ---------- board view ---------- */
.rb .board_view .board { border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.rb .board_view .view_title { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-height: 0; padding: 22px 24px; border-bottom: 1px solid var(--stroke); font-size: 14px; }
.rb .board_view .view_title h4 { display: block; flex: 1 1 100%; max-width: none; font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; color: var(--text); line-height: 1.3; word-break: break-word; }
.rb .board_view .view_title .h4_wrap { flex: 1 1 100%; padding: 0; margin: 0; border: 0; }
.rb .board_view .view_title .text_info { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rb .board_view .title_commu { padding-left: 24px; }
.rb .board_view .title_commu .figure_char { position: static; flex: none; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.rb .board_view .title_commu .figure_char img { width: 100%; height: 100%; object-fit: cover; }
.rb .board_view .title_commu .h4_wrap { flex: 1 1 calc(100% - 70px); }
.rb .board_view .view_title .view_btn { position: static; display: flex; gap: 8px; margin-left: auto; }
.rb .view_btn a, .rb .view_btn .btn_author, .rb .view_btn .btn_link, .rb .view_btn .btn_scrap {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 12px; border-radius: 10px;
    border: 1px solid var(--stroke-2); background: var(--surface-2); color: var(--text-dim) !important; font-size: 12px; font-weight: 700; background-image: none;
}
.rb .view_btn a:hover { color: #fff !important; border-color: var(--stroke-hover); }
.rb .view_btn .btn_link::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 9.5l3-3M7 4.5l1.2-1.2a2.8 2.8 0 014 4L11 8.5M9 11.5l-1.2 1.2a2.8 2.8 0 01-4-4L5 7.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 9.5l3-3M7 4.5l1.2-1.2a2.8 2.8 0 014 4L11 8.5M9 11.5l-1.2 1.2a2.8 2.8 0 01-4-4L5 7.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.rb .board_content { min-height: 180px; padding: 26px 24px 30px; color: var(--text-soft); font-size: 16px; line-height: 1.7; word-wrap: break-word; overflow-wrap: anywhere; }
.rb .board_content p { margin: 0 0 0.9em; }
.rb .board_content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.rb .board_content ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1em; }
.rb .board_content h1, .rb .board_content h2, .rb .board_content h3, .rb .board_content h4 { margin: 1.2em 0 .5em; }
.rb .board_content a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.rb .board_content img { max-width: 100%; height: auto; border-radius: 8px; }
.rb .board_content iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; margin: 12px 0; }
.rb .board_content blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: rgba(255, 255, 255, 0.03); color: var(--text-dim); }
.rb .board_content pre { padding: 12px 14px; border-radius: 10px; background: #0b0a0f; overflow-x: auto; font-size: 13px; }
.rb .board_content table { border-collapse: collapse; margin: 1em 0; max-width: 100%; }
.rb .board_content td, .rb .board_content th { padding: 6px 10px; border: 1px solid var(--stroke-2); }
.rb .board_content hr { border: 0; border-top: 1px solid var(--stroke); margin: 1.5em 0; }
/* black text chosen in the editor would vanish on the dark page */
.rb .board_content [style*="color: rgb(0, 0, 0)"], .rb .board_content [style*="color:#000"], .rb .board_content [style*="color: #000"], .rb .board_content [style*="color: black"], .rb .board_content font[color="#000000"], .rb .board_content font[color="black"] { color: var(--text-soft) !important; }
.rb .board_content [style*="background-color: rgb(255, 255, 255)"], .rb .board_content [style*="background-color: #fff"] { background-color: transparent !important; }
.rb .board_view > .board_footer { padding-top: 16px; }
.rb .board_footer .view_btn { display: flex; gap: 8px; float: none; }

/* comments */
.rb .board_comment { margin: 28px 0 0; padding: 22px 24px; border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--surface); }
.rb .board_comment .dl_cmt { display: flex; align-items: baseline; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; font-size: 15px; }
.rb .board_comment .dl_cmt dt { color: var(--text); font-weight: 800; font-family: var(--font-display); font-size: 15px; margin: 0; }
.rb .board_comment .dl_cmt dd { color: var(--accent-text); font-weight: 800; font-family: var(--font-body); }
.rb .board_comment .text_area { display: flex; gap: 10px; height: auto; margin: 0 0 18px; overflow: visible; border-radius: 0; box-shadow: none; }
.rb .board_comment .text_area .text_wrap { flex: 1 1 auto; width: auto; height: auto; padding: 0; background: none; border: 0; border-radius: 0; }
.rb .board_comment .text_area textarea { display: block; width: 100%; height: 84px; min-height: 84px; padding: 12px 14px; border: 1px solid var(--stroke-2); border-radius: 10px; background: var(--bg-raised); color: var(--text); font-size: 14px; }
.rb .board_comment .text_area textarea:disabled { opacity: .6; cursor: not-allowed; }
.rb .board_comment .text_area button {
    flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 104px; height: 84px; padding: 0 10px;
    border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 1.2;
}
.rb .board_comment .text_area button:hover:not(:disabled) { background: var(--accent-hover); transform: none; box-shadow: none; }
.rb .board_comment .text_area button:disabled { background: var(--surface-3); color: var(--text-mute); opacity: 1; cursor: not-allowed; }
.rb .board_comment .text_area button .count { display: block; color: inherit; opacity: .75; font-family: var(--font-body); font-size: 11px; font-weight: 700; margin: 0; }
.rb .board_comment ul { border: 0; }
.rb .board_comment li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; border-top: 1px solid var(--stroke); border-bottom: 0; overflow: visible; }
.rb .board_comment li:hover { background: none; }
.rb .board_comment li .cmt_info { display: contents; float: none; width: auto; height: auto; padding: 0; font-size: 13px; }
.rb .board_comment li .cmt_info .figure_job { grid-row: span 2; position: static; width: 38px; height: 38px; border-radius: 10px; margin: 0; }
.rb .board_comment li .cmt_info .server { display: none; }
.rb .board_comment li .cmt_info .nickname { grid-column: 2; align-self: end; color: var(--text); font-weight: 800; font-size: 14px; }
.rb .board_comment li .cmt_info .time { position: absolute; right: 24px; display: none; }
.rb .board_comment li p { grid-column: 2; float: none; width: auto; padding: 0; color: var(--text-soft); line-height: 1.55; word-break: break-word; }

/* previous / next */
.rb .board_move { margin-top: 20px; }
.rb .board_move ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; }
.rb .board_move li { width: auto; float: none; }
.rb .board_move li a { display: flex; flex-direction: column; gap: 4px; height: auto; padding: 14px 16px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); margin: 0 !important; }
.rb .board_move li a:hover { border-color: var(--stroke-hover); }
.rb .board_move li .sort { position: static; width: auto; height: auto; padding: 0; background: none; color: var(--text-mute); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2; }
.rb .board_move li .title { display: block; width: auto; height: auto; margin: 0; color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb .board_move .board_next a { text-align: right; align-items: flex-end; }

/* ---------- write forms (support pages, account termination) ---------- */
.rb .board_write .board { padding: 0; border: 0; }
.rb .board_write table { margin-bottom: 14px; }
.rb .board_write table th { width: 170px; padding: 14px 16px; border-bottom: 1px solid var(--stroke); border-top: 0; color: var(--text-dim); font-size: 13px; font-weight: 800; text-align: left; vertical-align: middle; }
.rb .board_write table td { padding: 12px 16px; border-bottom: 1px solid var(--stroke); border-top: 0; height: auto; font-size: 14px; color: var(--text-soft); }
.rb .board_write table tr:last-child > * { border-bottom: 0; }
.rb .board_write .write_bug td span { display: inline-flex; align-items: center; gap: 8px; }
.rb .board_write .write_bug td input.text { height: 42px; width: 100%; max-width: 420px; }
.rb .board_write .write_bug .td_date { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rb .board_write .write_bug .td_date .input_time input.text { width: 64px; text-align: center; }
.rb .board_write .write_bug .td_date .input_date input.text { width: 180px; }
.rb .board_write .write_bug .bugtime, .rb .board_write .write_bug .bugex { color: var(--text-mute); font-size: 12px; font-weight: 700; padding: 0; }
.rb .board_write .write_bug .btn_date { display: none; }
.rb .board_write .textarea { padding: 0; border: 0; }
.rb .board_write .textarea textarea { display: block; width: 100%; height: 260px; background: var(--surface); }
.rb .write_ps { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--stroke); background: var(--bg-raised); }
.rb .write_ps h4 { margin-bottom: 8px; color: var(--text); font-size: 15px; font-weight: 800; }
.rb .write_ps li { color: var(--text-mute); font-size: 14px; line-height: 1.6; }

/* ---------- tabs used in info/shop pages (.tab_menu.tab1) ---------- */
.rb .tab1 { position: relative; margin-bottom: 24px; padding: 0 !important; }
.rb .tab1 > ul, .rb .tab1 ul.tab_float { display: flex; flex-wrap: wrap; gap: 6px; width: auto; border: 0; table-layout: auto; }
.rb .tab1 li { display: block; float: none; width: auto; border: 0; text-align: left; background: none; }
.rb .tab1 li a { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--surface); color: var(--text-dim) !important; font-size: 13px; font-weight: 700; line-height: 1; margin: 0; }
.rb .tab1 li a:hover { border-color: var(--stroke-hover); color: #fff !important; }
.rb .tab1 .on a, .rb .tab1 li.on > a { background: var(--accent-tint); border-color: rgba(242, 162, 12, 0.55); color: var(--accent) !important; }
.rb .tab1 li div { position: static; display: none; width: auto; padding: 0; border: 0; background: none; }
.rb .tab_char .tab_float { max-height: 230px; overflow-y: auto; padding: 4px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--bg-raised); }
.rb .tab_char .tab_float li { cursor: pointer; }
.rb .tab_char .tab_float li a, .rb .tab_char .tab_float li span { height: 32px; }

/* ---------- info pages ---------- */
.rb .info_content { color: var(--text-soft); }
.rb .intro_intro { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.rb .intro_intro .cnt_left { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--stroke); }
.rb .intro_intro .cnt_right h5 { margin-bottom: 14px; font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.35; color: var(--text); }
.rb .intro_intro .cnt_right p { margin-bottom: 10px; color: var(--text-dim); line-height: 1.7; }
.rb .tutor_wrap .h4_sub { margin-bottom: 18px; color: var(--text); font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.rb .tutor_section { margin-bottom: 18px; padding: 20px; border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--surface); }
.rb .tutor_section h5, .rb .tutor_section h6 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; color: var(--text); font-size: 16px; font-weight: 800; }
.rb .tutor_section .step { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-text); font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.rb .tutor_section p { color: var(--text-mute); margin-bottom: 14px; }
.rb .tutor_section .figure_left { display: block; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--stroke); }
.rb .install_box { margin-top: 24px; padding: 20px; border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--bg-raised); }
.rb .install_box > p { color: var(--text-mute); margin: 10px 0; }
.rb .install_box .btn_blue { margin-top: 6px; }
.rb .spec_table { margin: 12px 0; }
.rb .char_wrap .clearfix { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; margin-bottom: 20px; }
.rb .char_wrap .cnt_left { width: 100% !important; height: auto !important; aspect-ratio: 315 / 300; object-fit: contain; border-radius: var(--radius-lg); border: 1px solid var(--stroke); background: radial-gradient(circle at 50% 35%, #2a2733, var(--surface)); }
.rb .char_wrap .cnt_right h4 { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-bottom: 6px; }
.rb .char_wrap .cnt_right .strong { color: var(--accent-text); font-weight: 800; margin-bottom: 10px; }
.rb .char_wrap .cnt_right p { color: var(--text-dim); margin-bottom: 8px; line-height: 1.65; }
.rb .figure_chmini { display: flex; gap: 10px; margin-top: 14px; }
.rb .figure_chmini img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface-2); }

/* ---------- download page ---------- */
.rb .down_wrap .down_btn { display: grid; gap: 16px; }
.rb .down_wrap .down_btn .border_box ul li { position: relative; padding-left: 18px; color: var(--text-dim); line-height: 1.6; }
.rb .down_wrap .down_btn .border_box ul li + li { margin-top: 6px; }
.rb .down_wrap .down_btn .border_box ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rb .down_wrap .ref { display: none; }
.rb .btn_down { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent) !important; font-family: var(--font-display); font-weight: 700; font-size: 16px; box-shadow: 0 10px 30px rgba(242, 162, 12, 0.3); }
.rb .btn_down:hover { background: var(--accent-hover); }
.rb .btn_down span { font-family: var(--font-display); }
.rb .down_spec > p { color: var(--text-mute); margin-bottom: 12px; }
.rb .down_spec .btn_spec { display: none; }

/* ---------- ranking ---------- */
.rb .rank_sort { margin-bottom: 14px; }
.rb .rank_sort table { width: auto; }
.rb .rank_sort th { padding-right: 14px; color: var(--text-mute); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.rb .rank_sort td { display: flex; flex-wrap: wrap; gap: 6px; }
.rb .rank_ps { margin: 0 0 16px; }
.rb .rank_ps li { position: relative; padding-left: 16px; color: var(--text-mute); font-size: 13px; background: none; }
.rb .rank_ps li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rb .rank_ps span { color: var(--accent-text); margin-left: 6px; }
.rb .rank_table .td_rank { width: 70px; font-family: var(--font-display); font-weight: 700; color: var(--text); background: none; border-radius: 0; height: auto; display: table-cell; }
.rb .rank_table tr:nth-child(-n+3) .td_rank { color: var(--accent-text); }
.rb .rank_table .td_info { display: table-cell; }
.rb .rank_table .td_info .server { margin-right: 10px; }
.rb .rank_table .nickname { color: var(--text); font-weight: 800; font-size: 14px; }
.rb .rank_table .fluct { display: none; }
.rb .rank_table col { width: auto !important; }

/* ---------- shop ---------- */
.rb .cash_wrap .content_title { margin: 28px 0 16px; }
.rb .cash_wrap .content_title h3 { font-size: 20px; }
.rb .cash_wrap ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 0; }
.rb .cash_wrap li { width: auto; margin: 0; padding: 0; float: none; background: none; }
.rb .cash_wrap li form { display: block !important; height: 100%; }
.rb .cash_wrap li a { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px; height: 100%; padding: 14px; border-radius: var(--radius-lg); border: 1px solid var(--stroke); background: var(--surface); color: var(--text) !important; }
.rb .cash_wrap li a:hover { border-color: var(--accent); }
.rb .cash_wrap .figure_item { display: flex; align-items: center; justify-content: center; height: 132px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #2b2833, var(--bg-raised)); overflow: hidden; padding: 0; }
.rb .cash_wrap .figure_item img { max-height: 110px; width: auto; }
.rb .cash_wrap .tag { position: absolute; top: 20px; left: 20px; z-index: 1; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; width: auto; height: auto; line-height: 1.4; }
.rb .cash_wrap .badge { display: none; }
.rb .cash_wrap .item_name, .rb .cash_wrap dl dt { color: var(--text); font-size: 15px; font-weight: 800; }
.rb .cash_wrap .price, .rb .cash_wrap .dl_cash dd { color: var(--accent-text); font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.rb .cash_wrap .item_info { display: flex; justify-content: space-between; gap: 10px; color: var(--text-mute); font-size: 12px; }
.rb .cash_wrap .item_info dl { display: flex; gap: 6px; align-items: baseline; }
.rb .cash_wrap .item_info dt { color: var(--text-mute); font-weight: 800; font-size: 11px; letter-spacing: 0.08em; }
.rb .cash_wrap dl dd { color: var(--text-mute); font-size: 12px; }
.rb .search_right { display: flex; justify-content: flex-end; margin-bottom: 16px; }

/* ---------- wallpapers ---------- */
.rb .board_wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.rb .board_wall li { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--surface); }
.rb .board_wall .thumb { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 10; background: var(--bg-raised); }
.rb .board_wall .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.rb .board_wall .thumb:hover img { transform: scale(1.04); }
.rb .board_wall .thumb span { display: none; }
.rb .wall_btn { display: flex; flex-wrap: wrap; gap: 6px; }
.rb .wall_btn a { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--stroke-2); background: var(--surface-2); color: var(--text-dim) !important; font-size: 12px; font-weight: 700; }
.rb .wall_btn a:hover { border-color: var(--accent); color: #fff !important; }
.rb .layer_img { display: none !important; }

/* ---------- home: Discord card ---------- */

/* ---------- download page ---------- */
.rb .rb-download { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; margin-bottom: 8px; }
.rb .rb-download__main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid rgba(242, 162, 12, 0.35); background: radial-gradient(120% 140% at 0% 0%, rgba(242, 162, 12, 0.14), transparent 60%), var(--surface); }
.rb .rb-download__main h4 { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.rb .rb-download__main p { color: var(--text-mute); }
.rb .rb-download__main .rb-btn { margin-top: 8px; }
.rb .rb-download__note { font-size: 13px; }
.rb .rb-download__steps { display: flex; flex-direction: column; gap: 10px; }
.rb .rb-download__steps li { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); }
.rb .rb-download__steps li div { display: flex; flex-direction: column; gap: 3px; }
.rb .rb-download__steps strong { color: var(--text); font-size: 15px; }
.rb .rb-download__steps span:not(.rb-step__num) { color: var(--text-mute); font-size: 14px; line-height: 1.55; }
.rb code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--text-soft); font-size: 0.92em; font-family: Consolas, "Cascadia Mono", monospace; }
.rb .rb-trouble li { position: relative; padding-left: 18px; color: var(--text-dim); line-height: 1.6; }
.rb .rb-trouble li + li { margin-top: 8px; }
.rb .rb-trouble li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rb .rb-wall__name { color: var(--text); font-size: 15px; }

/* ---------- editor pages (Summernote) ---------- */
.rb .rb-editor { padding: 22px; border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--surface); }
.rb .rb-editor__row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 14px; }
.rb .rb-field-label { display: block; margin: 0 0 8px; color: var(--text-dim); font-size: 13px; font-weight: 800; }
.rb .rb-editor .rb-field-label + * + .rb-field-label, .rb .rb-editor__row + .rb-field-label, .rb .rb-input-wide + .rb-field-label { margin-top: 18px; }
.rb .rb-input-wide { display: block; width: 100%; height: 46px; font-size: 15px; }
.rb .rb-editor select.rb-select { width: 100%; height: 46px; }
.rb .note-editor.note-frame { border: 1px solid var(--stroke-2); border-radius: 10px; overflow: hidden; background: var(--bg-raised); }
.rb .note-editor .note-toolbar { background: var(--surface-2); border-bottom: 1px solid var(--stroke-2); padding: 6px; }
.rb .note-editor .note-btn { background: var(--surface); border-color: var(--stroke-2); color: var(--text-dim); }
.rb .note-editor .note-btn:hover, .rb .note-editor .note-btn.active { background: var(--surface-3); color: #fff; }
.rb .note-editor .note-editing-area .note-editable { background: var(--bg-raised); color: var(--text-soft); font-size: 15px; line-height: 1.7; }
.rb .note-editor .note-placeholder { color: #8d899a; }
.rb .note-editor .note-statusbar { background: var(--surface-2); border-top: 1px solid var(--stroke-2); }
.rb .note-dropdown-menu, .rb .note-modal-content { color: #222; }
.rb .note-modal-content input { color: #222; background: #fff; height: auto; }
.rb .rb-editor .board_footer { justify-content: flex-end; }

/* pager arrows (the code-behind writes First/Previous/Next/Last as button text) */
.rb .board_pager .btn_first, .rb .board_pager .btn_prev, .rb .board_pager .btn_next, .rb .board_pager .btn_last { font-size: 0; }
.rb .board_pager .btn_first::before { content: "\00AB"; font-size: 16px; }
.rb .board_pager .btn_prev::before { content: "\2039"; font-size: 18px; }
.rb .board_pager .btn_next::before { content: "\203A"; font-size: 18px; }
.rb .board_pager .btn_last::before { content: "\00BB"; font-size: 16px; }

/* ranking type switch (span.radio > a, built in the code-behind) */
.rb .rank_sort .radio { display: inline-flex; height: auto; padding: 0; border: 0; background: none; }
.rb .rank_sort .radio a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--stroke); background: var(--surface); color: var(--text-dim) !important; font-size: 13px; font-weight: 700; }
.rb .rank_sort .radio.checked a { background: var(--accent-tint); border-color: rgba(242, 162, 12, 0.55); color: var(--accent) !important; }

/* ---------- error page ---------- */
.rb .rb-error { padding: 40px 0 0; text-align: left; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .rb-nav__link { padding: 0 9px; font-size: 13.5px; }
    .rb-account__name { display: none; }
}

@media (max-width: 1020px) {
    :root { --gutter: 20px; }
    .rb-menu-toggle { display: inline-flex; }
    .rb-nav {
        position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 999; overflow-y: auto;
        padding: 12px 16px 32px; background: var(--bg); border-top: 1px solid var(--stroke);
        opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
    }
    .rb-nav-open .rb-nav { opacity: 1; visibility: visible; transform: none; }
    .rb-nav-open { overflow: hidden; }
    .rb-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
    .rb-nav__item { border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 6px 0; }
    .rb-nav__link { height: 44px; font-size: 16px; font-family: var(--font-display); font-weight: 500; }
    .rb-nav__link .rb-caret { display: none; }
    .rb-nav__sub { position: static; min-width: 0; padding: 0 0 6px 8px; border: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
    .rb-nav__sub a { font-size: 14px; }
    .rb-hero__inner { grid-template-columns: 1fr; min-height: 0; padding: 64px var(--gutter) 64px; }
    .rb-media { grid-template-columns: 1fr; }
    .rb-hero__shade { background: linear-gradient(90deg, rgba(15, 14, 19, 0.96) 0%, rgba(15, 14, 19, 0.86) 55%, rgba(15, 14, 19, 0.6) 100%), linear-gradient(0deg, rgba(15, 14, 19, 1) 0%, rgba(15, 14, 19, 0) 40%); }
    .rb-steps { grid-template-columns: 1fr; }
    .rb-footer__inner { grid-template-columns: 1fr 1fr; }
    .rb-footer__about { grid-column: 1 / -1; }

    .rb .content_sub > .container { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
    .rb .lnb { position: static; display: flex; align-items: center; gap: 12px; padding: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .rb .lnb::-webkit-scrollbar { display: none; }
    .rb .lnb h2 { flex: none; padding: 0 6px 0 10px; margin: 0; border: 0; font-size: 13px; color: var(--text-mute); }
    .rb .lnb ul { flex-direction: row; flex: none; }
    .rb .lnb li a { height: 38px; white-space: nowrap; }
    .rb .intro_intro, .rb .char_wrap .clearfix, .rb .rb-editor__row, .rb .rb-download { grid-template-columns: 1fr; }
    .rb .intro_intro .cnt_left { max-width: 280px; }
}

@media (max-width: 720px) {
    :root { --header-h: 58px; --gutter: 16px; }
    body.rb { font-size: 15px; }
    .rb-header__inner { padding: 0 12px 0 16px; gap: 8px; }
    .rb-brand__name { font-size: 15px; }
    .rb-brand__sub { font-size: 9px; }
    .rb-header__actions .rb-btn--signup { display: none; }
    .rb-nav__sub { grid-template-columns: 1fr; }
    .rb-hero__inner { padding: 44px var(--gutter) 56px; gap: 28px; }
    .rb-hero__lead { font-size: 15px; }
    .rb-hero__cta .rb-btn { flex: 1 1 auto; }
    .rb-hero__slide { background-position: 78% center; }
    .rb-hero__shade { background: linear-gradient(0deg, rgba(15, 14, 19, 1) 0%, rgba(15, 14, 19, 0.82) 45%, rgba(15, 14, 19, 0.55) 100%); }
    .rb-section { padding-top: 40px; }
    .rb-cta-band { padding: 22px 20px; }
    .rb-footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .rb-top { right: 14px; bottom: 14px; }
    .rb-admin-link { left: 14px; bottom: 14px; }

    .rb .content_title { margin-bottom: 18px; }
    .rb .content_title .location { display: none; }

    /* board lists become cards */
    .rb .board_list table.board, .rb .board_list table.board tbody, .rb .board_list table.board tr, .rb .board_list table.board td { display: block; width: auto; }
    .rb .board_list table.board tr { position: relative; padding: 14px 16px; border-bottom: 1px solid var(--stroke); }
    .rb .board_list table.board tr:last-child { border-bottom: 0; }
    .rb .board_list table.board td { padding: 0; border: 0; text-align: left; white-space: normal; }
    .rb .board_list .td_info { margin-bottom: 8px; }
    .rb .board_list .td_title { margin-bottom: 8px; }
    .rb .board_list .td_view, .rb .board_list .td_time { display: inline-flex !important; margin-right: 14px; }
    .rb .board_list table.board tr:hover td { background: none; }
    .rb .board_footer { flex-direction: column; align-items: stretch; }
    .rb .board_footer form { width: 100%; }
    .rb .board_footer input.text { flex: 1 1 140px; width: auto; }
    .rb .board_footer .board_btn { margin-left: 0; }
    .rb .board_footer .board_btn a, .rb .board_footer .board_btn button { flex: 1 1 auto; }
    .rb .board_view .view_title { padding: 18px 16px; }
    .rb .board_content { padding: 20px 16px 24px; font-size: 15px; }
    .rb .board_comment { padding: 18px 16px; }
    .rb .board_comment .text_area { flex-direction: column; }
    .rb .board_comment .text_area button { width: 100%; height: 48px; flex-direction: row; }
    .rb .board_move ul { grid-template-columns: 1fr; }
    .rb .board_move .board_next a { text-align: left; align-items: flex-start; }
    .rb .board_write table, .rb .board_write table tbody, .rb .board_write table tr, .rb .board_write table th, .rb .board_write table td { display: block; width: auto; }
    .rb .board_write table th { padding: 12px 14px 4px; border: 0; }
    .rb .board_write table td { padding: 4px 14px 14px; }
    .rb .table1 th, .rb .table1 td, .rb .rank_table th, .rb .rank_table td, .rb .spec_table th, .rb .spec_table td { padding: 10px 10px; font-size: 13px; }
    .rb .cash_wrap ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .rb .cash_wrap .figure_item { height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
    .rb *, .rb *::before, .rb *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Account pages (user/LoginAndReg.Master) - the launcher's sign-in screen
   ========================================================================== */
.rb-auth { min-height: 100vh; }
.rb-auth__wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 100vh; }
.rb-auth__art {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 40px 48px;
    background: linear-gradient(180deg, rgba(15, 14, 19, 0.35), rgba(15, 14, 19, 0.75)), url("/img/rb-hero.jpg") center / cover no-repeat, #16131c;
    border-right: 1px solid var(--stroke);
}
.rb-auth__art .rb-brand__name { font-size: 22px; }
.rb-auth__art .rb-brand__sub { font-size: 11px; }
.rb-auth__tagline { display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
.rb-auth__headline { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; color: var(--text); }
.rb-auth__tagline span:last-child { color: var(--text-soft); font-size: 15px; }
.rb-auth__panel { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 520px; margin: 0 auto; padding: 56px 32px; }
.rb-auth__brand-sm { display: none; margin-bottom: 28px; }
.rb-auth__head { margin-bottom: 22px; }
.rb-auth__head h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; margin-bottom: 8px; }
.rb-auth__head p { color: var(--text-mute); font-size: 15px; }
.rb-auth__head p strong { color: var(--text-soft); }
.rb-auth__form { display: flex; flex-direction: column; gap: 16px; }
.rb-field { display: flex; flex-direction: column; gap: 7px; }
.rb-field label { color: var(--text-dim); font-size: 13px; font-weight: 800; }
.rb-field .inpt, .rb-auth .inpt { width: 100%; height: 48px; padding: 0 16px; font-size: 15px; }
.rb-field__hint { color: var(--text-mute); font-size: 12px; font-weight: 600; }
.rb-field__row { display: flex; gap: 8px; }
.rb-field__row .inpt { flex: 1 1 auto; }
.rb-field__row .rb-btn { height: 48px; flex: none; }
.rb-auth .submit {
    width: 100%; height: 54px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent);
    font-family: var(--font-display); font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 10px 30px rgba(242, 162, 12, 0.3);
    transition: background .15s;
}
.rb-auth .submit:hover { background: var(--accent-hover); }
.rb-auth .g-recaptcha { min-height: 78px; }
/* Third-party frames (reCAPTCHA, YouTube) are light-scheme pages. Inside this dark page the browser would paint an
   opaque white backdrop behind them - that was the white frame around the dark reCAPTCHA box. */
iframe { color-scheme: light; }
.rb-auth__message { display: block; color: var(--red-text); font-size: 14px; font-weight: 700; }
.rb-auth__message:empty { display: none; }
.rb-auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; font-weight: 700; }
.rb-auth__back { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; color: var(--text-mute) !important; font-size: 13px; font-weight: 700; }
.rb-auth__back:hover { color: #fff !important; }
.rb-auth__steps { list-style: decimal; padding-left: 20px; color: var(--text-mute); font-size: 14px; }
.rb-auth__steps li + li { margin-top: 4px; }
.rb-auth__section { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.rb-auth__qr img { max-width: 220px; border-radius: 12px; background: #fff; padding: 8px; }
.rb-btn--danger { background: transparent; border-color: rgba(255, 107, 107, 0.5); color: var(--red-text) !important; }
.rb-btn--danger:hover { background: rgba(255, 107, 107, 0.12); }

/* ---------- single-column sub pages, Discord buttons ---------- */
.rb .content_sub > .container.rb-container--single { grid-template-columns: minmax(0, 1fr); }
.rb-btn--discord { background: #5865f2; color: #fff !important; font-family: var(--font-display); box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35); }
.rb-btn--discord:hover { background: #6d78f5; }

@media (max-width: 860px) {
    .rb-auth__wrap { grid-template-columns: minmax(0, 1fr); }
    .rb-auth__art { display: none; }
    .rb-auth__brand-sm { display: inline-flex; }
    .rb-auth__panel { justify-content: flex-start; padding: 32px 20px 40px; }
    .rb-auth__head h1 { font-size: 26px; }
}

/* ---------- player profile (MyPage/MyHomePy) ---------- */
.rb .rb-profile { display: flex; flex-direction: column; gap: 18px; }
.rb .rb-profile__head { padding: 24px; border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: radial-gradient(120% 160% at 0% 0%, rgba(242, 162, 12, 0.14), transparent 60%), var(--surface); }
.rb .rb-profile__head h1 { margin: 6px 0 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4vw, 36px); }
.rb .rb-profile__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rb .rb-profile__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rb .rb-stat { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); }
.rb .rb-stat span { color: var(--text-mute); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.rb .rb-stat strong { color: var(--text); font-size: 15px; }
.rb .rb-kd__ratio { color: var(--accent-text); font-family: var(--font-display); font-weight: 700; }
.rb .rb-kd__bar { height: 12px; border-radius: 6px; background: rgba(255, 107, 107, 0.55); overflow: hidden; }
.rb .rb-kd__bar span { display: block; height: 100%; background: var(--green); }
.rb .rb-kd__legend { display: flex; gap: 18px; margin-top: 10px; color: var(--text-dim); font-size: 13px; font-weight: 700; }
.rb .rb-kd__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.rb .rb-kd__k { background: var(--green); }
.rb .rb-kd__d { background: rgba(255, 107, 107, 0.8); }

/* ---------- 404 ---------- */
.rb .rb-notfound { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 96px; padding-bottom: 40px; }
.rb .rb-notfound h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 46px); }
.rb .rb-notfound p { max-width: 560px; color: var(--text-mute); font-size: 16px; }

@media (max-width: 720px) {
    .rb .rb-profile__grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Header server status + reorganized home page
   (hero -> three steps -> news -> community -> trailer -> Discord)
   ========================================================================== */
.rb-status {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px;
    border: 1px solid var(--stroke); background: rgba(26, 25, 32, 0.72); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.rb-status__label { color: var(--text-mute); }
.rb-status__value { color: var(--green-text); }
.rb-status.is-off .rb-status__value { color: var(--red-text); }
.rb-status:not(.is-off) .rb-dot { animation: rb-pulse 2.4s ease-out infinite; }
@keyframes rb-pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 195, 138, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(76, 195, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 195, 138, 0); }
}
.rb-label-short { display: none; }
.rb-signin { gap: 7px; }

/* news: newest post featured, the rest as rows */
.rb-newsboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: stretch; }
.rb-newsboard--single { grid-template-columns: minmax(0, 1fr); }
.rb-news-feature {
    display: flex; flex-direction: column; gap: 12px; min-height: 252px; padding: 24px; border-radius: var(--radius-lg);
    border: 1px solid var(--stroke); color: var(--text) !important; transition: border-color .15s;
    background: radial-gradient(120% 120% at 0% 0%, rgba(242, 162, 12, 0.17), transparent 60%), var(--surface);
}
.rb-news-feature--update { background: radial-gradient(120% 120% at 0% 0%, rgba(156, 196, 255, 0.16), transparent 60%), var(--surface); }
.rb-news-feature--event { background: radial-gradient(120% 120% at 0% 0%, rgba(127, 220, 170, 0.15), transparent 60%), var(--surface); }
.rb-news-feature--muted { background: var(--surface); }
.rb-news-feature:hover { border-color: var(--stroke-hover); color: #fff !important; }
.rb-news-feature__meta { display: flex; align-items: center; gap: 10px; }
.rb-news-feature__title {
    font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2vw, 23px); line-height: 1.28;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rb-news-feature__excerpt {
    color: var(--text-mute); font-size: 14px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rb-news-feature__excerpt:empty { display: none; }
.rb-news-feature__more { margin-top: auto; color: var(--accent-text); font-size: 13px; font-weight: 800; }
.rb-news-date { color: var(--text-mute); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.rb-news-list { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--surface); }
.rb-news-list li + li { border-top: 1px solid var(--stroke); }
.rb-news-row {
    display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 14px;
    min-height: 62px; padding: 10px 18px; color: var(--text) !important; transition: background .15s;
}
.rb-news-row:hover { background: rgba(255, 255, 255, 0.04); color: #fff !important; }
.rb-news-row .rb-tag { justify-self: start; }
.rb-news-row__title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* community: top players | top guilds | new players */
.rb-board3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.rb-board3 > .rb-card + .rb-card { margin-top: 0; }
.rb-card__more { font-size: 12px; font-weight: 800; white-space: nowrap; }
.rb-board3 .rb-rank td { padding: 10px 4px; }
.rb-board3 .rb-rank .td_rank { width: 42px; }
.rb-board3 .rb-rank .td_nick { overflow-wrap: anywhere; }
.rb-board3 .rb-rank .job { display: inline-block; max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-joined li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.rb-joined li + li { border-top: 1px solid var(--stroke); }
.rb-joined__avatar {
    flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px;
    background: var(--surface-2); color: var(--accent-text); font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.rb-joined__name { flex: 1 1 auto; min-width: 0; color: var(--text); font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-joined__when { flex: none; color: var(--text-mute); font-size: 12px; font-weight: 700; }

/* closing Discord call to action */
.rb-cta-band--discord {
    border-color: rgba(88, 101, 242, 0.45);
    background: radial-gradient(120% 160% at 0% 0%, rgba(88, 101, 242, 0.24), rgba(26, 25, 32, 0.9) 58%), var(--surface);
}
.rb-cta-band--discord .rb-eyebrow { color: #aab2ff; }
.rb-cta-band--discord h2 { margin-top: 6px; }
.rb-cta-band--discord p { max-width: 640px; }
.rb-cta-band p strong { color: var(--text); font-weight: 700; }

@media (max-width: 1020px) {
    .rb-board3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-board3 > .rb-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .rb-newsboard { grid-template-columns: minmax(0, 1fr); }
    .rb-news-feature { min-height: 0; }
}

@media (max-width: 720px) {
    .rb-status { height: 32px; padding: 0 11px; }
    .rb-status__label { display: none; }
    .rb-signin { width: 36px; padding: 0; }
    .rb-signin__text { display: none; }
    .rb-hero__inner { min-height: 0; }
    .rb-news-feature { padding: 20px; }
    .rb-news-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag date" "title title"; row-gap: 6px; padding: 12px 16px; }
    .rb-news-row .rb-tag { grid-area: tag; }
    .rb-news-row .rb-news-date { grid-area: date; }
    .rb-news-row__title { grid-area: title; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .rb-board3 { grid-template-columns: minmax(0, 1fr); }
    .rb-board3 .rb-rank .job { max-width: 150px; }
    .rb-cta-band .rb-btn { width: 100%; }
}

@media (max-width: 420px) {
    .rb-label-long { display: none; }
    .rb-label-short { display: inline; }
    .rb-header__inner { padding: 0 10px 0 14px; }
    .rb-header__actions { gap: 4px; }
    .rb-status { width: 32px; padding: 0; justify-content: center; }
    .rb-status__value { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 359px) {
    .rb-status { display: none; }
    .g-recaptcha { transform: scale(0.9); transform-origin: 0 0; margin-bottom: -8px; }
}
