@charset "utf-8";

:root {
    --rally-bg: #f4f7f4;
    --rally-surface: #ffffff;
    --rally-surface-soft: #eef4f1;
    --rally-ink: #1f2528;
    --rally-muted: #5f6b70;
    --rally-border: #d7dfda;
    --rally-line: #e7ece8;
    --rally-accent: #0f766e;
    --rally-accent-strong: #0b5f58;
    --rally-action: #c2410c;
    --rally-action-strong: #9a3412;
    --rally-link: #075985;
    --rally-notice-bg: #fff7d6;
    --rally-notice-ink: #4d3710;
    --rally-footer: #17191f;
    --rally-footer-ink: #eef2f7;
    --rally-shadow: 0 10px 24px rgba(29, 42, 37, .08);
    --rally-header-z: 99990;
}

@media (prefers-color-scheme: dark) {
    :root {
        --rally-bg: #111416;
        --rally-surface: #1b1f22;
        --rally-surface-soft: #222a28;
        --rally-ink: #edf2f0;
        --rally-muted: #a9b3b1;
        --rally-border: #33403d;
        --rally-line: #2a3331;
        --rally-accent: #2dd4bf;
        --rally-accent-strong: #5eead4;
        --rally-action: #c2410c;
        --rally-action-strong: #9a3412;
        --rally-link: #7dd3fc;
        --rally-notice-bg: #3b2f13;
        --rally-notice-ink: #fde68a;
        --rally-footer: #0b0d10;
        --rally-footer-ink: #f8fafc;
        --rally-shadow: none;
    }
}

* {
    letter-spacing: 0 !important;
}

html,
body {
    min-width: 0;
}

body {
    background: var(--rally-bg) !important;
    color: var(--rally-ink) !important;
    font-size: 14px;
    line-height: 1.55;
}

#container_title {
    background: var(--rally-surface) !important;
    color: var(--rally-ink) !important;
    border-color: var(--rally-border) !important;
}

#container_title a,
#container_title i {
    color: var(--rally-accent-strong) !important;
}

a {
    color: var(--rally-link);
}

a:hover,
a:focus {
    color: var(--rally-action);
}

#hd,
#wrapper,
#ft {
    min-width: 0 !important;
}

.rally-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.rally-header {
    background: var(--rally-surface);
    border-bottom: 1px solid var(--rally-border);
    color: var(--rally-ink);
}

#hd.rally-header {
    background: var(--rally-surface) !important;
    color: var(--rally-ink) !important;
}

#hd.rally-header,
#hd.rally-mobile-header {
    position: sticky !important;
    top: 0;
    z-index: var(--rally-header-z) !important;
    width: 100%;
    isolation: isolate;
}

.rally-topbar {
    background: #17191f;
    color: #f8fafc;
    font-size: 13px;
}

.rally-topbar-inner,
.rally-brandrow,
.rally-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.rally-topbar-inner {
    min-height: 38px;
}

.rally-status {
    color: #cbd5e1;
}

.rally-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rally-user-actions a {
    color: #f8fafc;
}

.rally-brandrow {
    min-height: 88px;
}

.rally-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--rally-ink);
    min-width: 240px;
}

.rally-logo:hover {
    color: var(--rally-ink);
}

.rally-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 42px;
    border: 2px solid var(--rally-accent);
    border-radius: 8px;
    color: var(--rally-accent);
    font-weight: 800;
    font-size: 21px;
}

.rally-logo-text strong,
.rally-mobile-logo strong {
    display: block;
    color: var(--rally-ink);
    font-size: 20px;
    line-height: 1.1;
}

.rally-logo-text span,
.rally-mobile-logo span {
    display: block;
    color: var(--rally-muted);
    font-size: 12px;
    margin-top: 3px;
}

.rally-search {
    flex: 1;
    max-width: 470px;
}

.rally-search form {
    display: flex;
    border: 1px solid var(--rally-border);
    background: var(--rally-surface);
    border-radius: 8px;
    overflow: hidden;
}

.rally-search input {
    flex: 1;
    height: 42px;
    border: 0;
    padding: 0 14px;
    background: transparent;
    color: var(--rally-ink);
}

.rally-search button {
    width: 48px;
    border: 0;
    background: var(--rally-accent);
    color: #fff;
}

.rally-header-shortcuts {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rally-header-shortcuts a {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--rally-border);
    border-radius: 6px;
    background: var(--rally-surface-soft);
    color: var(--rally-ink);
    font-weight: 700;
}

.rally-header-shortcuts a:first-child {
    background: var(--rally-action);
    border-color: var(--rally-action);
    color: #fff;
}

.rally-mainnav {
    border-top: 1px solid var(--rally-line);
    background: var(--rally-surface);
}

