:root {
  --bg: #20140d;
  --paper: #efe2bf;
  --paper-dark: #d4bd8f;
  --ink: #2a1b10;
  --muted: #bda987;
  --gold: #e7c66e;
  --orange: #b66c32;
  --brown: #4a2e1c;
  --panel: rgba(50, 34, 22, .93);
  --line: rgba(231,198,110,.34);
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background: linear-gradient(180deg, #301f13 0%, var(--bg) 42%, #120c08 100%);
}
button, input, select { font: inherit; }
button:disabled { opacity: .48; cursor: not-allowed; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .7rem clamp(1rem, 3vw, 3rem);
  background: rgba(25, 15, 9, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231,198,110,.18);
}
.brand { border: 0; background: transparent; padding: 0; cursor: pointer; }
.brand img { width: min(280px, 42vw); display: block; }
nav { display: flex; gap: .7rem; flex-wrap: wrap; }
.nav-button {
  color: var(--paper);
  background: transparent;
  border: 0;
  text-decoration: none;
  font-weight: 900;
  opacity: .84;
  cursor: pointer;
  padding: .6rem .8rem;
  border-radius: 999px;
}
.nav-button:hover { opacity: 1; color: var(--gold); background: rgba(231,198,110,.09); }
main { overflow: hidden; }
.view { display: none; min-height: calc(100vh - 86px); }
.view.active { display: block; }
.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(520px, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 5vw, 5rem) 2rem;
}
.hero-copy { max-width: 760px; }

.hero-title-logo {
  margin: 0 0 .75rem;
  line-height: 1;
}

.hero-title-logo img {
  display: block;
  width: min(520px, 82vw);
  max-height: 160px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,.30));
}

.hero-slogan {
  display: block;
  width: min(360px, 70vw);
  margin: .75rem 0 1.25rem;
  transform: rotate(-3deg);
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.28));
}

.signup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 1rem;
}

.signup-note {
  margin-top: 1.1rem;
  color: #bda987;
  font-size: .92rem !important;
}

.signup-note code {
  padding: .12rem .28rem;
  border-radius: 5px;
  background: rgba(0,0,0,.22);
  color: #ffde75;
}
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 1000;
}
.eyebrow.mini { font-size: .68rem; margin-bottom: .3rem; }
h1, h2, h3 { margin: 0; line-height: .95; }
h1 {
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  letter-spacing: 0;
  text-transform: uppercase;
}
h2 { font-size: clamp(1.8rem, 3.2vw, 3.2rem); text-transform: uppercase; letter-spacing: 0; }
p { line-height: 1.55; }
.lead, .rules-preview p, .page-title p, .order-panel p {
  color: #f5e8ca;
  font-size: clamp(1.05rem, 1.4vw, 1.32rem);
}
.hero-visual {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(239,226,191,.96), rgba(212,189,143,.93));
  border: 2px solid rgba(231,198,110,.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}
.hero-visual img { width: 100%; display: block; border-radius: 16px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-weight: 1000;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
  font-size: 1rem;
}
.btn.xl { font-size: 1.18rem; padding: 1.15rem 2.4rem; }
.btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.04); }
.btn.primary { background: linear-gradient(180deg, #f2cf73, #b66c32); color: #21140c; box-shadow: 0 16px 30px rgba(0,0,0,.25); }
.btn.disabled, .btn:disabled { background: #4d443a; color: #998b77; cursor: not-allowed; opacity: .7; }
.btn.wide { width: 100%; margin-top: 1.2rem; }
.cards-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 clamp(1rem, 5vw, 5rem) 5rem;
}
.cards-strip article, .panel, .order-panel, .rules-preview, .game-screen {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.cards-strip article { padding: 1.4rem; }
.cards-strip h2 { font-size: 1.35rem; letter-spacing: 0; }
.cards-strip p { color: #dac7a5; }
.booth-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 0 clamp(1rem, 5vw, 5rem) 5rem;
}
.booth-card { background: rgba(239,226,191,.1); border: 1px solid rgba(231,198,110,.26); border-radius: 24px; padding: 1.2rem; }
.booth-card img { display: block; width: 100%; border-radius: 18px; }
.rules-preview { padding: clamp(1.5rem, 3vw, 3rem); }
.page-title { padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 5vw, 5rem) 1.5rem; max-width: 1120px; }
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 clamp(1rem, 5vw, 5rem) 2rem;
}
.mode-card {
  text-align: left;
  min-height: 178px;
  border-radius: 22px;
  padding: 1.35rem;
  border: 1px solid rgba(231,198,110,.42);
  background: linear-gradient(180deg, rgba(239,226,191,.13), rgba(83,53,30,.62));
  color: var(--paper);
  cursor: pointer;
}
.mode-card:hover, .mode-card.selected { outline: 3px solid rgba(231,198,110,.46); transform: translateY(-2px); }
.mode-card.disabled-mode { opacity: .48; cursor: not-allowed; }
.mode-card.disabled-mode:hover { transform: none; outline: 0; }
.mode-card span { color: var(--gold); text-transform: uppercase; font-weight: 1000; font-size: .75rem; letter-spacing: .12em; }
.mode-card strong { display: block; font-size: 1.75rem; margin: .6rem 0; }
.mode-card small { color: #d5c1a0; font-size: .95rem; line-height: 1.45; }
.launcher, .game-screen { margin: 0 clamp(1rem, 5vw, 5rem) 2rem; padding: 1.2rem; }
.panel-head, .game-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ghost {
  border: 1px solid rgba(231,198,110,.34);
  color: var(--paper);
  background: rgba(239,226,191,.08);
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 900;
  cursor: pointer;
}
.ghost:hover { background: rgba(231,198,110,.14); }
.ghost.danger { color: #ffd0be; }
.launcher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
label { display: grid; gap: .45rem; }
label span { font-weight: 900; color: var(--gold); }
input, select {
  width: 100%;
  border: 1px solid rgba(231,198,110,.4);
  border-radius: 14px;
  background: #f4e5c9;
  color: #20140d;
  padding: .9rem 1rem;
  font-size: 1rem;
  font-weight: 900;
}
.game-screen { overflow: hidden; padding: 0; }
.game-topbar { padding: 1rem; border-bottom: 1px solid rgba(231,198,110,.24); }
.topbar-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.table-stats {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(231,198,110,.18);
}
.table-stats span {
  border: 1px solid rgba(231,198,110,.22);
  color: #f6dfa4;
  background: rgba(20, 12, 7, .34);
  border-radius: 999px;
  padding: .42rem .7rem;
  font-weight: 900;
  font-size: .84rem;
}
.game-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 420px; }
.log-panel { border-right: 1px solid rgba(231,198,110,.22); padding: 1rem; background: rgba(21,13,8,.28); }
.log-panel h2 { font-size: 1.4rem; margin-bottom: .8rem; }
#log { display: grid; gap: .55rem; color: #d7c5a7; font-size: .94rem; }
.log-item { padding: .7rem; border-radius: 12px; background: rgba(239,226,191,.07); border: 1px solid rgba(231,198,110,.15); }
.table {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: radial-gradient(circle, rgba(231,198,110,.08), transparent 70%);
}
.player-zone {
  border: 1px solid rgba(231,198,110,.28);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(21,13,8,.45);
  min-height: 182px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .55rem;
}
.player-zone.current { outline: 3px solid rgba(231,198,110,.35); }
.player-zone.finished { opacity: .7; }
.player-head { display: flex; justify-content: space-between; gap: .5rem; color: var(--gold); font-weight: 1000; }
.score { color: #f3e4c7; opacity: .88; white-space: nowrap; }
.player-flags { min-height: 24px; display: flex; gap: .35rem; flex-wrap: wrap; }
.player-flags span {
  border-radius: 999px;
  padding: .2rem .45rem;
  color: #2a1b10;
  background: #e7c66e;
  font-size: .72rem;
  font-weight: 1000;
}
.queue { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; }
.client-card {
  width: 54px;
  height: 74px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ecd498;
  color: #28180d;
  font-weight: 1000;
  box-shadow: inset 0 -5px rgba(0,0,0,.12);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.32);
}
.client-card img { width: 100%; height: 100%; object-fit: cover; }
.client-card b {
  position: absolute;
  right: 4px;
  bottom: 3px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1c1009;
  background: #f8dfa0;
  border: 1px solid rgba(42,27,16,.34);
  font-size: .82rem;
}
.client-card.angry {
  outline: none;
  background: transparent;
  box-shadow: none;
}

.client-card.angry::after {
  display: none;
}

.client-card.angry img {
  filter:
    drop-shadow(0 0 8px rgba(255, 60, 40, 0.95))
    drop-shadow(0 0 18px rgba(255, 60, 40, 0.65))
    drop-shadow(0 4px 2px rgba(0, 0, 0, 0.24));
}

.client-card.angry .value-bubble {
  background: rgb(220, 45, 35);
  color: #fff7e8;
  border-color: rgb(140, 20, 15);
  outline: none;
  box-shadow:
    0 0 10px rgba(255, 60, 40, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.22);
}


.client-card.annoying b { background: #ffbe7d; }
.zone-foot { color: #bca886; font-size: .82rem; }
.muted { color: #bca886; font-weight: 800; padding: .7rem 0; }
.player-console { border-top: 1px solid rgba(231,198,110,.24); background: rgba(20,12,7,.22); }
.turn-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(231,198,110,.2);
}
.turn-actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.turn-actions select { width: min(280px, 100%); padding: .72rem .85rem; }
.action-button {
  min-width: 144px;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(231,198,110,.45);
  background: #f3e1b5;
  color: #28180d;
  font-weight: 1000;
  cursor: pointer;
}
.action-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.03); }
.hand {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
  gap: .85rem;
  padding: 1rem;
}
.action-card {
  min-height: 224px;
  border-radius: 16px;
  border: 1px solid rgba(231,198,110,.45);
  background: #f3e1b5;
  color: #28180d;
  font-weight: 1000;
  cursor: pointer;
  display: grid;
  grid-template-rows: 122px auto 1fr;
  gap: .45rem;
  padding: .55rem;
  text-align: left;
}
.action-card:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.03); }
.action-card img {
  width: 100%;
  height: 122px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,.35);
}
.action-card span { font-size: .9rem; line-height: 1.12; }
.action-card small { font-size: .73rem; line-height: 1.24; opacity: .76; }
.order-panel { margin: clamp(2rem, 5vw, 5rem); padding: clamp(1.5rem, 4vw, 4rem); max-width: 1000px; }
footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 2rem clamp(1rem, 5vw, 5rem); color: #b8a486; border-top: 1px solid rgba(231,198,110,.16); }

