.table-wrap {
    overflow-x: clip
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.875rem
}

th {
    background: #253d50;
    color: #c7d5e0;
    padding: 12px 14px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 150;
    border-bottom: 2px solid #66c0f4
}

th.sortable {
    cursor: pointer;
    user-select: none
}

th.sortable:hover {
    color: #66c0f4
}

th.sortable::after {
    content: '\25BC';
    margin-left: 4px;
    font-size: 0.55em;
    opacity: 0.3;
    vertical-align: middle
}

th.sortable.sort-asc::after {
    content: '\25B2';
    opacity: 1
}

th.sortable.sort-desc::after {
    content: '\25BC';
    opacity: 1
}

.mobile-search {
    display: none
}

#game-search,
#game-search-mobile {
    -webkit-appearance: none;
    appearance: none;
    background: #0e1c2a;
    border: 1px solid #2a475e;
    border-radius: 3px;
    color: #c7d5e0;
    font-family: inherit;
    outline: none
}

#game-search {
    font-size: 0.8rem;
    padding: 5px 10px;
    margin-left: 8px;
    width: 80%
}

#game-search-mobile {
    font-size: 0.875rem;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box
}

#game-search:focus {
    border-color: #66c0f4
}

th:nth-child(2) {
    text-align: right
}

th:nth-child(3),
th:nth-child(4),
th:nth-child(5),
th:nth-child(6),
th:nth-child(7) {
    text-align: center
}

td {
    padding: 12px 14px
}

td:nth-child(2) {
    text-align: right
}

td:nth-child(3),
td:nth-child(4),
td:nth-child(5),
td:nth-child(6),
td:nth-child(7) {
    text-align: center
}

.deals-section tr.row-odd td {
    background: #1b2838
}

.deals-section tr.row-even td {
    background: #2a475e
}

.deals-section tr:hover td {
    background: #3a5a7e
}

.game-cell {
    overflow: hidden
}

.game-inner {
    display: flex;
    align-items: center;
    white-space: nowrap
}

.game-name {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0
}

tr[data-new] td:first-child {
    border-left: 3px solid #66c0f4;
    padding-left: 9px
}

.game-inner .own-badge {
    margin-left: auto;
    flex-shrink: 0
}

.own-badge {
    margin-left: 8px;
    display: inline-block;
    font-size: 0.75rem;
    line-height: 1;
    padding: 3px 10px;
    border-radius: 3px;
    cursor: pointer;
    vertical-align: 1px;
    background: #2a475e;
    border: 1px solid #8f98a0;
    color: #8f98a0;
    opacity: 0
}

tr:hover .own-badge {
    opacity: 1
}

.own-badge.is-owned {
    opacity: 1;
    background: #4c6b22;
    border-color: #a4d007;
    color: #a4d007
}

.own-badge:hover {
    opacity: 0.7
}

.price {
    color: #a4d007;
    white-space: nowrap;
    text-align: right
}

.price.is-lowest {
    background: linear-gradient(135deg, #5c4d1a, #3d3310);
    color: #ffd700;
    font-weight: bold;
    border-radius: 4px;
    padding-left: 10px;
    padding-right: 10px
}

.old-price {
    text-decoration: line-through;
    color: #888;
    white-space: nowrap
}

.score {
    white-space: nowrap
}

.score-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8125rem;
    color: #fff;
    min-width: 32px;
    text-align: center;
    cursor: default
}

.score-85 { background: #a4d007 }
.score-80 { background: #6d8c14 }
.score-75 { background: #c5a336 }
.score-low { background: #556a7e }

td:nth-child(6),
td:nth-child(7) {
    white-space: nowrap
}

th:last-child {
    white-space: nowrap
}

.ends {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.875rem
}

.ends-plenty { color: #8f98a0 }
.ends-soon { color: #c5a336 }
.ends-urgent { color: #c9424d }

.section-divider td {
    background: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 20px 14px;
    border: none;
    border-bottom: 1px solid #2a475e;
    vertical-align: middle;
    line-height: 1;
    text-align: left
}

.section-gold td {
    color: #c5a336
}

.section-silver td {
    color: #8f98a0
}