.rally-main-menu {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.rally-main-menu > li {
    position: relative;
}

.rally-main-menu > li > a {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 18px;
    color: var(--rally-ink);
    font-weight: 800;
}

.rally-main-menu > li:hover > a,
.rally-main-menu > li:focus-within > a {
    background: var(--rally-surface-soft);
    color: var(--rally-accent-strong);
}

.rally-main-menu ul {
    display: none;
    position: absolute;
    left: 0;
    top: 48px;
    min-width: 210px;
    padding: 8px;
    background: var(--rally-surface);
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    box-shadow: var(--rally-shadow);
    z-index: 80;
}

.rally-main-menu li:hover ul,
.rally-main-menu li:focus-within ul {
    display: block;
}

.rally-main-menu ul a {
    display: block;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--rally-ink);
}

.rally-main-menu ul a:hover {
    background: var(--rally-surface-soft);
    color: var(--rally-accent-strong);
}

.rally-nav-tools {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.rally-nav-tools a {
    font-weight: 700;
    color: var(--rally-muted);
}

.rally-page {
    background: var(--rally-bg);
}

.rally-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    align-items: start;
    padding: 22px 0 32px;
}

.rally-layout-wide {
    grid-template-columns: minmax(0, 1fr);
}

.rally-page-wide .rally-sidebar {
    display: none;
}

#container {
    float: none !important;
    width: auto !important;
    min-height: 520px;
    margin: 0 !important;
    color: var(--rally-ink);
}

.rally-sidebar {
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.rally-titlebar {
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface);
}

#container_title {
    color: var(--rally-ink);
    font-size: 20px;
}

#container_title span {
    margin: 0;
    line-height: 1.3;
}

.rally-home {
    display: grid;
    gap: 18px;
}

.rally-home-head,
.rally-board-panel,
.rally-side-card,
.rally-visit-card,
.rally-hall-section,
.rally-mobile-section,
.rally-mobile-quick {
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface);
    box-shadow: var(--rally-shadow);
}

.rally-home-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    padding: 18px;
}

.rally-home-kicker {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 6px;
    background: var(--rally-surface-soft);
    color: var(--rally-accent-strong);
    font-weight: 800;
    font-size: 12px;
}

.rally-home-title {
    margin: 10px 0 8px;
    color: var(--rally-ink);
    font-size: 28px;
    line-height: 1.2;
}

.rally-home-desc {
    color: var(--rally-muted);
    max-width: 680px;
}

.rally-quick-links {
    display: grid;
    gap: 8px;
}

.rally-quick-links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface-soft);
    color: var(--rally-ink);
}

.rally-quick-links strong {
    min-width: max-content;
}

.rally-quick-links span {
    color: var(--rally-muted);
    text-align: right;
}

.rally-visit-card {
    padding: 16px;
}

.rally-visit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rally-visit-head h3 {
    color: var(--rally-ink);
    font-size: 17px;
}

.rally-visit-head span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--rally-surface-soft);
    color: var(--rally-accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.rally-visit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.rally-visit-grid div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface-soft);
}

.rally-visit-grid dt {
    color: var(--rally-muted);
    font-size: 12px;
    font-weight: 800;
}

.rally-visit-grid dd {
    margin-top: 4px;
    color: var(--rally-ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
}

.rally-notice-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
}

.rally-season-box {
    padding: 16px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-notice-bg);
    color: var(--rally-notice-ink);
}

.rally-season-box h3 {
    margin-bottom: 8px;
    color: inherit;
    font-size: 18px;
}

.rally-season-box a {
    display: inline-flex;
    align-items: center;
    height: 34px;
    margin-top: 12px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--rally-action);
    color: #fff;
    font-weight: 800;
}

.rally-board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rally-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 15px;
    border-bottom: 1px solid var(--rally-line);
}

.rally-panel-head h3 {
    color: var(--rally-ink);
    font-size: 16px;
}

.rally-panel-head h3 a {
    color: inherit;
}

.rally-panel-more {
    color: var(--rally-muted);
    font-size: 12px;
    font-weight: 700;
}

.rally-post-list {
    padding: 4px 0;
}

.rally-post-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 39px;
    padding: 8px 15px;
    border-bottom: 1px solid var(--rally-line);
}

.rally-post-list li:last-child {
    border-bottom: 0;
}

.rally-post-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--rally-ink);
    font-weight: 650;
}

.rally-post-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rally-post-title em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 5px;
    border-radius: 6px;
    background: var(--rally-surface-soft);
    color: var(--rally-accent-strong);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.rally-post-meta {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--rally-muted);
    font-size: 12px;
    white-space: nowrap;
}

