
      .logo{
        height: 60px;
        width:  60px;
      }

      h1{
        margin-top: 30px;
        text-align: center;
      }

      hr{
        width: 40%;
      }

      h4{
        text-align: center;
        font-style: italic;

      }

      h6{
            text-align: center;
            font-style: italic;
      }

      .container{
        margin-top: 70px;
        padding-left: 7vw;
        padding-right: 7vw;
      }

      .row img{
        height: 230px ;
        width: 220px;
      }

      .box{
        margin-top: 10px;
      }

      .footer{
		position: relative;
        background-color: #14BDAC;
        color: white ;
        height: 80px;
      }

	  .footer-inside{
		  position: absolute;
		  margin: 0;
		  top: 50%;
		  left: 50%;
		  margin-right: -50%;
		  transform: translate(-50%, -50%)
	  }

      .icon{
        float: right;
        margin-right: 20px;
        font-size: 20px;
      }

      a{
        text-decoration: none;
        color: inherit;
      }

    .box h4{

         margin-top: 10px;
    }

	.rotate {
	  animation: rotation 8s infinite linear;
	}

	@keyframes rotation {
	  from {
		transform: rotate(0deg);
	  }
	  to {
		transform: rotate(359deg);
	  }
	}

	.rcorners1 {
	  padding: 20px;
	  width: 200px;
	  height: 150px;
	}


	.shadow {
	   -moz-box-shadow:    inset 0 0 100px #000000;
	   -webkit-box-shadow: inset 0 0 100px #000000;
	   box-shadow:         inset 0 0 100px #000000;
	}

	.change{
		-ms-transform: rotate(360deg); /* IE 9 */
		-webkit-transform: rotate(360deg); /* Chrome, Safari, Opera */
		transform: rotate(360deg);
		transition-duration: 5s;
	}

	html {
		margin: 0;
		width: 100%;
	}

	body {
		width: 100%;
		margin: 0;
		overflow-x: hidden;
	}

	img {
		border-radius: 50%;
		width:200px;
	}

	.footer {
	  position: fixed;
	  left: 0;
	  bottom: 0;
	  height: 32px;
	  width: 100%;
	  background-color: #343a40;
	  padding-top: 4px;
	  padding-bottom: 8px;
	}

	.initial {
	  all: initial;
	  * {
		all: unset;
	  }
	}

	/* Create three equal columns that floats next to each other */
	.left-side-column {
	  float: left;
	  margin-left: auto;
	  margin-right: auto;
	  width: 18%;
	  height:96%;
	  /*border: 4px solid red;*/
	  padding: 16px;
	}

	.right-side-column {
	  float: left;
	  margin-left: auto;
	  margin-right: auto;
	  width: 18%;
	  height:96%;
	  /*border: 4px solid red;*/
	  padding: 16px;
	}

	.center-column {
	  float: left;
	  margin-left: auto;
	  margin-right: auto;
	  width: 64%;
	  height:100%;
	  padding: 10px;
	 /* border: 4px solid blue;*/

	}

	/* Clear floats after the columns */
	.row:after {
	  content: "";
	  display: table;
	  clear: both;

	}

	#outerdiv {
	  position: relative;
	  width: 100%;
	  height: 100%;
	  top:0px;
	 /* border: 2px solid yellow;*/
	}
	#innerdiv {
	  position: absolute;
	  width: 100%;
	  height: 100%;
	  top:-32px;
	 /* border: 2px solid orange;*/
	}



	.game-shell-fit {
		display: flex;
		flex-direction: column;
		height: 100%;
		min-height: 0;
	}

	.game-shell-fit .game-tagline {
		flex: 0 0 auto;
	}

	.game-shell-fit #outerdiv {
		flex: 1 1 auto;
		height: auto;
		min-height: 0;
	}

	.game-shell-fit #innerdiv,
	.game-shell-fit .game-frame-holder {
		height: 100%;
		min-height: 0;
		position: relative !important;
		top: 0 !important;
		width: 100%;
	}

	.game-shell-fit iframe {
		display: block;
		height: 100% !important;
		min-height: 0 !important;
		width: 100% !important;
	}

	@media (max-width: 767.98px) {
		.game-shell-fit {
			height: calc(100vh - 190px);
			height: calc(100svh - 190px);
		}
	}

	@media (max-width: 575.98px) {
		.game-shell-fit {
			height: 70vh;
			height: 70svh;
		}
	}
	#cont {
		display: table;
		margin-left: 0;
	    margin-right: auto;
		/*height: 640px;*/
		height:86vh;
		width: 100%;
	}

	#cont-side {
		border-style: dashed;
		background-image: url('http://i.stack.imgur.com/cXciH.png');
		background-position: top right;
		background-size: 16px 16px;
		background-repeat: no-repeat;
		border-top: 3px dashed black;
		margin-left: 0;
		margin-right: auto;
		width:100%;
		height:auto;
	min-height:225px;
	}

	#cont-side-left {
		display: flex;
		flex-flow: column;
		height:100%;
		width:100%;
	}

	.glow-on-hover {
		border:1px solid #fff;
		height: 176px;
		width:176px;
		border-radius:50%;
		-moz-border-radius:50%;
		-webkit-border-radius:50%;
		margin-top:32px;
		margin-bottom:64px;
		margin-left:32px;

		outline: none;
		font-size: 24px;
		color: #fff;
		background: linear-gradient(115deg, #ff1744, #ff9100, #ffea00, #00e676, #00b0ff, #651fff, #d500f9, #ff1744);
		background-size: 400% 400%;
		animation: glowing 12s linear infinite;
		cursor: pointer;
		position: relative;
		z-index: 0;
		font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
		isolation: isolate;
		-moz-box-shadow:    inset 0 0 28px rgba(0, 0, 0, 0.28), 0 12px 26px rgba(37, 40, 80, 0.22);
		-webkit-box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.28), 0 12px 26px rgba(37, 40, 80, 0.22);
		box-shadow:         inset 0 0 28px rgba(0, 0, 0, 0.28), 0 12px 26px rgba(37, 40, 80, 0.22);
		text-shadow: 0 2px 7px rgba(0, 0, 0, 0.42);
	}

	.glow-on-hover:before {
		content: '';
		background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
		position: absolute;
		top: -2px;
		left:-2px;
		background-size: 400%;
		z-index: -1;
		filter: blur(16px);
		width: calc(100% + 4px);
		height: calc(100% + 4px);
		animation: glowing 64s linear infinite;
		opacity: 1;
		transition: opacity 128s ease-in-out;
		border-radius: 50%;
		font-weight: bold;
		font-size: 32px;
	}

	.glow-on-hover:active {
		filter: blur(16px);
		animation: glowing 64s linear infinite;
	}

	.glow-on-hover:active:after {
		filter: blur(16px);
		animation: glowing 64s linear infinite;
	}

	.glow-on-hover:hover:before {
		filter: blur(16px);
		animation: glowing 64s linear infinite;
		opacity: 1;
	}

	.glow-on-hover:after {
		filter: blur(16px);
		animation: glowing 64s linear infinite;
	}

	@keyframes glowing {
		0% { background-position: 0 0; }
		50% { background-position: 400% 0; }
		100% { background-position: 0 0; }
	}

    .glow-on-cont {
		z-index:-999;
		top:-32px;
		left:-32px;
		background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
		position: fixed;
		background-size: 400%;
		filter: blur(16px);
		width: calc(100% + 32px);
		height: calc(100% + 32px);
		animation: glowing 20s linear infinite;
		transition: opacity .3s ease-in-out;
		opacity: 0.4;
	}
	/* Mobile visibility fixes */
	*, *::before, *::after {
		box-sizing: border-box;
	}

	img {
		max-width: 100%;
	}

	#cont:after {
		content: "";
		display: block;
		clear: both;
	}

	iframe {
		display: block;
		max-width: 100%;
	}

	@media (max-width: 991.98px) {
		body {
			overflow-x: auto;
		}


	#cont {
			display: flex;
			flex-direction: column;
			height: auto;
			min-height: calc(100vh - 56px);
			padding: 0 12px 24px;
			width: 100%;
		}

		.left-side-column,
		.center-column,
		.right-side-column {
			float: none;
			height: auto;
			margin-left: 0;
			margin-right: auto;
			padding: 12px 0;
			width: 100%;
		}

		.center-column {
			order: 1;
		}

		.left-side-column {
			order: 2;
		}

		.right-side-column {
			order: 3;
		}

		.row {
			margin-left: 0;
			margin-right: 0;
		}

		.row img {
			aspect-ratio: 22 / 23;
			height: auto;
			max-width: 100%;
			object-fit: cover;
			width: min(220px, 100%);
		}

		h1.poz {
			align-items: center;
			display: flex;
			flex-wrap: wrap;
			font-size: 2rem;
			gap: 8px;
			justify-content: center;
			line-height: 1.2;
		}

		h1.poz .logo {
			flex: 0 0 auto;
			height: 72px !important;
			width: 72px !important;
		}

		#cont-side-left {
			height: auto;
		}

		#cont-side {
			background-image: none;
			height: auto;
			min-height: 96px;
			padding: 12px;
		}

		.glow-on-hover {
			display: block;
			height: min(176px, 62vw);
			margin: 24px auto 32px;
			width: min(176px, 62vw);
		}

		#outerdiv {
			height: calc(100vh - 190px);
			height: calc(100svh - 190px);
			min-height: 0;
			position: relative;
		}

		#innerdiv {
			height: 100%;
			position: relative !important;
			top: 0 !important;
		}

		#outerdiv iframe {
			height: 100% !important;
			min-height: inherit;
			width: 100% !important;
		}

		.footer {
			height: auto !important;
			min-height: 44px;
			padding: 10px 12px;
			position: static !important;
			text-align: center;
		}

		.footer-inside {
			margin: 0;
			position: static;
			text-align: center;
			transform: none;
		}

		.icon {
			display: inline-block;
			float: none;
			margin: 8px 10px 0;
		}
	}

	@media (max-width: 575.98px) {

	#cont {
			padding-left: 10px;
			padding-right: 10px;
		}

		h1.poz {
			font-size: 1.65rem;
		}

		h4 {
			font-size: 1rem;
		}

		hr {
			width: 76%;
		}

		.box {
			margin-bottom: 18px;
		}

		#outerdiv {
			height: 70vh;
			height: 70svh;
			min-height: 0;
		}
	}
	/* Admin and ad management */
	.promo-slot,
