/*
 | "Dojo Ink" — unique light theme for the public Blade frontend.
 | Warm paper ground, sumi-ink typography (Shippori Mincho serif display),
 | hinomaru red accent. Loaded LAST in frontend masters so it overrides
 | bootstrap + style.css + quick-links.css. Public Blade site only.
 */

:root {
    --paper: #faf7f2;
    --paper-2: #f2ecdf;
    --card: #fffefb;
    --ink: #1b1815;
    --ink-2: #555047;
    --ink-3: #8d867a;
    --line: #e7e0d3;
    --line-2: #d8cfbd;
    --beni: #d7263d;
    --beni-deep: #a81626;
    --beni-wash: #fbeaec;
    --ok: #2f7d4f;
    --ok-wash: #eaf4ee;
    --serif: 'Shippori Mincho', 'Iowan Old Style', Georgia, serif;
    --sans: 'Zen Kaku Gothic New', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============ base ============ */
body {
    background: var(--paper) !important;
    color: var(--ink-2);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--ink);
    letter-spacing: .01em;
}
p { color: var(--ink-2); }
hr { border-color: var(--line-2); opacity: 1; }

a { color: var(--beni); text-decoration: none; }
a:hover { color: var(--beni-deep); }

::selection { background: rgba(215, 38, 61, .18); color: var(--ink); }

/* ============ header ============ */
header {
    background: var(--paper) !important;
    border-bottom: 1px solid var(--line-2);
    box-shadow: inset 0 3px 0 var(--beni); /* thin hinomaru line across the top */
}

.dj-header { padding: .85rem 0; }
.dj-header__row {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.kumite-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--ink) !important;
    text-decoration: none;
    line-height: 1;
}
.kumite-brand .brand-mark {
    display: grid;
    place-items: center;
    height: 42px;
    width: 42px;
    border-radius: 50%;
    background: var(--beni);
    color: #fff;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 14px -6px rgba(168, 22, 38, .55);
}
.kumite-brand .brand-dot { color: var(--beni); }

.dj-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.dj-nav .nav-link {
    color: var(--ink-2) !important;   /* overrides style.css #fff !important */
    font-family: var(--sans);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .55rem .8rem;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: color .15s, border-color .15s;
}
.dj-nav .nav-link:hover { color: var(--ink) !important; border-bottom-color: var(--line-2); }
.dj-nav .nav-link.active {
    color: var(--ink) !important;
    font-weight: 800;
    border-bottom-color: var(--beni);
}

.nav-auth { display: flex; align-items: center; gap: .6rem; margin-left: auto; }

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line-2);
    background: var(--card);
    border-radius: 999px;
}
.lang-toggle a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .26rem .62rem;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    color: var(--ink-3) !important;
    text-decoration: none;
    transition: color .15s, background .15s;
}
.lang-toggle a:hover { color: var(--ink) !important; }
.lang-toggle a.active { background: var(--ink); color: var(--paper) !important; }

.navbar-toggler { border: 1px solid var(--line-2) !important; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231b1815' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-auth .dropdown-menu {
    background: var(--card);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    box-shadow: 0 18px 40px -18px rgba(27, 24, 21, .25);
}
.nav-auth .dropdown-item { color: var(--ink-2); font-weight: 500; }
.nav-auth .dropdown-item:hover { background: var(--beni-wash); color: var(--beni-deep); }
.nav-auth .dropdown-divider { border-color: var(--line); }

/* ============ buttons ============ */
.btn-brand {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    background: var(--beni);
    color: #fff !important;
    border: 1px solid var(--beni);
    border-radius: 6px;
    padding: .55rem 1.15rem;
    font-family: var(--sans);
    font-weight: 700; font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px -10px rgba(168, 22, 38, .6);
    transition: background .15s, border-color .15s;
}
.btn-brand:hover { background: var(--beni-deep); border-color: var(--beni-deep); color: #fff !important; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    color: var(--ink) !important;
    border: 1px solid var(--ink);
    background: transparent;
    border-radius: 6px;
    padding: .55rem 1.15rem;
    font-family: var(--sans);
    font-weight: 700; font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper) !important; }

