:root {
	--card-top: #ff68ad;
	--card-bottom: #ef0870;
	--card-rotation: 0deg;
}
::placeholder {color: #777;}
.mode-couple {
	--card-top: #ff5ca8;
	--card-bottom: #e90066;
	--card-rotation: -2deg;
}

.mode-amis {
	--card-top: #27bdff;
	--card-bottom: #006bdc;
	--card-rotation: 1.5deg;
}

.mode-famille {
	--card-top: #a0f921;
	--card-bottom: #42bd00;
	--card-rotation: 1deg;
}

.mode-soiree {
	--card-top: #cc45ff;
	--card-bottom: #8000d4;
	--card-rotation: -1.5deg;
}


.contenair_head .site_head .inner_head .logo {width:300px; height:155px; left: calc(50% - 150px); z-index: 20; animation: rubberBand 1s 1s ease-out; opacity:1; transition:all .3s;}
body.screen-players .contenair_head .site_head .inner_head .logo, body.screen-game .contenair_head .site_head .inner_head .logo, body.screen-results .contenair_head .site_head .inner_head .logo {width: 225px; height: 116px; left: calc(50% - 112.5px);}
.osepiko-slogan {width: 90%; margin: 0 auto; transform-origin: center; animation: slogan-arrive .65s 2.3s cubic-bezier(.25, 1.5, .5, 1) both;}
.osepiko-slogan img {display: block; width: 100%; height: auto;}
.game-modes {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 92%; max-width: 98%; margin: 0 auto; padding: 12px;}
.game-mode {position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; max-width: 180px; aspect-ratio: 1.15; padding: 12px 8px; border: 6px solid #fff; border-radius: 24% 17% 22% 15% / 20% 24% 18% 22%; background: linear-gradient(155deg,var(--card-top) 0%,var(--card-bottom) 100%); box-shadow:0 7px 0 rgba(70, 0, 75, .25), 0 12px 16px rgba(70, 0, 75, .20), inset 0 5px 8px rgba(255, 255, 255, .30), inset 0 -5px 8px rgba(0, 0, 0, .10); cursor: pointer; -webkit-tap-highlight-color: transparent; transition:transform .22s cubic-bezier(.2, 1.5, .4, 1),	box-shadow .22s ease;}
.game-mode::before {content: ""; position: absolute; top: 5%; left: 8%; width: 78%; height: 35%; border-radius: 50% 50% 45% 45%; background: linear-gradient(180deg, rgba(255, 255, 255, .30), 	rgba(255, 255, 255, 0)); pointer-events: none;}
.game-mode span {position: relative; 	z-index: 1; 	font-family: 'Lilita One', sans-serif; 	font-size: clamp(22px, 5vw, 30px); 	color: #fff; text-shadow: 2px 3px 0 rgba(70, 0, 90, .45), 0 0 2px rgba(255, 255, 255, .3);}
.game-mode img {position: relative; z-index: 1; width: 75%; height: auto; margin-bottom: 8px;}
.mode-couple {border-radius: 23% 17% 26% 15% / 20% 25% 18% 24%; animation: slogan-arrive .65s 2.3s cubic-bezier(.45, 2.3, .5, 1) both; transform: rotate(-2deg) !important;}
.mode-amis {border-radius: 16% 25% 18% 23% / 24% 17% 26% 19%; animation: slogan-arrive .65s 2.3s cubic-bezier(.25, 2.6, .6, 1) both; transform: rotate(1.5deg) !important;}
.mode-famille {border-radius: 21% 15% 25% 19% / 17% 24% 19% 26%; animation: slogan-arrive .65s 2.3s cubic-bezier(.35, 2.7, .7, 1) both; transform: rotate(1deg) !important;}
.mode-soiree {border-radius: 17% 24% 15% 27% / 25% 18% 24% 17%; animation: slogan-arrive .65s 2.3s cubic-bezier(.4, 2.8, .8, 1) both; transform: rotate(-1.5deg) !important;}
.game-mode:active {transform: rotate(var(--card-rotation)) translateY(4px) scale(.97) !important; box-shadow:0 2px 0 rgba(70, 0, 75, .25), 0 4px 8px rgba(70, 0, 75, .15);}
.game-modes.is-leaving {pointer-events: none;}
.game-modes.is-leaving .game-mode {animation-duration: .45s; animation-delay:0.35s !important; animation-timing-function: cubic-bezier(.55, 0, 1, .65);animation-fill-mode: forwards;}
.game-modes.is-leaving .mode-couple {animation-name: mode-exit-tl;}
.game-modes.is-leaving .mode-amis {animation-name: mode-exit-tr;}
.game-modes.is-leaving .mode-famille {animation-name: mode-exit-bl;}
.game-modes.is-leaving .mode-soiree {animation-name: mode-exit-br;}
.osepiko-slogan.is-leaving {animation: slogan-exit .3s ease-in forwards;}
.app-header .app-logo {transform-origin: top center; transition: transform .45s cubic-bezier(.2, 1.2, .4, 1);}
body.screen-players .app-logo {transform: scale(.7);}
body.screen-game .app-logo {transform: scale(.5);}
.players-screen {padding: 20px; text-align: center;}
.players-title {font-family: 'Lilita One', sans-serif;color: #8e24aa;font-size: 28px;}
.players-subtitle {font-family: 'Fredoka', sans-serif;font-size: 18px;}
.players-counter {display: flex;justify-content: center;align-items: center;gap: 20px;margin: 20px auto;}
.players-counter button:disabled {opacity: .45; cursor: not-allowed; filter: grayscale(.7);}
.player-card {display: flex;align-items: center;gap: 10px;margin: 8px 0;padding: 8px;background: rgba(255, 255, 255, .8);border-radius: 24px;}
.player-color {width: 25px; height: 25px; flex-shrink: 0; border-radius: 50%; border: 2px solid white;}
.player-name {min-width: 0;flex: 1;}
.btn-start-game {border: solid 4px #fff; border-radius: 35px 54px 35px 54px; background: #39cd39 !important; color: #fff; font-size: 30px; margin: 25px auto; font-family: 'Lilita One', cursive !important; padding: 10px 35px; transform: rotate(-2deg); box-shadow: 0 7px 0 rgba(70, 0, 75, .25), 0 12px 16px rgba(70, 0, 75, .20), inset 0 5px 8px rgba(255, 255, 255, .30), inset 0 -5px 8px rgba(0, 0, 0, .10); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;}
.btn-start-game:active {transform: rotate(var(--card-rotation)) translateY(4px) scale(.97) !important; box-shadow:0 2px 0 rgba(70, 0, 75, .25), 0 4px 8px rgba(70, 0, 75, .15); background: #279b27 !important;}
.btn-player-minus {font-size: 30px; border: solid 5px #fff; font-family: 'Lilita One', cursive !important; border-radius: 50%; width: 50px; height: 50px; line-height: 20px; color: #fff; background: #e15a5a !important; display: flex; text-align: center; align-content: center; align-items: center; justify-content: center; box-shadow: 0 7px 0 rgba(70, 0, 75, .25), 0 12px 16px rgba(70, 0, 75, .20), inset 0 5px 8px rgba(255, 255, 255, .30), inset 0 -5px 8px rgba(0, 0, 0, .10);}
.btn-player-minus:active {transform: rotate(var(--card-rotation)) translateY(4px) scale(.97) !important; box-shadow:0 2px 0 rgba(70, 0, 75, .25), 0 4px 8px rgba(70, 0, 75, .15); background: #ad3f3f !important;}
.btn-player-plus {font-size: 30px; border: solid 5px #fff; font-family: 'Lilita One', cursive !important; border-radius: 50%; width: 50px; height: 50px; line-height: 20px; color: #fff; background: #5ae165 !important; display: flex; text-align: center; align-content: center; align-items: center; justify-content: center; box-shadow: 0 7px 0 rgba(70, 0, 75, .25), 0 12px 16px rgba(70, 0, 75, .20), inset 0 5px 8px rgba(255, 255, 255, .30), inset 0 -5px 8px rgba(0, 0, 0, .10);}
.btn-player-plus:active {transform: rotate(var(--card-rotation)) translateY(4px) scale(.97) !important; box-shadow:0 2px 0 rgba(70, 0, 75, .25), 0 4px 8px rgba(70, 0, 75, .15); background: #3aa243 !important;}
#players-count {font-family: 'Lilita One', cursive !important; font-size: 30px; color: #fff; text-shadow: 2px 3px 0 rgba(70, 0, 90, .45), 0 0 2px rgba(255, 255, 255, .3);}
.players-back {display: flex; justify-content: flex-start; margin: 30px 0 0 15px;}
.btn-back-home { display: inline-flex; align-items: center; justify-content: center; padding: 8px 22px; font-family: 'Lilita One', cursive; font-size: 17px; color: #fff !important; background: #a629c7; border: 4px solid #fff; border-radius: 25px 18px 25px 18px; box-shadow:	0 5px 0 rgba(70, 0, 75, .25), 0 8px 12px rgba(70, 0, 75, .15); transform: rotate(-2deg); transition:transform .15s ease,box-shadow .15s ease;}
.btn-back-home:active {transform: rotate(-2deg) translateY(4px) scale(.97); box-shadow:0 2px 0 rgba(70, 0, 75, .25),0 4px 8px rgba(70, 0, 75, .15);}
.game-settings {width:100%; margin: 25px auto; padding: 18px; box-sizing: border-box; border-radius: 24px; background: rgba(255, 255, 255, .82); text-align: left; }
.game-settings h3 {font-family: 'Lilita One', sans-serif; color: #9621bd; text-align: center; font-size: 23px; margin: 0 0 18px;}
.game-settings label {display: block; font-family: 'Fredoka', sans-serif; color: #555; font-size: 16px; margin: 12px 0 6px;}
.game-settings select {width: 100%; height: 45px; border: 2px solid #e2bae9; border-radius: 12px; background: white; font-family: 'Fredoka', sans-serif; font-size: 16px; color: #555; padding: 0 10px;}
.game-screen {width: 100%; text-align: center; padding: 10px 12px 30px; box-sizing: border-box;}
.game-progress {font-family: 'Lilita One', sans-serif; font-size: 22px; color: #9520c1; margin-bottom: 20px;}
#game-card-container {width: 100%; min-height: 360px; display: flex; align-items: center; justify-content: center; perspective: 1000px; margin-bottom: 40px;}
.osepiko-card {width: 100%; max-width: 320px; min-height: 350px; position: relative; padding: 20px; box-sizing: border-box; border: 7px solid #fff; border-radius: 30px 24px 35px 25px; background: linear-gradient(155deg,#fff8cf 0%,#fff0a2 100%); box-shadow:	0 9px 0 rgba(90, 40, 0, .25),0 18px 25px rgba(90, 40, 0, .20),inset 0 5px 10px rgba(255, 255, 255, .8); transform: rotate(-2deg); transform-origin: center;}
.osepiko-card.card-success {animation: card-happy 1.2s ease-in-out both; box-shadow: 0 0 25px rgba(255, 220, 0, .9), 0 0 55px rgba(255, 190, 0, .6), 0 9px 0 rgba(90, 40, 0, .25);}
.osepiko-card.card-success .feedback-success {display: block;}
.osepiko-card.card-fail {animation: card-sad 1.2s ease-in-out both;}
.osepiko-card.card-fail .feedback-fail {display: block;	font-size: 85px; animation: feedback-pop 1.2s ease-out both;}
.card-header {display: flex; align-items: center; justify-content: center; gap: 10px;}
.card-icon {font-size: 32px;}
.card-type {font-family: 'Lilita One', sans-serif;font-size: 23px;color: #9e24c6;}
.card-player {font-family: 'Lilita One', sans-serif;font-size: 27px;margin: 5px 0;text-shadow: 1px 2px 0 rgba(255, 255, 255, .7);}
.card-illustration {font-size: 60px;margin: 5px auto;}
.card-illustration img {display: block; width: 100%; max-width: 180px; height: auto; margin: 0 auto; object-fit: contain;}
/* Illustrations Action : les autres cartes conservent leur présentation. */
.osepiko-card.card-has-image .card-player {margin: 12px 0 6px;}
.osepiko-card.card-has-image .card-illustration {margin: 6px auto;}
.osepiko-card.card-has-image .card-illustration img {width: auto; max-width: 100%; max-height: min(30vh, 240px); height: auto; object-fit: contain;}
.osepiko-card.card-has-image .card-text {margin: 8px 0;}
.btn-action-timer {max-width: 100%; margin: 8px auto 0; padding: 8px 12px; border: 3px solid #fff; border-radius: 16px; background: #a52bd9; color: #fff; font: 17px 'Lilita One', sans-serif; cursor: pointer;}
.card-text {font-family: 'Fredoka', sans-serif; color: #555; font-size: 21px; line-height: 1.4;margin: 15px 0;}
.card-stage {width: 100%; max-width: 320px;}
.card-stage.card-enter {animation: card-enter .7s cubic-bezier(.2, 1.3, .4, 1) both;}
.card-stage.card-exit {animation: card-exit .55s ease-in both;}
.collective-actions-title {width: 100%; text-align: center;}
.card-feedback {position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 10;}
.card-feedback span {display: none;}
.game-actions {display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 25px auto;}
.game-actions button {padding: 12px 15px; border: 4px solid #fff; border-radius: 20px; color: #fff; font-family: 'Lilita One', sans-serif; font-size: 18px; box-shadow:0 6px 0 rgba(70, 0, 75, .25), 0 10px 14px rgba(70, 0, 75, .2); cursor: pointer;}
.btn-card-success {background: #35ca48;}
.btn-card-fail {background: #e65a64;}
.game-actions button:active {transform: translateY(4px) scale(.97);}
.game-actions button:disabled {opacity: .5; pointer-events: none;}
.game-results {padding: 25px 15px;text-align: center;}
.game-results h2 {font-family: 'Lilita One', sans-serif;color: #9621bd;font-size: 28px;}
.game-results .btn-back-home {margin-top: 25px;}
.card-shuffle {display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 35px; width: 100%; min-height: 360px;}
.shuffle-deck {position: relative; width: 105px; height: 145px; perspective: 600px; }
.shuffle-card {position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; border: 6px solid #fff; border-radius: 18px; font-family: 'Lilita One', sans-serif; font-size: 65px; color: #fff; box-shadow: 0 8px 0 rgba(70, 0, 75, .25), 0 14px 20px rgba(70, 0, 75, .15); animation: shuffle-move 0.75s ease-in-out infinite alternate;}
.shuffle-card-1 {background: #ed388b; animation-delay: 0s;}
.shuffle-card-2 {background: #20b9ef; animation-delay: .15s;}
.shuffle-card-3 {background: #a52bd9; animation-delay: .3s;}
.shuffle-text {font-family: 'Lilita One', sans-serif; font-size: 23px; color: #9223b6; text-shadow: 1px 2px 0 rgba(255, 255, 255, .8); animation: shuffle-pulse .7s ease-in-out infinite alternate;}
.feedback-success {font-family: 'Lilita One', sans-serif; font-size: 48px;color: #ffd600; -webkit-text-stroke: 2px #fff; text-shadow:	3px 5px 0 #c77900,	0 0 15px rgba(255, 255, 0, .8); animation: feedback-pop 1.2s ease-out both;}
.score-transition {width: 100%;min-height: 360px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;}
.score-dice {font-size: 100px; line-height: 1.8; animation: score-dice-roll 2.3s cubic-bezier(.3, .1, .3, 1) both;}
.score-transition-title {margin-top: 20px; font-family: 'Lilita One', sans-serif; font-size: 26px; color: #9823bd; text-shadow: 2px 3px 0 rgba(255, 255, 255, .8); animation: score-title-pop .5s .4s both;}
.score-stars {margin-top: 15px; font-size: 30px; animation: score-stars-pop .8s .7s both;}
.results-title {opacity: 0; animation: results-title-enter .6s ease-out forwards;}
.result-player {margin: 12px auto;padding: 15px;border-radius: 18px;background: rgba(255, 255, 255, .85);font-family: 'Fredoka', sans-serif;font-size: 19px; opacity: 0; animation-duration: .7s; animation-timing-function: cubic-bezier(.2, 1.4, .4, 1); animation-fill-mode: both; animation-delay: var(--result-delay, 0s); }
.result-from-left {animation-name: result-enter-left;}
.result-from-right {animation-name: result-enter-right;}
.result-winner {background: linear-gradient(135deg, #fff9c4, #ffdf65); border: 3px solid #fff; box-shadow:0 6px 0 rgba(160, 100, 0, .25), 0 0 25px rgba(255, 215, 0, .5); font-family: 'Lilita One', sans-serif; font-size: 22px; color: #a65c00;}
.results-replay {opacity: 0; animation: results-title-enter .5s ease-out forwards; animation-delay: var(--result-delay, 0s);}
.game-results .results-replay {display: block;margin: 35px auto 0;}
.game-results .results-home {display: table; margin: 30px 0 0 15px; opacity: 0; animation: results-title-enter .5s ease-out forwards; animation-delay: var(--result-delay, 0s);}
.game-actions.is-question-pending {visibility: hidden; pointer-events: none;}
.question-actions {margin: 20px auto 10px; min-height: 55px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.btn-reveal-answer {visibility: hidden; max-width: 100%; white-space: normal; opacity: 0; padding: 10px 18px; border: 4px solid #fff; border-radius: 20px; background: #a52bd9; color: #fff; font-family: 'Lilita One', sans-serif; font-size: 18px; box-shadow: 0 5px 0 rgba(70, 0, 75, .25),0 8px 12px rgba(70, 0, 75, .15); cursor: pointer; transform: scale(.7); transition:opacity .25s ease,transform .25s ease,visibility .25s;}
.btn-reveal-answer.is-ready {visibility: visible; opacity: 1; transform: scale(1);}
.card-answer {display: none; margin: 15px auto; padding: 15px; background: #fff; border: 3px solid #ffd600; border-radius: 18px; color: #9823bd; font-family: 'Lilita One', sans-serif; font-size: 25px; box-shadow: 0 5px 0 rgba(160, 100, 0, .2); }
.card-answer.is-visible {display: block; animation: answer-reveal .55s cubic-bezier(.2, 1.5, .4, 1) both;}
#osepiko-countdown {position: fixed; top: 88%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 100%; height: 390px; z-index: 1000; pointer-events: none; text-align: center;}
.osepiko-countdown-digit {display: block; font-family: "Modak", system-ui; font-weight: 900; font-size: clamp(190px, 57vw, 340px); line-height: 1; letter-spacing: -0.08em; color: rgba(235, 20, 100, .55); text-shadow: 0 6px 0 rgba(130, 0, 80, .10), 0 0 25px rgba(255, 50, 130, .15); opacity: 0;}
.osepiko-countdown-digit.is-counting {animation: osepiko-digit-fade 1s linear both;}
#osepiko-countdown.is-urgent .osepiko-countdown-digit {color: rgba(235, 40, 50, .65);}
.osepiko-countdown-digit.is-zero.is-counting {animation-duration: .25s;}
.card-duel-players {display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: clamp(19px, 5vw, 25px); line-height: 1.25; overflow-wrap: anywhere;}
.card-duel-versus {color: #a52bd9; font-size: 17px; white-space: nowrap;}
.game-actions.is-duel {flex-wrap: wrap; align-items: center; gap: 10px;}
.duel-actions-title {flex-basis: 100%; font: 22px 'Lilita One', sans-serif; color: #9823bd;}
.game-actions.is-duel .btn-duel-winner {flex: 1 1 115px; min-width: 0; overflow-wrap: anywhere; font-size: 17px; background: #8e24aa;}
.game-actions.is-duel .btn-duel-second {background: #1e9bd3;}
.game-actions.is-duel .btn-duel-draw {flex: 0 1 auto; background: #ec9a28;}
.osepiko-card.card-draw {animation: duel-draw 1.2s ease-in-out both;}
.osepiko-card.card-draw .feedback-draw {display: block; font: 36px 'Lilita One', sans-serif; color: #a52bd9; -webkit-text-stroke: 1px white; text-shadow: 2px 3px 0 #fff; animation: feedback-pop 1.2s ease-out both;}
#osepiko-countdown-challenge {position: fixed;top: 88%; left: 50%;transform: translate(-50%, -50%);display: flex; align-items: center; justify-content: center;width: 100%; height: 390px;z-index: 1000; pointer-events: none; text-align: center;}
.card-time-status {margin: 12px auto 4px;font-family: 'Lilita One', sans-serif;font-size: clamp(18px, 5vw, 22px);color: #9a20b5;}
.osepiko-card.card-time-elapsed .card-time-status {color: #dd3e52;}
body.screen-game .game-progress {margin-bottom: 12px;}
body.screen-game .game-actions {margin: 15px auto;}
.game-actions.is-flip-front {visibility: hidden; pointer-events: none;}
.osepiko-card.card-flippable {padding: 12px 15px; min-height: 0; perspective: 1000px;}
.card-flip-inner {display: grid; transform-style: preserve-3d; transition: transform .45s ease-in-out;}
.card-flippable.is-flipped .card-flip-inner {transform: rotateY(180deg);}
.card-face {grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; cursor: pointer;}
.card-face-back {transform: rotateY(180deg);}
.card-flippable:not(.is-flipped) .card-face-back,
.card-flippable.is-flipped .card-face-front {pointer-events: none;}
.card-flippable .card-header {gap: 6px; width: 100%;}
.card-flippable .card-type {font-size: clamp(18px, 5.2vw, 22px); line-height: 1.2;}
.osepiko-card.card-flippable .card-player {font-size: clamp(20px, 6vw, 25px); margin: 10px 0 5px; overflow-wrap: anywhere; max-width: 100%;}
.osepiko-card.card-flippable .card-illustration {width: 100%; margin: 8px auto;}
.osepiko-card.card-flippable .card-illustration img {width: auto; max-width: 100%; max-height: 270px; max-height: min(34dvh, 300px); height: auto; object-fit: contain;}
.osepiko-card.card-flippable .card-text {font-size: clamp(21px, 6vw, 24px); line-height: 1.35; margin: 14px 0; color: #444; overflow-wrap: anywhere;}
.btn-card-flip {margin: 10px auto 2px; padding: 8px 14px; min-height: 44px; max-width: 100%; border: 2px solid #fff; border-radius: 20px; background: #a52bd9; color: #fff; font: 17px 'Lilita One', sans-serif; cursor: pointer;}
.btn-card-flip:focus-visible {outline: 3px solid #54216e; outline-offset: 3px;}
.osepiko-card.card-flippable {padding: 0; border: 0; background: transparent; box-shadow: none; border-radius: 0;}
.osepiko-card.card-flippable.card-success {box-shadow: none;}
.card-flippable .card-face {box-sizing: border-box; padding: 12px 15px; border: 7px solid #fff; border-radius: 30px 24px 35px 25px; background: linear-gradient(155deg, #fff8cf 0%,#fff0a2 100%); box-shadow: 0 9px 0 rgba(90, 40, 0, .25),0 18px 25px rgba(90, 40, 0, .20),inset 0 5px 10px rgba(255, 255, 255, .8);}
.card-flippable .card-face {-webkit-backface-visibility: hidden;backface-visibility: hidden;transition: visibility 0s linear .225s;}
.card-flippable:not(.is-flipped) .card-face-front,.card-flippable.is-flipped .card-face-back {visibility: visible;}
.card-flippable:not(.is-flipped) .card-face-back,.card-flippable.is-flipped .card-face-front {visibility: hidden;pointer-events: none;}
.card-flippable.card-success .card-face {box-shadow: 0 0 25px rgba(255, 220, 0, .9),0 0 55px rgba(255, 190, 0, .6),0 9px 0 rgba(90, 40, 0, .25);}
.card-flippable .card-face-back {background: linear-gradient(155deg, #fffef7 0%, #fff8df 100%);}
.card-flippable .card-face-back .card-text {color: #333;}

@keyframes osepiko-digit-fade {
	0% {opacity: 1;}
	20% {opacity: 1;}
	100% {opacity: 0;}
}
@keyframes answer-reveal {
	0% {opacity: 0;transform: scale(.4) rotate(-8deg);}
	70% {opacity: 1;transform: scale(1.12) rotate(3deg);}
	100% {opacity: 1;transform: scale(1) rotate(0);}
}
@keyframes score-dice-roll {
	0% {opacity: 0;transform: translateY(-80px) rotate(-180deg) scale(.3);}
	40% {opacity: 1;transform: translateY(25px) rotate(180deg) scale(1.2);}
	65% {transform: translateY(-20px) rotate(290deg) scale(.95);}
	85% {transform: translateY(8px) rotate(360deg) scale(1.05);}
	100% {opacity: 1;transform: translateY(0) rotate(360deg) scale(1);}
}
@keyframes score-title-pop {
	from {opacity: 0; transform: scale(.3);}
	to {opacity: 1; transform: scale(1);}
}
@keyframes score-stars-pop {
	0% {opacity: 0;transform: scale(.2) rotate(-25deg);	}
	60% {opacity: 1;transform: scale(1.3) rotate(10deg);}
	100% {opacity: 1;transform: scale(1);}
}
@keyframes rubberBand {
	0% {transform: scale3d(0, 0, 0); opacity:1; top: 150px;}
	30% {transform: scale3d(1.25, .75, 1); top: 150px;}
	40% {transform: scale3d(0.75, 1.25, 1); top: 150px;}
	50% {transform: scale3d(1.15, .85, 1); top: 150px;}
	65% {transform: scale3d(.95, 1.05, 1); top: 150px;}
	75% {transform: scale3d(1.05, .95, 1); top: 120px;}
	100% {transform: scale3d(1, 1, 1); opacity: 1; top:5px;}
}
@keyframes slogan-arrive {
	from {opacity: 0; transform: translateY(35px) scale(.75) rotate(-5deg);}
	to {opacity: 1; transform: translateY(0) scale(1) rotate(-3deg);}
}
@keyframes mode-exit-tl {
	to {opacity: 0; transform: translate(-150vw, -120vh) rotate(-35deg) scale(.6);}
}
@keyframes mode-exit-tr {
	to {opacity: 0; transform: translate(150vw, -120vh) rotate(35deg) scale(.6);}
}
@keyframes mode-exit-bl {
	to {opacity: 0; transform: translate(-150vw, 120vh) rotate(35deg) scale(.6);}
}
@keyframes mode-exit-br {
	to {opacity: 0; transform: translate(150vw, 120vh) rotate(-35deg) scale(.6);}
}
@keyframes slogan-exit {
	to {opacity: 0;transform: translateY(-35px) scale(.85) rotate(-7deg);}
}
@keyframes card-enter {
	0% {opacity: 0; transform: translateX(130%) rotate(55deg) scale(.65);}
	65% {opacity: 1;transform: translateX(-8%) rotate(-12deg) scale(1.05);}
	85% {transform: translateX(3%) rotate(5deg);}
	100% {opacity: 1;transform: translateX(0) rotate(-2deg) scale(1);}
}
@keyframes card-exit {
	0% {opacity: 1;transform: translateX(0) rotate(-2deg);}
	35% {transform: translateX(15%) rotate(15deg) scale(.9);}
	100% {opacity: 0;transform: translateX(-150%) rotate(-70deg) scale(.6);}
}
@media (hover: hover) {
	.game-mode:hover {transform:rotate(var(--card-rotation)) translateY(-5px) scale(1.035) !important;	}
	.btn-start-game:hover {filter: brightness(1.08);}
}
@keyframes shuffle-move {
	0% {transform: translateX(-25px) rotate(-18deg) scale(.9);}
	50% {transform: translateY(-12px) rotate(4deg) scale(1.05);}
	100% {transform: translateX(25px) rotate(18deg) scale(.9);}
}
@keyframes shuffle-pulse {
	from {opacity: .65; transform: scale(.95);}
	to {opacity: 1; transform: scale(1.05);}
}
@keyframes card-happy {
	0% {filter: brightness(1);transform: rotate(-2deg) scale(1);}
	15% {filter: brightness(1.15);transform: rotate(2deg) scale(1.04);}
	30% {filter: brightness(1.25);transform: rotate(-4deg) scale(1.08);}
	45% {transform: rotate(4deg) scale(1.08);}
	60% {transform: rotate(-2deg) scale(1.05);}
	80% {filter: brightness(1.15);transform: rotate(0deg) scale(1.02);}
	100% {filter: brightness(1);transform: rotate(-2deg) scale(1);}
}
@keyframes card-sad {
	0% {filter: brightness(1); transform: rotate(-2deg) translateY(0);}
	30% {filter: brightness(.75);transform: rotate(-5deg) translateY(8px);}
	60% {filter: brightness(.7);transform: rotate(-3deg) translateY(12px);}
	100% {filter: brightness(.85);transform: rotate(-2deg) translateY(8px);}
}
@keyframes feedback-pop {
	0% {opacity: 0; transform: scale(.1) rotate(-20deg);}
	30% {opacity: 1;transform: scale(1.35) rotate(8deg);}
	50% {transform: scale(.9) rotate(-4deg);}
	70% {transform: scale(1.1) rotate(2deg);}
	100% {opacity: 0;transform: scale(1) rotate(0);}
}
@keyframes results-title-enter {
	0% {opacity: 0; transform: translateY(-30px) scale(.7);}
	70% {opacity: 1; transform: translateY(5px) scale(1.1);}
	100% {opacity: 1; transform: translateY(0) scale(1);}
}
@keyframes result-enter-left {
	0% {opacity: 0; transform: translateX(-100px) rotate(-12deg) scale(.7);}
	70% {opacity: 1; transform: translateX(8px) rotate(3deg) scale(1.05);}
	100% {opacity: 1;transform: translateX(0) rotate(0) scale(1);}
}
@keyframes result-enter-right {
	0% {opacity: 0; transform: translateX(100px) rotate(12deg) scale(.7); }
	70% {opacity: 1; transform: translateX(-8px) rotate(-3deg) scale(1.05);	}
	100% {opacity: 1; transform: translateX(0) rotate(0) scale(1);}
}
@keyframes duel-draw {
	0%,100% {transform: rotate(-2deg) scale(1);} 
	35% {transform: rotate(2deg) scale(1.04);} 
	70% {transform: rotate(-3deg) scale(1.02);}
}

@media (prefers-reduced-motion: reduce) {
	.shuffle-card, .shuffle-text {animation: none;}
	.score-dice, .score-transition-title, .score-stars {animation: none;}
	.results-title,.result-player,.results-replay {animation: none;opacity: 1;}
	.game-results .results-home {animation: none; opacity: 1;}
	.card-answer.is-visible {animation: none;}
	.btn-reveal-answer {transition: none;}
	.osepiko-countdown-digit.is-counting {animation: none;opacity: .65;}
	.osepiko-card.card-draw,.osepiko-card.card-draw .feedback-draw {animation: none;}
	.card-flippable .card-face {transition: none;}
	.card-flip-inner {transition: none;}
}






/* Invitation initiale OsePiko : réutilise le logo et le bandeau existants. */
.osepiko-entry[hidden], .game-modes[hidden] {display: none !important;}
body.screen-intro {--entry-logo-offset: clamp(45px, 10vh, 85px);}
body.screen-intro .contenair_head .site_head .inner_head .logo {
    top: var(--entry-logo-offset);
    animation: osepiko-entry-logo 1s 1s ease-out both;
}
body.screen-intro #container_body {padding-top: var(--entry-logo-offset);}
.osepiko-entry {display: flex; justify-content: center; padding: 18px 14px 28px; text-align: center;}
.btn-osepiko-enter {width: min(94%, 370px); margin: 15px auto; padding: 15px 18px; font-size: clamp(21px, 5.7vw, 29px); line-height: 1.2; white-space: normal; cursor: pointer; animation: slogan-arrive .65s 2.45s cubic-bezier(.25, 1.5, .5, 1) both;}
.btn-osepiko-enter:focus-visible {outline: 3px solid #54216e; outline-offset: 4px;}
body.osepiko-entered .contenair_head .site_head .inner_head .logo {animation: none; top: 5px;}
body.screen-home.osepiko-entered .osepiko-slogan:not(.is-leaving) {animation: none; opacity: 1; transform: rotate(-3deg);}
body.screen-home.osepiko-entered .game-modes:not(.is-leaving) .game-mode {animation-delay: .08s;}
@keyframes osepiko-entry-logo {
    0% {transform: scale3d(0,0,0); opacity: 1; top: 150px;}
    30% {transform: scale3d(1.25,.75,1); top: 150px;}
    50% {transform: scale3d(.75,1.25,1); top: 150px;}
    75% {transform: scale3d(1.05,.95,1); top: var(--entry-logo-offset);}
    100% {transform: scale3d(1,1,1); opacity: 1; top: var(--entry-logo-offset);}
}
@media (max-height: 600px) {
    body.screen-intro {--entry-logo-offset: 25px;}
    .osepiko-entry {padding-top: 5px; padding-bottom: 12px;}
}
@media (prefers-reduced-motion: reduce) {
    body.screen-intro .contenair_head .site_head .inner_head .logo,
    body.screen-intro .osepiko-slogan, .btn-osepiko-enter {animation: none; opacity: 1;}
}


/* Maxime du podium : après le dernier résultat et avant les boutons. */
.result-maxime {box-sizing: border-box; width: 96%; max-width: 420px; margin: 24px auto 12px; padding: 12px 16px 16px; border: 4px solid #fff; border-radius: 24px 18px 26px 19px; background: linear-gradient(155deg,#fffef7,#fff0b0); box-shadow: 0 6px 0 rgba(90,40,0,.2),0 10px 16px rgba(90,40,0,.15); color: #75208d; opacity: 0; animation: result-maxime-enter .65s cubic-bezier(.2,1.4,.4,1) var(--result-delay,0s) both;}
.result-maxime-couple {background: linear-gradient(155deg,#fffaf6,#ffd8e9); color: #9c215c;}
.result-maxime-icon {display: block; font-size: 30px; line-height: 1.15;}
.result-maxime-text {font: 500 clamp(18px,5vw,22px)/1.35 'Fredoka',sans-serif; margin: 7px 0 0; overflow-wrap: anywhere; white-space: pre-line;}
@keyframes result-maxime-enter {
    from {opacity: 0; transform: translateY(18px) scale(.8) rotate(-5deg);}
    to {opacity: 1; transform: translateY(0) scale(1) rotate(-2deg);}
}
@media (prefers-reduced-motion: reduce) {
    .result-maxime {animation: none; opacity: 1;}
}

/* Responsive large : aucun zoom global, aucune modification du moteur JS. */
@media screen and (min-width: 550px) and (min-aspect-ratio: 3/4) {
    body.screen-intro, body.screen-home { --nav_height: 125px; }
    body.screen-players, body.screen-game, body.screen-results { --nav_height: 100px; }
    body.screen-intro { --entry-logo-offset: clamp(20px, 5vh, 40px); }
    body .contenair_head .site_head .inner_head .logo {
        width: 240px; height: 124px; left: calc(50% - 120px);
        background-size: contain;
    }
    body.screen-players .contenair_head .site_head .inner_head .logo,
    body.screen-game .contenair_head .site_head .inner_head .logo,
    body.screen-results .contenair_head .site_head .inner_head .logo {
        width: 180px; height: 93px; left: calc(50% - 90px);
    }
    .osepiko-slogan {width: 78%; max-width: 340px;}
    .game-modes {
        box-sizing: border-box; width: 94%; max-width: 490px;
        gap: 12px; padding: 8px 12px 14px;
    }
    .game-mode {
        box-sizing: border-box; aspect-ratio: auto;
        height: clamp(105px, 19vh, 155px);
        height: clamp(105px, 19dvh, 155px);
        padding: 5px 8px; border-width: 5px;
    }
    .game-mode img {width: auto; max-width: 75%; height: 65%; object-fit: contain; margin-bottom: 4px; min-height: 0;}
    .game-mode span {font-size: clamp(21px, 3.8vw, 26px); line-height: 1.15;}
    .osepiko-entry {padding: 10px 14px 18px;}
    .btn-osepiko-enter {font-size: 24px; padding: 12px 18px;}
    .players-screen, .game-results {box-sizing: border-box; max-width: 540px; margin: 0 auto; padding: 10px 16px 18px;}
    .players-counter {margin: 12px auto;}
    .game-settings {margin: 15px auto; padding: 14px;}
    .players-back {margin-top: 18px;}
    .btn-start-game {font-size: 25px; margin: 16px auto;}
    .game-screen {padding: 6px 12px 18px;}
    #game-card-container {min-height: 0;}
    .osepiko-card {min-height: 270px; padding: 14px;}
    .osepiko-card.card-flippable {min-height: 0; padding: 0;}
    .card-flippable .card-face {padding: 10px 14px;}
    .osepiko-card.card-flippable .card-illustration img {
        max-height: min(27vh, 200px);
        max-height: min(27dvh, 200px);
    }
    .osepiko-card.card-flippable .card-text {font-size: 21px; margin: 10px 0;}
    .card-text {font-size: 20px;}
    .game-actions, body.screen-game .game-actions {margin: 12px auto;}
    .game-actions button {min-height: 44px; padding: 8px 13px;}
    .card-shuffle, .score-transition {min-height: 250px; gap: 20px;}
    .score-dice {font-size: 80px; line-height: 1.35;}
    .result-player {padding: 10px 14px; margin: 8px auto;}
    .result-maxime {margin: 16px auto 10px;}
    .game-results .results-replay {margin-top: 22px;}
    .game-results .results-home {margin-top: 18px;}
    #osepiko-countdown, #osepiko-countdown-challenge {top: 75%; height: 240px;}
    .osepiko-countdown-digit {font-size: clamp(110px, 30vh, 220px);}
}
@media screen and (min-width: 550px) and (min-aspect-ratio: 3/4) and (max-height: 540px) {
    body.screen-home, body.screen-intro { --nav_height: 100px; }
    body .contenair_head .site_head .inner_head .logo {width: 190px; height: 98px; left: calc(50% - 95px);}
    .osepiko-slogan {max-width: 260px;}
    .game-mode {height: 100px;}
    .game-mode span {font-size: 20px;}
}

/* OsePiko Premium : conserver les couleurs et les animations des univers. */
.game-mode.is-premium-locked {opacity: 0.85 !important; pointer-events: none !important; }
.game-mode.is-premium-locked::after {content: "🔒"; position: absolute; top: -16px; right: -15px; z-index: 3; display: grid; place-items: center; width: clamp(40px, 9.5vw, 50px); aspect-ratio: 1; box-sizing: border-box; border: 3px solid #fff; border-radius: 50%; background: linear-gradient(145deg, #fff4ad, #ffd77be0); box-shadow: 0 3px 0 #b77b13, 0 5px 9px rgba(70, 0, 75, .25); font-size: clamp(17px, 5vw, 23px); line-height: 1; pointer-events: none;}
.game-premium-upgrade[hidden] {display: none !important;}
.game-premium-upgrade {display: block; width: 100%; margin: 12px auto 0; padding: 9px 10px; border: 2px solid #e6b74e; border-radius: 14px; background: linear-gradient(145deg,#fff3b1,#ffd05b); color: #75208d; font: 500 15px/1.3 'Fredoka', sans-serif; cursor: pointer; box-shadow: 0 3px 0 rgba(160,100,0,.2);}
.game-premium-upgrade:focus-visible, .game-mode.is-premium-locked:focus-visible {outline: 3px solid #54216e; outline-offset: 4px;}
