*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: 'bad';
  src: url('../../fonts/badabb__-webfont.woff2') format('woff2'),
       url('../../fonts/badabb__-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: white;
  color: #ffffff;
  font-family: 'Inter';
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* ---------- INTRO LOGO FULLSCREEN ---------- */

#intro-logo-screen {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
#intro-logo-screen #intro-logo {
  width: 45vw;
  max-width: 80vw;
  min-width: 50vw;
  opacity: 0;
  animation: intro-logo-zoom 2.2s ease-out forwards;
}

/* ---------- SLIDES D’INTRO ---------- */

.intro-slide-screen {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
}
.intro-slide-screen.d-none {
  display: none !important;
}

/* --- SLIDE 1 : A350F GAME HOME --- */

.language-switch {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.lang-btn {
    width: 100%;
    max-width: 420px;
    padding: 14px 18px;
    border-radius: 3px;
    border: 1px solid #001b47;
    background: #001b47;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.15)!important;
    border: 1px solid #001b47;
    color:#001b47;
}

.lang-btn.active {
    background: #001b47;
    border-color: #001b47;

}
.intro-language-title
{
  color: #0A2A66;
}

.intro-start-game-btn{
    margin-top: 127%;
    background:#00205B;
    color:#fff;
    border:none;
    padding:14px 28px;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    z-index: 2;
}

#intro-slide-1 .intro-slide-content .intro-slide-bottom::before {
  content: none;
}

#intro-slide-1 .intro-slide-content .intro-slide-bottom .intro-slide-eyebrow {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  font-weight: 300;
          margin-top: 20px;

}

#intro-slide-1 .intro-slide-content .intro-slide-bottom .intro-slide-title {
  font-size: 0;
  margin: 0;
}
.intro-title-centered {
  display: none;
}

#intro-slide-1 .intro-slide-content .intro-slide-bottom .intro-slide-player {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-player-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro-player-input,
#intro-username-input {
  width: 100%;
  max-width: 420px;
  padding: 0.95rem 1.15rem;
  border-radius: none;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #333;
  background: #fafafa;
  border-bottom: 1px solid #00205B;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.intro-player-input::placeholder,
#intro-username-input::placeholder {
  color: #7a7a7a;
}

/* ---------- SLIDE 2 & 3 : inchangés ---------- */

#intro-slide-2 {
  background: #ffffff;
}
#intro-slide-2 .intro-slide-plain {
  position: relative;
  width: 100%;
  height: 100%;
}
#intro-slide-2 .intro-slide-plain .intro-16-bubble {
  z-index: 1;
  position: absolute;
  left: 10%;
  top: 6%;
  max-width: 70%;
  padding: 1rem 1.5rem;
  border-radius: 3px;
  border: 2px solid #002147;
      font-size: 4vw;
  color: #002147;
  background: #ffffff;
  font-family: 'Inter';
}
#intro-slide-2 .intro-slide-plain .intro-16-character {
  position: absolute;
  inset: 0;
 /* right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;*/
  background-image: url('../../images/intro/character.gif');
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center;
}
#intro-slide-2 .intro-slide-plain .intro-16-logo {
  position: absolute;
  right: 4%;
  bottom: 4%;
  width: 70px;
 
}

#intro-slide-3 .intro-slide-full-bg {
  position: absolute;
  inset: 0;
  background-image: url('../../images/intro/character_2.gif');
  background-size: auto;
  background-position: center;
  background-repeat: no-repeat;
}
#intro-slide-3 .intro-16-bubble {
  z-index: 1;
  text-align: center;
  position: absolute;
  left: 10%;
  top: 2%;
  max-width: 80%;
  padding: 1.3rem 2.5rem;
  border-radius: 3px;
  border: 2px solid #002147;
      font-size: 4vw;
  color: #002147;
  background: #ffffff;
  font-family: 'Inter';
}
#intro-slide-3 .intro-17-logo {
  position: absolute;
  right: 4%;
  bottom: 4%;
  width: 70px;
 
}

