html,
body {
    width: 960px;
    height: 540px;
    margin: 0;
    overflow: hidden;
    background: #171a21;
    color: #c7d5e0;
    font-family: Arial, Helvetica, sans-serif;
}

#app {
  position: relative;
}

.quick-start-overlay {
  position: absolute;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
}

.quick-start-tooltip {
  position: absolute;
  width: 550px;
  padding: 10px 12px;
  background: #22384d;
  border: 1px solid #66c0f4;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 17px;
  line-height: 22px;
  box-sizing: border-box;
  cursor: default;
}

.quick-start-tooltip-title {
  margin-bottom: 4px;
  color: #66c0f4;
  font-size: 18px;
  font-weight: bold;
}

.quick-start-tooltip::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 42px;
  height: 2px;
  background: #66c0f4;
}

.quick-start-tooltip::after {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  right: calc(100% + 38px);
  width: 0;
  height: 0;
  border-right: 8px solid #66c0f4;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.about-content {
    color: #c7d5e0;
    font-size: 14px;
    line-height: 16px;
}

.about-content h3 {
    margin: 12px 0 4px 0;
    color: #66c0f4;
    font-size: 16px;
}

.about-content p {
    margin: 4px 0;
    font-size: 14px;
}

.about-content strong {
    color: #ffffff;
}

#app {
    width: 960px;
    height: 540px;
    display: grid;
    grid-template-columns: 220px 1fr;
    background: #1b2838;
}

#side-menu {
    background: #171a21;
    border-right: 1px solid #2a475e;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#main-area {
    position: relative;
    background: radial-gradient(circle at top, #2a475e 0%, #1b2838 45%, #171a21 100%);
    overflow: hidden;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-title {
    color: #66c0f4;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.4px;
}

.menu-separator {
    height: 1px;
    background: #2a475e;
    opacity: 0.75;
}

.menu-button {
    width: 100%;
    height: 26px;
    border: 1px solid #2a475e;
    background: linear-gradient(#22384d, #1b2838);
    color: #c7d5e0;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}

.menu-button:hover {
    background: linear-gradient(#66c0f4, #2a475e);
    color: #ffffff;
}

.mode-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.size-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.size-row .menu-button {
    font-size: 14px;
}

.menu-button.active {
    background: linear-gradient(#66c0f4, #2a475e);
    color: #ffffff;
}

.menu-button:disabled {
    opacity: 0.35;
    cursor: default;
}

.side-menu-spacer {
    flex: 1;
}

.support-dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.support-tile {
    height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid #2a475e;
    background: rgba(102, 192, 244, 0.08);
    color: #66c0f4;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    box-sizing: border-box;
}

.support-tile:hover {
    background: rgba(102, 192, 244, 0.18);
    color: #ffffff;
}

.support-tile-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    background: transparent;
    display: block;
}


.menu-button:disabled:hover {
    background: linear-gradient(#22384d, #1b2838);
    color: #c7d5e0;
}

.art-slot-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 6px;
    font-size: 14px;
}

.art-action-button {
    font-size: 14px;
}

.toggle-row {
    height: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #c7d5e0;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.toggle-row input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: #66c0f4;
}

#grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--capsule-width));
    grid-auto-rows: var(--capsule-height);
    gap: 10px;
    padding: 10px;
    justify-content: center;
    align-content: center;
    box-sizing: border-box;
}

#grid img,
.steam-list-item img {
    width: var(--capsule-width);
    height: var(--capsule-height);
    object-fit: cover;
    background: #0e151d;
    display: block;
}

.page-content {
    padding: 18px;
    box-sizing: border-box;
}

.page-content h1 {
    margin: 0;
    color: #66c0f4;
    font-size: 24px;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: grid;
    place-items: center;
    z-index: 20;
}


.popup-panel {
    width: 340px;
    background: #171a21;
    border: 1px solid #66c0f4;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.65);
    padding: 16px;
    box-sizing: border-box;
}

.popup-panel-wide {
    width: 460px;
}

.popup-panel-full {
    width: calc(100% - 36px);
}

.popup-title {
    margin: 0 0 12px 0;
    color: #66c0f4;
    font-size: 16px;
}

.popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.app-ids-editor {
    width: 100%;
    height: 300px;
    resize: none;
    border: 1px solid #2a475e;
    background: #0e151d;
    color: #c7d5e0;
    font-family: Consolas, monospace;
    font-size: 14px;
    line-height: 18px;
    padding: 8px;
    box-sizing: border-box;
    outline: none;
}

.app-ids-editor:focus {
    border-color: #66c0f4;
}

.popup-warning {
    min-height: 18px;
    margin-top: 6px;
    color: #ffb000;
    font-size: 14px;
}

#list-page {
    width: 100%;
    height: 100%;
    padding: 13px 0;
    box-sizing: border-box;
    overflow: hidden;
}

#steam-list {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
}

.steam-list-item {
    height: var(--capsule-height);
    display: grid;
    grid-template-columns: var(--capsule-width) 1fr 150px;
    background: #16202d;
    box-sizing: border-box;
}

.steam-list-item:hover {
    background: #22384d;
}

.steam-list-item img {
    width: var(--capsule-width);
    height: var(--capsule-height);
    object-fit: cover;
    background: #0e151d;
}

.steam-list-info {
    min-width: 0;
    padding: 8px 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.steam-list-title {
    color: #c7d5e0;
    font-size: 16px;
    line-height: 19px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.steam-list-platforms {
    margin-top: 6px;
    display: flex;
    gap: 4px;
    opacity: 0.65;
}

.steam-list-platform-icon {
    width: 10px;
    height: 10px;
    background: #8f98a0;
    display: inline-block;
}

.steam-list-tags {
    margin-top: 6px;
    color: #8f98a0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.steam-list-price {
    display: grid;
    grid-template-columns: 68px 1fr;
    column-gap: 12px;
    align-items: center;
    padding-right: 12px;
    box-sizing: border-box;
}

.steam-list-discount {
    justify-self: end;
    min-width: 54px;
    background: #4c6b22;
    color: #beee11;
    font-size: 16px;
    font-weight: bold;
    padding: 5px 8px;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.steam-list-final-price {
    justify-self: end;
    color: #beee11;
    font-size: 15px;
    font-weight: bold;
}

.steam-list-final-price.free {
    color: #ffffff;
}