/*
Theme Name: Gameplay Free
Description: A game portal theme for Gameplay Free.
Version: 1.0
Text Domain: gameplayfree
*/
:root{--ink:#211b30;--muted:#77708d;--surface:#f6f5f8;--line:#eae9ed;--orange:#ff7900;--bg:#fff}*{box-sizing:border-box}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{margin:0;background:var(--bg);color:var(--ink);font-family:inherit;font-size:16px;line-height:1.45}body.dark{--ink:#f5f2fa;--muted:#aaa4ba;--surface:#292733;--line:#393641;--bg:#191820}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}.topbar{height:76px;position:fixed;z-index:10;top:0;left:0;right:0;background:var(--bg);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 25px;gap:20px}.brand{width:170px;flex:none;font-weight:1000;line-height:.77;color:#ffdb10;font-size:21px;letter-spacing:-1.4px;text-shadow:-2px -2px #753400,2px -2px #753400,-2px 2px #753400,2px 2px #753400;transform:rotate(-3deg)}.brand span{display:block;background:#ff7900;color:#fff;width:80px;text-align:center;margin:5px 0 0 7px;padding:4px;font-size:15px;letter-spacing:1px;border:2px solid #873c00}form.search{margin:auto;display:flex;align-items:center;width:min(432px,45vw);background:var(--surface);border:1px solid var(--line);border-radius:30px;padding:0 16px;color:var(--muted)}form.search input{border:0;outline:0;background:transparent;color:var(--ink);padding:13px;width:100%}.header-actions{display:flex;gap:12px}.round,.mode{border:0;background:var(--surface);color:#a49eaf;border-radius:50px;height:42px;min-width:42px}.mode{padding:0 16px;color:var(--orange)}.sidebar{position:fixed;top:76px;bottom:0;left:0;width:200px;overflow:auto;padding:28px 12px;background:var(--bg)}.nav-link{display:flex;align-items:center;gap:16px;padding:15px 16px;border-radius:30px;color:var(--muted);min-height:54px}.nav-link.active,.nav-link:hover{background:var(--surface);color:var(--ink)}.nav-link .icon{width:24px;text-align:center;font-size:21px;color:var(--orange)}.nav-divider{height:1px;background:var(--line);margin:12px}.content{margin-left:200px;padding:112px 3% 0;max-width:2100px}.section{margin-bottom:30px}.section h2{font-size:20px;line-height:1.2;margin:0 0 8px}.section h2.accent{color:#ff9300}.grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.game-card{position:relative;display:block;border-radius:8px;overflow:hidden;aspect-ratio:193/116;background:#e4e1e9;box-shadow:0 3px 7px #0002;transition:transform .16s}.game-card:hover{transform:translateY(-3px)}.game-card.featured{grid-column:span 2;grid-row:span 2}.game-art{position:absolute;inset:0;background-repeat:no-repeat;background-image:var(--art);background-size:cover;background-position:center}.game-card .game-title{position:absolute;inset:auto 0 0;padding:22px 8px 7px;background:linear-gradient(transparent,#000b);font-size:13px;font-weight:bold;color:white;opacity:0;transition:opacity .2s}.game-card:hover .game-title,.game-card:focus .game-title{opacity:1}.badge{position:absolute;top:0;left:0;background:linear-gradient(120deg,#ffb800,#ff5b26);color:#fff;font-size:12px;line-height:22px;font-weight:bold;padding:0 7px;border-radius:7px 0 7px 0;z-index:1}.badge.new{background:#6242e8}.intro{background:var(--surface);padding:48px;border-radius:16px;color:var(--muted);margin:34px 0 90px;line-height:1.6}.intro h1,.intro h2{color:var(--ink);font-size:21px}.intro a{color:#ff4f35}.footer{border-top:1px solid var(--line);padding:25px 0 70px;display:flex;justify-content:space-between;color:var(--muted);font-size:14px}.footer-links{display:flex;gap:30px;flex-wrap:wrap}.empty{background:var(--surface);border-radius:12px;padding:35px;color:var(--muted)}.player-layout{display:grid;grid-template-columns:160px minmax(0,1fr) 330px;gap:8px}.rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}.rail.left{grid-template-columns:1fr}.player{aspect-ratio:16/9;background:#252133;position:relative;overflow:hidden}.player-bg{position:absolute;inset:-20px;background-image:var(--art);background-size:cover;background-position:center;filter:blur(10px) brightness(.45)}.player-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff}.player-cover img{width:26%;border-radius:14px}.player-cover h1{font-size:28px;margin:16px}.play-button{background:white;color:#ff513b;border:0;border-radius:16px;padding:15px 42px;font-size:25px;font-weight:bold}.player iframe{position:absolute;width:100%;height:100%;border:0}.player-bar{background:var(--surface);padding:12px;display:flex;justify-content:space-between;gap:10px}.player-bar button{border:0;background:none;color:var(--ink);font-size:20px}.stars{color:#ff9215}.game-info{margin:30px 0}.menu-button{display:none}.screen-reader-text{position:absolute;left:-9999px}@media(max-width:1200px){.grid{grid-template-columns:repeat(6,minmax(0,1fr))}.player-layout{grid-template-columns:120px minmax(0,1fr)}.rail.right{display:none}}@media(max-width:800px){.sidebar{display:none}.sidebar.open{display:block;z-index:12;box-shadow:5px 10px 20px #0002}.menu-button{display:block;border:0;background:none;color:var(--ink);font-size:23px}.brand{width:105px;font-size:17px}.brand span{font-size:12px;width:65px}.topbar{padding:0 12px;gap:8px}form.search{width:auto;flex:1}.content{margin-left:0;padding:100px 16px 0}.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.player-layout{display:block}.rail.left{display:none}.intro{padding:25px}.footer{gap:25px;flex-direction:column}}@media(max-width:480px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.header-actions .round{display:none}.mode{min-width:36px;padding:0 10px}form.search input{min-width:0}.player-cover h1{font-size:19px}.play-button{font-size:18px;padding:10px 25px}}

/* Navigation artwork and interface icons */
.ui-icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.ui-icon.filled{fill:currentColor;stroke:none}.nav-link .icon{width:24px;height:24px;flex:none}.nav-link .nav-utility{color:#aaa5b5}.nav-link.active .nav-utility{color:var(--ink)}.category-icon{object-fit:contain}.mode{display:flex;align-items:center;gap:8px;padding:3px 3px 3px 12px;color:#aaa5b5}.mode .moon{width:17px;height:17px;stroke-width:1.5}.sun-disc{height:36px;width:36px;display:grid;place-items:center;background:linear-gradient(135deg,#ffac00,#ff602d);color:white;border-radius:50%}.sun-disc .ui-icon{width:18px;height:18px}.search-icon{width:19px;height:19px}
/* Keep interface SVGs at their intended size even when other styles target svg. */
.topbar svg.ui-icon,.sidebar svg.ui-icon,.player-bar svg.ui-icon{display:block;max-width:none;vertical-align:middle;overflow:visible;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.topbar svg.ui-icon.filled,.sidebar svg.ui-icon.filled,.player-bar svg.ui-icon.filled{fill:currentColor;stroke:none}
.topbar svg.ui-icon{width:20px;height:20px}.sidebar svg.ui-icon{width:24px;height:24px}.player-bar svg.ui-icon{width:20px;height:20px}
.sidebar .nav-link svg.nav-utility{color:#aaa5b5}.sidebar .nav-link.active svg.nav-utility{color:var(--ink)}
.topbar .sun-disc svg.ui-icon{width:18px;height:18px}.topbar .mode svg.moon{width:17px;height:17px}
.my-games-overlay{position:fixed;inset:76px 0 0;background:rgba(35,30,45,.48);z-index:20}.my-games-panel{position:fixed;z-index:21;right:10px;top:84px;bottom:8px;width:min(400px,calc(100vw - 20px));background:var(--bg);color:var(--ink);border-radius:8px;box-shadow:0 8px 30px #0003;overflow:auto}.my-games-overlay[hidden],.my-games-panel[hidden],.my-games-empty[hidden],.my-games-grid .game-card[hidden]{display:none}.my-games-header{height:60px;border-bottom:1px solid var(--line);display:flex;justify-content:center;align-items:center;position:relative}.my-games-header h2{font-size:18px;margin:0}.my-games-close{position:absolute;right:17px;top:10px;border:0;background:none;color:var(--ink);font-size:28px;line-height:1}.my-games-tabs{display:flex;margin:15px 8px 0;border-bottom:2px solid var(--line)}.my-games-tabs button{flex:1;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);padding:12px 4px;margin-bottom:-2px}.my-games-tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:#1675ff}.my-games-content{padding:16px 9px}.my-games-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.my-games-empty{margin:20px auto;text-align:center;font-weight:1000;font-size:clamp(48px,7vw,78px);line-height:.8;letter-spacing:-4px;color:#fff;-webkit-text-stroke:2px #ff7900;paint-order:stroke fill;filter:drop-shadow(5px 5px 0 #ff6223)}.my-games-empty span{display:block}.my-games-empty span:first-child{transform:rotate(-4deg)}.my-games-empty span:last-child{transform:rotate(3deg)}
@media(max-width:480px){.header-actions .my-games-open{display:grid}.my-games-panel{top:84px}.my-games-empty{font-size:60px}}

.my-games-empty{margin:20px auto;filter:none}.my-games-empty img{display:block;width:100%;height:auto}
.my-games-loading{margin:32px 0;text-align:center;color:rgb(255,147,0);font-weight:600}.my-games-loading[hidden]{display:none}.section h2 a{color:var(--ink);transition:color .15s ease}.section h2 a:hover,.section h2 a:focus-visible{color:rgb(255,147,0)}
/* Game player */
.sidebar{scrollbar-width:none;-ms-overflow-style:none}.sidebar::-webkit-scrollbar{display:none}
.player-main{min-width:0}.player-cover-art{width:26%;aspect-ratio:193/116;border-radius:14px;background-image:var(--art);background-position:center;background-size:cover;background-repeat:no-repeat;box-shadow:0 4px 20px #0004}.player-cover h1{text-align:center}.player-bar{min-height:48px;align-items:center;flex-wrap:wrap}.player-label,.player-controls,.rating{display:flex;align-items:center}.player-label{gap:8px;flex-wrap:wrap}.player-controls{gap:12px}.player-bar .rating-star{padding:0;font-size:23px;line-height:1;color:#c7c3cb}.player-bar .rating-star.selected{color:#ff9215}.rating-value{font-size:15px;margin-left:5px}.player-bar .player-controls button,.player-control{display:grid;place-items:center;padding:2px;border:0;background:none;color:var(--ink)}.player-control svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}.player-controls button:hover,.player-control:hover{color:#ff7900}.player-recommendations{margin-top:16px;grid-template-columns:repeat(6,minmax(0,1fr))}.player-layout.theater{grid-template-columns:minmax(0,1fr)}.player-layout.theater>.rail{display:none}.game-comments{margin:30px 0;padding:24px;background:var(--surface);border-radius:12px}.game-comments h2{font-size:20px}.game-comments textarea,.game-comments input:not([type=submit]){max-width:100%;border:1px solid var(--line);border-radius:6px;padding:10px;background:var(--bg);color:var(--ink)}.game-comments input[type=submit]{background:#ff7900;color:white;border:0;border-radius:6px;padding:10px 18px;cursor:pointer}.comment-list{padding-left:24px}.comment-list li{margin-bottom:18px}@media(max-width:600px){.player-cover-art{width:35%}.player-bar{gap:10px}.player-controls{gap:10px}.player-recommendations{grid-template-columns:repeat(3,minmax(0,1fr))}}
.game-content{padding-top:84px}.player-bar .rating-star{display:flex;width:24px;height:24px;flex:none;background:url('assets/icons/star-off-big.png') center/contain no-repeat}.player-bar .rating-star[data-state=on]{background-image:url('assets/icons/star-on-big.png')}.player-bar .rating-star[data-state=half]{background-image:url('assets/icons/star-half-big.png')}.player-bar .rating-star button{display:block;width:50%;height:100%;padding:0;border:0;background:transparent}.player-bar .rating-star button:focus-visible{outline:2px solid #1675ff;outline-offset:1px}.rating-value{min-width:2em}@media(max-width:800px){.game-content{padding-top:84px}}
.brand{display:block;transform:none;text-shadow:none;line-height:normal}.brand img{display:block;width:100px;max-width:100%;height:auto}.player-label>strong,.player-label .rating-value{font-size:18px}@media(max-width:800px){.brand img{width:85px}}
.player-controls button,.player-controls .player-control{transition:color .15s ease,transform .15s ease}.player-controls button:hover,.player-controls .player-control:hover{color:#fa4a35;transform:scale(1.12)}.player-controls button[aria-pressed=true]{color:#fa4a35}.player-bar .player-controls .like{display:flex;align-items:center;gap:5px}.player-controls .like-count{font-size:16px;font-weight:700;color:inherit}.player-controls .like-count[hidden]{display:none}
/* Sidebar proportions and theater lighting */
html{font-family:'Open Sans',serif}.sidebar{width:220px}.sidebar .nav-link{font-family:inherit;font-size:16px}.content{margin-left:220px}.player-layout.theater{grid-template-columns:160px minmax(0,1fr) 330px}.player-layout.theater>.rail{display:grid}.theater-overlay{position:fixed;inset:0;background:rgba(25,22,29,.82);z-index:30}.theater-overlay[hidden]{display:none}.player-layout.theater .player,.player-layout.theater .player-bar{position:relative;z-index:31}.player-layout.theater .player-bar{background:var(--surface)}
@media(max-width:1200px){.player-layout.theater{grid-template-columns:120px minmax(0,1fr)}.player-layout.theater>.rail.right{display:none}}
@media(max-width:800px){.content{margin-left:0}.player-layout.theater{display:block}.player-layout.theater>.rail.left{display:none}}
.sidebar{overflow-y:auto;overscroll-behavior:contain}.category-label{line-height:1.35}
.footer{padding:24px 24px 75px;align-items:flex-start;font-size:16px}.footer-brand p{margin-top:30px;font-size:14px;color:#a29cb1}.footer-nav{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:100px;width:52%}.footer-nav div{display:flex;flex-direction:column;gap:12px}.footer-nav a:hover{color:#ff9300}.footer-nav .footer-request{color:#fa4a35}@media(max-width:800px){.footer{padding:24px 0 60px}.footer-nav{width:100%;gap:30px}}@media(max-width:420px){.footer-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
.my-game-item{position:relative;min-width:0}.my-game-item[hidden]{display:none}.my-game-item .game-card{width:100%}.my-game-remove{position:absolute;right:-5px;top:-5px;z-index:2;width:24px;height:24px;border:0;border-radius:50%;background:#fa4a35;color:#fff;font-size:23px;line-height:20px;padding:0}.my-game-remove:hover{background:#d83827}.my-game-remove:focus-visible{outline:2px solid #1675ff;outline-offset:2px}
/* Header controls */
.topbar{height:76px;padding:0 25px}.topbar .my-games-open{width:46px;height:46px;flex:none}.topbar .my-games-open .ui-icon{width:22px;height:22px}.header-actions{align-items:center;gap:24px}.topbar .mode{position:relative;width:88px;height:48px;padding:0;display:flex;align-items:center;justify-content:space-around;gap:0;isolation:isolate}.topbar .mode::before{content:'';position:absolute;z-index:-1;top:4px;left:44px;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#ffac00,#ff602d);transition:transform .3s cubic-bezier(.22,.8,.25,1)}.topbar .mode .moon{width:20px;height:20px;color:#aaa5b5;transition:color .25s}.topbar .mode .sun-disc{width:40px;height:40px;background:none;color:white}.topbar .mode .sun-disc .ui-icon{width:20px;height:20px;transition:color .25s}body.dark .topbar .mode::before{transform:translateX(-40px)}body.dark .topbar .mode .moon{color:#fff}body.dark .topbar .mode .sun-disc{color:#aaa5b5}@media(max-width:800px){.topbar{padding:0 12px}.header-actions{gap:8px}}@media(max-width:480px){.topbar .my-games-open{width:40px;height:40px}.topbar .mode{width:76px;height:42px}.topbar .mode::before{width:34px;height:34px;left:38px}.topbar .mode .sun-disc{width:34px;height:34px}body.dark .topbar .mode::before{transform:translateX(-34px)}}@media(prefers-reduced-motion:reduce){.topbar .mode::before,.topbar .mode .moon,.topbar .mode .sun-disc .ui-icon{transition:none}}
/* Consistent SVG rendering and accessible focus states. */
svg.ui-icon{display:block;flex:none;shape-rendering:geometricPrecision;stroke-linecap:round;stroke-linejoin:round}.player-controls .ui-icon{width:22px;height:22px}.topbar .menu-button{padding:6px}.topbar .menu-button .ui-icon{width:24px;height:24px}.my-games-open:focus-visible,.mode:focus-visible,.menu-button:focus-visible,.player-controls button:focus-visible,.player-control:focus-visible{outline:2px solid #ff9300;outline-offset:3px}
.topbar .my-games-open .ui-icon{width:24px;height:24px}.topbar .mode .moon{width:16px;height:16px;stroke-width:1}.topbar .mode .sun-disc .ui-icon{width:16px;height:16px;stroke-width:1.8}
/* Center each theme icon over its corresponding switch position. */
.topbar .mode{display:block}.topbar .mode .moon{position:absolute;left:16px;top:50%;transform:translate(-50%,-50%);margin-left:8px}.topbar .mode .sun-disc{position:absolute;left:64px;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center}.topbar .mode .sun-disc .ui-icon{display:block}@media(max-width:480px){.topbar .mode .moon{left:21px;margin-left:0}.topbar .mode .sun-disc{left:55px}}
/* Page scrollbar starts below the fixed header. */
html{height:100%;overflow:hidden}body{height:100%;overflow:hidden}.content{height:calc(100vh - 76px);overflow-y:auto;overflow-x:hidden;position:relative;top:76px;padding-top:36px;scrollbar-width:thin;scrollbar-color:#aaa5b5 transparent}.content.game-content{padding-top:8px}.content::-webkit-scrollbar{width:6px}.content::-webkit-scrollbar-track{background:transparent}.content::-webkit-scrollbar-thumb{background:#aaa5b5;border-radius:8px}.content::-webkit-scrollbar-button{display:none;width:0;height:0}@media(max-width:800px){.content{padding-top:24px}.content.game-content{padding-top:8px}}
/* Scrollbar and sidebar details */
.content{scrollbar-color:#aaa5b5 transparent}.content::-webkit-scrollbar{width:4px}.content::-webkit-scrollbar-track,.content::-webkit-scrollbar-track:hover{background:transparent}.content::-webkit-scrollbar-thumb,.content::-webkit-scrollbar-thumb:hover,.content::-webkit-scrollbar-thumb:active{background:#aaa5b5;border:0;border-radius:8px;min-height:170px}.content::-webkit-scrollbar-button,.content::-webkit-scrollbar-button:single-button,.content::-webkit-scrollbar-button:vertical:start,.content::-webkit-scrollbar-button:vertical:end{display:none;width:0;height:0;background:transparent}.sidebar .nav-link,.sidebar .nav-link:hover,.sidebar .nav-link:focus-visible{color:#766c87}.topbar .my-games-open:hover{color:#fa4a35}
body.dark .sidebar .nav-link,body.dark .sidebar .nav-link:hover,body.dark .sidebar .nav-link:focus-visible{color:#989899}.content::-webkit-scrollbar-thumb:hover,.content::-webkit-scrollbar-thumb:active{background-color:#aaa5b5;box-shadow:none}form.search{transition:border-color .2s ease,box-shadow .2s ease}form.search:hover,form.search:focus-within{border-color:#ff9300;box-shadow:0 0 0 3px rgba(255,147,0,.18)}@media(prefers-reduced-motion:reduce){form.search{transition:none}}
/* Chromium and Safari: use the custom scrollbar instead of the native thin variant. */
@supports selector(::-webkit-scrollbar){.content{scrollbar-width:auto;scrollbar-color:auto}.content::-webkit-scrollbar{width:4px;background:transparent}.content::-webkit-scrollbar-track,.content::-webkit-scrollbar-track-piece{background:transparent;border:0}.content::-webkit-scrollbar-thumb,.content::-webkit-scrollbar-thumb:hover,.content::-webkit-scrollbar-thumb:active{background:#aaa5b5;border:0;border-radius:8px;min-height:170px;box-shadow:none}.content::-webkit-scrollbar-button,.content::-webkit-scrollbar-button:single-button,.content::-webkit-scrollbar-button:double-button,.content::-webkit-scrollbar-button:vertical:start:decrement,.content::-webkit-scrollbar-button:vertical:end:increment{display:none!important;width:0!important;height:0!important;background:none!important;border:0!important}}
/* Square game artwork and hover preview. */
.game-card{aspect-ratio:1/1}.game-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .2s;pointer-events:none}.game-preview.is-playing{opacity:1}.game-card-info{position:absolute;inset:auto 0 0;padding:35px 9px 9px;color:white;background:linear-gradient(transparent,rgba(0,0,0,.9));opacity:0;transition:opacity .2s;pointer-events:none}.game-card:hover .game-card-info,.game-card:focus-visible .game-card-info{opacity:1}.game-card-name{display:block;font-size:14px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-card-details{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px;margin-top:4px}.game-card-category{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-card-rating{white-space:nowrap}.game-card-rating>span:first-child{color:#ffad17}.my-games-grid .game-card{aspect-ratio:1/1}@media(hover:none){.game-card-info{opacity:1}}
.game-comments{scroll-margin-top:20px;padding:16px;border:1px solid #777080;background:var(--bg);border-radius:12px;outline:0}.game-comments .comment-reply-title{margin:0 0 14px;font-size:20px}.game-comments .comment-form p{margin:0 0 14px}.game-comments .comment-form input[type=text],.game-comments .comment-form input[type=email],.game-comments .comment-form textarea{display:block;width:100%;max-width:100%;padding:12px 15px;background:#fff;color:#211b30;border:1px solid #d2d0d6;border-radius:4px;font-family:inherit;font-size:14px}.game-comments .comment-form textarea{min-height:82px;resize:vertical}.game-comments .comment-terms{font-size:15px}.game-comments .comment-terms input{margin:0 5px 0 0;vertical-align:middle}.game-comments .comment-terms a{text-decoration:underline}.game-comments .comment-form input[type=submit]{background:#fa4a35;border-radius:4px;padding:10px 14px}.game-comments .comment-form input[type=submit]:hover{background:#e83927}

/* Compact game grids across screen sizes. */
.grid{grid-template-columns:repeat(12,minmax(0,1fr))}
@media(max-width:1200px){.grid{grid-template-columns:repeat(10,minmax(0,1fr))}}
@media(max-width:800px){.grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:480px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Invite players to start with a gentle heartbeat. */
.play-button{animation:play-heartbeat 1.8s ease-in-out infinite;transition:background-color .2s,color .2s}
.play-button:hover,.play-button:focus-visible{background:var(--orange);color:#fff}
.play-button:focus-visible{outline:3px solid #fff;outline-offset:3px}
@keyframes play-heartbeat{0%,100%{transform:scale(1)}14%{transform:scale(1.08)}28%{transform:scale(1)}42%{transform:scale(1.05)}56%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.play-button{animation:none;transition:none}}

/* Match the game thumbnail shape in the player cover. */
.player-cover-art{aspect-ratio:1/1}

/* Game controls and description. */
.player-controls .ui-icon{width:27px;height:27px;stroke-width:2.5}
.player-controls .ui-icon.filled{stroke:currentColor;stroke-width:1.2}
.player-bar .rating-star{width:28px;height:28px}
.rating-value{font-size:17px;font-weight:700;margin-left:7px}
.game-info{font-size:16px;line-height:1.75;overflow-wrap:anywhere}
.game-info h2,.game-info h3,.game-info h4{color:var(--ink);line-height:1.3;margin:1.5em 0 .55em}
.game-info h2{font-size:24px}.game-info h3{font-size:20px}.game-info h4{font-size:17px}
.game-info p{margin:0 0 1em;white-space:pre-line}
.game-info ul,.game-info ol{padding-left:1.5em;margin:0 0 1em}
.game-info li{margin:.3em 0}.game-info a{color:var(--orange);text-decoration:underline}
.player-controls .ui-icon{width:31px;height:31px;stroke-width:3}
.player-controls .ui-icon.filled{stroke-width:1.8}
/* Override the shared player-bar SVG dimensions and stroke. */
.player-bar .player-controls svg.ui-icon{width:31px;height:31px;stroke-width:3}
.player-bar .player-controls svg.ui-icon.filled{stroke:currentColor;stroke-width:1.8}

/* Game details below the recommendations. */
.game-info{margin:46px 0 30px;padding:46px 48px;background:var(--surface);border-radius:16px;color:var(--muted);font-size:16px;line-height:1.6}
.game-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:14px;line-height:1.4}
.game-breadcrumb a{color:#fa4a35;text-decoration:none}.game-breadcrumb a:hover{text-decoration:underline}
.game-breadcrumb span{color:#c6c2cc}.game-info .game-info-title{margin:14px 0 16px;color:var(--ink);font-size:28px;font-weight:600;line-height:1.25}
.game-categories{display:flex;flex-wrap:wrap;gap:8px}.game-category-pill{display:inline-flex;align-items:center;gap:8px;padding:2px 16px 2px 2px;border-radius:24px;background:var(--line);color:var(--ink);font-size:16px;font-weight:600;text-decoration:none}
.game-category-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--bg);box-shadow:0 2px 5px #0002;color:#aaa5b5}.game-category-icon svg{width:20px;height:20px;fill:currentColor;stroke:var(--bg);stroke-width:1.5}.game-category-count{color:#fa4a35;font-weight:400}
.game-description{margin-top:48px}.game-description:empty{display:none}.game-description p{margin:0 0 1em}.game-description h2,.game-description h3,.game-description h4{font-weight:600}
@media(max-width:600px){.game-info{margin-top:30px;padding:28px 22px}.game-info .game-info-title{font-size:24px}.game-description{margin-top:32px}}
.player-bar .player-controls svg.ui-icon{width:22px;height:22px;stroke-width:2}
.player-bar .player-controls svg.ui-icon.filled{stroke:none}

/* Keep player actions readable and usable at every screen size. */
.player-bar .player-controls svg.ui-icon{stroke-width:2.3}
.player-bar .player-controls svg.ui-icon.filled{stroke:currentColor;stroke-width:.35}
.player-controls .like-count{color:var(--ink)}
.player-label{min-width:0}.player-label strong{overflow-wrap:anywhere}.player-controls{flex-wrap:wrap}
@media(max-width:800px){.player-layout.theater{display:block}.player-layout.theater>.rail{display:none}.player-bar{gap:10px}.player-controls{gap:8px}.player-bar .player-controls button,.player-bar .player-controls .player-control{min-width:36px;min-height:36px}}
@media(max-width:480px){.player-bar{padding:10px}.player-label{width:100%}.player-controls{width:100%;justify-content:space-between;gap:4px}.player-bar .rating-star{width:25px;height:25px}.rating-value{font-size:15px}}

.request-overlay[hidden]{display:none}.request-overlay{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.44);display:flex;align-items:center;justify-content:center;padding:20px;overflow-y:auto}.request-dialog{position:relative;width:480px;max-width:100%;max-height:100%;overflow-y:auto;background:#fff;color:#5e5a62;border-radius:10px;padding:32px 48px 40px}.request-close{position:absolute;right:18px;top:12px;border:0;background:none;color:#111;font-size:28px;line-height:1;padding:3px}.request-art{display:block;width:100%;height:auto;margin:0 auto 32px}.request-form{display:grid;gap:32px}.request-form label{display:grid;gap:14px;font-size:14px}.request-form input:not([type=hidden]){width:100%;height:56px;border:1px solid transparent;border-radius:8px;background:#f2f1f5;padding:0 16px;color:#26212c;outline:none}.request-form input:focus{border-color:#ff995b}.request-submit{height:56px;border:0;border-radius:8px;background:linear-gradient(110deg,#ffe7a3,#ffc0ac);color:#fff;font-size:18px;font-weight:700}.request-submit:hover{filter:saturate(1.3)}.request-submit:disabled{opacity:.65;cursor:wait}.request-message{margin:-12px 0;color:#a3422c;font-size:14px}.request-message.success{color:#288253}body.request-open{overflow:hidden}@media(max-width:520px){.request-dialog{padding:28px 24px 32px}.request-art{max-width:340px;margin-bottom:20px}.request-form{gap:22px}}

/* Responsive layout for tablets and touch screens. */
@media(max-width:1100px){
  .footer-nav{width:60%;gap:32px}
  .grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:1024px){
  .topbar{padding:0 16px;gap:12px}
  .topbar .menu-button{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;background:none;color:var(--ink)}
  .topbar .brand{width:96px}
  .topbar .brand img{width:90px}
  .topbar form.search{width:auto;min-width:0;flex:1;max-width:432px}
  .sidebar{display:none;z-index:25;width:min(280px,85vw);box-shadow:5px 10px 20px #0003}
  .sidebar.open{display:block}
  .content{margin-left:0;padding-left:20px;padding-right:20px}
  .player-layout,.player-layout.theater{display:block}
  .player-layout>.rail,.player-layout.theater>.rail{display:none}
  .player-recommendations{grid-template-columns:repeat(6,minmax(0,1fr))}
  .player-controls .theater-mode{display:none!important}
}
@media(max-width:700px){
  .topbar{gap:6px;padding:0 10px}
  .topbar .brand{width:76px}
  .topbar .brand img{width:76px}
  .topbar form.search{padding:0 10px}
  .topbar form.search input{padding:11px 8px;font-size:16px}
  .header-actions{gap:6px}
  .topbar .my-games-open{width:42px;height:42px}
  .content{padding-left:14px;padding-right:14px}
  .grid,.player-recommendations{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  .game-card-info{padding:24px 6px 6px}
  .game-card-name{font-size:12px}
  .game-card-details{font-size:11px}
  .footer{flex-direction:column;gap:24px;padding:24px 0 40px}
  .footer-brand p{margin-top:16px}
  .footer-nav{width:100%;gap:20px}
  .intro{padding:24px;margin:20px 0 45px;overflow-wrap:anywhere}
  .player-bar .player-controls button,.player-bar .player-controls .player-control{min-width:44px;min-height:44px}
  .player-label{width:100%}
  .player-controls{width:100%;justify-content:space-between}
  .game-comments .comment-form input[type=text],.game-comments .comment-form input[type=email],.game-comments .comment-form textarea{font-size:16px}
}
@media(max-width:480px){
  .topbar .brand{width:62px}
  .topbar .brand img{width:62px}
  .topbar .mode{display:none}
  .topbar form.search{flex:1}
  .topbar .menu-button{width:40px}
  .grid,.player-recommendations{grid-template-columns:repeat(3,minmax(0,1fr))}
  .game-card-details{display:none}
  .player-cover-art{width:30%;max-height:35%}
  .player-cover h1{font-size:clamp(16px,4.5vw,20px);margin:8px}
  .play-button{font-size:16px;padding:9px 22px}
  .game-info{padding:24px 18px}
  .game-comments{padding:14px}
  .my-games-panel{right:0;top:76px;bottom:0;width:min(400px,100vw);border-radius:0}
  .request-overlay{padding:12px}
  .request-dialog{max-height:calc(100dvh - 24px)}
}
@media(max-width:350px){
  .topbar .brand{width:48px}
  .topbar .brand img{width:48px}
  .topbar .search-icon{display:none}
  .grid,.player-recommendations{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Mobile navigation and search drawers. */
.mobile-search-open,.sidebar-mobile-header{display:none}.sidebar-backdrop[hidden],.mobile-search-overlay[hidden],.mobile-search-panel[hidden]{display:none}
@media(max-width:700px){
  .topbar{height:86px;padding:0 10px;display:flex;justify-content:space-between}
  .topbar .brand{position:absolute;left:50%;transform:translateX(-50%);width:65px}
  .topbar .brand img{width:65px}
  .topbar>form.search{display:none}
  .header-actions{margin-left:auto;gap:12px}
  .mobile-search-open{display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;background:none;color:var(--muted)}
  .mobile-search-open .ui-icon{width:24px;height:24px}
  .topbar .mode{display:none}
  .content{top:86px;height:calc(100vh - 86px);height:calc(100dvh - 86px);padding:40px 10px 0}
  .content.game-content{padding-top:0}
  .sidebar-backdrop{position:fixed;inset:0;z-index:24;background:rgba(35,30,45,.48)}
  .sidebar{top:0;bottom:0;width:min(290px,85vw);padding:12px;z-index:25;border-radius:0 16px 16px 0}
  .sidebar-mobile-header{height:52px;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
  .sidebar-close,.mobile-search-close{border:0;background:none;color:var(--ink);font-size:28px;line-height:1;width:40px;height:40px;padding:0}
  .sidebar-mode-slot .mode{display:block}
  .sidebar .nav-link{min-height:48px;padding:10px 12px}
  .sidebar .category-label br{display:none}
  .sidebar .category-label br:after{content:' '}
  .sidebar .category-label{white-space:nowrap}
  .sidebar .category-label br+*{display:inline}
  .grid,.player-recommendations{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .grid .game-card,.player-recommendations .game-card{aspect-ratio:193/116}
  .grid .game-card.featured{grid-column:auto;grid-row:auto}
  .game-card-info{display:none}
  .section h2{font-size:20px}
  .mobile-search-overlay{position:fixed;inset:0;z-index:40;background:rgba(35,30,45,.48)}
  .mobile-search-panel{position:fixed;z-index:41;right:0;top:0;bottom:0;width:min(315px,85vw);padding:16px 12px;background:var(--bg);border-radius:16px 0 0 16px}
  .mobile-search-close{display:block;margin:4px 0 16px auto}
  .mobile-search-form{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:30px;background:var(--surface);padding:0 14px;color:var(--muted)}
  .mobile-search-form input[type=search]{width:100%;min-width:0;height:46px;border:0;outline:0;background:none;color:var(--ink);font-size:16px}
  .my-games-overlay{inset:0;z-index:40}.my-games-panel{top:0;bottom:0;right:0;width:min(315px,85vw);border-radius:16px 0 0 16px;z-index:41}
  .footer-brand{width:100%;text-align:center}.footer-brand .brand{width:auto}.footer-brand .brand img{width:65px;margin:auto}.footer-brand p{margin:8px 0 0}.footer-nav{grid-template-columns:1fr 1fr;gap:20px}.footer-nav div:last-child{align-items:flex-end;text-align:right}
  .player{aspect-ratio:373/450}
  .player-cover-art{width:69%;max-height:none;aspect-ratio:193/116}
  .player-cover h1{font-size:26px;margin:16px 0}
  .play-button{font-size:24px;padding:16px 42px}
  .player-bar{justify-content:center;padding:4px 10px 8px;gap:0}
  .player-label{justify-content:center}.player-label>strong{display:none}
  .player-controls{justify-content:center;gap:0}
  .player-bar .player-controls button,.player-bar .player-controls .player-control{min-width:44px;min-height:40px}
  .player-recommendations{margin:16px 20px 0}
}
@media(max-width:700px){
  .sidebar-mode-slot .mode{position:relative;width:88px;height:48px;padding:0;display:block;isolation:isolate}
  .sidebar-mode-slot .mode::before{content:'';position:absolute;z-index:-1;top:4px;left:44px;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#ffac00,#ff602d);transition:transform .3s}
  .sidebar-mode-slot .mode .moon{position:absolute;left:24px;top:50%;width:16px;height:16px;transform:translate(-50%,-50%);color:#aaa5b5}
  .sidebar-mode-slot .mode .sun-disc{position:absolute;left:64px;top:50%;width:40px;height:40px;transform:translate(-50%,-50%);background:none;color:#fff}
  body.dark .sidebar-mode-slot .mode::before{transform:translateX(-40px)}
  body.dark .sidebar-mode-slot .mode .moon{color:#fff}
  body.dark .sidebar-mode-slot .mode .sun-disc{color:#aaa5b5}
}
@media(max-width:700px){.sidebar.open{z-index:25}}
@media(max-width:700px){.player-cover-art{width:30%;max-width:120px;aspect-ratio:1/1}}
@media(max-width:700px){.grid .game-card,.player-recommendations .game-card{aspect-ratio:1/1}}
@media(max-width:700px){.grid,.player-recommendations{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:350px){.grid,.player-recommendations{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep side recommendations within the height of the game player. */
@media(min-width:1025px){
  .player-layout{position:relative}
  .player-layout>.player-main{grid-column:2}
  .player-layout>.rail{position:absolute;top:0;bottom:0;overflow:hidden}
  .player-layout>.rail.left{left:0;width:160px;grid-auto-rows:160px}
  .player-layout>.rail.right{right:0;width:330px;grid-auto-rows:161px}
}
@media(min-width:1025px) and (max-width:1200px){
  .player-layout>.rail.left{width:120px;grid-auto-rows:120px}
}
.player-recommendations{margin-top:8px}
@media(max-width:700px){.player-recommendations{margin:8px 0 0}}

/* Exit control stays inside the fullscreen player, above the game frame. */
.fullscreen-exit{display:none}
.player:fullscreen>.fullscreen-exit{position:absolute;display:grid;place-items:center;top:16px;right:16px;z-index:10;width:44px;height:44px;padding:10px;border:0;border-radius:9px;color:#fff;background:rgba(0,0,0,.55);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.player:fullscreen>.fullscreen-exit:hover{background:rgba(0,0,0,.75)}
.player:fullscreen>.fullscreen-exit:focus-visible{outline:2px solid #fff;outline-offset:2px}
.fullscreen-exit svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

/* Search results use the same square game artwork as the home page. */
.gf-search-results{min-height:calc(100% - 36px)}
.gf-search-results h2{font-size:22px;font-weight:600;margin:0 0 20px}
.gf-search-results .grid{grid-template-columns:repeat(auto-fill,minmax(150px,170px));gap:8px}
.gf-search-results .grid .game-card{aspect-ratio:1/1}
@media(max-width:700px){
  .gf-search-results{min-height:calc(100% - 40px)}
  .gf-search-results h2{font-size:20px;margin-bottom:16px;overflow-wrap:anywhere}
  .gf-search-results .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Align the search results page to the reference layout. */
@media(min-width:1025px){
  body.search .content{padding:46px 30px 0}
  body.search .gf-search-results{min-height:calc(100% - 46px)}
}

/* Category archives */
.gf-category-results .grid{grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-flow:dense}
.gf-category-results .grid .game-card{aspect-ratio:1/1}
.gf-category-results .grid .game-card.featured{grid-column:span 2;grid-row:span 2}
.gf-category-pagination{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:32px 0 70px}
.gf-category-pagination a{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--surface);color:var(--ink);font-weight:700}
.gf-category-pagination a.current{background:linear-gradient(135deg,#ffb51c,#ff6240);color:#fff}
@media(max-width:1100px){.gf-category-results .grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:700px){.gf-category-results .grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:350px){.gf-category-results .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.gf-category-description .game-breadcrumb{font-family:inherit;font-size:14px}
.gf-category-description .game-breadcrumb a{color:var(--orange);text-decoration:none;transition:opacity .2s ease}
.gf-category-description .game-breadcrumb a:hover{opacity:.7}
.gf-category-description .game-breadcrumb span{color:var(--muted);opacity:.7;font-size:13px}

/* Game artwork remains square across all layouts. */
.game-card,.grid .game-card,.player-recommendations .game-card,.player-cover-art{aspect-ratio:1/1}
/* Align game content with the header. */
.content{padding-top:26px}
.content.game-content{padding-top:0}
@media(max-width:700px){.content{padding-top:30px}.content.game-content{padding-top:0}}
@media(min-width:1025px){body.search .content{padding-top:36px}}
.content{padding-top:12px}
.content.game-content{top:74px;height:calc(100vh - 74px);padding-top:0}
@media(min-width:1025px){body.search .content{padding-top:20px}}
@media(max-width:700px){.content{padding-top:16px}.content.game-content{top:84px;height:calc(100vh - 84px);height:calc(100dvh - 84px);padding-top:0}}
/* Anchor the game viewport directly below the header divider. */
.content.game-content{position:fixed;top:80px;right:0;bottom:0;left:220px;height:auto;margin-left:0;padding-top:0}
@media(max-width:1024px){.content.game-content{left:0}}
@media(max-width:700px){.content.game-content{top:87px;height:auto}}
/* Page content has square corners and a smaller top inset. */
body.page .intro{border-radius:0;padding-top:24px;padding-bottom:24px;margin-top:0}
@media(max-width:700px){body.page .intro{padding-top:16px;padding-bottom:16px;margin-top:0}}
/* Space below short page content keeps the footer below the viewport. */
body.page:not(.home) .intro>:first-child{margin-top:0}
body.page:not(.home) .intro>:last-child{margin-bottom:0}

/* Keep the footer below the first viewport without stretching content panels. */
.gf-content-body{min-height:100%;padding-bottom:24px}

.gf-empty-games:not([hidden]){display:flex;justify-content:center;align-items:center;background:transparent;padding:48px 16px}
.gf-empty-games img{display:block;width:min(320px,65%);height:auto}
@media(max-width:700px){.gf-empty-games:not([hidden]){padding:32px 12px}.gf-empty-games img{width:min(240px,75%)}}

.gf-recent-empty:not([hidden]){flex-direction:column;gap:18px}
.gf-recent-empty img{width:min(434px,100%);height:auto;aspect-ratio:434/234;object-fit:contain}
.gf-recent-empty p{margin:0;color:var(--ink);font-size:18px;font-weight:600}
@media(max-width:700px){.gf-recent-empty img{width:min(434px,100%)}}
.sidebar .nav-link.active,.sidebar .nav-link.active:hover,.sidebar .nav-link.active:focus-visible,body.dark .sidebar .nav-link.active{background:var(--surface);color:var(--ink);font-weight:600}

.gf-category-description a{transition:opacity .2s ease}
.gf-category-description a:hover{opacity:.7}

/* Show the preview over the game artwork once playback starts. */
.player-cover-art{overflow:hidden;position:relative}.player-cover-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none}.player-cover-video.is-playing{opacity:1}

.player-cover .play-button{position:relative;z-index:1;flex-shrink:0}

/* Language selector: understated and consistent with existing portal styling. */
.gf-lang-switch{display:flex;flex-direction:column;gap:7px;min-width:170px;font-family:inherit;font-size:13px;color:var(--ink,#39313f)}
.gf-lang-switch label{font-weight:700;opacity:.75}
.gf-lang-switch select{appearance:auto;background:var(--surface,#fff);color:var(--ink,#39313f);border:1px solid #d9d5df;border-radius:10px;min-height:42px;padding:8px 12px;font:inherit;width:100%;max-width:230px;cursor:pointer}
.gf-lang-switch select:focus-visible{outline:2px solid #ff9300;outline-offset:2px}
.gf-lang-mobile{display:none}
.gf-lang-footer{margin-left:auto;align-self:flex-start}
@media(max-width:1100px){.gf-lang-footer{margin-left:0}}
@media(max-width:700px){.gf-lang-mobile{display:flex;margin:18px 8px 24px;padding:16px 12px;border-top:1px solid #e7e2ea}.gf-lang-mobile select{max-width:none}.gf-lang-footer{margin:4px auto 0;width:min(100%,280px);align-items:center}.gf-lang-footer select{max-width:none}.footer{flex-wrap:wrap}}
body.dark .gf-lang-switch select{border-color:#63596c}

/* Homepage sections show six rows of three games on mobile. */
/*@media(min-width:701px){*/
/*  .gf-home-new > .game-card:nth-child(n+17),*/
/*  .gf-home-eight > .game-card:nth-child(n+9){display:none}*/
/*}*/
@media(max-width:700px){
  .grid.gf-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .grid.gf-home-grid .game-card.featured{grid-column:auto;grid-row:auto}
}