/* 360 Games 一覧ページ — Nintendo Switch のゲーム一覧のような、角丸なしのシンプルなグリッド */

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #1f1f1f;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.2rem 1.25rem 3rem;
}

h1 {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0.2em 0 0.35em;
}

/* サブタイトル(引用)。注意書き(.notes)もこれと同じ小ささに揃える */
.lead {
    max-width: 42em;
    margin: 0 auto 2.4em;
    text-align: center;
    color: #777;
    font-size: 0.8rem;
    line-height: 1.7;
}
.lead a {
    color: #777;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.lead a:hover { color: #e60012; } /* Nintendo レッドをアクセントに */

/* グリッド: 狭い順に 2 → 3 → 4 列。画面が広くても最大 4 列 */
.game-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem 1.25rem;
}
@media (min-width: 620px) {
    .game-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 940px) {
    .game-list { grid-template-columns: repeat(4, 1fr); }
}

.game-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.game-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    border: 1px solid #e6e6e6;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3b3b3;
    font-size: 0.85rem;
    transition: filter 0.15s ease, transform 0.15s ease;
}
.game-item:hover .game-thumb,
.game-item:focus-visible .game-thumb {
    filter: brightness(1.06);
    transform: translateY(-2px);
}
.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.game-thumb.noimage {
    background: #f4f4f4;
    color: #bbb;
}

.game-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.7em 0 0.15em;
}

.game-desc {
    margin: 0;
    font-size: 0.78rem;
    color: #808080;
    line-height: 1.5;
}

/* ステータスバー(スター / ハイスコア / リンクコピー、shared/arcade.js が動的に追加) */
.status-bar {
    display: flex;
    align-items: center;
    gap: 0.3em;
    flex-wrap: wrap;
    margin-top: 0.5em;
    font-size: 0.8rem;
}
.sb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.1em 0.3em;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 1em;
    font-family: inherit;
    line-height: 1.4;
    color: #999;
}
.sb-item .bi { font-size: 1em; }
.sb-star, .sb-copy { cursor: pointer; }
.sb-star.on { color: #e60012; }
.sb-star:hover, .sb-copy:hover { color: #1f1f1f; }
.sb-score { color: #666; white-space: nowrap; }
.sb-score .bi-trophy { color: #e0a800; }
.sb-copy { margin-left: auto; }
.sb-num { font-variant-numeric: tabular-nums; }

/* リンクコピー時などの一時トースト */
#gba-toast {
    position: fixed;
    left: 50%;
    bottom: 2em;
    transform: translateX(-50%) translateY(1em);
    padding: 0.6em 1.2em;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 0;
    font-size: 0.85rem;
    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);
}

/* 注意書き。li を増やせば箇条書きで並ぶ */
.notes {
    list-style: none;
    margin: 2.6em auto 0;
    padding: 0;
    max-width: 42em;
    text-align: center;
    color: #777;
    font-size: 0.8rem;
    line-height: 1.7;
}
.notes li { margin: 0.15em 0; }

.site-footer {
    margin-top: 2.4em;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
}
.site-footer a {
    color: #999;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.site-footer .sep { margin: 0 0.5em; color: #ccc; }