/* primary actions (existing bootstrap classes across pages) → hinomaru */
.btn-primary, .btn-success, .btn-warning {
    background: var(--beni);
    border: 1px solid var(--beni);
    color: #fff;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 6px;
}
.btn-primary:hover, .btn-success:hover, .btn-warning:hover,
.btn-primary:focus, .btn-success:focus, .btn-warning:focus {
    background: var(--beni-deep);
    border-color: var(--beni-deep);
    color: #fff;
}
/* destructive → outlined red, fills on hover */
.btn-danger {
    background: transparent;
    border: 1px solid var(--beni);
    color: var(--beni);
    font-weight: 700;
    border-radius: 6px;
}
.btn-danger:hover, .btn-danger:focus { background: var(--beni); border-color: var(--beni); color: #fff; }
.btn-secondary, .btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--ink-2);
    border-radius: 6px;
}
.btn-secondary:hover, .btn-outline-secondary:hover { background: var(--paper-2); border-color: var(--ink-3); color: var(--ink); }

/* ============ surfaces ============ */
.bgwhite,
.nice-bg,
.box-shadow,
[style*="background-color: #fff"],
[style*="background-color:#fff"],
[style*="background: #fff"] {
    background: var(--card) !important;
    background-image: none !important;
    color: var(--ink-2) !important;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(27, 24, 21, .04) !important;
}

.dj-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.6rem 1.75rem;
    box-shadow: 0 1px 2px rgba(27, 24, 21, .04);
}
.dj-card + .dj-card { margin-top: 1.25rem; }
.dj-card__title {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}
.dj-card__title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    background: var(--beni);
    margin-top: .55rem;
    border-radius: 2px;
}
.dj-card__desc { color: var(--ink-3); font-size: .92rem; margin: .8rem 0 0; }
.dj-card__head { margin-bottom: 1.4rem; }
.dj-card__head--row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============ account sidebar ============ */
.dj-side {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.1rem 0;
    margin-bottom: 1.25rem;
}
.dj-side__title {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 0 1.25rem .5rem;
}
.dj-side ul { list-style: none; margin: 0; padding: 0; }
.dj-side li + li { border-top: 1px solid var(--line); }
.dj-side a {
    display: block;
    padding: .6rem 1.25rem;
    color: var(--ink-2);
    font-weight: 600;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: color .15s, border-color .15s, background .15s;
}
.dj-side a:hover { color: var(--beni-deep); background: var(--beni-wash); border-left-color: var(--line-2); }
.dj-side a.active { color: var(--ink); border-left-color: var(--beni); background: var(--paper); }
.dj-side a.dj-side__hot { color: var(--beni); font-weight: 700; }
.dj-side + .dj-side { margin-top: 0; }

/* legacy quick-links widgets (pages not yet rewritten) */
nav.quick-links .title, .widget-title {
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .12em;
    padding-bottom: .5rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--line);
}
nav.quick-links a { color: var(--ink-2) !important; }
nav.quick-links a:hover { color: var(--beni-deep) !important; }
nav.quick-links li { border-top-color: var(--line); }
nav.quick-links li:hover:after { background: var(--beni); }

/* ============ forms ============ */
.form-control, .form-select {
    background-color: #fff;
    border: 1px solid var(--line-2);
    color: var(--ink);
    border-radius: 6px;
    padding: .5rem .75rem;
}
.form-control::placeholder { color: var(--ink-3); }
.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--beni);
    box-shadow: 0 0 0 3px rgba(215, 38, 61, .14);
    color: var(--ink);
}
.form-control:disabled { background-color: var(--paper-2); color: var(--ink-3); }
.form-label, .col-form-label { color: var(--ink); font-weight: 600; font-size: .9rem; }
.form-text { color: var(--ink-3); }

/* ============ tables ============ */
.table { color: var(--ink-2); border-color: var(--line); }
.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: var(--line);
    color: var(--ink-2);
    padding: .7rem .75rem;
}
.table thead th {
    color: var(--ink-3);
    font-family: var(--sans);
    text-transform: uppercase;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .1em;
    border-bottom: 2px solid var(--ink);
}
.table tbody a { font-weight: 600; }
.table-striped > tbody > tr:nth-of-type(odd) > *,
.table--stripped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(242, 236, 223, .45); }
.table-hover > tbody > tr:hover > *,
.table--hover > tbody > tr:hover > * { background-color: var(--beni-wash); }