@media (max-width: 1100px) {
  .table { grid-template-columns: repeat(2, minmax(210px, 1fr)); }
}

@media (max-width: 980px) {
  .hero, .booth-section, .game-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .cards-strip, .mode-grid, .table, .launcher-grid { grid-template-columns: 1fr; }
  .log-panel { border-right: 0; border-bottom: 1px solid rgba(231,198,110,.22); }
  nav { display: none; }
  .turn-panel { align-items: stretch; flex-direction: column; }
  .turn-actions { align-items: stretch; }
  .action-button, .turn-actions select { width: 100%; }
}

@media (max-width: 640px) {
  .site-header { position: relative; }
  .brand img { width: 210px; }
  h1 { font-size: 3rem; }
  .launcher, .game-screen { margin-left: .7rem; margin-right: .7rem; }
  .hand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-card { min-height: 210px; grid-template-rows: 96px auto 1fr; }
  .action-card img { height: 96px; }
}

/* Plateau de jeu inspiré du prototype Python */
.game-screen {
  margin-inline: clamp(.5rem, 2vw, 1.5rem);
  background: #2b1a10;
  border-radius: 8px;
  position: relative;
}

.move-reveal {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(18, 10, 5, .38);
  pointer-events: none;
}

.move-reveal[hidden] {
  display: none;
}

.move-reveal.fade-out {
  opacity: 0;
  transition: opacity .18s ease;
}

.move-card {
  width: min(280px, 86vw);
  padding: 1rem;
  border: 2px solid rgba(231,198,110,.76);
  border-radius: 12px;
  background: #2d1b10;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  text-align: center;
  position: relative;
  animation: reveal-pop .24s ease both;
}

.move-card img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin: .25rem auto .75rem;
  display: block;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.move-card strong {
  display: block;
  color: #ffde75;
  font-size: 1.05rem;
  line-height: 1.15;
}

.move-card span {
  display: block;
  margin-top: .35rem;
  color: #f4e5c9;
  font-size: .78rem;
  line-height: 1.3;
}

.move-card .move-reveal-avatar {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 56px;
  height: 56px;
  margin: 0;
  object-fit: cover;
  border: 3px solid #3b250f;
  border-radius: 999px;
  background: #e6c75f;
  box-shadow: 0 5px 12px rgba(0,0,0,.42);
}

.move-reveal.card-only {
  background: rgba(18, 10, 5, .28);
}

.move-reveal.card-only .move-card {
  width: min(245px, 72vw);
  padding: .45rem;
  background: rgba(45,27,16,.20);
  border-color: rgba(231,198,110,.34);
}

.move-reveal.card-only .move-card .eyebrow,
.move-reveal.card-only .move-card strong,
.move-reveal.card-only .move-card span {
  display: none;
}

.move-reveal.card-only #moveRevealImage {
  width: 220px;
  height: 310px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
}

@keyframes reveal-pop {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.game-topbar {
  min-height: 58px;
  background: #2b1a10;
}
.table-stats {
  position: relative;
  z-index: 2;
  background: #20140d;
}
.game-layout {
  display: grid;
  grid-template-columns: 116px minmax(820px, 1fr);
  min-height: 430px;
}
.log-panel {
  display: grid;
  grid-template-rows: 132px 1fr;
  gap: 1rem;
  padding: .8rem;
  border-right: 2px solid rgba(0,0,0,.42);
  background: #2c1b10;
}
.log-panel h2 {
  display: block;
  width: 84px;
  height: 122px;
  margin: .25rem auto 0;
  overflow: hidden;
  color: transparent;
  border: 3px solid #9b8d78;
  border-radius: 4px;
  background: #d7c7aa;
  box-shadow: 0 0 0 2px #15100b, 0 8px 18px rgba(0,0,0,.42);
}
#log {
  align-content: start;
  max-height: 318px;
  overflow: hidden;
}
#log::before {
  content: "";
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto .85rem;
  border: 2px solid #9dff5e;
  border-radius: 8px;
  background: rgba(19, 75, 28, .72) url("../assets/game/runtime/ClientsTransparents/1ptscalme-Photoroom.webp") center / 58px auto no-repeat;
  box-shadow: 0 0 18px rgba(157,255,94,.38);
}
.log-item {
  padding: .48rem;
  font-size: .72rem;
  line-height: 1.25;
  border-color: rgba(231,198,110,.12);
  background: rgba(0,0,0,.16);
}
.table {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 12px;
  min-height: 430px;
  padding: 14px 14px 14px 18px;
  overflow: auto;
  background: #cbb783 url("../assets/game/runtime/Board/hall.webp") center / cover no-repeat;
}
.player-zone {
  position: relative;
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 132px;
  grid-template-rows: 1fr;
  gap: 10px;
  height: 94px;
  min-height: 94px;
  padding: 5px 8px 5px 54px;
  border: 3px solid rgba(111, 233, 71, .72);
  border-radius: 10px;
  background: rgba(143, 181, 85, .22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.player-zone.current {
  outline: 3px solid rgba(154, 255, 88, .56);
  box-shadow: 0 0 18px rgba(154,255,88,.24), inset 0 0 0 1px rgba(255,255,255,.18);
}
.player-zone.finished { opacity: .72; }
.queue-track {
  position: relative;
  align-self: center;
  height: 68px;
}

.queue-track::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url("../assets/game/runtime/Board/barriere-milieu.webp") center / 100% 68px no-repeat;
  pointer-events: none;
}
.queue-people {
  position: absolute;
  right: 10px;
  bottom: 2px;
  left: 12px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 22px;
  height: 72px;
}
.booth-area {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  min-width: 120px;
}
.booth-img {
  width: 58px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,.24));
}
.nameplate {
  position: absolute;
  top: 4px;
  right: 0;
  max-width: 82px;
  padding: .22rem .38rem;
  overflow: hidden;
  color: #150c06;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 2px solid #1e1209;
  border-radius: 7px;
  background: #ffd86d;
  font-size: .78rem;
  font-weight: 1000;
}
.score-ticket {
  position: absolute;
  right: 4px;
  bottom: 2px;
  width: 34px;
  height: 56px;
}
.score-ticket img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.score-ticket b {
  position: absolute;
  inset: 10px 0 14px;
  display: grid;
  place-items: center;
  color: #ff2434;
  font-size: 1.35rem;
  font-weight: 1000;
  -webkit-text-stroke: 1px #fff3d8;
}
.player-flags {
  position: absolute;
  left: 10px;
  top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 118px;
  pointer-events: none;
}
.player-flags span {
  padding: .14rem .34rem;
  color: #1b1009;
  border: 1px solid rgba(0,0,0,.25);
  border-radius: 6px;
  background: rgba(255,216,109,.88);
  font-size: .64rem;
  line-height: 1.1;
}
.client-card {
  width: 50px;
  height: 66px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.client-card img {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 2px rgba(0,0,0,.24));
}
.client-card .value-bubble {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 5;
  min-width: 38px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #1a1008;
  border: 2px solid #1f1208;
  border-radius: 999px;
  background: #ffd86d;
  font-size: .92rem;
  font-weight: 1000;
  transform: translateX(-50%);
}

.client-card.incoming {
  animation: client-arrives .46s ease-out both;
}

@keyframes client-arrives {
  0% { opacity: 0; transform: translateX(-42px) translateY(-18px) scale(.82); }
  70% { opacity: 1; transform: translateX(4px) translateY(0) scale(1.04); }
  100% { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}
.client-card.angry::after {
  z-index: 5;
  top: 14px;
  right: 0;
  width: 18px;
  height: 18px;
  font-size: .72rem;
}
.client-card.annoying .value-bubble { background: #ffb66d; }
.client-card.annoying.angry::after { display: none; }
.client-card.reorder-target {
  cursor: pointer;
}
.client-card.reorder-target img {
  filter: drop-shadow(0 0 7px rgba(255, 222, 117, .6));
}
.client-card.reorder-target:hover img {
  filter: drop-shadow(0 0 12px rgba(157,255,94,.95)) drop-shadow(0 4px 2px rgba(0,0,0,.24));
}
.client-card.reorder-picked img {
  filter: drop-shadow(0 0 10px rgba(157,255,94,.9)) drop-shadow(0 4px 2px rgba(0,0,0,.24));
}
.client-card.reorder-picked .value-bubble {
  outline: 3px solid #9dff5e;
}
.muted {
  align-self: center;
  margin-left: auto;
  color: rgba(44,28,15,.64);
  font-size: .86rem;
}
.player-console {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(340px, .85fr);
  gap: 12px;
  padding: 10px 8px 8px;
  background: #1f140d;
}
.turn-panel {
  min-height: 118px;
  align-items: center;
  border: 1px solid rgba(231,198,110,.32);
  border-radius: 8px;
  background: #2d1b10;
}
.turn-panel strong {
  display: block;
  color: #ffde75;
  font-size: 1.35rem;
}
.turn-actions {
  width: 100%;
}
.hand {
  grid-template-columns: repeat(auto-fit, minmax(128px, 154px));
  align-content: center;
  justify-content: start;
  min-height: 190px;
  border: 1px solid rgba(231,198,110,.32);
  border-radius: 8px;
  background: #3b2818;
}
.action-card {
  min-height: 178px;
  grid-template-rows: 138px auto;
  gap: .35rem;
  padding: .45rem;
  overflow: hidden;
  border-radius: 6px;
  background: #f1e7d2;
}
.action-card.selected {
  outline: 3px solid #9dff5e;
  box-shadow: 0 0 18px rgba(157,255,94,.34);
}

.action-card.unplayable {
  background: #9b9285;
  color: #4a4036;
  opacity: .58;
  cursor: not-allowed;
  filter: grayscale(1);
  box-shadow: none;
}

.action-card.unplayable img {
  filter: grayscale(1) contrast(.78) brightness(.82);
}

.action-card.unplayable:hover {
  transform: none;
  filter: grayscale(1);
}

.action-card img {
  height: 138px;
  border-radius: 4px;
  object-fit: contain;
  background: #d8d0c1;
  filter: none;
}
.action-card span {
  font-size: .72rem;
  line-height: 1.08;
}
.action-card small { display: none; }

@media (max-width: 980px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
  .log-panel {
    grid-template-columns: 92px 1fr;
    grid-template-rows: auto;
  }
  #log {
    max-height: 120px;
    overflow: auto;
  }
  .table {
    min-width: 860px;
  }
  .player-console {
    grid-template-columns: 1fr;
  }
}

/* Table numérique concentrée */
#view-play.playing .page-title,
#view-play.playing .mode-grid,
#view-play.playing .launcher {
  display: none;
}

