.main_screen .char_head {
    background-color: #f1f1f1;
    font-size: 2.5em;
    height: 100px;
    line-height: 100px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 10px;
}

body.dark .main_screen .char_head {
    background-color: #1f1f1f;
}

.main_screen .char_head .char_class {
    width: 0.8em;
    height: 0.8em;
}

.main_screen .char_body {
    background-color: #e1e1e1;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
}

body.dark .main_screen .char_body {
    background-color: #2f2f2f;
}

.main_screen .char_body .photo_section {
    background-color: #d1d1d1;
    width: 58%;
    height: 600px;
    font-size: 2em;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .main_screen .char_body .photo_section {
    background-color: #3f3f3f;
}

.main_screen .char_body .photo_section .char_photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main_screen .stat_section {
    width: 40%;
}

.main_screen .stat_section .faction_list {
    display: flex;
    justify-content: space-between;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.main_screen .stat_section .faction_circle {
    width: 70px;
    height: 70px;
    background-color: #b1b1b1;
    border-radius: 50%;
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

body.dark .main_screen .stat_section .faction_circle {
    background-color: #5f5f5f;
}

.main_screen .stat_section .faction_circle .faction_icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main_screen .stat_section .stat_table table {
    width: 100%;
    height: 340px;
    table-layout: fixed;
    border-collapse: collapse;
    background-color: #e1e1e1;
    margin-bottom: 20px;
    border-spacing: 0;
}

body.dark .main_screen .stat_section .stat_table table {
    background-color: #2f2f2f;
}

.main_screen .stat_section .stat_table th, .main_screen .stat_section .stat_table td {
    background-color: #f1f1f1;
    border: 1px solid #1f1f1f;
    font-size: 1em;
    text-align: left;
    padding: 10px;
    white-space: nowrap;
}

body.dark .main_screen .stat_section .stat_table th, body.dark .main_screen .stat_section .stat_table td {
    background-color: #2f2f2f;
    border: 1px solid #f1f1f1;
}

.main_screen .stat_section .stat_table th {
    background-color: #d1d1d1;
    color: #1f1f1f;
}

body.dark .main_screen .stat_section .stat_table th {
    background-color: #1f1f1f;
    color: #f1f1f1;
}

.main_screen .stat_section .stat_table th:first-child, .main_screen .stat_section .stat_table td:first-child {
    width: 28%;
}

.main_screen .stat_section .review_box {
    width: 100%;
    height: 150px;
    background-color: #f1f1f1;
    color: #1f1f1f;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #1f1f1f;
    box-sizing: border-box;
    overflow-y: scroll;
}

body.dark .main_screen .stat_section .review_box {
    background-color: #1f1f1f;
    color: #f1f1f1;
    border: 1px solid #f1f1f1;
}

.main_screen .bottom_section {
    margin-top: 20px;
}

.main_screen .bottom_section .tabs {
    display: inline-block;
}

.main_screen .bottom_section .tab_button {
    display: inline-block;
    background-color: #e1e1e1;
    padding: 10px;
    cursor: pointer;
    margin-right: 0;
    user-select: none;
}

body.dark .main_screen .bottom_section .tab_button {
    background-color: #2f2f2f;
}

.main_screen .bottom_section .max_button {
    display: inline-block;
    background-color: #c1c1c1;
    padding: 10px;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 5px;
    user-select: none;
}

body.dark .main_screen .bottom_section .max_button {
    background-color: #4f4f4f;
}

.main_screen .bottom_section .tab_button:first-child {
    border-radius: 5px 0 0 5px;
}

.main_screen .bottom_section .tab_button:last-child {
    border-radius: 0 5px 5px 0;
}

.main_screen .bottom_section .tab_content {
    background-color: #e1e1e1;
    padding: 20px;
    display: block;
    margin-top: 20px;
    border-radius: 5px;
}

body.dark .main_screen .bottom_section .tab_content {
    background-color: #2f2f2f;
}

.main_screen .bottom_section .tab_content.hide {
    display: none;
}

.main_screen .bottom_section #skill_tree .trait_section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_head {
    background-color: #f1f1f1;
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

body.dark .main_screen .bottom_section #skill_tree .trait_section .trait_head {
    background-color: #1f1f1f;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_head .trait_image {
    padding: 10px;
    display: flex;
    align-items: center;
    border: 1px solid #1f1f1f;
    border-right: 1px dashed #1f1f1f;
    border-bottom: none;
}

body.dark .main_screen .bottom_section #skill_tree .trait_section .trait_head .trait_image {
    border: 1px solid #f1f1f1;
    border-right: 1px dashed #f1f1f1;
    border-bottom: none;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_head .trait_name {
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    text-align: left;
    border-top: 1px solid #1f1f1f;
}

body.dark .main_screen .bottom_section #skill_tree .trait_section .trait_head .trait_name {
    border-top: 1px solid #f1f1f1;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_head .trait_image img {
    min-width: 35px;
    max-width: 35px;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_head .trait_button {
    padding: 10px;
    display: flex;
    border: 1px solid #1f1f1f;
    border-left: 1px dashed #1f1f1f;
    border-bottom: none;
}

body.dark .main_screen .bottom_section #skill_tree .trait_section .trait_head .trait_button {
    border: 1px solid #f1f1f1;
    border-left: 1px dashed #f1f1f1;
    border-bottom: none;
    user-select: none;
    cursor: pointer
}

.main_screen .bottom_section #skill_tree .trait_section .trait_head .trait_button div {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 35px;
    border: 1px solid #1f1f1f;
    rotate: 180deg;
    transition: rotate 0.3s ease-out;
}

