@import url('https://fonts.googleapis.com/css2?family=Hanuman:wght@500;700&family=Inter&display=swap');

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(90deg, rgb(48, 171, 247) 0%, rgb(76, 88, 142) 100%);
    color: #000000;
    --app-outline-color: #000000;
}

.bounty-creator-page {
    min-height: 100vh;
    background: linear-gradient(-90deg, #30ABF7 100%, #4C588E 100%);
}

.creator-shell {
    min-height: 100vh;
    padding: 125px 51px 40px;
    box-sizing: border-box;
}

.creator-card {
    width: 1338px;
    max-width: 100%;
    min-height: 1148px;
    background: #6FA5D4;
    border: 3px solid #000000;
    box-sizing: border-box;
    padding: 60px 24px 24px;
    position: relative;
    overflow: hidden;
}

.creator-card h1 {
    margin: 0;
    text-align: center;
    font-family: 'Hanuman', serif;
    font-size: 40px;
    font-weight: 800;
    color: #000000;
}

.creator-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 40px;
    padding: 0 24px 0 24px;
}

.creator-field {
    width: 100%;
    min-height: 109px;
    background: #82C1FF;
    border: 5px solid #000000;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 10px 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

.creator-field.creator-row {
    min-height: 97px;
    flex-direction: row;
    gap: 24px;
    padding: 16px 24px;
}

.creator-inline {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.creator-field label {
    font-family: 'Hanuman', serif;
    font-size: 24px;
    font-weight: 600;
    color: #000000;
}

.creator-field input,
.creator-field select {
    width: 100%;
    border: 0;
    background: transparent;
    font-family: 'Hanuman', serif;
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    outline: none;
}

.creator-field select {
    appearance: none;
    background: #a6d5ff;
    border: 1px solid #000000;
    padding: 6px 10px;
    border-radius: 8px;
}

.creator-submit {
    width: 100%;
    height: 97px;
    margin-top: 24px;
    border: 5px solid #000000;
    border-radius: 10px;
    background: #82C1FF;
    font-family: 'Hanuman', serif;
    font-size: 40px;
    font-weight: 800;
    color: #000000;
    cursor: pointer;
}

.creator-message {
    margin: 12px 24px 0;
    font-family: 'Hanuman', serif;
    font-size: 20px;
    color: #000000;
}

.proof-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    font-family: 'Hanuman', serif;
    font-size: 16px;
    color: #000000;
}

.proof-form textarea,
.proof-form input {
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
}

.proof-form textarea {
    resize: vertical;
    min-height: 70px;
}

.submission-status {
    margin: 12px 0 0;
    font-family: 'Hanuman', serif;
    font-size: 16px;
    color: #0a7a1b;
}

.creator-field input[type="color"] {
    width: 56px;
    height: 42px;
    min-width: 56px;
    padding: 0;
    border: 2px solid #000000;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.bounty-message,
.bounty-empty {
    margin: 0 0 16px;
    font-family: 'Hanuman', serif;
    font-size: 24px;
    color: #000000;
}

.profile-page {
    min-height: 100vh;
    background: linear-gradient(90deg, rgb(48, 171, 247) 0%, rgb(76, 88, 142) 100%);
}

.profile-shell {
    position: relative;
    min-height: calc(100vh - 80px);
    padding: 126px 110px 60px;
    box-sizing: border-box;
}

.profile-avatar {
    width: 225px;
    height: 225px;
    border: 3px solid #000000;
    background: #d9d9d9;
    position: absolute;
    left: 110px;
    top: 126px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-badges-panel {
    position: absolute;
    left: 380px;
    top: 128px;
    width: 260px;
}

.profile-badges-panel .profile-card {
    width: 100%;
}

.profile-info-stack {
    position: absolute;
    left: 655px;
    top: 128px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 900px) {
    .profile-shell {
        position: static;
        min-height: auto;
        padding: 90px 16px 40px;
    }

    .profile-avatar {
        position: static;
        margin: 0 auto;
        left: auto;
        top: auto;
        width: 180px;
        height: 180px;
        border: 3px solid #000000;
    }

    .profile-badges-panel,
    .profile-info-stack,
    .leaderboard-row,
    .profile-outlines-panel,
    .profile-history-panel {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 760px;
        margin: 20px auto 0;
        box-sizing: border-box;
    }

    .profile-badges-panel {
        margin-top: 18px;
    }

    .profile-badges-panel .profile-card,
    .profile-info-stack .profile-card,
    .profile-outlines-panel,
    .profile-history-panel,
    .leaderboard-row {
        width: 100%;
        max-width: none;
    }

    .profile-badges-panel .profile-card,
    .profile-info-stack .profile-card,
    .profile-outlines-panel,
    .profile-history-panel,
    .leaderboard-row {
        margin: 0;
    }

    .profile-info-stack {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .profile-card {
        width: 100%;
        min-height: auto;
        padding-left: 20px;
        font-size: 28px;
        align-items: center;
        justify-content: center;
    }

    .profile-badges-block {
        padding: 14px 16px;
    }

    .profile-badges-header {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .profile-badge-pill {
        font-size: 14px;
        padding: 6px 12px;
    }

    .avatar-form label,
    .avatar-form input,
    .avatar-form button,
    .avatar-upload-message {
        font-size: 18px;
    }

    .avatar-form {
        padding: 10px 20px 12px 20px;
    }

    .leaderboard-row,
    .profile-outlines-panel,
    .profile-history-panel {
        box-sizing: border-box;
        padding: 20px;
        background: #6FA5D4;
        border: 2px solid #000000;
        border-radius: 10px;
        color: #ffffff;
    }

    .leaderboard-row {
        width: 100%;
        height: auto;
        font-size: 28px;
        padding-left: 20px;
    }

    .profile-outlines-panel {
        width: 100%;
    }

    .profile-history-panel {
        width: 100%;
    }
}

.profile-card {
    width: 414px;
    min-height: 50px;
    background: #6FA5D4;
    color: #ffffff;
    font-family: 'Hanuman', serif;
    font-size: 32px;
    font-weight: 700;
    padding-left: 28px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border: 2px solid #000000;
}

.profile-badges-block {
    flex-direction: column;
    align-items: center;
    padding: 16px 18px;
    min-height: 50px;
}

.profile-badges-header {
    width: 100%;
    text-align: center;
    font-size: 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.profile-badges-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}

.profile-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 8px 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.profile-badge-empty {
    opacity: 0.78;
    border-color: rgba(255, 255, 255, 0.2);
}

.avatar-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 28px 12px 28px;
    width: 100%;
    box-sizing: border-box;
}

.avatar-form label,
.avatar-form input,
.avatar-form button,
.avatar-upload-message {
    font-family: 'Hanuman', serif;
    font-size: 20px;
    color: #ffffff;
}

.avatar-form input {
    width: 100%;
    box-sizing: border-box;
}

.avatar-form button {
    width: fit-content;
    padding: 8px 14px;
    border: 2px solid #000000;
    border-radius: 8px;
    background: #8fabff;
    color: #000000;
    cursor: pointer;
}

.avatar-upload-message {
    margin: 0;
    font-size: 16px;
}

.leaderboard-row {
    position: absolute;
    left: 110px;
    top: 487px;
    width: 959px;
    height: 50px;
    background: #6FA5D4;
    color: #ffffff;
    font-family: 'Hanuman', serif;
    font-size: 36px;
    font-weight: 700;
    padding-left: 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border: 2px solid #000000;
}

.profile-outlines-panel {
    position: absolute;
    left: 110px;
    top: 560px;
    width: 959px;
    height: 422px;
    background: #6FA5D4;
    border: 2px solid #000000;
    box-sizing: border-box;
    padding: 24px 24px 24px 24px;
}

.profile-outlines-panel h2 {
    margin: 0 0 24px;
    color: #ffffff;
    font-family: 'Hanuman', serif;
    font-size: 36px;
    font-weight: 700;
}

.profile-history-panel {
    position: absolute;
    left: 110px;
    top: 1010px;
    width: 959px;
    min-height: 260px;
    background: #6FA5D4;
    border: 2px solid #000000;
    box-sizing: border-box;
    padding: 24px 24px 28px;
}

.profile-history-panel h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-family: 'Hanuman', serif;
    font-size: 36px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .leaderboard-row,
    .profile-outlines-panel,
    .profile-history-panel {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 760px !important;
        margin: 20px auto 0 !important;
        box-sizing: border-box !important;
    }

    .leaderboard-row {
        height: auto !important;
        padding-left: 20px !important;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
        font-size: 28px !important;
    }

    .profile-outlines-panel,
    .profile-history-panel {
        height: auto !important;
        padding: 20px !important;
        border-radius: 10px;
    }

    .profile-outlines-panel h2,
    .profile-history-panel h2 {
        font-size: 28px !important;
    }
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #82C1FF;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Hanuman', serif;
    font-size: 20px;
    color: #000000;
}

.history-item strong {
    display: block;
    font-size: 22px;
}

.history-item span {
    display: block;
    margin-top: 4px;
    font-size: 16px;
}

.history-status {
    white-space: nowrap;
    font-weight: 700;
    text-transform: uppercase;
}

.history-status.approved {
    color: #0a7a1b;
}

.history-status.rejected {
    color: #b40000;
}

.history-empty {
    margin: 0;
    font-family: 'Hanuman', serif;
    font-size: 20px;
    color: #ffffff;
}

.outline-color-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.outline-option {
    width: 36px;
    height: 36px;
    border: 3px solid #000000;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.outline-option.active {
    box-shadow: 0 0 0 3px #ffffff;
    transform: scale(1.05);
}

.checker-page {
    min-height: 100vh;
    background: linear-gradient(-90deg, #30ABF7 99.99%, #4C588E 100%);
    padding: 0 0 48px;
    box-sizing: border-box;
}

.checker-shell {
    max-width: 1240px;
    margin: 24px auto 0;
    background: #6FA5D4;
    border: 3px solid #000000;
    box-sizing: border-box;
    padding: 24px 32px 36px;
}

.checker-shell h1 {
    margin: 0 0 12px;
    font-family: 'Hanuman', serif;
    font-size: 42px;
    color: #000000;
}

.checker-message {
    margin: 0 0 18px;
    font-family: 'Hanuman', serif;
    font-size: 18px;
    color: #000000;
}

.checker-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checker-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: start;
    background: #52A2E7;
    border: 3px solid #000000;
    border-radius: 12px;
    padding: 20px 24px;
}

.checker-card h2 {
    margin: 0 0 8px;
    font-family: 'Hanuman', serif;
    font-size: 28px;
    color: #000000;
}

.checker-card p,
.checker-card li {
    margin: 0 0 8px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    color: #000000;
}

.checker-status {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border: 2px solid #000000;
    border-radius: 999px;
    font-family: 'Hanuman', serif;
    font-size: 14px;
    background: #ffffff;
}

.checker-proof-box {
    border: 2px solid #000000;
    background: #6FA5D4;
    padding: 12px;
    min-height: 140px;
}

.checker-proof-box img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border: 2px solid #000000;
}

.checker-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.checker-actions form {
    display: inline-block;
}

.checker-button {
    border: 2px solid #000000;
    border-radius: 999px;
    padding: 8px 14px;
    font-family: 'Hanuman', serif;
    font-size: 16px;
    cursor: pointer;
    background: #ffffff;
    color: #000000;
}

.checker-button.approve {
    background: #21B200;
    color: #000000;
}

.checker-button.reject {
    background: #B40000;
    color: #ffffff;
}

.rules-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(-90deg, #30ABF7 99.99%, #4C588E 100%);
}

.rules-box {
    width: 1184px;
    height: 508px;
    max-width: 100%;
    border: 5px solid #000000;
    border-radius: 10px;
    background: #6FA5D4;
    overflow: hidden;
    box-sizing: border-box;
    padding: 30px;
    position: relative;
}

.rules-box h1 {
    margin: 0 auto;
    width: min(139px, 100%);
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    line-height: 1.2;
    text-align: center;
    color: #000000;
}

.rules-text {
    margin: 30px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    line-height: 1.4;
    color: #000000;
    word-break: break-word;
    max-width: 1000px;
}

.next-button {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 166px;
    height: 70px;
    border: 5px solid #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: #6FA5D4;
}

.next-button:hover {
    background: #5f93bf;
}

@media (max-width: 1024px) {
    .rules-box {
        width: min(90vw, 700px);
        height: 560px;
        padding: 25px;
    }

    .rules-box h1 {
        font-size: 36px;
    }

    .rules-text {
        font-size: 22px;
    }

    .next-button {
        width: 130px;
        height: 55px;
        font-size: 18px;
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 640px) {
    .rules-box {
        width: 235px;
        height: 660px;
        margin-top: 92px;
        padding: 0;
    }

    .rules-box h1 {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 17px;
        margin: 0;
        width: 139px;
        font-size: 20px;
    }

    .rules-text {
        position: absolute;
        top: 69px;
        left: 15px;
        width: 196px;
        margin: 0;
        font-size: 20px;
        line-height: 1.4;
    }

    .next-button {
        position: absolute;
        left: 69px;
        top: 609px;
        width: 87px;
        height: 37px;
        font-size: 20px;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
    }
}

.bounty-page {
    min-height: 100vh;
    background: linear-gradient(90deg, rgb(48, 171, 247) 0%, rgb(76, 88, 142) 100%);
}

.topbar {
    height: 80px;
    width: 100%;
    background: linear-gradient(180deg, rgba(45, 112, 255, 0.66) 0%, rgba(44, 108, 247, 0.98) 50%, #1B4399 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 16px;
    box-sizing: border-box;
    position: relative;
}

@media (max-width: 820px) {
    .topbar {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        height: auto;
        padding: 12px 16px;
        gap: 12px;
    }

    .topnav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0;
    }

    .topnav a {
        font-size: 16px;
        padding: 6px 10px;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 12px 12px;
    }

    .topnav a {
        font-size: 14px;
        padding: 6px 8px;
    }
}

.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--app-outline-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-mark:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

.login-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(90deg, #30abf7 0%, #4c588e 100%);
}

.login-card {
    width: min(500px, 100%);
    background: linear-gradient(207deg, rgb(124, 181, 228) 0%, rgb(109, 114, 180) 100%);
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 34px 32px 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.login-card h1 {
    margin: 0 0 24px;
    text-align: center;
    font-size: 32px;
    color: #ffffff;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-card label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    border: 2px solid #000000;
    border-radius: 19px;
    background: #d9d9d9;
    color: #ffffff;
    font-size: 20px;
    padding: 0 16px;
}

.login-card input::placeholder {
    color: #ffffff;
}

.login-button {
    width: 100%;
    height: 76px;
    border: none;
    border-radius: 17px;
    background: #8fabff;
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.login-link {
    margin-top: 16px;
    text-align: center;
    color: #002fff;
    font-size: 20px;
}

.login-link a {
    color: #002fff;
    font-weight: 600;
}

.topnav {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-left: auto;
    padding-right: 8px;
}

.topnav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.leaderboard-page {
    min-height: 100vh;
    background: linear-gradient(-90deg, #30ABF7 99.99%, #4C588E 100%);
    color: #000000;
}

.guilds-page {
    min-height: 100vh;
    background: linear-gradient(-90deg, #30ABF7 99.99%, #4C588E 100%);
    color: #000000;
}

.guilds-shell {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 113px 24px 40px;
    box-sizing: border-box;
}

.guilds-card {
    width: min(1200px, 100%);
    background: #6FA5D4;
    border: 5px solid #000000;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 24px 28px 28px;
}

.guilds-card h1 {
    margin: 0 0 8px;
    font-family: 'Hanuman', serif;
    font-size: 48px;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
}

.guilds-card p {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 20px;
    color: #000000;
    line-height: 1.5;
}

.guilds-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    background: #6FA5D4;
    border: 5px solid #000000;
    border-radius: 10px;
    padding: 19px 28px;
}

.guilds-card-header > div:first-child {
    flex: 1 1 0;
    min-width: 0;
}

.guilds-user-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #82C1FF;
    border: 2px solid #000000;
    padding: 10px 18px;
    border-radius: 10px;
    font-family: 'Hanuman', serif;
    font-size: 18px;
    white-space: normal;
    word-break: break-word;
    min-width: 0;
    width: min(100%, 260px);
    max-width: 260px;
    flex: 0 1 auto;
}

.xp-ready {
    color: #0a7a1b;
}

.xp-blocked {
    color: #a51c1c;
}

.guilds-message {
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-family: 'Hanuman', serif;
    font-size: 18px;
}

.guilds-message.success {
    background: #b9f0c3;
}

.guilds-message.error {
    background: #f6c2c2;
}

.guilds-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
    gap: 20px;
    align-items: start;
}

.guilds-list-panel,
.guilds-detail-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guilds-list-panel h2,
.guild-create-card h3,
.guild-detail-card h3 {
    margin: 0;
    font-family: 'Hanuman', serif;
    font-size: 28px;
    color: #000000;
}

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

.guild-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #82C1FF;
    border: 5px solid #000000;
    border-radius: 10px;
    text-decoration: none;
    color: #000000;
    min-height: 96px;
    box-sizing: border-box;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}

.guild-list-item.active {
    background: #a6d5ff;
    box-shadow: inset 0 0 0 2px #000000, 0 3px 0 rgba(0, 0, 0, 0.15);
}

.guild-list-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guild-list-main strong {
    font-size: 20px;
}

.guild-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 16px;
}

.guild-detail-card,
.guild-create-card {
    background: #82C1FF;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 16px;
}

.guild-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.guild-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Hanuman', serif;
    font-size: 18px;
}

.guild-members-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.guild-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #a6d5ff;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 10px 12px;
}