#view-play.playing {
  min-height: auto;
  padding: 14px 0 18px;
}

#view-play.playing .game-screen {
  max-width: 1500px;
  margin: 0 auto;
}

#view-play.playing + * {
  margin-top: 0;
}

.game-screen {
  border-radius: 10px;
}

.game-topbar {
  min-height: 52px;
  padding: .75rem 1rem;
}

.table-stats {
  padding: .5rem .75rem;
}

.table-stats span {
  padding: .32rem .58rem;
  font-size: .78rem;
}

.game-layout {
  grid-template-columns: 108px minmax(760px, 1fr) 260px;
  min-height: 430px;
  background: #1f140d;
}

.deck-panel {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 18px;
  padding: 16px 10px;
  border-right: 2px solid rgba(0,0,0,.42);
  background: #2c1b10;
}

.deck-stack {
  position: relative;
  width: 72px;
  height: 102px;
  border: 3px solid #9b8d78;
  border-radius: 5px;
  background: #d7c7aa;
  box-shadow: 0 0 0 2px #15100b, 0 8px 18px rgba(0,0,0,.42);
}

.deck-stack::before,
.deck-stack::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 0;
  border: 2px solid rgba(255,255,255,.38);
  border-radius: 4px;
  transform: translate(5px, -5px);
}

.deck-stack::after {
  transform: translate(9px, -9px);
  opacity: .55;
}

.deck-stack img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.deck-stack span {
  position: absolute;
  right: -9px;
  bottom: -9px;
  z-index: 2;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #1a1008;
  border: 2px solid #1a1008;
  border-radius: 999px;
  background: #ffd86d;
  font-size: .82rem;
  font-weight: 1000;
}

.client-deck {
  border-color: #9dff5e;
  background: rgba(19, 75, 28, .72);
  box-shadow: 0 0 0 2px #15100b, 0 0 18px rgba(157,255,94,.28);
}

.client-deck.awaiting-placement {
  animation: deck-placement-glow 1s ease-in-out infinite alternate;
  border-color: #fff16f;
  cursor: grab;
}

.client-deck.awaiting-placement:active {
  cursor: grabbing;
}

.placement-toast {
  width: 92px;
  color: #ffefaa;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}

.placement-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes deck-placement-glow {
  from {
    box-shadow: 0 0 0 2px #15100b, 0 0 18px rgba(157,255,94,.36);
    transform: translateY(0);
  }
  to {
    box-shadow: 0 0 0 2px #15100b, 0 0 30px rgba(255,241,111,.86);
    transform: translateY(-2px);
  }
}

.log-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: .65rem;
  padding: .85rem;
  border-right: 0;
  border-left: 2px solid rgba(0,0,0,.42);
  background: #2c1b10;
}

.log-panel h2 {
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  color: #ffde75;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1.05rem;
  line-height: 1;
}

#log {
  max-height: 390px;
  overflow: auto;
  padding-right: .25rem;
}

#log::before {
  content: none;
}

.log-item {
  padding: .58rem;
  font-size: .78rem;
  line-height: 1.3;
  border-color: rgba(231,198,110,.18);
  background: rgba(20,12,7,.42);
}

.table {
  min-height: 430px;
  max-height: 430px;
  overflow: hidden;
  padding: 12px;
  gap: 11px;
  background-size: cover;
}

.player-zone {
  grid-template-columns: minmax(500px, 1fr) 122px;
  height: 92px;
  min-height: 92px;
  padding: 5px 8px 5px 42px;
}

.player-zone.placement-valid {
  border-color: rgba(157, 255, 94, .95);
  box-shadow: 0 0 16px rgba(157, 255, 94, .28), inset 0 0 0 1px rgba(255,255,255,.16);
  cursor: pointer;
}

.player-zone.placement-valid:hover {
  background: rgba(157, 255, 94, .18);
  box-shadow: 0 0 24px rgba(157, 255, 94, .42), inset 0 0 0 2px rgba(255,255,255,.18);
}

.player-zone.placement-valid.drag-hover {
  background: rgba(157, 255, 94, .26);
  box-shadow: 0 0 32px rgba(157, 255, 94, .62), inset 0 0 0 3px rgba(255,255,255,.22);
  transform: translateY(-1px);
}

.player-zone.placement-invalid {
  border-color: rgba(210, 43, 31, .95);
  background: rgba(150, 30, 20, .18);
  box-shadow: inset 0 0 0 1px rgba(210,43,31,.34);
  cursor: not-allowed;
}

.player-zone.placement-invalid:hover {
  background: rgba(210, 43, 31, .28);
  box-shadow: 0 0 18px rgba(210,43,31,.28), inset 0 0 0 2px rgba(210,43,31,.42);
}

.player-zone.placement-invalid.drag-hover {
  background: rgba(210, 43, 31, .34);
  box-shadow: 0 0 24px rgba(210,43,31,.36), inset 0 0 0 3px rgba(210,43,31,.48);
}

.pending-distribution-card,
.counter-card {
  width: 122px;
  min-height: 164px;
  border: 0;
  border-radius: 8px;
  background: #f3dfb8;
  color: #120805;
  padding: 8px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .28);
  font-weight: 900;
  cursor: grab;
}

.pending-distribution-card img,
.counter-card img {
  width: 100%;
  height: 108px;
  object-fit: contain;
  display: block;
}

.pending-distribution-card small,
.counter-card span {
  display: block;
  margin-top: 6px;
  line-height: 1.05;
}

.counter-choice {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.counter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.queue-track {
  height: 64px;
  background-size: 100% 64px;
}

.queue-people {
  left: 8px;
  right: 8px;
  height: 68px;
  gap: 16px;
}

.booth-area {
  min-width: 112px;
}

.booth-img {
  width: 54px;
  height: 72px;
}

.nameplate {
  max-width: 78px;
  font-size: .72rem;
}

.score-ticket {
  width: 31px;
  height: 52px;
}

.score-ticket b {
  font-size: 1.18rem;
}

.player-flags {
  left: 8px;
  top: 8px;
}

.client-card {
  width: 48px;
  height: 62px;
}

.client-card img {
  width: 48px;
  height: 54px;
}

.client-card .value-bubble {
  min-width: 34px;
  height: 19px;
  font-size: .84rem;
}

.player-console {
  grid-template-columns: minmax(520px, 1.35fr) minmax(340px, .85fr);
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 8px 8px;
}

.turn-panel {
  min-height: 112px;
  padding: .85rem;
}

.turn-panel strong {
  max-width: 430px;
  font-size: 1.25rem;
  line-height: 1.22;
}

.turn-actions {
  max-width: 520px;
}

.action-button {
  min-width: 118px;
  min-height: 46px;
}

.turn-actions select {
  width: 210px;
}

.hand {
  min-height: 190px;
  grid-template-columns: repeat(auto-fit, minmax(128px, 154px));
  justify-content: start;
  gap: .7rem;
  padding: .75rem;
}

.action-card {
  min-height: 178px;
  grid-template-rows: 138px auto;
  padding: .45rem;
}

.action-card img {
  height: 138px;
}

.action-card span {
  font-size: .72rem;
}

@media (max-width: 1180px) {
  .game-screen,
  .player-console {
    max-width: none;
  }

  .game-layout {
    grid-template-columns: 96px minmax(720px, 1fr) 230px;
    overflow-x: auto;
  }
}

/* =========================================================
   Correctif interface plateau : plus lisible / plus compact
   ========================================================= */

/* Suppression des stats du haut */
.table-stats {
  display: none !important;
}

/* Suppression du journal à droite */
.log-panel {
  display: none !important;
}

/* Plateau sans colonne journal */
.game-layout {
  grid-template-columns: 108px minmax(760px, 1fr) !important;
}

/* Suppression de la combobox de cible */
.turn-actions select,
#targetSelect {
  display: none !important;
}

/* Les boutons restent bien rangés sans la combobox */
.turn-actions {
  justify-content: flex-start;
  align-items: center;
}

/* Plaques de noms plus lisibles */
.nameplate {
  right: 2px !important;
  max-width: 98px !important;
  min-width: 86px;
  text-align: center;
  font-size: .72rem !important;
  line-height: 1.05;
  padding: .24rem .32rem !important;
}

/* Guichet légèrement repoussé pour laisser respirer le nom */
.booth-area {
  min-width: 126px;
}

/* Barrières plus serrées : motif répété plutôt qu'étiré */
.queue-track::after {
  background-image: url("../assets/game/runtime/Board/barriere-milieu.webp") !important;
  background-repeat: repeat-x !important;
  background-position: left center !important;
  background-size: 142px 64px !important;
}

/* Personnages un peu plus bas, bulles inchangées */
.client-card img {
  transform: translateY(5px);
}

/* Texte mieux centré dans les bulles de points */
.client-card .value-bubble {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 1px 1px 1px;
  text-align: center;
}