.rally-post-meta b {
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.rally-empty {
    color: var(--rally-muted);
}

.rally-hall-section {
    padding: 18px;
}

.rally-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.rally-section-head h2 {
    color: var(--rally-ink);
    font-size: 22px;
}

.rally-section-head p {
    color: var(--rally-muted);
}

.rally-hall-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rally-hall-card {
    padding: 14px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface-soft);
    color: var(--rally-ink);
}

.rally-hall-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.rally-hall-card span {
    color: var(--rally-muted);
}

.rally-side-card {
    padding: 14px;
    margin-bottom: 14px;
}

.rally-side-card h3 {
    margin-bottom: 10px;
    color: var(--rally-ink);
    font-size: 15px;
}

.rally-side-menu {
    display: grid;
    gap: 8px;
}

.rally-side-menu a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--rally-line);
    color: var(--rally-ink);
}

.rally-side-menu a:last-child {
    border-bottom: 0;
}

#ft.rally-footer {
    background: var(--rally-footer);
    color: var(--rally-footer-ink);
    text-align: left;
}

.rally-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    padding: 34px 0;
}

.rally-footer h2,
.rally-footer h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 15px;
}

.rally-footer p,
.rally-footer a {
    color: #cbd5e1;
}

.rally-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.rally-footer-copy {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 14px 0;
    color: #94a3b8;
    text-align: center;
}

/* Gnuboard common surfaces */
.tbl_wrap table,
.tbl_head01 table,
.tbl_head02 table,
.form_01,
.mbskin_box,
#bo_v,
.new_win {
    background: var(--rally-surface) !important;
    color: var(--rally-ink) !important;
    border-color: var(--rally-border) !important;
}

.tbl_head01 thead th,
.tbl_head02 thead th {
    background: var(--rally-surface-soft) !important;
    color: var(--rally-ink) !important;
    border-color: var(--rally-border) !important;
}

.tbl_head01 td,
.tbl_head02 td,
.tbl_frm01 td,
.tbl_frm01 th,
.list_01 li {
    background: var(--rally-surface) !important;
    color: var(--rally-ink) !important;
    border-color: var(--rally-line) !important;
}

.tbl_head01 tbody tr:hover td,
.tbl_head02 tbody tr:hover td,
.list_01 li:hover {
    background: var(--rally-surface-soft) !important;
}

.bo_tit,
.bo_tit a,
#bo_v_title .bo_v_tit,
#bo_v_con,
#bo_v_con a,
#bo_v_info .sv_member,
#bo_vc .member,
#bo_vc .guest,
#bo_vc .sv_member,
#bo_vc .sv_guest {
    color: var(--rally-ink) !important;
}

#bo_v_info,
.bo_vc_hdinfo,
.empty_table,
.empty_list {
    color: var(--rally-muted) !important;
}

.bo_notice td {
    background: var(--rally-notice-bg) !important;
    color: var(--rally-notice-ink) !important;
}

.bo_notice td a {
    color: var(--rally-notice-ink) !important;
}

.frm_input,
.form_01 textarea,
.tbl_frm01 textarea,
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    background: var(--rally-surface) !important;
    color: var(--rally-ink) !important;
    border: 1px solid var(--rally-border) !important;
    border-radius: 6px !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--rally-muted) !important;
}

/* Member registration and agreement forms */
#fregister,
#fregisterform,
#member_cert_refresh {
    color: var(--rally-ink) !important;
}

#fregister section,
#fregister_chkall,
#fregister .fregister_terms div,
#member_cert_refresh section,
#member_cert_refresh_chkall,
#member_cert_refresh textarea,
#member_cert_refresh_private div,
#register_form,
#fregisterform .register_form_inner {
    background: var(--rally-surface-soft) !important;
    border-color: var(--rally-border) !important;
    color: var(--rally-ink) !important;
}

#fregister textarea,
#fregisterform .frm_input,
#fregisterform textarea,
#fregisterform select,
#fregisterform input[type="file"],
#member_cert_refresh textarea {
    background: var(--rally-surface) !important;
    color: var(--rally-ink) !important;
    border-color: var(--rally-border) !important;
}

#fregister h2,
#fregister_chkall label,
#fregister .fregister_terms table th,
#fregister .fregister_terms table td,
#member_cert_refresh h2,
#member_cert_refresh_chkall label,
#member_cert_refresh_private table th,
#member_cert_refresh_private table td,
#register_form h2,
#fregisterform label,
#fregisterform .frm_label,
#fregisterform .chk_li,
#fregisterform .cert_req,
#fregisterform .consent-date {
    color: var(--rally-ink) !important;
}

#register_form h2,
#fregister h2,
#member_cert_refresh h2 {
    border-bottom-color: var(--rally-border) !important;
}

#fregisterform .register_form_inner ul,
#fregisterform .register_form_inner li,
#member_cert_refresh_private ul,
#member_cert_refresh_private li {
    background: transparent !important;
    color: var(--rally-ink) !important;
}