.main_screen .bottom_section #skill_tree .trait_section.hide .trait_head .trait_button div {
    rotate: 0deg;
}

body.dark .main_screen .bottom_section #skill_tree .trait_section .trait_head .trait_button div {
    border: 1px solid #f1f1f1;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_desc {
    background-color: #e9e9e9;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body.dark .main_screen .bottom_section #skill_tree .trait_section .trait_desc {
    background-color: #292929;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_desc > * {
    height: 100%;
    max-height: 100%;
    padding: 10px;
    border-left: 1px solid #1f1f1f;
    border-right: 1px solid #1f1f1f;
}

body.dark .main_screen .bottom_section #skill_tree .trait_section .trait_desc > * {
    border-left: 1px solid #f1f1f1;
    border-right: 1px solid #f1f1f1;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star1 {
    border-top: 1px solid #1f1f1f;
    border-bottom: 1px dashed #1f1f1f;
}

.main_screen .bottom_section #skill_tree .trait_section.hide .trait_desc .trait_star1 {
    max-height: 100%;
    border-top: 1px solid #1f1f1f;
    border-bottom: 1px solid #1f1f1f;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star1:before {
    content: "★";
    display: block;
    margin-bottom: 0.5em;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star2 {
    border-top: none;
    border-bottom: 1px dashed #1f1f1f;
}

.main_screen .bottom_section #skill_tree .trait_section.hide .trait_desc .trait_star2 {
    display: none;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star2:before {
    content: "★★";
    display: block;
    margin-bottom: 0.5em;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star3 {
    border-top: none;
    border-bottom: 1px dashed #1f1f1f;
}

.main_screen .bottom_section #skill_tree .trait_section.hide .trait_desc .trait_star3 {
    display: none;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star3:before {
    content: "★★★";
    display: block;
    margin-bottom: 0.5em;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star4 {
    border-top: none;
    border-bottom: 1px dashed #1f1f1f;
}

.main_screen .bottom_section #skill_tree .trait_section.hide .trait_desc .trait_star4 {
    display: none;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star4:before {
    content: "★★★★";
    display: block;
    margin-bottom: 0.5em;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star5 {
    border-top: none;
    border-bottom: 1px solid #1f1f1f;
}

.main_screen .bottom_section #skill_tree .trait_section.hide .trait_desc .trait_star5 {
    display: none;
}

.main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star5:before {
    content: "★★★★★";
    display: block;
    margin-bottom: 0.5em;
}

body.dark .main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star1 {
    border-color: #f1f1f1;
}

body.dark .main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star2 {
    border-color: #f1f1f1;
}

body.dark .main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star3 {
    border-color: #f1f1f1;
}

body.dark .main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star4 {
    border-color: #f1f1f1;
}

body.dark .main_screen .bottom_section #skill_tree .trait_section .trait_desc .trait_star5 {
    border-color: #f1f1f1;
}

.main_screen .bottom_section #skill_tree .toggle_section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1em;
    border: 1px solid;
}

.main_screen .bottom_section #skill_tree .toggle_section input#recommend ~ .toggle_area {
    width: 2.5em;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 30px;
    border: 1px solid black;
    background-color: white;
    cursor: pointer;
    margin: 8px;
    padding: 1px;
    transition: background-color 0.1s ease-out;
}

.main_screen .bottom_section #skill_tree .toggle_section input#recommend:checked ~ .toggle_area {
    background-color: #1f3fff;
}

body.dark .main_screen .bottom_section #skill_tree .toggle_section input#recommend:checked ~ .toggle_area {
    background-color: #44aa44;
}