/* ---------- RESPONSIVE INTRO ---------- */
#intro-a350f-logo
{
  max-width: 170px;
}
@media (max-width: 1024px) {
  #intro-slide-1 .intro-slide-content .intro-slide-bottom {
    padding: 2.25rem 3.25rem 2.25rem;
    background: white;
            margin-bottom: 31vh;
        max-width: 300px;
        border-radius: 3px;
  }
  #intro-slide-1 .intro-slide-content .intro-slide-bottom .intro-slide-eyebrow {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.1rem;
    margin-top: 0.5rem;
    
  }
  .intro-player-input,
  #intro-username-input {
    font-size: 0.95rem;
  }
  .intro-slide-play {
    font-size: 1rem;
    border-radius: 3px;
  }

  #intro-slide-2 .intro-16-bubble {
    font-size: 0.9rem;
    left: 8%;
    top: 25%;
    max-width: 78%;
  }
}

/* ---------- ANCIEN ÉCRAN USERNAME (désormais non utilisé mais laissé au cas où) ---------- */

#intro-username-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #151b33 0%, #020307 65%);
  z-index: 9000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  transition: opacity 0.5s ease;
}
#intro-username-screen.d-none {
  display: none !important;
}
#intro-username-screen .intro-box {
  width: 100%;
  max-width: 360px;
  background: rgba(7, 12, 28, 0.95);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
#intro-username-screen .intro-box h1 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#intro-username-screen .intro-box p {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: #a5b1c5;
}
#intro-username-screen .intro-box #username-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 3, 12, 0.9);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#intro-username-screen .intro-box #username-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
#intro-username-screen .intro-box #username-input:focus {
  border-color: #35b0ff;
  box-shadow: 0 0 0 1px rgba(53, 176, 255, 0.7);
}
#intro-username-screen .intro-box #username-submit {
  width: 100%;
  margin-top: 1.25rem;
  border-radius: 999px;
  border-width: 0;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: #35b0ff;
  color: #020307;
  box-shadow: 0 8px 22px rgba(53, 176, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#intro-username-screen .intro-box #username-submit:hover {
  background: #54bcff;
}
#intro-username-screen .intro-box #username-submit:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(53, 176, 255, 0.35);
}

/* ---------- APP + GAME (inchangé) ---------- */

.d-none {
  display: none !important;
}
#app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.75rem 1.25rem;
  background-image: url(../../images/background.jpg);
  background-size: cover;
}
#app.d-none {
  display: none !important;
}
#top-bar {
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
#top-bar span {
  white-space: nowrap;
}
#top-bar #total_score {
  font-weight: 700;
}
#top-bar #gained_score {
  color: #35b0ff;
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0;
}
#top-bar #difficulty {
  margin-left: auto;
  font-size: 0.8rem;
  color: #a5b1c5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
