@charset "UTF-8";

/* Games route and game-player overlay. Shared public shell/cards live in default.css. */

.games-page {
    --games-accent: #087f7f;
    --games-accent-strong: #056767;
    --games-accent-soft: rgba(0, 128, 128, 0.10);
    --games-border: rgba(8, 127, 127, 0.28);
    --games-surface: rgba(255, 255, 255, 0.76);
    --ppg-public-accent: var(--games-accent);
    --ppg-public-accent-soft: var(--games-accent-soft);
    --ppg-public-card-border: var(--games-border);
    --ppg-page-width-max: var(--ppg-content-workspace-max);
}

.games-page-hero {
    padding-bottom: 1.5em;
}

.games-ad-slot {
    min-height: 0;
    text-align: center;
}

.games-ad {
    display: block;
}

.games-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25em;
    align-items: stretch;
    margin: 1em 0;
}

.games-info-fieldset {
    box-sizing: border-box;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 1em 1.15em 1.15em;
    border: 1px solid var(--games-border);
    border-radius: 16px;
    background: var(--games-surface);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.055);
    text-align: left;
}

.games-info-fieldset legend {
    max-width: calc(100% - 1em);
    padding: 0 0.55em;
    color: var(--games-accent-strong);
    font-size: 0.98em;
    font-weight: 700;
    line-height: 1.25;
}

.games-info-fieldset p {
    margin: 0.45em 0 0;
    line-height: 1.55;
}

.games-info-fieldset p + p {
    margin-top: 0.85em;
}

.games-featured-section {
    overflow: hidden;
}

.games-section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    align-items: stretch;
    text-align: center;
}

.games-featured-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
}

.games-section-heading h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: min(100%, 16rem);
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--ppg-strong-color);
    font-size: 1.35em;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
}

.games-section-heading > p {
    max-width: 80ch;
    margin: 0 auto;
    line-height: 1.55;
}

.games-section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--games-border);
    border-radius: 999px;
    padding: 0.28em 0.75em;
    color: var(--games-accent);
    background: var(--games-accent-soft);
    font-size: 0.78em;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.game-highlight-wrap {
    position: relative;
    width: 100%;
    margin: 1.5em auto 0;
}

.game-highlight {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: auto;
    border: 1px solid var(--games-border);
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(4, 70, 70, 0.18);
}

.game-highlight-bg {
    position: absolute;
    z-index: 0;
    top: 10%;
    left: 0;
    display: block;
    width: 100%;
    height: 80%;
    opacity: 0.72;
    filter: blur(40px) brightness(1.25);
}

.games-library {
    display: block;
}

.games-personal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25em;
    align-items: stretch;
    margin-top: 1.25em;
}

.games-personal-grid > .public-card {
    min-width: 0;
    margin: 0;
}

.games-library-section {
    text-align: left;
}

.games-all-section {
    margin-top: 1.25em;
}

.games-section-intro {
    margin: -0.55em 0 0.8em;
    color: rgba(65, 80, 80, 0.78);
    line-height: 1.45;
}

.pname-games ppg-deck {
    justify-content: center;
    gap: 0.15em;
}

.pname-games ppg-deck > ppg-card {
    transition: transform 300ms ease;
}

.pname-games ppg-deck > ppg-card > div {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--games-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.86);
    filter: grayscale(0.6);
    transition: filter 1s, border-color 250ms ease, box-shadow 250ms ease;
}

.pname-games ppg-deck > ppg-card > div:hover {
    border-color: var(--games-accent);
    filter: grayscale(0);
    box-shadow: 0 14px 30px rgba(5, 103, 103, 0.18);
}

.pname-games ppg-card > div::after {
    content: '';
    position: absolute;
    left: -100px;
    top: -50px;
    width: 50px;
    height: 120%;
    background: rgba(255, 255, 255, 0.75);
    transform: rotate(20deg);
    filter: blur(10px);
}

.pname-games ppg-card:hover > div::after {
    animation: games-card-flash 0.5s ease 0.3s;
}

@keyframes games-card-flash {
    0% { left: -100px; }
    99% { left: 400px; }
    100% { left: -100px; }
}

.pname-games ppg-card .game-logo {
    position: relative;
    width: 320px;
    max-width: 100%;
    height: 180px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.pname-games ppg-card .game-logo .game-badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    pointer-events: none;
}

.pname-games ppg-card .game-logo .game-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.35));
}

.pname-games ppg-card .game-desc {
    margin: 0;
    padding: 0.7em 0.8em 0.8em;
    text-align: center;
}

.pname-games ppg-card .game-desc h4 {
    margin: 0 0 0.55em;
    color: var(--ppg-strong-color);
    line-height: 1.3;
}

.pname-games ppg-card .game-desc > div {
    margin-top: 0.2em;
    color: rgba(55, 70, 70, 0.82);
    font-size: 0.9em;
}

