/*   --------------- Override from ryu.css --------------- */
.skill-box {
    cursor: pointer;
}

.skill-box:hover {
    /*background-color: #674c8100; */
    /* color: #ffffff; */
    font-weight: 600 !important;
    padding: 2px 7px;
    cursor: pointer;

} 

:root {
  --hero-bg: linear-gradient(
  to top,
  #e4e4e494 0%,
  #e4e4e400 100%
);    
    --hero-bg-btm: linear-gradient(
  to bottom,
  #e4e4e459 0%,
  #e4e4e400 30%
);   
  --site-radius: 4px;
  --shadow: 0 6px 14px rgba(0,0,0,.18);
}

/*   --------------- Game Title --------------- */

h1.game-title {
  display: inline-flex;          
  align-items: center;           
  gap: 0.1ch;                    
  line-height: 1.1;              
  letter-spacing: 0.2px;
  margin-bottom: 0px;
}

h1.game-title img {
  height: 1em;                  
  width: auto;                   
  display: block;               
  object-fit: contain;
}


.game-title-box {
  display: flex;
  flex-direction: column;
  gap: 0.1px;             
}


.game-title-box .game-subtitle {
  font-size: 1.9rem;  
  color: #666666e5 !important;
  margin: 0;        
  margin-left: calc(0.9ch); 
  color: var(--muted, #6a6a6a);
  margin-bottom: 18px; /

  /* 1em = Iconbreite (weil img = 1em hoch), + 0.5ch = Abstand aus h1.gap */
}

/*   --------------- Hero Container --------------- */

.game-hero-container {
background: var(--hero-bg);
border-radius: 0.25em;
box-shadow: 0 8px 8px rgba(0,0,0,.08);

}

/*   --------------- Hero Gallery --------------- */

.game-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
  /* background-color: #1f1f1f2c !important; */
  border-radius: 12px;
  /* color: #fff !important; */
  font-size: 1.6rem;
  
}

.hero-image     { grid-column: 1; grid-row: 1; }
.media-gallery  { grid-column: 1; grid-row: 2; }
.hero-meta      { grid-column: 2; grid-row: 1 / span 2; } 


/* LEFT SIDE - Hero image */
.hero-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* RIGHT SIDE - Meta */
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-meta .thumb {
  width: 140px;
  border-radius: 6px;
}

.hero-meta .short-desc p {
  margin: 0 0 0.6em;
  padding-right: 0.5em;
}


.meta-entry {
  font-size: 1.3rem;
  padding-bottom: 0.4rem;
}

.meta-text {
font-weight: 500;
padding-left: 0.3rem;

}

.meta-entry.desc {
  font-size: 1.1rem;
}

/*   --------------- Hero Banner/ Thumbnail --------------- */

.meta-banner {
  overflow: none;
  width: 100%;
  max-height: clamp(100px, 24vw, 180px);  
  margin-bottom: 1em;
  display: grid;
  place-items: center;
  padding: 1px;                     
}

.meta-banner-img {
  background: var(--hero-bg);
  border-radius: var(--site-radius);
  box-shadow: var(--shadow);
  max-width: 100%;
  height: 100%;
  max-height: clamp(100px, 24vw, 180px);  
  object-fit: contain;
  display: block;
  image-rendering: auto;
}




.meta-banner-fallback {
  color: #e9f6f1;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  opacity: .9;
}


.meta-banner-img:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
  transition: all .2s ease;
}

@media (max-width: 900px) {
  .meta-banner { height: clamp(130px, 36vw, 180px); }
}


/*   --------------- Media Gallery --------------- */

.media-gallery {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto; 
  padding: 10px 0;
  white-space: nowrap; 
  scrollbar-width: thin; 
}

.media-gallery::-webkit-scrollbar {
  height: 8px; 
}

.media-gallery::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.gallery-image {
  width: 120px;       
  height: auto;
  object-fit: cover;  
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.gallery-image:first-child {
  margin-left: 10px;
}

.gallery-image:hover {
  transform: scale(1.05); 
}

.gallery-image.is-active {
  outline: 5px solid #5B8249;
  outline-offset: 1px;
  transform: scale(1.07);
}


/*   --------------- LightBox  --------------- */

/* Overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;               
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 200000;
}
.lightbox.is-open { display: flex; }
body.lb-open { overflow: hidden; }


.lb-window {
  display: flex;
  flex-direction: column;
  max-width: 90vw;
  max-height: 85vh;
  background: #16181d;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  overflow: hidden;             
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}


.lightbox__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  padding: 10px 12px;
  background: #222;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.lightbox__title {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.lightbox__close {
  border: none;
  display: inline-flex;
  background: transparent;
  appearance: none;
  width: 32px;
  height: 32px;
  padding: 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  text-align:center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.lightbox__close:hover { 
  transform: scale(1.25);
 }


.lb-content {
  display: grid;
  place-items: center;
  background: #000;             
}


.lightbox__img {
  display: block;
  max-width: min(90vw, 1400px);
  max-height: calc(85vh - 48px);
  object-fit: contain;
}


body.lb-open { overflow: hidden; }




/*   --------------- Download  --------------- */


.big-download-box {
  --g1: #4a2f41;
  --g2: #6A478F;
  background: linear-gradient(135deg, var(--g1), var(--g2));  
  background-size: 200% 200%;
  background-position: 0% 50%;
  transition: background-position .6s ease;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
    border-radius: var(--site-radius);
  padding: 20px;
  margin: 30px 0;
  display: flex;                          
  justify-content: space-between;         
  align-items: center;                     
  gap: 20px;
  line-height: 1;
  box-shadow: 0 0 22px rgba(0,0,0,.25),
              0 0 8px rgba(255,255,255,0.05);
  transition: all .5s ease;
}

.big-download-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
  transition: all .5s linear;
}

