/* Strona gry (spiele.php) - w stylu boksów ze strony głównej */

/* Duży magentowy boks z grą (jak "Premium Sex Games") */
.gp-stage { background: #fb1bbf; border-radius: 8px; padding: 0 5px 5px; margin: 8px 0 0; }
.gp-stage-head { height: 30px; line-height: 30px; color: #fff; font-size: 16px; font-weight: bold; padding: 0 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-stage-head .gp-pad { display: inline-block; width: 30px; height: 15px; margin: 0 7px 0 0; vertical-align: -2px; background: url("images/games_tiles.png") -12px -437px no-repeat; }
.gp-stage-inner { background: #fff; border-radius: 5px; padding: 8px; }
.gp-stage .game-box { margin: 0 auto; max-width: 100%; }
.gp-stage .game-box object, .gp-stage .game-box ruffle-object { display: block; width: 100%; height: auto; }
.gp-toolbar { margin: 5px 0 0; background: #fdc9fc; border-radius: 5px; padding: 5px 6px; text-align: center; font-size: 11px; color: #555; }
.gp-btn { display: inline-block; margin: 0 2px; padding: 3px 10px; border: 0; border-radius: 3px; background: #fb1bbf; color: #fff; font-size: 12px; font-weight: bold; font-family: inherit; cursor: pointer; }
.gp-btn:hover { background: #d4009c; }
.gp-hint { display: inline-block; margin: 0 8px; }

/* Boksy pod grą (jak kategorie na stronie głównej) */
.gp-box { border: 3px solid #fca5fa; border-radius: 8px; background: #fff; padding: 6px 10px 10px; margin: 10px 0 0; }
.gp-box h3 { margin: 4px 0 8px !important; padding: 2px 6px !important; background: #fca5fa; border: 1px solid #f580f0; border-radius: 4px; font-size: 12px !important; font-weight: bold; color: #000; }
.gp-box p { margin: 0 2px; font-size: 12px; line-height: 1.5; text-align: justify; }

.gp-related { margin: 0 !important; padding: 0 !important; overflow: hidden; }
.gp-related li { float: left; width: 145px; height: 136px; margin: 0 5px 5px 0; padding: 5px; background: #fdc9fc; border: 1px solid #f5a3ef; border-radius: 5px; box-sizing: border-box; list-style: none; overflow: hidden; }
.gp-related li a { color: #036; font-size: 11px; }
.gp-related img { display: block; width: 133px; height: 100px; margin: 0 0 3px; object-fit: cover; object-position: top; border: 0; }
.gp-more { display: block; clear: both; margin: 6px 0 0; padding: 0 0 0 17px; background: url("images/bullet_blue_right-1.gif") no-repeat 0 1px; font-weight: bold; color: #036; }

.gp-ads { margin-top: 10px; overflow: hidden; }

@media (max-width: 1000px) {
	.gp-stage { padding: 0 4px 4px; }
	.gp-stage-inner { padding: 4px; }
	.gp-toolbar { padding: 6px; }
	.gp-btn { padding: 8px 14px; font-size: 13px; }
	.gp-hint { display: block; margin: 5px 0 0; }
	.gp-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
	.gp-related li { float: none; width: auto; height: auto; margin: 0; }
	.gp-related img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
}

/* Pasek boczny: różowe ramki jak pozostałe boksy; kolejność reklam i list */
#sideBar.gp-side { display: flex !important; flex-direction: column; }
.gp-side .boxContent { border: 3px solid #fca5fa; border-radius: 8px; background: #fff; padding: 6px 10px 10px; margin: 10px 0 0; box-sizing: border-box; }
.gp-side .boxContent h3 { margin: 4px 0 8px !important; padding: 2px 6px !important; background: #fca5fa; border: 1px solid #f580f0; border-radius: 4px; font-size: 12px !important; font-weight: bold; color: #000; }
.gp-side .boxContent hr { display: none; }
.gp-side .boxContent ol { margin: 0 0 0 4px; padding-left: 22px; }
.gp-side .boxContent li { padding: 2px 0; font-size: 12px; }
.gp-side .ad-space-right-game { margin: 10px 0 0; }
.gp-adbox { margin: 10px 0 0; padding: 5px; border: 1px solid #f5a3ef; border-radius: 5px; background: #fdc9fc; text-align: center; box-sizing: border-box; }
.gp-adbox iframe { display: block; margin: 0 auto; max-width: 100%; background: transparent !important; }
.gp-adbox img { max-width: 100%; height: auto; }
.gp-o-ad4 { order: 1; } .gp-o-vip { order: 2; } .gp-o-ad5 { order: 3; } .gp-o-top { order: 4; } .gp-o-ad2 { order: 5; } .gp-o-ad3 { order: 6; }
@media (max-width: 1000px) {
	.gp-o-vip { order: 1; } .gp-o-top { order: 2; } .gp-o-ad4 { order: 3; } .gp-o-ad5 { order: 4; }
}

/* Stopka: ten sam ciemny, zaokrąglony boks, ale bez ucinanego tła i pustego pasa */
#footer { width: 971px !important; max-width: calc(100% - 16px) !important; height: auto !important; margin: 10px auto 14px !important; padding: 0 !important; background: #434343 !important; border: 1px solid #666; border-radius: 8px; box-sizing: border-box; overflow: hidden; }
#footer .center { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; padding: 8px 6px 6px !important; border-bottom: 1px dotted #888; }
#footer .center a { color: #fff; padding: 8px 10px !important; font-size: 12px; }
#footer .center a:hover { color: #fca5fa; text-decoration: none; }
#footer p { margin: 0 !important; padding: 10px !important; font-size: 11px; }
@media (max-width: 1000px) {
	#footer { margin: 10px 8px 14px !important; max-width: none !important; width: auto !important; }
	#footer .center a { padding: 10px 12px !important; font-size: 13px; }
}

/* Klawiatura ekranowa (tylko urządzenia dotykowe) */
.gp-keys-toggle { display: none; }
.gp-keys { margin: 5px 0 0; padding: 8px; background: #fdc9fc; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; gap: 10px; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.gp-keys[hidden] { display: none; }
.gp-keys-pad { display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(2, 48px); gap: 5px; }
.gp-key { border: 1px solid #f580f0; border-radius: 6px; background: #fff; color: #A106A7; font-size: 18px; font-weight: bold; font-family: inherit; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; }
.gp-key.on { background: #fb1bbf; border-color: #fb1bbf; color: #fff; }
.gp-key-up { grid-column: 2; grid-row: 1; }
.gp-key-left { grid-column: 1; grid-row: 2; }
.gp-key-down { grid-column: 2; grid-row: 2; }
.gp-key-right { grid-column: 3; grid-row: 2; }
.gp-keys-act { display: flex; flex-direction: column; gap: 5px; flex: 1; max-width: 170px; }
.gp-key-wide { height: 48px; font-size: 14px; }
@media (max-width: 1000px), (hover: none) and (pointer: coarse) {
	.gp-keys-toggle { display: inline-block; }
}