/* Clients énervés : pas de bordure rouge, halo + bulle rouge */
.client-card.angry {
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.client-card.angry::after {
  display: none !important;
}

.client-card.angry img {
  filter:
    drop-shadow(0 0 8px rgba(255, 60, 40, 0.95))
    drop-shadow(0 0 18px rgba(255, 60, 40, 0.65))
    drop-shadow(0 4px 2px rgba(0, 0, 0, 0.24));
}

.client-card.angry .value-bubble {
  background: rgb(220, 45, 35) !important;
  color: #fff7e8 !important;
  border-color: rgb(140, 20, 15) !important;
  outline: none !important;
  box-shadow:
    0 0 10px rgba(255, 60, 40, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.22);
}

@media (max-width: 1180px) {
  .game-layout {
    grid-template-columns: 96px minmax(720px, 1fr) !important;
  }
}

/* =========================================================
   Écran de victoire : podium du plus gros fainéant
   ========================================================= */

.victory-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 216, 109, .10), transparent 55%),
    rgba(18, 10, 5, .72);
  backdrop-filter: blur(3px);
}

.victory-overlay[hidden] {
  display: none;
}

.victory-card {
  position: relative;
  width: min(860px, 94vw);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 22px 22px 18px;
  border: 2px solid rgba(231, 198, 110, .72);
  border-radius: 18px;
  background: #2d1b10;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .62);
  text-align: center;
}

.victory-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(231, 198, 110, .45);
  border-radius: 999px;
  background: rgba(20, 12, 7, .72);
  color: #ffde75;
  font-size: 1.4rem;
  font-weight: 1000;
  cursor: pointer;
}

.victory-card h2 {
  max-width: 760px;
  margin: 0 auto 12px;
  color: #ffde75;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.05;
  text-transform: none;
}

.victory-stage {
  position: relative;
  width: min(760px, 100%);
  height: 330px;
  margin: 0 auto 10px;
}

.victory-podium {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: 265px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35));
}

.victory-avatar {
  position: absolute;
  z-index: 2;
  width: 138px;
  height: 138px;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255, 231, 170, .22);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .42));
}

.victory-avatar-1 {
  left: 7%;
  bottom: 202px;
}

.victory-avatar-2 {
  left: 30%;
  bottom: 122px;
}

.victory-avatar-3 {
  left: 49%;
  bottom: 82px;
}

.victory-ranking {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.victory-rank {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(231, 198, 110, .20);
  border-radius: 10px;
  background: rgba(20, 12, 7, .38);
  color: #f4e5c9;
  text-align: left;
  font-weight: 900;
}

.victory-rank.winner {
  border-color: rgba(255, 216, 109, .80);
  background: rgba(255, 216, 109, .12);
}

.victory-rank img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 999px;
}

.victory-rank strong {
  color: #ffde75;
  white-space: nowrap;
}

.victory-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* =========================================================
   Portraits des guichetiers + bouton test victoire
   ========================================================= */

.booth-portrait {
  position: absolute;
  left: -52px;
  bottom: 7px;
  width: 46px;
  height: 46px;
  z-index: 8;
  object-fit: contain;
  border: 2px solid #1e1209;
  border-radius: 999px;
  background: rgba(255, 216, 109, .90);
  box-shadow:
    0 0 0 2px rgba(255, 216, 109, .36),
    0 5px 8px rgba(0, 0, 0, .32);
}

.booth-area {
  overflow: visible;
}

/* =========================================================
   Podium assemblé : morceaux 1 à 6, largeur constante
   ========================================================= */

.victory-stage {
  position: relative;
  width: min(820px, 100%);
  height: 360px;
  margin: 0 auto 10px;
  overflow: visible;
}

.victory-podium,
.victory-avatar-1,
.victory-avatar-2,
.victory-avatar-3 {
  display: none !important;
}

.victory-podium-pieces {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: 100%;
  transform: translateX(-50%);
}

.victory-podium-slot {
  position: relative;
  flex: 0 1 130px;
  width: 130px;
  height: 330px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.victory-podium-piece {
  width: 100%;
  height: 330px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35));
}

.victory-podium-slot .victory-avatar {
  position: absolute;
  z-index: 4;
  left: 50%;
  width: 94px;
  height: 94px;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255, 231, 170, .22);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .42));
  transform: translateX(-50%);
}

/* Portraits posés au-dessus des piles : chaque morceau garde son canvas vertical. */
.victory-podium-slot-1 .victory-avatar { bottom: 254px; width: 112px; height: 112px; }
.victory-podium-slot-2 .victory-avatar { bottom: 118px; width: 94px; height: 94px; }
.victory-podium-slot-3 .victory-avatar { bottom: 138px; width: 96px; height: 96px; }
.victory-podium-slot-4 .victory-avatar { bottom: 160px; width: 98px; height: 98px; }
.victory-podium-slot-5 .victory-avatar { bottom: 184px; width: 100px; height: 100px; }
.victory-podium-slot-6 .victory-avatar { bottom: 292px; width: 116px; height: 116px; }

/* Le podium s'adapte au nombre de joueurs sans recadrage bricolé. */
.victory-overlay[data-players="3"] .victory-podium-slot {
  flex-basis: 165px;
  width: 165px;
}

.victory-overlay[data-players="4"] .victory-podium-slot {
  flex-basis: 145px;
  width: 145px;
}

.victory-overlay[data-players="5"] .victory-podium-slot {
  flex-basis: 132px;
  width: 132px;
}

.victory-overlay[data-players="6"] .victory-podium-slot {
  flex-basis: 120px;
  width: 120px;
}

.victory-ranking {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
}

.victory-rank span {
  overflow-wrap: anywhere;
}

/* =========================================================
   Podium : portrait gagnant en bas + auréole dorée
   ========================================================= */

.victory-podium-slot.victory-winner-slot .victory-avatar {
  bottom: 158px !important;
  width: 116px !important;
  height: 116px !important;
  background:
    radial-gradient(circle, rgba(255, 236, 150, .95) 0%, rgba(255, 205, 64, .72) 55%, rgba(255, 174, 28, .18) 100%) !important;
  box-shadow:
    0 0 0 4px rgba(255, 216, 109, .38),
    0 0 32px rgba(255, 216, 109, .75),
    0 10px 12px rgba(0, 0, 0, .44) !important;
}

/* Les autres portraits gardent une auréole plus neutre */
.victory-podium-slot:not(.victory-winner-slot) .victory-avatar {
  background: rgba(255, 231, 170, .20);
}

/* Le portrait gagnant ne doit plus flotter trop haut dans les podiums 3/4/5/6 */
.victory-podium-slot-1.victory-winner-slot .victory-avatar,
.victory-podium-slot-2.victory-winner-slot .victory-avatar,
.victory-podium-slot-3.victory-winner-slot .victory-avatar,
.victory-podium-slot-4.victory-winner-slot .victory-avatar,
.victory-podium-slot-5.victory-winner-slot .victory-avatar,
.victory-podium-slot-6.victory-winner-slot .victory-avatar {
  bottom: 158px !important;
}


/* =========================================================
   Choix obligatoire : défausse / calmer après Être efficace
   ========================================================= */

.game-screen.attention-choice #turnHint {
  color: #ff3434 !important;
  text-shadow:
    0 0 8px rgba(255, 52, 52, .65),
    0 2px 0 rgba(0, 0, 0, .55);
  animation: attention-pulse .75s ease-in-out infinite alternate;
}

.game-screen.attention-choice .turn-panel {
  border-color: rgba(255, 52, 52, .85) !important;
  box-shadow:
    0 0 0 2px rgba(255, 52, 52, .24),
    0 0 22px rgba(255, 52, 52, .28);
}

@keyframes attention-pulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.28); }
}

/* Défausse : on garde la main visible, on voile le plateau et les commandes inutiles. */
.game-screen.attention-discard .game-topbar,
.game-screen.attention-discard .game-layout,
.game-screen.attention-discard .table-stats,
.game-screen.attention-discard .turn-actions {
  opacity: .30;
  filter: grayscale(.55) brightness(.45);
  pointer-events: none;
}

.game-screen.attention-discard .hand {
  position: relative;
  z-index: 20;
  border-color: rgba(255, 52, 52, .80) !important;
  box-shadow:
    0 0 0 2px rgba(255, 52, 52, .22),
    0 0 28px rgba(255, 52, 52, .32);
}

.game-screen.attention-discard .discard-choice {
  border-color: rgba(255, 52, 52, .65) !important;
  box-shadow: 0 0 16px rgba(255, 52, 52, .20);
}

.game-screen.attention-discard .discard-choice:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(255, 52, 52, .42);
}

/* Calme après Être efficace : seule la ligne du joueur reste lisible et cliquable. */
.game-screen.attention-calm .deck-panel,
.game-screen.attention-calm .game-topbar,
.game-screen.attention-calm .table-stats,
.game-screen.attention-calm .player-console,
.game-screen.attention-calm .player-zone.veiled-row {
  opacity: .26;
  filter: grayscale(.55) brightness(.42);
}

.game-screen.attention-calm .player-zone.veiled-row {
  pointer-events: none;
}

.game-screen.attention-calm .player-zone.focus-calm-row {
  position: relative;
  z-index: 18;
  opacity: 1 !important;
  filter: none !important;
  border-color: rgba(255, 52, 52, .92) !important;
  background: rgba(120, 20, 16, .18) !important;
  box-shadow:
    0 0 0 2px rgba(255, 52, 52, .28),
    0 0 30px rgba(255, 52, 52, .40),
    inset 0 0 0 1px rgba(255,255,255,.16) !important;
}

.game-screen.attention-calm .player-zone.focus-calm-row .client-card.angry {
  cursor: pointer;
}

.game-screen.attention-calm .player-zone.focus-calm-row .client-card.angry img {
  filter:
    drop-shadow(0 0 10px rgba(255, 52, 52, .95))
    drop-shadow(0 0 24px rgba(255, 52, 52, .78))
    drop-shadow(0 4px 2px rgba(0, 0, 0, .24)) !important;
}


/* =========================================================
   Ajustements visuels demandés : portraits / guichet / bulles
   ========================================================= */

/* On supprime complètement l'image du guichet */
.booth-img {
  display: none !important;
}

/* La colonne de droite devient un vrai bloc portrait + nom + score */
.player-zone {
  grid-template-columns: minmax(500px, 1fr) 170px !important;
}

