:root {
  --bisc-orange: #f57c00;
  --bisc-orange-light: #ff9800;
  --bisc-brown: #1a0f0a;
  --bisc-brown-mid: #2d1810;
  --bisc-brown-light: #3e2723;
  --bisc-nav: #1c1c1c;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #111;
  background-image: url("../assets/images/background-bisc8.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  color: #fff;
  overflow-x: hidden;
}

h1, h2, h3, .display-font {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
}

.gaming-font {
  font-family: "Bungee", cursive;
}

/* ── Navbar ── */
.navbar-bisc {
  background-color: var(--bisc-nav) !important;
  padding: 0.6rem 0;
  border-bottom: 2px solid rgba(245, 124, 0, 0.3);
  transition: transform 0.35s ease;
  z-index: 1030;
}

.navbar-bisc.navbar-hidden {
  transform: translateY(-100%);
}

.navbar-bisc .navbar-brand {
  font-family: "Bungee", cursive;
  font-size: 1.1rem;
  color: var(--bisc-orange) !important;
  letter-spacing: 0.05em;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  width: 96px;
  padding: 0;
}

.navbar-bisc .navbar-brand-image {
  display: block;
  width: 96px;
  height: auto;
  object-fit: contain;
}

.navbar-bisc .navbar-brand-image-white {
  margin-top: -2px;
}

.navbar-bisc .navbar-brand span {
  color: #fff;
  font-size: 0.75rem;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.15em;
  display: block;
  margin-top: -2px;
}

.navbar-bisc .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem !important;
  transition: color 0.2s;
}

.navbar-bisc .nav-link:hover,
.navbar-bisc .nav-link.active {
  color: var(--bisc-orange) !important;
}

.navbar-bisc .dropdown-menu {
  background-color: var(--bisc-nav);
  border: 1px solid rgba(245, 124, 0, 0.3);
  border-radius: 6px;
  padding: 0.4rem 0;
  margin-top: 0.5rem;
}

.navbar-bisc .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}

.navbar-bisc .dropdown-item:hover,
.navbar-bisc .dropdown-item:focus {
  background-color: rgba(245, 124, 0, 0.15);
  color: var(--bisc-orange);
}

.navbar-bisc .dropdown-item.active-lang {
  color: var(--bisc-orange);
  background-color: rgba(245, 124, 0, 0.1);
}

.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.35rem 0.75rem !important;
  background: transparent;
}

.lang-selector::after {
  margin-left: 0.25rem;
}

.lang-selector img,
.dropdown-item .lang-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.dropdown-item.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Hero ── */
.hero-section {
  width: 100%;
  height: clamp(32rem, calc(100vw * 485 / 1279 - 10rem), 42rem);
  margin-top: 4.4rem;
  padding: 4rem 0 0 0;
  position: relative;
  z-index: 1;
  overflow: visible;
  display: flex;
  align-items: center;
  background-origin: border-box;
  background-image: url("../assets/images/cascata-superior.png");
  background-color: #111;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  min-height: 55vh;
}

.hero-section .container {
  position: relative;
  z-index: 1;
  margin-top: -200px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 275px minmax(0, 460px);
  justify-content: center;
  column-gap: 0.75rem;
}

.hero-layout > * {
  width: auto;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: none;
}

.hero-logo-wrap {
  text-align: center;
  transform: none;
}

.hero-logo-wrap img {
  width: 100%;
  max-width: 275px;
  height: auto;
  display: inline-block;
  border-radius: 0;
  background: transparent;
  padding: 0;
  clip-path: none;
}

.hero-title {
  font-family: "Shrikhand", "Cooper Black", Cooper, serif;
  font-size: clamp(2.4rem, 3.3vw, 3.15rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  text-align: center;
  max-width: 500px;
}

.hero-text {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 460px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.btn-bisc-dark {
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-bisc-dark:hover {
  background-color: #222;
  color: #fff;
  transform: translateY(-2px);
}

.btn-bisc-orange {
  background-color: var(--bisc-orange);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-bisc-orange:hover {
  background-color: var(--bisc-orange-light);
  color: #fff;
}

.btn-bisc-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-bisc-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Cascade Dividers ── */

.upper-cascade-background {
  z-index: 4;
  position: relative;
  background-size: 100% auto;
  background-color: #111;
  max-height: min(300px, 30vw);
}
.upper-cascade-background img {
  max-width: 200vw;
  min-width: 100vw;
}

.lower-cascade-background {
  position: relative;
  width: 100%;
  height: clamp(90px, 10vw, 150px);
  overflow: hidden;
  background-color: #111;
  line-height: 0;
}
.lower-cascade-background img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.game-buttons.download-unavailable {
  justify-content: center;
}

#gameDownload[hidden] {
  display: none !important;
}

.game-buttons.download-unavailable #gameVerMais {
  flex: 0 1 70%;
  width: min(100%, 260px);
}

/* ── Games Section ── */
.games-section {
  position: relative;
  z-index: 0;
  background: #111 !important;
  padding: 4rem 0 5rem;
}

.game-info-panel {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--bisc-orange);
  border-radius: 12px;
  padding: 2rem;
  height: 440px;
  display: flex;
  flex-direction: column;
}

.game-info-panel h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.game-info-panel p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  line-height: 1.6;
  height: 7.9em;
  margin-bottom: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 5;
}