/* ============ alerts / feedback ============ */
.alert { border-radius: 6px; border: 1px solid var(--line); }
.alert-success {
    background: var(--ok-wash);
    border-left: 4px solid var(--ok);
    border-color: var(--line) var(--line) var(--line) var(--ok);
    color: var(--ok);
    font-weight: 600;
}
.alert-danger {
    background: var(--beni-wash);
    border-left: 4px solid var(--beni);
    border-color: var(--line) var(--line) var(--line) var(--beni);
    color: var(--beni-deep);
    font-weight: 600;
}
.alert-danger ul { margin: 0; padding-left: 1.1rem; }
.error.text-danger, .text-danger { color: var(--beni-deep) !important; }
.text-success { color: var(--ok) !important; }
.text-gray-500, .text-muted { color: var(--ink-3) !important; }

/* ============ modal ============ */
.modal-content {
    background: var(--card);
    border: 1px solid var(--line-2);
    border-radius: 10px;
}
.modal-header { border-bottom: 1px solid var(--line); }
.modal-header .modal-title { font-family: var(--serif); color: var(--ink); }
.modal-footer { border-top: 1px solid var(--line); }

/* ============ select2 / dselect / datepicker (light) ============ */
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid var(--line-2);
    border-radius: 6px;
}
.select2-dropdown { background-color: var(--card); border: 1px solid var(--line-2); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: var(--beni); }
.dropdown-menu { border-radius: 8px; border: 1px solid var(--line-2); }
.datepicker table tr td.active.active,
.datepicker table tr td.active:hover.active { background: var(--beni) !important; background-image: none !important; }
.datepicker table tr td.today { background: var(--beni-wash) !important; background-image: none !important; }

/* ============ footer ============ */
.blog-footer, footer {
    background: var(--paper-2) !important;
    background-image: none !important;
    border-top: 1px solid var(--line-2);
    color: var(--ink-3);
}
.dj-footer {
    padding: 2.6rem 0 1.2rem;
    font-size: 13.5px;
    color: var(--ink-3);
}
.dj-footer__grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(0, 1fr));
    gap: 2rem 2.5rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--line-2);
}
.dj-footer__brandcol .kumite-brand { display: inline-flex; }
.dj-footer__tagline {
    margin: .9rem 0 .8rem;
    max-width: 30ch;
    color: var(--ink-3);
    line-height: 1.55;
}
.dj-footer__kanji {
    font-family: var(--serif);
    color: var(--line-2);
    font-size: 1.3rem;
    letter-spacing: .35em;
}
.dj-footer__col h4 {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink);
    margin: .3rem 0 .9rem;
    padding-bottom: .5rem;
    position: relative;
}
.dj-footer__col h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 22px; height: 2px;
    background: var(--beni);
}
.dj-footer__col ul { list-style: none; margin: 0; padding: 0; }
.dj-footer__col li + li { margin-top: .45rem; }
.dj-footer__col a { color: var(--ink-2); }
.dj-footer__col a:hover { color: var(--beni-deep); }
.dj-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.1rem;
    font-size: 12.5px;
}
@media (max-width: 991.98px) {
    .dj-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dj-footer__brandcol { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .dj-footer__grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ============ landing ============ */
.dj-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 5rem;
}
.dj-hero__kanji {
    position: absolute;
    top: 50%;
    right: -1rem;
    transform: translateY(-50%);
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(140px, 19vw, 240px);
    line-height: 1.05;
    color: rgba(215, 38, 61, .07);
    user-select: none;
    pointer-events: none;
    writing-mode: vertical-rl;
}
.dj-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--beni-deep);
}
.dj-hero__badge::before {
    content: "";
    height: 10px; width: 10px;
    border-radius: 50%;
    background: var(--beni);
    box-shadow: 0 0 0 3px var(--beni-wash);
}
.dj-hero__title {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.12;
    color: var(--ink);
    letter-spacing: -.01em;
    margin: 1.1rem 0 0;
    max-width: 15em;
}
.dj-hero__title em {
    font-style: normal;
    color: var(--beni);
    background-image: linear-gradient(transparent 78%, var(--beni-wash) 0);
}
.dj-hero__lead {
    font-size: 1.08rem;
    color: var(--ink-2);
    max-width: 38em;
    margin: 1.25rem 0 0;
    line-height: 1.7;
}
.dj-hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.dj-hero__marks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line-2);
    list-style: none;
    padding-left: 0;
}
.dj-hero__marks li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-2);
    letter-spacing: .02em;
}
.dj-hero__marks li::before { content: "—"; color: var(--beni); font-weight: 800; }