.booth-area {
  position: relative;
  display: block !important;
  min-width: 170px !important;
  width: 170px;
  height: 82px;
  overflow: visible;
}

/* Le portrait ne déborde plus à gauche : il reste bien dans sa ligne */
.booth-portrait {
  left: 8px !important;
  bottom: 50% !important;
  width: 58px !important;
  height: 58px !important;
  transform: translateY(50%);
  border: 2px solid #2a180d;
  background: radial-gradient(circle at 35% 30%, #f2d77b 0%, #d0aa45 68%, #9b7426 100%);
  box-shadow:
    0 0 0 2px rgba(255, 216, 109, .28),
    0 8px 14px rgba(0, 0, 0, .34);
}

/* Cartouche nom plus propre */
.nameplate {
  top: 8px !important;
  right: 10px !important;
  left: 72px !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: .34rem .48rem !important;
  overflow: hidden;
  border: 2px solid #22140b;
  border-radius: 10px;
  background: linear-gradient(180deg, #d9b95a 0%, #caa448 100%);
  color: #160d06;
  font-size: .86rem !important;
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 3px 8px rgba(0,0,0,.18);
}

/* Ticket score mieux ancré en bas à droite */
.score-ticket {
  right: 10px !important;
  bottom: 4px !important;
  width: 34px;
  height: 58px;
}

/* Bulles de valeur plus propres / plus lisibles */
.client-card .value-bubble {
  min-width: 36px;
  height: 22px;
  padding: 0 8px 1px;
  border: 2px solid #2a180d;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4d978 0%, #e1bd58 52%, #c99a34 100%) !important;
  color: #181008;
  font-size: .82rem;
  font-weight: 1000;
  letter-spacing: .01em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 3px 6px rgba(0,0,0,.26);
}

.client-card.angry .value-bubble {
  background: linear-gradient(180deg, #ef6a54 0%, #d83d31 55%, #b3221b 100%) !important;
  color: #fff8ef !important;
  border-color: #6c120e !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 0 10px rgba(255, 60, 40, .34),
    0 3px 6px rgba(0,0,0,.24);
}

.client-card.annoying:not(.angry) .value-bubble {
  background: linear-gradient(180deg, #ffd08c 0%, #f0aa56 55%, #cf7f2e 100%) !important;
}

@media (max-width: 1180px) {
  .player-zone {
    grid-template-columns: minmax(500px, 1fr) 162px !important;
  }

  .booth-area {
    min-width: 162px !important;
    width: 162px;
  }
}


/* =========================================================
   Correctif v3 : retour des barrières de file
   ========================================================= */

/* La piste doit rester une couche dédiée sous les clients */
.queue-track {
  position: relative !important;
  height: 64px !important;
  overflow: visible !important;
}

/* Les barrières sont réaffichées, derrière les clients mais devant le fond */
.queue-track::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  opacity: .95 !important;
  background-image: url("../assets/game/runtime/Board/barriere-milieu.webp") !important;
  background-repeat: repeat-x !important;
  background-position: left center !important;
  background-size: 142px 64px !important;
}

/* Les clients restent au-dessus des barrières */
.queue-people {
  z-index: 4 !important;
}

/* Le bloc portrait/nom/score reste lui aussi au-dessus */
.booth-area {
  z-index: 5 !important;
}


/* =========================================================
   Correctif v4 : barrière en 3 morceaux debut / milieu / fin
   ========================================================= */

/*
  À copier dans :
  assets/game/runtime/Board/barriere-debut.webp
  assets/game/runtime/Board/barriere-milieu.webp
  assets/game/runtime/Board/barriere-fin.webp
*/

.queue-track {
  position: relative !important;
  height: 64px !important;
  overflow: visible !important;

  /* morceau central répété horizontalement */
  background-image: url("../assets/game/runtime/Board/barriere-milieu.webp") !important;
  background-repeat: repeat-x !important;
  background-position: left bottom 8px !important;
  background-size: auto 38px !important;
}

/* début de barrière à gauche */
.queue-track::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 5px !important;
  width: 56px !important;
  height: 44px !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background-image: url("../assets/game/runtime/Board/barriere-fin.webp") !important;
  background-repeat: no-repeat !important;
  background-position: left bottom !important;
  background-size: 56px 44px !important;
}

/* fin de barrière à droite */
.queue-track::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 5px !important;
  width: 56px !important;
  height: 44px !important;
  z-index: 2 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  background-image: url("../assets/game/runtime/Board/barriere-debut.webp") !important;
  background-repeat: no-repeat !important;
  background-position: right bottom !important;
  background-size: 56px 44px !important;
}

/* Les clients restent au-dessus de la barrière */
.queue-people {
  z-index: 4 !important;
}

/* Les bulles aussi */
.client-card,
.client-card .value-bubble {
  z-index: 5 !important;
}

/* Correctif final : rail plus bas, devant les clients, avec les bons embouts. */
.queue-track {
  overflow: visible !important;
  background-image: none !important;
}

.queue-track::before {
  content: none !important;
}

.queue-track::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -3px !important;
  width: auto !important;
  height: 32px !important;
  z-index: 8 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  background-image:
    url("../assets/game/runtime/Board/barriere-fin.webp"),
    url("../assets/game/runtime/Board/barriere-debut.webp"),
    url("../assets/game/runtime/Board/barriere-milieu.webp") !important;
  background-repeat: no-repeat, no-repeat, repeat-x !important;
  background-position: left bottom, right bottom, left bottom !important;
  background-size: auto 32px, auto 32px, auto 32px !important;
}

.queue-people {
  z-index: auto !important;
}

.client-card {
  z-index: auto !important;
}

.client-card img {
  z-index: 4 !important;
}

.client-card .value-bubble {
  z-index: 10 !important;
}

.online-lobby {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(231,198,110,.24);
  border-radius: 8px;
  background: rgba(20,12,7,.28);
  color: #f6e4bd;
}

.online-lobby strong {
  color: var(--gold);
}

.online-lobby code {
  display: inline-block;
  margin: .3rem .35rem .3rem 0;
  padding: .2rem .45rem;
  border-radius: 6px;
  background: rgba(0,0,0,.28);
  color: #fff4cf;
  font-weight: 900;
}

.online-lobby .lobby-link {
  word-break: break-all;
  color: #f7df9d;
}

.online-lobby .lobby-players {
  margin-top: .6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.online-lobby .lobby-players span {
  padding: .28rem .5rem;
  border-radius: 999px;
  background: rgba(231,198,110,.14);
}


/* =========================================================
   Correctif demandé : barrières devant + cartes pleine image
   ========================================================= */

.queue-track {
  position: relative !important;
  overflow: visible !important;
  background-image: none !important;
}

.queue-track::before,
.queue-track::after {
  content: none !important;
  display: none !important;
}

.queue-people {
  position: absolute !important;
  z-index: 6 !important;
}

.queue-barrier {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  z-index: 12;
  pointer-events: none;
  background-image: url("../assets/game/runtime/Board/barriere-milieu.webp");
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 142px 64px;
}

.queue-barrier {
  background-image:
    url("../assets/game/runtime/Board/barriere-debut.webp"),
    url("../assets/game/runtime/Board/barriere-fin.webp"),
    url("../assets/game/runtime/Board/barriere-milieu.webp") !important;
  background-repeat: no-repeat, no-repeat, repeat-x !important;
  background-position: left bottom, right bottom, left bottom !important;
  background-size: 36px 30px, 36px 30px, 36px 30px !important;
  background-origin: border-box, border-box, content-box !important;
  background-clip: border-box, border-box, content-box !important;
  box-sizing: border-box !important;
  bottom: 2px !important;
  height: 30px !important;
  padding: 0 36px !important;
}

.queue-barrier::before,
.queue-barrier::after {
  content: none !important;
  display: none !important;
}

.client-card {
  z-index: 7 !important;
}

.client-card img {
  position: relative;
  z-index: 7 !important;
}

.client-card .value-bubble {
  z-index: 14 !important;
}

.game-screen.online-game .player-zone.online-own:not(.placement-valid):not(.placement-invalid) {
  border-color: rgba(108, 255, 88, .96) !important;
  background: rgba(71, 164, 58, .20) !important;
  box-shadow: inset 0 0 0 1px rgba(196, 255, 168, .22) !important;
}

.game-screen.online-game .player-zone.online-other:not(.placement-valid):not(.placement-invalid) {
  border-color: rgba(255, 211, 77, .94) !important;
  background: rgba(181, 137, 31, .16) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 229, 135, .18) !important;
}

.game-screen.online-game .player-zone.online-own.current:not(.placement-valid):not(.placement-invalid) {
  outline: 3px solid rgba(108, 255, 88, .62) !important;
  box-shadow:
    0 0 18px rgba(108, 255, 88, .30),
    inset 0 0 0 1px rgba(196, 255, 168, .26) !important;
}

.game-screen.online-game .player-zone.online-other.current:not(.placement-valid):not(.placement-invalid) {
  outline: 3px solid rgba(255, 211, 77, .62) !important;
  box-shadow:
    0 0 18px rgba(255, 211, 77, .28),
    inset 0 0 0 1px rgba(255, 229, 135, .24) !important;
}

.game-screen.online-game .player-zone.online-own:not(.placement-valid):not(.placement-invalid):hover {
  background: rgba(88, 206, 68, .28) !important;
  box-shadow:
    0 0 22px rgba(108, 255, 88, .36),
    inset 0 0 0 2px rgba(196, 255, 168, .28) !important;
}

.game-screen.online-game .player-zone.online-other:not(.placement-valid):not(.placement-invalid):hover {
  background: rgba(218, 166, 38, .24) !important;
  box-shadow:
    0 0 22px rgba(255, 211, 77, .32),
    inset 0 0 0 2px rgba(255, 229, 135, .26) !important;
}

.hand {
  grid-template-columns: repeat(auto-fit, minmax(124px, 154px)) !important;
}

.action-card {
  min-height: 178px !important;
  grid-template-rows: 1fr !important;
  padding: .35rem !important;
}

.action-card img {
  width: 100% !important;
  height: 100% !important;
  min-height: 166px !important;
  object-fit: contain !important;
}

