/* ============================================================
   Pa_Capona_Porte.css
   FEN_Pa_Capona_Porte
   ─────────────────────────────────────────────────────────
   Fond     : img/Porte.jpg — plein écran (cover)
   Layout   :
     • .screen      → image de fond 100dvh, cliquable → Guilde
     • .top-bar     → absolu en haut, retour (gauche) | score (droite)
   Navigation :
     IMG_Retour     → Pa_Capona_Fleurs3_Cle
     Tap sur écran  → Pa_Capona_Guilde
============================================================ */

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #000000;
}

/* ============================================================
   ECRAN PRINCIPAL — image plein écran, cliquable
============================================================ */
.screen {
  width: 100%;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: url('img/Porte.jpg') center center / cover no-repeat;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ============================================================
   BARRE HAUTE — absolu, retour (gauche) | coffre+score (droite)
============================================================ */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.22);
}

.retour-img {
  height: clamp(36px, 8vh, 64px);
  width: auto;
  display: block;
  cursor: pointer;
  -webkit-user-drag: none;
  transition: transform 0.12s ease;
}
.retour-img:active { transform: scale(0.90); }

.score-zone {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.coffre-img {
  height: clamp(28px, 6vh, 48px);
  width: auto;
  display: block;
  -webkit-user-drag: none;
}

.points-box {
  background: #cc0000;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(0.80rem, 2.8vw, 1.1rem);
  min-width: clamp(32px, 9vw, 58px);
  padding: 3px 6px;
  border-radius: 5px;
  text-align: center;
  line-height: 1.2;
  border: 2px solid #cc0000;
}

/* ============================================================
   OVERLAY DE TRANSITION (fondu noir)
============================================================ */
.transition-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 100;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.4s ease;
}

/* ============================================================
   RESPONSIVE — PORTRAIT ÉTROIT (≤ 360px)
============================================================ */
@media (max-width: 360px) {
  .coffre-img  { height: 22px; }
  .points-box  { font-size: 0.68rem; min-width: 26px; }
  .retour-img  { height: 28px; }
}

/* ============================================================
   RESPONSIVE — TABLETTE (>= 600px)
============================================================ */
@media (min-width: 600px) {
  .coffre-img  { height: clamp(34px, 6vh, 54px); }
  .retour-img  { height: clamp(44px, 8vh, 70px); }
  .top-bar     { padding: 12px 18px; }
}

/* ============================================================
   RESPONSIVE — PAYSAGE MOBILE (hauteur ≤ 430px)
============================================================ */
@media (max-height: 430px) and (orientation: landscape) {
  .coffre-img  { height: 18px; }
  .points-box  { font-size: 0.58rem; min-width: 20px; padding: 1px 3px; }
  .retour-img  { height: 22px; }
  .top-bar     { padding: 4px 10px; }
}