.ad-slot {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.82);
    display: flex;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.promo-placeholder,
.ad-placeholder {
    display: inline-block;
    padding: 8px;
}

.promo-card,
.ad-card {
    align-items: stretch;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: flex-start;
    min-height: 100%;
    padding: 8px;
    text-decoration: none;
    width: 100%;
}

.promo-card:hover,
.ad-card:hover {
    color: #007bff;
    text-decoration: none;
}

.promo-card-image-frame,
.ad-card-image-frame {
    background: #fff;
    border-radius: 6px;
    display: block;
    flex: 0 0 auto;
    height: clamp(140px, 22vw, 230px);
    overflow: hidden;
    width: 100%;
}

.promo-card-image,
.ad-card-image {
    border-radius: 0;
    display: block;
    height: 100%;
    max-width: none;
    object-fit: var(--ad-image-fit, cover);
    object-position: var(--ad-image-x, 50%) var(--ad-image-y, 50%);
    transform: scale(var(--ad-image-scale, 1));
    transform-origin: center;
    width: 100%;
}

.promo-card-title,
.ad-card-title {
    display: block;
    font-size: 0.86rem;
    line-height: 1.25;
    padding: 0 4px;
}

.promo-card-description,
.ad-card-description {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    padding: 0 4px;
}
.admin-page {
		background: #f6f8fb;
		min-height: calc(100vh - 32px);
		padding: 28px 16px 84px;
	}

	.admin-page.admin-login-page {
		align-items: center;
		display: flex;
		justify-content: center;
		min-height: calc(100vh - 96px);
		padding: 32px 16px 88px;
	}

	.admin-panel {
		background: #fff;
		border: 1px solid #dde4ee;
		border-radius: 8px;
		box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
		margin: 0 auto;
		max-width: 1040px;
		padding: 24px;
		width: 100%;
	}

	.admin-login-panel {
		background: transparent;
		border: 0;
		box-shadow: none;
		max-width: 440px;
		padding: 0;
	}

	.admin-panel-header {
		align-items: center;
		display: flex;
		gap: 16px;
		justify-content: space-between;
		margin-bottom: 18px;
	}

	.admin-login-page .admin-panel-header {
		justify-content: center;
		margin-bottom: 14px;
	}

	.admin-panel h1,
	.admin-panel h2 {
		margin-top: 0;
		text-align: left;
	}

	.admin-login-page .admin-panel-header h1 {
		color: #64748b;
		font-size: 1rem;
		font-weight: 700;
		margin: 0;
		text-align: center;
	}

	.admin-login-form,
	.admin-slot {
		border: 1px solid #d8dde3;
		border-radius: 8px;
		padding: 18px;
	}

	.admin-login-form {
		background: #fff;
		box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
		padding: 28px;
	}

	.admin-login-mark {
		align-items: center;
		background: #111827;
		border-radius: 50%;
		color: #fff;
		display: flex;
		font-weight: 800;
		height: 54px;
		justify-content: center;
		margin: 0 auto 16px;
		width: 54px;
	}


	.admin-robot-label {
		background: #f8fafc;
		border: 1px solid #dbe4f0;
		border-radius: 6px;
		padding: 12px;
	}

	.admin-robot-challenge {
		align-items: center;
		background: #111827;
		border-radius: 6px;
		color: #fff;
		display: flex;
		font-size: 1.25rem;
		font-weight: 800;
		justify-content: center;
		letter-spacing: 0;
		margin-top: 8px;
		min-height: 44px;
	}

	.admin-login-form h2 {
		font-size: 1.55rem;
		margin-bottom: 18px;
		text-align: center;
	}

	.admin-slot-grid {
		display: grid;
		gap: 18px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin: 16px 0;
	}

	.admin-slot legend {
		font-weight: 700;
		padding: 0 6px;
	}

	.admin-image-preview {
		background: #f8fafc;
		border: 1px solid #e2e8f0;
		border-radius: 8px;
		margin: 0 0 14px;
		padding: 12px;
	}

	.admin-image-preview-title {
		color: #64748b;
		display: block;
		font-size: 0.82rem;
		font-weight: 800;
		margin-bottom: 8px;
		text-transform: uppercase;
	}

	.admin-placement-grid {
		display: grid;
		gap: 12px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-bottom: 14px;
	}

	.admin-placement-grid label {
		margin-bottom: 0;
	}

	.admin-panel label {
		color: #334155;
		display: block;
		font-weight: 700;
		margin-bottom: 14px;
	}

	.admin-panel input[type="email"],
	.admin-panel input[type="text"],
	.admin-panel input[type="url"],
	.admin-panel input[type="password"],
	.admin-panel input[type="number"],
	.admin-panel input[type="file"],
	.admin-panel select,
	.admin-panel textarea {
		background: #fff;
		border: 1px solid #b8c0cc;
		border-radius: 6px;
		display: block;
		font: inherit;
		margin-top: 6px;
		padding: 11px 12px;
		transition: border-color 160ms ease, box-shadow 160ms ease;
		width: 100%;
	}

	.admin-panel input[type="email"]:focus,
	.admin-panel input[type="text"]:focus,
	.admin-panel input[type="url"]:focus,
	.admin-panel input[type="password"]:focus,
	.admin-panel input[type="number"]:focus,
	.admin-panel select:focus,
	.admin-panel textarea:focus {
		border-color: #2563eb;
		box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
		outline: 0;
	}

	.admin-check-label {
		align-items: center;
		display: flex !important;
		gap: 8px;
	}

	.admin-check-label input {
		margin: 0;
	}

	.admin-primary-button,
	.admin-secondary-button {
		border: 0;
		border-radius: 6px;
		cursor: pointer;
		font-weight: 800;
		padding: 11px 16px;
	}

	.admin-primary-button {
		background: #2563eb;
		color: #fff;
	}

	.admin-login-form .admin-primary-button {
		width: 100%;
	}

	.admin-primary-button:hover,
	.admin-primary-button:focus {
		background: #1d4ed8;
	}

	.admin-secondary-button {
		background: #343a40;
		color: #fff;
	}

	.admin-alert {
		border-radius: 6px;
		margin: 12px 0;
		padding: 12px;
	}

	.admin-alert-success {
		background: #e8f6ed;
		color: #166534;
	}

	.admin-alert-error {
		background: #fdecec;
		color: #991b1b;
	}

	.admin-hint {
		color: #64748b;
		font-size: 0.95rem;
		line-height: 1.5;
		margin: 4px 0 18px;
		text-align: center;
	}

	@media (max-width: 767.98px) {
		.admin-panel {
			padding: 18px;
		}

		.admin-login-panel {
			padding: 0;
		}

		.admin-panel-header {
			align-items: flex-start;
			flex-direction: column;
		}

		.admin-login-page .admin-panel-header {
			align-items: center;
		}

		.admin-slot-grid,
		.admin-placement-grid {
			grid-template-columns: 1fr;
		}
	}
	/* OpenProject-inspired footer */
	.footer.app-footer {
		--op-footer-bg: rgba(248, 250, 252, 0.96);
		--op-footer-border: #e5e7eb;
		--op-footer-text: #111827;
		--op-footer-muted: #6b7280;
		--op-footer-accent: #2563eb;
		align-items: center;
		background: var(--op-footer-bg);
		border-top: 1px solid var(--op-footer-border);
		box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.05);
		color: var(--op-footer-text);
		display: flex;
		font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
		height: auto;
		min-height: 48px;
		padding: 10px clamp(14px, 2vw, 24px);
		z-index: 10;
	}

	.footer-line {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
		gap: 0.45rem 0.7rem;
		justify-content: center;
		text-align: center;
		width: 100%;
	}

	.footer-meta {
		color: var(--op-footer-muted);
		font-size: 0.875rem;
		line-height: 1.35;
	}
	.footer-since {
		margin-left: 0.28rem;
		white-space: nowrap;
	}

	.footer-app-version {
		color: var(--op-footer-muted);
		font-size: 0.78rem;
		font-weight: 700;
		line-height: 1;
		position: absolute;
		right: clamp(14px, 2vw, 24px);
		top: 50%;
		transform: translateY(-50%);
		white-space: nowrap;
	}

	.footer-version-pill {
		align-items: center;
		background: #ffffff;
		border: 1px solid var(--op-footer-border);
		border-radius: 999px;
		color: var(--op-footer-text);
		display: inline-flex;
		font-size: 0.74rem;
		font-weight: 700;
		letter-spacing: 0.02em;
		line-height: 1.35;
		padding: 0.1rem 0.5rem;
	}

	.footer-lilya-link {
		background: linear-gradient(135deg, var(--op-footer-accent) 0%, #0f172a 100%);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		font-family: Arial, "Plus Jakarta Sans", sans-serif;
		font-size: 1.2rem;
		font-weight: 700;
		letter-spacing: 0.01em;
		line-height: 1;
		text-decoration: none;
	}

	.footer-lilya-link:hover {
		color: transparent;
		filter: brightness(1.08);
		text-decoration: none;
	}

	.footer-social-links {
		align-items: center;
		display: inline-flex;
		gap: 0.55rem;
		margin-left: 0;
	}

	.footer-social-link {
		color: var(--op-footer-muted);
		display: inline-flex;
		line-height: 1;
		text-decoration: none;
	}

	.footer-social-link:hover {
		color: var(--op-footer-accent);
		text-decoration: none;
	}

	.app-footer .icon {
		float: none;
		font-size: 1rem;
		margin: 0;
	}

	@media (max-width: 575.98px) {
		.footer-line {
			gap: 0.38rem 0.58rem;
			justify-content: center;
		}

		.footer-lilya-link {
			font-size: 1.08rem;
		}

		.footer-social-links {
			margin-left: 0;
		}
		.footer-app-version {
			position: static;
			transform: none;
			width: 100%;
		}
	}
	/* Header register link and editable content form */
	.nav-register-link {
		border: 1px solid rgba(255, 255, 255, 0.42);
		border-radius: 999px;
		font-weight: 700;
		padding-left: 0.85rem !important;
		padding-right: 0.85rem !important;
	}

	.nav-register-link:hover,
	.nav-register-link:focus {
		background: rgba(255, 255, 255, 0.12);
		border-color: rgba(255, 255, 255, 0.7);
	}

	.admin-content-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.admin-panel form + form {
		margin-top: 28px;
	}

	@media (max-width: 767.98px) {
		.nav-register-link {
			border-radius: 8px;
			margin-top: 0.35rem;
		}

		.admin-content-grid {
			grid-template-columns: 1fr;
		}
	}
	/* Keep footer content exactly centered */
	.footer.app-footer {
		justify-content: center;
		text-align: center;
	}

	.footer.app-footer .footer-line {
		justify-content: center;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
		text-align: center;
		width: fit-content;
	}

	.footer.app-footer .footer-social-links {
		margin-left: 0;
	}

/* Mobile ad visibility */
@media (max-width: 991.98px) {
    .left-side-column,
    .right-side-column {
        display: block;
    }

    .left-side-column #cont-side,
    .right-side-column #cont-side {
        background: rgba(255, 255, 255, 0.86);
        border: 1px dashed rgba(52, 58, 64, 0.5);
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        margin: 8px auto 16px;
        height: auto;
        min-height: 188px;
        padding: 8px;
        width: min(100%, 520px);
    }

    .promo-slot,
    .ad-slot {
        align-items: stretch;
        min-height: 128px;
    }

    .promo-placeholder,
    .ad-placeholder {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-height: 96px;
        width: 100%;
    }

    .promo-card,
    .ad-card {
        min-height: 172px;
    }

    .promo-card-image-frame,
    .ad-card-image-frame {
        height: clamp(126px, 42vw, 210px);
        width: 100%;
    }
}
	.game-shell-freecell {
		min-height: 540px;
	}

	.game-shell-freecell .game-viewport-freecell {
		overflow: hidden;
	}

	@media (max-width: 991.98px) {
		.game-shell-fit.game-shell-freecell {
			height: calc(100vh - 128px);
			height: calc(100svh - 128px);
			min-height: 520px;
		}
	}

	@media (max-width: 575.98px) {
		.game-shell-fit.game-shell-freecell {
			height: calc(100vh - 112px);
			height: calc(100svh - 112px);
			min-height: 480px;
		}
	}
