body {
  background-color: white;
  color: black;
  font-family: Verdana;
}
.game-card .preview {
    width: 100%;
    height: 120px;        /* fits nicely in card */
    overflow: hidden;
    border: 1px solid #000;
    margin-bottom: 4px;
    background: #000;     /* old web / retro look */
}

.game-card .preview iframe {
    width: 200%;          /* scale up itch iframe horizontally */
    height: auto;
    transform: scale(0.4); /* shrink to fit container */
    transform-origin: top left;
    border: none;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 240px); /* 4 columns, each 240px wide */
  grid-auto-rows: 340px;                   /* each row fixed height */
  gap: 12px;
}

.game-card, .win98-game {
  width: 240px;   /* match grid column */
  height: 340px;  /* match grid row */
  box-sizing: border-box;
  overflow: hidden;
}

.game-card-content, .win98-body {
  width: 100%;
  height: 200px;  /* space for thumbnail or embedded preview */
  overflow: hidden;
}

.game-card-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #000;
}

.game-card img {
    max-width: 100%;
    max-height: 200px;       /* bigger image for clarity */
    object-fit: contain;
    margin-bottom: 6px;
    border: 1px solid #000;  /* retro border */
}

.ps3-case {
    width: 140px; 
    height: 210px; 
    display: flex;
    flex-direction: column;
    background: #000;
    border: 2px solid #333;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.ps3-header {
    background: #000;
    color: #fff;
    font-size: 8px;
    padding: 2px 5px;
    text-align: right;
    font-family: 'Arial Black', sans-serif;
    border-bottom: 1px solid #444;
}

.case-art-container {
    height: 160px; /* Forces the art box to this specific height */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
    overflow: hidden;
}

.case-art-container img {
    height: 100%;   /* Scale down to fit the height */
    width: auto;    /* Keep original proportions */
    max-width: 100%;
    display: block;
}

.case-label {
    background: #e0e0e0;
    color: #000;
    font-size: 10px;
    text-align: center;
    padding: 4px;
    font-weight: bold;
    border-top: 1px solid #ccc;
}
