body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1em;
}
h1 {
    text-align: center;
    margin-bottom: 1.5em;
}
.game-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    justify-content: center;
}
.game-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1em;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    min-height: 240px;
}
.game-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transform: scale(1.03);
}
.game-thumb {
    width: 220px;
    height: 124px;
    background: #ddd;
    border-radius: 6px;
    margin-bottom: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.1em;
    overflow: hidden;
}
.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.game-thumb.noimage {
    background: #eee;
    color: #bbb;
    font-size: 1.2em;
    justify-content: center;
    align-items: center;
}
.game-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.2em;
    text-align: center;
}
.game-desc {
    font-size: 0.97em;
    color: #666;
    margin-bottom: 0.5em;
    text-align: center;
    min-height: 2.2em;
}
.game-link {
    color: #2196f3;
    text-decoration: none;
    font-size: 1em;
    margin-top: 0.5em;
    font-weight: bold;
}
.game-link:focus {
    outline: 2px solid #2196f3;
}
.status-bar {
    display: flex;
    align-items: center;
    gap: 0.4em;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 0.6em;
    padding-top: 0.6em;
    border-top: 1px solid #eee;
    font-size: 0.85em;
}
.sb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    background: none;
    border: none;
    padding: 0.15em 0.35em;
    font-size: 1em;
    color: #888;
    font-family: inherit;
    line-height: 1.4;
}
.sb-item svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex-shrink: 0;
}
.sb-star, .sb-copy {
    cursor: pointer;
    border-radius: 6px;
}
.sb-star.on { color: #f0a500; }
.sb-star:hover, .sb-copy:hover { background: #f0f0f0; color: #333; }
.sb-score { color: #555; white-space: nowrap; }
.sb-score svg { fill: #e0a800; } /* トロフィーは金色 */
.sb-copy { margin-left: auto; } /* コピーは右端に寄せる */
/* コピー時などに一時表示するトースト */
#gba-toast {
    position: fixed;
    left: 50%;
    bottom: 2em;
    transform: translateX(-50%) translateY(1em);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 0.6em 1.2em;
    border-radius: 8px;
    font-size: 0.9em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 1000;
}
#gba-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (max-width: 600px) {
    .game-list {
    flex-direction: column;
    align-items: center;
    }
    .game-item {
    width: 95%;
    min-width: 0;
    }
    .game-thumb {
    width: 100%;
    height: 30vw;
    min-height: 80px;
    }
}
