/*   --------------- 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);

  --download-color-1: #4a2f41;
  --download-color-2: #6A478F;

  --primary-button: #e4500bc5;
  --primary-button-hover: #e4500b;

}

/*   --------------- Game Title --------------- */

.button.primary {
  background-color: var(--primary-button) !important;;
}

.button.primary:hover {
  background-color: color-mix(in srgb, var(--primary-button) 85%, black) !important;
}



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 {
  background: linear-gradient(135deg, var(--download-color-1), var(--download-color-2));  
  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; }


/* ----------------- Other Games -----------------*/
.other-games-section {
    margin: 3em 0 2em 0;
}

.capsule-grid {
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9em, max-content));
  gap: 0.2em;
}

.capsule-card {
    display: block;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none !important;
    border-bottom: none !important;
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-height: 12em;
    aspect-ratio: 2 / 3;
}

.capsule-card img {
    width: 100%;
    height: auto;
    display: block;

    object-fit: cover;
    transition: transform 0.3s ease;
}

.capsule-card:hover {
    transform: translateY(0em);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.capsule-card:hover img {
    transform: scale(1.05);
}

.capsule-title {
    opacity: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5em 0.8em 0.8em 0.8em;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
    text-align: center;
    transform: translateY(2em);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.capsule-card:hover .capsule-title {
  opacity: 1;
  transform: translateY(0em);
}

/*   --------------- Credits  --------------- */

/*   --------------- Credits  --------------- */

.credits-section {
    margin-top: 25px;
}


.credits-list {
    display: flex;
    /* flex-direction: column; */
    gap: 12px;
}

.character-card {
    border: 1px solid var(--nav-primary);
    /* background: linear-gradient(135deg, var(--nav-primary), var(--nav-primary)); */
    color: #ffffff;
    padding: 16px 20px; 
    border-radius: 6px; 
    display: flex;
    align-items: center; 
    gap: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.2s ease;
    height: 4.2em;
    width: 17em;
    max-width: 17em;
}

.character-card:hover {
    background: linear-gradient(135deg, var(--nav-primary), var(--site-accent-color));
    transform: translateY(0px) scale(1.00);
    border-color: white;
}

.roles-hidden-hover {
    display: none;
}

.character-card:hover .roles-hidden-hover {
    display: inline;
}

.character-card:hover .roles-dots {
    display: none;
}

.card-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background: var(--nav-primary);
    border-radius: 50%;
}

.card-avatar img {
    width: 55px; 
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.card-avatar-fallback {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: #ffffff;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-info h4 {
    margin: 0;
    font-size: 1.15rem; 
    color: black !important; 
}

.card-roles {
    font-size: 0.95rem; 
    color: black;
    line-height: 1.4;
}

.no-credits {
    color: var(--text-muted, #aaa);
}


.character-card:hover .card-info h4, .character-card:hover .card-roles {
  color: white !important;
}


/*   ---------------  Tooltip Credits  --------------- */

.character-card {
    position: relative;
}

.character-tooltip {
    position: absolute;
    bottom: calc(100% + 0.65em);
    left: 50%;
    transform: translateX(-50%) translateY(0.75em) scale(0.97);
    width: 17.5em;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 55%),
        linear-gradient(145deg, var(--nav-base-dark) 0%, var(--nav-primary) 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.12);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.24s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.24s ease;
    z-index: 100;
}

.character-card:hover .character-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.tooltip-banner img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) saturate(1.1);
}

.tooltip-content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tooltip-avatar img,
.tooltip-avatar .card-avatar-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tooltip-avatar .card-avatar-fallback {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.tooltip-titles h5 {
    margin: 0;
    font-size: 1.45rem;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.tooltip-role {
    margin: 4px 0 0 0;
    font-size: 1.25rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.75);
}

.tooltip-buttons {
    display: flex;
    gap: 10px;
}

.tooltip-buttons .button {
    flex: 1 1 0;
    padding: 9px 12px;
    text-align: center;
    font-size: 1.0rem;
    border-radius: 7px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    transition: transform 0.16s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tooltip-buttons .button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.tooltip-buttons .button.primary {
    background: var(--site-accent-color);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.tooltip-buttons .button.primary:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

/*   --------------- 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;
  }


   /* Credits */

    .credits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
  
      .character-card {
        height: auto;
        min-height: 4.2em;
        min-width: 100%;
        width: 100%;
        max-width: auto;
    }
  

    .character-tooltip {
        left: 12px;
        right: 12px;
        width: auto;
        transform: translateY(10px);
    }
    
    .character-card:hover .character-tooltip {
        transform: translateY(0);
    }

    .tooltip-content {
        padding: 15px;
        gap: 12px;
    }

    .tooltip-buttons {
        grid-template-columns: 1fr;
    }

    .tooltip-buttons .button {
        grid-column: auto !important;
        white-space: normal;
    }

.desc-flow {
    display: flex;
    flex-direction: column;
}

.desc-text {
    order: 1;
}


.side-box {
    order: 2;
    float: none !important; 
    width: 100% !important;
    margin-top: 20px;
}
  
}

@media (max-width: 400px) {
  .gallery-image { width: 80px; }
  .meta-banner,
  .meta-banner-img { max-height: 120px; }
}