#board-wrapper {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  aspect-ratio: 1 / 1;
  margin: 4.5rem auto 0.75rem -0.75rem;
  background-image: url('../../images/game/MMS_Eforms_2/BordureJeu.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
#board-wrapper #board {
  position: relative;
  width: 90%;
  height: 90%;
  margin: auto;
}
#board-wrapper #pieces {
  position: absolute;
  inset: 3% 3%;
  margin: auto;
  pointer-events: none;
}
.grid_square {
  pointer-events: none; /* ⬅️ CRITIQUE */
}
.grid_square {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: rgba(235, 235, 235, 0);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.grid_square[data-layout='poids'] {
  opacity: 1;
  margin-left: 1.5%;
  margin-top: -1.5%;
  background-image: url('../../images/game/Pieces_img/Poids.svg');
}


.piece[data-layout='vertical_long'] {
  background-image: url('../../images/game/Pieces_img/vertical_long.svg');
}
.piece {
  position: absolute;
  z-index: 1;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: fast-fade-in 0.4s ease;
  animation-fill-mode: forwards;
  pointer-events: auto;
  touch-action: none;
}
.piece[data-layout='gift'] {
  background-image: url('../../images/game/Pieces_img/Gift.svg');
}
.piece[data-layout='vertical_moteur'] {
  background-image: url('../../images/game/Pieces_img/vertical_moteur.svg');
}
.piece[data-layout='vertical_moteur_0'] {
  background-image: url('../../images/game/Pieces_img/vertical_0.svg');
}
.piece[data-layout='vertical_moteur_1'] {
  background-image: url('../../images/game/Pieces_img/vertical_1.svg');
}
.piece[data-layout='vertical_moteur_2'] {
  background-image: url('../../images/game/Pieces_img/vertical_2.svg');
}
.piece[data-layout='horizontal_moteur'] {
  background-image: url('../../images/game/Pieces_img/horizontal_moteur.svg');
}
.piece[data-layout='horizontal_moteur_0'] {
  background-image: url('../../images/game/Pieces_img/horizontal_0.svg');
}
.piece[data-layout='horizontal_moteur_1'] {
  background-image: url('../../images/game/Pieces_img/horizontal_1.svg');
}
.piece[data-layout='horizontal_moteur_2'] {
  background-image: url('../../images/game/Pieces_img/horizontal_2.svg');
}

#game-buttons {
  width: 100%;
  max-width: 480px;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#game-buttons .game_button {
  flex: 1 1 calc(50% - 0.5rem);
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: #00205B;
}
#game-buttons .game_button:hover {
  border-color: #35b0ff;
  background: rgba(53, 176, 255, 0.2);
  color: #ffffff;
}
#game-buttons .game_button:active {
  transform: translateY(1px);
}
#game-buttons #reset_button {
  border-color: rgba(255, 75, 106, 0.55);
  color: #ff4b6a;
}
#game-buttons #reset_button:hover {
  background: rgba(255, 75, 106, 0.2);
  color: #ffffff;
}

/* ---------- ANIMATIONS ---------- */

@keyframes intro-logo-zoom {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  70% {
    opacity: 1;
    transform: scale(1.25);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fast-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes gained-score-anim {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  20% {
    opacity: 1;
    transform: translateY(-6px);
  }
  100% {
    opacity: 0;
    transform: translateY(-16px);
  }
}
@keyframes win-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(40%);
  }
}
@keyframes piece-anim-1 {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes piece-anim-2 {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-6px);
  }
  100% {
    transform: translateX(0);
  }
}
.fast_fade_in_anim {
  animation: fast-fade-in 0.3s ease-out forwards;
}
.fade_out_anim {
  animation: fade-out 0.25s ease-in forwards;
}
.fade_in_anim {
  animation: fade-in 0.5s ease-out forwards;
}
.gained-score-anim {
  animation: gained-score-anim 1s ease-out;
}
.win_move {
  animation: win-move 0.8s ease-out forwards;
}
.piece_anim_1 {
  animation: piece-anim-1 0.7s ease-in-out infinite;
}
.piece_anim_2 {
  animation: piece-anim-2 0.7s ease-in-out infinite;
}



/* ----- ORIENTATION LOCK SCREEN ----- */

#orientation-lock {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}
@media screen and (orientation: portrait) {
  #orientation-lock {
    display: none;
  }
}
@media screen and (orientation: landscape) {
  #orientation-lock {
    display: flex;
  }
}
.rotate-container .phone {
  height: 80px;
  width: 40px;
  border: 3px solid white;
  border-radius: 10px;
  animation: rotateM 3.5s ease-out infinite alternate-reverse;
  margin: 0 auto;
  margin-top: -60px;
  margin-bottom: 60px;
}
#orientation-lock .orientation-inner img {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}
@keyframes rotateM {
  0% {
    transform: rotate(0deg);
  }
  60% {
    transform: rotate(-90deg);
  }
  100% {
    transform: rotate(-90deg);
  }
}
#orientation-lock .orientation-inner p {
  font-size: 1.4rem;
  line-height: 1.4;
}

