:root {
    --bg: #100b20;
    --bg2: #1a1336;
    --panel: #201942aa;
    --panel-solid: #221a47;
    --panel2: #2c2258;
    --line: #372c64;
    --line2: #4d3f86;
    --text: #f7f4ff;
    --muted: #bbaee2;
    --faint: #897cb6;
    --purple: #b06bff;
    --purple-lo: #7c3aed;
    --purple-hi: #d6abff;
    --blue: #6d7bff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #8a4dd6 #110c22; }

::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track { background: #110c22; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c184ff, #7c3aed);
    border-radius: 20px;
    border: 3px solid #110c22;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #d6abff, #8a4dd6); }
::-webkit-scrollbar-corner { background: #110c22; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

input, select, textarea { user-select: text; -webkit-user-select: text; }

img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }

.bg-photo {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.7;
    filter: saturate(1.2) brightness(1.12);
    transform: scale(1.06);
    animation: bgfloat 28s ease-in-out infinite alternate;
}

@keyframes bgfloat {
    from { transform: scale(1.06) translateY(0); }
    to { transform: scale(1.12) translateY(-14px); }
}

.bg-veil {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(16, 11, 32, 0.5), rgba(16, 11, 32, 0.24) 45%, rgba(16, 11, 32, 0.66)),
        radial-gradient(110% 80% at 20% 0%, rgba(176, 107, 255, 0.26), transparent 60%);
    pointer-events: none;
}

.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(45% 40% at 8% -5%, rgba(176, 107, 255, 0.28), transparent 60%),
        radial-gradient(45% 38% at 95% 8%, rgba(109, 123, 255, 0.2), transparent 58%);
    pointer-events: none;
    animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-18px) scale(1.04); }
}

.layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 274px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 22px 22px;
    background: linear-gradient(180deg, rgba(26, 19, 54, 0.82), rgba(16, 11, 32, 0.88));
    backdrop-filter: blur(14px);
    border-right: 1px solid var(--line);
    overflow-y: auto;
}

.side-brand { display: block; text-align: center; text-decoration: none; }

.side-logo {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 8px 26px rgba(176, 107, 255, 0.6));
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
    animation: float 4.5s ease-in-out infinite;
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.side-brand:hover .side-logo { transform: scale(1.06) rotate(-2deg); }

.side-tag {
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--muted);
    margin-top: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.side-heading {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--faint);
    margin: 22px 6px 12px;
}

.side-nav { display: flex; flex-direction: column; gap: 5px; }

.snav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    font-size: 14.5px;
    border: 1px solid transparent;
    transition: all 0.18s cubic-bezier(.2,.8,.2,1);
}

.snav-ic { font-size: 18px; }
.snav-label { flex: 1; }
.snav-arrow { opacity: 0; font-size: 18px; font-weight: 900; transform: translateX(-4px); transition: all 0.18s ease; }

.snav:hover { background: var(--panel2); color: var(--text); transform: translateX(3px); }
.snav:hover .snav-arrow { opacity: 0.6; transform: translateX(0); }

.snav.active {
    color: #fff;
    background: linear-gradient(100deg, rgba(176, 107, 255, 0.28), rgba(124, 58, 237, 0.12));
    border-color: var(--purple);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.25);
}

.snav.active .snav-arrow { opacity: 1; transform: translateX(0); color: var(--purple-hi); }

.side-platforms { display: flex; flex-wrap: wrap; gap: 7px; }

.schip {
    text-decoration: none;
    color: var(--muted);
    background: var(--panel-solid);
    border: 1px solid var(--line);
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.16s ease;
}

.schip:hover { color: var(--text); border-color: var(--line2); transform: translateY(-2px); }
.schip.on { color: #fff; background: linear-gradient(180deg, var(--purple), var(--purple-lo)); border-color: transparent; box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4); }

.side-spacer { flex: 1; min-height: 24px; }

.side-auth { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }

.user-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--purple-hi);
    background: rgba(176, 107, 255, 0.12);
    border: 1px solid rgba(176, 107, 255, 0.4);
    padding: 9px 14px;
    border-radius: 11px;
}

.user-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ee68f; box-shadow: 0 0 10px #5ee68f; }

.logout-form { margin: 0; }

.add-btn {
    background: var(--panel-solid);
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    padding: 11px 18px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: transform 0.18s cubic-bezier(.2,.8,.2,1), border-color 0.18s ease, box-shadow 0.18s ease;
}

