/* ==========================================================================
   Mindbug en ligne — habillage
   Palette tirée des cartes elles-mêmes : l'encre et le liseré orange de leur
   cartouche de texte, le rose des tentacules, l'or du logo, le turquoise de l'œil.
   ========================================================================== */
@font-face { font-family: "Lilita One"; src: url("fonts/lilita-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #131a2b;          /* fond des panneaux (cartouche des cartes) */
  --ink-2: #1e2740;
  --frame: #f39a1e;        /* liseré orange des cartes */
  --gold: #ffc931;
  --gold-deep: #c97a00;
  --pink: #ff4f93;         /* camp adverse */
  --pink-deep: #a8104c;
  --teal: #1fd6c8;         /* votre camp */
  --teal-deep: #0a7379;
  --text: #fff6e4;
  --muted: #b8b6d8;
  --line: #3b4468;
  /* anciens noms encore utilisés par la page d'administration */
  --green: var(--teal);
  --crimson: var(--pink-deep);
  --violet: #8f5bd6;
  --display: "Lilita One", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  /* La taille des cartes suit la hauteur de la fenêtre */
  --card-h: clamp(104px, 20.5vh, 210px);
  --card-w: calc(var(--card-h) * 0.72);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  color: var(--text);
  font: 600 15px/1.35 var(--body);
  /* Décor : background.jpg, teinté pour que l'interface colorée ressorte */
  background:
    radial-gradient(120vw 70vh at 50% 50%, transparent 40%, #0a0718cc 100%),
    linear-gradient(#1b0f3d73, #0a1e3059),
    url("background.jpg") center / cover no-repeat fixed,
    #120d2a;
  background-attachment: fixed;
  overflow: hidden;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Boutons : épais, avec une tranche qui s'enfonce au clic ---------- */
button {
  font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: .3px;
  color: var(--text); cursor: pointer;
  background: linear-gradient(#2a3557, #1c2440);
  border: 2px solid #56628f; border-bottom-width: 5px; border-bottom-color: #0d1222;
  border-radius: 14px; padding: 8px 18px 6px;
  text-shadow: 0 2px 0 #0006;
  transition: transform .08s, filter .12s, border-bottom-width .08s;
}
button:hover { filter: brightness(1.18); }
button:active { transform: translateY(3px); border-bottom-width: 2px; }
button:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; }
button.gold {
  color: #3a2200; text-shadow: 0 1px 0 #fff6;
  background: linear-gradient(#ffe169, #ffb81f);
  border-color: #fff0a8; border-bottom-color: var(--gold-deep);
  box-shadow: 0 6px 18px #ffb81f55;
}
input, select, textarea {
  background: #0c1120; color: var(--text); font-weight: 700;
  border: 2px solid var(--line); border-radius: 12px; padding: 9px 12px;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; }

/* Panneau : le cartouche des cartes, en grand */
.panel {
  background: linear-gradient(#1b2440f2, #111828f2);
  border: 3px solid var(--frame); border-radius: 26px;
  box-shadow: 0 0 0 4px #0b0f1c, 0 24px 60px #000b, inset 0 2px 0 #ffffff1f;
}

/* ---------- Accueil ---------- */
#lobby, #waiting { max-width: 450px; margin: 7vh auto 0; padding: 26px 30px 24px; text-align: center; }
.logo { display: block; width: 240px; max-width: 70%; margin: -86px auto 0; filter: drop-shadow(0 12px 22px #000c); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-9px) rotate(-1.5deg); } }
#lobby { margin-top: 15vh; }
#lobby h1 { margin: 0; font-size: 0; }
#lobby h1 span {
  display: inline-block; font: 400 22px var(--display); letter-spacing: 1px; color: #fff;
  background: linear-gradient(var(--pink), #d81f6b); padding: 3px 18px 2px; border-radius: 10px;
  transform: rotate(-3deg) translateY(-8px); box-shadow: 0 4px 0 var(--pink-deep), 0 10px 18px #0008; text-shadow: 0 2px 0 #0005;
}
#waiting h2 { font: 400 26px var(--display); margin: 0; }
.sub { color: var(--muted); margin: 4px 0 20px; }
#lobby label { display: block; text-align: left; color: var(--gold); font: 400 14px var(--display); }
#lobby label input { width: 100%; margin-top: 4px; font-size: 17px; }
.row { display: flex; gap: 10px; margin-top: 14px; }
.row > * { flex: 1; }
#lobby .row button { font-size: 18px; padding: 12px 10px 9px; }
#solo { background: linear-gradient(#34e3d5, #12a9b3); border-color: #b4fff7; border-bottom-color: var(--teal-deep); color: #04302f; text-shadow: 0 1px 0 #fff5; }
.sep { color: var(--muted); margin: 16px 0 0; font: 400 14px var(--display); }
#code { text-transform: uppercase; text-align: center; letter-spacing: 6px; font: 400 20px var(--display); flex: 1.3; }
.code { font: 400 60px var(--display); letter-spacing: 12px; color: var(--gold); margin: 4px 0 20px; text-shadow: 0 5px 0 var(--gold-deep), 0 12px 24px #000a; }
.adminlink { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 22px 0 0; font-size: 13px; }
.adminlink a { color: var(--muted); }
button.lang, .adminlink .soundBtn { font-size: 13px; padding: 5px 12px 3px; border-radius: 10px; }

/* ---------- Table ----------
   La pièce (votre arrière-plan, assombri) éclairée par une lampe ; au centre un tapis en néoprène
   sur lequel l'illustration est imprimée ; les cartes, piles et jetons sont posés dessus. */
body.table {
  background:
    radial-gradient(70vw 60vh at 50% 46%, #ffd39a24, transparent 70%),
    radial-gradient(130vw 95vh at 50% 50%, transparent 35%, #05030ce6 100%),
    linear-gradient(#0d0820b3, #0d0820b3),
    url("background.jpg") center / cover no-repeat fixed,
    #0d0820;
}
#game {
  height: 100%; display: grid; grid-template-rows: auto 1fr auto;
  padding: 0 1.6vw; position: relative; overflow: hidden;
  --mat: #14222b;
  --print-opp: #ff7fb0;
  --print-me: #5ff0e3;
}

/* Le tapis : bord en caoutchouc, couture, grain du tissu, illustration imprimée dessous */
#mat {
  position: relative; z-index: 1; min-height: 0;
  display: grid; grid-template-rows: 1fr auto 1fr;
  margin: calc(var(--card-h) * -.16) auto calc(var(--card-h) * -.3); width: min(100%, 1500px);
  padding: 1.2vh 1.4vw;
  border-radius: 34px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"),
    radial-gradient(60% 55% at 50% 50%, #ffe3b012, transparent 80%),
    linear-gradient(#0b141bb3, #0b141bc7),
    url("background.jpg") center 40% / cover no-repeat,
    var(--mat);
  border: 7px solid #0a1015;
  box-shadow:
    inset 0 0 0 2px #2c3a43,                 /* arête du bord */
    inset 0 0 50px #000a,                    /* le tissu s'assombrit vers les bords */
    0 2px 0 #3a4a55,
    0 26px 50px #000d, 0 8px 14px #0009;
  transform: perspective(1700px) rotateX(9deg);
  transform-origin: 50% 70%;
}
#mat::before {   /* couture tout autour */
  content: ""; position: absolute; inset: 7px; border-radius: 26px; pointer-events: none;
  border: 2px dashed #ffffff26;
}
.half { position: relative; display: grid; grid-template-columns: minmax(176px, 13vw) 1fr minmax(170px, 15vw); align-items: center; gap: 1.2vw; min-height: 0; }
.half.opp { --print: var(--print-opp); --team: var(--pink); --team-deep: var(--pink-deep); }
.half.me { --print: var(--print-me); --team: var(--teal); --team-deep: var(--teal-deep); }

/* Zone de jeu imprimée sur le tapis */
.zone { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center;
  margin: .8vh 0; border-radius: 22px; min-height: calc(var(--card-h) + 22px);
  border: 2px solid color-mix(in srgb, var(--print) 45%, transparent);
  background: radial-gradient(80% 90% at 50% 50%, color-mix(in srgb, var(--print) 9%, transparent), transparent 75%);
  box-shadow: inset 0 0 0 5px #00000026; }
.zone .print { position: absolute; top: 6px; left: 16px; font: 400 13px var(--display); color: color-mix(in srgb, var(--print) 70%, #fff0); opacity: .75; pointer-events: none; }
.half.me .zone .print { top: auto; bottom: 6px; }
.board { display: flex; gap: 1.4vw; justify-content: center; align-items: center; flex-wrap: wrap; padding: 6px; }
.board:empty::after { content: "Aucune créature"; color: #ffffff40; font: 400 17px var(--display); }
/* les cartes posées projettent leur ombre sur le tissu */
.board .card { box-shadow: 0 .15em 0 #0006, .35em .9em 1.2em #000c; }

/* Plaque de place : le nom du joueur posé au bord du tapis */
.side { display: flex; flex-direction: column; align-items: center; gap: 1.6vh; }
.half.me .side { flex-direction: column-reverse; }
.plate { display: flex; align-items: center; gap: 9px; width: 100%; max-width: 210px;
  padding: 6px 12px 6px 6px; border-radius: 12px;
  background: linear-gradient(#f7ecd4, #e5d3ae); color: #2b2238;
  box-shadow: 0 3px 0 #a89062, 0 8px 14px #000b, inset 0 1px 0 #fff; transform: rotate(-1.5deg); }
.half.me .plate { transform: rotate(1deg); }
.plate .avatar { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  font: 400 22px var(--display); color: #fff; text-shadow: 0 2px 0 #0005;
  background: linear-gradient(color-mix(in srgb, var(--team) 80%, #fff), var(--team-deep)); }
.plate .who { font: 400 16px/1.05 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate .state { font-size: 11px; color: #6b5e74; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.plate .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fbf3a; }
.plate .state.off::before { background: #e0473c; }
.plate > div:nth-child(2) { min-width: 0; flex: 1; }
.plate .count { flex: none; text-align: center; font: 400 19px/1 var(--display); color: var(--team-deep); }
.plate .count small { display: block; font: 800 9px var(--body); color: #6b5e74; white-space: nowrap; }

/* Jeton de points de vie : un gros pion épais à la couleur du camp */
.life { --size: clamp(64px, 7.4vw, 104px);
  width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center;
  font: 400 calc(var(--size) * .5) var(--display); color: #fff; text-shadow: 0 3px 0 #0007;
  background:
    radial-gradient(circle at 50% 50%, transparent 56%, #ffffff40 57%, transparent 60%),
    radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--team) 75%, #fff), var(--team) 45%, var(--team-deep));
  border: 4px solid #fff4dc;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--team-deep) 70%, #000), 0 8px 0 color-mix(in srgb, var(--team-deep) 50%, #000), 0 16px 20px #000b;
  position: relative; }
.life::after { content: "PV"; position: absolute; bottom: 13%; font: 800 calc(var(--size) * .11) var(--body); opacity: .8; text-shadow: none; }
.life.hit { animation: lifehit .6s; }
.life.heal { animation: lifeheal .7s; }
@keyframes lifehit { 20% { transform: translateY(-14px) rotate(-14deg) scale(1.15); } 45% { transform: translateY(0) rotate(8deg); } 70% { transform: rotate(-3deg); } }
@keyframes lifeheal { 30% { transform: scale(1.22); filter: brightness(1.5) drop-shadow(0 0 16px #7dffb0); } }

/* Piles et jetons Mindbug, dans des emplacements imprimés */
.piles { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 1.2vh 1.2vw; justify-content: center; align-items: center; }
.half.me .piles { grid-template-rows: auto auto; }
.pile { position: relative; text-align: center; }
.pile .slot { position: relative; width: calc(var(--card-w) * .62); height: calc(var(--card-h) * .62); border-radius: 9px;
  border: 2px dashed color-mix(in srgb, var(--print) 45%, transparent); }
.pile small { display: block; margin-top: 4px; font: 400 12px var(--display); color: #ffffffa0; }
.pile .n { position: absolute; right: -9px; bottom: 16px; z-index: 12; min-width: 26px; height: 24px; padding: 1px 6px 0;
  border-radius: 6px; background: linear-gradient(#f7ecd4, #e0cca3); color: #2b2238; display: grid; place-items: center;
  font: 400 15px var(--display); box-shadow: 0 2px 0 #a89062, 0 4px 8px #0009; transform: rotate(4deg); }
/* la pioche : une vraie pile, plus ou moins épaisse */
.stack { position: absolute; inset: 0; border-radius: 8px; background: #2c174f url("img/card-back.jpg") center / cover no-repeat;
  border: 2px solid #f3e7cf; }
.stack.layer { background: #d9ccb0; border-color: #b3a483; box-shadow: 0 1px 2px #0006; }
.pile.deck .stack:last-child { box-shadow: 2px 6px 10px #000b; }
/* la défausse : la dernière carte face visible, les précédentes de travers dessous */
.pile.discard { cursor: pointer; }
.piles { --pile-h: calc(var(--card-h) * .62); }
.pile.discard .slot .card { position: absolute; left: -2px; top: -2px; --card-h: var(--pile-h); box-shadow: 1px 3px 6px #000a; animation: none; }
.pile.discard .under { position: absolute; inset: 0; border-radius: 8px; background: #2a2f3a; border: 2px solid #c9bea6; }
.pile.discard:hover .slot { border-color: var(--gold); }
.pile.discard .slot:empty::after { content: "↺"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: color-mix(in srgb, var(--print) 45%, transparent); }
/* jetons Mindbug : pions ronds, retournés une fois utilisés */
.tokens { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; }
.token { --t: clamp(34px, 3.3vw, 50px); width: var(--t); height: var(--t); border-radius: 50%;
  background: url("img/mindbug.jpg") center 30% / 170% no-repeat; border: 3px solid #f3e7cf;
  box-shadow: 0 3px 0 #7d6f55, 0 7px 10px #000b; transition: transform .4s, filter .4s; }
.token.used { background: radial-gradient(circle at 40% 35%, #3b3550, #191527); border-color: #6d6580; box-shadow: 0 2px 0 #2a2537, 0 4px 6px #0009;
  transform: rotateY(180deg) scale(.86); filter: grayscale(.5); }
.token.used::after { content: ""; display: block; margin: 30% auto 0; width: 40%; height: 40%; border-radius: 50%; border: 2px solid #8a83a3; opacity: .6; }

/* Main adverse : des dos de carte qui dépassent en haut de l'écran */
.backs { position: relative; z-index: 2; display: flex; justify-content: center; height: calc(var(--card-h) * .34); }
.back {
  width: calc(var(--card-w) * .62); height: calc(var(--card-h) * .62); border-radius: 8px;
  background: #2c174f url("img/card-back.jpg") center / cover no-repeat;
  border: 2px solid #f3e7cf; box-shadow: 0 6px 12px #000b; position: relative; flex: none;
}
.backs .back { margin: calc(var(--card-h) * -.3) -9px 0; transform: rotate(calc(var(--i, 0) * -4deg)) translateY(calc(var(--d, 0) * 1px)); transform-origin: 50% 0; }

/* Bande centrale du tapis : la consigne sur un carton posé en travers */
#center { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 9vh; padding: .6vh 0; }
#center::before { content: ""; position: absolute; left: 3%; right: 3%; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, #ffffff2a 15%, #ffffff2a 85%, transparent); }
#spotlight { justify-self: end; position: relative; }
#spotlight .card { --card-h: clamp(90px, 15vh, 150px); transform: rotate(-5deg); box-shadow: .3em .9em 1.4em #000d; }
#status { position: relative; text-align: center; max-width: 62vw; }
#prompt { display: inline-block; margin: 0 0 8px; padding: 9px 26px 7px; border-radius: 4px;
  font: 400 clamp(16px, 2.3vh, 21px)/1.2 var(--display); color: #2b2238;
  background: linear-gradient(#fbf3e1, #eadbb9);
  box-shadow: 0 1px 0 #fff inset, 0 3px 0 #b9a379, 0 12px 22px #000b; transform: rotate(-1deg); }
#prompt.wait { color: #6b5e74; background: linear-gradient(#e9e1cf, #d6cab0); transform: rotate(.6deg); }
#prompt.win, #prompt.lose { font-size: 40px; padding: 10px 46px 6px; }
#prompt.win { color: var(--teal-deep); box-shadow: 0 1px 0 #fff inset, 0 3px 0 #b9a379, 0 0 0 4px #1fd6c8, 0 0 40px #1fd6c8aa; }
#prompt.lose { color: var(--pink-deep); box-shadow: 0 1px 0 #fff inset, 0 3px 0 #b9a379, 0 0 0 4px #ff4f93, 0 0 40px #ff4f9377; }
#choices { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; max-height: 34vh; overflow: auto; padding: 4px; }
#choices .card { --card-h: clamp(90px, 15vh, 150px); }
#choices button { font-size: 17px; }
#choices button:not(.gold) { color: #2b2238; text-shadow: none; background: linear-gradient(#f7ecd4, #e0cca3); border-color: #fff8e6; border-bottom-color: #a89062; }
#lastEvent { display: inline-block; margin: 6px 0 0; padding: 2px 12px; border-radius: 4px; font-size: 12px; color: #e7e3ff; background: #0a1015b3; min-height: 1.3em; }
#lastEvent:empty { display: none; }

/* Jeton de tour : il glisse vers le camp qui joue */
#turn { justify-self: end; margin-right: 1vw; padding: 10px 18px 8px; border-radius: 999px; white-space: nowrap;
  font: 400 16px var(--display); color: #fff; text-shadow: 0 2px 0 #0006;
  background: radial-gradient(circle at 35% 25%, #ff9cc2, var(--pink) 45%, var(--pink-deep));
  border: 3px solid #fff4dc; box-shadow: 0 4px 0 #6b0a31, 0 10px 16px #000b;
  transform: translateY(-3.2vh) rotate(-3deg); transition: transform .55s cubic-bezier(.3, 1.4, .5, 1), background .3s; }
#turn.mine { background: radial-gradient(circle at 35% 25%, #a8fff6, var(--teal) 45%, var(--teal-deep)); box-shadow: 0 4px 0 #04494d, 0 10px 16px #000b, 0 0 28px #1fd6c877;
  color: #04302f; text-shadow: 0 1px 0 #fff6; transform: translateY(3.2vh) rotate(3deg); }

/* Votre main : les cartes tenues en main, en éventail, devant le tapis */
.hand { position: relative; z-index: 3; display: flex; justify-content: center; align-items: flex-end; padding: 0 0 calc(2vh + 16px); min-height: calc(var(--card-h) * .5); }
.hand .card { margin: 0 -0.8vw 0; transform: rotate(var(--rot, 0deg)) translateY(var(--drop, 0px)); transform-origin: 50% 120%;
  box-shadow: 0 .4em 0 #0006, 0 1em 1.6em #000c; }
.hand .card:hover { transform: translateY(calc(var(--card-h) * -.2)) scale(1.1); z-index: 5; }

/* Menu : une roue dentée en haut à droite */
#menuBtn { position: absolute; top: 1.4vh; right: 1.2vw; z-index: 22; width: 46px; height: 46px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; color: #2b2238; background: linear-gradient(#f7ecd4, #e0cca3); border: 2px solid #fff8e6; border-bottom: 4px solid #a89062; }
#menuBtn svg { width: 26px; height: 26px; transition: transform .4s; }
#menuBtn[aria-expanded="true"] svg { transform: rotate(90deg); }

/* ---------- Cartes ---------- */
.card {
  position: relative; width: calc(var(--card-h) * 0.72); height: var(--card-h); flex: none;
  font-size: calc(var(--card-h) / 17);
  border-radius: 0.9em; overflow: hidden; background: var(--ink);
  border: 0.2em solid #fff6e4; box-shadow: 0 0.5em 0 #0007, 0 0.9em 1.4em #000b;
  display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .13s, box-shadow .13s;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-touch-callout: none; }
.card .top { display: flex; align-items: center; background: var(--ink); border-bottom: .14em solid var(--frame); min-height: 2.5em; padding-left: 2.9em; padding-right: .4em; z-index: 1; }
.card .name { font: 400 1em/1.05 var(--display); }
.card .power { position: absolute; z-index: 2; left: -.15em; top: -.15em; width: 2.6em; height: 2.6em;
  border-radius: 50%; display: grid; place-items: center; font: 400 1.3em var(--display); color: #fff; text-shadow: 0 .08em 0 #0008;
  background: radial-gradient(circle at 35% 28%, #ff6ba3, #a8104c); border: .14em solid #fff6e4; }
.card .power.up { background: radial-gradient(circle at 35% 28%, #8ff7ee, #0a7379); }
.card .power.down { background: radial-gradient(circle at 35% 28%, #999, #333); }
.card .art { flex: 1; display: grid; place-items: center; font-size: 4em; min-height: 0;
  background: radial-gradient(circle at 50% 40%, hsl(var(--hue) 80% 52%), hsl(calc(var(--hue) + 40) 70% 18%));
  text-shadow: 0 .08em .2em #0009; }
.card .kw { display: flex; flex-wrap: wrap; gap: .25em; padding: .3em .4em 0; background: var(--ink); }
.card .kw span { background: var(--gold); color: #3a2200; font: 400 .74em var(--display); border-radius: 99px; padding: .1em .6em 0; }
.card .text { background: var(--ink); padding: .35em .5em .45em; font-size: .74em; line-height: 1.2; }
.card .tag { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; background: #131a2be6; color: var(--gold); font: 400 .82em var(--display); padding: .2em; }
.card.exhausted { transform: rotate(9deg); filter: saturate(.5) brightness(.82); }
.card.clickable { cursor: pointer; border-color: #fff3b0; box-shadow: 0 0 0 .2em var(--gold), 0 0 1.6em #ffc931dd, 0 .5em 0 #0007; animation: ready 1.6s ease-in-out infinite; }
@keyframes ready { 50% { box-shadow: 0 0 0 .2em var(--gold), 0 0 2.6em #ffc931, 0 .5em 0 #0007; } }
.board .card.clickable:hover, #choices .card.clickable:hover, #modalCards .card:hover { transform: translateY(-.7em) scale(1.06); }
.card.attacking { border-color: #ffd0e2; box-shadow: 0 0 0 .22em var(--pink), 0 0 2em #ff4f93; animation: none; }

/* Cartouche de traduction posé sur la zone de texte des images de cartes */
.card .fr { position: absolute; left: 10.5%; right: 10.5%; top: 72.5%; bottom: 9.5%;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .15em;
  text-align: center; background: #17282e; box-shadow: 0 0 .35em .2em #17282e; border-radius: .5em;
  color: #fff; padding: 0 .2em; overflow: hidden; }
.card .frkw { font: 400 .8em var(--display); letter-spacing: .06em; text-transform: uppercase; }
.card .frkw .granted { color: var(--teal); }
.card .frtext { font-size: .68em; line-height: 1.15; }
.card .frtext.long { font-size: .58em; line-height: 1.1; }
.card .boost { position: absolute; right: .2em; top: .2em; z-index: 3; min-width: 2em; height: 2em; padding: .1em .3em 0;
  border-radius: 99px; display: grid; place-items: center; font: 400 1.05em var(--display);
  background: linear-gradient(#ffe169, #ffb81f); color: #3a2200; border: .12em solid #fff6e4; box-shadow: 0 .15em 0 var(--gold-deep); }

/* Carte agrandie au survol */
#zoom { position: fixed; z-index: 30; pointer-events: none; }
#zoom .card { --card-h: min(48vh, 420px); box-shadow: 0 0 0 4px #0b0f1c, 0 24px 70px #000e; animation: none; }

/* ---------- Menu, journal, fenêtres ---------- */
#tools { position: absolute; top: calc(1.4vh + 54px); right: 1.2vw; z-index: 22; display: flex; flex-direction: column; gap: 6px; min-width: 220px;
  padding: 10px; border-radius: 14px; background: linear-gradient(#fbf3e1, #eadbb9); box-shadow: 0 3px 0 #b9a379, 0 18px 34px #000c; }
#tools button { text-align: left; font-size: 15px; padding: 7px 12px 5px; border-radius: 9px; color: #2b2238; text-shadow: none;
  background: transparent; border: 0; border-bottom: 2px solid #d8c69e; }
#tools button:last-child { border-bottom: 0; color: var(--pink-deep); }
#tools button:hover { background: #fff8e6; filter: none; }
#tools button:active { transform: none; }
#logPanel, #testPanel { position: absolute; right: 1.2vw; z-index: 21; display: flex; flex-direction: column; gap: 8px; padding: 12px;
  background: linear-gradient(#1b2440f7, #111828f7); border: 3px solid var(--frame); border-radius: 20px; box-shadow: 0 0 0 4px #0b0f1c, 0 18px 40px #000b; }
#logPanel { top: calc(1.4vh + 54px); width: 320px; max-height: 60vh; }
#testPanel { top: calc(1.4vh + 54px); width: 290px; max-height: 84vh; overflow: auto; border-color: var(--pink); }
#logPanel h3, #testPanel h3 { margin: 0; font: 400 16px var(--display); color: var(--gold); }
#testPanel h3 { color: var(--pink); }
#log { overflow: auto; margin: 0; padding: 0; list-style: none; font-size: 13px; }
#log li { padding: 3px 0; border-bottom: 1px solid #2a3252; color: #d5d2ee; }
#log li:last-child { color: #fff; font-weight: 800; border: 0; }
#testPanel form, #testTools { display: flex; flex-direction: column; gap: 8px; }
#testPanel select, #testPanel input { width: 100%; }
#testCards { display: flex; flex-direction: column; gap: 4px; max-height: 38vh; overflow: auto; }
#testCards button { text-align: left; border-radius: 9px; padding: 4px 10px 2px; font: 700 13px var(--body); border-width: 1px; border-bottom-width: 3px; text-shadow: none; }
#testCards button.todo { color: var(--pink); }
.testrow { display: flex; gap: 6px; }
.testrow button { flex: 1; font-size: 13px; padding: 5px 4px 3px; }

#modal, #setup { position: fixed; inset: 0; background: #06040fd9; display: grid; place-items: center; z-index: 40; }
#modal .box { padding: 22px; max-width: 92vw; max-height: 88vh; overflow: auto; text-align: center; }
#modal h3, #setup h3 { margin: 0; font: 400 24px var(--display); color: var(--gold); }
#modalCards { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 16px 0; --card-h: clamp(120px, 26vh, 220px); }
.hint { color: var(--muted); }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 50; font: 400 16px var(--display);
  background: linear-gradient(#ff7fb0, #d81f6b); color: #fff; padding: 9px 22px 6px; border-radius: 14px; box-shadow: 0 5px 0 var(--pink-deep), 0 14px 26px #000a; }

/* Choix des cartes par l'hôte */
#setup .box { width: min(880px, 94vw); max-height: 90vh; overflow: auto; padding: 22px; }
#setup .check { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; font-size: 14px; }
.setblock { border: 2px solid var(--line); border-radius: 16px; padding: 8px 12px; margin-top: 8px; background: #0c112099; }
.setblock:has(input:checked) { border-color: var(--teal); background: #1fd6c81a; }
.sethead { display: flex; align-items: center; gap: 12px; }
.sethead label { font: 400 18px var(--display); display: flex; gap: 10px; align-items: center; flex: 1; }
.sethead input { width: 20px; height: 20px; accent-color: var(--teal); }
.sethead button { font-size: 13px; padding: 4px 12px 2px; border-radius: 10px; }
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 10px; }
.pickcard { position: relative; aspect-ratio: 0.72; border-radius: 9px; padding: 0; overflow: hidden;
  background: #2a2550 center / cover no-repeat; border: 2px solid #55507c; opacity: .45; }
.pickcard.on { opacity: 1; border-color: var(--gold); box-shadow: 0 0 12px #ffc931aa; }
.pickcard:disabled { filter: grayscale(1); }
.pickcard.todo::after { content: "à coder"; position: absolute; top: 4px; right: 4px; background: var(--pink); color: #fff;
  font: 400 11px var(--display); border-radius: 99px; padding: 1px 7px 0; }
.pickcard span { position: absolute; left: 0; right: 0; bottom: 0; background: #131a2beb; font: 700 10px var(--body); padding: 2px; text-shadow: none; }
#setupCount { font: 400 17px var(--display); color: var(--gold); margin: 14px 0 0; }

/* écrans peu hauts : cartes plus petites pour que tout tienne sans chevauchement */
@media (max-height: 800px) {
  :root { --card-h: clamp(78px, 17.5vh, 160px); }
  #center { min-height: 0; padding: 0; }
  #prompt { margin-bottom: 4px; padding: 6px 20px 4px; }
  #lastEvent { display: none; }
  .zone { margin: .4vh 0; min-height: calc(var(--card-h) + 14px); }
}
/* ---------- Téléphone (portrait) ----------
   Une ligne d'infos compacte par joueur (vie, nom, piles, Mindbugs), les créatures sur une seule
   rangée qu'on fait défiler du doigt, la consigne au milieu, la main en éventail serré en bas. */
@media (max-width: 760px) {
  :root { --card-h: clamp(80px, 14.5vh, 118px); }
  html, body { overscroll-behavior: none; }
  body { touch-action: manipulation; }
  body.table { background-attachment: scroll; }
  #game { height: 100dvh; padding: 0 6px; }
  .backs { height: 16px; }
  .backs .back { width: 34px; height: 48px; margin: -30px -5px 0; border-width: 1.5px; border-radius: 5px; }

  #mat { transform: none; margin: 0; width: 100%; padding: 6px; border-width: 4px; border-radius: 18px;
    grid-template-rows: auto auto auto; align-content: space-evenly; }
  #mat::before { inset: 3px; border-radius: 14px; }

  .half { grid-template-columns: 1fr auto; grid-template-areas: "side piles" "zone zone"; gap: 5px 6px; }
  .half.me { grid-template-areas: "zone zone" "side piles"; }
  .half .side { grid-area: side; flex-direction: row !important; justify-content: flex-start; gap: 7px; min-width: 0; }
  .half .zone { grid-area: zone; margin: 0; min-height: calc(var(--card-h) + 14px); border-radius: 14px; }
  .half .piles { grid-area: piles; }
  .zone .print { display: none; }

  .plate { display: flex; width: auto; max-width: none; min-width: 0; padding: 3px 9px 3px 3px; gap: 6px; transform: none !important; border-radius: 9px; }
  .plate .avatar { width: 26px; height: 26px; font-size: 15px; border-radius: 6px; }
  .plate .who { font-size: 14px; max-width: 32vw; }
  .plate .state { display: none; }
  .plate .count { font-size: 15px; }
  .plate .count small { font-size: 8px; }
  .life { --size: 40px; border-width: 3px; box-shadow: 0 3px 0 color-mix(in srgb, var(--team-deep) 60%, #000), 0 6px 10px #000b; }
  .life::after { display: none; }

  .board { width: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: safe center; gap: 6px; padding: 5px 8px;
    scroll-snap-type: x proximity; scrollbar-width: none; }
  .board::-webkit-scrollbar { display: none; }
  .board > .card { scroll-snap-align: center; }
  .board:empty::after { font-size: 14px; }

  .piles { display: flex; align-items: center; gap: 9px; --pile-h: 44px; }
  .pile .slot { width: 32px; height: 44px; border-radius: 5px; border-width: 1.5px; }
  .pile.discard .slot .card { border-width: 1px; }
  .pile.discard .slot:empty::after { font-size: 15px; }
  .pile small { display: none; }
  .pile .n { right: -8px; bottom: -6px; min-width: 19px; height: 17px; padding: 1px 4px 0; font-size: 11px; border-radius: 4px; }
  .tokens { gap: 4px; }
  .token { --t: 24px; border-width: 2px; box-shadow: 0 2px 0 #7d6f55, 0 4px 6px #000a; }

  #center { grid-template-columns: auto 1fr; gap: 8px; min-height: 0; padding: 6px 0; }
  #center::before, #turn, #lastEvent { display: none; }
  #spotlight:empty { display: none; }
  #spotlight .card { --card-h: 92px; }
  #status { max-width: none; grid-column: 1 / -1; }
  #spotlight:not(:empty) + #status { grid-column: auto; }
  #prompt { margin: 0 0 5px; padding: 6px 12px 4px; font-size: 15px; transform: none; }
  #prompt.win, #prompt.lose { font-size: 28px; padding: 6px 26px 3px; }
  #choices { gap: 6px; max-height: 32vh; padding: 2px; }
  #choices button { font-size: 15px; padding: 8px 13px 6px; }
  #choices .card { --card-h: 96px; }

  .hand { padding: 4px 0 calc(22px + env(safe-area-inset-bottom)); min-height: 0; }
  .hand .card { --card-h: clamp(98px, 17.5vh, 132px); margin: 0 -13px; transform-origin: 50% 130%; }
  .hand .card.selected, .hand .card.selected:hover { transform: translateY(-26%) scale(1.14); }

  #menuBtn { top: 5px; right: 6px; width: 38px; height: 38px; }
  #menuBtn svg { width: 21px; height: 21px; }
  #tools { top: 50px; right: 6px; min-width: 210px; }
  #logPanel, #testPanel { left: 6px; right: 6px; width: auto; top: 50px; max-height: 70dvh; }


  #rules .sheet { padding: 16px 18px 14px; transform: none; }
  #rules h3 { font-size: 24px; }
  #rules p { font-size: 15px; }
  #rules dl { grid-template-columns: 1fr; gap: 3px; }
  #rules dt { justify-self: start; }
  #rules dd { margin-bottom: 6px; }
  .rart { min-height: 70px; transform: scale(.85); }

  #lobby { margin: 13vh 12px 0; padding: 22px 18px 20px; }
  #lobby .row { flex-direction: column; }
  #modalCards { --card-h: 150px; }
}
/* écran tactile : pas d'effet de survol qui reste « collé » après un appui */
@media (hover: none) {
  .hand .card:hover { transform: rotate(var(--rot, 0deg)) translateY(var(--drop, 0px)); z-index: auto; }
  .board .card.clickable:hover, #choices .card.clickable:hover { transform: none; }
  button:hover { filter: none; }
}
/* téléphone tenu à l'horizontale : trop bas pour lire les cartes */
#rotate { display: none; }
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  body.table #rotate { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 14px;
    background: #0d0820f2; color: var(--text); text-align: center; font: 400 22px var(--display); padding: 20px; }
  #rotate .phoneIcon { width: 46px; height: 76px; border: 4px solid var(--gold); border-radius: 10px; animation: turnphone 2s ease-in-out infinite; }
}
@keyframes turnphone { 0%, 30% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) {
  .logo, .card.clickable, .life.hit, .life.heal { animation: none; }
  * { transition: none !important; }
}

/* Carte sélectionnée, en attente de confirmation */
.card.selected { border-color: #d6fffb; box-shadow: 0 0 0 .24em var(--teal), 0 0 2.4em #1fd6c8, 0 .5em 0 #0007; animation: none; z-index: 6; }
.hand .card.selected, .hand .card.selected:hover { transform: translateY(calc(var(--card-h) * -.24)) scale(1.12); }
.board .card.selected { transform: translateY(-.8em) scale(1.08); }

/* Évolution : un éclair, la carte gonfle puis retombe */
.card.evolve { animation: evolve .9s ease-out; }
@keyframes evolve {
  0% { scale: 1; filter: brightness(1); box-shadow: 0 0 0 0 #fff; }
  35% { scale: 1.28; filter: brightness(2.6) saturate(.4); box-shadow: 0 0 0 .4em #fff, 0 0 4em var(--teal); rotate: -4deg; }
  70% { scale: .96; filter: brightness(1.2); rotate: 2deg; }
  100% { scale: 1; filter: brightness(1); }
}

/* Carte en grand */
#viewer { position: fixed; inset: 0; z-index: 60; background: #06040fe6; display: flex; align-items: center; justify-content: center; gap: 4vw; padding: 4vh 4vw; cursor: zoom-out; }
#viewCard .card { --card-h: min(88vh, 124vw); box-shadow: 0 0 0 5px #0b0f1c, 0 30px 80px #000; animation: none; }
#viewInfo { max-width: 380px; padding: 22px 24px; }
#viewInfo h3 { margin: 0; font: 400 30px/1.1 var(--display); color: var(--gold); }
.viewstats { margin: 6px 0 10px; font: 400 18px var(--display); color: var(--pink); }
#viewInfo .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.viewkw { background: var(--gold); color: #3a2200; font: 400 16px var(--display); border-radius: 99px; padding: 2px 12px 0; }
.viewtext { font-size: 19px; line-height: 1.4; margin: 0 0 10px; }
.viewtext.en { font-size: 15px; color: var(--muted); font-style: italic; }
@media (max-width: 760px) { #viewer { flex-direction: column; } #viewCard .card { --card-h: 56vh; } }

/* ------------------------------------------------ attaques, combats, sons */

/* nombre qui s'envole au-dessus des points de vie */
.floater { position: fixed; z-index: 55; pointer-events: none; font: 400 34px var(--display);
  -webkit-text-stroke: 2px #0b0f1c; paint-order: stroke fill; text-shadow: 0 4px 0 #0b0f1c; }
.floater.hurt { color: var(--pink); }
.floater.heal { color: #7dffb0; }

/* lueur laissée par une carte qui s'élance */
.trail { position: fixed; z-index: 4; pointer-events: none; border-radius: 12px;
  background: radial-gradient(closest-side, #ff4f9399, #ff4f9300); filter: blur(6px); }

/* éclat d'impact : un disque qui flashe et des étincelles qui partent en étoile */
.burst { position: fixed; z-index: 50; width: 0; height: 0; pointer-events: none; }
.burst::before { content: ""; position: absolute; left: -85px; top: -85px; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, #ffd34d 30%, #ff4f9300 68%); animation: flash .45s ease-out forwards; }
.burst i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 3px; background: var(--gold);
  box-shadow: 0 0 10px #ffc931; animation: spark .6s cubic-bezier(.1, .7, .3, 1) forwards; }
.burst.strike::before { background: radial-gradient(circle, #fff 0 16%, #ff8ab8 32%, #ff4f9300 70%); }
.burst.strike i { background: var(--pink); box-shadow: 0 0 10px #ff4f93; }
.burst.tough::before { background: radial-gradient(circle, #fff 0 14%, #9be9ff 34%, #1fd6c800 70%); }
.burst.tough i { background: var(--teal); box-shadow: 0 0 10px #1fd6c8; }
@keyframes flash { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes spark {
  0% { transform: rotate(var(--a)) translateX(0) scale(1); opacity: 1; }
  100% { transform: rotate(var(--a)) translateX(var(--d)) scale(.2); opacity: 0; }
}

/* réglages du son */
#soundPanel { position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; gap: 12px; min-width: 260px; padding: 20px 24px; }
#soundPanel h3 { margin: 0; font: 400 24px var(--display); color: var(--gold); }
#soundPanel label { display: flex; align-items: center; gap: 10px; font-size: 15px; }
#soundPanel input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--teal); }
#soundPanel .vol input { flex: 1; accent-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .burst, .trail, .floater { display: none; }
}

/* ------------------------------------------------ tutoriel */

#tutoBtn { width: 100%; margin-top: 10px; font-size: 17px; padding: 9px 10px 7px; color: #2b2238; text-shadow: none;
  background: linear-gradient(#fbf3e1, #e5d3ae); border-color: #fff8e6; border-bottom-color: #a89062; }
#tutoBtn small { display: block; font: 700 12px var(--body); color: #6b5e74; }

/* Les règles : une feuille de livret posée sur la table */
#rules { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; background: #06040fcc; padding: 3vh 3vw; }
#rules .sheet { position: relative; width: min(560px, 94vw); max-height: 92vh; overflow: auto; padding: 22px 30px 18px;
  border-radius: 6px; color: #2b2238; background: linear-gradient(#fbf3e1, #eadbb9);
  box-shadow: 0 1px 0 #fff inset, 0 4px 0 #b9a379, 0 30px 70px #000d; transform: rotate(-.6deg); }
#rules h3 { margin: 6px 0 10px; font: 400 30px/1.1 var(--display); color: var(--pink-deep); }
#rules p { margin: 0 0 9px; font-size: 16.5px; line-height: 1.45; font-weight: 600; }
#rules b { color: #0a5f63; }
#rules dl { margin: 4px 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; align-items: baseline; }
#rules dt { font: 400 17px var(--display); color: #fff; background: var(--teal-deep); border-radius: 6px; padding: 2px 10px 0; text-align: center; }
#rules dd { margin: 0; font-size: 15.5px; line-height: 1.35; }
#rules .x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 22px; line-height: 1;
  color: #2b2238; text-shadow: none; background: #e3d2ad; border: 0; border-bottom: 3px solid #b9a379; }
.rulesNav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.rulesNav button:not(.gold) { color: #2b2238; text-shadow: none; background: linear-gradient(#f7ecd4, #e0cca3); border-color: #fff8e6; border-bottom-color: #a89062; }
#rulesDots { display: flex; gap: 7px; }
#rulesDots span { width: 9px; height: 9px; border-radius: 50%; background: #cdbb94; }
#rulesDots span.on { background: var(--pink); transform: scale(1.3); }

/* petites illustrations des pages */
.rart { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 96px; margin: 4px 0 2px; }
.tlife { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font: 400 36px var(--display); color: #fff;
  background: radial-gradient(circle at 35% 28%, #a8fff6, var(--teal) 45%, var(--teal-deep)); border: 4px solid #fff4dc; box-shadow: 0 5px 0 #04494d; }
.tlife.opp { background: radial-gradient(circle at 35% 28%, #ff9cc2, var(--pink) 45%, var(--pink-deep)); box-shadow: 0 5px 0 #6b0a31; }
.tcard { position: relative; width: 58px; height: 80px; border-radius: 7px; background: #2c174f url("img/card-back.jpg") center / cover; border: 3px solid #fff; box-shadow: 0 4px 10px #0006; }
.tcard.attack { transform: rotate(10deg) translateY(-8px); box-shadow: 0 0 0 3px var(--pink), 0 6px 14px #0006; }
.tcard.big { transform: rotate(-8deg) scale(1.12); }
.tcard b { position: absolute; left: -8px; top: -8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 400 16px var(--display); color: #fff; background: radial-gradient(circle at 35% 28%, #ff6ba3, #a8104c); border: 2px solid #fff; }
.tor { font: 400 20px var(--display); color: #6b5e74; }
.tvs { width: 34px; height: 34px; background: radial-gradient(circle, #fff 0 20%, var(--gold) 40%, transparent 70%); }
.ttoken { width: 64px; height: 64px; border-radius: 50%; background: url("img/mindbug.jpg") center 30% / 170%; border: 4px solid #fff4dc; box-shadow: 0 5px 0 #7d6f55; }
.ttoken + .ttoken { transform: rotate(14deg); }
.rart:has(.tchip) { flex-wrap: wrap; gap: 8px; min-height: 60px; }
.tchip { font: 400 17px var(--display); color: #fff; background: var(--teal-deep); border-radius: 999px; padding: 4px 14px 2px; box-shadow: 0 3px 0 #04494d; }
.tchip.gold { color: #3a2200; background: linear-gradient(#ffe169, #ffb81f); box-shadow: 0 3px 0 var(--gold-deep); }

/* La bulle du guide, posée en bas à gauche, à côté de votre main */
#coach { position: fixed; left: 1.2vw; bottom: 2.4vh; z-index: 45; display: flex; align-items: flex-end; gap: 8px; max-width: min(23vw + 66px, 90vw); }
.coachToken { flex: none; width: 58px; height: 58px; border-radius: 50%; background: url("img/mindbug.jpg") center 30% / 170%;
  border: 4px solid #fff4dc; box-shadow: 0 4px 0 #7d6f55, 0 10px 16px #000b; }
.coachBody { position: relative; padding: 14px 16px 12px; border-radius: 14px 14px 14px 4px; color: #2b2238;
  background: linear-gradient(#fbf3e1, #eadbb9); box-shadow: 0 3px 0 #b9a379, 0 16px 30px #000c; }
#coachText { margin: 0 0 10px; font-size: 14.5px; line-height: 1.4; }
#coachText b { color: #0a5f63; }
.coachBtns { display: flex; justify-content: flex-end; gap: 8px; }
.coachBtns button { font-size: 14px; padding: 6px 14px 4px; border-radius: 10px; }
#coachSkip { color: #6b5e74; text-shadow: none; background: transparent; border: 0; padding-left: 4px; padding-right: 4px; }
@media (max-width: 760px) {
  #coach { left: 6px; right: 52px; top: 5px; bottom: auto; max-width: none; align-items: flex-start; gap: 6px; }
  .coachToken { width: 34px; height: 34px; border-width: 3px; }
  .coachBody { flex: 1; border-radius: 4px 12px 12px 12px; padding: 9px 11px 8px; }
  #coachText { font-size: 13.5px; margin-bottom: 7px; }
  .coachBtns button { font-size: 13px; padding: 5px 11px 3px; }
}
