/* ─── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --card-w:  65px;
  --card-h:  92px;
  --radius:  12px;
  --text:    #ffffff;
  --text-muted: rgba(255,255,255,.65);
  --surface: rgba(0,0,0,.45);
  --surface2: rgba(0,0,0,.6);
  --accent:  #f5c842;
  --accent2: #f5c842;
}

html, body {
  height: 100%;
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  overflow-x: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a4a2e 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.screen { display: none; flex-direction: column; align-items: center; padding: 16px; min-height: 100vh; }
.screen.active { display: flex; }

.logo-img { width: 180px; max-width: 80vw; margin-bottom: 16px; margin-top: 40px; }
h1 { font-size: 48px; font-weight: 800; letter-spacing: 6px; color: var(--accent); }
.subtitle { color: var(--text-muted); margin: 4px 0 24px; }

#players-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.player-badge { background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 16px; font-size: 14px; backdrop-filter: blur(4px); }
.player-badge.me { border-color: var(--accent); color: var(--accent); }

.btn { border: none; border-radius: 8px; padding: 12px 28px; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .1s, box-shadow .2s; letter-spacing: .5px; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: default; }
.btn-primary { background: linear-gradient(135deg, #f5c842, #e0a020); color: #1a1a00; box-shadow: 0 4px 16px rgba(245,200,66,.4); }
.btn-primary:hover { box-shadow: 0 6px 24px rgba(245,200,66,.6); }
.btn-danger { background: rgba(127,29,29,.8); color: #fca5a5; border: 1px solid rgba(252,165,165,.3); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.status-text { color: var(--text-muted); font-size: 13px; margin-top: 12px; }

#top-bar { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--surface); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 8px 16px; margin-bottom: 8px; flex-shrink: 0; }
#round-info { font-size: 13px; color: var(--accent); font-weight: 700; white-space: nowrap; min-width: 60px; }
#turn-msg { flex: 1; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 6px 12px; color: var(--text-muted); font-size: 12px; line-height: 1.3; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#deck-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; flex-shrink: 0; align-self: center; }

.pile { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.pile-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }

.pile-card { width: var(--card-w); height: var(--card-h); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; border: none; transition: transform .15s, filter .15s; user-select: none; background-size: cover; background-position: center; background-repeat: no-repeat; box-shadow: none; color: transparent; }

.pile-card.back, .card.face-down { background-image: url('images/card_back.png'); background-size: cover; background-position: center; color: transparent; }
.pile-card.held-empty { background-image: none; background-color: rgba(255,255,255,.06); border: 2px dashed rgba(255,255,255,.2); box-shadow: none; }
.pile-card.empty-pile { background-image: none; background-color: rgba(255,255,255,.08); border: 2px dashed rgba(255,255,255,.3); color: var(--text-muted); font-size: 18px; box-shadow: none; border-radius: var(--radius); }

.pile-card[data-val="-2"], .card[data-val="-2"] { background-image: url('images/card_-2.png'); }
.pile-card[data-val="-1"], .card[data-val="-1"] { background-image: url('images/card_-1.png'); }
.pile-card[data-val="0"],  .card[data-val="0"]  { background-image: url('images/card_0.png');  }
.pile-card[data-val="1"],  .card[data-val="1"]  { background-image: url('images/card_1.png');  }
.pile-card[data-val="2"],  .card[data-val="2"]  { background-image: url('images/card_2.png');  }
.pile-card[data-val="3"],  .card[data-val="3"]  { background-image: url('images/card_3.png');  }
.pile-card[data-val="4"],  .card[data-val="4"]  { background-image: url('images/card_4.png');  }
.pile-card[data-val="5"],  .card[data-val="5"]  { background-image: url('images/card_5.png');  }
.pile-card[data-val="6"],  .card[data-val="6"]  { background-image: url('images/card_6.png');  }
.pile-card[data-val="7"],  .card[data-val="7"]  { background-image: url('images/card_7.png');  }
.pile-card[data-val="8"],  .card[data-val="8"]  { background-image: url('images/card_8.png');  }
.pile-card[data-val="9"],  .card[data-val="9"]  { background-image: url('images/card_9.png');  }
.pile-card[data-val="10"], .card[data-val="10"] { background-image: url('images/card_10.png'); }
.pile-card[data-val="11"], .card[data-val="11"] { background-image: url('images/card_11.png'); }
.pile-card[data-val="12"], .card[data-val="12"] { background-image: url('images/card_12.png'); }

.clickable { cursor: pointer; }
.clickable:hover .pile-card { transform: translateY(-5px); filter: brightness(1.08); }
.clickable.disabled { pointer-events: none; opacity: .35; }

#held-card.has-card { animation: pulse-held 1.5s ease-in-out infinite; }
@keyframes pulse-held {
  0%,100% { box-shadow: 0 4px 12px rgba(0,0,0,.5), 0 0 0 0 rgba(245,200,66,.5); }
  50%      { box-shadow: 0 4px 12px rgba(0,0,0,.5), 0 0 0 8px rgba(245,200,66,0); }
}

#all-grids { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; width: 100%; }

.player-grid-wrap {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
  width: calc(4 * var(--card-w) + 3 * 6px + 2 * 14px);
  box-sizing: border-box;
  flex-shrink: 0;
}
.player-grid-wrap.current-turn { border-color: var(--accent); box-shadow: 0 0 20px rgba(245,200,66,.2); }
.player-grid-wrap.is-me { background: transparent; backdrop-filter: none; border-color: transparent !important; box-shadow: none !important; }
.player-grid-wrap.disconnected { opacity: 0.45; filter: grayscale(60%); }

.player-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.player-name   { font-weight: 700; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.player-score  { margin-left: auto; font-size: 13px; color: var(--text-muted); }
.turn-indicator { font-size: 11px; background: var(--accent); color: #1a1a00; font-weight: 700; border-radius: 4px; padding: 2px 6px; }

.card-grid { display: grid; grid-template-columns: repeat(4, var(--card-w)); grid-template-rows: repeat(3, var(--card-h)); gap: 6px; }

.card { width: var(--card-w); height: var(--card-h); border-radius: var(--radius); border: none; cursor: default; user-select: none; perspective: 600px; box-shadow: none; background: none !important; }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.4,0,.2,1); border-radius: var(--radius); }
.card.flipped .card-inner { transform: rotateY(180deg); }
.card-front, .card-back { position: absolute; width: 100%; height: 100%; border-radius: var(--radius); backface-visibility: hidden; -webkit-backface-visibility: hidden; background-size: cover; background-position: center; background-repeat: no-repeat; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.card-back { background-image: url('images/card_back.png'); }
.card-front { transform: rotateY(180deg); }

.card-front[data-val="-2"] { background-image: url('images/card_-2.png'); }
.card-front[data-val="-1"] { background-image: url('images/card_-1.png'); }
.card-front[data-val="0"]  { background-image: url('images/card_0.png');  }
.card-front[data-val="1"]  { background-image: url('images/card_1.png');  }
.card-front[data-val="2"]  { background-image: url('images/card_2.png');  }
.card-front[data-val="3"]  { background-image: url('images/card_3.png');  }
.card-front[data-val="4"]  { background-image: url('images/card_4.png');  }
.card-front[data-val="5"]  { background-image: url('images/card_5.png');  }
.card-front[data-val="6"]  { background-image: url('images/card_6.png');  }
.card-front[data-val="7"]  { background-image: url('images/card_7.png');  }
.card-front[data-val="8"]  { background-image: url('images/card_8.png');  }
.card-front[data-val="9"]  { background-image: url('images/card_9.png');  }
.card-front[data-val="10"] { background-image: url('images/card_10.png'); }
.card-front[data-val="11"] { background-image: url('images/card_11.png'); }
.card-front[data-val="12"] { background-image: url('images/card_12.png'); }

.card.selectable { cursor: pointer; }
.card.selectable .card-back,
.card.selectable .card-front {
  box-shadow: 0 3px 8px rgba(0,0,0,.5), 0 0 0 1px var(--accent);
  border-radius: 7px;
}
.card.selectable:hover .card-inner { transform: translateY(-7px) scale(1.06); }
.card.selectable.flipped:hover .card-inner { transform: rotateY(180deg) translateY(-7px) scale(1.06); }

.card.eliminating .card-inner { animation: eliminate .7s ease forwards; }
@keyframes eliminate {
  0%   { transform: rotateY(180deg) scale(1); opacity: 1; }
  30%  { transform: rotateY(180deg) scale(1.2) rotate(8deg); }
  60%  { transform: rotateY(180deg) scale(1.1) rotate(-5deg); opacity: .6; }
  100% { transform: rotateY(180deg) scale(0); opacity: 0; }
}
.card.gone { visibility: hidden; pointer-events: none; }
.card.eliminated { visibility: hidden; pointer-events: none; }

@keyframes card-swap {
  0%   { transform: rotateY(180deg) scale(1.3) translateY(-10px); }
  60%  { transform: rotateY(180deg) scale(1.1) translateY(-4px); }
  100% { transform: rotateY(180deg) scale(1); }
}
.card.flipped.just-swapped .card-inner { animation: card-swap .5s cubic-bezier(.2,1,.3,1) forwards; }

h2 { font-size: 28px; font-weight: 800; margin-bottom: 20px; margin-top: 40px; color: var(--accent); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
#round-scores, #final-scores { width: 100%; max-width: 420px; margin-bottom: 24px; }
.score-row { display: flex; align-items: center; gap: 12px; background: var(--surface); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.score-row .s-name  { flex: 1; font-weight: 600; }
.score-row .s-round { color: var(--accent); font-weight: 700; min-width: 60px; text-align: right; }
.score-row .s-total { color: var(--text-muted); font-size: 13px; min-width: 80px; text-align: right; }
.score-row.doubled  { border-color: #ef4444; }
.score-row.winner   { border-color: var(--accent); background: rgba(245,200,66,.1); }
.trophy { font-size: 72px; margin-bottom: 8px; margin-top: 40px; }

#notif { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.85); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); color: var(--text); border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 20px rgba(0,0,0,.5); z-index: 1000; display: none; animation: notif-in .3s ease; }
@keyframes notif-in { from { opacity: 0; transform: translateX(-50%) translateY(-12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }

#login-box { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 320px; }
#username-input { width: 100%; padding: 14px 18px; border: 2px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); color: #fff; font-size: 16px; font-family: inherit; outline: none; transition: border-color .2s; text-align: center; letter-spacing: .5px; }
#username-input::placeholder { color: rgba(255,255,255,.35); }
#username-input:focus { border-color: var(--accent); }
.error-text { color: #ff453a; font-size: 13px; margin-top: 4px; min-height: 18px; }

/* ─── Desktop ────────────────────────────────────────────────── */
#others-container, #my-container { display: none; }
#top-bar { max-width: 900px; align-self: center; }
#deck-area { align-self: center; }

