html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding-top: 50px; /* Space for fixed navbar */
}

.main-filter-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 10px;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.navbar {
    background-color: #333;
    overflow: hidden;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    height: 50px; /* Fixed height for navbar */
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.navbar-container {
    display: flex;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item {
    margin: 0 10px;
    display: flex;
    align-items: center;
}

.nav-links {
    color: white;
    text-align: center;
    padding: 0 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links:hover {
    background-color: #ddd;
    color: black;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto; /* Body padding handles space from navbar */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Allow filters to wrap on smaller screens */
}

select, input[type="number"] {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
    margin-bottom: 5px; /* Add margin for wrapped items */
    min-width: 120px; /* Ensure select boxes have minimum width */
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    /* overflow: hidden; /* Removing this to prevent clipping sticky header/shadows */
}

thead {
    position: sticky;
    top: 0; /* Sticks to the top of the scrollport (body's content area) */
    background: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

th, td {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-left: none;
    border-right: none;
    padding: 10px;
    text-align: center;
    white-space: nowrap;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
    position: relative;
    cursor: pointer;
}

th:hover {
    background-color: #e8e8e8;
}

.sortable::after {
    content: " ▼";
    font-size: 12px;
    color: #666;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}
.asc::after { content: " ▲"; }
.desc::after { content: " ▼"; }

tr:nth-child(even) { background-color: #f9f9f9; }
tr:hover { background-color: #e8f4ff; }

.number {
    text-align: right;
    font-weight: bold;
    color: #333;
}
.sub-stat {
    font-size: 12px;
    color: #777;
}

/* Character and Equipment Cell Styles (Adapted from detail.css) */
.character-cell, .equipment-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    text-align: left;
    padding-left: 5px;
}

.icon-container {
    position: relative; /* For absolute positioning of weapon_icon */
    display: inline-block; /* Or flex, if preferred for centering content */
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.character-icon, .equipment-icon { /* equipment-icon styled like character-icon */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.weapon-icon { /* For character display, overlaid */
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 16px;
    height: 16px;
    background-color: #333;
    border-radius: 3px;
    padding: 1px;
    box-sizing: border-box;
}

.character-name-weapon, .equipment-name-weapon {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
    font-size: 0.9em; /* Reduce font size to prevent line breaks */
}

/* Tier Badge Styles (Adapted from detail.css) */
.tier-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px; /* detail.css uses 4px */
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
    min-width: 30px;
    line-height: 1.4;
    margin-bottom: 2px;
    box-sizing: border-box;
}

.tier-op { background-color: #8A2BE2; } /* BlueViolet */
.tier-1 { background-color: #B22222; } /* Crimson Red */
.tier-2 { background-color: #FF8C00; } /* DarkOrange */
.tier-3 { background-color: #FFD700;} /* Gold (detail.css doesn't specify dark text, but it's good for contrast) */
.tier-4 { background-color: #a8e16f; } /* ForestGreen (from detail.css, was #4682b4) */
.tier-5 { background-color: #7fbfff; } /* DodgerBlue (from detail.css, was #6a5acd) */
.tier-rip { background-color: #696969; } /* DimGray */
.tier-unknown { background-color: #ccc; color: #333; } /* Kept from previous main.css as detail.css doesn't have it */

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: visible; /* Allow tooltips to extend horizontally */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.tier-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    table-layout: fixed;
    overflow: visible; /* Allow tooltips to extend beyond table boundaries */
    border: 1px solid #ddd;
}

.tier-table th,
.tier-table td {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-left: none;
    border-right: none;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
    overflow: visible; /* Allow tooltips to extend beyond cell boundaries */
}

.tier-table tr {
    overflow: visible; /* Allow tooltips to extend beyond row boundaries */
}

.tier-table th {
    background-color: #f2f2f2;
}

/* First column for tier badges */
.tier-table td:first-child {
    width: 60px;
    text-align: center;
    vertical-align: middle;
}

/* Second column for icons */
.tier-table td:nth-child(2) {
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    column-gap: 8px;
    row-gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
}

.tier-character-icon-container {
    display: inline-block;
    margin: 0;
    text-align: center;
    vertical-align: top; /* Align to top for multi-line text */
    position: relative;
    cursor: pointer;
    z-index: 1; /* Base z-index for icon containers */
}

.tier-character-icon-container:hover {
    z-index: 10000; /* Much higher z-index when hovering to ensure tooltip appears above everything */
}

/* Ensure the parent row doesn't clip tooltips when hovering */
.tier-table tr:has(.tier-character-icon-container:hover) {
    z-index: 9999;
    position: relative;
}

/* Fallback for browsers that don't support :has() */
.tier-table tr.tooltip-active {
    z-index: 9999;
    position: relative;
}

/* Empty tier row styling */
.tier-table tr.empty-tier-row {
    height: auto;
    min-height: 48px; /* Match typical tier row height */
}

.tier-table tr.empty-tier-row td.empty-tier-content {
    padding: 12px 8px; /* Match normal tier row padding */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
}

/* Tooltip styles for tier modal */
.tier-tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    font-size: 12px;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 99999; /* Much higher z-index to appear above all tier content */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Stronger shadow for better visibility */
}

/* When tooltip is moved to body (fixed positioning) */
body > .tier-tooltip {
    position: fixed !important;
    z-index: 99999 !important;
}

/* Default: tooltip above */
.tier-tooltip.tooltip-above,
.tier-tooltip:not(.tooltip-below) {
    bottom: 110%;
}

/* Tooltip below when near top */
.tier-tooltip.tooltip-below {
    top: 110%;
    bottom: auto;
}

.tier-character-icon-container:hover .tier-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Tooltip arrow for above position */
.tier-tooltip.tooltip-above::after,
.tier-tooltip:not(.tooltip-below)::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Tooltip arrow for below position */
.tier-tooltip.tooltip-below::after {
    content: "";
    position: absolute;
    bottom: 100%;
    top: auto;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

.tier-character-icon {
    width: 60px; /* Increased icon size to 60px */
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.tier-weapon-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px; /* Larger weapon icon proportional to 60px */
    height: 20px;
    background-color: #333;
    border-radius: 3px;
    padding: 1px;
    box-sizing: border-box;
}

/* Break control for desktop and mobile - Using flexbox instead */
.desktop-break {
    display: none; /* Hide all breaks with flexbox layout */
}

.mobile-only-break {
    display: none; /* Hide all breaks with flexbox layout */
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    body {
        padding-top: 50px;
    }

    .container {
        width: 100%;
        margin: 0;
        padding: 10px;
        border-radius: 0;
        box-shadow: none;
    }

    h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .main-filter-container {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 10px; /* Reduce gap */
        padding: 0 10px; /* Add side padding */
        align-items: center; /* Center items horizontally */
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 10px;
    }

    .filter-container label {
        display: block;
        margin-bottom: 5px;
        margin-left: 0 !important;
    }

    select, input[type="number"] {
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }

    /* Table responsive wrapper */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border: none;
        margin-bottom: 20px;
    }

    /* Fixed first two columns for mobile (랭크, 이름만) - only for main pages, not detail */
    #gameTable:not(body:has(#tierInfoTable)) tbody td:nth-child(1),
    #gameTable:not(body:has(#tierInfoTable)) thead th:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 10;
        background: white;
        box-shadow: 1px 0 3px rgba(0,0,0,0.1);
    }

    #gameTable:not(body:has(#tierInfoTable)) tbody td:nth-child(2),
    #gameTable:not(body:has(#tierInfoTable)) thead th:nth-child(2) {
        position: sticky;
        left: 30px; /* 랭크 열 너비 (모바일용 축소) */
        z-index: 10;
        background: white;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        min-width: 45px;
        border-right: none;
    }

    #gameTable:not(body:has(#tierInfoTable)) thead th:nth-child(1),
    #gameTable:not(body:has(#tierInfoTable)) thead th:nth-child(2) {
        z-index: 11;
        background: #f4f4f4;
    }

    /* Ensure proper background for even rows */
    #gameTable:not(body:has(#tierInfoTable)) tbody tr:nth-child(even) td:nth-child(1),
    #gameTable:not(body:has(#tierInfoTable)) tbody tr:nth-child(even) td:nth-child(2) {
        background: #f9f9f9;
    }

    /* Hover state for fixed columns */
    #gameTable:not(body:has(#tierInfoTable)) tbody tr:hover td:nth-child(1),
    #gameTable:not(body:has(#tierInfoTable)) tbody tr:hover td:nth-child(2) {
        background: #e8f4ff;
    }

    /* Reduce padding for mobile */
    th, td {
        padding: 8px 5px;
        font-size: 0.9em;
    }

    /* Stack character/equipment info vertically */
    .character-cell, .equipment-cell {
        flex-direction: column;
        text-align: center;
        padding: 5px;
        gap: 5px;
    }

    .character-name-weapon, .equipment-name-weapon {
        text-align: center;
        word-break: break-word;
        white-space: normal;
        font-size: 0.75em; /* Smaller font size for mobile to fit in one line */
    }

    /* Smaller icons on mobile */
    .icon-container {
        width: 40px;
        height: 40px;
    }

    .weapon-icon {
        width: 14px;
        height: 14px;
    }

    /* Hide some columns on mobile for better visibility */
    @media screen and (max-width: 480px) {
        /* Hide less important columns on very small screens */
        td:nth-child(12), th:nth-child(12), /* 이득평균점수 */
        td:nth-child(13), th:nth-child(13) { /* 손실평균점수 */
            display: none;
        }
    }

    /* Modal adjustments for mobile */
    .modal {
        padding-top: 20px;
    }

    .modal-content {
        width: 98%;
        margin: 10px auto;
        padding: 10px;
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: visible; /* Allow tooltips to extend horizontally */
    }

    .modal-content h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
        margin-top: 5px;
    }

    /* Tier table mobile adjustments */
    .tier-table {
        font-size: 0.9em;
        width: 100%;
        table-layout: fixed;
        overflow: visible; /* Allow tooltips to extend beyond table boundaries */
    }

    .tier-table tr {
        overflow: visible; /* Allow tooltips to extend beyond row boundaries */
    }

    .tier-table td:first-child {
        width: 50px;
    }

    .tier-table td:nth-child(2) {
        padding: 8px;
        gap: 4px;
        min-width: 0;
        justify-content: flex-start;
        overflow: visible; /* Allow tooltips to extend beyond cell boundaries */
    }

    .tier-character-icon-container {
        margin: 0;
        position: relative;
        z-index: 1; /* Base z-index for icon containers */
    }

    .tier-character-icon-container:hover {
        z-index: 10000; /* Much higher z-index when hovering to ensure tooltip appears above everything */
    }

    .tier-character-icon {
        width: 50px;
        height: 50px;
    }

    .tier-weapon-icon {
        width: 15px;
        height: 15px;
    }

    .close-button {
        font-size: 32px;
        right: 15px;
        top: 10px;
        padding: 5px 10px;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 4px;
        z-index: 1000;
    }

    .tier-table {
        margin-top: 10px;
    }

    .tier-table td {
        padding: 5px;
    }

    /* Tier table mobile layout */
    .tier-table {
        width: 100%;
        table-layout: fixed;
    }

    /* Tier badge in modal */
    .tier-table .tier-badge {
        font-size: 0.8em;
        padding: 3px 6px;
    }

    /* First column (tier badge column) */
    .tier-table td:first-child {
        width: 35px;
        min-width: 35px;
        text-align: center;
        vertical-align: middle;
        padding: 5px 2px;
    }

    /* Second column (icons container) */
    .tier-table td:nth-child(2) {
        padding: 8px;
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        gap: 4px;
        align-items: flex-start;
        justify-content: flex-start;
        min-width: 0;
        overflow: visible; /* Allow tooltips to extend beyond cell boundaries */
    }

    .tier-character-icon-container {
        margin: 0;
        display: inline-block;
        position: relative;
        vertical-align: top;
        z-index: 1; /* Base z-index for icon containers */
    }

    .tier-character-icon-container:hover {
        z-index: 10000; /* Much higher z-index when hovering to ensure tooltip appears above everything */
    }

    .tier-character-icon {
        width: 50px;
        height: 50px;
    }

    .tier-weapon-icon {
        width: 15px;
        height: 15px;
    }

    /* No breaks needed with flexbox layout */
    .desktop-break,
    .mobile-only-break {
        display: none;
    }

    /* Bottom buttons container mobile layout */
    .bottom-container {
        flex-direction: column !important;
        gap: 10px;
        align-items: stretch !important;
    }

    .update-info {
        text-align: center;
        margin-bottom: 5px;
    }

    #openTierModal, .tier-modal-btn {
        width: 100%;
    }

    /* Navbar adjustments */
    .navbar-container {
        padding: 0 10px;
    }

    .nav-links {
        padding: 0 10px;
        font-size: 0.9em;
    }

    .nav-item {
        margin: 0 5px;
    }
}

/* Small phone specific adjustments */
@media screen and (max-width: 380px) {
    h2 {
        font-size: 1.2em;
    }

    th, td {
        padding: 5px 3px;
        font-size: 0.8em;
    }

    .tier-badge {
        font-size: 0.8em;
        padding: 2px 5px;
        min-width: 25px;
    }

    .sub-stat {
        font-size: 10px;
    }

    /* Modal adjustments for very small phones */
    .modal {
        padding-top: 0;
    }

    .modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        padding: 5px;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        overflow-y: auto;
        overflow-x: visible; /* Allow tooltips to extend horizontally even on very small screens */
    }

    .close-button {
        font-size: 28px;
        right: 10px;
        top: 8px;
        padding: 3px 8px;
    }

    /* Tier table very small screen adjustments */
    .tier-table {
        font-size: 0.75em;
        margin-top: 10px;
        width: 100%;
        table-layout: fixed;
        overflow: visible; /* Allow tooltips to extend beyond table boundaries */
    }

    .tier-table tr {
        overflow: visible; /* Allow tooltips to extend beyond row boundaries */
    }

    .tier-table th,
    .tier-table td {
        padding: 4px;
        overflow: visible; /* Allow tooltips to extend beyond cell boundaries */
    }

    .tier-table td:first-child {
        width: 35px;
        padding: 2px;
    }

    .tier-table td:nth-child(2) {
        padding: 4px;
        gap: 3px;
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        justify-content: flex-start;
        min-width: 0;
        overflow: visible; /* Allow tooltips to extend beyond cell boundaries */
    }

    /* Empty tier row styling for mobile */
    .tier-table tr.empty-tier-row {
        height: auto;
        min-height: 40px; /* Smaller height for mobile */
    }

    .tier-table tr.empty-tier-row td.empty-tier-content {
        padding: 8px 4px; /* Match mobile tier row padding */
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 40px;
    }

    .tier-character-icon-container {
        margin: 0;
        position: relative;
        z-index: 1; /* Base z-index for icon containers */
    }

    .tier-character-icon-container:hover {
        z-index: 10000; /* Much higher z-index when hovering to ensure tooltip appears above everything */
    }

    .tier-character-icon {
        width: 45px;
        height: 45px;
    }

    .tier-weapon-icon {
        width: 10px;
        height: 10px;
    }

    /* Tooltip adjustments for very small screens */
    .tier-tooltip {
        font-size: 10px;
        padding: 5px;
        max-width: 150px;
        bottom: auto;
        top: 110%;
        z-index: 9999; /* Ensure high z-index on small screens too */
        box-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Stronger shadow for better visibility */
    }

    .tier-tooltip::after {
        top: auto;
        bottom: 100%;
        border-color: transparent transparent #333 transparent;
    }

    /* Adjust sticky column positions for very small screens */
    tbody td:nth-child(1),
    thead th:nth-child(1) {
        min-width: 28px;
    }

    tbody td:nth-child(2),
    thead th:nth-child(2) {
        min-width: 75px;
        border-right: none;
    }


    /* Hide more columns on very small screens */
    td:nth-child(8), th:nth-child(8), /* 막금구승률 */
    td:nth-child(9), th:nth-child(9) { /* 이득확률 */
        display: none;
    }

    /* Modal adjustments for very small screens */
    .modal-content {
        width: 100%;
        margin: 0;
        padding: 8px;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: visible; /* Allow tooltips to extend horizontally */
    }

    .modal-content h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .tier-table .tier-badge {
        font-size: 0.7em;
        padding: 2px 4px;
        min-width: 20px;
    }

    .tier-table td:first-child {
        width: 30px;
        min-width: 30px;
        padding: 3px 1px;
    }

    .tier-table td:nth-child(2) {
        padding: 5px;
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        justify-content: flex-start;
        overflow: visible; /* Allow tooltips to extend beyond cell boundaries */
    }

    .tier-character-icon-container {
        margin: 0;
        display: inline-block;
        position: relative;
        z-index: 1; /* Base z-index for icon containers */
    }

    .tier-character-icon-container:hover {
        z-index: 10000; /* Much higher z-index when hovering to ensure tooltip appears above everything */
    }

    .tier-character-icon {
        width: 45px;
        height: 45px;
    }

    .tier-weapon-icon {
        width: 14px;
        height: 14px;
    }
}

/* Info icon tooltip styles */
.info-icon {
    display: inline-block;
    margin-left: 4px;
    font-size: 12px;
    color: #666;
    cursor: help;
    vertical-align: super;
    font-weight: normal;
    position: relative;
}

.info-icon:hover {
    color: #333;
}

.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.info-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.info-icon:hover::after,
.info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Hide specific columns in main, equipment, and first-equipment pages - mobile only */
@media screen and (max-width: 768px) {
    /* Hide TOP2 (6th column), 막금구승률 (8th column), 평균획득점수 (9th column), 손실확률 (11th column) */
    #gameTable th:nth-child(6),
    #gameTable td:nth-child(6),
    #gameTable th:nth-child(8),
    #gameTable td:nth-child(8),
    #gameTable th:nth-child(9),
    #gameTable td:nth-child(9),
    #gameTable th:nth-child(11),
    #gameTable td:nth-child(11) {
        display: none;
    }
}