/* Status links */
.descriptor {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
  color: #e9e9e9 !important;
  align-self: center;
}

.descriptor-content {
  font-weight: 900;
  font-size: 1.45rem;
  color: #ffffff !important;
}

.download-box {
  background: #1e1e1e;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  padding: 16; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  width: fit-content; 
  overflow: hidden; 
  flex-shrink: 0;
  align-self: center;
}

/* Container für FREE + Button */
.download-header {
  display: flex;
  align-items: stretch; 
}

/* Links: FREE */
.badge-free {
  background: #1f1f1f;
  color: #fff;
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rechts: Download */
.download-btn {
  background: #5B8249;
  color: #fff;
  padding: 14px 24px;
  margin: 10px;
  font-weight: 700;
  text-decoration: none !important;
  outline: none !important;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  transition: 0.2s ease;
}

.dwnextra {
font-weight: 500;
background: #5B8249;
}

.download-btn a {
 text-decoration: none !important;
  outline: none !important;
}


.download-btn:hover {
background: #729361;
color: #fff !important;
font-weight: 900;
transform: translateY(-1px);
transition: all .2s ease;
}    

.download-btn:active {
transform: translateY(1px);
  
}
 


.download-btn,
.download-btn:focus,
.download-btn:active,
.download-btn:hover {
  text-decoration: none !important;
  outline: none !important;
  border: none !important;
}


/*   --------------- Description Text  --------------- */


.desc-flow {
  overflow: auto;
  background: var(--hero-bg-btm);
  box-shadow: 8 2px 0px rgba(0,0,0,.08);
  border-radius: 10px;
  padding-top: 5px;
}

.side-box {
  float: right;
  width: min(560px, 35%);
  margin: 0 0 18px 24px;
}

.side-box-inner {
  padding: 16px 20px;
}

.desc-flow-content {
  min-width: 0;
}

.desc-flow .desc p {
  margin: 0 0 0.9em;
}



/*   --------------- Extra Links  --------------- */



.extra-links {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.extra-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  background: #444;
  transition: 0.2s ease;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.2),
    inset 0 1px 1px rgba(255,255,255,0.05);
}

.extra-btn:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 1px 1px rgba(255,255,255,0.1);
}

/* Optional: individuelle Farben */
.extra-btn.itchio { background: #fa5c5c; }
.extra-btn.itchio:hover { background: #ff6f6f; }

.extra-btn.artstation { background: #0085ff; }
.extra-btn.artstation:hover { background: #1993ff; }

.extra-btn.jira { background: #0052cc; }
.extra-btn.jira:hover { background: #1966e6; }

.extra-btn.confluence { background: #172b4d; }
.extra-btn.confluence:hover { background: #213556; }




/*   --------------- Breakpoint  --------------- */


@media (max-width: 700px) {

  h1.game-title {
    font-size: 2.2rem;
    gap: 0.2ch;
  }

  .game-title-box .game-subtitle {
    font-size: 1.3rem;
    margin-left: 0.5ch;
    margin-bottom: 10px;
  }

  .game-hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-image,
  .media-gallery,
  .hero-meta {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  
  .hero-image { order: 1; }      /* Main Image */
  .media-gallery { order: 2; }   /* direkt nach dem Titel */
  .meta-banner { order: 3; }     /* Banner nach Gallery */
  .hero-meta { order: 4; }       /* Rest Meta */
  

  .hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
  }

  .media-gallery {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0;
    white-space: nowrap;
    scrollbar-width: thin;
    position: relative;
    z-index: 1;
  }

  .gallery-image {
    width: 95px;
    height: auto;
    flex: 0 0 auto;
  }

  .meta-banner,
  .meta-banner-img {
    max-height: 140px;
  }

  .big-download-box {
    flex-direction: column;
    text-align: center;
    padding: 16px;
    gap: 16px;
  }

  .descriptor {
    font-size: 1.2rem;
  }

  .descriptor-content {
    font-size: 1.3rem;
  }

  .download-box {
    width: 100%;
  }

  .download-header {
    width: 100%;
    justify-content: center;
  }

  .badge-free {
    padding: 14px 20px;
  }

  .download-btn {
    justify-content: center;
    font-size: 1.3rem;
    width: 100%;
    margin: 10px;
    padding: 14px 0;
  }

  .desc-flow {
    padding: 10px 12px;
  }

  .side-box {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }

  .extra-links {
    flex-direction: column;
    gap: 10px;
  }

  .extra-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .gallery-image { width: 80px; }
  .meta-banner,
  .meta-banner-img { max-height: 120px; }
}