/* ─── Grilles fin de manche ──────────────────────────────────── */
#round-end-grids { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; width: 100%; margin: 16px 0; }

/* ─── Carte en main indicateur ───────────────────────────────── */
.held-indicator { width: 28px; height: 38px; border-radius: 5px; background-size: cover; background-position: center; box-shadow: 0 3px 8px rgba(0,0,0,.6), 0 0 0 1px rgba(245,200,66,.5); margin-left: 8px; flex-shrink: 0; animation: held-pulse 1.5s ease-in-out infinite; }
@keyframes held-pulse { 0%,100% { box-shadow: 0 3px 8px rgba(0,0,0,.6), 0 0 0 0 rgba(245,200,66,.6); } 50% { box-shadow: 0 3px 8px rgba(0,0,0,.6), 0 0 0 5px rgba(245,200,66,0); } }

/* ─── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {

  #screen-game {
    padding: 6px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    justify-content: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  #top-bar { max-width: 100%; padding: 5px 10px; gap: 8px; margin-bottom: 0; border-radius: 8px; flex-shrink: 0; order: 1; }
  #round-info { font-size: 11px; min-width: 50px; }
  #turn-msg { font-size: 10px; padding: 4px 8px; }

  #all-grids { display: none !important; }

  #others-container {
    display: block;
    width: 100%;
    flex-shrink: 0;
    order: 2;
    overflow: hidden;
  }

  #deck-area {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    width: 100%;
    align-self: auto;
    margin-bottom: 0;
  }
  .deck-piles {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 12px 20px;
    width: 100%;
  }
  #deck-area .pile-card { width: 52px; height: 72px; }
  #deck-area { gap: 16px; }
  #deck-area .pile-label { font-size: 9px; }

  #my-container {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
    order: 4;
  }

  #others-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #others-row::-webkit-scrollbar { display: none; }

  /* Grilles des autres — padding réduit */
  .player-grid-wrap:not(.is-me) {
    flex: 0 0 auto;
    width: calc(4 * 36px + 3 * 2px + 2 * 4px);
    padding: 3px 4px;
    box-sizing: border-box;
  }
  .player-grid-wrap:not(.is-me) .player-header { margin-bottom: 2px; }
  .player-grid-wrap:not(.is-me) .player-name   { font-size: 10px; }
  .player-grid-wrap:not(.is-me) .player-score  { font-size: 9px; }
  .player-grid-wrap:not(.is-me) .turn-indicator { font-size: 8px; padding: 1px 3px; }
  .player-grid-wrap:not(.is-me) .card-grid {
    grid-template-columns: repeat(4, 36px);
    grid-template-rows: repeat(3, 50px);
    gap: 2px;
  }
  .player-grid-wrap:not(.is-me) .card,
  .player-grid-wrap:not(.is-me) .card-inner,
  .player-grid-wrap:not(.is-me) .card-front,
  .player-grid-wrap:not(.is-me) .card-back {
    width: 36px !important;
    height: 50px !important;
    border-radius: 5px;
  }

  /* Ma grille — centrée */
  .player-grid-wrap.is-me {
    width: calc(4 * 68px + 3 * 3px + 2 * 6px);
    padding: 4px 6px;
    box-sizing: border-box;
  }
  .player-grid-wrap.is-me .card-grid {
    grid-template-columns: repeat(4, 68px);
    grid-template-rows: repeat(3, 94px);
    gap: 3px;
  }
  .player-grid-wrap.is-me .card,
  .player-grid-wrap.is-me .card-inner,
  .player-grid-wrap.is-me .card-front,
  .player-grid-wrap.is-me .card-back {
    width: 68px !important;
    height: 94px !important;
  }
}