.pname-games .games-library-section ppg-card:hover {
    transform: translateY(-3px) scale(1.035);
}

#desktop.dark-mode .games-page {
    --games-accent: #76d4d4;
    --games-accent-strong: #9de7e7;
    --games-accent-soft: rgba(85, 190, 190, 0.12);
    --games-border: rgba(118, 212, 212, 0.25);
    --games-surface: rgba(22, 37, 39, 0.84);
    --ppg-public-card-face: rgba(20, 31, 33, 0.88);
}

#desktop.dark-mode .games-info-fieldset,
#desktop.dark-mode .pname-games ppg-deck > ppg-card > div {
    background: rgba(22, 37, 39, 0.9);
}

#desktop.dark-mode .games-section-intro,
#desktop.dark-mode .pname-games ppg-card .game-desc > div {
    color: rgba(220, 238, 238, 0.72);
}

#desktop.dark-mode .game-highlight {
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

#desktop.dark-mode .game-highlight-bg {
    opacity: 0.5;
    filter: blur(40px) brightness(0.75);
}

.games-intro-dialog-frame {
    --ppg-dialog-accent: cadetblue;
    --ppg-dialog-border: rgba(8, 127, 127, 0.28);
    --ppg-dialog-action-face: #087f7f;
    --ppg-dialog-action-hover: #056767;
    --ppg-dialog-focus: #087f7f;
    --games-dialog-link-color: #087f7f;
    --games-dialog-link-hover: #056767;
}

#desktop.dark-mode .games-intro-dialog-frame {
    --ppg-dialog-surface: #172426;
    --ppg-dialog-surface-muted: rgba(255, 255, 255, 0.055);
    --ppg-dialog-border: rgba(134, 190, 190, 0.24);
    --ppg-dialog-text: rgba(245, 252, 252, 0.92);
    --ppg-dialog-muted: rgba(220, 238, 238, 0.70);
    --games-dialog-link-color: cyan;
    --games-dialog-link-hover: #c8ffff;
}

.games-intro-dialog-frame > .body {
    padding: 1rem;
    box-sizing: border-box;
}

.games-intro-dialog-frame .body h2 {
    color: var(--ppg-dialog-text);
}

.games-intro-dialog-frame .body a,
.games-intro-dialog-frame .body a:visited {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--games-dialog-link-color);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    transform: none;
    transition: none;
}

.games-intro-dialog-frame .body a:hover {
    color: var(--games-dialog-link-hover);
    text-decoration-color: currentColor;
    transform: none;
}

.games-intro-dialog-frame .body a:focus {
    color: var(--games-dialog-link-color);
    text-decoration-color: currentColor;
    transform: none;
}

.games-intro-dialog-frame .body a:focus-visible {
    outline: 0;
    box-shadow: none;
}

.game-intro-dialog {
    display: block;
}

.game-intro-dialog[hidden] {
    display: none;
}

.game-intro {
    min-width: 0;
}

.game-intro-layout {
    display: grid;
    grid-template-columns: minmax(18rem, 1.35fr) minmax(16rem, 0.9fr);
    gap: 0.85rem;
    align-items: stretch;
}

.game-intro-panel {
    box-sizing: border-box;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid var(--ppg-dialog-border);
    border-radius: 8px;
    background: var(--ppg-dialog-surface-muted);
}

.game-intro-description {
    line-height: 1.55;
}

.game-intro-description > :first-child {
    margin-top: 0;
}

.game-intro-description > :last-child {
    margin-bottom: 0;
}

.game-intro-description p {
    margin: 0 0 0.75rem;
    text-align: left;
    line-height: 1.55;
}

.game-intro-panel-title {
    margin: 0 0 0.7rem;
    color: var(--ppg-dialog-text);
    font-size: 1rem;
    line-height: 1.25;
    text-align: left;
}

.game-intro-leaderboard {
    overflow: auto;
}

.game-intro-leaderboard-table .leaderboard {
    min-width: 18rem;
}

.game-intro-leaderboard table {
    width: 100%;
    border-collapse: collapse;
    color: var(--ppg-dialog-text);
    font-size: 0.92rem;
}

.game-intro-leaderboard :is(th, td) {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid var(--ppg-dialog-border);
    text-align: left;
}

.game-intro-leaderboard th {
    color: var(--ppg-dialog-muted);
    font-weight: 700;
}

.game-intro-leaderboard td:nth-child(1),
.game-intro-leaderboard td:nth-child(3) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.games-intro-actions {
    justify-content: flex-end;
}

#notify {
    display: flex;
    justify-content: center;
    color: rgba(65, 80, 80, 0.78);
    font-size: 1.2em;
    padding: 3% 0;
}

#notify:empty {
    min-height: 0;
    padding: 0;
}

#desktop.dark-mode #notify {
    color: rgba(220, 238, 238, 0.72);
}