#fregisterform .cert_desc,
#fregisterform .tooltip_icon,
#fregisterform .js-open-consent {
    color: var(--rally-accent-strong) !important;
}

#fregisterform .tooltip {
    background: var(--rally-footer) !important;
    color: var(--rally-footer-ink) !important;
    border: 1px solid var(--rally-border);
}

#fregisterform .tooltip:before {
    border-right-color: var(--rally-footer) !important;
}

#fregister > p {
    height: auto !important;
    min-height: 50px;
    padding: 13px 18px;
    line-height: 1.45 !important;
    background: var(--rally-action) !important;
    color: #fff !important;
}

#fregister > p:before {
    background: var(--rally-action-strong) !important;
}

.rally-agreement-summary {
    margin: 0 0 14px;
    padding: 18px 20px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface);
    color: var(--rally-ink);
}

.rally-agreement-summary strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}

.rally-agreement-summary ul,
.rally-policy-panels ul {
    margin: 0;
    padding-left: 18px;
}

.rally-agreement-summary li,
.rally-policy-panels li {
    margin: 5px 0;
    color: var(--rally-muted);
}

#fregister textarea {
    min-height: 320px;
    white-space: pre-wrap;
}

#fregister .fregister_terms table th {
    width: auto;
}

.rally-policy-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.rally-policy-panels details {
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface);
    color: var(--rally-ink);
}

.rally-policy-panels summary {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--rally-accent-strong);
}

.rally-policy-panels details[open] summary {
    border-bottom: 1px solid var(--rally-border);
}

.rally-policy-panels details > ul {
    padding: 12px 18px 14px 34px;
}

#fregister .rally-agree-line {
    position: static !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    color: var(--rally-ink);
}

#fregister .rally-agree-line input[type="checkbox"] {
    position: static !important;
    width: 18px;
    height: 18px;
    opacity: 1 !important;
    margin: 0;
}

#fregister .rally-agree-line input[type="checkbox"] + label {
    position: static !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--rally-ink) !important;
    cursor: pointer;
}

#fregister .rally-agree-line input[type="checkbox"] + label span {
    display: none !important;
}

#fregister_chkall {
    padding: 14px 18px;
    line-height: 1.5 !important;
}

#fregister_chkall label {
    color: var(--rally-ink) !important;
    font-weight: 700;
}

#fregister .btn_confirm {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

#fregister .btn_confirm .btn_close,
#fregister .btn_confirm .btn_submit {
    float: none !important;
    display: inline-flex !important;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-height: 50px;
    margin: 0 !important;
    line-height: 1.2 !important;
    font-weight: 700;
}

#fregister .btn_confirm .btn_close {
    background: var(--rally-surface-soft) !important;
    border: 1px solid var(--rally-border) !important;
    color: var(--rally-ink) !important;
}

.btn_submit,
a.btn_b02,
.btn_b02,
#ol_submit {
    background: var(--rally-action) !important;
    border-color: var(--rally-action) !important;
    color: #fff !important;
    border-radius: 6px !important;
}

.btn_submit:hover,
a.btn_b02:hover,
.btn_b02:hover,
#ol_submit:hover {
    background: var(--rally-action-strong) !important;
    border-color: var(--rally-action-strong) !important;
    color: #fff !important;
}

a.btn_b01,
.btn_b01,
a.btn_b03,
.btn_b03,
a.btn_b04,
.btn_b04,
a.btn01,
button.btn01 {
    background: var(--rally-surface-soft) !important;
    border: 1px solid var(--rally-border) !important;
    color: var(--rally-ink) !important;
    border-radius: 6px !important;
}

button:disabled,
input:disabled,
.disabled {
    opacity: .48 !important;
    cursor: not-allowed !important;
}

#ol_before,
#ol_after {
    background: transparent !important;
    color: var(--rally-ink) !important;
}

#ol_before input,
#ol_before #ol_submit {
    width: 100%;
    margin-top: 7px;
}

.ol_auto_wr,
#ol_svc a,
#login_info a {
    color: var(--rally-muted) !important;
}

/* Mobile portal */
.rally-mobile-header {
    background: var(--rally-surface);
    border-bottom: 1px solid var(--rally-border);
}

#hd.rally-mobile-header {
    background: var(--rally-surface) !important;
    color: var(--rally-ink) !important;
}

.rally-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 14px;
}

.rally-mobile-logo {
    color: var(--rally-ink);
}

.rally-mobile-menu-btn,
#gnb_close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface-soft);
    color: var(--rally-ink);
    font-size: 18px;
}

#gnb_open.rally-mobile-menu-btn {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 0 !important;
    background: var(--rally-surface-soft) !important;
    color: var(--rally-ink) !important;
}