.guild-member-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.guild-member-info strong {
    display: block;
    font-size: 18px;
}

.guild-member-info span {
    display: block;
    font-size: 14px;
}

.guild-member-xp {
    font-family: 'Hanuman', serif;
    font-size: 18px;
    font-weight: 700;
}

.guild-action-form,
.guild-create-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guild-create-toggle {
    display: block;
}

.guild-create-toggle summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 2px solid #000000;
    border-radius: 999px;
    background: linear-gradient(135deg, #8fabff 0%, #6ea2ff 100%);
    color: #000000;
    cursor: pointer;
    font-family: 'Hanuman', serif;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}

.guild-create-toggle[open] summary {
    margin-bottom: 10px;
}

.guild-create-locked {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
}

.guild-action-form button,
.guild-create-form button {
    width: fit-content;
    padding: 10px 18px;
    border: 2px solid #000000;
    border-radius: 999px;
    background: linear-gradient(135deg, #8fabff 0%, #6ea2ff 100%);
    color: #000000;
    cursor: pointer;
    font-family: 'Hanuman', serif;
    font-size: 18px;
    font-weight: 700;
    align-self: center;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}

.guild-create-form input,
.guild-create-form textarea {
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    background: #f5fbff;
}

.guild-create-form label {
    font-family: 'Hanuman', serif;
    font-size: 18px;
}

.guilds-empty,
.guilds-member-note {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
}


.leaderboard-main {
    width: min(760px, 100%);
    max-width: 760px;
    margin: 0 auto;
    padding: 113px 24px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leaderboard-banner,
.leaderboard {
    width: 100%;
    margin: 0 auto;
}

.leaderboard-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 146px;
    background: #6FA5D4;
    border: 5px solid #000000;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 19px 28px;
    overflow: hidden;
    margin-bottom: 20px;
}

.leaderboard-banner h1 {
    margin: 0;
    font-family: 'Hanuman', serif;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
}

.leaderboard-banner p {
    margin: 8px 0 0;
    font-family: 'Hanuman', serif;
    font-size: 24px;
    color: #000000;
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.leaderboard-card {
    background-color: #6FA5D4;
    min-height: 115px;
    width: 100%;
    border-radius: 10px;
    border: 5px solid black;
    overflow: hidden;
    font-family: 'Hanuman', sans-serif;
    font-weight: 500;
    font-size: 40px;
    color: black;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    box-sizing: border-box;
}

.leaderboard-medal {
    position: static;
    width: 99px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    flex-shrink: 0;
}

.leaderboard-name,
.leaderboard-xp {
    position: static;
    display: block;
    margin: 0;
    width: auto;
    min-width: 0;
    overflow-wrap: break-word;
}

.leaderboard-xp {
    flex: 0 0 auto;
}

.leaderboard-name {
    flex: 1 1 0;
}

.leaderboard-card.rank-4 .leaderboard-name,
.leaderboard-card.rank-5 .leaderboard-name,
.leaderboard-card.rank-4 .leaderboard-xp,
.leaderboard-card.rank-5 .leaderboard-xp {
    left: auto;
    top: auto;
}

.bounty-grid-wrap {
    padding: 92px 101px 40px;
}

.bounty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 335px));
    gap: 40px 40px;
    justify-content: center;
}