.action-card span,
.action-card small,
.pending-distribution-card span,
.pending-distribution-card small,
.counter-card span,
.counter-card small {
  display: none !important;
}

.pending-distribution-card,
.counter-card {
  display: grid !important;
  place-items: center !important;
  padding: .35rem !important;
}

.pending-distribution-card img,
.counter-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.counter-choice {
  display: grid !important;
  grid-template-columns: 260px 138px auto !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
}

.counter-choice .counter-card {
  width: 260px !important;
  height: 166px !important;
  min-height: 166px !important;
  box-sizing: border-box !important;
  cursor: default !important;
}

.counter-choice .counter-card:nth-child(2) {
  width: 138px !important;
  height: 190px !important;
  min-height: 190px !important;
}

.counter-choice .counter-card img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
}

.incoming-clients-card {
  position: relative !important;
  overflow: visible !important;
}

.incoming-client-stack {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 100% !important;
}

.incoming-client-stack img {
  position: static !important;
  width: 58px !important;
  height: 142px !important;
  transform: none !important;
  object-fit: contain !important;
}

.incoming-client-stack img:nth-child(1),
.incoming-client-stack img:nth-child(2),
.incoming-client-stack img:nth-child(3),
.incoming-client-stack img:nth-child(4) {
  transform: none !important;
}

.counter-actions {
  display: grid !important;
  gap: 10px !important;
  align-content: center !important;
  justify-items: start !important;
}

.hand.counter-hand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  overflow: visible !important;
}

.hand.counter-hand .counter-choice {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 590px !important;
}

.hand.counter-hand .counter-choice .counter-card {
  flex: 0 0 auto !important;
}


/* =========================================================
   Boutons Travailler / Être efficace illustrés
   ========================================================= */
.turn-actions .action-button-illustrated {
  display: grid;
  grid-template-rows: 82px auto;
  align-items: center;
  justify-items: center;
  gap: 4px;
  min-width: 122px;
  min-height: 126px;
  padding: 7px 8px 8px;
  overflow: hidden;
}

.turn-actions .action-button-illustrated img {
  width: 100%;
  height: 82px;
  object-fit: contain;
  display: block;
  border-radius: 5px;
  background: rgba(255, 255, 255, .22);
}

.turn-actions .action-button-illustrated span {
  display: block;
  font-size: .78rem;
  line-height: 1.08;
  text-align: center;
}

.turn-actions .action-button-illustrated:disabled img {
  filter: grayscale(1) contrast(.78) brightness(.82);
}

@media (max-width: 980px) {
  .turn-actions .action-button-illustrated {
    grid-template-rows: 96px auto;
    min-height: 140px;
  }

  .turn-actions .action-button-illustrated img {
    height: 96px;
  }
}

/* =========================================================
   V4 accueil : logo plus fort + formulaire intégré
   ========================================================= */
.hero-title-logo img {
  width: min(700px, 92vw) !important;
  max-height: 230px !important;
}

.hero-copy {
  max-width: 860px !important;
}

.signup-form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  margin-top: 1.35rem;
}

.signup-form label {
  display: grid;
  gap: .45rem;
}

.signup-form label span {
  color: var(--gold);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .82rem;
}

.signup-form label em {
  color: #bda987;
  font-style: normal;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.signup-form input {
  border: 2px solid rgba(231,198,110,.52);
  border-radius: 16px;
  background: #f4e5c9;
  color: #20140d;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.38), 0 8px 0 rgba(0,0,0,.22);
}

.signup-form .btn {
  width: fit-content;
  min-width: 210px;
}

.form-status {
  min-height: 1.4em;
  margin: .25rem 0 0;
  color: #f5e8ca;
  font-weight: 900;
  font-size: .98rem !important;
}

.form-status.success {
  color: #ffde75;
}

.form-status.error {
  color: #ffb59c;
}

@media (max-width: 980px) {
  .hero-title-logo img {
    width: min(560px, 92vw) !important;
    max-height: 180px !important;
  }
}

@media (max-width: 640px) {
  .hero-title-logo img {
    width: min(420px, 92vw) !important;
    max-height: 140px !important;
  }

  .signup-form .btn {
    width: 100%;
  }
}

/* =========================================================
   V5 - Précommande professionnelle + réseaux sociaux
   ========================================================= */

/* Logo d'accueil plus gros sans casser le responsive */
.hero-title-logo img {
  width: min(760px, 94vw) !important;
  max-height: 250px !important;
}

/* Icônes sociales dans le menu */
nav {
  align-items: center;
}

.social-nav {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  transition: transform .18s ease, filter .18s ease;
}

.social-nav:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.social-nav img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

/* Page précommande : correction du débordement */
.order-panel-pro {
  max-width: 1180px !important;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, .62fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  overflow: hidden;
}

.order-panel-pro h1 {
  max-width: 100%;
  font-size: clamp(3rem, 7.2vw, 6.8rem);
  line-height: .88;
  overflow-wrap: anywhere;
}

.order-copy {
  min-width: 0;
}

.order-joke {
  color: #dac7a5 !important;
  font-size: clamp(.98rem, 1.2vw, 1.15rem) !important;
  margin-top: -.25rem;
}

.order-visual {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid rgba(231,198,110,.28);
  border-radius: 18px;
  background: rgba(20, 12, 7, .28);
  transform: rotate(1.2deg);
}

.order-visual img {
  width: min(240px, 100%);
  max-height: 330px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.34));
}

.order-visual span {
  color: #ffde75;
  font-size: .82rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: #f5e8ca;
  text-decoration: none;
  font-weight: 900;
}

.footer-socials a:hover {
  color: var(--gold);
}

.footer-socials img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .hero-title-logo img {
    width: min(620px, 94vw) !important;
    max-height: 200px !important;
  }

  .order-panel-pro {
    grid-template-columns: 1fr;
  }

  .order-panel-pro h1 {
    font-size: clamp(2.7rem, 13vw, 5.4rem);
  }

  .order-visual {
    justify-self: start;
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .hero-title-logo img {
    width: min(460px, 94vw) !important;
    max-height: 150px !important;
  }

  .order-panel {
    margin-inline: .8rem;
  }

  .order-panel-pro h1 {
    font-size: clamp(2.35rem, 14vw, 4.2rem);
  }

  .footer-socials {
    width: 100%;
  }
}


/* =========================================================
   V6 - Précommande pleine page + titre non tronqué
   ========================================================= */

#view-order {
  min-height: calc(100vh - 86px);
  padding: clamp(1rem, 2vw, 2rem);
}

#view-order.active {
  display: flex;
  align-items: stretch;
}

#view-order .order-panel,
.order-panel-pro {
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100vh - 140px);
  margin: 0 !important;
  padding: clamp(2rem, 5vw, 5.5rem) !important;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(300px, 1.05fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  overflow: visible !important;
}

.order-copy {
  min-width: 0;
  max-width: 760px;
}

.order-panel-pro h1 {
  max-width: 100%;
  font-size: clamp(4.2rem, 8.5vw, 9.2rem) !important;
  line-height: .82 !important;
  letter-spacing: -.035em;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none;
}

.order-panel-pro .order-copy > p:not(.eyebrow) {
  max-width: 760px;
  font-size: clamp(1.08rem, 1.35vw, 1.42rem) !important;
  line-height: 1.45;
}

.order-joke {
  display: none !important;
}

.order-visual {
  justify-self: center;
  width: min(440px, 100%);
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.order-visual img {
  width: min(320px, 82%);
  max-height: 430px;
}

.signup-form {
  max-width: 620px;
}

.signup-form input {
  min-height: 58px;
}

@media (max-width: 980px) {
  #view-order .order-panel,
  .order-panel-pro {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: clamp(1.4rem, 5vw, 3rem) !important;
  }

  .order-panel-pro h1 {
    font-size: clamp(3.2rem, 15vw, 6.8rem) !important;
  }

  .order-visual {
    justify-self: start;
    width: min(360px, 100%);
  }
}

@media (max-width: 640px) {
  #view-order {
    padding: .7rem;
  }

  .order-panel-pro h1 {
    font-size: clamp(2.7rem, 17vw, 4.8rem) !important;
  }
}

/* =========================================================
   V7 - Page de garde plus professionnelle / moins vide
   ========================================================= */

#view-home .hero {
  min-height: calc(100vh - 78px) !important;
  grid-template-columns: minmax(420px, .74fr) minmax(620px, 1.26fr) !important;
  gap: clamp(2rem, 4vw, 5rem) !important;
  align-items: center !important;
  padding: clamp(1.6rem, 3.2vh, 3.2rem) clamp(1.4rem, 4vw, 4.6rem) clamp(1.2rem, 2.6vh, 2.4rem) !important;
}

#view-home .hero-copy {
  max-width: 720px !important;
  transform: translateY(-1.8rem);
}

#view-home .hero-copy .eyebrow {
  margin-bottom: .9rem;
}

#view-home .hero-title-logo {
  margin-bottom: .5rem !important;
}

#view-home .hero-title-logo img {
  width: min(660px, 44vw) !important;
  max-height: 220px !important;
}

#view-home .hero-slogan {
  width: min(360px, 27vw) !important;
  margin: .65rem 0 1.15rem !important;
}

#view-home .lead {
  max-width: 640px;
  font-size: clamp(1.05rem, 1.15vw, 1.28rem) !important;
  line-height: 1.52 !important;
}

#view-home .hero-actions {
  margin-top: 1.55rem !important;
}

#view-home .hero-visual {
  align-self: center;
  padding: .8rem !important;
  border-radius: 22px !important;
  transform: rotate(-.6deg) translateY(-.8rem) !important;
}

#view-home .hero-visual img {
  min-height: 290px;
  object-fit: cover;
  object-position: center;
}

#view-home .cards-strip {
  margin-top: -2.6rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 1500px) {
  #view-home .hero {
    grid-template-columns: minmax(520px, .72fr) minmax(760px, 1.28fr) !important;
  }

  #view-home .hero-title-logo img {
    width: min(710px, 42vw) !important;
  }

  #view-home .hero-visual img {
    min-height: 330px;
  }
}