/* Ecran score final : plein écran + centré */

#final-score-screen {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  color: #ffffff;
}
.final-score-inner h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
#final-score-value {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.final-score-sub {
  margin-bottom: 1rem;
}
.final-score-tap {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Ecran infos : fond avion fixe + slider en bas */

#info-slider-screen {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: auto;
  font-family: 'Inter', system-ui, sans-serif;
}

#info-video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

#info-slider-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: -1;
}

.info-replay-wrap {
  width: 100%;
  max-width: 520px;
  padding: 0 24px 32px;
  display: flex;
  justify-content: center;
}

#replay-button {
  width: 100%;
  max-width: 420px;
  border-radius: 3px;
  border: none;
  padding: 14px 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: #00205B;
  color: #fff;
}

#pieces {
  position: absolute;
  inset: 0;
}

.piece {
  position: absolute;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

/* --- SLIDE 1 : full background + UI en bas --- */

#intro-slide-1.intro-slide-screen {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background-image: url('../../images/intro/background_intro.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


#intro-slide-1 .intro-slide-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  //padding: 0 24px 40px;
}

#intro-slide-1 .intro-slide-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 24, 60, 0.9) 80%,
    rgba(0, 24, 60, 1) 100%
  );
  z-index: -1;
}

#intro-slide-1 .intro-slide-bottom {
  width: 100%;
  padding: 0 24px 40px;
  max-width: 430px;
  text-align: center;
  color: #ffffff;
  background: transparent;
  padding: 0;
}

#intro-slide-1 .intro-slide-bottom .intro-slide-eyebrow {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 24px;
  color:#00205B;
}

#intro-slide-1 .intro-slide-bottom .intro-slide-title {
  display: none;
}

#intro-slide-1 .intro-slide-bottom .intro-slide-player {
  width: 100%;
  margin-bottom: 24px;
}

#intro-slide-1 .intro-slide-bottom .intro-slide-footer {
  width: 100%;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

#intro-slide-1.intro-slide-screen {
  background-image: url('../../images/intro/background_intro.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.intro-animseq {
  position: absolute;
  top: -39vh;
    right: 0%;
  width: 80%;
  height: 100%;
  background-image: url('../../images/intro/AnimSeq1.svg');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
  pointer-events: none;
  z-index: 1;

  opacity: 0;
  transform: translateX(40%);
}

#intro-slide-1.is-animseq-on .intro-animseq {
  animation: animseq-slide-in 2.4s ease-out forwards;
}

@keyframes animseq-slide-in {
  0% {
    transform: translateX(40%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

#intro-slide-1 .intro-slide-content {
  position: relative;
  z-index: 2;
}
.intro-slide-play {
  width: 100%;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 3px;
  border: none;
  background: #001b47;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.intro-slide-play:hover {
  background: #00327c;
}
.intro-slide-play:active {
  transform: translateY(1px);
}

#intro-slide-1 .intro-slide-footer .intro-slide-logo {
  display: block;
}
#intro-slide-1 .intro-slide-footer .intro-slide-logo img {
  width: 130px;
  height: auto;
}

@media (max-width: 480px) {
  #intro-slide-1 .intro-slide-content {
    padding: 0 ;
  }
  #intro-slide-1 .intro-slide-bottom .intro-slide-eyebrow {
    font-size: 1.7rem;
    letter-spacing: 0.16em;
    margin-bottom: 20px;
  }
}

.intro-1-logo {
  width: 100%;
  background: white;
  position: absolute;
  left: 0;
  bottom: 0;
  text-align: end;
  padding: 20px;
  z-index: 2;
}
.intro-1-logo img {
  width: 70px;
  
}

#info-slider-screen .info-bg {
  display: none !important; 
}