/* Admin image editor */
.admin-image-editor {
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    margin: 0 0 14px;
    padding: 12px;
}

.admin-image-editor-frame {
    align-items: center;
    background: #e9eef5;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: grab;
    display: flex;
    height: 180px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    touch-action: none;
    width: 100%;
}

.admin-image-editor-frame.is-dragging {
    cursor: grabbing;
}

.admin-image-editor-image {
    display: block;
    height: 100%;
    object-fit: var(--ad-image-fit, cover);
    object-position: var(--ad-image-x, 50%) var(--ad-image-y, 50%);
    transform: scale(var(--ad-image-scale, 1));
    transform-origin: center;
    width: 100%;
}

.admin-image-editor-empty {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.admin-image-editor-fields,
.admin-image-editor-controls {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.admin-image-editor-fields label,
.admin-image-editor-controls label {
    margin-bottom: 0;
}

.admin-image-editor-zoom {
    align-content: start;
    display: grid !important;
    gap: 8px;
}

.admin-image-editor-zoom input[type="range"] {
    accent-color: #2563eb;
    margin-top: 0;
    padding: 0;
    width: 100%;
}

.admin-image-editor-zoom output {
    color: #334155;
    font-weight: 800;
}

.admin-image-reset {
    align-self: end;
    min-height: 44px;
}

@media (max-width: 767.98px) {
    .admin-image-editor-fields,
    .admin-image-editor-controls {
        grid-template-columns: 1fr;
    }

    .admin-image-editor-frame {
        height: 160px;
    }
}

/* Mobile game viewport sizing */
.game-shell {
    width: 100%;
}

.game-shell-fit .game-viewport {
    overflow: hidden;
    position: relative;
}

.game-shell-fit iframe {
    border: 0;
    display: block;
}

@media (max-width: 991.98px) {
    body {
        overflow-x: hidden;
    }

    .center-column {
        min-width: 0;
    }

    .game-shell-fit {
        height: auto;
        min-height: 0;
    }

    .game-shell-fit .game-tagline h4 {
        margin: 8px 0 12px;
    }

    .game-shell-fit #outerdiv {
        height: clamp(540px, calc(100svh - 120px), 760px);
        min-height: 0;
    }

    .game-shell-2048 #outerdiv,
    .game-shell-brick-wall #outerdiv {
        height: clamp(430px, calc(100svh - 140px), 620px);
    }

    .game-shell-puzzle #outerdiv,
    .game-shell-chess #outerdiv,
    .game-shell-mario #outerdiv {
        height: clamp(620px, calc(100svh - 96px), 820px);
    }

    .game-shell-tetris #outerdiv,
    .game-shell-snake #outerdiv {
        height: clamp(690px, calc(100svh - 64px), 860px);
    }

    .game-shell-flopy #outerdiv {
        height: clamp(540px, calc(100svh - 96px), 660px);
    }

    .game-shell-freecell #outerdiv {
        height: 100%;
    }
}

