/* ===========================================================
   Timesofag — Warm Sunset Theme
   A bright, cozy playground UI with soft cream surfaces,
   sunset orange & candy pink accents. Matches the bear logo.

   Palette
   ─────────────────────────────────────────────────────────
   Page background   #faf5ed  (warm cream)
   Surface           #ffffff  (card)
   Surface soft      #fff9f1
   Surface active    #fff3e3
   Border            #f1e4d1
   Border strong     #e9d6bb
   Primary orange    #ff7a45
   Primary deep      #ef5f28
   Accent pink       #ff5d8f
   Accent honey      #ffb830
   Accent teal       #21b8a6
   Text primary      #46362a  (warm cocoa)
   Text secondary    #8d7a68
   Text muted        #b7a592
   =========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    max-width: 660px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont,
        'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', sans-serif;
    color: #46362a;
    line-height: 1.65;
    min-height: 100vh;
    background:
        radial-gradient(1200px 400px at 50% -120px, rgba(255, 184, 48, .14), transparent 70%),
        #faf5ed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(255, 122, 69, .22);
}

/* ─────── Scrollbar ─────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f6efe3;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffb830, #ff7a45);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff9a4d, #ff5d8f);
}

/* ─────── Navbar ────── */
.pigkoz-navbar {
    max-width: 660px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 20px;
    background: rgba(255, 252, 246, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #f1e4d1;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 4px 20px rgba(96, 64, 30, .06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.pigkoz-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    transition: transform .25s ease;
}
.pigkoz-nav-logo:hover {
    transform: translateY(-1px);
}

.pigkoz-nav-logo img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: 0 3px 10px rgba(239, 95, 40, .18), 0 1px 3px rgba(96, 64, 30, .12);
    transition: transform .3s ease, box-shadow .3s ease;
}
.pigkoz-nav-logo:hover img {
    transform: rotate(-6deg) scale(1.06);
    box-shadow: 0 6px 16px rgba(239, 95, 40, .28), 0 2px 5px rgba(96, 64, 30, .14);
}

.pigkoz-nav-title-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.pigkoz-nav-title {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: .5px;
    color: #ef5f28;
    background: linear-gradient(135deg, #ff7a45, #ff5d8f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pigkoz-nav-subtitle {
    font-size: .66rem;
    color: #b7a592;
    letter-spacing: .6px;
    margin-top: 2px;
    font-weight: 600;
}

/* ─────── Menu Icon / Dropdown ─────── */
#nav-open {
    display: block;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(63%) sepia(87%) saturate(2196%) hue-rotate(338deg) brightness(101%) contrast(94%);
    opacity: .9;
    transition: transform .2s ease, opacity .2s ease;
}
.pigkoz-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff3e3;
    border: 1px solid #f3ddc0;
    cursor: pointer;
    transition: all .2s ease;
}
.pigkoz-menu-icon:hover {
    background: #ffe9cc;
    border-color: #efb98a;
    box-shadow: 0 4px 12px rgba(255, 122, 69, .18);
}
.pigkoz-menu-icon:hover #nav-open {
    transform: scale(1.08);
}

#nav-close {
    display: none;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(63%) sepia(87%) saturate(2196%) hue-rotate(338deg) brightness(101%) contrast(94%);
}

.pigkoz-menu {
    width: 280px;
    flex-direction: column;
    gap: 0;
    background: #fffdf9;
    position: absolute;
    align-items: stretch;
    height: auto;
    top: 64px;
    right: 12px;
    padding: 10px 0;
    z-index: 60;
    margin: 0;
    list-style: none;
    display: none;
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(96, 64, 30, .08), 0 20px 48px rgba(96, 64, 30, .16);
    border: 1px solid #f1e4d1;
}

.pigkoz-menu li {
    position: relative;
}
.pigkoz-menu li a {
    font-size: .95rem;
    color: #8d7a68;
    text-decoration: none;
    font-weight: 600;
    transition: all .25s ease;
    padding: 12px 22px;
    display: block;
    border-left: 3px solid transparent;
    border-radius: 0 12px 12px 0;
    margin: 2px 6px;
}
.pigkoz-menu li a:hover {
    color: #ef5f28;
    background: #fff3e3;
    border-left-color: #ff7a45;
    padding-left: 26px;
}