#gnb.rally-mobile-drawer {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    left: auto !important;
    width: min(88vw, 370px);
    max-width: 370px;
    height: 100%;
    padding: 16px;
    overflow-y: auto;
    background: var(--rally-surface);
    color: var(--rally-ink);
    box-shadow: -10px 0 30px rgba(0,0,0,.2);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s ease;
    z-index: 100000;
}

#gnb.rally-mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.rally-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.42);
    z-index: 99999;
}

.rally-drawer-backdrop.is-open {
    display: block;
}

body.rally-drawer-open {
    overflow: hidden;
}

.rally-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.rally-drawer-account {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface-soft);
}

.rally-drawer-account strong {
    color: var(--rally-ink);
}

.rally-drawer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.rally-drawer-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--rally-border);
    border-radius: 6px;
    background: var(--rally-surface);
    color: var(--rally-ink);
    font-weight: 700;
}

.rally-drawer-actions a.primary {
    background: var(--rally-action);
    border-color: var(--rally-action);
    color: #fff;
}

.rally-mobile-search form {
    display: flex;
    margin: 14px 0;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    overflow: hidden;
}

.rally-mobile-search input {
    flex: 1;
    height: 40px;
    border: 0 !important;
    padding: 0 12px;
}

.rally-mobile-search button {
    width: 44px;
    border: 0;
    background: var(--rally-accent);
    color: #fff;
}

#gnb.rally-mobile-drawer #gnb_1dul {
    background: transparent;
}

#gnb.rally-mobile-drawer .gnb_1dli {
    line-height: 1.4;
    border-bottom: 1px solid var(--rally-line);
}

#gnb.rally-mobile-drawer .gnb_1da {
    padding: 13px 0;
    border: 0;
    color: var(--rally-ink);
    font-size: 15px;
}

#gnb.rally-mobile-drawer .btn_gnb_op {
    top: 5px;
    right: 0;
    background: transparent !important;
}

#gnb.rally-mobile-drawer .gnb_2dul {
    display: none;
    padding: 0 0 8px 12px;
    background: transparent;
}

#gnb.rally-mobile-drawer .gnb_2da {
    display: block;
    padding: 8px 0;
    color: var(--rally-muted);
}

.rally-mobile-utility {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.rally-mobile-utility a {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--rally-surface-soft);
    color: var(--rally-ink);
    font-weight: 700;
}

.rally-mobile-home {
    display: grid;
    gap: 12px;
    padding: 12px;
}

.rally-mobile-quick {
    padding: 12px;
}

.rally-mobile-visit-wrap {
    padding: 0 12px 14px;
}

.rally-mobile-visit {
    box-shadow: none;
}

.rally-mobile-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 8px;
}

.rally-mobile-tabs a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface);
    color: var(--rally-ink);
    font-weight: 800;
}

.rally-mobile-section .rally-post-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
}

.rally-mobile-section .rally-post-meta {
    justify-content: flex-start;
}

.rally-mobile-section .rally-panel-head {
    min-height: 46px;
}

@media (max-width: 1080px) {
    .rally-brandrow {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .rally-search {
        order: 3;
        max-width: none;
        flex-basis: 100%;
    }

    .rally-layout {
        grid-template-columns: 1fr;
    }

    .rally-sidebar {
        display: none;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 14px;
    }

    .rally-container {
        width: 100%;
        padding: 0 12px;
    }

    .rally-layout {
        display: block;
        padding: 0;
    }

    #container {
        min-height: 360px;
    }

    .rally-home-head,
    .rally-notice-row,
    .rally-board-grid,
    .rally-hall-grid,
    .rally-footer-inner {
        grid-template-columns: 1fr;
    }

    .rally-home-head,
    .rally-hall-section {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
    }

    .rally-post-list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .rally-post-meta b {
        max-width: 120px;
    }

    .tbl_wrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: auto;
    }

    #bo_list .td_num,
    #bo_list .td_name,
    #bo_list .td_hit,
    #bo_list .td_good,
    #bo_list .td_nogood {
        display: none;
    }

    .bo_tit {
        font-size: 14px;
        line-height: 1.45;
    }

    #bo_v_title .bo_v_tit {
        font-size: 21px;
    }

    .rally-footer-inner {
        padding: 24px 12px;
    }
}

/* Board and member polish */
#bo_list {
    color: var(--rally-ink);
}

#bo_list .tbl_head01 table {
    border: 1px solid var(--rally-border) !important;
    border-radius: 8px;
    overflow: hidden;
}

#bo_list .tbl_head01 thead th {
    height: 44px;
    padding: 12px 8px !important;
    font-weight: 800;
}

#bo_list .tbl_head01 td {
    height: 52px !important;
}

#bo_list tbody tr {
    border-left-color: transparent !important;
}

#bo_list tbody tr:hover {
    border-left-color: var(--rally-accent) !important;
}

