.main_screen {
    max-width: 1200px;
    width: calc(100% - 350px);
    padding-top: 80px;
    padding-left: 300px;
    padding-right: 20px;
}

.main_screen .main_head {
    text-align: left;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.main_screen .main_body {
    max-width: 1024px;
    font-size: 1em;
    line-height: 150%;
    margin-bottom: 32px;
}

.main_screen .main_body .bold {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    margin: 20px 0;
}

.main_screen .main_body .info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #f1f1f1;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
}

body.dark .main_screen .main_body .info {
    background-color: #1f1f1f;
    border: 1px solid #3f3f3f;
}

.main_screen .main_body .info::before {
    content: "i";
    display: inline-block;
    height: 100%;
    margin-left: 10px;
    margin-right: 20px;
}

.main_screen .main_body .desc {
    background-color: #e1e1e1;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #c1c1c1;
    border-radius: 10px;
}

body.dark .main_screen .main_body .desc {
    background-color: #2f2f2f;
    border: 1px solid #4f4f4f;
}

.main_screen .main_body .image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main_screen .main_body .image img {
    max-width: 100%;
    max-height: 100%;
}

.main_screen .main_body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
    color: inherit;
}

.main_screen .main_body table tr {
    background-color: transparent;
    transition: background-color 0.3s ease-out;
}

.main_screen .main_body table td, .main_screen .main_body table th {
    padding: 10px;
}

.main_screen .main_body table thead td, .main_screen .main_body table thead th {
    border-bottom: 1px solid #919191;
}

.main_screen .main_body table tbody tr:nth-last-child(n+2) td, .main_screen .main_body table tbody tr:nth-last-child(n+2) th {
    border-bottom: 1px solid #c1c1c1;
}

.main_screen .main_body table td:nth-child(n+2), .main_screen .main_body table th:nth-child(n+2) {
    border-left: 1px solid #c1c1c1;
}

body.dark .main_screen .main_body table thead td, body.dark .main_screen .main_body table thead th {
    border-bottom: 1px solid #8f8f8f;
}

body.dark .main_screen .main_body table tbody tr:nth-last-child(n+2) td, body.dark .main_screen .main_body table tbody tr:nth-last-child(n+2) th {
    border-bottom: 1px solid #4f4f4f;
}

body.dark .main_screen .main_body table td:nth-child(n+2), body.dark .main_screen .main_body table th:nth-child(n+2) {
    border-left: 1px solid #4f4f4f;
}

.main_screen .main_body .table.fixed {
    height: 70vh;
    overflow-y: scroll;
}

.main_screen .main_body .table.hover tbody tr:hover {
    background-color: #d1d1d1;
}

body.dark .main_screen .main_body .table.hover tbody tr:hover {
    background-color: #3f3f3f;
}

.main_screen .main_body .table.pointer tr th {
    cursor: pointer;
    user-select: none;
}

.main_screen .main_body .table.fixed thead tr:first-child {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f1f1f1;
}

body.dark .main_screen .main_body .table.fixed thead tr:first-child {
    background-color: #1f1f1f;
}

body.dark .main_screen .main_body .table.nowrap thead tr:first-child {
    text-wrap: nowrap;
}

.main_screen .main_body .table th.asc:after {
    content: "↑";
    position: absolute;
    transform: translate(2px, 0px);
}

.main_screen .main_body .table th.dsc:after {
    content: "↓";
    position: absolute;
    transform: translate(2px, 0px);
}

.main_screen .main_body hr {
    border: none;
    height: 1px;
    background-color: #e1e1e1;
}

body.dark .main_screen .main_body hr {
    background-color: #2f2f2f;
}

.main_screen .main_body .grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 16px;
    grid-row-gap: 16px;
}

.main_screen .main_body .grid .grid_child {
    padding: 8px;
    border: 1px solid #8f8f8f;
    border-radius: 10px;
    text-align: center;
}

.main_screen .main_body .grid .grid_child img {
    width: auto;
    height: 120px;
    object-fit: none;
    max-width: 100%;
}

.main_screen .main_body .grid .grid_child img.contain {
    object-fit: contain;
}

/* 버튼 스타일 */
.main_screen .main_body button {
    background-color: #d1d1d1;
    color: #1f1f1f;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-size: 0.85em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    transition: background-color 0.3s ease;
}

/* 마우스를 올렸을 때 버튼 효과 */
.main_screen .main_body button:hover {
    background-color: #b1b1b1; /* 마우스 오버 시 */
}

/* 마우스를 클릭했을 때 버튼 효과 */
.main_screen .main_body button:active {
    background-color: #d1d1d1; /* 마우스 오버 시 */
}

/* 다크모드 버튼 스타일 */
body.dark .main_screen .main_body button {
    background-color: #3f3f3f;
    color: #f1f1f1;
}

/* 다크모드 마우스를 올렸을 때 버튼 효과 */
body.dark .main_screen .main_body button:hover {
    background-color: #5f5f5f; /* 마우스 오버 시 */
}

/* 다크모드 마우스를 클릭했을 때 버튼 효과 */
body.dark .main_screen .main_body button:active {
    background-color: #3f3f3f; /* 마우스 오버 시 */
}

.main_screen .main_body .video {
    width: 100%;
    text-align: center;
}

.main_screen .main_body .video iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

span.text_legend {
    background: linear-gradient(#eeaa88 0%, #cc22ff 33%, #22ccff 66%, #ccff22 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

span.text_hero {
    background: linear-gradient(gold 0%, #aa6600 50%, gold 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

span.text_rare {
    background: linear-gradient(silver 0%, gray 50%, silver 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

span.text_common {
    background: linear-gradient(brown 0%, darkred 50% , brown 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

@media (max-width: 1024px) {
    .main_screen {
        width: calc(100% - 40px);
        padding-top: 80px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .main_screen .main_head {
        text-align: center;
        font-size: 2em;
    }
}

/* 좁은 화면2 (768px 이하) */
@media (max-width: 768px) {
    .main_screen .main_body {
        flex-direction: column;
    }

    .main_screen .main_body .bold {
        margin: 15px 0;
    }

    .main_screen .main_body .info {
        font-size: 0.8em;
        padding: 5px;
    }

    .main_screen .main_body .info::before {
        margin-left: 5px;
        margin-right: 10px;
    }

    .main_screen .main_body .desc {
        font-size: 0.8em;
        padding: 10px;
    }

    .main_screen .main_body .table {
        font-size: 0.8em;
    }

    .main_screen .main_body .grid {
        grid-template-columns: 1fr 1fr;
    }

    .main_screen .main_body .stats {
        display: block;
        margin-top: 1em;
        float: none;
    }
}

/* 모바일 화면 (480px 이하) */
@media (max-width: 480px) {
    .main_screen .main_head {
        text-align: center;
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .main_screen .main_body {
        margin-bottom: 20px;
    }

    .main_screen .main_body .bold {
        margin: 10px 0;
    }

    .main_screen .main_body .table {
        overflow-x: auto;
        scrollbar-gutter: static;
    }

    .main_screen .main_body table {
        min-width: 420px;
    }

    .main_screen .main_body .table.fixed {
        height: 65vh;
    }
}