.pigkoz-menu.open {
    display: flex;
    flex-direction: column;
    animation: menuFadeIn .25s ease-out;
}
.pigkoz-menu.open #nav-open {
    display: none;
}
.pigkoz-menu.open #nav-close {
    display: block;
}

@keyframes menuFadeIn {
    0% { opacity: 0; transform: translateY(-8px) scale(.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─────── Game Card ────── */
.pigkoz-game-item {
    border-radius: 16px;
    position: relative;
    background: #ffffff;
    padding: 9px;
    box-shadow: 0 1px 2px rgba(96, 64, 30, .05), 0 4px 14px rgba(96, 64, 30, .06);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}
.pigkoz-game-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(255, 122, 69, .12), 0 16px 32px rgba(96, 64, 30, .10);
}

.pigkoz-game-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pigkoz-game-cover {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.pigkoz-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform .4s ease;
}
.pigkoz-game-cover img:hover {
    transform: scale(1.05);
}

.pigkoz-game-cover-recommend {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.pigkoz-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform .4s ease;
}
.pigkoz-game-cover-recommend img:hover {
    transform: scale(1.05);
}

.pigkoz-game-item h3 {
    color: #46362a;
    margin: 6px 0;
    font-size: .82rem;
    font-weight: 600;
}
.pigkoz-game-item p {
    color: #b7a592;
    margin: 0;
    font-size: .85rem;
}

.pigkoz-game-info {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 4px 4px;
}
.pigkoz-game-info p:first-child {
    color: #46362a;
    font-size: .84rem;
    font-weight: 700;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.pigkoz-game-info p:nth-child(2) {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 4.5em;
    font-size: .76rem;
    color: #8d7a68;
    font-weight: 400;
}
.pigkoz-game-info p:last-child {
    font-size: .72rem;
    color: #b7a592;
    font-weight: 500;
    margin-top: 2px;
}

.common-game-right {
    display: flex;
    width: 20%;
    background: linear-gradient(135deg, #ff7a45, #ff5d8f);
    border-radius: 8px;
    right: 0;
    justify-content: center;
    align-items: center;
}

/* ─────── Section Containers ─────── */
.pigkoz-recomed-div {
    margin: 0 12px;
    border-radius: 16px;
    padding: 4px 0 12px;
}

.pigkoz-detail-recomed-div {
    margin: 12px 20px;
    border-radius: 16px;
    padding: 12px 0;
}

.pigkoz-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #f1e4d1;
    box-shadow: 0 1px 2px rgba(96, 64, 30, .05), 0 4px 14px rgba(96, 64, 30, .06);
    position: relative;
    overflow: hidden;
}
.pigkoz-common-recommend-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ffb830, #ff7a45, #ff5d8f);
    border-radius: 4px 0 0 4px;
}
.pigkoz-common-recommend-title p {
    color: #46362a;
    font-size: 1.02rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: .3px;
    position: relative;
    z-index: 1;
    padding-left: 8px;
}
.pigkoz-common-recommend-title img {
    width: 18px;
    height: 18px;
    opacity: .55;
    transition: all .2s ease;
    filter: brightness(0) saturate(100%) invert(63%) sepia(87%) saturate(2196%) hue-rotate(338deg) brightness(101%) contrast(94%);
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.pigkoz-common-recommend-title img:hover {
    opacity: 1;
    transform: translateX(3px);
}

/* ─────── Grid Layouts ─────── */
.pigkoz-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}
.pigkoz-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .6rem;
}
.pigkoz-game-big-2 {
    grid-column: span 2;
    grid-row: span 2;
}
.game-big-3 {
    grid-column: span 3;
    grid-row: span 3;
}

/* ─────── Footer ─────── */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 16px 34px;
    background: #453227;
    text-align: center;
    margin-top: 48px;
    border-top: 4px solid;
    border-image: linear-gradient(90deg, #ffb830, #ff7a45, #ff5d8f) 1;
    position: relative;
}

.pigkoz-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 14px;
}
.pigkoz-footer-links a {
    font-size: .78rem;
    color: #d9c6b0;
    text-decoration: none;
    transition: color .25s ease;
    position: relative;
}
.pigkoz-footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: #ffb830;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}
.pigkoz-footer-links a:hover {
    color: #ffb830;
}
.pigkoz-footer-links a:hover::after {
    transform: scaleX(1);
}