@media (max-width: 575.98px) {
    .game-shell-fit #outerdiv {
        height: 560px;
    }

    .game-shell-2048 #outerdiv,
    .game-shell-brick-wall #outerdiv {
        height: 430px;
    }

    .game-shell-puzzle #outerdiv,
    .game-shell-chess #outerdiv,
    .game-shell-mario #outerdiv {
        height: 620px;
    }

    .game-shell-tetris #outerdiv,
    .game-shell-snake #outerdiv {
        height: 720px;
    }

    .game-shell-flopy #outerdiv {
        height: 540px;
    }
}
/* Preserve Mario's native 16:9 stage and keep its touch controls in view. */
.game-shell-fit.game-shell-mario {
    height: auto;
    min-height: 0;
}

.game-shell-mario #outerdiv {
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    width: 100%;
}

@media (hover: none) {
    .game-shell-mario #outerdiv {
        aspect-ratio: 16 / 11;
    }
}

@media (max-width: 900px) {
    .game-shell-mario #outerdiv {
        aspect-ratio: auto;
        height: calc(56.25vw + 57px);
    }
}

/* Remove desktop-only side placements from mobile and tablet layouts. */
@media (max-width: 991.98px) {
    .left-side-column,
    .right-side-column {
        display: none;
    }
}