@media (max-width: 1180px) {
  #view-home .hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding-top: 2rem !important;
  }

  #view-home .hero-copy {
    transform: none;
  }

  #view-home .hero-title-logo img {
    width: min(620px, 92vw) !important;
  }

  #view-home .hero-slogan {
    width: min(340px, 72vw) !important;
  }

  #view-home .hero-visual {
    transform: rotate(-.6deg) !important;
  }

  #view-home .cards-strip {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  #view-home .hero {
    padding-inline: 1rem !important;
  }

  #view-home .hero-title-logo img {
    width: min(440px, 94vw) !important;
    max-height: 150px !important;
  }

  #view-home .hero-slogan {
    width: min(300px, 78vw) !important;
  }

  #view-home .hero-visual img {
    min-height: 210px;
  }
}


/* =========================================================
   V8 - Accueil resserré + page de règles
   ========================================================= */

.btn.secondary {
  background: rgba(239,226,191,.10);
  color: #f4e5c9;
  border: 1px solid rgba(231,198,110,.48);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
}

#view-home .hero {
  min-height: auto !important;
  padding-top: clamp(1rem, 2.2vh, 2.2rem) !important;
  padding-bottom: clamp(.8rem, 1.8vh, 1.8rem) !important;
}

#view-home .hero-copy {
  transform: none !important;
}

#view-home .hero-title-logo img {
  width: min(720px, 46vw) !important;
  max-height: 240px !important;
}

#view-home .hero-visual {
  transform: rotate(-.5deg) !important;
}

#view-home .cards-strip {
  margin-top: 0 !important;
  padding-bottom: 1.2rem !important;
}

#view-home .booth-section {
  display: none !important;
}

.home-cta-strip {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: .6rem clamp(1rem, 5vw, 5rem) 2.2rem;
}

#view-rules {
  min-height: calc(100vh - 86px);
  padding: clamp(1.4rem, 4vw, 4rem) clamp(1rem, 5vw, 5rem);
}

.rules-page {
  max-width: 1320px;
  margin: 0 auto;
}

.rules-hero {
  max-width: 920px;
  margin-bottom: 1.6rem;
}

.rules-hero h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  max-width: 1060px;
}

.rules-hero p {
  max-width: 840px;
  color: #f5e8ca;
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rule-card {
  min-height: 210px;
  padding: 1.25rem;
  border: 1px solid rgba(231,198,110,.34);
  border-radius: 20px;
  background: rgba(50,34,22,.93);
  box-shadow: 0 18px 50px rgba(0,0,0,.20);
}

.rule-card span {
  color: var(--gold);
  font-weight: 1000;
  letter-spacing: .12em;
}

.rule-card h2 {
  margin-top: .5rem;
  font-size: clamp(1.45rem, 2vw, 2.25rem);
}

.rule-card p {
  color: #dac7a5;
  margin-bottom: 0;
}

.rules-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

@media (max-width: 980px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }

  #view-home .hero-title-logo img {
    width: min(620px, 92vw) !important;
  }
}

@media (max-width: 640px) {
  .home-cta-strip,
  .rules-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-cta-strip .btn,
  .rules-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   V9 - Page d'accueil moins tassée + règles illustrées alternées
   ========================================================= */

/* Les boutons secondaires n'étaient pas désactivés, mais l'outline donnait un effet "grisé".
   On remet un rendu volontairement actif. */
.btn.secondary {
  background: linear-gradient(180deg, #f2cf73, #b66c32) !important;
  color: #21140c !important;
  border: 0 !important;
  box-shadow: 0 16px 30px rgba(0,0,0,.25) !important;
  opacity: 1 !important;
}

/* Accueil : moins comprimé que la V8, mais sans revenir au grand vide initial. */
#view-home .hero {
  min-height: calc(100vh - 150px) !important;
  grid-template-columns: minmax(430px, .82fr) minmax(620px, 1.18fr) !important;
  gap: clamp(2.4rem, 5vw, 6rem) !important;
  padding-top: clamp(2.4rem, 5vh, 5rem) !important;
  padding-bottom: clamp(2rem, 4vh, 4rem) !important;
}

#view-home .hero-title-logo img {
  width: min(760px, 48vw) !important;
  max-height: 250px !important;
}

#view-home .hero-slogan {
  width: min(380px, 28vw) !important;
  margin: .75rem 0 1.35rem !important;
}

#view-home .lead {
  max-width: 690px !important;
  font-size: clamp(1.08rem, 1.22vw, 1.32rem) !important;
}

#view-home .hero-actions {
  gap: 1rem !important;
  margin-top: 1.8rem !important;
}

#view-home .hero-visual img {
  min-height: 330px !important;
  object-fit: cover;
}

#view-home .cards-strip {
  padding-top: .2rem !important;
  padding-bottom: 3rem !important;
}

.home-cta-strip {
  display: none !important;
}

/* Nouvelle page de règles : une vraie page qui se lit au scroll. */
#view-rules {
  padding: 0 !important;
}

.rules-page-scroll {
  max-width: none !important;
  width: 100%;
}

.rules-hero-scroll {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);
}

.rules-hero-scroll h1 {
  max-width: 980px !important;
  font-size: clamp(3.4rem, 7.8vw, 8.4rem) !important;
  line-height: .86 !important;
}

.rules-hero-scroll p {
  max-width: 840px !important;
  color: #f5e8ca;
  font-size: clamp(1.08rem, 1.35vw, 1.34rem) !important;
}

.rules-scroll {
  display: grid;
  gap: 0;
}

.rule-scroll-step {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  min-height: min(720px, calc(100vh - 90px));
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 6vw, 7rem);
  border-top: 1px solid rgba(231,198,110,.18);
  background:
    radial-gradient(circle at 18% 28%, rgba(231,198,110,.07), transparent 38%),
    rgba(20, 12, 7, .12);
}

.rule-scroll-step:nth-child(even) {
  grid-template-columns: minmax(360px, 1.1fr) minmax(320px, .9fr);
  background:
    radial-gradient(circle at 82% 28%, rgba(231,198,110,.07), transparent 38%),
    rgba(50,34,22,.35);
}

.rule-scroll-step:nth-child(even) .rule-scroll-visual {
  order: 2;
}

.rule-scroll-step:nth-child(even) .rule-scroll-copy {
  order: 1;
}

.rule-scroll-copy {
  max-width: 720px;
}

.rule-scroll-copy span {
  display: inline-block;
  margin-bottom: .7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 1000;
  font-size: .86rem;
}

.rule-scroll-copy h2 {
  font-size: clamp(2.2rem, 4.2vw, 5rem) !important;
  line-height: .9 !important;
  letter-spacing: -.015em;
}

.rule-scroll-copy p {
  max-width: 690px;
  color: #f5e8ca;
  font-size: clamp(1.04rem, 1.25vw, 1.26rem);
  line-height: 1.58;
}

.rule-scroll-visual {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.8rem, 2vw, 1.4rem);
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(231,198,110,.32);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(239,226,191,.12), rgba(83,53,30,.44));
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
  transform: rotate(-.7deg);
}

.rule-scroll-step:nth-child(even) .rule-scroll-visual {
  transform: rotate(.7deg);
}

.rule-scroll-visual img {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(0,0,0,.30));
}

.visual-board img {
  width: min(720px, 100%);
  max-height: 420px;
  border-radius: 18px;
  background: #f7f0df;
}

.visual-cards img,
.visual-actions img,
.visual-duo img {
  width: min(190px, 30%);
  max-height: 280px;
}

.visual-actions img {
  width: min(210px, 31%);
}

.visual-duo img:nth-child(2) {
  transform: translateY(28px) rotate(3deg);
}

.visual-cards img:nth-child(2),
.visual-actions img:nth-child(2) {
  transform: translateY(-18px) rotate(2deg);
}

.visual-cards img:nth-child(3),
.visual-actions img:nth-child(3) {
  transform: translateY(24px) rotate(-3deg);
}

.rules-actions-scroll {
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem) 1rem clamp(3rem, 6vw, 6rem);
  margin: 0 !important;
}

/* Responsive */
@media (max-width: 1180px) {
  #view-home .hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  #view-home .hero-title-logo img {
    width: min(680px, 92vw) !important;
  }

  #view-home .hero-slogan {
    width: min(360px, 72vw) !important;
  }

  .rule-scroll-step,
  .rule-scroll-step:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .rule-scroll-step:nth-child(even) .rule-scroll-visual,
  .rule-scroll-step:nth-child(even) .rule-scroll-copy {
    order: initial;
  }

  .rule-scroll-visual {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  #view-home .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #view-home .hero-actions .btn {
    width: 100%;
  }

  .rules-hero-scroll h1 {
    font-size: clamp(2.8rem, 15vw, 4.8rem) !important;
  }

  .rule-scroll-step {
    padding: 2.2rem .9rem;
  }

  .rule-scroll-copy h2 {
    font-size: clamp(2rem, 12vw, 3.4rem) !important;
  }

  .rule-scroll-visual {
    border-radius: 20px;
    padding: .9rem;
    min-height: 220px;
    flex-wrap: wrap;
  }

  .visual-cards img,
  .visual-actions img,
  .visual-duo img {
    width: min(140px, 42%);
  }

  .visual-board img {
    max-height: 260px;
  }
}


/* =========================================================
   V10 - Règles façon formulaire PDF exporté en images
   ========================================================= */
#view-rules {
  padding: 0 !important;
  background:
    radial-gradient(circle at 20% 10%, rgba(231,198,110,.08), transparent 34%),
    linear-gradient(180deg, #2b1a10 0%, #160d08 100%);
}

.rules-page-scroll,
.rules-scroll,
.rules-hero-scroll,
.rule-scroll-step,
.rules-actions-scroll {
  display: initial;
}

.rules-form-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.rules-form-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 5.5rem) clamp(1rem, 5vw, 5rem) clamp(1.2rem, 3vw, 2.5rem);
}

.rules-form-hero h1 {
  max-width: 980px;
  font-size: clamp(3rem, 7.2vw, 7.6rem) !important;
  line-height: .88 !important;
}