footer .pigkoz-copyright {
    font-size: .75rem;
    color: #a68e79;
    margin: 8px 0 0;
    letter-spacing: .3px;
}

/* ─────── Floating Buttons ─────── */
#back-top,
#back-home {
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all .25s ease;
    filter: brightness(0) saturate(100%) invert(63%) sepia(87%) saturate(2196%) hue-rotate(338deg) brightness(101%) contrast(94%);
    opacity: .75;
    padding: 8px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(96, 64, 30, .14);
    border: 1px solid #f1e4d1;
    box-sizing: content-box;
}
#back-top:hover,
#back-home:hover {
    opacity: 1;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 122, 69, .30);
    background: #fff3e3;
}

#flow {
    position: fixed;
    bottom: 96px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 4px;
    z-index: 100;
    transition: opacity .3s ease;
}

/* ─────── Game Detail ─────── */
.pigkoz-game-detail-title {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1e4d1;
    box-shadow: 0 1px 2px rgba(96, 64, 30, .05), 0 8px 24px rgba(96, 64, 30, .07);
    margin: 20px;
    overflow: hidden;
}

.game-detail-iframe {
    width: 100%;
}

.pigkoz-game-detail-img {
    width: 100%;
    position: relative;
}
.pigkoz-game-detail-img img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 1 / .8;
    display: block;
    box-shadow: 0 4px 14px rgba(96, 64, 30, .12);
    transition: all .3s ease;
}
.pigkoz-game-detail-img img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 26px rgba(255, 122, 69, .22);
}

.pigkoz-detail-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 4px 8px;
    order: 1;
    z-index: 1;
}
.pigkoz-detail-info h2,
.pigkoz-detail-info p:first-child {
    color: #46362a;
    font-size: 1.7rem;
    margin: 0 0 12px 0;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.3px;
}
.pigkoz-detail-info p {
    color: #8d7a68;
    font-size: .95rem;
    margin: 6px 0;
    line-height: 1.7;
}
.pigkoz-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
    margin-bottom: 12px;
}

/* ─────── Game Instructions / Article blocks ─────── */
.pigkoz-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 20px;
    background: #ffffff;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid #f1e4d1;
    box-shadow: 0 1px 2px rgba(96, 64, 30, .05), 0 6px 20px rgba(96, 64, 30, .06);
}
.pigkoz-game-instructions p {
    color: #8d7a68;
    line-height: 1.75;
    font-size: .95rem;
}