/* Keep only the essential footer information on mobile and tablet. */
@media (max-width: 991.98px) {
    .footer.app-footer {
        box-shadow: none;
        min-height: 48px;
        padding: 10px 14px;
        position: static;
    }

    .footer.app-footer .footer-line {
        flex-wrap: nowrap;
        gap: 0.55rem;
        width: 100%;
    }

    .footer-version-pill,
    .footer-app-version {
        display: none;
    }

    .footer-meta {
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .footer-lilya-link {
        font-size: 1rem;
        white-space: nowrap;
    }

    .footer-social-links {
        flex: 0 0 auto;
        gap: 0.45rem;
    }
}

/* Mobile random-game action stays visible after desktop sidebars are removed. */
.mobile-random-play {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-random-play {
        align-items: center;
        display: flex;
        justify-content: center;
        padding: 12px 10px 2px;
        width: 100%;
    }

    .mobile-random-play .glow-on-hover {
        border-radius: 50%;
        font-size: 1.05rem;
        font-weight: 900;
        height: min(220px, 68vw);
        letter-spacing: 0.08em;
        margin: 0;
        max-width: none;
        width: min(220px, 68vw);
    }

    .mobile-random-play .glow-on-hover::before {
        border-radius: 50%;
        filter: blur(10px);
    }
}
/* Final mobile shell sizing: use the full content width and keep controls touchable. */
.home-games {
    margin-bottom: 128px;
}

@media (max-width: 991.98px) {
    .navbar {
        min-height: 56px;
        padding: 0.375rem 0.75rem;
    }

    .navbar-brand {
        max-width: calc(100% - 60px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-toggler {
        align-items: center;
        display: inline-flex;
        flex: 0 0 44px;
        height: 44px;
        justify-content: center;
        padding: 0.25rem;
        width: 44px;
    }

    #cont {
        padding: 0 10px 16px;
    }

    .center-column {
        margin: 0;
        max-width: 100%;
        padding: 8px 0 12px;
        width: 100%;
    }

    .home-games {
        margin-bottom: 24px;
    }

    .home-games > br,
    .home-games > hr {
        display: none;
    }

    .home-games .poz {
        margin-bottom: 18px;
    }

    .home-games .row {
        margin-bottom: 20px;
        row-gap: 20px;
    }

    .home-games .box {
        height: 100%;
        margin: 0;
    }
}
/* Keep the mobile game picker in one centered, circular column. */
@media (max-width: 575.98px) {
    .home-games {
        display: block;
    }

    .home-games .poz {
        margin-bottom: 18px;
    }

    .home-games .row {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 24px;
    }

    .home-games .row > [class*="col-"] {
        flex: 0 0 auto;
        max-width: 100%;
        padding: 0;
        width: 100%;
    }

    .home-games .box {
        align-items: center;
        display: flex;
        flex-direction: column;
        height: auto;
        justify-content: center;
        width: 100%;
    }

    .home-games .row img {
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        display: block;
        height: auto;
        margin: 0 auto;
        object-fit: cover;
        width: min(220px, 68vw);
    }
}

/* Freecell needs a definite viewport height so its flex-based card table cannot collapse. */
.game-shell-fit.game-shell-freecell {
    height: calc(100vh - 80px);
    height: calc(100svh - 80px);
    min-height: 674px;
}

.game-shell-fit.game-shell-freecell .game-viewport-freecell {
    flex: 1 1 0;
    height: auto !important;
    min-height: 540px;
    overflow: hidden;
}

.game-shell-fit.game-shell-freecell .game-frame-holder,
.game-shell-fit.game-shell-freecell iframe {
    height: 100% !important;
    min-height: 540px !important;
}

@media (max-width: 991.98px) {
    .game-shell-fit.game-shell-freecell {
        height: calc(100vh - 126px);
        height: calc(100svh - 126px);
        min-height: 624px;
    }

    .game-shell-fit.game-shell-freecell .game-viewport-freecell,
    .game-shell-fit.game-shell-freecell .game-frame-holder,
    .game-shell-fit.game-shell-freecell iframe {
        min-height: 500px !important;
    }
}

@media (max-width: 575.98px) {
    .game-shell-fit.game-shell-freecell {
        height: calc(100vh - 112px);
        height: calc(100svh - 112px);
        min-height: 584px;
    }

    .game-shell-fit.game-shell-freecell .game-viewport-freecell,
    .game-shell-fit.game-shell-freecell .game-frame-holder,
    .game-shell-fit.game-shell-freecell iframe {
        min-height: 460px !important;
    }
}

/* Shared mobile fullscreen game shell */
.game-fullscreen-actions {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    min-height: 54px;
    padding: 0 10px 8px;
    position: static;
    width: 100%;
}

.game-fullscreen-enter,
.game-fullscreen-exit {
    align-items: center;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-weight: 800;
    justify-content: center;
    touch-action: manipulation;
}

.game-fullscreen-enter {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
    color: #fff;
    height: 46px;
    padding: 0;
    width: 46px;
}

.game-fullscreen-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.game-fullscreen-text {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.game-fullscreen-toolbar {
    display: none;
}

body.game-fullscreen-open .game-fullscreen-actions {
    display: none;
}

html.game-fullscreen-open,
body.game-fullscreen-open {
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
}

.game-viewport.is-game-fullscreen {
    align-items: stretch !important;
    aspect-ratio: auto !important;
    background: #0b1120;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column;
    height: 100vh !important;
    height: 100dvh !important;
    inset: 0 !important;
    margin: 0 !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    isolation: isolate;
    overflow: hidden !important;
    padding: 0 0 env(safe-area-inset-bottom) !important;
    position: fixed !important;
    transform: none !important;
    width: 100vw !important;
    z-index: 2147483647;
}

.game-viewport.is-game-fullscreen .game-fullscreen-toolbar {
    align-items: center;
    background: #111827;
    color: #fff;
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
    justify-content: space-between;
    min-height: 52px;
    padding:
        max(6px, env(safe-area-inset-top))
        max(10px, env(safe-area-inset-right))
        6px
        max(10px, env(safe-area-inset-left));
    width: 100%;
    z-index: 2;
}

.game-fullscreen-exit {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    color: #fff;
    gap: 7px;
    min-height: 42px;
    padding: 8px 14px;
}

.game-fullscreen-toolbar-label {
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.72;
}

@media (max-width: 767.98px), (pointer: coarse) {
    .game-fullscreen-actions {
        min-height: 64px;
        padding: 0 12px 8px;
    }

    .game-fullscreen-enter {
        border-radius: 14px;
        height: 56px;
        width: 56px;
    }

    .game-fullscreen-icon {
        font-size: 1.6rem;
    }

    .game-viewport.is-game-fullscreen .game-fullscreen-toolbar {
        gap: 16px;
        min-height: 58px;
    }

    .game-fullscreen-exit {
        min-height: 48px;
        padding: 10px 18px;
    }
}

.game-viewport.is-game-fullscreen > #innerdiv {
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 0 !important;
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
}

.game-viewport.is-game-fullscreen .game-frame-holder,
.game-viewport.is-game-fullscreen iframe {
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    width: 100% !important;
}

.game-viewport.is-game-fullscreen iframe {
    background: #0b1120;
    border: 0;
    display: block;
}