.rules-form-hero p {
  max-width: 820px;
  color: #f5e8ca;
  font-size: clamp(1.05rem, 1.28vw, 1.3rem);
}

.rules-form-stack {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem);
}

.rules-form-sheet {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid rgba(231,198,110,.28);
  border-radius: 28px;
  background: rgba(50, 34, 22, .78);
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
}

.rules-form-sheet.reverse {
  grid-template-columns: minmax(520px, 1.28fr) minmax(300px, .72fr);
}

.rules-form-sheet.reverse .rules-form-copy {
  order: 2;
}

.rules-form-sheet.reverse .rules-form-image {
  order: 1;
}

.rules-form-copy {
  max-width: 560px;
  padding: clamp(.5rem, 2vw, 1.2rem);
}

.rules-form-copy span {
  display: inline-block;
  margin-bottom: .7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  font-weight: 1000;
}

.rules-form-copy h2 {
  font-size: clamp(2rem, 3.8vw, 4.7rem) !important;
  line-height: .9 !important;
  letter-spacing: -.015em;
}

.rules-form-copy p {
  color: #f5e8ca;
  font-size: clamp(1rem, 1.15vw, 1.2rem);
}

.rules-form-image {
  display: block;
  justify-self: center;
  width: min(760px, 100%);
  padding: clamp(.45rem, 1.2vw, .8rem);
  border-radius: 18px;
  background: #f3ead7;
  box-shadow: 0 22px 60px rgba(0,0,0,.36);
  transform: rotate(-.6deg);
  transition: transform .18s ease, filter .18s ease;
}

.rules-form-sheet.reverse .rules-form-image {
  transform: rotate(.6deg);
}

.rules-form-image:hover {
  transform: translateY(-3px) rotate(0deg);
  filter: brightness(1.02);
}

.rules-form-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
}

.rules-form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 clamp(1rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
}

@media (max-width: 1050px) {
  .rules-form-sheet,
  .rules-form-sheet.reverse {
    grid-template-columns: 1fr;
  }

  .rules-form-sheet.reverse .rules-form-copy,
  .rules-form-sheet.reverse .rules-form-image {
    order: initial;
  }

  .rules-form-copy {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .rules-form-hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.8rem) !important;
  }

  .rules-form-sheet {
    border-radius: 20px;
    padding: .8rem;
  }

  .rules-form-copy h2 {
    font-size: clamp(2rem, 11vw, 3.4rem) !important;
  }

  .rules-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rules-form-actions .btn {
    width: 100%;
  }
}


/* =========================================================
   V12 - Lien d'invitation + message de fin de partie
   ========================================================= */
.online-lobby .lobby-link-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  margin: .35rem 0;
}

.lobby-copy-button {
  padding: .55rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.online-lobby .lobby-copy-feedback {
  min-height: 1.2em;
  color: #ffde75;
  font-weight: 800;
  font-size: .92rem;
}

.postgame-overlay {
  position: absolute;
  inset: 0;
  z-index: 79;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 10, 5, .74);
  backdrop-filter: blur(2px);
}

.postgame-overlay[hidden] {
  display: none;
}

.postgame-card {
  position: relative;
  width: min(980px, 94vw);
  max-height: min(92vh, 780px);
  overflow: auto;
  padding: 24px;
  border: 2px solid rgba(231, 198, 110, .72);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(55,32,18,.98), rgba(34,18,10,.98));
  box-shadow: 0 24px 90px rgba(0, 0, 0, .62);
}

.postgame-grid {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}

.postgame-visual {
  display: grid;
  place-items: center;
}

.postgame-visual img {
  width: min(340px, 100%);
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.42));
}

.postgame-copy h2 {
  margin: .35rem 0 .8rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.postgame-copy p {
  max-width: 52ch;
}

.signup-form-inline {
  margin-top: 1.15rem;
}

.postgame-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.15rem;
}

.postgame-socials a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .8rem;
  border: 1px solid rgba(231,198,110,.28);
  border-radius: 999px;
  background: rgba(20,12,7,.32);
  color: #f4e5c9;
  font-weight: 900;
  text-decoration: none;
}

.postgame-socials a:hover {
  transform: translateY(-1px);
  background: rgba(231,198,110,.08);
}

.postgame-socials img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.postgame-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.2rem;
}

@media (max-width: 780px) {
  .online-lobby .lobby-link-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lobby-copy-button {
    justify-self: start;
  }

  .postgame-grid {
    grid-template-columns: 1fr;
  }

  .postgame-card {
    padding: 20px 16px;
  }
}


/* =========================================================
   V14 - Victoire : titre sur deux lignes et bouton inutile supprimé
   ========================================================= */
#victoryTitle {
  display: grid;
  gap: .12em;
  justify-items: center;
  line-height: .96;
}

.victory-title-player {
  display: block;
  color: #ffde75;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

.victory-title-phrase {
  display: block;
  color: #ffde75;
  font-size: clamp(1.75rem, 4vw, 3.45rem);
}


/* =========================================================
   V16 - Victoire : pas de barre de défilement
   ========================================================= */
.victory-card {
  width: min(850px, 92vw) !important;
  max-height: none !important;
  overflow: hidden !important;
  padding: 14px 18px 14px !important;
}

#victoryTitle {
  gap: .03em !important;
  margin: 0 auto 2px !important;
  line-height: .92 !important;
}

.victory-title-player {
  font-size: clamp(2rem, 4.2vw, 3.45rem) !important;
}

.victory-title-phrase {
  max-width: 780px;
  font-size: clamp(1rem, 2.3vw, 1.8rem) !important;
  line-height: .95 !important;
}

.victory-stage {
  height: 250px !important;
  margin: 0 auto 6px !important;
}

.victory-podium-slot {
  height: 250px !important;
}

.victory-podium-piece {
  height: 250px !important;
}

.victory-podium-slot-1 .victory-avatar { bottom: 192px !important; width: 92px !important; height: 92px !important; }
.victory-podium-slot-2 .victory-avatar { bottom: 90px !important; width: 78px !important; height: 78px !important; }
.victory-podium-slot-3 .victory-avatar { bottom: 104px !important; width: 80px !important; height: 80px !important; }
.victory-podium-slot-4 .victory-avatar { bottom: 122px !important; width: 82px !important; height: 82px !important; }
.victory-podium-slot-5 .victory-avatar { bottom: 140px !important; width: 84px !important; height: 84px !important; }
.victory-podium-slot-6 .victory-avatar { bottom: 220px !important; width: 92px !important; height: 92px !important; }

.victory-podium-slot.victory-winner-slot .victory-avatar,
.victory-podium-slot-1.victory-winner-slot .victory-avatar,
.victory-podium-slot-2.victory-winner-slot .victory-avatar,
.victory-podium-slot-3.victory-winner-slot .victory-avatar,
.victory-podium-slot-4.victory-winner-slot .victory-avatar,
.victory-podium-slot-5.victory-winner-slot .victory-avatar,
.victory-podium-slot-6.victory-winner-slot .victory-avatar {
  bottom: 120px !important;
  width: 96px !important;
  height: 96px !important;
}

.victory-ranking {
  gap: 6px !important;
  margin-top: 4px !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
}

.victory-rank {
  padding: 5px 8px !important;
  min-height: 44px !important;
}

.victory-rank img {
  width: 32px !important;
  height: 32px !important;
}

.victory-actions {
  margin-top: 8px !important;
}

.victory-actions .action-button {
  min-height: 42px !important;
}

@media (max-height: 760px) {
  .victory-overlay {
    padding: 10px !important;
  }

  .victory-card {
    width: min(820px, 92vw) !important;
    padding: 12px 16px !important;
  }

  .victory-title-player {
    font-size: clamp(1.9rem, 4vw, 3rem) !important;
  }

  .victory-title-phrase {
    font-size: clamp(1.15rem, 2.7vw, 2rem) !important;
  }

  .victory-stage {
    height: 225px !important;
  }

  .victory-podium-slot,
  .victory-podium-piece {
    height: 225px !important;
  }

  .victory-podium-slot.victory-winner-slot .victory-avatar,
  .victory-podium-slot-1.victory-winner-slot .victory-avatar,
  .victory-podium-slot-2.victory-winner-slot .victory-avatar,
  .victory-podium-slot-3.victory-winner-slot .victory-avatar,
  .victory-podium-slot-4.victory-winner-slot .victory-avatar,
  .victory-podium-slot-5.victory-winner-slot .victory-avatar,
  .victory-podium-slot-6.victory-winner-slot .victory-avatar {
    bottom: 104px !important;
    width: 88px !important;
    height: 88px !important;
  }
}

.victory-rematch-status {
  margin-top: .65rem;
  color: #f4e5c9;
  font-weight: 900;
  text-align: center;
  font-size: .92rem;
}

/* Lobby invité : affichage sans lien d'invitation */
.guest-waiting-panel {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .55rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed rgba(231, 198, 110, .38);
  border-radius: 18px;
  background: rgba(0, 0, 0, .14);
}

.guest-waiting-panel strong {
  color: #ffde75;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.guest-waiting-panel p {
  margin: 0;
  color: #f5e8ca;
  font-weight: 900;
}

.guest-waiting-panel small {
  color: #bda987;
  font-weight: 800;
}

.guest-waiting-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(231, 198, 110, .65);
  border-radius: 999px;
  color: #ffde75;
  background: rgba(231, 198, 110, .08);
  font-size: 1.8rem;
  font-weight: 1000;
  animation: guest-waiting-pulse 1s ease-in-out infinite alternate;
}

.guest-waiting-players {
  justify-content: center;
  margin-top: .4rem;
}

@keyframes guest-waiting-pulse {
  from { opacity: .55; transform: scale(.96); }
  to { opacity: 1; transform: scale(1.04); }
}


.office-notice {
  position: fixed;
  left: 50%;
  top: 88px;
  z-index: 9999;
  max-width: min(520px, calc(100vw - 32px));
  padding: .85rem 1.15rem;
  color: #1f140d;
  border: 2px solid rgba(42, 27, 16, .7);
  border-radius: 999px;
  background: #ffde75;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
  font-weight: 1000;
  text-align: center;
  transform: translate(-50%, -18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.office-notice.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