#bo_list .bo_tit {
    color: var(--rally-ink) !important;
    font-weight: 750;
}

.pg_page,
.pg_current {
    border-radius: 6px !important;
}

.pg_page {
    background: var(--rally-surface) !important;
    border-color: var(--rally-border) !important;
    color: var(--rally-muted) !important;
}

.pg_page:hover {
    background: var(--rally-surface-soft) !important;
    color: var(--rally-ink) !important;
}

.pg_current {
    background: var(--rally-accent) !important;
    border-color: var(--rally-accent) !important;
    color: #fff !important;
}

@media (prefers-color-scheme: dark) {
    .pg_current {
        color: #06201d !important;
    }
}

#bo_v {
    padding: 22px !important;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface) !important;
    box-shadow: var(--rally-shadow);
}

#bo_v_title {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rally-line);
}

#bo_v_title .bo_v_tit {
    color: var(--rally-ink) !important;
    font-size: 25px !important;
    line-height: 1.35 !important;
}

#bo_v_info {
    margin-top: 12px !important;
    padding: 12px 14px !important;
    border: 1px solid var(--rally-border) !important;
    border-radius: 8px;
    background: var(--rally-surface-soft) !important;
    color: var(--rally-muted) !important;
}

#bo_v_info .profile_info {
    margin: 0 !important;
}

#bo_v_con {
    margin: 20px 0 28px !important;
    color: var(--rally-ink) !important;
    font-size: 15px;
    line-height: 1.75 !important;
}

.bo_v_nb li {
    border-color: var(--rally-line) !important;
}

.bo_v_nb li:hover {
    background: var(--rally-surface-soft) !important;
}

.cmt_btn {
    border-bottom-color: var(--rally-border) !important;
    background: transparent !important;
    color: var(--rally-ink) !important;
}

.cmt_btn b,
.cmt_btn span.total {
    color: var(--rally-accent-strong) !important;
}

.cmt_btn span.total:after {
    background: var(--rally-accent) !important;
}

#bo_vc article {
    margin: 12px 0 !important;
    padding: 14px !important;
    border: 1px solid var(--rally-line) !important;
    border-radius: 8px;
    background: var(--rally-surface-soft) !important;
}

#bo_vc article .cm_wrap {
    width: calc(100% - 62px) !important;
}

#bo_vc .cmt_contents {
    color: var(--rally-ink) !important;
    padding-bottom: 0 !important;
}

.bo_vc_hdinfo {
    color: var(--rally-muted) !important;
}

.bo_vc_w {
    padding: 16px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface) !important;
}

#bo_vc span.bo_vc_w:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

#ctt {
    margin: 0 0 24px !important;
    padding: 22px !important;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface) !important;
    color: var(--rally-ink) !important;
    box-shadow: var(--rally-shadow);
}

#ctt_con {
    padding: 0 !important;
    color: var(--rally-ink) !important;
    line-height: 1.7 !important;
}

#ctt_con a {
    color: var(--rally-link);
}

#ctt_con img {
    max-width: 100%;
    height: auto;
}

.rally-content-page {
    color: var(--rally-ink);
}

.rally-content-hero {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface-soft);
}

.rally-content-kicker {
    display: inline-flex;
    margin: 0 0 10px;
    padding: 4px 9px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--rally-accent) 18%, transparent);
    color: var(--rally-accent-strong);
    font-weight: 800;
    font-size: 13px;
}

.rally-content-hero h2 {
    margin: 0 0 10px;
    color: var(--rally-ink);
    font-size: 30px;
    line-height: 1.25;
}

.rally-content-hero p {
    margin: 0;
    color: var(--rally-muted);
    font-size: 16px;
}

.rally-info-image-wrap {
    margin: 0;
    padding: 12px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.rally-info-image {
    display: block;
    width: 100%;
    border-radius: 4px;
}

.rally-history-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 16px;
}

.rally-history-summary div {
    padding: 16px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface-soft);
}

.rally-history-summary strong,
.rally-history-summary span {
    display: block;
}

.rally-history-summary strong {
    color: var(--rally-accent-strong);
    font-size: 24px;
    line-height: 1.2;
}

.rally-history-summary span {
    margin-top: 4px;
    color: var(--rally-muted);
}

.rally-history-map {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface-soft);
}

.rally-history-map h3 {
    margin: 0 0 6px;
    color: var(--rally-ink);
    font-size: 20px;
}

.rally-history-map p {
    margin: 0;
    color: var(--rally-muted);
}

.rally-history-map-embed {
    overflow: hidden;
    min-height: 360px;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface);
    box-shadow: var(--rally-shadow);
}

.rally-history-map-embed iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    background: var(--rally-surface-soft);
}

.rally-content-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 7px;
    background: var(--rally-action);
    color: #fff !important;
    font-weight: 800;
    white-space: nowrap;
}

