/* ===== DA Emmie Sphère — « néo-brutalisme joyeux » (cf. SPECS §7) ===== */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@700;800;900&family=Nunito:wght@600;700;800;900&display=swap");

:root {
  --mint:   #b4e0d8;
  --pink:   #ee8fc3;
  --yellow: #fde047;
  --dark:   #2d2a3e;
  --light:  #fffdf5;
  --white:  #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  background: var(--light);
  color: var(--dark);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: "Outfit", sans-serif; font-weight: 900; }
h1 em, h2 em { font-style: normal; color: var(--pink); }

/* ---- Keyframes de référence (reprises de la boutique) ---- */
@keyframes pop-in { 0% { transform: scale(.6) rotate(-4deg); opacity: 0; } 70% { transform: scale(1.06) rotate(1deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
@keyframes blob-morph { 0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; } 50% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; } }
@keyframes slide-up { 0% { transform: translateY(26px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

.pop-in   { animation: pop-in .5s cubic-bezier(.2, .9, .3, 1.15) both; }
.slide-up { animation: slide-up .5s cubic-bezier(.2, .9, .3, 1.15) both; }

/* ---- Blobs décoratifs ancrés aux coins ---- */
.blob {
  position: fixed;
  width: 240px;
  height: 240px;
  border: 4px solid var(--dark);
  animation: blob-morph 9s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
.blob.b-mint   { background: var(--mint); }
.blob.b-pink   { background: var(--pink); }
.blob.b-yellow { background: var(--yellow); }
.blob.tl { top: -90px;  left: -90px; }
.blob.tr { top: -100px; right: -80px; animation-delay: -3s; }
.blob.bl { bottom: -100px; left: -70px; animation-delay: -5s; }
.blob.br { bottom: -90px;  right: -90px; animation-delay: -7s; }
/* Sur mobile, les blobs restent décoratifs mais ne mordent pas sur le contenu */
@media (max-width: 640px) {
  .blob { width: 130px; height: 130px; opacity: .8; }
  .blob.tl { top: -55px; left: -55px; }
  .blob.tr { top: -60px; right: -50px; }
  .blob.bl { bottom: -60px; left: -45px; }
  .blob.br { bottom: -55px; right: -55px; }
}

/* ---- Composants ---- */
.card {
  position: relative;
  background: var(--white);
  border: 4px solid var(--dark);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--dark);
  padding: 24px;
}
.card.tilt-l { transform: rotate(-1.2deg); }
.card.tilt-r { transform: rotate(1.2deg); }

.btn {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark);
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--dark);
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn:hover  { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--dark); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 5px 5px 0 var(--dark); }
.btn.mint   { background: var(--mint); }
.btn.pink   { background: var(--pink); }
.btn.yellow { background: var(--yellow); }
.btn.dark   { background: var(--dark); color: var(--white); }
.btn.big    { font-size: 1.35rem; padding: 18px 36px; }
.btn.bicolor { box-shadow: 5px 5px 0 0 var(--yellow), 5px 5px 0 3px var(--dark); }

.pill {
  display: inline-block;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: .85rem;
  background: var(--yellow);
  border: 3px solid var(--dark);
  border-radius: 999px;
  padding: 6px 16px;
  transform: rotate(-2deg);
}

.badge-site {
  display: inline-block;
  background: var(--white);
  color: var(--dark);
  border: 3px solid var(--dark);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: .85rem;
  box-shadow: 4px 4px 0 var(--dark);
  text-decoration: none;
}

input[type="text"], input[type="password"], select {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 14px;
  padding: 12px 16px;
  width: 100%;
  outline: none;
}
input:focus, select:focus { box-shadow: 4px 4px 0 var(--mint); }

.sparkle { color: var(--pink); }

/* ---- Layout plein écran type (fond crème + blobs + contenu centré) ---- */
.screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px 20px;
  text-align: center;
}
.screen h1 { font-size: clamp(1.8rem, 6vw, 3.2rem); line-height: 1.1; }
.screen p  { font-size: 1.05rem; font-weight: 700; max-width: 480px; }

/* ---- Vue joueur ---- */
.avatars { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.avatar-pick {
  font-size: 1.7rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 16px;
  cursor: pointer;
  transition: transform .12s ease;
}
.avatar-pick:hover { transform: rotate(-4deg) scale(1.08); }
.avatar-pick.selected { background: var(--mint); box-shadow: 4px 4px 0 var(--dark); transform: rotate(2deg); }

.choices { display: grid; grid-template-columns: 1fr; gap: 14px; width: 100%; max-width: 440px; }
.choice {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  border: 4px solid var(--dark);
  border-radius: 20px;
  padding: 16px 18px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--dark);
  transition: transform .12s ease;
  text-align: left;
}
.choice:nth-child(4n+1) { background: var(--mint); }
.choice:nth-child(4n+2) { background: var(--pink); }
.choice:nth-child(4n+3) { background: var(--yellow); }
.choice:nth-child(4n+4) { background: var(--white); }
.choice:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--dark); }
.choice.mine { outline: 4px dashed var(--dark); outline-offset: 3px; }
.choice.correct-choice { box-shadow: 5px 5px 0 0 var(--yellow), 5px 5px 0 3px var(--dark); transform: rotate(-1deg) scale(1.02); }
.choice.dimmed { opacity: .45; }
.choice .count { float: right; font-family: "Outfit", sans-serif; font-weight: 900; }