@media (max-width: 860px) {
    .games-info-grid,
    .games-personal-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .games-section-heading {
        gap: 0.65em;
    }

    .games-section-heading > p {
        margin-bottom: 0;
    }

    .game-intro-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .games-info-fieldset,
    .games-featured-section,
    .games-library-section {
        border-radius: 13px;
    }

    .pname-games ppg-deck > ppg-card {
        width: min(100%, 320px);
    }

    .pname-games .games-library-section ppg-card:hover {
        transform: translateY(-2px);
    }
}

/* Game player overlay */

#game-container {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    color: white;
    justify-content: center;
    transform: 300ms background;
}

#game-container.active {
    background: rgba(0, 0, 0, 0.95);
}

#game-container > iframe#game-frame {
    position: absolute;
    top: 0;
    bottom: 0;
    flex-shrink: 0;
    width: 1152px;
    height: 648px;
    margin: auto;
    border: 1px solid gray;
    background: black;
    box-shadow: 1px 1px 20px 1px black;
    transform: scaleY(0);
    transition: transform 300ms ease-in-out 300ms;
}

#game-container.ready > iframe#game-frame {
    transform: scaleY(1);
}

#game-container > .notice {
    z-index: 1;
    display: flex;
    align-items: center;
    color: white;
    background: black;
    font-size: 1em;
}

#game-controls {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5em;
    height: 48px;
    padding: 0 1em;
    background: rgba(0, 150, 150, 0.72);
    color: white;
    font-size: 1.5em;
    transition: background 300ms, height 300ms, opacity 300ms;
}

#game-controls:not(.game-session)::after {
    content: 'Your game session will not be recorded!';
    order: -1;
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: auto;
}

#game-controls:hover {
    height: 100px;
    text-shadow: 0 0 8px white;
}

#game-controls.game-session {
    background: rgba(0, 115, 125, 0.82);
}

#game-controls.game-session::after {
    content: 'Game session active';
    order: -1;
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: auto;
}

#game-controls > button {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10em;
    height: calc(100% - 10px);
    margin: 2px;
    padding: 0 1em;
    border: 1px solid white;
    border-radius: 5px;
    background: rgba(0, 255, 255, 0.25);
    color: white;
    font-family: var(--ppg-default-font);
    font-size: 0.8em;
    font-weight: 400;
    line-height: 1.25em;
}

#game-controls > button:hover {
    background: white;
    color: black;
}

#game-controls .volume-control {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-right: 0.5em;
    padding: 0.2em 0.5em;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    background: rgba(0, 80, 80, 0.35);
    color: white;
    font-size: 0.8em;
    text-transform: uppercase;
}

#game-controls .volume-control > span {
    white-space: nowrap;
    letter-spacing: 0.05em;
}

#game-controls #game-volume {
    width: 12em;
    accent-color: cyan;
    cursor: pointer;
}

#game-controls #game-volume-value {
    min-width: 3.5em;
    color: #dff;
    text-align: right;
}

#game-n {
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-n n-div i.animate {
    animation: loading 4s infinite;
}

#game-n n-div i {
    display: inline-block;
    position: relative;
    font-style: normal;
    font-size: 2em;
}

@keyframes loading {
    0% {
        transform: rotateX(90deg);
        opacity: 0;
    }

    25% {
        transform: rotateX(0deg);
        opacity: 1;
    }

    75% {
        transform: rotateX(0deg);
        opacity: 1;
    }

    100% {
        transform: rotateX(90deg);
        opacity: 0;
    }
}

#game-n.active {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
}

#game-n .game-ad-delivery {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#game-n .counter {
    position: absolute;
    bottom: 1em;
    color: white;
    font-size: 2em;
    text-shadow: 1px 1px 1px black;
}

#game-n .advertisement-label {
    position: absolute;
    top: 1em;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72em;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px black;
}

#game-n .game-ad-creative-host {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 1152px);
    max-height: calc(100vh - 8em);
}

#game-n .game-ad-creative {
    display: block;
    max-width: min(92vw, 1152px);
    max-height: calc(100vh - 8em);
    border: 0;
    background: transparent;
    object-fit: contain;
}

#game-n .game-ad-creative:is(.is-image, .is-video) {
    width: auto;
    height: auto;
}

#game-n .game-ad-creative:is(.is-html5, .is-video):is(iframe) {
    flex: 0 0 auto;
    overflow: hidden;
    pointer-events: none;
}

#game-n .game-ad-creative:is(.is-html5, .is-video).is-remote:is(iframe) {
    pointer-events: auto;
}

#game-n .game-ad-click-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    background: transparent;
}

#game-n .game-ad-click-layer:hover,
#game-n .game-ad-click-layer:focus-visible {
    outline: 1px solid white;
    box-shadow: inset 0 0 0 1px black;
}

#preroll {
    align-self: center;
}

.leaderboard table {
    width: 100%;
}

.leaderboard table td:nth-child(3) {
    text-align: right;
}

.bloker {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: auto;
    background: black;
}