/* ─────── Play Button ─────── */
.pigkoz-game-gameplay-button {
    display: flex;
    background: linear-gradient(135deg, #ff7a45 0%, #ff5d8f 100%);
    border-radius: 999px;
    padding: 12px 44px;
    width: fit-content;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 24px rgba(255, 122, 69, .35), inset 0 -3px 0 rgba(146, 46, 20, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
    margin: 0 auto;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.pigkoz-game-gameplay-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
}
.pigkoz-game-gameplay-button:hover::after {
    left: 130%;
}
.pigkoz-game-gameplay-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 30px rgba(255, 122, 69, .42), inset 0 -3px 0 rgba(146, 46, 20, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.pigkoz-game-gameplay-button:active {
    transform: translateY(1px) scale(.99);
}
.pigkoz-game-gameplay-button img {
    width: 50px;
    height: 50px;
    transition: transform .3s ease;
    filter: drop-shadow(0 2px 4px rgba(96, 40, 20, .25));
}
.pigkoz-game-gameplay-button:hover img {
    transform: scale(1.08) rotate(8deg);
}
.pigkoz-game-gameplay-button p {
    color: #fff;
    margin: 0 14px 0 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .3px;
    text-shadow: 0 1px 2px rgba(146, 46, 20, .3);
}

/* ─────── Game Iframe Page ────── */
.pigkoz-game-iframe {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100vh;
    position: relative;
    background: #faf5ed;
}
#iframe-menu-btn {
    margin-top: 20px;
    margin-left: 60px;
    position: absolute;
    height: 40px;
}
#iframe-back-btn {
    margin-top: 20px;
    margin-left: 20px;
    position: absolute;
    height: 44px;
    cursor: pointer;
    filter: brightness(0) saturate(100%) invert(63%) sepia(87%) saturate(2196%) hue-rotate(338deg) brightness(101%) contrast(94%);
    opacity: .8;
    transition: transform .2s ease, opacity .2s ease;
    padding: 10px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #f1e4d1;
    box-sizing: content-box;
    box-shadow: 0 2px 10px rgba(96, 64, 30, .12);
}
#iframe-back-btn:hover {
    opacity: 1;
    transform: scale(1.06);
    background: #fff3e3;
}

/* ─────── News / Article Pages ─────── */
.pigkoz-news-detail {
    color: #8d7a68;
    text-align: start;
    padding: 28px 22px;
    margin: 20px 16px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #f1e4d1;
    box-shadow: 0 1px 2px rgba(96, 64, 30, .05), 0 6px 20px rgba(96, 64, 30, .06);
}
.pigkoz-news-detail img {
    width: 100%;
    object-fit: contain;
    border-radius: 12px;
}
.pigkoz-news-detail h3 {
    color: #46362a;
    font-size: 1.55rem;
    margin: 0 0 8px;
    padding-bottom: 14px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #ffb830, #ff5d8f, transparent) 1;
    font-weight: 800;
    letter-spacing: -.3px;
    line-height: 1.3;
}
.pigkoz-news-detail h4 {
    color: #ef5f28;
    font-size: 1.12rem;
    margin: 28px 0 10px 0;
    font-weight: 800;
    position: relative;
    padding-left: 14px;
}
.pigkoz-news-detail h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: linear-gradient(180deg, #ffb830, #ff5d8f);
    border-radius: 3px;
}
.pigkoz-news-detail p {
    color: #8d7a68;
    font-size: .94rem;
    line-height: 1.8;
    margin: 10px 0;
}
.pigkoz-news-detail a {
    color: #ef5f28;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 122, 69, .45);
    transition: color .2s ease, border-color .2s ease;
}
.pigkoz-news-detail a:hover {
    color: #ff5d8f;
    border-bottom-color: rgba(255, 93, 143, .6);
}
.pigkoz-news-detail ul {
    padding-left: 22px;
    margin: 10px 0;
}
.pigkoz-news-detail li {
    color: #8d7a68;
    margin: 8px 0;
    font-size: .92rem;
    line-height: 1.7;
}
.pigkoz-news-detail li::marker {
    color: #ff7a45;
}
.pigkoz-news-detail strong {
    color: #46362a;
    font-weight: 700;
}

/* ─────── 404 Page ─────── */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}
.error-page h1 {
    font-size: 2em;
    color: #46362a;
    margin: 12px 0;
}
.error-page p {
    font-size: 1.1em;
    color: #8d7a68;
    padding: .5rem 1rem;
}
.error-page img {
    width: 100%;
    max-width: 320px;
    padding: 1.5rem;
}

/* ─────── Game Mark / New Badge ─────── */
.pigkoz-game-mark {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: 4vh;
    position: absolute;
    border-radius: 0 0 8px 8px;
    top: -10px;
    left: -10px;
    z-index: 2;
}
.pigkoz-game-mark img {
    width: 50px;
    height: 25px;
}
.pigkoz-game-new {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: 4vh;
    position: absolute;
    border-radius: 0 0 8px 8px;
    top: 0;
    left: -10px;
    z-index: 2;
}
.pigkoz-game-new img {
    width: 50px;
    height: 50px;
}
.pigkoz-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0 10px;
    font-weight: 600;
}