/* ─── Badge score rond ───────────────────────────────────────── */
.score-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.9);
  color: #1a1a00;
  font-weight: 800;
  font-size: 12px;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* ─── Layout avec scoreboard ─────────────────────────────────── */
#game-layout {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  align-items: flex-start;
  flex: 1;
}

#game-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

/* ─── Tableau des scores ─────────────────────────────────────── */
#scoreboard {
  width: 140px;
  flex-shrink: 0;
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 12px 10px;
  position: sticky;
  top: 16px;
}

.scoreboard-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 8px;
}

.scoreboard-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 4px;
  border-radius: 8px;
  margin-bottom: 3px;
  transition: background .2s;
}
.scoreboard-row.current { background: rgba(245,200,66,.15); }

.scoreboard-name {
  font-size: 11px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreboard-score {
  background: rgba(255,255,255,.9);
  color: #1a1a00;
  font-weight: 800;
  font-size: 11px;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 3px;
}

/* Mobile — scoreboard caché */
@media (max-width: 600px) {
  #scoreboard { display: none; }
  #game-layout { flex-direction: column; gap: 0; }
  #game-center { width: 100%; }
}

/* ─── Scoreboard cadre joueur ────────────────────────────────── */
.scoreboard-wrap { min-width: 140px; }

.sb-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border-radius: 8px;
  margin-bottom: 2px;
}
.sb-row.sb-current { background: rgba(245,200,66,.15); }
.sb-rank  { font-size: 14px; flex-shrink: 0; width: 24px; text-align: center; }
.sb-name  { flex: 1; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Fin de manche — cartes cachées vs vues ─────────────────── */
.card.round-end-hidden .card-front,
.card.round-end-hidden .card-back {
  box-shadow: 0 0 0 3px #ef4444, 0 3px 8px rgba(0,0,0,.5);
  border: 3px solid #ef4444;
}

.card.round-end-seen .card-front,
.card.round-end-seen .card-back {
  filter: brightness(0.55);
  opacity: 0.75;
}

/* ─── Fin de partie — espacement cartes ─────────────────────── */
#final-grids {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  width: 100%;
  margin: 16px 0;
}