.timerbar {
  width: 100%; max-width: 440px; height: 22px;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 999px;
  overflow: hidden;
}
.timerbar > div { height: 100%; background: var(--yellow); border-right: 3px solid var(--dark); transition: width .25s linear; }

.scorecard {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--mint);
}

.player-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 800;
  font-size: .95rem;
  animation: pop-in .5s cubic-bezier(.2, .9, .3, 1.15) both;
}
.player-chip.offline { opacity: .5; }

.code-display {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 3.4rem);
  letter-spacing: .08em;
  background: var(--white);
  border: 4px solid var(--dark);
  border-radius: 20px;
  padding: 10px 28px;
  box-shadow: 6px 6px 0 0 var(--yellow), 6px 6px 0 4px var(--dark);
  transform: rotate(-1.5deg);
}

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  border: 3px solid var(--dark);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 800;
  z-index: 50;
  animation: pop-in .4s cubic-bezier(.2, .9, .3, 1.15) both;
}

/* ---- Régie admin ---- */
.admin-wrap {
  position: relative; z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  display: flex; flex-direction: column; gap: 22px;
}
.admin-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1.4fr 1fr; } }
.controls { display: flex; flex-wrap: wrap; gap: 14px; }
.controls .btn { flex: 1 1 180px; }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field label { font-weight: 900; font-size: .9rem; }
.players-admin { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.player-row {
  display: flex; align-items: center; gap: 10px;
  border: 3px solid var(--dark);
  border-radius: 14px;
  padding: 8px 12px;
  background: var(--light);
}
.player-row .grow { flex: 1; text-align: left; }
.player-row .kick {
  background: var(--pink);
  border: 3px solid var(--dark);
  border-radius: 10px;
  font-weight: 900;
  padding: 4px 10px;
  cursor: pointer;
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--dark); }
.dot.on  { background: var(--mint); animation: pulse-dot 1.6s ease-in-out infinite; }
.dot.off { background: var(--white); }