@media (max-width: 1024px) {
    .leaderboard-main {
        padding: 90px 20px 40px;
    }

    .leaderboard-banner {
        padding: 16px 20px;
        min-height: 130px;
    }

    .leaderboard-banner h1 {
        font-size: 28px;
    }

    .leaderboard-banner p {
        font-size: 18px;
    }

    .leaderboard-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        min-height: 115px;
        height: auto;
    }

    .leaderboard-medal {
        position: static;
        width: 76px;
        height: auto;
        margin-right: 16px;
    }

    .leaderboard-name,
    .leaderboard-xp {
        position: static;
        display: block;
        left: auto;
        top: auto;
        width: auto;
        margin: 0;
    }

    .leaderboard-card.rank-4 .leaderboard-name,
    .leaderboard-card.rank-5 .leaderboard-name,
    .leaderboard-card.rank-4 .leaderboard-xp,
    .leaderboard-card.rank-5 .leaderboard-xp {
        left: auto;
    }

    .leaderboard-card {
        font-size: 24px;
    }

    .guilds-shell {
        padding: 90px 20px 40px;
    }

    .guilds-card {
        padding: 20px;
    }

    .guilds-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .guilds-user-status {
        width: 100%;
    }

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

@media (max-width: 640px) {
    .leaderboard-main {
        padding: 80px 16px 28px;
    }

    .leaderboard-banner h1 {
        font-size: 24px;
    }

    .leaderboard-banner p {
        font-size: 16px;
    }

    .leaderboard-card {
        padding: 12px;
        gap: 12px;
    }

    .leaderboard-medal {
        width: 64px;
    }

    .leaderboard-name {
        font-size: 18px;
    }

    .leaderboard-xp {
        font-size: 16px;
    }

    .guilds-shell {
        padding: 70px 16px 24px;
    }

    .guilds-card {
        padding: 16px;
    }

    .guilds-card-header {
        padding: 16px;
    }

    .guilds-card h1 {
        font-size: 36px;
    }

    .guilds-card p {
        font-size: 18px;
    }

    .guilds-user-status {
        font-size: 16px;
    }

    .guild-list-item {
        padding: 12px;
        min-height: auto;
    }

    .guild-list-main strong {
        font-size: 18px;
    }

    .guilds-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .guilds-detail-panel {
        order: -1;
    }

    .guild-list-meta {
        font-size: 14px;
        align-items: flex-start;
    }

    .guild-detail-card,
    .guild-create-card {
        padding: 12px;
    }

    .bounty-grid-wrap {
        padding: 92px 16px 40px;
        overflow-x: auto;
    }

    .bounty-grid {
        grid-template-columns: repeat(auto-fit, 335px);
        justify-content: center;
    }
}