.game-info-panel .game-meta {
  min-height: 4.5rem;
  margin: 1rem 0;
  align-content: center;
}

.game-info-panel .game-buttons {
  margin-top: auto;
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.game-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.game-meta i {
  color: var(--bisc-orange);
}

.game-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.games-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.hero-copy .btn-bisc-dark {
  padding: 0.7rem 1.9rem;
  font-size: 0.95rem;
}

.games-carousel {
  --game-previous-peek: 56px;
  display: flex;
  gap: 0.75rem;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  padding: 0.5rem 0.25rem;
  padding-inline-end: calc(var(--game-previous-peek) + 0.25rem);
  scroll-padding-inline-start: var(--game-previous-peek);
}

.games-carousel::-webkit-scrollbar {
  display: none;
}

.game-card {
  flex: 0 0 clamp(230px, 48%, 360px);
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.68;
  scroll-snap-align: start;
  scroll-margin-inline-start: var(--game-previous-peek);
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.game-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card:hover,
.game-card.active {
  opacity: 1;
  border-color: var(--bisc-orange);
  transform: translateY(-3px);
}

.game-card:focus-visible,
.games-arrow:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.games-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 58px;
  border: 0;
  border-radius: 7px;
  background: rgba(24, 17, 15, 0.88);
  color: #fff;
  font-size: 1.7rem;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.games-arrow:hover {
  background: var(--bisc-orange);
}

.games-arrow-prev {
  left: -18px;
}

.games-arrow-next {
  right: -18px;
}

/* ── Quem Somos ── */
.quem-somos-section {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 441;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111;
  background-image: url("../assets/images/studio-photo.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.quem-somos-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.quem-somos-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1rem;
}

.quem-somos-label {
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.quem-somos-title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  color: #fff;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

/* ── Narrative ── */
.narrative-section {
  background-color: transparent;
  padding: 4rem 0 1.5rem;
}

.narrative-section .container {
  max-width: none;
  padding-right: clamp(1rem, 2.5vw, 2.5rem);
  padding-left: clamp(1rem, 2.5vw, 2.5rem);
}

.narrative-text {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(17, 17, 17, 0.9);
  border: 2px solid var(--bisc-orange);
  border-radius: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}

.narrative-text p {
  margin-bottom: 1rem;
}

.narrative-text p:last-child {
  margin-bottom: 0;
}

.narrative-text .highlight {
  color: var(--bisc-orange);
  font-weight: 600;
  display: block;
  margin-top: 1rem;
}

/* ── Team ── */
.team-section {
  position: relative;
  z-index: 2;
  background-color: transparent;
  background-image: url("../assets/images/team/opacity-members.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  padding: 1.5rem 0 0;
}

.team-title {
  position: relative;
  top: 0.75rem;
  font-family: "Bungee", cursive;
  font-size: clamp(2.75rem, 6vw, 4rem);
  text-align: center;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.team-subtitle {
  width: fit-content;
  max-width: calc(100% - 2rem);
  position: relative;
  z-index: 5;
  margin: 0 auto 0.5rem;
  padding: 0.65rem 1.2rem;
  background-color: rgba(17, 17, 17, 0.65);
  border-radius: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

.team-subtitle span,
.team-subtitle strong {
  color: var(--bisc-orange);
  font-weight: 800;
}

.team-members-frame {
  position: relative;
  width: 100vw;
  margin-top: -1vw;
  margin-left: calc(50% - 50vw);
  padding: calc(7.4vw + 1.5rem) 0 calc(5.6vw + 3.1rem);
  overflow: hidden;
  isolation: isolate;
  background-image:
    url("../assets/images/team/members-x-top.png"),
    url("../assets/images/team/members-x-down.png");
  background-repeat: no-repeat;
  background-position: center top, center bottom;
  background-size: 100% auto, 100% auto;
}

.team-members-frame::before,
.team-members-frame::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.team-members-frame::before {
  top: 7.4vw;
  height: 22px;
  background-image: url("../assets/images/team/bisc8-bar.png");
}

.team-members-frame::after {
  bottom: calc(5.6vw + 0.75rem);
  height: 22px;
  background-image: url("../assets/images/team/bisc8-bar.png");
}

.team-carousel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.team-carousel::-webkit-scrollbar {
  display: none;
}

.team-card {
  position: relative;
  flex: 1 1 12.5vw;
  min-width: 0;
  width: auto;
  height: clamp(320px, 24vw, 430px);
  clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
  scroll-snap-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}

.team-carousel.is-static {
  overflow-x: hidden;
  scroll-snap-type: none;
}

.team-card:hover {
  transform: scale(1.05);
  z-index: 2;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo {
  transition: transform 0.3s ease;
}
.team-card-placeholder {
  background: rgba(17, 17, 17, 0.92);
}

.team-card .team-placeholder-image {
  object-fit: contain;
  padding: 2rem;
  opacity: 0.45;
}

.team-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 1rem;
  text-align: center;
}

.team-card:hover .team-card-overlay {
  opacity: 1;
}

.team-card-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.team-card-role {
  font-size: 0.7rem;
  color: var(--bisc-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.team-card-white-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  outline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: RGBA(255, 255, 255, 255);
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.5) 10%, rgba(0, 0, 0, 0) 60%);
}

#quem-somos {
  scroll-margin-top: 7rem;
}

.team-dots {
  position: absolute;
  bottom: calc(5.6vw + 0.75rem + 7px);
  left: 50%;
  z-index: 4;
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0;
  transform: translateX(-50%);
}

.team-dot {
  width: 28px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.75);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.team-dot.active {
  width: 40px;
  border-color: #fff;
  background: #fff;
}

/* ── Contato ── */
.contact-section {
  position: relative;
  z-index: 1;
  margin-top: -3rem;
  min-height: 0;
  aspect-ratio: 1280 / 773;
  display: flex;
  align-items: center;
  background-color: transparent;
  background-image: url("../assets/images/ahoy-banner-site.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  padding: 5rem 0;
}

.contact-content {
  position: relative;
  z-index: 1;
  text-align: center;
  transform: translateY(-100px);
}

.contact-title {
  position: relative;
  top: -45px;
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 1;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 240px;
  width: min(100%, 380px);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background-color: rgba(17, 17, 17, 0.3);
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #fff;
  background-color: rgba(17, 17, 17, 1);
  transform: translateY(-3px);
  outline: none;
}

.contact-link i {
  flex: 0 0 auto;
  color: var(--bisc-orange-light);
  font-size: 1.6rem;
}

.contact-link span,
.contact-link strong {
  display: block;
}

.contact-link span {
  font-size: 0.9rem;
}

.contact-link strong {
  margin-bottom: 0.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Footer ── */
.footer-bisc {
  background-color: #111;
  padding: 2rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (min-width: 992px) {
  .hero-section {
    height: clamp(25rem, 29vw, 27.25rem);
    min-height: 0;
    padding: 0;
    background-position: center bottom;
  }

  .hero-section .container {
    margin-top: 0;
    transform: translateY(-2rem);
  }

  .games-section {
    padding-top: 1.25rem;
  }

  .game-info-panel {
    height: 300px;
    padding: 1.35rem 1.5rem;
  }

  .game-info-panel h3 {
    margin-bottom: 0.5rem;
  }

  .game-info-panel p {
    height: 6.4em;
    margin-bottom: 0.35rem;
    line-height: 1.45;
  }

  .game-info-panel .game-meta {
    min-height: 3rem;
    margin: 0.35rem 0 0.65rem;
  }

  .game-info-panel .game-buttons {
    flex-direction: row;
    gap: 0.6rem;
  }

  .game-info-panel .game-buttons .btn {
    flex: 1 1 0;
  }
}

@media (max-width: 991px) {
  .team-dots {
    display: flex;
  }

  .hero-section {
    aspect-ratio: auto;
    height: auto;
    margin-top: 4rem;
    padding-top: 5rem;
    min-height: calc(100vw * 485 / 1279);
    padding-bottom: 5rem;
  }

  .hero-section::after {
    inset: 0;
    background-size: 100% 100%;
  }

  .hero-section .container {
    transform: translateY(-1.5rem);
  }

  .hero-layout {
    display: flex;
  }

  .hero-logo-wrap {
    margin-bottom: 2rem;
    padding-right: 0;
    text-align: center;
    transform: none;
  }

  .hero-copy {
    transform: none;
  }

  .game-info-panel {
    margin-bottom: 2rem;
  }

  .game-card {
    flex-basis: min(72vw, 360px);
  }

  .games-carousel {
    --game-previous-peek: 44px;
  }

  .games-arrow-prev {
    left: 0.25rem;
  }

  .games-arrow-next {
    right: 0.25rem;
  }

  .team-card {
    flex: 0 0 170px;
    min-width: 170px;
    width: 170px;
    height: 220px;
  }

  .team-card:hover {
    width: 170px;
  }

  .contact-section {
    min-height: 560px;
    aspect-ratio: auto;
    background-position: center;
    background-size: contain;
  }

  .contact-content {
    transform: translateY(-30px);
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-link {
    width: min(100%, 360px);
  }
}

@media (max-width: 576px) {
  .team-carousel {
    gap: -10px;
  }

  .team-card {
    flex-basis: 130px;
    min-width: 130px;
    width: 130px;
    height: 180px;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  }

  .team-card:hover {
    width: 130px;
  }
}

/* ── Detail Pages ── */
.detail-page {
  min-height: 100vh;
  padding-top: 0;
  background: #110d0b;
}

.detail-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: clamp(430px, 68vh, 760px);
  margin-top: 4.35rem;
  display: grid;
  place-items: center;
  overflow: visible;
  isolation: isolate;
}

.detail-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 42%, rgba(17, 13, 11, 0.72) 78%, #110d0b 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.18));
}

.detail-hero-ui {
  position: relative;
  align-self: end;
  width: min(90%, 1080px);
  margin-bottom: clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transform: translateY(clamp(8rem, 13vw, 12rem));
}

.detail-download {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: var(--bisc-orange);
  color: #111;
  font-family: "Bungee", cursive;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
  margin-bottom: clamp(2.5rem, 8vh, 5.5rem);
}

.detail-download:hover,
.detail-download:focus-visible {
  background: var(--bisc-orange-light);
  color: #111;
  transform: translateY(-3px);
}

.detail-download > i {
  font-size: 1.15em;
}

.detail-download-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.9rem;
  padding: 0.2rem 0.35rem;
  border: 2px solid currentColor;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.58em;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.detail-tags,
.detail-features {
  position: relative;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  width: 100%;
  margin: 0;
  padding: 0.38rem 1rem;
  list-style: none;
}

.detail-tags {
  min-height: 2rem;
  border-radius: 7px;
  background: rgba(89, 86, 84, 0.82);
}

.detail-tags li {
  color: var(--bisc-orange-light);
  font-family: "Bungee", cursive;
  font-size: clamp(0.65rem, 1.2vw, 0.82rem);
}

.detail-tags li::before {
  content: "#";
}

.detail-features {
  width: auto;
  max-width: 100%;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
}

.detail-features li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.detail-features i {
  color: var(--bisc-orange);
}

.detail-content {
  position: relative;
  z-index: 1;
  margin-top: -1px;
  padding: clamp(10rem, 14vw, 13rem) 0 5rem;
  background: #110d0b;
}

.detail-content-inner {
  max-width: 920px;
}

.detail-content h1 {
  color: var(--bisc-orange);
  font-size: clamp(3.8rem, 8vw, 5.5rem);
}

.media-gallery {
  width: 100%;
  margin-top: 2rem;
}

.media-gallery-stage {
  position: relative;
  display: block;
}

.media-gallery-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border: 2px solid rgba(245, 124, 0, 0.55);
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.media-gallery-item {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
}

.media-gallery-item.active {
  display: block;
}

.media-gallery-item iframe,
.media-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-gallery-item img {
  object-fit: cover;
}

.media-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 64px;
  border: 0;
  border-radius: 8px;
  background: rgba(245, 124, 0, 0.9);
  color: #111;
  font-size: 1.8rem;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.media-gallery-arrow[data-gallery-prev] {
  left: -64px;
}

.media-gallery-arrow[data-gallery-next] {
  right: -64px;
}

.media-gallery-arrow:hover,
.media-gallery-arrow:focus-visible {
  background: var(--bisc-orange-light);
  transform: translateY(-50%) scale(1.06);
}

.media-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.25rem 0.1rem 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.media-gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.media-gallery-scrollbar {
  position: relative;
  width: 100%;
  height: 12px;
  margin-top: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: grab;
  touch-action: none;
}

.media-gallery-scrollbar:active {
  cursor: grabbing;
}

.media-gallery-scrollbar:focus-visible {
  outline: 2px solid var(--bisc-orange-light);
  outline-offset: 3px;
}

.media-gallery-scrollbar.is-full {
  cursor: default;
  pointer-events: none;
}

.media-gallery-scrollbar-thumb {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: 999px;
  background: #fff;
  transform: translateX(0);
  will-change: transform;
}

.media-gallery-thumb {
  position: relative;
  flex: 0 0 155px;
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 8px;
  background: #000;
  aspect-ratio: 16 / 9;
  opacity: 0.62;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.media-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-gallery-thumb.active,
.media-gallery-thumb:hover,
.media-gallery-thumb:focus-visible {
  border-color: var(--bisc-orange);
  opacity: 1;
  transform: translateY(-2px);
}

.media-gallery-play {
  position: absolute;
  inset: 50% auto auto 50%;
  color: #fff;
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px #000);
  transform: translate(-50%, -50%);
}

.game-recognition {
  margin-top: 4rem;
}

.game-recognition-title {
  margin-bottom: 1.25rem;
  color: var(--bisc-orange);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.02em;
}

.game-recognition-list {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1rem;
}

.game-recognition-card {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 9px;
  background: #fff;
  color: #17110e;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.game-recognition-star {
  color: var(--bisc-orange);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
}

.game-recognition-name {
  margin: 0 0 0.25rem;
  color: #17110e;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.1;
}

.game-recognition-source {
  margin: 0;
  color: #6c625d;
  font-size: 0.72rem;
}

.game-recognition-card.is-empty .game-recognition-star {
  color: #b8afaa;
}

.detail-back {
  color: var(--bisc-orange);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.detail-back:hover {
  color: var(--bisc-orange-light);
}

/* ── Game Subscribe Footer ── */
.game-subscribe-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 1.5rem;
}

.game-subscribe-container {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  width: 100%;
}

.game-subscribe-form {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  background: linear-gradient(90deg, var(--bisc-orange) 0%, #e65100 100%);
  border-radius: 0px 8px 0 0;
  width: 100%;
}

.game-subscribe-footer.is-open .game-subscribe-form {
  max-height: 200px;
  opacity: 1;
}

.game-subscribe-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

.game-subscribe-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 8px 8px 0 0;
  background: var(--bisc-orange);
  color: #111;
  font-family: "Bungee", cursive;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.game-subscribe-toggle:hover {
  background: var(--bisc-orange-light);
}

.game-subscribe-toggle .toggle-arrow {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.game-subscribe-footer.is-open .game-subscribe-toggle .toggle-arrow {
  transform: rotate(0deg);
}

.game-subscribe-text {
  flex: 1;
}

.game-subscribe-title {
  font-family: "Bungee", cursive;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: #111;
  margin-bottom: 0.3rem;
}

.game-subscribe-subtitle {
  font-size: 0.85rem;
  color: rgba(17, 17, 17, 0.8);
  margin: 0;
}

.game-subscribe-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.game-subscribe-label {
  font-weight: 600;
  color: #111;
  font-size: 0.9rem;
  white-space: nowrap;
}

.game-subscribe-input {
  padding: 0.6rem 1rem;
  border: 2px solid #111;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 0.9rem;
  min-width: 220px;
  transition: border-color 0.2s ease;
}

.game-subscribe-input:focus {
  outline: none;
  border-color: #111;
  background: #fff;
}

.game-subscribe-input::placeholder {
  color: rgba(17, 17, 17, 0.5);
}

.game-subscribe-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid #111;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-family: "Bungee", cursive;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.game-subscribe-btn:hover {
  background: #222;
  transform: translateY(-2px);
}

.game-subscribe-decoration {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 180px;
  pointer-events: none;
  opacity: 0.3;
  background:
    radial-gradient(circle 12px at 30px 40px, #111 100%, transparent 100%),
    radial-gradient(circle 8px at 60px 25px, #111 100%, transparent 100%),
    radial-gradient(circle 10px at 90px 55px, #111 100%, transparent 100%),
    radial-gradient(circle 6px at 45px 70px, #111 100%, transparent 100%),
    radial-gradient(circle 9px at 120px 35px, #111 100%, transparent 100%),
    radial-gradient(circle 7px at 150px 60px, #111 100%, transparent 100%),
    radial-gradient(circle 11px at 75px 45px, #111 100%, transparent 100%),
    radial-gradient(circle 5px at 105px 20px, #111 100%, transparent 100%);
}

.game-subscribe-message {
  position: absolute;
  bottom: 0.5rem;
  right: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: none;
}

.game-subscribe-message--success {
  background: #2e7d32;
  color: #fff;
}

.game-subscribe-message--error {
  background: #c62828;
  color: #fff;
}

.game-subscribe-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Team Member Page ── */
.member-page {
  min-height: 100vh;
  background: #110d0b;
}

.member-hero {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.member-back {
  color: var(--bisc-orange);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.member-back:hover {
  color: var(--bisc-orange-light);
}

.member-photo-wrap {
  position: relative;
  display: inline-block;
}

.member-photo {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border: 3px solid var(--bisc-orange);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.member-name {
  font-family: "Bungee", cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 0.3rem;
}

.member-role {
  color: var(--bisc-orange);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.member-bio {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

.member-bio p {
  margin-bottom: 1rem;
}

.member-bio p:last-child {
  margin-bottom: 0;
}

.member-bio strong {
  color: #fff;
}

.member-photo-wrap + .member-contact-card {
  width: min(100%, 320px);
  margin: 1.25rem auto 0;
  text-align: left;
}

.member-profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.member-profile-detail {
  min-height: 82px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(245, 124, 0, 0.5);
  border-radius: 10px;
  background: rgba(245, 124, 0, 0.06);
}

.member-profile-detail h2 {
  margin: 0 0 0.75rem;
  color: var(--bisc-orange);
  font-family: "Bungee", cursive;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
}

.member-profile-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.member-profile-items:empty {
  display: none;
}

.member-profile-items span {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  .member-profile-details {
    grid-template-columns: 1fr;
  }
}

/* ── Contact Card ── */
.member-contact-card {
  background: rgba(245, 124, 0, 0.08);
  border: 2px solid var(--bisc-orange);
  border-radius: 12px;
  padding: 1.5rem;
}

.member-contact-title {
  font-family: "Bungee", cursive;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
}

.member-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.member-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.member-contact-item:hover {
  color: var(--bisc-orange);
}

.member-contact-item i {
  width: 20px;
  text-align: center;
  color: var(--bisc-orange);
  font-size: 1.1rem;
}

/* ── Portfolio Section ── */
.member-portfolio {
  padding: 3rem 0 5rem;
}

.member-portfolio-title {
  font-family: "Bungee", cursive;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.member-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.member-portfolio-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 2px dashed rgba(245, 124, 0, 0.4);
  border-radius: 10px;
  background: rgba(245, 124, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.member-portfolio-card:not(.portfolio-folder-card):hover {
  border-color: var(--bisc-orange);
  background: rgba(245, 124, 0, 0.06);
  color: rgba(255, 255, 255, 0.5);
}

.member-portfolio-card i {
  font-size: 2rem;
}

.member-portfolio-card span {
  font-size: 0.85rem;
  font-weight: 500;
}

.member-portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.portfolio-folder-card {
  isolation: isolate;
  border-style: solid;
  border-color: rgba(245, 124, 0, 0.72);
  background-position: center;
  background-size: cover;
  color: #fff;
  cursor: pointer;
  transform-origin: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.portfolio-folder-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
}

.portfolio-folder-card[data-portfolio-folder="sound"]::before,
.portfolio-folder-card[data-portfolio-folder="concept"]::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.48));
}

.portfolio-folder-card[data-portfolio-folder="pitch"]::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.86));
}

.portfolio-folder-card i,
.portfolio-folder-card span {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 6px #000;
}

.portfolio-folder-card:hover,
.portfolio-folder-card:focus-visible {
  border-color: var(--bisc-orange-light);
  background-color: transparent;
  color: #fff;
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.08);
  box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.portfolio-folder-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.portfolio-folder-view {
  scroll-margin-top: 6rem;
}

.portfolio-folder-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0;
  scrollbar-width: thin;
}

.portfolio-folder-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(245, 124, 0, 0.65);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(245, 124, 0, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.portfolio-folder-tabs .portfolio-back-button {
  background: #fff;
  color: #17110e;
}

.portfolio-folder-tabs .portfolio-tab.active {
  background: var(--bisc-orange);
  color: #111;
}

.portfolio-folder-content {
  padding: clamp(1rem, 3vw, 2rem);
  border: 2px solid var(--bisc-orange);
  border-radius: 0 12px 12px;
  background: rgba(0, 0, 0, 0.45);
}

.portfolio-folder-title {
  margin-bottom: 1rem;
  color: #fff;
  font-family: "Bungee", cursive;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.portfolio-folder-empty {
  display: flex;
  min-height: clamp(220px, 34vw, 420px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 2px dashed rgba(245, 124, 0, 0.4);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.48);
}

.portfolio-folder-empty i {
  font-size: 2.5rem;
}

.portfolio-folder-empty span {
  font-size: 0.9rem;
  font-weight: 600;
}

.portfolio-project-header {
  margin-bottom: 1rem;
}

.portfolio-project-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.portfolio-project-header h3 {
  margin: 0;
  color: var(--bisc-orange);
  font-family: "Bungee", cursive;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
}

.portfolio-project-link {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.portfolio-project-link:hover,
.portfolio-project-link:focus-visible {
  color: var(--bisc-orange);
  text-decoration: underline;
}

.portfolio-project-header p {
  margin: 0.25rem 0 0;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  letter-spacing: 0.04em;
}

.portfolio-project-description {
  max-width: 860px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.93rem;
  line-height: 1.7;
}

.portfolio-project-secondary {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 3rem;
  padding-top: 3rem;
}

.portfolio-project-gallery {
  margin-top: 0;
  margin-right: auto;
  margin-left: auto;
}

.member-page .media-gallery {
  width: min(100%, 1000px);
  margin-right: auto;
  margin-left: auto;
}

.member-page .media-gallery-item img {
  object-fit: contain;
}

.portfolio-project[hidden],
.portfolio-folder-empty[hidden],
.portfolio-folder-title[hidden] {
  display: none !important;
}

.portfolio-folder-view[hidden],
.member-portfolio-grid[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .member-hero .row {
    flex-direction: column-reverse;
    text-align: center;
  }

  .member-photo {
    max-width: 240px;
  }

  .member-contact-card {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .game-subscribe-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .game-subscribe-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .game-subscribe-input {
    min-width: 0;
    width: 100%;
  }

  .game-subscribe-decoration {
    display: none;
  }
}

@media (max-width: 576px) {
  .detail-hero {
    min-height: 62vh;
    margin-top: 4rem;
  }

  .detail-hero-image {
    object-position: center;
  }

  .detail-hero-ui {
    width: calc(100% - 1.5rem);
    margin-bottom: 1.25rem;
    transform: translateY(6rem);
  }

  .detail-download {
    margin-bottom: 2rem;
  }

  .detail-tags,
  .detail-features {
    top: 0;
    gap: 0.3rem 0.7rem;
    padding-inline: 0.65rem;
  }

  .detail-content {
    padding-top: 8rem;
  }

  .media-gallery-arrow {
    width: 36px;
    height: 52px;
    font-size: 1.35rem;
  }

  .media-gallery-arrow[data-gallery-prev] {
    left: -18px;
  }

  .media-gallery-arrow[data-gallery-next] {
    right: -18px;
  }

  .media-gallery-thumb {
    flex-basis: 120px;
  }

  .media-gallery-scrollbar {
    height: 14px;
  }

  .game-recognition {
    margin-top: 3rem;
  }

  .game-recognition-card {
    padding: 0.7rem 0.85rem;
  }

}

/* ── Responsive layout consolidation ── */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-section .container {
    margin-top: 0;
    transform: none;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .hero-layout > * {
    width: 100%;
    padding-inline: 0.75rem;
  }

  .hero-logo-wrap {
    margin-bottom: 0;
  }

  .hero-logo-wrap img {
    width: min(58vw, 260px);
  }

  .hero-copy {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .hero-text {
    max-width: 640px;
  }
  /* On narrow screens the selected game artwork comes before its description. */
  .games-section > .container > .row {
    flex-direction: column-reverse;
  }

  .games-section .col-lg-4,
  .games-section .col-lg-8 {
    width: 100%;
  }

  .game-info-panel {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: clamp(1.25rem, 4vw, 2rem);
  }

  .game-info-panel p {
    height: auto;
    min-height: 0;
    overflow: visible;
    display: block;
  }

  .game-info-panel .game-meta {
    min-height: 0;
  }

  .game-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .game-buttons .btn {
    flex: 1 1 180px;
  }

  .games-carousel-wrap {
    margin-bottom: 0.5rem;
  }

  .quem-somos-section {
    min-height: 320px;
    aspect-ratio: auto;
    background-size: cover;
  }

  .narrative-section {
    padding-top: 2rem;
  }

  .narrative-text {
    padding: clamp(1.25rem, 4vw, 2rem);
  }

  .team-section {
    background-size: cover;
  }

  .team-members-frame {
    padding-top: calc(7.4vw + 1rem);
    padding-bottom: calc(5.6vw + 2.5rem);
  }

  .team-card-overlay {
    justify-content: flex-end;
    padding-bottom: 1.25rem;
    opacity: 1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 68%);
  }

  .team-card:hover {
    transform: none;
  }

  .contact-section {
    margin-top: 0;
    min-height: 680px;
    background-size: cover;
  }

  .contact-content {
    transform: none;
  }

  .contact-title {
    top: 0;
    margin-bottom: 1.5rem;
  }

  .detail-hero {
    min-height: clamp(460px, 70vh, 650px);
  }

  .detail-hero-ui {
    width: min(calc(100% - 2rem), 760px);
    margin-bottom: 1.5rem;
    transform: translateY(3.5rem);
  }

  .detail-download {
    margin-bottom: 1.25rem;
  }

  .detail-content {
    padding-top: 6.5rem;
  }

  .media-gallery-arrow[data-gallery-prev] {
    left: 0.5rem;
  }

  .media-gallery-arrow[data-gallery-next] {
    right: 0.5rem;
  }

  .member-portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }
}

@media (max-width: 767.98px) {
  .navbar-bisc .container-fluid {
    padding-inline: 0.85rem !important;
  }

  .detail-page .navbar-compact .container-fluid {
    flex-wrap: nowrap;
  }

  .detail-page .navbar-compact .navbar-brand {
    flex: 0 0 auto;
    font-size: 0.9rem;
  }

  .detail-page .navbar-compact .navbar-brand span {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .detail-page .navbar-compact .navbar-nav {
    min-width: 0;
    gap: 0 !important;
  }

  .detail-page .navbar-compact .nav-link {
    padding: 0.35rem 0.45rem !important;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .detail-page .navbar-compact .lang-selector {
    gap: 0.25rem;
  }

  .detail-page .navbar-compact .lang-selector img {
    width: 18px;
    height: 12px;
  }

  .games-section {
    padding: 2.75rem 0 3.5rem;
  }

  .games-carousel {
    --game-previous-peek: 24px;
    gap: 0.6rem;
  }

  .game-card {
    flex-basis: min(82vw, 340px);
  }

  .game-info-panel h3 {
    font-size: 2.1rem;
  }

  .game-meta {
    gap: 0.65rem 1rem;
  }

  .quem-somos-section {
    min-height: 280px;
  }

  .quem-somos-content {
    padding: 2rem 1rem;
  }

  .quem-somos-title {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .team-title {
    top: 0;
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .team-card {
    flex: 0 0 155px;
    min-width: 155px;
    width: 155px;
    height: 220px;
  }

  .team-card-name {
    font-size: 1.05rem;
  }

  .team-card-role {
    font-size: 0.6rem;
  }

  .contact-section {
    min-height: 620px;
    padding: 3rem 0;
  }

  .contact-title {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .contact-link {
    min-width: 0;
    width: min(100%, 340px);
  }

  .detail-hero {
    min-height: 560px;
    margin-top: 4rem;
  }

  .detail-hero-ui {
    transform: translateY(2.75rem);
  }

  .detail-tags,
  .detail-features {
    gap: 0.35rem 0.65rem;
  }

  .detail-features li {
    white-space: normal;
  }

  .detail-content {
    padding: 5.5rem 0 4rem;
  }

  .detail-content h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .media-gallery-thumb {
    flex-basis: min(38vw, 145px);
  }

  .game-subscribe-footer {
    padding-inline: 0.5rem;
  }

  .game-subscribe-footer.is-open .game-subscribe-form {
    max-height: min(72vh, 520px);
    overflow-y: auto;
  }

  .game-subscribe-content {
    max-height: none;
    padding: 1rem;
  }

  .game-subscribe-toggle {
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
  }

  .member-hero {
    padding-top: 5.5rem;
  }

  .member-hero .row {
    flex-direction: column;
  }

  .member-name,
  .member-role,
  .member-bio {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    margin-top: 3.8rem;
    padding: 2.5rem 0 3rem;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(1.65rem, 8.5vw, 2.8rem);
    white-space: nowrap;
  }

  .hero-text {
    font-size: 0.84rem;
  }

  .game-card {
    flex-basis: calc(100vw - 4.5rem);
  }

  .games-arrow {
    width: 38px;
    height: 50px;
    font-size: 1.35rem;
  }

  .game-buttons {
    flex-direction: column;
  }

  .game-buttons .btn {
    flex-basis: auto;
    width: 100%;
  }

  .narrative-text {
    font-size: 0.86rem;
    line-height: 1.65;
  }

  .team-members-frame {
    padding-top: 2.75rem;
    padding-bottom: 4.5rem;
  }

  .team-members-frame::before {
    top: 1.75rem;
  }

  .team-members-frame::after {
    bottom: 1.5rem;
  }

  .team-carousel {
    padding-inline: 0.5rem;
  }

  .team-dots {
    bottom: calc(1.5rem + 7px);
  }

  .team-card {
    flex-basis: 140px;
    min-width: 140px;
    width: 140px;
    height: 205px;
  }

  .contact-section {
    min-height: 580px;
  }

  .contact-links {
    padding-inline: 0.5rem;
  }

  .detail-page .navbar-compact .navbar-brand span {
    display: none;
  }

  .detail-page .navbar-compact .nav-link {
    padding-inline: 0.32rem !important;
    font-size: 0.67rem;
  }

  .detail-page .navbar-compact .lang-selector {
    border: 0;
  }

  .detail-hero {
    min-height: 520px;
  }

  .detail-hero-ui {
    width: calc(100% - 1rem);
    transform: translateY(2.25rem);
  }

  .detail-download {
    max-width: calc(100% - 1rem);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    text-align: center;
  }

  .detail-tags,
  .detail-features {
    padding: 0.45rem 0.6rem;
  }

  .detail-tags li,
  .detail-features {
    font-size: 0.66rem;
  }

  .detail-content {
    padding-top: 5rem;
  }

  .media-gallery-arrow {
    width: 34px;
    height: 46px;
  }

  .media-gallery-arrow[data-gallery-prev] {
    left: 0.25rem;
  }

  .media-gallery-arrow[data-gallery-next] {
    right: 0.25rem;
  }

  .member-photo {
    max-width: min(76vw, 270px);
  }

  .member-contact-card {
    padding: 1rem;
  }

  .member-contact-item {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .detail-page .navbar-compact .navbar-brand {
    font-size: 0.78rem;
  }

  .detail-page .navbar-compact .nav-link {
    padding-inline: 0.22rem !important;
    font-size: 0.62rem;
  }

  .detail-page .navbar-compact .lang-selector img {
    display: none;
  }

  .game-card {
    flex-basis: calc(100vw - 3.75rem);
  }

  .contact-link {
    padding: 0.75rem;
  }

  .game-subscribe-title {
    font-size: 1rem;
  }

  .game-subscribe-subtitle,
  .game-subscribe-label {
    font-size: 0.78rem;
  }
}

.team-dots[hidden] {
  display: none !important;
}

@media (max-width: 991.98px) {
  .hero-section {
    height: auto;
    min-height: 0;
    overflow: visible;
    margin-bottom: clamp(90px, 10vw, 150px);
    padding-bottom: 3rem;
    background-color: #111;
    background-image: url("../assets/images/background-bisc8.png");
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: center top;
  }

  .hero-section::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 0;
    height: clamp(90px, 10vw, 150px);
    pointer-events: none;
    background-color: #111;
    background-image: url("../assets/images/cascata-superior.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
  }
}