.rally-content-button:hover,
.rally-content-button:focus {
    background: var(--rally-action-strong);
    color: #fff !important;
}

.rally-history-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--rally-border);
    border-radius: 8px;
    background: var(--rally-surface);
}

.rally-history-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    color: var(--rally-ink);
}

.rally-history-table th,
.rally-history-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--rally-line);
    text-align: left;
    vertical-align: top;
}

.rally-history-table th {
    background: var(--rally-surface-soft);
    color: var(--rally-muted);
    font-weight: 800;
}

.rally-history-table thead {
    display: none;
}

.rally-history-table tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--rally-line);
}

.rally-history-table td {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    padding: 7px 0;
    border-bottom: 0;
}

.rally-history-table td::before {
    content: attr(data-label);
    color: var(--rally-muted);
    font-weight: 800;
}

.rally-history-table td strong,
.rally-history-table td span {
    display: block;
}

.rally-history-table td span {
    margin-top: 3px;
    color: var(--rally-muted);
    font-size: 13px;
}

.rally-history-sponsors {
    min-width: 300px;
    color: var(--rally-muted);
    font-size: 13px;
    line-height: 1.55;
}

.ctt_rally_history {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
}

.ctt_rally_history #ctt_con {
    display: grid;
    gap: 18px;
}

.ctt_rally_history .rally-content-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: end;
    min-height: 220px;
    padding: 30px;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--rally-accent) 22%, transparent), transparent 44%),
        var(--rally-surface);
}

.ctt_rally_history .rally-content-hero::after {
    content: "280";
    position: absolute;
    right: 28px;
    bottom: -28px;
    color: color-mix(in srgb, var(--rally-accent) 18%, transparent);
    font-weight: 900;
    font-size: 128px;
    line-height: 1;
    pointer-events: none;
}

.ctt_rally_history .rally-content-hero h2 {
    font-size: 40px;
}

.ctt_rally_history .rally-history-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.ctt_rally_history .rally-history-summary div {
    min-height: 112px;
    padding: 22px;
    background: var(--rally-surface);
    box-shadow: var(--rally-shadow);
}

.ctt_rally_history .rally-history-summary strong {
    font-size: 32px;
}

.ctt_rally_history .rally-history-map {
    margin: 0;
    padding: 22px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--rally-accent) 16%, transparent), transparent 46%),
        var(--rally-surface-soft);
}

.ctt_rally_history .rally-history-map h3 {
    font-size: 24px;
}

.ctt_rally_history .rally-history-table-wrap {
    background: var(--rally-surface);
    box-shadow: var(--rally-shadow);
}

.ctt_rally_history .rally-history-table {
    min-width: 1120px;
}

.ctt_rally_history .rally-history-table thead {
    display: table-header-group;
}

.ctt_rally_history .rally-history-table tbody {
    display: table-row-group;
}

.ctt_rally_history .rally-history-table tr {
    display: table-row;
    padding: 0;
}

.ctt_rally_history .rally-history-table th,
.ctt_rally_history .rally-history-table td {
    display: table-cell;
    padding: 13px 14px;
    border-bottom: 1px solid var(--rally-line);
}

.ctt_rally_history .rally-history-table td::before {
    content: none;
}

.ctt_rally_history .rally-history-table th:first-child,
.ctt_rally_history .rally-history-table td:first-child {
    width: 132px;
}

.ctt_rally_history .rally-history-table th:nth-child(2),
.ctt_rally_history .rally-history-table td:nth-child(2) {
    width: 140px;
}

.ctt_rally_history .rally-history-table th:nth-child(3),
.ctt_rally_history .rally-history-table td:nth-child(3),
.ctt_rally_history .rally-history-table th:nth-child(4),
.ctt_rally_history .rally-history-table td:nth-child(4),
.ctt_rally_history .rally-history-table th:nth-child(5),
.ctt_rally_history .rally-history-table td:nth-child(5),
.ctt_rally_history .rally-history-table th:nth-child(6),
.ctt_rally_history .rally-history-table td:nth-child(6) {
    width: 86px;
}

.ctt_rally_history .rally-history-sponsors {
    min-width: 380px;
}

.bo_vc_w textarea {
    background: var(--rally-surface) !important;
    color: var(--rally-ink) !important;
    border-color: var(--rally-border) !important;
}

#mb_login {
    padding: 70px 16px;
}

#mb_login .mbskin_box {
    border: 1px solid var(--rally-border) !important;
    border-radius: 8px;
    background: var(--rally-surface) !important;
    box-shadow: var(--rally-shadow);
    color: var(--rally-ink) !important;
}

#mb_login .mb_log_cate h2,
#mb_login .mb_log_cate a {
    color: var(--rally-ink) !important;
}