.dj-section { padding: 3.5rem 0; }
.dj-section--alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dj-section__kicker {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--beni-deep);
}
.dj-section__title {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--ink);
    margin: .5rem 0 0;
}

.dj-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.1rem;
    margin-top: 2.2rem;
}
.dj-feature {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem 1.4rem;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.dj-feature:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
    box-shadow: 0 14px 30px -18px rgba(27, 24, 21, .3);
}
.dj-feature__num {
    font-family: var(--serif);
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--beni);
    line-height: 1;
}
.dj-feature__title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--ink);
    margin: .8rem 0 .4rem;
}
.dj-feature__text { font-size: .93rem; color: var(--ink-2); margin: 0; line-height: 1.65; }

.dj-steps {
    counter-reset: dj-step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.6rem 2rem;
    margin-top: 2.2rem;
    list-style: none;
    padding: 0;
}
.dj-step { counter-increment: dj-step; }
.dj-step::before {
    content: "0" counter(dj-step);
    display: block;
    font-family: var(--serif);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--paper);
    background: var(--ink);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: .9rem;
    box-shadow: 4px 4px 0 var(--beni-wash);
}
.dj-step__title { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 1.05rem; margin: 0 0 .35rem; }
.dj-step__text { font-size: .92rem; color: var(--ink-2); margin: 0; line-height: 1.6; }

.dj-cta {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    border-radius: 12px;
    padding: 3rem 2.4rem;
    margin: 3.5rem 0;
    text-align: center;
}
.dj-cta::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 38, 61, .35), rgba(215, 38, 61, 0) 70%);
    pointer-events: none;
}
.dj-cta__title {
    position: relative;
    font-family: var(--serif);
    font-weight: 800;
    color: var(--paper);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0 0 .6rem;
}
.dj-cta__text { position: relative; color: rgba(250, 247, 242, .75); margin: 0 0 1.6rem; }
.dj-cta .btn-brand { position: relative; }

/* ============ auth pages ============ */
.dj-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--paper);
}
.dj-auth__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem clamp(1.5rem, 6vw, 6rem);
}
.dj-auth__panel .kumite-brand { margin-bottom: 2.6rem; align-self: flex-start; }
.dj-auth__card { max-width: 460px; width: 100%; }
.dj-auth__title {
    font-family: var(--serif);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--ink);
    margin: 0 0 .4rem;
}
.dj-auth__sub { color: var(--ink-3); font-size: .95rem; margin: 0 0 1.8rem; }
.dj-auth__card form { margin-top: .4rem; }
.dj-auth__foot {
    margin-top: 1.8rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
    font-size: .92rem;
    color: var(--ink-3);
}
.dj-auth__foot a { font-weight: 700; }