/* ---- Piratatak : cartes physiques ---- */
.gcard {
  position: relative;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  width: 100%;
}
.gcard-art { flex: 1; min-height: 0; background: var(--light); }
.gcard-art svg { width: 100%; height: 100%; display: block; }
.gcard-art.ghost { opacity: .13; }
.gcard-art.icon { display: grid; place-items: center; padding: 8px; background: var(--white); }
.gcard-name {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: .6rem;
  text-align: center;
  border-top: 2.5px solid var(--dark);
  padding: 3px 2px;
  background: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gcard-title {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: .8rem;
  text-align: center;
  border-top: 2.5px solid var(--dark);
  padding: 4px 2px;
  background: var(--white);
}
.gcard.slot { border-style: dashed; box-shadow: none; background: rgba(255, 255, 255, .5); }
.gcard.slot .gcard-name { border-top-style: dashed; opacity: .7; background: transparent; }
.gcard.owned .gcard-name { background: var(--yellow); }
.gcard.bad { border-color: var(--dark); outline: 3px solid var(--pink); outline-offset: -6px; animation: wiggle .35s ease-in-out 3; }
.gcard.back {
  background: var(--dark);
  display: grid;
  place-items: center;
}
.gcard.back .back-spark { color: var(--yellow); font-size: 2.1rem; line-height: 1; }
.gcard.back .back-heart { position: absolute; bottom: 8px; right: 10px; color: var(--pink); font-size: .95rem; }
@keyframes flip-in { 0% { transform: rotateY(90deg) scale(.8); opacity: 0; } 100% { transform: rotateY(0) scale(1); opacity: 1; } }
.gcard.flip-in, .flip-in > .gcard { animation: flip-in .4s cubic-bezier(.2, .9, .3, 1.15) both; }

.boat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}
.boat-grid .gcard.owned .gcard-art { animation: pop-in .45s cubic-bezier(.2, .9, .3, 1.15) both; }

.tapis {
  width: 100%;
  max-width: 400px;
  background: var(--mint);
  border: 4px solid var(--dark);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--dark);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tapis-hint { font-size: .85rem; font-weight: 800; text-align: center; }

.reserve { display: flex; gap: 12px; }
.reserve-item {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 900;
  font-size: 1.05rem;
}

.deck-btn {
  position: relative;
  width: 112px;
  aspect-ratio: 5 / 6;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.deck-btn .gcard.back { position: absolute; inset: 0; }
.deck-btn .gcard.back:nth-child(1) { transform: translate(7px, 7px) rotate(2deg); }
.deck-btn .gcard.back:nth-child(2) { transform: translate(3.5px, 3.5px) rotate(-1deg); }
.deck-btn:active .gcard.back:nth-child(3) { transform: translate(3px, 3px); }
.deck-btn:disabled { opacity: .45; cursor: not-allowed; }
.deck-tap {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: .07em;
  z-index: 2;
  pointer-events: none;
  text-shadow: 1.5px 1.5px 0 var(--dark);
}

/* Cartes en attente sur un board */
.side-card {
  position: relative;
  display: inline-block;
  width: 44px; height: 52px;
  background: var(--white);
  border: 2.5px solid var(--dark);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
}
.side-card svg { width: 100%; height: 100%; display: block; }
.side-card.buyable { cursor: pointer; box-shadow: 3px 3px 0 var(--yellow), 3px 3px 0 2px var(--dark); }
.side-card.buyable:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--dark); }
.buy-tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--yellow);
  border-top: 2px solid var(--dark);
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: .58rem;
  text-align: center;
}
.own-side {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .55);
  border: 2.5px dashed var(--dark);
  border-radius: 12px;
  padding: 6px 10px;
}
.os-label { font-size: .72rem; font-weight: 900; }

