/* Independent, optional casual-game catalogue. No global theme overrides. */
.fg-page { max-width: 1600px; margin: 0 auto; padding: 32px 16px 48px; color: #f4f6fa; }
.fg-page [hidden] { display: none !important; }
.fg-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.fg-heading h1 { font-size: 28px; margin: 8px 0 12px; }
.fg-heading p { color: #b2bdcb; line-height: 1.6; max-width: 860px; }
.fg-heading .fg-kicker { color: #82a6d8; font-size: 12px; letter-spacing: 1.4px; font-weight: 700; }
.fg-provider { border: 1px solid #293343; border-radius: 6px; padding: 10px 16px; font-size: 13px; white-space: nowrap; }
.fg-consent { background: #11151c; border: 1px solid #283345; padding: 24px; border-radius: 8px; max-width: 860px; }
.fg-consent h2 { font-size: 20px; margin: 0 0 12px; }
.fg-consent p { color: #b2bdcb; font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.fg-page button, .fg-player button { cursor: pointer; font: inherit; }
.fg-primary, .fg-secondary { border: 1px solid transparent; border-radius: 5px; min-height: 38px; padding: 9px 18px; font-weight: 600; color: #fff; background: #164885; }
.fg-primary:hover { background: #205b9e; }
.fg-secondary { background: #202630; border-color: #374051; }
.fg-page button:disabled { opacity: .55; cursor: wait; }
.fg-page button:focus-visible, .fg-page input:focus-visible, .fg-player button:focus-visible, .fg-player a:focus-visible { outline: 2px solid #8fb8f0; outline-offset: 3px; }
.fg-tools { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.fg-categories { display: flex; gap: 8px; }
.fg-categories button { border: 1px solid #303946; color: #c7cfdb; background: #171c24; border-radius: 5px; padding: 10px 20px; min-height: 40px; }
.fg-categories button[aria-pressed="true"] { background: #164885; color: #fff; border-color: #164885; }
.fg-search { display: grid; gap: 5px; margin-left: auto; font-size: 12px; color: #b2bdcb; }
.fg-search input { width: 260px; max-width: 100%; border: 1px solid #303946; border-radius: 5px; padding: 10px 12px; color: #fff; background: #171c24; font: inherit; font-size: 14px; }
.fg-status { min-height: 22px; color: #b2bdcb; font-size: 14px; margin: 20px 0; }
.fg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fg-grid[aria-busy="true"] { opacity: .55; pointer-events: none; }
.fg-card { overflow: hidden; background: #131820; border: 1px solid #27313f; border-radius: 8px; }
.fg-cover { aspect-ratio: 4 / 3; background: #1b293b; }
.fg-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fg-card-body { display: flex; flex-direction: column; align-items: start; padding: 14px; gap: 14px; }
.fg-card h2 { font-size: 16px; line-height: 1.4; margin: 0; min-height: 45px; overflow-wrap: anywhere; }
.fg-card button { width: 100%; }
.fg-attribution { color: #8e9aaa; font-size: 12px; line-height: 1.8; margin-top: 28px; }
.fg-attribution a, .fg-player a { color: #a3c1ee; text-decoration: underline; }
.fg-player { position: fixed; inset: 0; margin: auto; width: min(1100px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; background: #0c1119; color: #fff; border: 1px solid #3a475b; border-radius: 8px; }
.fg-player::backdrop { background: rgb(0 0 0 / 85%); }
.fg-player-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid #293343; }
.fg-player-header h2 { font-size: 18px; margin: 0; }
.fg-player-header button { background: #222c3b; border: 0; color: #fff; border-radius: 4px; font-size: 28px; width: 40px; height: 40px; flex-shrink: 0; }
.fg-game-frame { height: min(65dvh, 620px); min-height: 280px; background: #000; }
.fg-game-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.fg-player-details { padding: 16px 20px 22px; line-height: 1.5; color: #b2bdcb; font-size: 14px; }
.fg-player-details p { margin: 0 0 12px; }
.fg-player-details summary { cursor: pointer; margin-bottom: 10px; color: #e1e8f1; }
.fg-player-details .fg-player-note { font-size: 12px; margin-top: 15px; }
.fg-playing { overflow: hidden; }
.fg-simple-header { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #164885; background: #000; }
.fg-simple-header img { width: 168px; max-height: 48px; }
.fg-simple-header > a:last-child { color: #c6d3e4; font-size: 14px; }
@media (max-width: 1050px) { .fg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .fg-heading { align-items: start; } .fg-provider { display: none; } .fg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .fg-search { margin-left: 0; } .fg-heading h1 { font-size: 25px; } }
@media (max-width: 420px) { .fg-page { padding: 24px 12px; } .fg-card-body { padding: 10px; } .fg-card h2 { font-size: 14px; } .fg-card .fg-primary { padding: 8px; font-size: 13px; } .fg-consent { padding: 18px; } .fg-search { flex: 1; } .fg-search input { width: 100%; } }
