/* Accueil : scène de tirage sur la table de chêne. La mécanique est dans assets/js/draw.js. */

.draw-noscript { max-width: 760px; margin: 16px auto; text-align: center; font-weight: 700; }

.draw {
	--slot-w: clamp(76px, 20vw, 128px);
	--ease: cubic-bezier(.4, 0, .2, 1);
	position: relative;
	display: flex;
	flex-direction: column;
	height: 600px;
	font-family: var(--font-serif);
	padding: 1.2% 6% .6%;                        /* garde le contenu à l'intérieur du bord sculpté */
	overflow: hidden;
	scroll-margin: 8px 0;
	transition: height .5s var(--ease);
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
}
@media (max-width: 700px) and (orientation: portrait) {
	.draw { height: 520px; padding: 8px 6% 4px; }
}
.draw.is-playing { height: clamp(560px, calc(100vh - 16px), 740px); height: clamp(560px, calc(100svh - 16px), 740px); }
.draw [hidden] { display: none !important; }

/* La table, détourée, posée sur le fond de la page (image étirée au format de la scène) */
.stage { position: relative; width: calc(100% - 24px); max-width: 960px; margin: 26px auto 0; }
.stage::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: -24px; height: 68px; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 55, 15, .34), rgba(90, 55, 15, 0)); }
.draw::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url("../img/celtic/table-large-detouree.webp") center / 100% 100%; pointer-events: none; }
.draw__sprig { position: absolute; top: 2%; z-index: 1; width: 19%; height: auto; filter: drop-shadow(0 8px 8px rgba(40, 24, 4, .4)); pointer-events: none; }
.draw__sprig--left { left: 4.5%; rotate: 8deg; }
.draw__sprig--right { right: 4.5%; transform: scaleX(-1); rotate: -8deg; }
@media (max-width: 700px) and (orientation: portrait) {
	.draw::before { background-image: url("../img/celtic/table-haute-detouree.webp"); }   /* après la règle générale */
	.draw__sprig { top: .2%; width: 25%; }
	.draw__sprig--left { left: 0; }
	.draw__sprig--right { right: 0; }
}
@media (max-height: 520px) { .draw__sprig { width: 14%; } }
/* les voiles sombres suivent le contour de la table */
.draw.is-meeting::after, .boom-dim { -webkit-mask: url("../img/celtic/table-large-detouree.webp") 0 0 / 100% 100%; mask: url("../img/celtic/table-large-detouree.webp") 0 0 / 100% 100%; }
@media (max-width: 700px) and (orientation: portrait) {
	.draw.is-meeting::after, .boom-dim { -webkit-mask-image: url("../img/celtic/table-haute-detouree.webp"); mask-image: url("../img/celtic/table-haute-detouree.webp"); }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Ouverture : logo au centre de la table, puis arrivée des bourses ---------- */
.draw__logo { position: absolute; left: 50%; top: 50%; z-index: 7; display: flex; flex-direction: column; align-items: center; width: max-content; padding: 30px 54px; translate: -50% -50%; opacity: 0; pointer-events: none; }
.draw__logo::before { content: ""; position: absolute; inset: -18%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 247, 218, .96), rgba(255, 236, 186, .7) 55%, rgba(255, 232, 170, 0)); }
.draw__logo img { width: clamp(150px, 26vw, 220px); height: auto; }
.draw__logo span { margin-top: 4px; color: #1d4023; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.1; white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 240, 205, .9); }
.draw[data-step="intro"] .draw__guide, .draw[data-step="intro"] .pouch { visibility: hidden; }

/* ---------- Consigne ---------- */
.draw__guide { position: relative; z-index: 5; min-height: 92px; padding-top: 14px; text-align: center; pointer-events: none; }
.draw__title { margin: 0; color: #17361c; font-weight: 700; font-size: clamp(1.2rem, 3.8vw, 1.85rem); text-shadow: 0 1px 0 rgba(255, 236, 198, .85), 0 0 14px rgba(255, 233, 190, .9), 0 0 4px rgba(255, 233, 190, .9); }
.draw__title:empty { display: none; }
.draw__guide.is-new > * { animation: guideIn .45s var(--ease) both; }
@keyframes guideIn { from { opacity: 0; transform: translateY(6px); } }
/* Tirage : plus de titre, juste la place du bord sculpté au-dessus des emplacements */
.draw[data-step="pour"] .draw__guide, .draw[data-step="choose"] .draw__guide { min-height: 34px; padding-top: 0; }

/* Cartouche vert : titres du choix et du mélange, message « Tirez 3 Runes » */
.draw[data-step="invite"] .draw__title, .draw[data-step="shake"] .draw__title, .draw__prompt {
	position: relative; top: var(--title-drop, 46px); display: inline-block; padding: .28em 1em .38em;
	border: 2px solid #e3c98c; border-radius: 8px; background: linear-gradient(180deg, #2c5a32, #17361c);
	color: #fff6e0; font-weight: 700; font-size: clamp(1.15rem, 3.4vw, 1.6rem); line-height: 1.2; white-space: nowrap; text-shadow: 0 2px 3px rgba(0, 0, 0, .45);
	box-shadow: 0 10px 18px -10px rgba(40, 22, 4, .8), inset 0 0 0 1px rgba(10, 28, 14, .6);
}

/* Invitation à tirer : en bas du plateau, sa place est réservée pendant le versement */
.draw__prompt { position: absolute; top: auto; bottom: 9.5%; left: 50%; z-index: 6; margin: 0; translate: -50% 0; visibility: hidden; pointer-events: none; }
.draw__prompt.is-shown { visibility: visible; animation: promptIn .65s cubic-bezier(.2, 1.6, .4, 1) both, promptPulse 2.6s .8s ease-in-out infinite; }
.draw__prompt.is-leaving { visibility: visible; animation: promptOut .32s cubic-bezier(.5, -.4, .8, .6) forwards; }
@keyframes promptIn { from { opacity: 0; transform: translateY(26px) scale(.55); } }
@keyframes promptOut { to { opacity: 0; transform: translateY(26px) scale(.55); } }
@keyframes promptPulse { 50% { transform: scale(1.05); } }

/* ---------- Emplacements : anneaux de bois sculpté (l'intitulé n'est lu que par les lecteurs d'écran) ---------- */
.slots { display: none; position: relative; z-index: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 620px; margin: 0 auto; padding: 4px 0 0; list-style: none; }
.draw.has-slots .slots { display: grid; animation: guideIn .5s var(--ease) both; }
.slot { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: calc(var(--slot-w) * 1.28); }
.slot__frame { order: -1; position: relative; width: var(--slot-w); aspect-ratio: 400 / 450; margin: calc(var(--slot-w) * .05) 0 calc(var(--slot-w) * .04); }
.slot__frame::before { content: ""; position: absolute; left: 48%; top: 47%; width: 122%; aspect-ratio: 360 / 366; translate: -50% -50%; background: url("../img/celtic/anneau.webp") center / contain no-repeat; filter: drop-shadow(0 4px 4px rgba(70, 36, 6, .45)); }
.slot__frame::after { content: ""; position: absolute; left: 48%; top: 47%; width: 76%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; }
.slot.is-next .slot__frame::after { background: radial-gradient(closest-side, rgba(255, 244, 205, .75), rgba(255, 226, 150, .25)); animation: nextSlot 1.5s ease-in-out infinite; }
@keyframes nextSlot { 50% { box-shadow: 0 0 22px 10px rgba(255, 236, 170, .85); } }
.slot__frame img { position: absolute; inset: 12%; z-index: 1; width: 76%; height: 76%; }   /* 76 % : même valeur que STONE_FIT dans draw.js */
.slot__frame img.is-lit { animation: engraving 1.6s ease-out; }
@keyframes engraving {
	30% { filter: drop-shadow(0 0 14px rgba(255, 224, 140, .95)) drop-shadow(0 0 4px rgba(255, 140, 70, .9)) brightness(1.12) saturate(1.35); }
}

/* ---------- Table : bourses, galets, feuilles ---------- */
.draw__table { position: relative; flex: 1; min-height: 0; }
.pouch {
	position: absolute; left: 50%; top: 50%; z-index: 4;
	width: min(310px, 82%); max-height: 100%; aspect-ratio: 1;
	padding: 0; border: 0; background: none; color: inherit;
	transform: translate(-50%, -50%);
}
/* Au départ, trois bourses côte à côte */
.pouch.is-offered { width: min(270px, 34%); top: 44%; }
.pouch.is-offered.pouch--verte { left: 18%; }
.pouch.is-offered.pouch--bleue { left: 82%; }
@media (max-width: 700px) and (orientation: portrait) {
	/* sur la table en hauteur : deux bourses en haut, une en bas */
	.pouch.is-offered { width: min(210px, 54%); }
	.pouch.is-offered.pouch--verte { left: 26%; top: 29%; }
	.pouch.is-offered.pouch--bleue { left: 74%; top: 29%; }
	.pouch.is-offered.pouch--brune { top: 66%; }
	.draw { --title-drop: 40px; }
}
.pouch.is-offered .pouch__body { transition: translate .25s var(--ease), filter .25s; }
.pouch.is-offered:hover .pouch__body, .pouch.is-offered:focus-visible .pouch__body { translate: 0 -10px; filter: brightness(1.08) drop-shadow(0 0 16px rgba(255, 240, 190, .95)); }
.pouch.is-gone { pointer-events: none; }
.pouch.is-gone .pouch__halo { display: none; }
.pouch:disabled { cursor: default; }
.pouch:not(:disabled) { cursor: pointer; }
.pouch:focus-visible { outline: 3px solid #fff6de; outline-offset: 2px; border-radius: 40%; }
.pouch__body { position: absolute; inset: 0; transform-origin: 50% 85%; }
/* ombre de contact sur le bois */
.pouch__body::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 9%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 34, 4, .6), rgba(70, 34, 4, 0)); }
.pouch__img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; }
.pouch__img--open { opacity: 0; }
.pouch.is-open .pouch__img--open { opacity: 1; }
.pouch.is-open .pouch__img--closed { opacity: 0; }
.pouch.is-open .pouch__body::before { display: none; }
.draw[data-step="invite"] .pouch__body { animation: breathe 3.4s ease-in-out infinite; }
.draw[data-step="invite"] .pouch--brune .pouch__body { animation-delay: -1.1s; }
.draw[data-step="invite"] .pouch--bleue .pouch__body { animation-delay: -2.3s; }
@keyframes breathe { 50% { transform: scale(1.035, 1.025); } }
.pouch__halo { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 246, 214, .95), rgba(255, 232, 165, .45) 55%, rgba(255, 232, 165, 0)); opacity: 0; pointer-events: none; }
.draw[data-step="shake"] .pouch__halo { animation: halo 1.15s ease-in-out infinite alternate; }
@keyframes halo { from { opacity: .15; transform: scale(.75); } to { opacity: .95; transform: scale(1.08); } }

