/* Complements propres au site « Moumoute et cocktails » (le reste vient de style.css). */

/* ---------- Avatar avec moumoute ---------- */
.mc-ava { position: relative; display: inline-flex; align-items: flex-end; justify-content: center; width: 46px; height: 52px; flex: none; }
.mc-ava .face { position: relative; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.mc-ava .wig { position: absolute; z-index: 3; top: -2px; left: 50%; width: 52px; height: 26px; transform: translateX(-50%);
  border-radius: 26px 26px 10px 10px; background: var(--wig, transparent); pointer-events: none;
  box-shadow: -14px 8px 0 -4px var(--wig2, var(--wig)), 14px 8px 0 -4px var(--wig2, var(--wig)), 0 -6px 0 -2px var(--wig2, var(--wig)); }
.mc-ava.none .wig { display: none; }
.mc-ava.big { width: 110px; height: 124px; }
.mc-ava.big .face { width: 96px; height: 96px; font-size: 54px; border-width: 5px; }
.mc-ava.big .wig { width: 124px; height: 62px; top: -6px; border-radius: 62px 62px 22px 22px;
  box-shadow: -32px 18px 0 -8px var(--wig2, var(--wig)), 32px 18px 0 -8px var(--wig2, var(--wig)), 0 -14px 0 -4px var(--wig2, var(--wig)); }
.mc-ava.mid { width: 70px; height: 80px; }
.mc-ava.mid .face { width: 60px; height: 60px; font-size: 32px; }
.mc-ava.mid .wig { width: 78px; height: 40px; border-radius: 40px 40px 14px 14px;
  box-shadow: -20px 12px 0 -6px var(--wig2, var(--wig)), 20px 12px 0 -6px var(--wig2, var(--wig)), 0 -9px 0 -3px var(--wig2, var(--wig)); }

/* ---------- Connexion : choix du prenom ---------- */
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 14px 0; }
.who { background: #fff; border: 3px solid transparent; border-radius: 16px; padding: 10px 4px 8px; text-align: center; font-weight: 600; cursor: pointer; }
.who:hover { border-color: var(--gold); }
.who.sel { border-color: var(--red); background: #fff3e6; }
.who small { display: block; font-weight: 400; font-size: 11px; color: #7a6555; }

/* ---------- Invitation ---------- */
.invite { text-align: center; }
.invite .xmas { font-size: 44px; color: var(--red); margin: 6px 0 2px; line-height: 1.1; }
.invite .date { font-size: 22px; font-weight: 600; color: var(--green); }
.invite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; text-align: left; }
.invite-grid .tile { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.invite-grid .tile .ico { font-size: 34px; }
.invite-grid .tile h3 { margin: 4px 0; }
.wig-parade { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- Cocktails ---------- */
.cocktail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cocktail { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 4px 12px rgba(0,0,0,.12); position: relative; }
.cocktail.mine { outline: 4px dashed var(--gold); }
.cocktail .glass { font-size: 40px; float: right; animation: wobble 3s infinite ease-in-out; }
.cocktail .nom { font-family: "Christmas"; font-size: 28px; color: var(--red); margin: 4px 0; }
.cocktail .empty { color: #7a6555; font-style: italic; }
.cocktail label { display: block; font-weight: 600; margin: 8px 0 4px; font-size: 14px; }
.dup { background: #fdebd0; color: #9a5b00; border-radius: 10px; padding: 6px 10px; font-size: 14px; margin-top: 8px; }

/* ---------- Secret Santa ---------- */
.santa-steps { display: flex; gap: 8px; justify-content: center; margin: 10px 0 18px; flex-wrap: wrap; }
.santa-steps .st { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: #e5e0d8; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.santa-steps .st.done { background: var(--green); }
.santa-steps .st.cur { background: var(--gold); animation: wobble 1.6s infinite ease-in-out; }
.clues { list-style: none; padding: 0; margin: 0 0 14px; }
.clues li { background: #fff; border-left: 6px solid var(--gold); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: 18px; }
.quiz-q { font-size: 22px; font-weight: 600; text-align: center; margin: 8px 0 14px; }
.quiz-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.quiz-choices button { background: #fff; border: 3px solid #e0c9a6; border-radius: 18px; padding: 14px 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.quiz-choices button .em { display: block; font-size: 54px; line-height: 1.1; }
.quiz-choices button:hover { border-color: var(--gold); transform: scale(1.03); }
.quiz-choices button.wrong { border-color: var(--red); animation: shake .4s; opacity: .5; }

.game-box { position: relative; height: 360px; background: linear-gradient(#123a6b, #2a5d9b); border-radius: 18px; overflow: hidden; touch-action: manipulation; user-select: none; }
.game-hud { position: absolute; top: 8px; left: 12px; right: 12px; display: flex; justify-content: space-between; color: #fff; font-weight: 600; font-size: 18px; z-index: 2; text-shadow: 0 2px 4px rgba(0,0,0,.4); }
.flying-wig { position: absolute; width: 64px; height: 44px; border-radius: 32px 32px 12px 12px; cursor: pointer; transition: left 1.4s linear, top 1.4s linear;
  box-shadow: -16px 10px 0 -5px var(--w), 16px 10px 0 -5px var(--w), 0 -8px 0 -3px var(--w); background: var(--w); }
.flying-wig.caught { transform: scale(0); transition: transform .25s; }
.game-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 20px; z-index: 3; background: rgba(0,0,0,.35); }
.game-start p { font-size: 18px; margin: 0; }

.shaker-zone { text-align: center; padding: 20px 0; }
.shaker-btn { font-size: 110px; background: none; border: none; line-height: 1; touch-action: manipulation; user-select: none; }
.shaker-btn.shake { animation: shake .15s; }
.gauge-bar { height: 22px; border-radius: 12px; background: #e5e0d8; overflow: hidden; max-width: 420px; margin: 10px auto; }
.gauge-bar > div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); width: 0; transition: width .15s; }

.reveal { text-align: center; }
.reveal .name { font-family: "Christmas"; font-size: 56px; color: var(--red); margin: 6px 0; }
.envies-box { background: #fff; border-radius: 14px; padding: 12px 16px; text-align: left; white-space: pre-wrap; margin: 10px auto; max-width: 560px; }

/* ---------- Choix de moumoute ---------- */
.wig-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.wig-opt { background: #fff; border: 3px solid transparent; border-radius: 16px; padding: 10px 4px; text-align: center; font-size: 13px; font-weight: 600; cursor: pointer; }
.wig-opt.sel { border-color: var(--red); background: #fff3e6; }

/* ---------- Troupe ---------- */
.troupe-foyer { margin-bottom: 14px; }
.troupe-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.troupe-member { background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.troupe-member .envies { font-size: 13px; color: #6b5f52; white-space: pre-wrap; margin-top: 4px; }