#pigkoz-game-body {
    margin-top: 24px;
}

/* ─────── Iframe Menu (in-page) ─────── */
.iframe-menu {
    display: flex;
    width: 60%;
    flex-direction: column;
    gap: 0;
    background: #fffdf9;
    position: absolute;
    align-items: stretch;
    height: 100vh;
    top: 0;
    right: 0;
    z-index: 8;
    margin: 0;
    list-style: none;
    display: none;
    padding: 10px;
    border-radius: 14px 0 0 14px;
    box-shadow: -6px 0 24px rgba(96, 64, 30, .14);
    border: 1px solid #f1e4d1;
}
.iframe-menu.open {
    display: flex;
    flex-direction: column;
}
.iframe-menu li a {
    font-size: .95rem;
    color: #8d7a68;
    text-decoration: none;
    font-weight: 600;
    transition: color .25s, padding-left .25s;
    padding: 10px 16px;
    display: block;
    border-radius: 10px;
}
.iframe-menu li a:hover {
    color: #ef5f28;
    background: #fff3e3;
    padding-left: 22px;
}

.iframe-list-item a {
    display: flex;
    flex-direction: row;
    margin: 0;
    justify-content: space-between;
    align-items: center;
}
.iframe-list-item a img {
    margin: 0;
    height: 40px;
    width: 40px;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}
.iframe-list-item a p {
    margin: 0 16px;
    position: relative;
    color: #46362a;
}
.iframe-list-item-close a {
    display: flex;
    flex-direction: row;
    margin: 0;
    justify-content: flex-end;
    align-items: center;
}
.iframe-list-item-close img {
    margin: 0;
    height: 40px;
    width: 40px;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
    cursor: pointer;
}
#iframe-close-btn {
    right: 0;
    top: 0;
}

/* ────── Touch / Interaction ────── */
@media (hover: none) and (pointer: coarse) {
    .pigkoz-game-item:active {
        transform: translateY(-2px) scale(.98);
        box-shadow: 0 4px 12px rgba(255, 122, 69, .18);
    }
    .pigkoz-game-cover img:active {
        transform: scale(1.03);
    }
    .recommend-item-btn:active {
        transform: translateY(-2px) scale(.97);
    }
    #back-top:active,
    #back-home:active {
        transform: scale(.9);
    }
}

.pigkoz-game-item,
.recommend-item-btn,
.pigkoz-common-recommend-title,
.pigkoz-game-gameplay-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

/* ─────── Animations ─────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pigkoz-game-item {
    animation: fadeInUp .45s ease both;
}
.pigkoz-game-item:nth-child(1) { animation-delay: .05s; }
.pigkoz-game-item:nth-child(2) { animation-delay: .1s; }
.pigkoz-game-item:nth-child(3) { animation-delay: .15s; }
.pigkoz-game-item:nth-child(4) { animation-delay: .2s; }
.pigkoz-game-item:nth-child(5) { animation-delay: .25s; }
.pigkoz-game-item:nth-child(6) { animation-delay: .3s; }

/* ─────── Responsive ─────── */
@media (max-width: 480px) {
    .pigkoz-game-item-div {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .pigkoz-recommend-content,
    .pigkoz-recommend-content-hot {
        grid-template-columns: repeat(2, 1fr);
    }
    .pigkoz-game-detail-title {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }
    #flow {
        bottom: 76px;
        right: 10px;
    }
    .pigkoz-nav-subtitle {
        display: none;
    }
    .pigkoz-navbar {
        height: 60px;
    }
    .pigkoz-nav-logo img {
        height: 38px;
        width: 38px;
        border-radius: 12px;
    }
    .pigkoz-nav-title {
        font-size: 1.08rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .pigkoz-game-item-div {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .pigkoz-recommend-content,
    .pigkoz-recommend-content-hot {
        grid-template-columns: repeat(4, 1fr);
    }
}