/* La table entière sur le téléphone */
.mini-table {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 4px solid var(--dark);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--mint), 5px 5px 0 3px var(--dark);
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.mt-head { display: flex; justify-content: space-between; align-items: center; }
.mt-deck {
  font-family: "Outfit", sans-serif; font-weight: 900; font-size: .8rem;
  background: var(--dark); color: var(--white);
  border-radius: 999px; padding: 3px 12px;
}
.mt-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.mini-mat {
  flex: 0 0 auto;
  width: 128px;
  background: var(--light);
  border: 3px solid var(--dark);
  border-radius: 12px;
  padding: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.mini-mat.frozen { outline: 3px solid var(--pink); animation: wiggle .5s ease-in-out infinite; }
.mini-mat.finished { outline: 3px solid var(--yellow); }
.mm-pseudo { font-weight: 900; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mini-mat .boat-grid { gap: 3px; }
.mini-mat .gcard { border-width: 2px; border-radius: 5px; box-shadow: 1.5px 1.5px 0 var(--dark); }
.mini-mat .gcard-name, .mini-mat .gcard-title { display: none; }
.mm-side { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.mm-side .side-card { width: 30px; height: 36px; border-width: 2px; border-radius: 6px; }
.mm-side .buy-tag { font-size: .5rem; }
.mm-res { font-size: .75rem; font-weight: 900; display: flex; align-items: center; gap: 3px; }
.mt-hint { font-size: .78rem; font-weight: 800; text-align: center; opacity: .8; }

/* ---- Composition : mobile en colonne, PC en deux zones (ton jeu | la table) ---- */
.pir-layout { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.pir-you { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 420px; }
.pir-side-col { width: 100%; max-width: 420px; display: flex; justify-content: center; }
.you-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.pir-lobby-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: stretch; width: 100%; max-width: 900px; }
.pir-lobby-row .tapis { flex: 0 1 400px; }
.pir-lobby-row .card { flex: 0 1 380px; }

/* Quiz : deux colonnes de réponses dès qu'il y a la place */
@media (min-width: 720px) {
  .choices { max-width: 640px; grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .screen:has(.pir-layout) { justify-content: flex-start; padding-top: 32px; }
  .pir-layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 36px;
    max-width: 1140px;
  }
  .pir-you { max-width: 430px; flex-shrink: 0; }
  .pir-side-col { max-width: 640px; flex: 1; }
  .mini-table { max-width: none; width: 100%; }
  .mt-scroll { flex-wrap: wrap; overflow-x: visible; justify-content: center; gap: 12px; align-items: flex-start; }
  .mini-mat { width: 152px; }
  .discard-grid { max-width: 580px; grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); }
}

/* Micro-interactions au survol (PC uniquement) */
@media (hover: hover) {
  .deck-btn:not(:disabled):hover .gcard.back:nth-child(3) { transform: translate(-2px, -2px); transition: transform .12s ease; }
  .side-card.buyable:hover { transform: translateY(-3px) rotate(-2deg); transition: transform .12s ease; }
  .disc-card:hover .gcard { transform: translateY(-3px); transition: transform .12s ease; }
  .avatar-pick, .react-btn, .choice { transition: transform .12s ease; }
}

/* Choix des cartes à donner aux pirates */
.discard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 360px;
}
.disc-card { background: none; border: none; padding: 0; cursor: pointer; }
.disc-card .gcard { pointer-events: none; }
.disc-card.sel .gcard {
  outline: 4px solid var(--pink);
  outline-offset: 2px;
  transform: translateY(-5px) rotate(-2deg);
  box-shadow: 5px 5px 0 0 var(--pink), 5px 5px 0 3px var(--dark);
}

.drawn { display: flex; flex-direction: column; gap: 6px; align-items: center; width: 132px; }
.drawn .gcard { width: 112px; }
.drawn-note { font-size: .78rem; font-weight: 800; text-align: center; min-height: 2.2em; }
.drawn-note.bad { color: var(--pink); }

.pir-top { display: flex; align-items: center; gap: 14px; }
.pir-timer {
  font-size: 1.5rem;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 999px;
  padding: 4px 18px;
  box-shadow: 4px 4px 0 var(--yellow), 4px 4px 0 3px var(--dark);
}
.pir-stocks { display: flex; gap: 10px; }
.stock {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 900;
  font-size: 1.05rem;
}
.heat-wrap { display: flex; flex-direction: column; gap: 4px; align-items: center; width: 100%; max-width: 340px; }
.heat-label { font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.heatbar {
  width: 100%; height: 18px;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 999px;
  overflow: hidden;
}
.heatbar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--yellow) 55%, var(--pink));
  border-right: 3px solid var(--dark);
  transition: width .18s ease;
}
.draw-zone { min-height: 62px; display: grid; place-items: center; }
.draw-card {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.05rem;
  border: 3px solid var(--dark);
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 4px 4px 0 var(--dark);
  background: var(--white);
  transform: rotate(-1deg);
}
.draw-card.mint { background: var(--mint); }
.draw-card.pink { background: var(--pink); animation: wiggle .35s ease-in-out 3; }
.draw-card.yellow { background: var(--yellow); }
.dc-icon { font-size: 1.5rem; }
.frozen-note {
  background: var(--pink);
  border: 3px solid var(--dark);
  border-radius: 16px;
  padding: 10px 18px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--dark);
  animation: wiggle .5s ease-in-out infinite;
}
.pir-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 340px; }