.dj-auth__art {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dj-auth__enso {
    position: absolute;
    width: min(58vh, 520px);
    height: min(58vh, 520px);
    border-radius: 50%;
    background: var(--beni);
    opacity: .92;
    filter: blur(0);
}
.dj-auth__art::after {
    /* paper grain ring around the sun */
    content: "";
    position: absolute;
    width: min(68vh, 610px);
    height: min(68vh, 610px);
    border-radius: 50%;
    border: 1px solid rgba(250, 247, 242, .18);
}
.dj-auth__kanji {
    position: relative;
    font-family: var(--serif);
    font-weight: 800;
    color: var(--paper);
    font-size: clamp(70px, 9vw, 120px);
    writing-mode: vertical-rl;
    letter-spacing: .28em;
    text-shadow: 0 6px 30px rgba(27, 24, 21, .45);
    user-select: none;
}
.dj-auth__tagline {
    position: absolute;
    bottom: 2.2rem;
    left: 0; right: 0;
    text-align: center;
    color: rgba(250, 247, 242, .65);
    font-size: 12.5px;
    letter-spacing: .24em;
    text-transform: uppercase;
}

/* ============ account area (header + horizontal tabs, no sidebar) ============ */
.dj-account-head { padding: 1.6rem 0 0; }
.dj-account-head__kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--beni-deep);
}
.dj-account-head__title {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--ink);
    margin: .3rem 0 0;
}
.dj-account-tabs {
    display: flex;
    align-items: center;
    gap: .2rem;
    margin: 1.1rem 0 1.6rem;
    border-bottom: 1px solid var(--line-2);
    overflow-x: auto;
    scrollbar-width: none;
}
.dj-account-tabs::-webkit-scrollbar { display: none; }
.dj-account-tabs a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: .65rem .9rem;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .05em;
    color: var(--ink-2);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.dj-account-tabs a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.dj-account-tabs a.active { color: var(--ink); border-bottom-color: var(--beni); }
.dj-account-tabs a.dj-tab-hot { color: var(--beni); }
.dj-account-tabs a.dj-tab-end { margin-left: auto; color: var(--ink-3); }
.dj-account-tabs a.dj-tab-end:hover { color: var(--beni-deep); }

/* ============ dj-table — spaced "list row" tables ============ */
.dj-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .55rem;
}
.dj-table thead th {
    text-align: left;
    text-transform: uppercase;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--ink-3);
    padding: 0 .95rem .1rem;
    border: 0;
}
.dj-table tbody tr { background: var(--card); }
.dj-table tbody td {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: .8rem .95rem;
    vertical-align: middle;
    color: var(--ink-2);
    font-size: .93rem;
}
.dj-table tbody td:first-child {
    border-left: 3px solid var(--line-2);
    border-radius: 8px 0 0 8px;
}
.dj-table tbody td:last-child {
    border-right: 1px solid var(--line);
    border-radius: 0 8px 8px 0;
}
.dj-table tbody tr:hover td { border-top-color: var(--line-2); border-bottom-color: var(--line-2); }
.dj-table tbody tr:hover td:first-child { border-left-color: var(--beni); }
.dj-table tbody tr:hover td:last-child { border-right-color: var(--line-2); }
.dj-table .dj-strong { color: var(--ink); font-weight: 700; }
.dj-table td form { margin: 0; }

.dj-avatar {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--paper-2);
    border: 1px solid var(--line-2);
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
    flex: 0 0 auto;
}
.dj-name-cell { display: inline-flex; align-items: center; gap: .65rem; }
.dj-name-cell .flag { margin: 0; }

.btn-mini {
    padding: .32rem .75rem !important;
    font-size: 11px !important;
    letter-spacing: .08em;
}

/* ============ event cards (contests / results) ============ */
.dj-events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.1rem;
    margin-top: 1.4rem;
}
.dj-event {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.2rem 1.25rem;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.dj-event:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
    box-shadow: 0 16px 34px -20px rgba(27, 24, 21, .35);
}
.dj-event__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
}
.dj-event__cal {
    min-width: 66px;
    text-align: center;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.dj-event__cal-m {
    display: block;
    background: var(--beni);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .18rem .4rem;
}
.dj-event__cal-d {
    display: block;
    font-family: var(--serif);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
    padding: .3rem .45rem .05rem;
    line-height: 1.1;
}
.dj-event__cal-y {
    display: block;
    font-size: 10.5px;
    color: var(--ink-3);
    padding-bottom: .25rem;
}
.dj-event__country {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ink-3);
}
.dj-event__country img { height: 14px; border: 1px solid var(--line-2); }
.dj-event__title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.14rem;
    line-height: 1.35;
    color: var(--ink);
    margin: 0;
}
.dj-event__meta { font-size: 12.5px; color: var(--ink-3); }
.dj-event__meta b { color: var(--ink); font-weight: 700; }
.dj-event__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px dashed var(--line-2);
}
.dj-chip {
    display: inline-flex;
    align-items: center;
    padding: .3rem .72rem;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
    background: var(--paper);
    transition: color .15s, border-color .15s, background .15s;
}
.dj-chip:hover { border-color: var(--beni); color: var(--beni-deep); background: var(--beni-wash); }

