/* Native Theme Test game browsing. Every rule is scoped to this page module. */
#ttpp-game-hub {
    --ttgc-accent: var(--primary-color, #00afff);
    --ttgc-text: #f3f3f3;
    --ttgc-muted: #b0b0b0;
    --ttgc-line: #333;
    --ttgc-panel: var(--result-background, #111);
    --ttgc-inset: #191919;
    --ttgc-yellow: #ffd437;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 18px 0 24px;
    background: var(--secondary-background, #0b0b0b);
    color: var(--ttgc-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    color-scheme: dark;
}
#ttpp-game-hub *, #ttpp-game-hub *::before, #ttpp-game-hub *::after { box-sizing: border-box; }
#ttpp-game-hub .ttgc-shell { width: 1000px; max-width: calc(100% - 40px); min-width: 0; margin: 0 auto; padding: 0; container-name: ttgc; container-type: inline-size; }
#ttpp-game-hub [hidden] { display: none !important; }
#ttpp-game-hub a { color: inherit; text-decoration: none; }
#ttpp-game-hub ul, #ttpp-game-hub li { margin: 0; padding: 0; list-style: none; }
#ttpp-game-hub p, #ttpp-game-hub h2, #ttpp-game-hub h3 { margin: 0; padding: 0; color: inherit; }
#ttpp-game-hub img { display: block; max-width: 100%; border: 0; }
#ttpp-game-hub button, #ttpp-game-hub input, #ttpp-game-hub select { font: inherit; letter-spacing: normal; }
#ttpp-game-hub button { cursor: pointer; }
#ttpp-game-hub .ttgc-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; }
#ttpp-game-hub :is(a, button, input, select, [tabindex]):focus-visible { outline: 2px solid #8edbff; outline-offset: 3px; }

/* One compact navigation bar replaces the three oversized statistic cards. */
#ttpp-game-hub .ttgc-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 8px 12px; border: 1px solid var(--ttgc-line); border-radius: 5px; background: #161616; }
#ttpp-game-hub .ttgc-summary-label { display: inline-flex; align-items: center; gap: 9px; color: #eee; font-size: 13px; font-weight: 600; white-space: nowrap; }
#ttpp-game-hub .ttgc-summary-label > .ttgc-icon { width: 17px; height: 17px; flex-basis: 17px; color: var(--ttgc-yellow); }
#ttpp-game-hub .ttgc-summary-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
#ttpp-game-hub .ttgc-summary-links a { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 5px 12px; border-radius: 4px; color: #bdbdbd; font-size: 12px; }
#ttpp-game-hub .ttgc-summary-links a + a { border-left: 1px solid #333; border-radius: 0; }
#ttpp-game-hub .ttgc-summary-links strong { color: #fff; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
#ttpp-game-hub .ttgc-summary-links a:hover { color: #fff; background: #242424; }
#ttpp-game-hub .ttgc-summary-links .ttgc-icon { width: 14px; height: 14px; flex-basis: 14px; margin-left: 3px; color: var(--ttgc-accent); }

/* Flat charcoal title bars and a cyan rule follow the original page. */
#ttpp-game-hub .ttgc-section { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; background: transparent; scroll-margin-top: 20px; }
#ttpp-game-hub .ttgc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 11px 14px; border: 1px solid #333; border-bottom: 2px solid var(--ttgc-accent); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #252525 0%, #181818 100%); }
#ttpp-game-hub .ttgc-section-head > div { min-width: 0; }
#ttpp-game-hub .ttgc-section-title { font-size: 19px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
#ttpp-game-hub .ttgc-section-description { margin-top: 2px; color: var(--ttgc-muted); font-size: 12px; line-height: 1.65; }
#ttpp-game-hub .ttgc-section-count { flex: 0 0 auto; padding: 3px 9px; border: 1px solid #4b4326; border-radius: 4px; background: #282417; color: var(--ttgc-yellow); font-size: 12px; font-weight: 600; white-space: nowrap; }
#ttpp-game-hub .ttgc-controls { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(170px, 1fr) auto; align-items: end; gap: 10px; padding: 12px; margin: 0 0 12px; border: 1px solid #2c2c2c; border-radius: 5px; background: #141414; }
#ttpp-game-hub .ttgc-field { min-width: 0; }
#ttpp-game-hub .ttgc-field label { display: block; margin-bottom: 5px; color: #d0d0d0; font-size: 12px; font-weight: 500; }
#ttpp-game-hub .ttgc-input-wrap { position: relative; }
#ttpp-game-hub .ttgc-input-wrap > .ttgc-icon { position: absolute; top: 12px; left: 12px; color: #a0a0a0; pointer-events: none; }
#ttpp-game-hub .ttgc-input, #ttpp-game-hub .ttgc-select { display: block; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 9px 12px; border: 1px solid #414141; border-radius: 5px; background: #080808; color: var(--ttgc-text); font-size: 14px; line-height: 1.5; box-shadow: none; }
#ttpp-game-hub .ttgc-input { padding-left: 40px; }
#ttpp-game-hub .ttgc-input::placeholder { color: #999; opacity: 1; }
#ttpp-game-hub .ttgc-select { padding-right: 28px; }
#ttpp-game-hub .ttgc-select option { background: #111; color: var(--ttgc-text); }
#ttpp-game-hub .ttgc-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; max-width: 100%; margin: 0; padding: 9px 16px; border: 1px solid transparent; border-radius: 5px; color: var(--ttgc-text); font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; white-space: normal; transition: background-color .16s, border-color .16s; }
#ttpp-game-hub .ttgc-button-primary { background: var(--ttgc-accent); color: #06141c; border-color: var(--ttgc-accent); }
#ttpp-game-hub .ttgc-button-primary:hover { background: #64d0ff; border-color: #64d0ff; color: #06141c; }
#ttpp-game-hub .ttgc-button-secondary { background: linear-gradient(180deg, #303030, #232323); color: #eee; border-color: #454545; }
#ttpp-game-hub .ttgc-button-secondary:hover { background: #353535; border-color: #777; color: #fff; }
#ttpp-game-hub .ttgc-catalog-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; color: #a4a4a4; font-size: 12px; }
#ttpp-game-hub .ttgc-status { color: #c6c6c6; }
#ttpp-game-hub .ttgc-catalog-hint { text-align: right; font-size: 11px; }
#ttpp-game-hub .ttgc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; gap: 10px; }
#ttpp-game-hub .ttgc-card { min-width: 0; overflow: hidden; border: 1px solid #333; border-radius: 6px; background: var(--ttgc-panel); transition: border-color .16s, transform .16s; }
#ttpp-game-hub .ttgc-card:hover { border-color: var(--ttgc-accent); transform: translateY(-2px); }
#ttpp-game-hub .ttgc-card-link { display: flex; flex-direction: column; height: 100%; color: var(--ttgc-text); }
#ttpp-game-hub .ttgc-card-link:focus-visible { outline-offset: -3px; }
#ttpp-game-hub .ttgc-thumb { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #202020; }
#ttpp-game-hub .ttgc-thumb img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .22s; }
#ttpp-game-hub .ttgc-card:hover .ttgc-thumb img { transform: scale(1.025); }
#ttpp-game-hub .ttgc-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 9px; }
#ttpp-game-hub .ttgc-card-title { display: block; min-height: 36px; color: #f3f3f3; font-size: 12px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
#ttpp-game-hub .ttgc-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 5px; margin-top: auto; color: #a9a9a9; font-size: 10px; line-height: 1.5; }
#ttpp-game-hub .ttgc-tag { display: inline-block; padding: 1px 4px; border-radius: 3px; background: #2b2718; color: #e5c653; font-size: 9px; white-space: nowrap; }
#ttpp-game-hub .ttgc-card-action { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 34px; padding: 7px 10px; border-top: 1px solid rgba(255,255,255,.12); background: var(--ttgc-accent); color: #001d2c; font-size: 11px; font-weight: 700; }
#ttpp-game-hub .ttgc-card-action .ttgc-icon { width: 15px; height: 15px; flex-basis: 15px; }
#ttpp-game-hub .ttgc-card:hover .ttgc-card-action { background: #64d0ff; }
#ttpp-game-hub .ttgc-more-wrap { display: flex; justify-content: center; margin-top: 14px; }
#ttpp-game-hub .ttgc-more-wrap .ttgc-button { min-width: 200px; }
#ttpp-game-hub .ttgc-empty { padding: 28px 16px; border: 1px dashed #444; border-radius: 5px; text-align: center; background: #141414; }
#ttpp-game-hub .ttgc-empty > .ttgc-icon { width: 32px; height: 32px; margin: 0 auto 10px; color: var(--ttgc-accent); }
#ttpp-game-hub .ttgc-empty h3 { font-size: 18px; font-weight: 600; }
#ttpp-game-hub .ttgc-empty p { margin: 7px 0 16px; color: var(--ttgc-muted); }
#ttpp-game-hub .ttgc-noscript { margin-top: 12px; color: var(--ttgc-muted); }

/* Compact logo tabs keep touch scrolling and keyboard navigation. */
#ttpp-game-hub .ttgc-rail { display: flex; align-items: center; gap: 7px; min-width: 0; margin: 0 0 12px; }
#ttpp-game-hub .ttgc-rail-track { position: relative; display: flex; flex: 1 1 auto; align-items: stretch; gap: 7px; min-width: 0; max-width: 100%; padding: 3px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#ttpp-game-hub .ttgc-rail-track::-webkit-scrollbar { display: none; }
#ttpp-game-hub .ttgc-rail-button { display: flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; min-height: 46px; margin: 0; padding: 6px; border: 1px solid #3b3b3b; border-radius: 5px; background: #252525; color: #d2d2d2; }
#ttpp-game-hub .ttgc-rail-button:hover:not(:disabled) { border-color: var(--ttgc-accent); color: #fff; }
#ttpp-game-hub .ttgc-rail-button:disabled { opacity: .35; cursor: default; }
#ttpp-game-hub .ttgc-logo-tab, #ttpp-game-hub .ttgc-category-tab { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; min-height: 50px; padding: 8px 10px; border: 1px solid #373737; border-radius: 5px; background: #181818; color: #c3c3c3; transition: background-color .16s, border-color .16s; }
#ttpp-game-hub .ttgc-logo-tab { width: 112px; }
#ttpp-game-hub .ttgc-logo-tab img { width: 100%; height: 31px; object-fit: contain; }
#ttpp-game-hub .ttgc-logo-tab:hover, #ttpp-game-hub .ttgc-category-tab:hover { border-color: #777; background: #252525; color: #fff; }
#ttpp-game-hub .ttgc-logo-tab[aria-selected="true"], #ttpp-game-hub .ttgc-category-tab[aria-selected="true"] { border-color: var(--ttgc-accent); background: #17242a; box-shadow: inset 0 -2px 0 var(--ttgc-accent); color: #fff; }
#ttpp-game-hub .ttgc-category-tab { min-height: 44px; font-size: 12px; }
#ttpp-game-hub .ttgc-category-tab img { width: 18px; height: 18px; object-fit: contain; }
#ttpp-game-hub .ttgc-tab-count { min-width: 18px; padding: 1px 4px; border-radius: 3px; background: #333; color: #c7c7c7; font-size: 10px; font-variant-numeric: tabular-nums; }
#ttpp-game-hub .ttgc-provider-panel { min-width: 0; padding: 12px; margin-top: 12px; border: 1px solid #303030; border-radius: 5px; background: #141414; scroll-margin-top: 20px; }
#ttpp-game-hub .ttgc-provider-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#ttpp-game-hub .ttgc-provider-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
#ttpp-game-hub .ttgc-provider-identity > img { width: 75px; height: 32px; object-fit: contain; }
#ttpp-game-hub .ttgc-provider-head h3 { font-size: 15px; font-weight: 600; line-height: 1.5; }
#ttpp-game-hub .ttgc-provider-head p { color: #aaa; font-size: 11px; }
#ttpp-game-hub .ttgc-text-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 36px; padding: 5px 0 5px 8px; color: var(--ttgc-accent); font-size: 12px; }
#ttpp-game-hub .ttgc-text-link:hover { color: #8edbff; }
#ttpp-game-hub .ttgc-text-link .ttgc-icon { width: 15px; height: 15px; flex-basis: 15px; }
#ttpp-game-hub .ttgc-mini-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
#ttpp-game-hub .ttgc-mini-grid > li { min-width: 0; }
#ttpp-game-hub .ttgc-mini-game { display: block; height: 100%; overflow: hidden; border: 1px solid #343434; border-radius: 5px; background: #1d1d1d; }
#ttpp-game-hub .ttgc-mini-game img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
#ttpp-game-hub .ttgc-mini-game span { display: block; min-height: 44px; padding: 7px 8px; color: #e5e5e5; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
#ttpp-game-hub .ttgc-mini-game:hover { border-color: var(--ttgc-accent); }
#ttpp-game-hub .ttgc-provider-empty { padding: 12px 0; color: #bbb; }
#ttpp-game-hub .ttgc-provider-empty .ttgc-button { margin-top: 12px; }
#ttpp-game-hub .ttgc-category-panel { min-width: 0; margin-top: 12px; padding: 0; scroll-margin-top: 20px; }
#ttpp-game-hub .ttgc-category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
#ttpp-game-hub .ttgc-category-head h3 { font-size: 15px; font-weight: 600; }
#ttpp-game-hub .ttgc-category-head > span { color: #aaa; font-size: 11px; }
#ttpp-game-hub .ttgc-logo-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
#ttpp-game-hub .ttgc-logo-grid > li { min-width: 0; }
#ttpp-game-hub .ttgc-logo-tile { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 62px; padding: 10px; border: 1px solid #353535; border-radius: 5px; background: #171717; transition: border-color .16s, background-color .16s; }
#ttpp-game-hub .ttgc-logo-tile img { width: 100%; height: 34px; object-fit: contain; }
#ttpp-game-hub .ttgc-logo-tile:hover { border-color: var(--ttgc-accent); background: #222; }

/* A short mobile entry strip, matching the scale of the native banners. */
#ttpp-game-hub .ttgc-mobile { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px; margin: 0; border: 1px solid #3b3b3b; border-left: 3px solid var(--ttgc-accent); border-radius: 5px; background: linear-gradient(110deg, #242424, #141414); }
#ttpp-game-hub .ttgc-mobile-symbol { display: flex; flex: 0 0 48px; align-items: center; justify-content: center; width: 48px; height: 56px; border: 1px solid #4a452e; border-radius: 6px; background: #29261a; color: var(--ttgc-yellow); }
#ttpp-game-hub .ttgc-mobile-symbol .ttgc-icon { width: 29px; height: 29px; flex-basis: 29px; }
#ttpp-game-hub .ttgc-mobile-copy { flex: 1 1 auto; min-width: 0; }
#ttpp-game-hub .ttgc-mobile-copy h2 { font-size: 17px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
#ttpp-game-hub .ttgc-mobile-copy p { margin-top: 2px; color: #b4b4b4; font-size: 12px; }
#ttpp-game-hub .ttgc-mobile > .ttgc-button { flex: 0 0 auto; }

@media (max-width: 1000px) {
    #ttpp-game-hub .ttgc-shell { width: auto; max-width: none; margin: 0 20px; padding: 0; }
}
@container ttgc (max-width: 820px) {
    #ttpp-game-hub .ttgc-grid, #ttpp-game-hub .ttgc-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #ttpp-game-hub .ttgc-logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    #ttpp-game-hub .ttgc-card-title { font-size: 13px; min-height: 39px; }
    #ttpp-game-hub .ttgc-card-meta { font-size: 11px; }
}
@container ttgc (max-width: 620px) {
    #ttpp-game-hub .ttgc-summary { display: block; padding: 8px; }
    #ttpp-game-hub .ttgc-summary-label { display: none; }
    #ttpp-game-hub .ttgc-summary-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
    #ttpp-game-hub .ttgc-summary-links a { padding: 4px; font-size: 11px; }
    #ttpp-game-hub .ttgc-summary-links .ttgc-icon { display: none; }
    #ttpp-game-hub .ttgc-controls { grid-template-columns: minmax(0, 1fr) auto; }
    #ttpp-game-hub .ttgc-search-field { grid-column: 1 / -1; }
    #ttpp-game-hub .ttgc-input, #ttpp-game-hub .ttgc-select { font-size: 16px; }
    #ttpp-game-hub .ttgc-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #ttpp-game-hub .ttgc-mobile { flex-wrap: wrap; gap: 10px; padding: 14px; }
    #ttpp-game-hub .ttgc-mobile-copy { flex-basis: calc(100% - 62px); }
    #ttpp-game-hub .ttgc-mobile > .ttgc-button { width: 100%; }
    #ttpp-game-hub .ttgc-mobile-copy h2 { font-size: 15px; }
}
@container ttgc (max-width: 500px) {
    #ttpp-game-hub .ttgc-grid, #ttpp-game-hub .ttgc-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    #ttpp-game-hub .ttgc-section { margin-bottom: 20px; }
    #ttpp-game-hub .ttgc-section-head { padding: 10px; gap: 8px; }
    #ttpp-game-hub .ttgc-section-title { font-size: 17px; }
    #ttpp-game-hub .ttgc-section-description { font-size: 11px; }
    #ttpp-game-hub .ttgc-section-count { font-size: 10px; padding: 3px 6px; }
    #ttpp-game-hub .ttgc-catalog-hint { display: none; }
    #ttpp-game-hub .ttgc-controls { padding: 10px; gap: 8px; }
    #ttpp-game-hub .ttgc-button { padding: 9px 12px; font-size: 12px; }
    #ttpp-game-hub .ttgc-card-body { padding: 8px; }
    #ttpp-game-hub .ttgc-card-title { font-size: 12px; min-height: 36px; }
    #ttpp-game-hub .ttgc-card-meta { font-size: 10px; }
    #ttpp-game-hub .ttgc-card-action { min-height: 38px; }
    #ttpp-game-hub .ttgc-rail { gap: 4px; }
    #ttpp-game-hub .ttgc-rail-button { flex-basis: 32px; width: 32px; }
    #ttpp-game-hub .ttgc-logo-tab { width: 103px; }
    #ttpp-game-hub .ttgc-provider-panel { padding: 10px; }
    #ttpp-game-hub .ttgc-provider-head { gap: 8px; }
    #ttpp-game-hub .ttgc-provider-identity { gap: 8px; }
    #ttpp-game-hub .ttgc-provider-identity > img { width: 52px; }
    #ttpp-game-hub .ttgc-provider-head h3 { font-size: 13px; }
    #ttpp-game-hub .ttgc-text-link { font-size: 11px; }
    #ttpp-game-hub .ttgc-text-link .ttgc-icon { display: none; }
    #ttpp-game-hub .ttgc-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    #ttpp-game-hub .ttgc-logo-tile { min-height: 56px; padding: 7px; }
    #ttpp-game-hub .ttgc-logo-tile img { height: 30px; }
}
/* Readable grid fallback for older browsers without container queries. */
@supports not (container-type: inline-size) {
    @media (max-width: 860px) {
        #ttpp-game-hub .ttgc-grid, #ttpp-game-hub .ttgc-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        #ttpp-game-hub .ttgc-logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
        #ttpp-game-hub .ttgc-controls { grid-template-columns: minmax(0, 1fr) auto; }
        #ttpp-game-hub .ttgc-search-field { grid-column: 1 / -1; }
    }
    @media (max-width: 540px) {
        #ttpp-game-hub .ttgc-grid, #ttpp-game-hub .ttgc-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        #ttpp-game-hub .ttgc-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        #ttpp-game-hub .ttgc-summary-label, #ttpp-game-hub .ttgc-catalog-hint { display: none; }
        #ttpp-game-hub .ttgc-summary-links { justify-content: space-between; width: 100%; }
        #ttpp-game-hub .ttgc-summary-links a { padding: 4px; font-size: 11px; }
        #ttpp-game-hub .ttgc-summary-links .ttgc-icon { display: none; }
        #ttpp-game-hub .ttgc-mobile { flex-wrap: wrap; }
        #ttpp-game-hub .ttgc-mobile-copy { flex-basis: calc(100% - 62px); }
        #ttpp-game-hub .ttgc-mobile > .ttgc-button { width: 100%; }
    }
}
@media (prefers-reduced-motion: reduce) {
    #ttpp-game-hub *, #ttpp-game-hub *::before, #ttpp-game-hub *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    #ttpp-game-hub .ttgc-card:hover, #ttpp-game-hub .ttgc-card:hover .ttgc-thumb img { transform: none; }
}
