body {
    background:#0b0b0b;
    color:#fff;
    font-family:Arial,sans-serif;
    text-align:center;
    margin:0;
    padding:20px;
}

h1{font-size:50px;margin-bottom:40px;}

#games{
    display:flex;
    justify-content:center;
    gap:35px;
    flex-wrap:wrap;
}

.game {
    background: #1c1c1c;
    width: 420px;
    padding: 25px;
    border-radius: 20px;
    cursor: pointer;

    transition:
        transform .25s,
        box-shadow .25s;
}

.game:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,140,255,.35);
}

.game img{
    transition: transform .3s;
    width:420px;
    height:236px;
    object-fit:cover;
    border-radius:15px;
}
.game:hover img {
    transform: scale(1.03);
}
.game h2{font-size:30px;}
.game p{font-size:18px;}

button{
    transition: .2s;
    background:#008cff;
    color:#fff;
    border:none;
    padding:15px 40px;
    border-radius:10px;
    cursor:pointer;
    font-size:20px;
    transition:.2s;
}

button:hover{background:#00bfff;}
 button:active {
    transform: scale(.96);
}

.game-page{
    animation: slideUp .35s ease;
    max-width:800px;
    margin:auto;
    background:#1c1c1c;
    padding:30px;
    border-radius:20px;
}

.game-page img{
    width:600px;
    max-width:100%;
    border-radius:15px;
}

#back{
    position:absolute;
    top:20px;
    left:20px;
}

.dev-image{
    width:300px;
    height:300px;
    object-fit:cover;
    border-radius:20px;
}

.navbar{
    position: sticky;
    top: 15px;
    z-index: 100;
    backdrop-filter: blur(10px);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:#151515;
    padding:15px 30px;
    border-radius:15px;
    margin-bottom:30px;
}

.nav-buttons{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.nav-buttons button{
    min-width:120px;
    padding:10px 20px;
    font-size:16px;
    white-space:nowrap;
}

/* Archiv */

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 35px;
    margin-top: 25px;
}

.folder {
    cursor: pointer;
    text-align: center;
    transition: transform .2s ease;
}

.folder:hover {
    transform: scale(1.08);
}

.folder-icon {
    display: inline-block;
    font-size: 100px;
    transition: transform 2s ease;
}
.folder:hover .folder-icon {
    transform: rotate(-10deg) scale(1.15);
}

.folder:hover .folder-icon {
    transform: rotate(-12deg) scale(1.18);
}

.folder h3 {
    margin-top: 8px;
    font-size: 22px;
    color: white;
    transition: color .2s;
}

.folder:hover h3 {
    color: #00bfff;
}
body {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}
@media (max-width: 768px) {

    #games {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .game {
        width: 90%;
        max-width: 420px;
    }

    .game img {
        width: 100%;
        height: auto;
    }

}
@media (max-width: 768px) {

    .game-page {
        width: 95%;
        padding: 20px;
        box-sizing: border-box;
    }

    .game-page img {
        width: 100%;
        height: auto;
    }

    button {
        width: 100%;
        padding: 15px;
    }

}
@media (max-width: 768px) {

    .game {
        width: 92%;
        max-width: 400px;
        padding: 18px;
    }

    .game h2 {
        font-size: 24px;
    }

    .game p {
        font-size: 16px;
    }

    .game img {
        width: 100%;
        height: auto;
    }

}
@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    .game-page {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    .game-page img {
    width: 100%;
    max-width: 700px;
    max-height: 420px;
    object-fit: cover;
    border-radius: 15px;
}

    h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 22px;
    }

    p {
        font-size: 18px;
    }

    button {
        width: 100%;
        font-size: 18px;
        padding: 14px;
        margin-top: 10px;
    }

    .navbar {
        padding: 12px;
    }

    .nav-buttons {
        gap: 8px;
    }

}
@media (max-width: 768px) {

    .game-page {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    .game-page img {
        width: 100%;
        max-height: 70px;
        object-fit: cover;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .nav-buttons {
        width: 100%;
        justify-content: center;
    }

    button {
        width: 100%;
    }
} 
#image {
    width: 100%;
    max-width: 1000px;   /* maximální šířka */
    height: 520px;       /* výška banneru */
    object-fit: cover;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #image {
        height: 180px;
        max-width: 100%;
    }
}
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    margin: 2px;
}

.badge-html {
    background: #2ecc71;
    color: white;
}

.badge-version {
    background: #3498db;
    color: white;
}
.game-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.game-buttons button {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.mobile-button {
    background: #22c55e;
    color: white;
}

.mobile-button:hover {
    background: #16a34a;
}

@media (max-width: 600px) {
    .game-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .game-buttons button {
        padding: 9px 11px;
        font-size: 12px;
    }
}
.play-buttons{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:15px;
    flex-wrap:wrap;
}

#mobilePlay{
    background:#22c55e;
}

#mobilePlay:hover{
    background:#16a34a;
}
#support {
    margin: 15px 0;
    font-size: 20px;
    line-height: 1.7;
}

#support b {
    color: #00bfff;
}
.game-type {
    margin-bottom: 18px;
    color: #cccccc;
}