.bounty-card {
    width: 335px;
    height: 433px;
    background: #6FA5D4;
    border: 3px solid #000000;
    box-sizing: border-box;
    padding: 20px 24px 24px;
    position: relative;
    overflow: hidden;
}

.card-label {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.bounty-card h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 14px;
}

.card-details p {
    margin: 0;
}

.submit-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 28px;
    width: 209px;
    padding: 10px 12px;
    border: 3px solid #000000;
    border-radius: 20px;
    background: transparent;
    text-decoration: none;
    color: #000000;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

.bounty-detail-page {
    min-height: 100vh;
    background: linear-gradient(90deg, #30ABF7 0%, #4C588E 100%);
    padding-bottom: 40px;
}

.detail-shell {
    max-width: 1075px;
    margin: 105px auto 0;
    min-height: 892px;
    background: #6FA5D4;
    border: 3px solid #000000;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    padding: 20px 24px 36px;
}

.detail-shell h1 {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 64px;
    font-weight: 600;
    color: #000000;
    text-align: center;
}

.detail-shell h2 {
    margin: 8px 0 0;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #000000;
    text-align: center;
}

.detail-content {
    margin-top: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 36px;
    align-items: start;
}

.detail-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #000000;
}

.detail-evidence {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.detail-evidence-label {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #000000;
}

.detail-image-placeholder {
    width: 225px;
    height: 225px;
    border: 5px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9d9d9;
    overflow: hidden;
}

.detail-placeholder-image,
.detail-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.detail-file-input {
    display: none;
}

.detail-upload-button {
    width: 225px;
    height: 45px;
    border: 3px solid #000000;
    background: #E5E5E5;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
}

.detail-input-area {
    width: 451px;
    min-height: 213px;
    background: #52A2E7;
    border: 3px solid #000000;
    box-sizing: border-box;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-input-area label {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #000000;
}

.detail-input-area textarea {
    flex: 1;
    border: 2px solid #000000;
    padding: 8px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 18px;
    resize: vertical;
}

.detail-submit-button {
    display: inline-block;
    margin: 24px auto 0;
    padding: 10px 29px;
    background: #B5B5B5;
    border: 3px solid #000000;
    border-radius: 20px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
}

.detail-status {
    margin-top: 12px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.register-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(-90deg, #30ABF7 0%, #4C588E 100%);
}

.register-card {
    width: min(500px, 100%);
    background: linear-gradient(212.6deg, rgb(124, 181, 228) 0%, rgb(109, 114, 180) 100%);
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 34px 32px 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.register-card h1 {
    margin: 0 0 24px;
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.register-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.register-card label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.register-card input {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    border: 2px solid #000000;
    border-radius: 19px;
    background: #D9D9D9;
    color: #ffffff;
    font-size: 20px;
    padding: 0 16px;
}

.register-card input::placeholder {
    color: #ffffff;
}

.register-button {
    width: 100%;
    height: 76px;
    border: none;
    border-radius: 17px;
    background: #8FABFF;
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.register-link {
    margin-top: 16px;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
}

.register-link a {
    color: #ffffff;
    font-weight: 600;
}

.db-error {
    grid-column: 1 / -1;
    background: white;
    padding: 20px;
    border: 3px solid #000000;
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 680px;
    width: 100%;
}

h1 {
    margin-top: 0;
}

a {
    color: #0b6bb8;
    font-weight: 600;
}

ol {
    padding-left: 20px;
}