.add-btn:hover { transform: translateY(-2px); border-color: var(--purple); box-shadow: 0 10px 26px rgba(176, 107, 255, 0.22); }
.add-btn.full { width: 100%; }

.add-btn.solid {
    background: linear-gradient(135deg, var(--purple), var(--purple-lo));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.42);
}

.add-btn.solid:hover { box-shadow: 0 12px 30px rgba(124, 58, 237, 0.6); border-color: transparent; }
.add-btn.ghost { background: transparent; margin-top: 14px; }

.side-credits {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.cred-line { font-size: 11.5px; color: var(--faint); font-weight: 600; line-height: 1.5; }
.cred-line b { color: var(--purple-hi); font-weight: 800; }

.heart {
    color: #ff5b8a;
    display: inline-block;
    animation: beat 1.3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 91, 138, 0.7);
}

@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.35); } 30% { transform: scale(1); } 45% { transform: scale(1.25); } }

.content { padding: 46px 52px 64px; max-width: 1120px; }

.hero { margin-bottom: 30px; }

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--purple-hi);
    border: 1px solid rgba(176, 107, 255, 0.45);
    background: rgba(176, 107, 255, 0.08);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 12px var(--purple); animation: pulse 2s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
    font-size: clamp(48px, 7vw, 86px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.hero-title .grad {
    background: linear-gradient(120deg, #e6c9ff, #9d5cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 30px rgba(157, 92, 255, 0.5));
}

.hero-title .white { color: #fff; filter: drop-shadow(0 6px 28px rgba(255, 255, 255, 0.16)); }

.hero-sub { color: var(--muted); font-size: 16.5px; line-height: 1.6; margin-bottom: 26px; max-width: 580px; }

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 16px 30px;
    border: 1px solid var(--line2);
    border-radius: 18px;
    background: rgba(34, 26, 71, 0.55);
    backdrop-filter: blur(8px);
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; }
.stat-num { font-size: 26px; font-weight: 900; background: linear-gradient(180deg, #fff, var(--purple-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 10px; font-weight: 800; letter-spacing: 2px; color: var(--faint); }
.stat-div { width: 1px; height: 32px; background: var(--line2); }

.board-wrap { animation: rise 0.5s cubic-bezier(.2,.8,.2,1) both; }

.board-title {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.bt-icon { font-size: 22px; }

.bt-count {
    font-size: 13px;
    font-weight: 800;
    color: var(--purple-hi);
    background: rgba(176, 107, 255, 0.14);
    border: 1px solid rgba(176, 107, 255, 0.35);
    padding: 3px 11px;
    border-radius: 999px;
}

.board { display: flex; flex-direction: column; gap: 10px; }

.board-head {
    display: grid;
    grid-template-columns: 64px 1fr 110px 240px;
    align-items: center;
    padding: 4px 22px 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--faint);
}

.col-tiers, .col-info { text-align: right; }

.row {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr 110px 240px;
    align-items: center;
    padding: 12px 22px;
    background: linear-gradient(180deg, rgba(34, 26, 71, 0.86), rgba(26, 19, 54, 0.82));
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    animation: rise 0.5s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(var(--i) * 55ms);
    transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.row:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: 0 16px 42px rgba(0, 0, 0, 0.4); }

.row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(176, 107, 255, 0.12), transparent 42%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.row:hover::after { opacity: 1; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.accent { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--line2); }

.row.gold { border-color: rgba(255, 206, 58, 0.55); box-shadow: 0 0 0 1px rgba(255, 206, 58, 0.18), 0 14px 40px rgba(255, 176, 31, 0.12); }
.row.gold .accent { background: linear-gradient(180deg, #ffe27a, #ffae1f); box-shadow: 0 0 22px rgba(255, 176, 31, 0.6); }
.row.gold .rank-num { color: #ffce3a; text-shadow: 0 0 22px rgba(255, 176, 31, 0.55); }

.row.silver { border-color: rgba(214, 218, 240, 0.45); box-shadow: 0 0 0 1px rgba(214, 218, 240, 0.12), 0 14px 40px rgba(214, 218, 240, 0.08); }
.row.silver .accent { background: linear-gradient(180deg, #f3f4ff, #b6bbd8); box-shadow: 0 0 20px rgba(214, 218, 240, 0.5); }
.row.silver .rank-num { color: #e6e9f7; text-shadow: 0 0 20px rgba(214, 218, 240, 0.45); }

.row.bronze { border-color: rgba(230, 146, 76, 0.5); box-shadow: 0 0 0 1px rgba(230, 146, 76, 0.14), 0 14px 40px rgba(230, 146, 76, 0.1); }
.row.bronze .accent { background: linear-gradient(180deg, #f0a868, #c87038); box-shadow: 0 0 20px rgba(230, 146, 76, 0.55); }
.row.bronze .rank-num { color: #f0a86a; text-shadow: 0 0 20px rgba(230, 146, 76, 0.45); }

.rank { display: flex; align-items: center; }
.rank-num { font-size: 28px; font-weight: 900; font-style: italic; color: var(--faint); letter-spacing: -1px; }
.dot-sm { opacity: 0.5; }

.player { display: flex; align-items: center; gap: 16px; }

.avatar {
    width: 56px;
    height: 84px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.avatar::before {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 40px;
    height: 10px;
    background: radial-gradient(ellipse, rgba(176, 107, 255, 0.55), transparent 70%);
    border-radius: 50%;
}

.avatar img {
    height: 100%;
    width: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}

.row:hover .avatar img { transform: translateY(-4px) scale(1.07); }

.who { display: flex; flex-direction: column; gap: 4px; }
.name { font-weight: 800; font-size: 17px; letter-spacing: 0.2px; display: flex; align-items: center; }
.title { font-size: 12.5px; color: var(--faint); font-style: italic; }

.ret-tag {
    margin-left: 9px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffb38a;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.42);
    padding: 2px 7px;
    border-radius: 6px;
}

.info { justify-self: end; }

.region { display: inline-block; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 1px; padding: 5px 12px; border-radius: 8px; }

.region-AS { background: #6d7bff; box-shadow: 0 4px 14px rgba(109, 123, 255, 0.4); }
.region-NA { background: #22b87a; box-shadow: 0 4px 14px rgba(34, 184, 122, 0.3); }
.region-EU { background: #14b8c4; box-shadow: 0 4px 14px rgba(20, 184, 196, 0.3); }
.region-OCE { background: #b06bff; box-shadow: 0 4px 14px rgba(176, 107, 255, 0.4); }
.region-AU { background: #d6abff; color: #2a1745; box-shadow: 0 4px 14px rgba(214, 171, 255, 0.4); }
.region-SA { background: #f97316; box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3); }
.region-AF { background: #ef4444; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3); }

.tiers { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 56px;
    padding: 8px 4px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--panel-solid), #170f30);
    border: 1px solid var(--line);
    transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease;
}

.badge:hover { transform: translateY(-4px) scale(1.05); }
.badge-ic { font-size: 15px; filter: grayscale(0.15); }
.badge-tier { font-weight: 900; font-size: 16px; line-height: 1; }
.badge-kit { font-size: 8px; font-weight: 800; letter-spacing: 1px; color: var(--faint); }

.tier-Splus { border-color: rgba(255, 70, 70, 0.5); }
.tier-Splus .badge-tier { color: #ff6b6b; text-shadow: 0 0 16px rgba(255, 70, 70, 0.65); }
.tier-Splus:hover { box-shadow: 0 10px 24px rgba(255, 70, 70, 0.22); }
.tier-S { border-color: rgba(255, 120, 80, 0.45); }
.tier-S .badge-tier { color: #ff8a5c; text-shadow: 0 0 13px rgba(255, 120, 80, 0.55); }
.tier-Aplus { border-color: rgba(255, 169, 77, 0.4); }
.tier-Aplus .badge-tier { color: #ffb55d; }
.tier-A { border-color: rgba(255, 212, 59, 0.4); }
.tier-A .badge-tier { color: #ffdd5c; }
.tier-Bplus { border-color: rgba(169, 227, 75, 0.4); }
.tier-Bplus .badge-tier { color: #b6e85c; }
.tier-B { border-color: rgba(105, 219, 124, 0.4); }
.tier-B .badge-tier { color: #7ce68f; }
.tier-Cplus { border-color: rgba(56, 217, 169, 0.4); }
.tier-Cplus .badge-tier { color: #4ce6b8; }
.tier-C { border-color: rgba(77, 171, 247, 0.4); }
.tier-C .badge-tier { color: #5cb8ff; }
.tier-D { border-color: rgba(150, 158, 170, 0.4); }
.tier-D .badge-tier { color: #c0c8d4; }

.tools {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    opacity: 0;
    transform: translateX(6px);
    transition: all 0.2s ease;
}

.row:hover .tools { opacity: 1; transform: translateX(0); }

.tool {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--muted);
    width: 30px; height: 30px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.tool.edit:hover { color: var(--purple-hi); border-color: var(--purple); background: rgba(176, 107, 255, 0.14); }
.tool.del-x:hover { color: #ff6b6b; border-color: rgba(255, 70, 70, 0.5); background: rgba(255, 70, 70, 0.1); }

.del { position: static; }

.slider {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.96);
    width: 210px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(180deg, #2a1320, #1c0e18);
    border: 1px solid rgba(255, 70, 70, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 70, 70, 0.12);
    display: none;
    align-items: center;
    overflow: hidden;
    z-index: 6;
}

.del.open .slider { display: flex; animation: sliderIn 0.22s cubic-bezier(.2,.9,.3,1.2) forwards; }

@keyframes sliderIn { from { opacity: 0; transform: translateY(-50%) scale(0.9); } to { opacity: 1; transform: translateY(-50%) scale(1); } }

.slider-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0px;
    background: linear-gradient(90deg, rgba(255, 70, 70, 0.3), rgba(255, 70, 70, 0.55));
    transition: width 0.05s linear;
}

.slider-label {
    position: absolute;
    left: 0; right: 0;
    text-align: center;
    padding-left: 22px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffa3a3;
    pointer-events: none;
}

.slider-knob {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin: 2px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ff6b6b, #e23b3b);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
    box-shadow: 0 4px 12px rgba(226, 59, 59, 0.5);
    transition: box-shadow 0.15s ease;
}

.slider-knob.grabbing { cursor: grabbing; box-shadow: 0 6px 18px rgba(226, 59, 59, 0.7); }
.del.confirming .slider { border-color: #5ee68f; }
.del.confirming .slider-fill { background: linear-gradient(90deg, rgba(94, 230, 143, 0.45), rgba(94, 230, 143, 0.7)); }
.del.confirming .slider-knob { background: linear-gradient(180deg, #5ee68f, #34c66a); }

.row.removing {
    transition: max-height 0.42s cubic-bezier(.4,0,.2,1), opacity 0.3s ease,
                padding 0.42s ease, margin 0.42s ease, transform 0.42s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    pointer-events: none;
}

.empty {
    padding: 64px 20px;
    text-align: center;
    color: var(--muted);
    background: rgba(34, 26, 71, 0.5);
    border: 1px dashed var(--line2);
    border-radius: 16px;
}

.empty.hidden { display: none; }
.empty-ic { font-size: 40px; display: block; margin-bottom: 14px; opacity: 0.75; }
.empty p { font-size: 16px; font-weight: 600; }

.modal-back {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(8, 5, 16, 0.74);
    backdrop-filter: blur(7px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fade 0.2s ease;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal-back.show { display: flex; }

.modal {
    width: 100%;
    max-width: 470px;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--bg2), #120c26);
    border: 1px solid var(--line2);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(176, 107, 255, 0.14);
    animation: pop 0.28s cubic-bezier(.2,.9,.3,1.2);
}

.skin-preview {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--line2);
    border-radius: 14px;
    background: radial-gradient(80% 70% at 50% 20%, rgba(176, 107, 255, 0.14), rgba(18, 12, 38, 0.6));
}

.skin-preview.show { display: flex; animation: pop 0.3s cubic-bezier(.2,.9,.3,1.2); }
.skin-preview canvas { cursor: grab; touch-action: none; }
.skin-preview canvas:active { cursor: grabbing; }
.skin-preview-note { font-size: 11px; font-weight: 600; color: var(--muted); }

@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-top h2 { font-size: 21px; font-weight: 800; }
.modal-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }

.x { background: transparent; border: none; color: var(--muted); font-size: 18px; cursor: pointer; transition: color 0.15s ease; }
.x:hover { color: var(--text); }

.modal label, .login-card label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.5px; margin-bottom: 14px; }

.modal input:not([type]),
.modal input[type="text"],
.modal select,
.login-card input {
    display: block;
    width: 100%;
    margin-top: 6px;
    background: var(--panel-solid);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 11px 13px;
    border-radius: 11px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.modal input:focus, .modal select:focus, .login-card input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(176, 107, 255, 0.18); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.opt { color: var(--faint); font-weight: 600; text-transform: none; letter-spacing: 0; }

.field-note { display: block; margin-top: 7px; font-size: 11px; font-weight: 500; color: var(--faint); }

.modal input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 6px;
    background: var(--panel-solid);
    border: 1px dashed var(--line2);
    color: var(--muted);
    border-radius: 11px;
    font-size: 13px;
    font-family: inherit;
    padding: 9px;
    cursor: pointer;
    transition: border-color 0.18s ease;
}

.modal input[type="file"]:hover { border-color: var(--purple); }

.modal input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--purple), var(--purple-lo));
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 12px;
    padding: 7px 13px;
    border-radius: 8px;
    margin-right: 12px;
    cursor: pointer;
    font-family: inherit;
}

.check { display: flex; align-items: center; gap: 8px; color: var(--text); }
.check input { width: auto; margin: 0; }

.submit {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--purple-hi), var(--purple-lo));
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.18s ease;
}

.submit:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(124, 58, 237, 0.5); }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-shell { position: relative; z-index: 2; width: 100%; max-width: 440px; padding: 24px; text-align: center; }

.back-link { display: inline-block; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; margin-bottom: 22px; transition: color 0.15s ease, transform 0.15s ease; }
.back-link:hover { color: var(--purple-hi); transform: translateX(-3px); }

.login-card {
    background: linear-gradient(180deg, var(--bg2), #120c26);
    border: 1px solid var(--line2);
    border-radius: 22px;
    padding: 40px 32px 34px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(176, 107, 255, 0.14);
    animation: pop 0.4s cubic-bezier(.2,.9,.3,1.2);
}

.login-mark-img { height: 88px; width: auto; margin: 0 auto 18px; display: block; filter: drop-shadow(0 12px 34px rgba(124, 58, 237, 0.6)); animation: float 3.5s ease-in-out infinite; }

.login-kicker { font-size: 11px; font-weight: 800; letter-spacing: 3px; color: var(--purple-hi); }
.login-title { font-size: 32px; font-weight: 900; letter-spacing: -1px; margin: 8px 0 8px; }
.login-title .grad { background: linear-gradient(90deg, #e6c9ff, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

.login-card form { text-align: left; }
.login-card .submit { margin-top: 6px; }

.login-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ff9090;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 14px;
    border-radius: 11px;
    margin-bottom: 20px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

.login-foot { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: 1px; margin-top: 22px; }
.login-foot .heart { color: #ff5b8a; }

.mobile-bar { display: none; }

.mobile-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(16, 11, 32, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.hamburger {
    background: var(--panel-solid);
    border: 1px solid var(--line);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 19px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.hamburger:hover { border-color: var(--purple); color: var(--purple-hi); }
.mobile-logo { height: 34px; width: auto; filter: drop-shadow(0 4px 14px rgba(176, 107, 255, 0.5)); }
.mobile-tag { font-size: 10px; font-weight: 800; letter-spacing: 3px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line2); }

.side-backdrop { display: none; }

@media (max-width: 900px) {
    .mobile-bar { display: flex; }

    .layout { grid-template-columns: 1fr; z-index: auto; }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 290px;
        max-width: 86vw;
        height: 100vh;
        z-index: 70;
        display: block;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: 34px;
        border-right: 1px solid var(--line2);
        transform: translateX(-104%);
        transition: transform 0.34s cubic-bezier(.3,.9,.3,1);
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    }

    body.nav-open .sidebar { transform: translateX(0); }

    .side-spacer { display: none; }
    .side-auth { margin-top: 22px; }

    .side-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 65;
        background: rgba(6, 4, 14, 0.6);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body.nav-open .side-backdrop { opacity: 1; visibility: visible; }
    body.nav-open { overflow: hidden; }

    .content { padding: 26px 18px 60px; }
    .hero { margin-bottom: 24px; }
    .hero-title { font-size: clamp(40px, 13vw, 64px); }
    .hero-stats { gap: 14px; padding: 14px 16px; width: 100%; justify-content: space-between; }
    .stat { min-width: 0; flex: 1; }

    .board-head, .row { grid-template-columns: 40px 1fr auto; }
    .col-info, .info { display: none; }
    .title { display: none; }
    .board-head .col-tiers { display: none; }
    .row { padding: 10px 14px; }
    .avatar { width: 46px; height: 70px; }
    .name { font-size: 15px; }
    .rank-num { font-size: 23px; }
    .badge { width: 50px; padding: 7px 3px; }
    .tools { margin-left: 4px; }
    .slider { width: 180px; }
}

@media (max-width: 480px) {
    .hero-stats { flex-wrap: wrap; }
    .stat-div { display: none; }
    .stat { min-width: 28%; }
    .badge-kit { display: none; }
    .badge { width: 42px; }
    .tiers { gap: 5px; }
}