#login_fs .frm_input {
    height: 42px !important;
}

#login_fs .btn_submit {
    width: 100%;
    height: 46px !important;
    border-radius: 7px !important;
    font-size: 16px !important;
}

#login_info,
#login_info a {
    color: var(--rally-muted) !important;
}

@media (max-width: 760px) {
    #bo_v {
        padding: 14px !important;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    #bo_v_title .bo_v_tit {
        font-size: 20px !important;
    }

    #bo_v_con {
        font-size: 16px;
    }

    #bo_vc article .cm_wrap {
        width: calc(100% - 48px) !important;
    }

    #mb_login {
        padding: 40px 14px;
    }

    #fregister > p {
        text-align: left;
    }

    .rally-policy-panels {
        grid-template-columns: 1fr;
    }

    #fregister textarea {
        min-height: 310px;
    }

    #fregister .fregister_terms div {
        padding: 14px;
    }

    #fregister .fregister_terms table {
        table-layout: fixed;
        font-size: 12px;
    }

    #fregister .fregister_terms table th,
    #fregister .fregister_terms table td {
        padding: 9px 7px;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    #fregister .rally-agree-line {
        justify-content: flex-start;
        line-height: 1.45;
    }

    #fregister .btn_confirm {
        gap: 6px;
    }

    #ctt {
        padding: 14px !important;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .rally-content-hero {
        padding: 16px;
    }

    .rally-content-hero h2 {
        font-size: 24px;
    }

    .rally-info-image-wrap {
        padding: 8px;
    }

    .rally-history-summary {
        grid-template-columns: 1fr;
    }

    .rally-history-map {
        display: block;
    }

    .rally-history-map-embed {
        min-height: 300px;
    }

    .rally-history-map-embed iframe {
        height: 320px;
    }

    .rally-content-button {
        width: 100%;
        margin-top: 12px;
    }

    .rally-history-table {
        min-width: 0;
    }

    .rally-history-table tr {
        padding: 12px;
    }

    .rally-history-table td {
        grid-template-columns: 84px 1fr;
        gap: 10px;
        padding: 7px 0;
    }

    .rally-history-sponsors {
        min-width: 0;
    }

    .ctt_rally_history .rally-content-hero {
        display: block;
        min-height: 0;
        padding: 18px;
    }

    .ctt_rally_history .rally-content-hero::after {
        right: 14px;
        bottom: -18px;
        font-size: 82px;
    }

    .ctt_rally_history .rally-content-hero h2 {
        font-size: 26px;
    }

    .ctt_rally_history .rally-history-summary {
        grid-template-columns: 1fr;
    }

    .ctt_rally_history .rally-history-summary div {
        min-height: 0;
        padding: 16px;
    }

    .ctt_rally_history .rally-history-table {
        display: block;
        min-width: 0;
    }

    .ctt_rally_history .rally-history-table thead {
        display: none;
    }

    .ctt_rally_history .rally-history-table tbody {
        display: block;
    }

    .ctt_rally_history .rally-history-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px 12px;
        padding: 12px;
        border-bottom: 1px solid var(--rally-line);
    }

    .ctt_rally_history .rally-history-table td {
        display: block;
        min-width: 0;
        width: auto;
        padding: 0;
        border-bottom: 0;
        font-size: 13px;
        line-height: 1.42;
        word-break: keep-all;
    }

    .ctt_rally_history .rally-history-table td::before {
        display: block;
        margin-bottom: 3px;
        color: var(--rally-muted);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.2;
    }

    .ctt_rally_history .rally-history-table td:nth-child(1)::before {
        content: "회차/기간";
    }

    .ctt_rally_history .rally-history-table td:nth-child(2)::before {
        content: "개최장소";
    }

    .ctt_rally_history .rally-history-table td:nth-child(3)::before {
        content: "선수";
    }

    .ctt_rally_history .rally-history-table td:nth-child(4)::before {
        content: "완주율";
    }

    .ctt_rally_history .rally-history-table td:nth-child(5)::before {
        content: "완주자";
    }

    .ctt_rally_history .rally-history-table td:nth-child(6)::before {
        content: "지원조";
    }

    .ctt_rally_history .rally-history-table td:nth-child(7)::before {
        content: "후원/협찬";
    }

    .ctt_rally_history .rally-history-table td:nth-child(7) {
        grid-column: 1 / -1;
    }

    .ctt_rally_history .rally-history-table td strong {
        font-size: 16px;
    }

    .ctt_rally_history .rally-history-table td span {
        margin-top: 2px;
        font-size: 12px;
    }

    .ctt_rally_history .rally-history-sponsors {
        min-width: 0;
        max-height: 2.8em;
        overflow: hidden;
        color: var(--rally-muted);
        font-size: 12px;
        line-height: 1.4;
    }
}