/* Pioche : le paquet de cartes + la carte révélée */
.draw-row { display: flex; gap: 16px; align-items: stretch; justify-content: center; width: 100%; max-width: 380px; }
.deck {
  position: relative;
  width: 118px; min-height: 150px;
  background: var(--dark);
  border: 3px solid var(--dark);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--white), 3px 3px 0 3px var(--dark), 7px 7px 0 3px var(--mint), 7px 7px 0 6px var(--dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s ease;
  flex-shrink: 0;
}
.deck:active { transform: translate(3px, 3px); }
.deck:disabled { opacity: .5; cursor: not-allowed; }
.deck-spark { color: var(--yellow); font-size: 2.2rem; animation: pulse-dot 1.6s ease-in-out infinite; }
.deck-label { font-family: "Outfit", sans-serif; font-weight: 900; color: var(--white); letter-spacing: .08em; font-size: .95rem; }
.pcard {
  flex: 1;
  min-height: 150px;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 12px;
  text-align: center;
  transform: rotate(1.2deg);
}
.pcard.good { box-shadow: 5px 5px 0 0 var(--yellow), 5px 5px 0 3px var(--dark); }
.pcard.bad  { background: var(--pink); animation: wiggle .35s ease-in-out 3; }
.pcard.meh  { opacity: .92; }
.pcard.empty { border-style: dashed; box-shadow: none; opacity: .75; }
.pcard-icon { width: 64px; height: 64px; }
.pcard-icon svg { width: 100%; height: 100%; }
.pcard-title { font-family: "Outfit", sans-serif; font-weight: 900; font-size: 1.02rem; line-height: 1.15; }
.pcard-sub { font-size: .8rem; font-weight: 800; opacity: .8; }
@keyframes flip-in { 0% { transform: rotateY(90deg) scale(.75) rotate(1.2deg); opacity: 0; } 100% { transform: rotateY(0) scale(1) rotate(1.2deg); opacity: 1; } }
.pcard.flip-in { animation: flip-in .4s cubic-bezier(.2, .9, .3, 1.15) both; }

.color-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 800; font-size: .9rem;
}
.color-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--dark); }

/* Réactions (icônes designées) */
.react-bar { display: flex; gap: 12px; justify-content: center; }
.react-btn {
  width: 52px; height: 52px;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--dark);
  padding: 8px;
  transition: transform .12s ease;
}
.react-btn svg { width: 100%; height: 100%; }
.react-btn:hover { transform: rotate(-4deg) scale(1.08); }
.react-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--dark); }
.react-btn:disabled { opacity: .45; }
.countdown-big {
  font-size: clamp(5rem, 22vw, 9rem);
  color: var(--pink);
  -webkit-text-stroke: 4px var(--dark);
  animation: pop-in .4s cubic-bezier(.2, .9, .3, 1.15) both;
}

.mono-url {
  font-size: .85rem;
  word-break: break-all;
  background: var(--light);
  border: 3px dashed var(--dark);
  border-radius: 12px;
  padding: 8px 10px;
}