.main_screen .bottom_section #skill_tree .toggle_section input#recommend ~ .toggle_area .toggle_handle {
    width: 1em;
    height: 1em;
    position: relative;
    left: 0px;
    border-radius: 30px;
    background-color: #1f3fff;
    transition: all 0.1s ease-out;
}

body.dark .main_screen .bottom_section #skill_tree .toggle_section input#recommend ~ .toggle_area .toggle_handle {
    background-color: #44aa44;
}

.main_screen .bottom_section #skill_tree .toggle_section input#recommend:checked ~ .toggle_area .toggle_handle {
    left: calc(100% - 1em - 1px);
    background-color: white;
}

body.dark .main_screen .bottom_section #skill_tree .toggle_section input#recommend:checked ~ .toggle_area .toggle_handle {
    background-color: white;
}

.main_screen .bottom_section #skill_tree .skill_section {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_list {
    width: 48%;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info {
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #f1f1f1;
    border: 1px solid #1f1f1f;
    border-bottom: none;
}

body.dark .main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_head {
    background-color: #1f1f1f;
    border: 1px solid #f1f1f1;
    border-bottom: none;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_image {
    width: 35px;
    margin: 8px;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_head .skill_name {
    width: 100%;
    padding: 10px;
    text-align: center;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_desc {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    border: 1px solid #1f1f1f;
    border-bottom: none;
}

body.dark .main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_desc {
    border: 1px solid #f1f1f1;
    border-bottom: none;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_desc .skill_text {
    width: 100%;
    padding: 10px;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_cost {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-evenly;
    text-align: center;
    border-left: 1px dashed #1f1f1f;
    width: 36px;
}

body.dark .main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_cost {
    border-left: 1px dashed #f1f1f1;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_cost .skill_energy img {
    min-width: 25px;
    max-width: 25px;
    margin: 0 3px;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_cost .skill_cost_blank {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #1f1f1f;
    margin: 5px 0;
}

body.dark .main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_cost .skill_cost_blank {
    border-bottom: 1px dashed #f1f1f1;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_cost .skill_cooltime img {
    min-width: 25px;
    max-width: 25px;
    margin: 0 3px;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    border: 1px solid #1f1f1f;
}

body.dark .main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range {
    border: 1px solid #f1f1f1;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range .skill_range_image {
    width: 30%;
    padding: 10px;
    text-align: center;
    border-right: 1px dashed #1f1f1f;
}

body.dark .main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range .skill_range_image {
    border-right: 1px dashed #f1f1f1;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range .skill_range_image img {
    width: 100%
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range .skill_range_desc {
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range .skill_range_desc .skill_range_h {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 2fr;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range .skill_range_desc .skill_range_h > *{
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-right: 1px dotted #f1f1f1;
}

body.dark .main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range .skill_range_desc .skill_range_h > *{
    border-right: 1px dotted #1f1f1f;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range .skill_range_desc .skill_range_h > *:first-child {
    justify-content: flex-start;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range .skill_range_desc .skill_range_v {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 2fr;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range .skill_range_desc .skill_range_v > *{
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-right: 1px dotted #f1f1f1;
}

body.dark .main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range .skill_range_desc .skill_range_v > *{
    border-right: 1px dotted #1f1f1f;
}

.main_screen .bottom_section #skill_tree .skill_section .skill_info .skill_range .skill_range_desc .skill_range_v > *:first-child {
    justify-content: flex-start;
}

.main_screen .bottom_section #skill_tree .skill_set {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.main_screen .bottom_section #skill_tree .skill_set > * {
    border: 1px solid #1f1f1f;
    border-right-width: 0px;
    border-bottom-width: 0px;
}

.main_screen .bottom_section #skill_tree .skill_set > *:last-child {
    border-right-width: 1px;
}

.main_screen .bottom_section #skill_tree .skill_set:last-child > * {
    border-bottom-width: 1px;
}

body.dark .main_screen .bottom_section #skill_tree .skill_set > * {
    border-color: #f1f1f1;
}

.main_screen .bottom_section #skill_tree .skill_set .skill_head {
    background-color: #f1f1f1;
    width: 100%;
    min-width: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.dark .main_screen .bottom_section #skill_tree .skill_set .skill_head {
    background-color: #1f1f1f;
}

.main_screen .bottom_section #skill_tree .skill_set .skill_data {
    background-color: #e9e9e9;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

body.dark .main_screen .bottom_section #skill_tree .skill_set .skill_data {
    background-color: #292929;
}

.main_screen .bottom_section #skill_tree .skill_set .skill_data .skill_image {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main_screen .bottom_section #skill_tree .skill_set .skill_data .skill_image.recommend.show {
    background: radial-gradient(circle, #ff0000 55%, transparent 65%);
}

.main_screen .bottom_section #skill_tree .skill_set .skill_data .skill_image.optional.show {
    background: radial-gradient(circle, #0000ff 55%, transparent 65%);
}

.main_screen .bottom_section #skill_tree .skill_set .skill_data .skill_image img {
    min-width: 70px;
    max-width: 70px;
    cursor: pointer;
}

.main_screen .bottom_section #skill_tree .alter_set {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.main_screen .bottom_section #skill_tree .alter_set > * {
    border: 1px solid #1f1f1f;
    border-right-width: 0px;
    border-bottom-width: 0px;
}

.main_screen .bottom_section #skill_tree .alter_set > *:last-child {
    border-right-width: 1px;
}

.main_screen .bottom_section #skill_tree .alter_set:last-child > * {
    border-bottom-width: 1px;
}