#info-video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;      
  z-index: -1;             
  opacity: 1;              
  pointer-events: none;    
}

#info-slider-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25); 
  z-index: -1;
}

.intro-slide-play[disabled] {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}
/* ---------- RESPONSIVE  ---------- */

@media (min-width: 768px) {
  /*#app {
    border-radius: 1.5rem;
    margin: 1rem auto;
  }*/
  #board-wrapper {
    margin: 0 auto;
    max-width: 90%;
  }
  #game-buttons .game_button {
    font-size: 3.5vw;
    padding: 2vw 1.5vw;
  }
  #top-bar,
  #game-buttons
  {
    font-size: 3.5vw;
    max-width: 70%;
  }
  #top-bar #gained_score,
  #top-bar #difficulty
  {
    font-size: 3.5vw;
  }
  #final-score-value
  {
    font-size: 12vw;
  }
  .final-score-sub,
  .final-score-inner h1
  {
        font-size: 3vw;
  }
  .final-score-tap
  {
     font-size: 2.5vw;
  }
  #replay-button
  {
        font-size: 3vw;
  }
  .intro-1-logo img,
  #intro-logo
  {
    width: 11vw;
  }
  #intro-slide-1 .intro-slide-content .intro-slide-bottom

  {
        max-width: 60vw;
  }
  .intro-slide-play
  {
    font-size: 3vw;
  }
  #intro-a350f-logo
  {
    max-width: 30vw;
  }
  #intro-slide-1 .intro-slide-content .intro-slide-bottom .intro-slide-eyebrow
  {
    font-size:4vw;
  }
  .intro-player-input, #intro-username-input
  {
    font-size: 2vw;
  }
  .intro-16-logo,
  .intro-17-logo
  {



      width: 100%!important;
      right: unset!important;
      bottom: 0!important;
    background: white;
    position: absolute;
    left: 0;
   
    text-align: end;
    padding: 20px;
    z-index: 2;
    }

#scoreboard-screen
{
    background-image: url(../../images/intro/background_intro.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

}

/* ====================================================== */
/* SCOREBOARD SCREEN - robust display                    */
/* ====================================================== */
#scoreboard-screen.scoreboard-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  background-image: url(../../images/intro/background_intro.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

#scoreboard-screen.scoreboard-screen.d-none {
  display: none !important;
}

#scoreboard-screen .scoreboard-content {
  position: relative;
  width: min(920px, 94vw);
  min-height: min(680px, 88vh);
  padding: clamp(24px, 4vw, 56px);
  border-radius: 28px;
  background: rgba(0, 32, 91, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

#scoreboard-screen .scoreboard-plane {
  max-width: min(420px, 72vw);
  max-height: 150px;
  object-fit: contain;
}

#scoreboard-screen .scoreboard-plane[src$="a350f-plane.png"] {
  display: none;
}

#scoreboard-screen .scoreboard-table-wrapper {
  width: 100%;
  overflow: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

#scoreboard-screen .scoreboard-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(15px, 2vw, 22px);
}

#scoreboard-screen .scoreboard-table th,
#scoreboard-screen .scoreboard-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

#scoreboard-screen .scoreboard-table th:first-child,
#scoreboard-screen .scoreboard-table td:first-child {
  width: 90px;
  text-align: center;
}

#scoreboard-screen .scoreboard-table th:last-child,
#scoreboard-screen .scoreboard-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#scoreboard-screen .scoreboard-table thead th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  background: rgba(255,255,255,0.14);
}

#scoreboard-screen .scoreboard-table tbody tr:last-child td {
  border-bottom: 0;
}

#scoreboard-screen .scoreboard-play-again {
  border: 0;
  border-radius: 999px;
  padding: 14px 34px;
  background: #00a3e0;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 163, 224, 0.35);
}

#scoreboard-screen .scoreboard-airbus-logo {
  width: min(170px, 36vw);
  height: auto;
}
