.game-library { width: 100%; max-width: 1120px; margin: 0 auto; padding: 12px 0 24px; color: inherit; }
.library-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.library-heading h2 { margin: 0; font-size: 28px; letter-spacing: 0; }
.library-heading > span { font-size: 12px; opacity: .7; }
.library-search { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b9c4d2; border-radius: 6px; background: #fff; color: #25313d; font-size: 16px; }
.library-tabs { display: flex; gap: 20px; overflow-x: auto; padding: 8px 0 14px; }
.library-tabs button { flex: 0 0 auto; min-height: 44px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 6px 0; background: none; color: inherit; opacity: .7; box-shadow: none; font-size: 14px; }
.library-tabs [aria-selected="true"] { opacity: 1; border-color: #5798f4; }
.library-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.library-game { display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid #c9d3df; border-radius: 8px; background: #fff; color: #22303d; text-align: left; box-shadow: none; }
.library-game img { width: 100%; height: auto; aspect-ratio: 480/280; object-fit: cover; display: block; }
.library-copy { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; width: 100%; min-height: 84px; }
.library-copy strong { grid-column: 1/-1; font-size: 16px; }
.library-subtitle { grid-column: 1/-1; color: #65727e; font-size: 12px; line-height: 1.4; }
.library-copy small { color: #65727e; font-size: 11px; }
.library-copy em { background: #eaf3e7; color: #39763f; padding: 1px 4px; border-radius: 3px; font-size: 10px; font-style: normal; }
.library-game:hover { border-color: #387dd3; }
.game-library button:focus-visible, .notification-button:focus-visible, .bottom-nav button:focus-visible { outline: 3px solid #5798f4; outline-offset: 3px; }
[data-game-library="call"] .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width: 900px) { .library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width: 600px) { .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .library-copy { padding: 10px; } .library-heading h2 { font-size: 24px; } }

.call-stage.family-board-focused { --family-top:146px; --family-camera-height:74px; --family-camera-width:100px; --family-rail:108px; --family-board-left:124px; }
.call-stage[data-view="game"].has-family-game .game-lobby-stage { padding: 0 !important; }
.call-stage[data-view="game"].has-family-game .video-grid article.game-view > b,
.call-stage[data-view="game"].has-family-game .video-grid article.game-view > em { display: none; }
.call-stage[data-view="game"].has-family-game .native-game-board { position: absolute; inset: var(--family-top,146px) 8px 76px; width: auto; height: auto; max-width: none; margin: 0; padding: 0; background: transparent; }
.family-table { display: block; width: 100%; height: 100%; border: 0; background: #f7f8fa; border-radius: 8px; }
.family-table[hidden] { display: none; }
.call-stage[data-view="game"].has-family-game .game-call-overlay { position: absolute; inset: 62px 8px auto; height: calc(var(--family-camera-height,74px) + 4px); display: flex; gap: 6px; overflow-x: auto; pointer-events: auto; }
.call-stage[data-view="game"].has-family-game .game-call-overlay .game-seat-tile { position: relative !important; inset: auto !important; width: var(--family-camera-width,100px) !important; min-width: var(--family-camera-width,100px); height: var(--family-camera-height,74px) !important; min-height: var(--family-camera-height,74px) !important; transform: none !important; }
.call-stage[data-view="game"].has-family-game .game-seat-tile > em { display: none; }
.call-stage[data-view="game"].has-family-game .game-seat-tile { grid-area: auto; flex: 0 0 var(--family-camera-width,100px); border-radius: 6px; padding: 4px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; opacity: 1; visibility: visible; pointer-events: auto; }
.call-stage[data-view="game"].has-family-game .game-seat-tile > b { font-size: 10px; line-height: 14px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-stage[data-view="game"].has-family-game .video-grid article.game-view::before,
.call-stage[data-view="game"].has-family-game .video-grid article.game-view::after { display: none; }
.call-stage[data-view="game"]:is(.has-family-game,.has-connect-four-game).show-controls .call-controls { position: fixed; inset: auto auto 8px 50%; width: min(352px,calc(100vw - 24px)); min-height: 56px; padding: 6px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; transform: translateX(-50%); }
.call-stage[data-view="game"]:is(.has-family-game,.has-connect-four-game) .call-controls button { width: auto; min-height: 44px; height: 44px; padding: 3px; border-radius: 8px; background: #e9edf2; color: #26313d; font-size: 10px; line-height: 12px; }
.call-stage[data-view="game"]:is(.has-family-game,.has-connect-four-game) .call-controls button.is-on { background: #0757ff; color: #fff; }
.call-stage[data-view="game"]:is(.has-family-game,.has-connect-four-game) .call-controls button.end-call { background: #ff3b30; color: #fff; }
.call-stage[data-view="game"]:is(.has-family-game,.has-connect-four-game) .call-controls button::before { color: inherit; width: 20px; height: 20px; }
@media(orientation: landscape) and (max-height:600px) {
  .call-stage[data-view="game"].has-family-game .native-game-board { inset: 62px 8px 76px var(--family-board-left,124px); }
  .call-stage[data-view="game"].has-family-game .game-call-overlay { inset: 62px auto 76px 8px; width: var(--family-rail,108px); height: auto; flex-direction: column; overflow-y: auto; }
  .call-stage[data-view="game"].has-family-game .game-seat-tile { flex-basis: var(--family-camera-height,74px); }
}
.call-stage[data-view="game"].has-clue-video .native-game-board { top: calc(68px + clamp(180px,28dvh,320px)); }
.call-stage[data-view="game"].has-family-game .game-call-overlay.clue-video-layout { height: clamp(180px,28dvh,320px); display: grid; grid-template-columns: minmax(0,1fr) 82px; overflow: hidden; }
.clue-video-main { min-width: 0; min-height: 0; }
.clue-video-audience { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; }
.call-stage[data-view="game"].has-family-game .clue-video-main .game-seat-tile { width: 100% !important; min-width: 0; height: 100% !important; min-height: 0 !important; border-radius: 8px; padding: 10px; }
.call-stage[data-view="game"].has-family-game .clue-video-audience .game-seat-tile { width: 100% !important; min-width: 0; height: 64px !important; min-height: 64px !important; flex: 0 0 64px; }
.call-stage[data-view="game"].has-family-game .is-clue-giver > b { font-size: 16px; line-height: 22px; white-space: normal; overflow-wrap: anywhere; z-index: 2; }
.call-stage[data-view="game"].has-family-game .is-clue-giver > video { object-fit: cover; background: #101719; }
.call-stage[data-view="game"].has-family-game .is-clue-giver > .clue-video-label { opacity: 1; position: relative; inset: auto; display: block; width: auto; height: auto; padding: 2px 5px; background: #101719cc; border-radius: 3px; font-size: 12px; color: #fff; z-index: 2; }
.clue-video-label::after { content: ' · Camera off'; }
.is-clue-giver.has-rendered-video .clue-video-label::after { content: ''; }
.game-add-people { display: none; }
.screen.call:has(.call-stage[data-view="game"]) .game-add-people { display: grid; place-items: center; position: absolute; top: 0; right: 0; width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 1px solid #ffffff40; border-radius: 8px; background: #101719; z-index: 1; }
.game-add-people img { filter: brightness(0) invert(1); }
.call-stage[data-view="game"].has-family-game:has(.game-call-overlay[data-game-key="trivia"]) .native-game-board { top: 254px; }
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="trivia"] { height: 186px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 86px; overflow-x: hidden; overflow-y: auto; align-content: start; }
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="trivia"] .game-seat-tile { width: 100% !important; min-width: 0; height: 86px !important; min-height: 86px !important; }
.call-stage[data-view="game"].has-family-game:has(.game-call-overlay[data-game-key="bid-whist"]) .native-game-board { inset: 62px 8px 76px; }
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="bid-whist"][data-anchored="true"] { pointer-events: none; }
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="bid-whist"][data-anchored="true"] .game-seat-tile.has-seat-anchor { display:block;box-sizing:border-box;padding:0;border:2px solid rgba(255,255,255,.88);border-radius:16px;background:linear-gradient(145deg,#315f96,#147f82 60%,#071c2d);box-shadow:0 11px 26px #0008;overflow:hidden;pointer-events:none; }
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="bid-whist"][data-anchored="true"] .game-seat-tile.has-seat-anchor video { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0; }
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="bid-whist"][data-anchored="true"] .game-seat-tile.has-seat-anchor.has-live-video video { opacity:1; }
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="bid-whist"][data-anchored="true"] .game-seat-tile.has-seat-anchor > span,
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="bid-whist"][data-anchored="true"] .game-seat-tile.has-seat-anchor > .game-seat-badge { position:absolute;inset:0;width:100%;height:100%;display:grid;place-items:center;font-size:24px;color:#fff; }
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="bid-whist"][data-anchored="true"] .game-seat-tile.has-seat-anchor > b { display:none!important; }
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="bid-whist"][data-anchored="true"] .game-seat-tile.has-seat-anchor::after { content:attr(data-game-name);position:absolute;left:4px;right:4px;bottom:4px;z-index:3;display:block;padding:3px;border-radius:5px;background:#06101bcc;color:#fff;text-align:center;font-size:10px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="bid-whist"][data-anchored="true"] .game-seat-tile.has-seat-anchor > em { display:none; }
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="bid-whist"][data-anchored="true"] .game-seat-tile.has-seat-anchor.has-live-video > span,
.call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="bid-whist"][data-anchored="true"] .game-seat-tile.has-seat-anchor.has-live-video > .game-seat-badge { opacity:0; }
@media(min-width:900px), (orientation:landscape) and (max-height:600px) {
  .call-stage[data-view="game"].has-family-game:has(.game-call-overlay[data-game-key="bid-whist"]) .native-game-board { inset: 62px 8px 76px; }
  .call-stage[data-view="game"].has-family-game:has(.game-call-overlay[data-game-key="trivia"]) .native-game-board { inset: 62px 8px 76px calc(32% + 14px); }
  .call-stage[data-view="game"].has-family-game .game-call-overlay[data-game-key="trivia"] { inset: 62px auto 76px 8px; width: 32%; height: auto; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .call-stage[data-view="game"].has-clue-video .native-game-board { inset: 62px 8px 76px calc(36% + 14px); }
  .call-stage[data-view="game"].has-family-game .game-call-overlay.clue-video-layout { inset: 62px auto 76px 8px; width: 36%; height: auto; overflow: hidden; }
}

.library-solo-link{display:block;padding:12px 0;color:var(--accent,#20c4db);font-weight:700;font-size:14px}