body.dark .main_screen .bottom_section #skill_tree .alter_set > * {
    border-color: #f1f1f1;
}

.main_screen .bottom_section #skill_tree .alter_set .alter_data {
    background-color: #e9e9e9;
    width: 50%;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

body.dark .main_screen .bottom_section #skill_tree .alter_set .alter_data {
    background-color: #292929;
}

.main_screen .bottom_section #skill_tree .alter_set .alter_data .alter_image {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main_screen .bottom_section #skill_tree .alter_set .alter_data .alter_image img {
    min-width: 70px;
    max-width: 70px;
    cursor: pointer;
}

.main_screen .bottom_section .build_set {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    margin-bottom: 2em;
}

.main_screen .bottom_section .build_set:last-child {
    margin-bottom: 1em;
}

.main_screen .bottom_section .build_set .build_name {
    padding: 8px;
    text-align: center;
    background-color: #d1d1d1;
    border: 1px solid #1f1f1f;
    border-bottom-style: dashed;
}

body.dark .main_screen .bottom_section .build_set .build_name {
    background-color: #1f1f1f;
    border-color: #f1f1f1;
}

.main_screen .bottom_section .build_set .build_info {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    border: 1px solid #1f1f1f;
    border-top-width: 0;
    border-bottom-style: dashed;
}

body.dark .main_screen .bottom_section .build_set .build_info {
    border-color: #f1f1f1;
}

.main_screen .bottom_section .build_set .build_info .build_info_skill {
    width: 62.5%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.main_screen .bottom_section .build_set .build_info .build_info_skill > * {
    width: 100%;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    text-align: center;
    border-right: 1px dotted #1f1f1f;
}

.main_screen .bottom_section .build_set .build_info .build_info_skill > * img {
    width: 100%;
}

.main_screen .bottom_section .build_set .build_info .build_info_skill > * > * {
    padding: 4px;
}

body.dark .main_screen .bottom_section .build_set .build_info .build_info_skill > * {
    border-color: #f1f1f1;
}

.main_screen .bottom_section .build_set .build_info .build_info_equip {
    width: 37.5%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.main_screen .bottom_section .build_set .build_info .build_info_equip > * {
    width: 100%;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    text-align: center;
    border-right: 1px dotted #1f1f1f;
}

.main_screen .bottom_section .build_set .build_info .build_info_equip > * img {
    width: 100%;
}

.main_screen .bottom_section .build_set .build_info .build_info_equip > *:last-child {
    border-right: none;
}

.main_screen .bottom_section .build_set .build_info .build_info_equip > * > * {
    padding: 4px;
}

body.dark .main_screen .bottom_section .build_set .build_info .build_info_equip > * {
    border-color: #f1f1f1;
}

.main_screen .bottom_section .build_set .build_comment {
    padding: 8px;
    text-align: left;
    border: 1px solid #1f1f1f;
    border-top-width: 0;
}

body.dark .main_screen .bottom_section .build_set .build_comment {
    border-color: #f1f1f1;
}

.main_screen .bottom_section .engrave_list {
    display: flex;
    justify-content: space-evenly;
    gap: 1em;
}

.main_screen .bottom_section .engrave_list .engrave_set {
    padding: 0.5em 1em;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    border: 1px solid #888;
}

.main_screen .bottom_section .engrave_list .engrave_set .engrave_image {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    align-items: center;
    justify-items: center;
}

.main_screen .bottom_section .engrave_list .engrave_set .engrave_image img#engrave {
    width: 100%;
}

.main_screen .bottom_section .engrave_list .engrave_set .engrave_image img#plus {
    width: 100%;
}