#final-grids .card-grid,
#round-end-grids .card-grid {
  gap: 8px;
}

/* ─── Écran fin de manche ────────────────────────────────────── */
#screen-round-end {
  background: radial-gradient(ellipse at top, rgba(245,200,66,.08) 0%, transparent 60%);
}

/* Podium */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  margin: 16px auto 20px;
  height: 130px;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  animation: podium-rise .6s cubic-bezier(.2,1,.3,1) both;
}
.podium-1 { animation-delay: .3s; }
.podium-2 { animation-delay: .1s; }
.podium-3 { animation-delay: .2s; }

@keyframes podium-rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.podium-medal { font-size: 24px; margin-bottom: 4px; }
.podium-name  { font-size: 11px; font-weight: 700; text-align: center; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.podium-score { font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 4px; }

.podium-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(245,200,66,.5), rgba(245,200,66,.15));
  border: 1px solid rgba(245,200,66,.3);
}
.podium-1 .podium-bar { height: 70px; background: linear-gradient(180deg, rgba(245,200,66,.7), rgba(245,200,66,.2)); }
.podium-2 .podium-bar { height: 50px; background: linear-gradient(180deg, rgba(180,180,180,.6), rgba(180,180,180,.2)); }
.podium-3 .podium-bar { height: 35px; background: linear-gradient(180deg, rgba(180,100,40,.6), rgba(180,100,40,.2)); }