/* petits éclats quand les pierres s'entrechoquent */
.clink { position: absolute; z-index: 5; width: 9px; height: 8px; margin: -4px; border-radius: 48% 52% 50% 50%; background: radial-gradient(circle at 35% 30%, #fff, #cfc8b8); box-shadow: 0 2px 3px rgba(60, 36, 8, .4); pointer-events: none; }

/* galets qui sautent de la bourse (derrière elle) et lueurs qui l'entourent pendant le mélange */
.hopper { position: absolute; z-index: 3; height: auto; pointer-events: none; }
.spark { position: absolute; z-index: 5; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: radial-gradient(closest-side, #fff 35%, #fff3b8 62%, rgba(255, 220, 110, 0)); box-shadow: 0 0 16px 7px rgba(255, 246, 190, .9), 0 0 34px 12px rgba(255, 205, 70, .55); pointer-events: none; }

/* feuilles qui passent */
.leaves { position: absolute; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; }
.leaves i { position: absolute; left: -30px; width: 18px; height: 10px; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #a3bf6c, #3f6a2a); opacity: 0; }
.draw:not([data-step="intro"]) .leaves i { animation: drift 11s linear infinite; }   /* sur tout le tirage, après le logo */
.leaves i:nth-child(1) { top: 8%; }
.leaves i:nth-child(2) { top: 62%; animation-delay: 2.1s !important; animation-duration: 14s !important; }
.leaves i:nth-child(3) { top: 30%; animation-delay: 4.4s !important; scale: .75; }
.leaves i:nth-child(4) { top: 80%; animation-delay: 6.6s !important; animation-duration: 13s !important; scale: 1.2; }
.leaves i:nth-child(5) { top: 46%; animation-delay: 8.8s !important; scale: .9; }
@keyframes drift {
	0% { opacity: 0; transform: translate(0, 0) rotate(0); }
	10%, 85% { opacity: .9; }
	50% { transform: translate(min(50vw, 480px), 60px) rotate(260deg); }
	100% { opacity: 0; transform: translate(min(110vw, 1010px), 20px) rotate(560deg); }
}

/* ---------- Les 24 galets ---------- */
.stones { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pebble { position: absolute; left: 0; top: 0; padding: 0; border: 0; background: none; border-radius: 45%; cursor: default; pointer-events: none; will-change: transform; }
.pebble img { position: absolute; left: 50%; top: 50%; width: 118%; max-width: none; height: auto; translate: -49% -48%; transition: scale .18s ease, translate .18s ease; user-select: none; pointer-events: none; }
.draw[data-step="choose"] .pebble:not(:disabled) { cursor: pointer; pointer-events: auto; }
/* lueur dorée sous la rune survolée, visée au clavier ou touchée */
.pebble::before { content: ""; position: absolute; inset: -38%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 230, 1) 38%, rgba(255, 226, 110, .85) 62%, rgba(255, 190, 50, 0)); opacity: 0; scale: .6; transition: opacity .22s ease, scale .22s ease; pointer-events: none; }
@media (hover: hover) {
	.draw[data-step="choose"] .pebble:not(:disabled):hover { z-index: 5; }
	.draw[data-step="choose"] .pebble:not(:disabled):hover::before { opacity: 1; scale: 1; animation: pebbleGlow 1.3s ease-in-out infinite; }
	.draw[data-step="choose"] .pebble:not(:disabled):hover img { scale: 1.14; translate: -49% -54%; filter: drop-shadow(0 0 9px rgba(255, 232, 140, 1)) brightness(1.08); }
}
.draw[data-step="choose"] .pebble:not(:disabled):active::before, .draw[data-step="choose"] .pebble:focus-visible::before { opacity: 1; scale: 1; }
@keyframes pebbleGlow { 50% { scale: 1.16; opacity: .78; } }
.pebble:focus-visible { z-index: 5; outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--green); }
.pebble:focus-visible img { scale: 1.1; filter: drop-shadow(0 0 9px rgba(255, 232, 140, 1)); }

/* explosion de lumière au retournement (explode() dans draw.js) */
.boom-dim { position: absolute; inset: 0; z-index: 17; pointer-events: none; }
.boom-rays, .boom-flash, .boom-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.boom-rays { z-index: 18; background: repeating-conic-gradient(rgba(255, 244, 185, .95) 0 4deg, rgba(255, 220, 110, 0) 9deg 14deg, rgba(255, 232, 150, .75) 17deg 19deg, rgba(255, 220, 110, 0) 24deg 30deg);
	-webkit-mask-image: radial-gradient(closest-side, #000 38%, transparent); mask-image: radial-gradient(closest-side, #000 38%, transparent); }
.boom-flash { z-index: 19; background: radial-gradient(closest-side, #fff 24%, rgba(255, 248, 205, .96) 42%, rgba(255, 205, 75, .7) 66%, rgba(255, 160, 30, 0)); }
.boom-ring { z-index: 19; border: 3px solid #fff3c4; box-shadow: 0 0 18px 6px rgba(255, 214, 100, .85), inset 0 0 16px 4px rgba(255, 214, 100, .7); }
.spark--boom { z-index: 22; }

/* Galet en vol vers son emplacement */
.flyer { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; will-change: transform; }
.flyer img { display: block; width: 100%; height: 100%; }

/* Fil de lumière reliant les trois runes */
.thread { position: absolute; left: 0; top: 0; z-index: 1; overflow: visible; pointer-events: none; }
.thread path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: thread 1.1s var(--ease) forwards; }
.thread .thread__glow { stroke: rgba(255, 232, 150, .85); stroke-width: 12; filter: blur(5px); }
.thread .thread__core { stroke: #fffbea; stroke-width: 2.5; }
@keyframes thread { to { stroke-dashoffset: 0; } }

/* ---------- Actions ---------- */
.draw__actions { position: relative; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 12px; }
/* ---------- Réunion : trois runes mises en lumière, puis le bouton ---------- */
.draw.is-meeting { --slot-w: clamp(86px, 23vw, 165px); }
.draw.is-meeting .draw__table { display: none; }
/* pénombre autour des runes pour faire ressortir la lumière */
.draw.is-meeting::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 62% 52% at 50% 48%, rgba(48, 22, 0, 0) 20%, rgba(38, 18, 0, .62) 100%); pointer-events: none; animation: dusk 1.2s ease both; }
@keyframes dusk { from { opacity: 0; } }
.draw.is-meeting .draw__guide { display: none; }
.draw.is-meeting .slots { position: absolute; top: 42%; left: 50%; width: min(700px, 80%); max-width: none; margin: 0; padding: 0; translate: -50% -50%; }
.draw.is-meeting .slot { min-height: 0; justify-content: center; }
.draw.is-meeting .draw__actions { position: absolute; top: 74%; left: 11%; right: 11%; justify-content: center; translate: 0 -50%; }

/* halo tournant et lueur sous chaque rune révélée */
.aura { position: absolute; left: 48%; top: 47%; z-index: -1; width: 205%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; pointer-events: none;
	background: repeating-conic-gradient(rgba(255, 236, 160, .9) 0 6deg, rgba(255, 236, 160, 0) 11deg 19deg, rgba(255, 236, 160, .9) 24deg 30deg);
	-webkit-mask-image: radial-gradient(closest-side, #000 48%, transparent); mask-image: radial-gradient(closest-side, #000 48%, transparent);
	animation: auraIn 1s ease both, auraSpin 16s linear infinite; }
.slot:nth-child(2) .aura { animation-direction: normal, reverse; }
@keyframes auraIn { from { opacity: 0; scale: .35; } }
@keyframes auraSpin { to { rotate: 360deg; } }
.draw.is-meeting .slot.is-revealed .slot__frame::after { background: radial-gradient(closest-side, rgba(255, 248, 215, .95), rgba(255, 214, 110, .55) 60%, rgba(255, 214, 110, 0)); animation: heart 2.4s ease-in-out infinite; }
@keyframes heart { 0%, 100% { scale: .92; opacity: .75; } 50% { scale: 1.2; opacity: 1; } }
/* les runes flottent et leur gravure s'embrase, chacune à son rythme */
.draw.is-meeting .slot__frame img { animation: float 3.2s ease-in-out infinite, ember 3.2s ease-in-out infinite; }
.draw.is-meeting .slot:nth-child(2) .slot__frame img { animation-delay: -1.1s; }
.draw.is-meeting .slot:nth-child(3) .slot__frame img { animation-delay: -2.2s; }
@keyframes float { 0%, 100% { translate: 0 3%; } 50% { translate: 0 -7%; } }
@keyframes ember { 0%, 100% { filter: drop-shadow(0 5px 5px rgba(60, 28, 0, .35)); } 50% { filter: drop-shadow(0 0 13px rgba(255, 226, 140, .95)) brightness(1.1) saturate(1.4); } }
.spark--meet { z-index: 8; }
.spark--small { width: 10px; height: 10px; margin: -5px; box-shadow: 0 0 9px 4px rgba(255, 240, 180, .8); }

/* La publicité reste à distance des zones à toucher */
.page-home .stage + .ad { margin-top: 30px; }

@media (min-width: 701px) {
	.draw.is-playing { --slot-w: clamp(96px, 13vh, 116px); }
	.draw.is-meeting { --slot-w: clamp(120px, 22vh, 165px); }
}
/* Grand écran : consigne sous le bord de la table, galets à l'écart des courbes de l'ovale */
@media (min-width: 701px) and (min-height: 521px) {
	.draw__guide { padding-top: 38px; min-height: 112px; }
	.draw[data-step="pour"] .draw__guide, .draw[data-step="choose"] .draw__guide { min-height: 56px; padding-top: 0; }
	.draw.has-slots .draw__table { margin: 0 8% 66px; }
}

/* Écrans bas (téléphone tenu à l'horizontale) : tout tient dans la hauteur, emplacements à gauche, table à droite */
@media (max-height: 520px) {
	.draw.is-playing { height: calc(100vh - 12px); height: calc(100svh - 12px); min-height: 320px; --slot-w: 66px; }
	.draw.is-playing.is-meeting { --slot-w: 76px; }
	.draw__guide { min-height: 64px; padding-top: 6px; }
	.draw__title { font-size: 1.1rem; }
	.draw__logo img { width: 110px; }
	.draw__logo span { font-size: 2rem; }
	.draw[data-step="pour"] .draw__guide, .draw[data-step="choose"] .draw__guide { min-height: 14px; padding-top: 0; }
	.draw.is-playing .pouch:not(.is-offered) { width: min(200px, 45%); }
	.draw:not(.is-playing) { height: calc(100vh - 12px); height: calc(100svh - 12px); min-height: 300px; }
	.pouch.is-offered { width: min(210px, 30%); }
	.draw.is-playing .draw__actions { gap: 6px; }
	.draw.is-playing .btn { padding-block: .45rem; }
}
@media (max-height: 520px) and (min-width: 560px) {
	.draw.is-playing.has-slots:not(.is-meeting) { display: grid; grid-template-columns: 264px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; }
	.draw.has-slots:not(.is-meeting) .draw__guide, .draw.has-slots:not(.is-meeting) .draw__actions { grid-column: 1 / -1; }
	.draw.has-slots:not(.is-meeting) .slots { grid-column: 1; grid-row: 2; align-self: center; }
	.draw.has-slots .draw__table { grid-column: 2; grid-row: 2; margin: 16px 6% 24px 0; }
	.draw.has-slots:not(.is-meeting) .draw__actions { grid-row: 3; }
}
@media (max-width: 380px) {
	.draw { --slot-w: 72px; }
	.draw.is-meeting { --slot-w: 80px; }
}

/* Table en hauteur : les galets restent à l'intérieur de l'arrondi du bas */
@media (max-width: 700px) and (orientation: portrait) {
	.draw.has-slots .draw__table { margin: 0 4% 50px; }
	.draw[data-step="pour"] .draw__guide, .draw[data-step="choose"] .draw__guide { min-height: 50px; }   /* emplacements sous le bord sculpté */
	.draw.is-meeting { --slot-w: min(27vw, 150px); }
	.draw.is-meeting .slots { top: 40%; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3vh; width: 82%; }
	.draw.is-meeting .slot:nth-child(3) { grid-column: 1 / -1; }
	.draw.is-meeting .draw__actions { top: 75%; left: 11%; right: 11%; }
	.draw.is-meeting .btn.btn--final { padding-left: 1rem; padding-right: 3.5rem; font-size: 1rem; }
	.draw__prompt { bottom: 7.5%; }
	.draw.has-slots:not(.is-meeting) .slots { max-width: 88%; --slot-w: min(19vw, 120px); }   /* anneaux à l'intérieur du bord sculpté */
}
@media (max-width: 380px) {
	.draw__title { font-size: 1.12rem; }
	.draw.is-meeting .btn.btn--final { font-size: .88rem; }
	.draw[data-step="invite"] .draw__title, .draw[data-step="shake"] .draw__title, .draw__prompt { padding-inline: .8em; font-size: 1.08rem; }
}

/* Tablette : la table est plus ronde, les galets s'écartent davantage du bord */
@media (min-width: 701px) and (max-width: 900px) and (min-height: 521px) {
	.draw.has-slots .draw__table { margin: 0 11% 76px; }
	.draw[data-step="pour"] .draw__guide, .draw[data-step="choose"] .draw__guide { min-height: 82px; }
	.draw.has-slots:not(.is-meeting) .slots { max-width: 520px; }
	.draw.is-meeting { --slot-w: 138px; }
	.draw.is-meeting .slots { width: min(600px, 78%); }
}
/* Écrans bas : titre et bourses ajustés */
@media (max-height: 520px) {
	.draw { --title-drop: 24px; }
	.draw[data-step="invite"] .draw__title, .draw[data-step="shake"] .draw__title, .draw__prompt { font-size: 1.12rem; }
	.draw.is-playing.is-meeting { --slot-w: 80px; }
	.draw.is-meeting .slots { top: 41%; width: min(520px, 76%); }
	.draw.is-meeting .draw__actions { top: 76%; }
	.draw.is-meeting .btn.btn--final { padding-block: .58rem; font-size: 1.08rem; }
	.draw__prompt { bottom: auto; top: 72%; left: 23%; }
	.pouch.is-offered { top: 49%; }
}

/* ---------- Version courte : ?motion=reduce ---------- */
.draw.is-reduced, .draw.is-reduced *, .draw.is-reduced *::before, .draw.is-reduced *::after { animation: none !important; transition: none !important; }
.draw.is-reduced .leaves { display: none; }
.draw.is-reduced .draw__prompt.is-leaving { visibility: hidden; }
.draw.is-reduced .thread path { stroke-dashoffset: 0; }
