body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
    color: #222;
}
.header {
    background: #222;
    color: #fff;
    padding: 2rem 0 1rem 0;
    text-align: center;
}
.header h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 2px;
}
.header p {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #ccc;
}
.game-section {
    display: flex;
    align-items: stretch;
    background: #fff;
    margin: 2rem auto;
    max-width: 900px; /* default card width */
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-radius: 10px;
    overflow: hidden;
}
.game-section.wide { /* wider layout for large embedded games */
    max-width: 1400px;
}
.game-section.single .game-info.full { width:100%; }
.game-thumb {
    max-width: 320px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin: 1rem 0 1rem 0;
}
.play-actions { margin: 0 0 1rem 0; }
.play-btn {
    display: inline-block;
    background: #2a7ae2;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: background .2s, transform .2s;
}
.play-btn:hover { background:#1f62b5; transform: translateY(-2px); }
.play-btn:active { transform: translateY(0); }
.thumb-container { display:flex; flex-direction:column; align-items:center; }
.game-section.reverse {
    flex-direction: row-reverse;
    background: #1a3a52;
}
.game-section.reverse .game-info {
    background: #1a3a52;
}
.game-section.reverse .game-title,
.game-section.reverse .game-description,
.game-section.reverse p {
    color: #fff;
}
.game-info, .game-embed {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.game-info {
    background: #f9f9f9;
}
.game-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2a7ae2;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: color 0.3s ease;
}
.game-title:hover {
    color: #1f62b5;
    text-decoration: underline;
}
.game-type {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}
.game-desc {
    font-size: 1.1rem;
    color: #333;
}
.game-embed {
    background: #eaf1fb;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.game-embed.large-game {
    padding: 0;
    flex: 1.3; /* give more width to game area */
}
.game-section.wide .game-info {
    flex: 0.7;
}
.unity-frame {
    width: 1200px; /* scaled up from native 960 for wider view */
    height: 750px; /* maintain ~16:10 ratio and a little extra height */
    max-width: 100%;
    border: none;
    background: #222;
    border-radius: 8px;
    box-shadow: 0 0 0 1px #ddd;
}
@media (max-width: 1100px) {
    .unity-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10; /* fallback scaling on smaller screens */
    }
}
@supports not (aspect-ratio: 1 / 1) {
    .unity-frame { height: 400px; }
}
.embed-placeholder {
    border: 2px dashed #aaa;
    background: #fff;
    color: #888;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    font-size: 1.1rem;
}
@media (max-width: 800px) {
    .game-section, .game-section.reverse {
        flex-direction: column;
    }
    .game-embed, .game-info {
        padding: 1rem;
    }
}