/* Animation entrée scores */
@keyframes score-slide {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.score-row-anim {
  animation: score-slide .4s ease both;
}

.score-list { width: 100%; max-width: 420px; margin-bottom: 16px; }

/* ─── Mode Admin ─────────────────────────────────────────────── */
#admin-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
}

#admin-panel {
  position: fixed;
  bottom: 74px;
  right: 16px;
  width: 290px;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(10,10,10,.95);
  border: 1px solid rgba(255,100,100,.3);
  border-radius: 12px;
  padding: 14px;
  z-index: 9998;
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
  -webkit-overflow-scrolling: touch;
}

.admin-title {
  font-size: 12px;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,100,100,.2);
  padding-bottom: 8px;
}

.admin-action {
  display: block;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.admin-action:hover { background: rgba(255,255,255,.15); }
.admin-action.danger { border-color: rgba(255,100,100,.4); color: #fca5a5; }
.admin-action.danger:hover { background: rgba(255,100,100,.15); }

.admin-info {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
#admin-output { margin-top: 8px; }

/* ─── Admin tabs & sliders ───────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.admin-tab {
  flex: 1;
  padding: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}
.admin-tab.active {
  background: rgba(245,200,66,.2);
  border-color: var(--accent);
  color: var(--accent);
}
.admin-tab-content { }
.admin-slider-group {
  margin-bottom: 10px;
}
.admin-slider-group label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  margin-bottom: 4px;
}
.admin-slider-group input[type=range] {
  width: 100%;
  accent-color: var(--accent);
}

.admin-section {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin: 10px 0 6px;
  border-bottom: 1px solid rgba(245,200,66,.2);
  padding-bottom: 4px;
}

/* ─── Historique des manches ─────────────────────────────────── */
.history-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin: 20px 0 10px;
  text-align: center;
}
.history-table {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.history-row {
  display: flex;
  align-items: center;
}
.history-header {
  background: rgba(245,200,66,.15);
  border-bottom: 1px solid rgba(245,200,66,.2);
}
.history-header .history-cell { font-weight: 700; color: var(--accent); }
.history-total {
  background: rgba(255,255,255,.08);
  border-top: 1px solid rgba(255,255,255,.15);
}
.history-row:not(.history-header):not(.history-total) {
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.history-row:not(.history-header):not(.history-total):nth-child(even) {
  background: rgba(255,255,255,.03);
}
.history-cell {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}
.history-round {
  font-weight: 700;
  color: var(--text);
}
.history-doubled { color: #ef4444; }

/* ─── Position joueur ────────────────────────────────────────── */
.player-pos {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 1px 5px;
  flex-shrink: 0;
}

#leader-info {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.leader-badge {
  background: rgba(255,255,255,.9);
  color: #1a1a00;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ─── Countdown ──────────────────────────────────────────────── */
.countdown-display {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .3s, border-color .3s;
}
.countdown-display.warning {
  background: rgba(245,200,66,.25);
  border-color: var(--accent);
  color: var(--accent);
}
.countdown-display.urgent {
  background: rgba(239,68,68,.3);
  border-color: #ef4444;
  color: #ef4444;
  animation: countdown-pulse .5s ease-in-out infinite;
}
@keyframes countdown-pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

/* ─── DECK AREA FIX ─────────────────────────────────────────── */
#deck-area {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
  flex-shrink: 0 !important;
  align-self: center !important;
  width: 100% !important;
}

.deck-piles {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 12px 20px;
}

.pile-sep {
  width: 1px;
  height: 70px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.deck-turn-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 24px;
}

.deck-turn-label { color: rgba(255,255,255,0.5); font-size: 12px; }
.deck-turn-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(245,200,66,0.5);
  overflow: hidden; display: flex; align-items: center;
  justify-content: center; font-size: 9px; font-weight: 800; flex-shrink: 0;
}
.deck-turn-name { color: #f5c842; font-size: 13px; font-weight: 700; }

.pile { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pile-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.5);
}

/* ════════════════════════════════════════
   REDESIGN COMPLET
   ════════════════════════════════════════ */

/* ─── LOGIN ──────────────────────────────────────── */
#screen-login { justify-content: center; padding: 16px; }
.login-wrapper { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 360px; }
.login-logo-wrap { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.login-logo-wrap .logo-img { width: 110px; margin: 0; }
.login-title { display: none; }
.login-sub { color: rgba(255,255,255,0.9); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; }
.login-card { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 24px 20px; backdrop-filter: blur(12px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.avatar-upload-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 4px; }
.avatar-preview { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #2d6a4f, #1a4a2e); border: 2px solid rgba(245,200,66,0.4); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: var(--accent); overflow: hidden; cursor: pointer; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-upload-btn { font-size: 12px; color: rgba(255,255,255,0.5); cursor: pointer; padding: 4px 10px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; }
.login-label { color: rgba(255,255,255,0.5); font-size: 12px; align-self: flex-start; margin-bottom: -4px; }
.login-input { width: 100%; padding: 13px 16px; background: rgba(0,0,0,0.3); border: 1.5px solid rgba(255,255,255,0.15); border-radius: 12px; color: #fff; font-size: 15px; font-family: inherit; outline: none; text-align: center; transition: border-color 0.2s; box-sizing: border-box; }
.login-input::placeholder { color: rgba(255,255,255,0.25); }
.login-input:focus { border-color: var(--accent); }
.btn-full { width: 100%; }
.btn-secondary { background: rgba(255,255,255,0.07) !important; border: 1px solid rgba(255,255,255,0.15) !important; color: rgba(255,255,255,0.8) !important; }

/* ─── LOBBY ──────────────────────────────────────── */
#screen-lobby { justify-content: center; padding: 24px 16px; }
.lobby-wrapper { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; }
.lobby-sub { color: rgba(255,255,255,0.4); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.lobby-card { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 20px; margin-bottom: 16px; }
.lobby-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.lobby-label { color: rgba(255,255,255,0.5); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.lobby-counter { background: rgba(245,200,66,0.15); border: 1px solid rgba(245,200,66,0.3); color: var(--accent); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.lobby-player { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; margin-bottom: 8px; }
.lobby-player.is-host { background: rgba(245,200,66,0.08); border-color: rgba(245,200,66,0.2); }
.lobby-avatar { width: 40px; height: 40px; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; overflow: hidden; color: #fff; }
.lobby-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.lobby-player-info { flex: 1; min-width: 0; }
.lobby-player-name { font-weight: 700; font-size: 14px; color: #fff; }
.lobby-player-role { font-size: 11px; color: rgba(255,255,255,0.35); }
.lobby-player-role.host { color: var(--accent); }
.lobby-status-dot { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.lobby-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lobby-dot.ready { background: #4ade80; }
.lobby-dot.waiting { background: rgba(255,255,255,0.2); }
.lobby-status-text { font-size: 11px; }
.lobby-status-text.ready { color: #4ade80; }
.lobby-status-text.waiting { color: rgba(255,255,255,0.35); }
.empty-slots { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.empty-slot { flex: 1; min-width: 40px; height: 34px; background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.08); border-radius: 10px; }
.lobby-actions { display: flex; gap: 10px; width: 100%; max-width: 400px; margin-bottom: 12px; }
.lobby-actions .btn { flex: 1; }
.lobby-actions .btn-primary { flex: 2; }

/* ─── TOP BAR ────────────────────────────────────── */
#top-bar { width: 100%; max-width: 900px; align-self: center; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05) !important; border: 1px solid rgba(255,255,255,0.1) !important; border-radius: 14px !important; padding: 10px 14px !important; margin-bottom: 8px; flex-shrink: 0; transition: border-color 0.3s, box-shadow 0.3s; }
#top-bar.last-round { border-color: rgba(239,68,68,0.4) !important; box-shadow: 0 0 16px rgba(239,68,68,0.15); }
#round-info { background: rgba(245,200,66,0.15) !important; border: 1px solid rgba(245,200,66,0.3) !important; border-radius: 8px !important; padding: 4px 10px !important; flex-shrink: 0; color: #f5c842 !important; font-size: 12px !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; min-width: unset !important; }
#turn-msg { flex: 1; background: transparent !important; border: none !important; border-radius: 0 !important; padding: 0 4px !important; color: rgba(255,255,255,0.85) !important; font-size: 14px !important; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#last-round-badge { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.4); border-radius: 8px; padding: 4px 10px; flex-shrink: 0; color: #ef4444; font-size: 11px; font-weight: 800; text-transform: uppercase; white-space: nowrap; animation: blink-badge 1s ease-in-out infinite alternate; display: none; }
#last-round-badge.visible { display: block; }
@keyframes blink-badge { from { opacity: 0.7; } to { opacity: 1; } }
#deck-counter { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 4px 8px; flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
#deck-counter img { width: 18px; height: 25px; border-radius: 3px; object-fit: cover; }
#deck-counter span { color: #fff; font-size: 13px; font-weight: 700; }
.countdown-display { width: 38px !important; height: 38px !important; border-radius: 50% !important; background: rgba(255,255,255,0.1) !important; border: 2px solid rgba(255,255,255,0.3) !important; color: #fff !important; font-size: 15px !important; font-weight: 800 !important; display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; min-width: unset !important; }
.countdown-display.warning { background: rgba(245,200,66,0.2) !important; border-color: #f5c842 !important; color: #f5c842 !important; }
.countdown-display.urgent { background: rgba(239,68,68,0.25) !important; border-color: #ef4444 !important; color: #ef4444 !important; animation: countdown-pulse 0.5s ease-in-out infinite !important; }

/* ─── ZONE PIOCHE ────────────────────────────────── */
#deck-area { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 8px !important; margin-bottom: 8px !important; flex-shrink: 0 !important; align-self: center !important; width: 100% !important; }
.deck-piles { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 16px !important; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 12px 20px; }
.pile-sep { width: 1px; height: 70px; background: rgba(255,255,255,0.08); flex-shrink: 0; }
.deck-turn-info { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 24px; }
.deck-turn-label { color: rgba(255,255,255,0.5); font-size: 12px; }
.deck-turn-avatar { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(245,200,66,0.5); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; flex-shrink: 0; }
.deck-turn-name { color: #f5c842; font-size: 13px; font-weight: 700; }

/* ─── GRILLES ────────────────────────────────────── */
.player-grid-wrap { background: rgba(255,255,255,0.04) !important; border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 16px !important; }
.player-grid-wrap.current-turn { border-color: rgba(245,200,66,0.35) !important; box-shadow: 0 0 20px rgba(245,200,66,0.08) !important; }
.player-grid-wrap.is-me { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.1) !important; }
.player-avatar { border-radius: 50% !important; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex-shrink: 0; }
.player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-avatar.is-me-avatar { border: 2px solid rgba(245,200,66,0.5); }

/* ─── FIN DE MANCHE ──────────────────────────────── */
#screen-round-end { justify-content: flex-start; padding: 20px 16px; overflow-y: auto; }
#screen-round-end h2 { color: #f5c842 !important; font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.podium-new { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 185px; padding-top: 35px; width: 100%; max-width: 400px; }
.podium-slot-new { display: flex; flex-direction: column; align-items: center; flex: 1; }
.podium-bar-new { width: 100%; border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.podium-slot-new.p1 .podium-bar-new { height: 100px; background: linear-gradient(180deg,rgba(245,200,66,0.5),rgba(245,200,66,0.1)); border: 1px solid rgba(245,200,66,0.4); }
.podium-slot-new.p2 .podium-bar-new { height: 70px; background: linear-gradient(180deg,rgba(180,180,180,0.4),rgba(180,180,180,0.1)); border: 1px solid rgba(180,180,180,0.3); }
.podium-slot-new.p3 .podium-bar-new { height: 50px; background: linear-gradient(180deg,rgba(180,100,40,0.4),rgba(180,100,40,0.1)); border: 1px solid rgba(180,100,40,0.3); }
.podium-phrase { color: rgba(255,255,255,0.5); font-size: 9px; font-style: italic; text-align: center; line-height: 1.3; padding: 0 2px; margin-bottom: 4px; }
.podium-phrase.p1 { color: rgba(245,200,66,0.8); }
.results-table { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; width: 100%; max-width: 400px; }
.results-header { display: flex; align-items: center; padding: 10px 14px; background: rgba(245,200,66,0.08); border-bottom: 1px solid rgba(245,200,66,0.15); }
.results-header span { color: #f5c842; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.results-row { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.results-row:last-child { border-bottom: none; }
.results-row.winner-row { background: rgba(245,200,66,0.05); }
.results-row.last-row { background: rgba(239,68,68,0.04); flex-direction: column; align-items: stretch; }
.results-row-main { display: flex; align-items: center; width: 100%; }
.results-last-phrase { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); border-radius: 8px; padding: 7px 10px; margin-top: 8px; }
.results-last-phrase span { color: rgba(255,255,255,0.55); font-size: 11px; font-style: italic; }
.results-player { display: flex; align-items: center; gap: 8px; flex: 1; }
.results-avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; flex-shrink: 0; }
.results-avatar img { width: 100%; height: 100%; object-fit: cover; }
.winner-badge { background: rgba(74,222,128,0.15); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.doubled-badge { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.4); color: #ef4444; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }

/* ─── FIN DE PARTIE ──────────────────────────────── */
#screen-end { justify-content: flex-start; padding: 20px 16px; overflow-y: auto; }
.end-wrapper { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; gap: 16px; }
.trophy-anim { font-size: 56px; animation: trophy-bounce 1s ease-in-out infinite alternate; }
@keyframes trophy-bounce { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-8px) rotate(5deg); } }
.end-title { color: #f5c842; font-size: 26px; font-weight: 800; letter-spacing: 2px; margin-bottom: 4px; text-align: center; }
.end-subtitle { color: rgba(255,255,255,0.5); font-size: 13px; text-align: center; }
.end-podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 210px; padding-top: 35px; width: 100%; }
.end-actions { display: flex; gap: 10px; width: 100%; }
.end-actions .btn-secondary { flex: 1; }
.end-actions .btn-primary { flex: 2; }

@media (max-width: 600px) {
  #top-bar { padding: 7px 10px !important; gap: 6px !important; border-radius: 10px !important; }
  #round-info { font-size: 10px !important; padding: 3px 7px !important; }
  #turn-msg { font-size: 11px !important; }
  #deck-counter img { width: 14px; height: 20px; }
  #deck-counter span { font-size: 11px; }
  .countdown-display { width: 32px !important; height: 32px !important; font-size: 13px !important; }
  #last-round-badge { font-size: 10px; padding: 3px 7px; }
}

/* ─── LOBBY LOGO ─────────────────────────────────────────── */
.lobby-logo {
  width: 80px;
  margin-bottom: 8px;
  margin-top: 0;
}



/* ─── FIX BARRE IOS PROPRE ───────────────────────────────── */
html {
  background: #1a1a2e !important;
}
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a4a2e 100%);
}
body {
  background: transparent !important;
  /* PAS de padding-top ici — géré par chaque écran */
}
#screen-login {
  padding-top: max(20px, env(safe-area-inset-top, 0px)) !important;
}
#screen-lobby {
  padding-top: max(20px, env(safe-area-inset-top, 0px)) !important;
}
#screen-game {
  padding-top: max(6px, env(safe-area-inset-top, 0px)) !important;
}
#screen-round-end, #screen-end {
  padding-top: max(20px, env(safe-area-inset-top, 0px)) !important;
}
/* Grille joueur scrollable */
#my-container {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 1;
}

/* ─── NOTIFICATION POPUP AU NIVEAU PIOCHE ───────────────── */
#notif {
  position: fixed !important;
  top: 62% !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(-50%) !important;
  background: rgba(15, 25, 55, 0.95) !important;
  border: 1px solid rgba(245,200,66,0.35) !important;
  color: #fff !important;
  border-radius: 14px !important;
  padding: 12px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,200,66,0.1) !important;
  z-index: 1000 !important;
  text-align: center !important;
  max-width: 75vw !important;
  backdrop-filter: blur(8px) !important;
}
@keyframes notif-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-40%); }
  to   { opacity: 1; transform: translateX(-50%) translateY(-50%); }
}