.dj-page-head { padding: 1.6rem 0 .4rem; }
.dj-page-head__kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--beni-deep);
}
.dj-page-head__title {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--ink);
    margin: .3rem 0 0;
}

.dj-page-head__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .9rem;
}

/* ============ fight cards (live results) ============ */
.dj-fightlist { display: flex; flex-direction: column; gap: .8rem; }
.dj-fight {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .95rem 1.1rem;
    transition: border-color .15s, box-shadow .15s;
}
.dj-fight:hover { border-color: var(--line-2); }
.dj-fight--live {
    border-color: rgba(215, 38, 61, .5);
    box-shadow: 0 0 0 3px var(--beni-wash);
}
.dj-fight__badge {
    position: absolute;
    top: -10px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--beni);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    border-radius: 999px;
    padding: .22rem .62rem;
}
.dj-fight__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: dj-pulse 1.6s ease-in-out infinite;
}
@keyframes dj-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .dj-fight__badge::before { animation: none; } }
.dj-fight__no {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    align-self: stretch;
    padding: .2rem .6rem .2rem 0;
    border-right: 1px solid var(--line);
}
.dj-fight__no b {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
}
.dj-fight__no small {
    font-size: 10px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    white-space: nowrap;
}
.dj-fight__photo {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    flex: 0 0 auto;
    background: var(--paper-2);
}
.dj-fight__main { flex: 1 1 auto; min-width: 0; }
.dj-fight__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: .9rem;
    align-items: center;
}
.dj-fight__side { min-width: 0; }
.dj-fight__side--p2 { text-align: right; }
.dj-fight__pts { line-height: 1; margin-bottom: .3rem; }
.dj-fight__pts:empty { display: none; }
.dj-fight__name {
    display: block;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.02rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dj-fight__tag {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .12em;
    padding: .14rem .42rem;
    border-radius: 4px;
    vertical-align: middle;
    margin: -2px .45rem 0 0;
}
.dj-fight__side--p2 .dj-fight__tag { margin: -2px 0 0 .45rem; }
.dj-fight__tag--aka { background: var(--beni); color: #fff; }
.dj-fight__tag--shiro { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.dj-fight .flag-pnames {
    height: 14px;
    border: 1px solid var(--line-2);
    margin: -2px .4rem 0 0;
    vertical-align: middle;
}
.dj-fight__side--p2 .flag-pnames { margin: -2px 0 0 .4rem; }
.dj-fight__score {
    font-family: var(--serif);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: 1.5rem;
    color: var(--ink);
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .15rem .8rem;
    white-space: nowrap;
    line-height: 1.5;
}
.dj-fight .points-btns {
    display: inline-block;
    padding: .14rem .42rem !important;
    margin: 0 .18rem .2rem 0 !important;
    border-radius: 4px;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .04em;
    line-height: 1.2;
    opacity: 1;
}
.dj-fight__side--p2 .points-btns { margin: 0 0 .2rem .18rem !important; }
.dj-fight .btn-success.points-btns {
    background: var(--ok-wash);
    border: 1px solid rgba(47, 125, 79, .35);
    color: var(--ok);
}
.dj-fight .btn-danger.points-btns {
    background: var(--beni-wash);
    border: 1px solid rgba(215, 38, 61, .35);
    color: var(--beni-deep);
}
@media (max-width: 1199.98px) {
    .dj-fight__photo { display: none; }
}
@media (max-width: 767.98px) {
    .dj-fight { flex-wrap: wrap; gap: .6rem; }
    .dj-fight__no {
        flex-direction: row;
        gap: .5rem;
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 .45rem;
    }
    .dj-fight__row { grid-template-columns: 1fr; gap: .5rem; }
    .dj-fight__side--p2 { text-align: left; }
    .dj-fight__side--p2 .dj-fight__tag { margin: -2px .45rem 0 0; }
    .dj-fight__side--p2 .flag-pnames { margin: -2px .4rem 0 0; }
    .dj-fight__score { justify-self: start; font-size: 1.2rem; }
}

/* ============ sectioned settings forms ============ */
.dj-form-section {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 1.2rem 2.4rem;
    padding: 1.5rem 0;
}
.dj-form-section + .dj-form-section { border-top: 1px solid var(--line); }
.dj-form-section:first-child { padding-top: .4rem; }
.dj-form-section__title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0 0 .3rem;
}
.dj-form-section__hint { font-size: .85rem; color: var(--ink-3); margin: 0; }
.dj-form-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .6rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
}

@media (max-width: 991.98px) {
    .dj-auth { grid-template-columns: 1fr; }
    .dj-auth__art { display: none; }
    .dj-hero { padding: 3.5rem 0 3rem; }
    .dj-hero__kanji { opacity: .55; }
}
@media (max-width: 767.98px) {
    .dj-form-section { grid-template-columns: 1fr; gap: .9rem; }
}

/* account tabs → wrapped pill buttons on small screens (all pages visible, no hidden scroll) */
@media (max-width: 991.98px) {
    .dj-account-tabs {
        flex-wrap: wrap;
        gap: .45rem;
        border-bottom: 0;
        overflow: visible;
        margin: 1rem 0 1.4rem;
    }
    .dj-account-tabs a {
        border: 1px solid var(--line-2);
        border-radius: 999px;
        background: var(--card);
        padding: .45rem .9rem;
        font-size: 12.5px;
        margin-bottom: 0;
    }
    .dj-account-tabs a:hover { border-color: var(--ink-3); color: var(--ink); }
    .dj-account-tabs a.active {
        background: var(--ink);
        border-color: var(--ink);
        color: var(--paper);
    }
    .dj-account-tabs a.dj-tab-hot { border-color: rgba(215, 38, 61, .45); }
    .dj-account-tabs a.dj-tab-end { margin-left: 0; color: var(--ink-3); }
}

/* page content breathing room */
main.container { padding-top: 1.25rem; padding-bottom: 2.5rem; }

/* ============ legal (GDPR): pages, consent checkbox, cookie notice ============ */
.dj-check { display: flex; gap: .6rem; align-items: flex-start; }
.dj-check input[type=checkbox] { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--beni); cursor: pointer; }
.dj-check label { font-size: 14px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.dj-check label a { text-decoration: underline; text-underline-offset: 2px; }

.dj-legal { margin-bottom: 2.5rem; }
.dj-legal__nav { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .15rem; padding: .9rem 0; border-top: 3px solid var(--beni); }
.dj-legal__nav-title { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); padding: .2rem .75rem .6rem; }
.dj-legal__nav a { padding: .45rem .75rem; border-radius: 6px; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.dj-legal__nav a:hover { background: var(--paper-2); color: var(--ink); }
.dj-legal__nav a.active { background: var(--beni-wash); color: var(--beni-deep); font-weight: 700; }

.dj-legal__meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.25rem; }
.dj-legal__body { font-size: 15px; line-height: 1.7; }
.dj-legal__body h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.dj-legal__body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: .5rem; }
.dj-legal__body h3 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.dj-legal__body p, .dj-legal__body li { color: var(--ink-2); }
.dj-legal__body ul, .dj-legal__body ol { padding-left: 1.3rem; }
.dj-legal__body li + li { margin-top: .3rem; }
.dj-legal__body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: .75rem 0 1.25rem; }
.dj-legal__body th, .dj-legal__body td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.dj-legal__body th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.dj-legal__box { background: var(--paper-2); border-left: 3px solid var(--beni); padding: .9rem 1.1rem; border-radius: 0 6px 6px 0; margin: 1rem 0; }
.dj-legal__box p:last-child { margin-bottom: 0; }

.dj-legal__list { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.dj-legal__list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-weight: 600; color: var(--ink); }

.dj-cookie {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1050;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    max-width: 760px; margin: 0 auto; padding: .9rem 1.1rem;
    background: var(--ink); color: #f3eee4; border-radius: 8px;
    box-shadow: 0 12px 30px rgba(27, 24, 21, .25); font-size: 13.5px;
}
.dj-cookie p { margin: 0; color: #f3eee4; flex: 1 1 320px; }
.dj-cookie a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 991.98px) {
    .dj-legal__nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .dj-legal__nav-title { display: none; }
}
@media print {
    .dj-cookie, .dj-legal__nav, header, footer { display: none !important; }
}