.main_screen .bottom_section .guide_list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    text-align: center;
    gap: 1.4em;
}

.main_screen .bottom_section .guide_list .guide_image {
    width: 100%;
}

.tooltip {
    position: absolute;
    background-color: #d1e1f1;
    color: #1f2f3f;
    font-size: 1em;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.tooltip.hide {
    display: none;
}

body.dark .tooltip {
    background-color: #e1f1e1;
}

.tooltip_word {
    color: #1f3fff; 
    font-weight: bold;
    cursor: pointer;
}

body.dark .tooltip_word {
    color: #44aa44; 
    font-weight: bold;
    cursor: pointer;
}

.faction {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-column-gap: 4px;
    grid-row-gap: 4px;

    position: absolute;
    background-color: #d1e1f1;
    color: #1f2f3f;
    font-size: 1em;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

body.dark .faction {
    background-color: #e1f1e1;
}

.faction.hide {
    display: none;
}

.faction img {
    width: 36px;
    height: 36px;
    cursor: pointer;
}

div#comment-section {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

div#comment-section textarea {
    width: calc(100% - 120px);
    min-height: 64px;
    resize: vertical;
}

div#comment-section button {
    width: 100px;
}

div#comments-list p {
    margin-top: 0px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid gray;
}

div#comments-list p strong {
    padding-left: 8px;
    padding-right: 8px;
    margin-right: 4px;
    border-left: 1px solid gray;
    border-right: 1px solid gray;
}

@media (max-width: 1024px) {
    .main_screen {
        width: calc(100% - 40px);
        padding-top: 80px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .large_photo {
        width: 100%;
        height: auto;
        padding-top: 20px;
        margin-bottom: 20px;
    }

    .right_section {
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .main_screen .stat_section .stat_table th, .main_screen .stat_section .stat_table td {
        font-size: 1em;
        padding: 5px;
    }
}

/* 좁은 화면2 (768px 이하) */
@media (max-width: 768px) {
    .main_screen .char_body {
        flex-direction: column;
    }

    .main_screen .char_body .photo_section {
        background-color: #444444;
        width: 100%;
        height: 80vw;
        font-size: 2em;
        
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main_screen .stat_section {
        width: 100%;
        margin-top: 20px;
    }

    .main_screen .stat_section .faction_list {
        justify-content: space-evenly;
    }

    .main_screen .stat_section .stat_table th:first-child, .main_screen .stat_section .stat_table td:first-child {
        width: 80px;
    }

    .main_screen .bottom_section #skill_tree .skill_section {
        flex-direction: column;
        justify-content: flex-end;
    }
    
    .main_screen .bottom_section #skill_tree .skill_section .skill_list {
        width: 100%;
        margin-bottom: 1em;
    }
    
    .main_screen .bottom_section #skill_tree .skill_section .skill_info {
        width: 100%;
    }

    .main_screen .bottom_section #skill_tree .skill_set .skill_head {
        width: 96px;
    }

    .main_screen .bottom_section #skill_tree .skill_set .skill_data {
        width: 50%;
    }

    .main_screen .bottom_section .build_set .build_info {
        flex-direction: column;
    }

    .main_screen .bottom_section .build_set .build_info .build_info_skill {
        width: 100%;
    }

    .main_screen .bottom_section .build_set .build_info .build_info_skill > * {
        border-bottom: 1px dotted #1f1f1f;
    }

    .main_screen .bottom_section .build_set .build_info .build_info_skill > *:last-child {
        border-right: none;
    }

    body.dark .main_screen .bottom_section .build_set .build_info .build_info_skill > * {
        border-bottom-color: #f1f1f1;
    }

    .main_screen .bottom_section .build_set .build_info .build_info_equip {
        width: 100%;
    }

    .main_screen .bottom_section .build_set .build_info .build_info_equip > * img {
        width: 66%;
    }

    .main_screen .bottom_section .equipment_list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-column-gap: 16px;
        grid-row-gap: 16px;
    }

    .main_screen .bottom_section .engrave_list {
        flex-direction: column;
        align-items: center;
    }

    .main_screen .bottom_section .engrave_list .engrave_set:nth-child(n+2) {
        margin-top: 20px;
    }
}
/* 모바일 화면 (480px 이하) */
@media (max-width: 480px) {
    .main_screen .bottom_section .build_set .build_info .build_info_skill {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .main_screen .bottom_section .build_set .build_info .build_info_skill > * {
        width: -webkit-fill-available;
        flex-direction: row;
        align-items: center;
        border-right: none;
    }
    
    .main_screen .bottom_section .build_set .build_info .build_info_skill > * img {
        height: 48px;
    }
}