.card-support {
    margin-top: 12px;
    padding-top: 15px;
    border-top: 1px solid #333333;
}

.card-support strong {
    display: block;
    margin-bottom: 10px;
    color: #00bfff;
    font-size: 18px;
}

.support-list {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.support-item {
    background: #292929;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 16px;
}
html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    background: #020611;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 14px;
    overflow-x: hidden;
    position: relative;
}
.glass{
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.12);

    box-shadow:
        0 8px 30px rgba(0,0,0,.45),
        inset 0 1px rgba(255,255,255,.08);

    border-radius:20px;
}
.game:hover{
    transform:translateY(-6px);
    box-shadow:
        0 0 30px rgba(0,170,255,.25);
}
.space-background {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(0, 119, 255, 0.28),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 30%,
            rgba(135, 45, 255, 0.22),
            transparent 35%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(0, 213, 255, 0.14),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #020611 0%,
            #071329 45%,
            #020914 100%
        );
}

.galaxy-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.28;
    animation: galaxyMove 14s ease-in-out infinite alternate;
}

.glow-blue {
    top: -260px;
    left: -220px;
    background: #0077ff;
}

.glow-purple {
    right: -260px;
    bottom: -300px;
    background: #8d2cff;
    animation-delay: -7s;
}

.stars {
    position: absolute;
    inset: -100px;
    background-repeat: repeat;
    animation: starsMove 45s linear infinite;
}

.stars-small {
    opacity: 0.5;
    background-image:
        radial-gradient(circle, white 1px, transparent 1.5px),
        radial-gradient(circle, #78d9ff 1px, transparent 1.5px);

    background-size:
        90px 90px,
        140px 140px;

    background-position:
        10px 20px,
        45px 70px;
}

.stars-large {
    opacity: 0.25;
    background-image:
        radial-gradient(circle, white 1.5px, transparent 2px),
        radial-gradient(circle, #b98cff 1.5px, transparent 2px);

    background-size:
        220px 220px,
        310px 310px;

    background-position:
        40px 90px,
        110px 160px;

    animation-duration: 70s;
}

@keyframes starsMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(120px);
    }
}

@keyframes galaxyMove {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(90px, 45px) scale(1.18);
    }
}
.hero {
    max-width: 1100px;
    margin: 30px auto 50px;
}

.hero img {
    width: 100%;
    height: 320px;      /* změň třeba na 280px nebo 250px */
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 56px;
}
/* Webový shortcut / instalace na plochu */
.pwa-install-hidden {
    display: none !important;
}

#installAppButton {
    background: #7a45ff;
}

#installAppButton:hover {
    background: #996dff;
}


/* About Dev – kontakty */
.about-contact-section {
    margin-top: 30px;
}

.about-contact-intro {
    max-width: 620px;
    margin: 0 auto 16px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
}

.about-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.about-contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
    padding: 18px;
    text-align: left;
}

.about-contact-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(86, 203, 255, 0.34);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(0, 140, 255, 0.28),
            rgba(111, 71, 255, 0.18)
        );
    box-shadow:
        0 0 22px rgba(0, 140, 255, 0.12);
    font-size: 26px;
}

.about-contact-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.about-contact-content strong {
    font-size: 18px;
}

.about-contact-link {
    width: fit-content;
    max-width: 100%;
    color: #61d7ff;
    font-size: 17px;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.about-contact-link[href]:hover {
    color: #a7ecff;
    text-decoration: underline;
}

.about-contact-link[aria-disabled="true"] {
    color: #ffd37c;
    cursor: default;
}

.about-contact-description {
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
}


@media (max-width: 560px) {
    .about-contact-card {
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .about-contact-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 22px;
    }

    .about-contact-link {
        font-size: 15px;
    }
}

/* PWA v28 – instalační tlačítko uvnitř aplikace nikdy nezobrazovat */
@media (display-mode: standalone),
       (display-mode: fullscreen),
       (display-mode: minimal-ui),
       (display-mode: window-controls-overlay) {
  #installAppButton {
    display: none !important;
  }
}


.cloud-save-panel {
  padding: 18px;
  border: 1px solid rgba(82, 213, 255, 0.24);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(21, 146, 214, 0.12), rgba(132, 76, 255, 0.08));
}

.cloud-save-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cloud-save-heading h2,
.cloud-save-heading p {
  margin: 0;
}

.cloud-save-heading p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.cloud-save-auto-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}

.cloud-save-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.cloud-save-meta > span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.16);
}

.cloud-save-meta small,
.cloud-save-meta strong {
  display: block;
}

.cloud-save-meta small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.cloud-save-meta strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
}

.cloud-save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.cloud-save-actions button {
  flex: 1 1 150px;
}

.cloud-save-actions .cloud-save-delete {
  border-color: rgba(255, 106, 106, 0.32);
  background: rgba(142, 27, 45, 0.22);
}

.cloud-save-help {
  margin: 11px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 650px) {
  .cloud-save-heading {
    display: grid;
  }

  .cloud-save-meta {
    grid-template-columns: 1fr;
  }
}
